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__Classrooms__Lists__Commo...

1245 lines
1.4 MiB

!(function(){var Xh=Object.defineProperty;var $u=Object.getOwnPropertySymbols;var qh=Object.prototype.hasOwnProperty,$h=Object.prototype.propertyIsEnumerable;var ec=Math.pow,nu=(Xe,Ge,w)=>Ge in Xe?Xh(Xe,Ge,{enumerable:!0,configurable:!0,writable:!0,value:w}):Xe[Ge]=w,iu=(Xe,Ge)=>{for(var w in Ge||(Ge={}))qh.call(Ge,w)&&nu(Xe,w,Ge[w]);if($u)for(var w of $u(Ge))$h.call(Ge,w)&&nu(Xe,w,Ge[w]);return Xe};var Vi=(Xe,Ge,w)=>nu(Xe,typeof Ge!="symbol"?Ge+"":Ge,w);(self.webpackChunk=self.webpackChunk||[]).push([[2303],{95869:function(Xe,Ge,w){"use strict";w.d(Ge,{Z:function(){return U}});var p=w(54476),Ae=w(59301),xe={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M688 264c0-4.4-3.6-8-8-8H296c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8h384c4.4 0 8-3.6 8-8v-48zm-8 136H296c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8h384c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8zM480 544H296c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8h184c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8zm-48 308H208V148h560v344c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8V108c0-17.7-14.3-32-32-32H168c-17.7 0-32 14.3-32 32v784c0 17.7 14.3 32 32 32h264c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm356.8-74.4c29-26.3 47.2-64.3 47.2-106.6 0-79.5-64.5-144-144-144s-144 64.5-144 144c0 42.3 18.2 80.3 47.2 106.6-57 32.5-96.2 92.7-99.2 162.1-.2 4.5 3.5 8.3 8 8.3h48.1c4.2 0 7.7-3.3 8-7.6C564 871.2 621.7 816 692 816s128 55.2 131.9 124.4c.2 4.2 3.7 7.6 8 7.6H880c4.6 0 8.2-3.8 8-8.3-2.9-69.5-42.2-129.6-99.2-162.1zM692 591c44.2 0 80 35.8 80 80s-35.8 80-80 80-80-35.8-80-80 35.8-80 80-80z"}}]},name:"solution",theme:"outlined"},ce=xe,Y=w(7657),m=function(X,L){return Ae.createElement(Y.Z,(0,p.Z)({},X,{ref:L,icon:ce}))},ve=Ae.forwardRef(m),U=ve},65030:function(Xe,Ge,w){"use strict";w.d(Ge,{Z:function(){return Kt}});var p=w(33885),Ae=w(42978),xe=w(75931),ce=w(43403),Y=w(92310),m=w.n(Y),ve=w(29301),U=w(76846),o=w(96452),X=w(6089),L=w(80402),_=w(34280),y=w(49658),E=w(59301),S=w(54476),O=w(77900),P=w(8654);function H(Te){var F=Te.prefixCls,v=Te.align,T=Te.arrow,ee=Te.arrowPos,N=T||{},z=N.className,he=N.content,Fe=ee.x,Ne=Fe===void 0?0:Fe,rt=ee.y,lt=rt===void 0?0:rt,zt=E.useRef();if(!v||!v.points)return null;var Tt={position:"absolute"};if(v.autoArrow!==!1){var Ct=v.points[0],At=v.points[1],It=Ct[0],st=Ct[1],ct=At[0],Pe=At[1];It===ct||!["t","b"].includes(It)?Tt.top=lt:It==="t"?Tt.top=0:Tt.bottom=0,st===Pe||!["l","r"].includes(st)?Tt.left=Ne:st==="l"?Tt.left=0:Tt.right=0}return E.createElement("div",{ref:zt,className:m()("".concat(F,"-arrow"),z),style:Tt},he)}function B(Te){var F=Te.prefixCls,v=Te.open,T=Te.zIndex,ee=Te.mask,N=Te.motion;return ee?E.createElement(O.default,(0,S.Z)({},N,{motionAppear:!0,visible:v,removeOnLeave:!0}),function(z){var he=z.className;return E.createElement("div",{style:{zIndex:T},className:m()("".concat(F,"-mask"),he)})}):null}var R=E.memo(function(Te){var F=Te.children;return F},function(Te,F){return F.cache}),J=R,q=E.forwardRef(function(Te,F){var v=Te.popup,T=Te.className,ee=Te.prefixCls,N=Te.style,z=Te.target,he=Te.onVisibleChanged,Fe=Te.open,Ne=Te.keepDom,rt=Te.fresh,lt=Te.onClick,zt=Te.mask,Tt=Te.arrow,Ct=Te.arrowPos,At=Te.align,It=Te.motion,st=Te.maskMotion,ct=Te.forceRender,Pe=Te.getPopupContainer,wt=Te.autoDestroy,Lt=Te.portal,St=Te.zIndex,en=Te.onMouseEnter,Yt=Te.onMouseLeave,Ht=Te.onPointerEnter,In=Te.onPointerDownCapture,$n=Te.ready,Vt=Te.offsetX,vn=Te.offsetY,He=Te.offsetR,Le=Te.offsetB,De=Te.onAlign,te=Te.onPrepare,ue=Te.stretch,Se=Te.targetWidth,Ie=Te.targetHeight,Me=typeof v=="function"?v():v,Ke=Fe||Ne,Ye=(Pe==null?void 0:Pe.length)>0,it=E.useState(!Pe||!Ye),pt=(0,Ae.Z)(it,2),Xt=pt[0],hn=pt[1];if((0,_.Z)(function(){!Xt&&Ye&&z&&hn(!0)},[Xt,Ye,z]),!Xt)return null;var kt="auto",Nt={left:"-1000vw",top:"-1000vh",right:kt,bottom:kt};if($n||!Fe){var fn,Fn=At.points,Re=At.dynamicInset||((fn=At._experimental)===null||fn===void 0?void 0:fn.dynamicInset),Nn=Re&&Fn[0][1]==="r",Rt=Re&&Fn[0][0]==="b";Nn?(Nt.right=He,Nt.left=kt):(Nt.left=Vt,Nt.right=kt),Rt?(Nt.bottom=Le,Nt.top=kt):(Nt.top=vn,Nt.bottom=kt)}var Ft={};return ue&&(ue.includes("height")&&Ie?Ft.height=Ie:ue.includes("minHeight")&&Ie&&(Ft.minHeight=Ie),ue.includes("width")&&Se?Ft.width=Se:ue.includes("minWidth")&&Se&&(Ft.minWidth=Se)),Fe||(Ft.pointerEvents="none"),E.createElement(Lt,{open:ct||Ke,getContainer:Pe&&function(){return Pe(z)},autoDestroy:wt},E.createElement(B,{prefixCls:ee,open:Fe,zIndex:St,mask:zt,motion:st}),E.createElement(ve.Z,{onResize:De,disabled:!Fe},function(rn){return E.createElement(O.default,(0,S.Z)({motionAppear:!0,motionEnter:!0,motionLeave:!0,removeOnLeave:!1,forceRender:ct,leavedClassName:"".concat(ee,"-hidden")},It,{onAppearPrepare:te,onEnterPrepare:te,visible:Fe,onVisibleChanged:function(Mn){var oi;It==null||(oi=It.onVisibleChanged)===null||oi===void 0||oi.call(It,Mn),he(Mn)}}),function(_n,Mn){var oi=_n.className,Oi=_n.style,ki=m()(ee,oi,T);return E.createElement("div",{ref:(0,P.sQ)(rn,F,Mn),className:ki,style:(0,p.Z)((0,p.Z)((0,p.Z)((0,p.Z)({"--arrow-x":"".concat(Ct.x||0,"px"),"--arrow-y":"".concat(Ct.y||0,"px")},Nt),Ft),Oi),{},{boxSizing:"border-box",zIndex:St},N),onMouseEnter:en,onMouseLeave:Yt,onPointerEnter:Ht,onClick:lt,onPointerDownCapture:In},Tt&&E.createElement(H,{prefixCls:ee,arrow:Tt,arrowPos:Ct,align:At}),E.createElement(J,{cache:!Fe&&!rt},Me))})}))}),ge=q,_e=E.forwardRef(function(Te,F){var v=Te.children,T=Te.getTriggerDOMNode,ee=(0,P.Yr)(v),N=E.useCallback(function(he){(0,P.mH)(F,T?T(he):he)},[T]),z=(0,P.x1)(N,(0,P.C4)(v));return ee?E.cloneElement(v,{ref:z}):v}),se=_e,we=E.createContext(null),de=we;function ie(Te){return Te?Array.isArray(Te)?Te:[Te]:[]}function oe(Te,F,v,T){return E.useMemo(function(){var ee=ie(v!=null?v:F),N=ie(T!=null?T:F),z=new Set(ee),he=new Set(N);return Te&&(z.has("hover")&&(z.delete("hover"),z.add("click")),he.has("hover")&&(he.delete("hover"),he.add("click"))),[z,he]},[Te,F,v,T])}var K=w(29194);function k(){var Te=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],F=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],v=arguments.length>2?arguments[2]:void 0;return v?Te[0]===F[0]:Te[0]===F[0]&&Te[1]===F[1]}function V(Te,F,v,T){for(var ee=v.points,N=Object.keys(Te),z=0;z<N.length;z+=1){var he,Fe=N[z];if(k((he=Te[Fe])===null||he===void 0?void 0:he.points,ee,T))return"".concat(F,"-placement-").concat(Fe)}return""}function $(Te,F,v,T){return F||(v?{motionName:"".concat(Te,"-").concat(v)}:T?{motionName:T}:null)}function ae(Te){return Te.ownerDocument.defaultView}function re(Te){for(var F=[],v=Te==null?void 0:Te.parentElement,T=["hidden","scroll","clip","auto"];v;){var ee=ae(v).getComputedStyle(v),N=ee.overflowX,z=ee.overflowY,he=ee.overflow;[N,z,he].some(function(Fe){return T.includes(Fe)})&&F.push(v),v=v.parentElement}return F}function x(Te){var F=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1;return Number.isNaN(Te)?F:Te}function b(Te){return x(parseFloat(Te),0)}function W(Te,F){var v=(0,p.Z)({},Te);return(F||[]).forEach(function(T){if(!(T instanceof HTMLBodyElement||T instanceof HTMLHtmlElement)){var ee=ae(T).getComputedStyle(T),N=ee.overflow,z=ee.overflowClipMargin,he=ee.borderTopWidth,Fe=ee.borderBottomWidth,Ne=ee.borderLeftWidth,rt=ee.borderRightWidth,lt=T.getBoundingClientRect(),zt=T.offsetHeight,Tt=T.clientHeight,Ct=T.offsetWidth,At=T.clientWidth,It=b(he),st=b(Fe),ct=b(Ne),Pe=b(rt),wt=x(Math.round(lt.width/Ct*1e3)/1e3),Lt=x(Math.round(lt.height/zt*1e3)/1e3),St=(Ct-At-ct-Pe)*wt,en=(zt-Tt-It-st)*Lt,Yt=It*Lt,Ht=st*Lt,In=ct*wt,$n=Pe*wt,Vt=0,vn=0;if(N==="clip"){var He=b(z);Vt=He*wt,vn=He*Lt}var Le=lt.x+In-Vt,De=lt.y+Yt-vn,te=Le+lt.width+2*Vt-In-$n-St,ue=De+lt.height+2*vn-Yt-Ht-en;v.left=Math.max(v.left,Le),v.top=Math.max(v.top,De),v.right=Math.min(v.right,te),v.bottom=Math.min(v.bottom,ue)}}),v}function fe(Te){var F=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,v="".concat(F),T=v.match(/^(.*)\%$/);return T?Te*(parseFloat(T[1])/100):parseFloat(v)}function ke(Te,F){var v=F||[],T=(0,Ae.Z)(v,2),ee=T[0],N=T[1];return[fe(Te.width,ee),fe(Te.height,N)]}function je(){var Te=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"";return[Te[0],Te[1]]}function yt(Te,F){var v=F[0],T=F[1],ee,N;return v==="t"?N=Te.y:v==="b"?N=Te.y+Te.height:N=Te.y+Te.height/2,T==="l"?ee=Te.x:T==="r"?ee=Te.x+Te.width:ee=Te.x+Te.width/2,{x:ee,y:N}}function ht(Te,F){var v={t:"b",b:"t",l:"r",r:"l"};return Te.map(function(T,ee){return ee===F?v[T]||"c":T}).join("")}function Ot(Te,F,v,T,ee,N,z){var he=E.useState({ready:!1,offsetX:0,offsetY:0,offsetR:0,offsetB:0,arrowX:0,arrowY:0,scaleX:1,scaleY:1,align:ee[T]||{}}),Fe=(0,Ae.Z)(he,2),Ne=Fe[0],rt=Fe[1],lt=E.useRef(0),zt=E.useMemo(function(){return F?re(F):[]},[F]),Tt=E.useRef({}),Ct=function(){Tt.current={}};Te||Ct();var At=(0,X.Z)(function(){if(F&&v&&Te){let ur=function(_r,vr){var Dr=arguments.length>2&&arguments[2]!==void 0?arguments[2]:Si,Er=Ke.x+_r,Ir=Ke.y+vr,is=Er+Rt,Hr=Ir+Nn,Vr=Math.max(Er,Dr.left),Dn=Math.max(Ir,Dr.top),Yn=Math.min(is,Dr.right),Fi=Math.min(Hr,Dr.bottom);return Math.max(0,(Yn-Vr)*(Fi-Dn))},Xi=function(){mn=Ke.y+ze,Tn=mn+Nn,on=Ke.x+Ee,$t=on+Rt};var ct,Pe,wt,Lt,St=F,en=St.ownerDocument,Yt=ae(St),Ht=Yt.getComputedStyle(St),In=Ht.position,$n=St.style.left,Vt=St.style.top,vn=St.style.right,He=St.style.bottom,Le=St.style.overflow,De=(0,p.Z)((0,p.Z)({},ee[T]),N),te=en.createElement("div");(ct=St.parentElement)===null||ct===void 0||ct.appendChild(te),te.style.left="".concat(St.offsetLeft,"px"),te.style.top="".concat(St.offsetTop,"px"),te.style.position=In,te.style.height="".concat(St.offsetHeight,"px"),te.style.width="".concat(St.offsetWidth,"px"),St.style.left="0",St.style.top="0",St.style.right="auto",St.style.bottom="auto",St.style.overflow="hidden";var ue;if(Array.isArray(v))ue={x:v[0],y:v[1],width:0,height:0};else{var Se,Ie,Me=v.getBoundingClientRect();Me.x=(Se=Me.x)!==null&&Se!==void 0?Se:Me.left,Me.y=(Ie=Me.y)!==null&&Ie!==void 0?Ie:Me.top,ue={x:Me.x,y:Me.y,width:Me.width,height:Me.height}}var Ke=St.getBoundingClientRect(),Ye=Yt.getComputedStyle(St),it=Ye.height,pt=Ye.width;Ke.x=(Pe=Ke.x)!==null&&Pe!==void 0?Pe:Ke.left,Ke.y=(wt=Ke.y)!==null&&wt!==void 0?wt:Ke.top;var Xt=en.documentElement,hn=Xt.clientWidth,kt=Xt.clientHeight,Nt=Xt.scrollWidth,fn=Xt.scrollHeight,Fn=Xt.scrollTop,Re=Xt.scrollLeft,Nn=Ke.height,Rt=Ke.width,Ft=ue.height,rn=ue.width,_n={left:0,top:0,right:hn,bottom:kt},Mn={left:-Re,top:-Fn,right:Nt-Re,bottom:fn-Fn},oi=De.htmlRegion,Oi="visible",ki="visibleFirst";oi!=="scroll"&&oi!==ki&&(oi=Oi);var vi=oi===ki,ji=W(Mn,zt),ti=W(_n,zt),Si=oi===Oi?ti:ji,wi=vi?ti:Si;St.style.left="auto",St.style.top="auto",St.style.right="0",St.style.bottom="0";var Yi=St.getBoundingClientRect();St.style.left=$n,St.style.top=Vt,St.style.right=vn,St.style.bottom=He,St.style.overflow=Le,(Lt=St.parentElement)===null||Lt===void 0||Lt.removeChild(te);var Qn=x(Math.round(Rt/parseFloat(pt)*1e3)/1e3),Xn=x(Math.round(Nn/parseFloat(it)*1e3)/1e3);if(Qn===0||Xn===0||(0,U.Sh)(v)&&!(0,K.Z)(v))return;var di=De.offset,ai=De.targetOffset,wn=ke(Ke,di),We=(0,Ae.Z)(wn,2),ut=We[0],Ut=We[1],dt=ke(ue,ai),vt=(0,Ae.Z)(dt,2),Mt=vt[0],Wt=vt[1];ue.x-=Mt,ue.y-=Wt;var sn=De.points||[],ln=(0,Ae.Z)(sn,2),gn=ln[0],ni=ln[1],An=je(ni),Hn=je(gn),j=yt(ue,An),G=yt(Ke,Hn),pe=(0,p.Z)({},De),Ee=j.x-G.x+ut,ze=j.y-G.y+Ut,$e=ur(Ee,ze),bt=ur(Ee,ze,ti),xt=yt(ue,["t","l"]),Gt=yt(Ke,["t","l"]),_t=yt(ue,["b","r"]),Ce=yt(Ke,["b","r"]),et=De.overflow||{},Pt=et.adjustX,an=et.adjustY,un=et.shiftX,qt=et.shiftY,tn=function(vr){return typeof vr=="boolean"?vr:vr>=0},mn,Tn,on,$t;Xi();var kn=tn(an),Ln=Hn[0]===An[0];if(kn&&Hn[0]==="t"&&(Tn>wi.bottom||Tt.current.bt)){var Cn=ze;Ln?Cn-=Nn-Ft:Cn=xt.y-Ce.y-Ut;var Pn=ur(Ee,Cn),En=ur(Ee,Cn,ti);Pn>$e||Pn===$e&&(!vi||En>=bt)?(Tt.current.bt=!0,ze=Cn,Ut=-Ut,pe.points=[ht(Hn,0),ht(An,0)]):Tt.current.bt=!1}if(kn&&Hn[0]==="b"&&(mn<wi.top||Tt.current.tb)){var ii=ze;Ln?ii+=Nn-Ft:ii=_t.y-Gt.y-Ut;var ri=ur(Ee,ii),qn=ur(Ee,ii,ti);ri>$e||ri===$e&&(!vi||qn>=bt)?(Tt.current.tb=!0,ze=ii,Ut=-Ut,pe.points=[ht(Hn,0),ht(An,0)]):Tt.current.tb=!1}var Ti=tn(Pt),Li=Hn[1]===An[1];if(Ti&&Hn[1]==="l"&&($t>wi.right||Tt.current.rl)){var Ei=Ee;Li?Ei-=Rt-rn:Ei=xt.x-Ce.x-ut;var _i=ur(Ei,ze),si=ur(Ei,ze,ti);_i>$e||_i===$e&&(!vi||si>=bt)?(Tt.current.rl=!0,Ee=Ei,ut=-ut,pe.points=[ht(Hn,1),ht(An,1)]):Tt.current.rl=!1}if(Ti&&Hn[1]==="r"&&(on<wi.left||Tt.current.lr)){var mi=Ee;Li?mi+=Rt-rn:mi=_t.x-Gt.x-ut;var Ai=ur(mi,ze),dr=ur(mi,ze,ti);Ai>$e||Ai===$e&&(!vi||dr>=bt)?(Tt.current.lr=!0,Ee=mi,ut=-ut,pe.points=[ht(Hn,1),ht(An,1)]):Tt.current.lr=!1}Xi();var Ii=un===!0?0:un;typeof Ii=="number"&&(on<ti.left&&(Ee-=on-ti.left-ut,ue.x+rn<ti.left+Ii&&(Ee+=ue.x-ti.left+rn-Ii)),$t>ti.right&&(Ee-=$t-ti.right-ut,ue.x>ti.right-Ii&&(Ee+=ue.x-ti.right+Ii)));var Ni=qt===!0?0:qt;typeof Ni=="number"&&(mn<ti.top&&(ze-=mn-ti.top-Ut,ue.y+Ft<ti.top+Ni&&(ze+=ue.y-ti.top+Ft-Ni)),Tn>ti.bottom&&(ze-=Tn-ti.bottom-Ut,ue.y>ti.bottom-Ni&&(ze+=ue.y-ti.bottom+Ni)));var Gi=Ke.x+Ee,Ui=Gi+Rt,hi=Ke.y+ze,nr=hi+Nn,Ji=ue.x,ir=Ji+rn,pr=ue.y,Vn=pr+Ft,gr=Math.max(Gi,Ji),sr=Math.min(Ui,ir),hr=(gr+sr)/2,Fr=hr-Gi,Nr=Math.max(hi,pr),Kr=Math.min(nr,Vn),Gr=(Nr+Kr)/2,bi=Gr-hi;z==null||z(F,pe);var Qi=Yi.right-Ke.x-(Ee+Ke.width),mr=Yi.bottom-Ke.y-(ze+Ke.height);Qn===1&&(Ee=Math.round(Ee),Qi=Math.round(Qi)),Xn===1&&(ze=Math.round(ze),mr=Math.round(mr));var Ur={ready:!0,offsetX:Ee/Qn,offsetY:ze/Xn,offsetR:Qi/Qn,offsetB:mr/Xn,arrowX:Fr/Qn,arrowY:bi/Xn,scaleX:Qn,scaleY:Xn,align:pe};rt(Ur)}}),It=function(){lt.current+=1;var Pe=lt.current;Promise.resolve().then(function(){lt.current===Pe&&At()})},st=function(){rt(function(Pe){return(0,p.Z)((0,p.Z)({},Pe),{},{ready:!1})})};return(0,_.Z)(st,[T]),(0,_.Z)(function(){Te||st()},[Te]),[Ne.ready,Ne.offsetX,Ne.offsetY,Ne.offsetR,Ne.offsetB,Ne.arrowX,Ne.arrowY,Ne.scaleX,Ne.scaleY,Ne.align,It]}var Dt=w(94480);function Ve(Te,F,v,T,ee){(0,_.Z)(function(){if(Te&&F&&v){let lt=function(){T(),ee()};var N=F,z=v,he=re(N),Fe=re(z),Ne=ae(z),rt=new Set([Ne].concat((0,Dt.Z)(he),(0,Dt.Z)(Fe)));return rt.forEach(function(zt){zt.addEventListener("scroll",lt,{passive:!0})}),Ne.addEventListener("resize",lt,{passive:!0}),T(),function(){rt.forEach(function(zt){zt.removeEventListener("scroll",lt),Ne.removeEventListener("resize",lt)})}}},[Te,F,v])}var Jt=w(48736);function ot(Te,F,v,T,ee,N,z,he){var Fe=E.useRef(Te);Fe.current=Te;var Ne=E.useRef(!1);E.useEffect(function(){if(F&&T&&(!ee||N)){var lt=function(){Ne.current=!1},zt=function(wt){var Lt;Fe.current&&!z(((Lt=wt.composedPath)===null||Lt===void 0||(Lt=Lt.call(wt))===null||Lt===void 0?void 0:Lt[0])||wt.target)&&!Ne.current&&he(!1)},Tt=ae(T);Tt.addEventListener("pointerdown",lt,!0),Tt.addEventListener("mousedown",zt,!0),Tt.addEventListener("contextmenu",zt,!0);var Ct=(0,o.A)(v);if(Ct&&(Ct.addEventListener("mousedown",zt,!0),Ct.addEventListener("contextmenu",zt,!0)),0)var At,It,st,ct;return function(){Tt.removeEventListener("pointerdown",lt,!0),Tt.removeEventListener("mousedown",zt,!0),Tt.removeEventListener("contextmenu",zt,!0),Ct&&(Ct.removeEventListener("mousedown",zt,!0),Ct.removeEventListener("contextmenu",zt,!0))}}},[F,v,T,ee,N]);function rt(){Ne.current=!0}return rt}var Et=["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 Te=arguments.length>0&&arguments[0]!==void 0?arguments[0]:ce.Z,F=E.forwardRef(function(v,T){var ee=v.prefixCls,N=ee===void 0?"rc-trigger-popup":ee,z=v.children,he=v.action,Fe=he===void 0?"hover":he,Ne=v.showAction,rt=v.hideAction,lt=v.popupVisible,zt=v.defaultPopupVisible,Tt=v.onPopupVisibleChange,Ct=v.afterPopupVisibleChange,At=v.mouseEnterDelay,It=v.mouseLeaveDelay,st=It===void 0?.1:It,ct=v.focusDelay,Pe=v.blurDelay,wt=v.mask,Lt=v.maskClosable,St=Lt===void 0?!0:Lt,en=v.getPopupContainer,Yt=v.forceRender,Ht=v.autoDestroy,In=v.destroyPopupOnHide,$n=v.popup,Vt=v.popupClassName,vn=v.popupStyle,He=v.popupPlacement,Le=v.builtinPlacements,De=Le===void 0?{}:Le,te=v.popupAlign,ue=v.zIndex,Se=v.stretch,Ie=v.getPopupClassNameFromAlign,Me=v.fresh,Ke=v.alignPoint,Ye=v.onPopupClick,it=v.onPopupAlign,pt=v.arrow,Xt=v.popupMotion,hn=v.maskMotion,kt=v.popupTransitionName,Nt=v.popupAnimation,fn=v.maskTransitionName,Fn=v.maskAnimation,Re=v.className,Nn=v.getTriggerDOMNode,Rt=(0,xe.Z)(v,Et),Ft=Ht||In||!1,rn=E.useState(!1),_n=(0,Ae.Z)(rn,2),Mn=_n[0],oi=_n[1];(0,_.Z)(function(){oi((0,y.Z)())},[]);var Oi=E.useRef({}),ki=E.useContext(de),vi=E.useMemo(function(){return{registerSubPopup:function(Yn,Fi){Oi.current[Yn]=Fi,ki==null||ki.registerSubPopup(Yn,Fi)}}},[ki]),ji=(0,L.Z)(),ti=E.useState(null),Si=(0,Ae.Z)(ti,2),wi=Si[0],Yi=Si[1],Qn=E.useRef(null),Xn=(0,X.Z)(function(Dn){Qn.current=Dn,(0,U.Sh)(Dn)&&wi!==Dn&&Yi(Dn),ki==null||ki.registerSubPopup(ji,Dn)}),di=E.useState(null),ai=(0,Ae.Z)(di,2),wn=ai[0],We=ai[1],ut=E.useRef(null),Ut=(0,X.Z)(function(Dn){(0,U.Sh)(Dn)&&wn!==Dn&&(We(Dn),ut.current=Dn)}),dt=E.Children.only(z),vt=(dt==null?void 0:dt.props)||{},Mt={},Wt=(0,X.Z)(function(Dn){var Yn,Fi,li=wn;return(li==null?void 0:li.contains(Dn))||((Yn=(0,o.A)(li))===null||Yn===void 0?void 0:Yn.host)===Dn||Dn===li||(wi==null?void 0:wi.contains(Dn))||((Fi=(0,o.A)(wi))===null||Fi===void 0?void 0:Fi.host)===Dn||Dn===wi||Object.values(Oi.current).some(function(pi){return(pi==null?void 0:pi.contains(Dn))||Dn===pi})}),sn=$(N,Xt,Nt,kt),ln=$(N,hn,Fn,fn),gn=E.useState(zt||!1),ni=(0,Ae.Z)(gn,2),An=ni[0],Hn=ni[1],j=lt!=null?lt:An,G=(0,X.Z)(function(Dn){lt===void 0&&Hn(Dn)});(0,_.Z)(function(){Hn(lt||!1)},[lt]);var pe=E.useRef(j);pe.current=j;var Ee=E.useRef([]);Ee.current=[];var ze=(0,X.Z)(function(Dn){var Yn;G(Dn),((Yn=Ee.current[Ee.current.length-1])!==null&&Yn!==void 0?Yn:j)!==Dn&&(Ee.current.push(Dn),Tt==null||Tt(Dn))}),$e=E.useRef(),bt=function(){clearTimeout($e.current)},xt=function(Yn){var Fi=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;bt(),Fi===0?ze(Yn):$e.current=setTimeout(function(){ze(Yn)},Fi*1e3)};E.useEffect(function(){return bt},[]);var Gt=E.useState(!1),_t=(0,Ae.Z)(Gt,2),Ce=_t[0],et=_t[1];(0,_.Z)(function(Dn){(!Dn||j)&&et(!0)},[j]);var Pt=E.useState(null),an=(0,Ae.Z)(Pt,2),un=an[0],qt=an[1],tn=E.useState(null),mn=(0,Ae.Z)(tn,2),Tn=mn[0],on=mn[1],$t=function(Yn){on([Yn.clientX,Yn.clientY])},kn=Ot(j,wi,Ke&&Tn!==null?Tn:wn,He,De,te,it),Ln=(0,Ae.Z)(kn,11),Cn=Ln[0],Pn=Ln[1],En=Ln[2],ii=Ln[3],ri=Ln[4],qn=Ln[5],Ti=Ln[6],Li=Ln[7],Ei=Ln[8],_i=Ln[9],si=Ln[10],mi=oe(Mn,Fe,Ne,rt),Ai=(0,Ae.Z)(mi,2),dr=Ai[0],Ii=Ai[1],Ni=dr.has("click"),Gi=Ii.has("click")||Ii.has("contextMenu"),Ui=(0,X.Z)(function(){Ce||si()}),hi=function(){pe.current&&Ke&&Gi&&xt(!1)};Ve(j,wn,wi,Ui,hi),(0,_.Z)(function(){Ui()},[Tn,He]),(0,_.Z)(function(){j&&!(De!=null&&De[He])&&Ui()},[JSON.stringify(te)]);var nr=E.useMemo(function(){var Dn=V(De,N,_i,Ke);return m()(Dn,Ie==null?void 0:Ie(_i))},[_i,Ie,De,N,Ke]);E.useImperativeHandle(T,function(){return{nativeElement:ut.current,popupElement:Qn.current,forceAlign:Ui}});var Ji=E.useState(0),ir=(0,Ae.Z)(Ji,2),pr=ir[0],Vn=ir[1],gr=E.useState(0),sr=(0,Ae.Z)(gr,2),hr=sr[0],Fr=sr[1],Nr=function(){if(Se&&wn){var Yn=wn.getBoundingClientRect();Vn(Yn.width),Fr(Yn.height)}},Kr=function(){Nr(),Ui()},Gr=function(Yn){et(!1),si(),Ct==null||Ct(Yn)},bi=function(){return new Promise(function(Yn){Nr(),qt(function(){return Yn})})};(0,_.Z)(function(){un&&(si(),un(),qt(null))},[un]);function Qi(Dn,Yn,Fi,li){Mt[Dn]=function(pi){var kr;li==null||li(pi),xt(Yn,Fi);for(var xr=arguments.length,Wr=new Array(xr>1?xr-1:0),rs=1;rs<xr;rs++)Wr[rs-1]=arguments[rs];(kr=vt[Dn])===null||kr===void 0||kr.call.apply(kr,[vt,pi].concat(Wr))}}(Ni||Gi)&&(Mt.onClick=function(Dn){var Yn;pe.current&&Gi?xt(!1):!pe.current&&Ni&&($t(Dn),xt(!0));for(var Fi=arguments.length,li=new Array(Fi>1?Fi-1:0),pi=1;pi<Fi;pi++)li[pi-1]=arguments[pi];(Yn=vt.onClick)===null||Yn===void 0||Yn.call.apply(Yn,[vt,Dn].concat(li))});var mr=ot(j,Gi,wn,wi,wt,St,Wt,xt),Ur=dr.has("hover"),ur=Ii.has("hover"),Xi,_r;Ur&&(Qi("onMouseEnter",!0,At,function(Dn){$t(Dn)}),Qi("onPointerEnter",!0,At,function(Dn){$t(Dn)}),Xi=function(Yn){(j||Ce)&&wi!==null&&wi!==void 0&&wi.contains(Yn.target)&&xt(!0,At)},Ke&&(Mt.onMouseMove=function(Dn){var Yn;(Yn=vt.onMouseMove)===null||Yn===void 0||Yn.call(vt,Dn)})),ur&&(Qi("onMouseLeave",!1,st),Qi("onPointerLeave",!1,st),_r=function(){xt(!1,st)}),dr.has("focus")&&Qi("onFocus",!0,ct),Ii.has("focus")&&Qi("onBlur",!1,Pe),dr.has("contextMenu")&&(Mt.onContextMenu=function(Dn){var Yn;pe.current&&Ii.has("contextMenu")?xt(!1):($t(Dn),xt(!0)),Dn.preventDefault();for(var Fi=arguments.length,li=new Array(Fi>1?Fi-1:0),pi=1;pi<Fi;pi++)li[pi-1]=arguments[pi];(Yn=vt.onContextMenu)===null||Yn===void 0||Yn.call.apply(Yn,[vt,Dn].concat(li))}),Re&&(Mt.className=m()(vt.className,Re));var vr=E.useRef(!1);vr.current||(vr.current=Yt||j||Ce);var Dr=(0,p.Z)((0,p.Z)({},vt),Mt),Er={},Ir=["onContextMenu","onClick","onMouseDown","onTouchStart","onMouseEnter","onMouseLeave","onFocus","onBlur"];Ir.forEach(function(Dn){Rt[Dn]&&(Er[Dn]=function(){for(var Yn,Fi=arguments.length,li=new Array(Fi),pi=0;pi<Fi;pi++)li[pi]=arguments[pi];(Yn=Dr[Dn])===null||Yn===void 0||Yn.call.apply(Yn,[Dr].concat(li)),Rt[Dn].apply(Rt,li)})});var is=E.cloneElement(dt,(0,p.Z)((0,p.Z)({},Dr),Er)),Hr={x:qn,y:Ti},Vr=pt?(0,p.Z)({},pt!==!0?pt:{}):null;return E.createElement(E.Fragment,null,E.createElement(ve.Z,{disabled:!j,ref:Ut,onResize:Kr},E.createElement(se,{getTriggerDOMNode:Nn},is)),vr.current&&E.createElement(de.Provider,{value:vi},E.createElement(ge,{portal:Te,ref:Xn,prefixCls:N,popup:$n,className:m()(Vt,nr),style:vn,target:wn,onMouseEnter:Xi,onMouseLeave:_r,onPointerEnter:Xi,zIndex:ue,open:j,keepDom:Ce,fresh:Me,onClick:Ye,onPointerDownCapture:mr,mask:wt,motion:sn,maskMotion:ln,onVisibleChanged:Gr,onPrepare:bi,forceRender:Yt,autoDestroy:Ft,getPopupContainer:en,align:_i,arrow:Vr,arrowPos:Hr,ready:Cn,offsetX:Pn,offsetY:En,offsetR:ii,offsetB:ri,onAlign:Ui,stretch:Se,targetWidth:pr/Li,targetHeight:hr/Ei})))});return F}var Kt=qe(ce.Z)},96935:function(Xe,Ge,w){"use strict";w.d(Ge,{Z:function(){return E}});var p=w(7939),Ae=w(59301),xe=Object.defineProperty,ce=Object.defineProperties,Y=Object.getOwnPropertyDescriptors,m=Object.getOwnPropertySymbols,ve=Object.prototype.hasOwnProperty,U=Object.prototype.propertyIsEnumerable,o=(S,O,P)=>O in S?xe(S,O,{enumerable:!0,configurable:!0,writable:!0,value:P}):S[O]=P,X=(S,O)=>{for(var P in O||(O={}))ve.call(O,P)&&o(S,P,O[P]);if(m)for(var P of m(O))U.call(O,P)&&o(S,P,O[P]);return S},L=(S,O)=>ce(S,Y(O)),_=(S,O)=>{var P={};for(var H in S)ve.call(S,H)&&O.indexOf(H)<0&&(P[H]=S[H]);if(S!=null&&m)for(var H of m(S))O.indexOf(H)<0&&U.call(S,H)&&(P[H]=S[H]);return P},y=(S,O,P)=>new Promise((H,B)=>{var R=ge=>{try{q(P.next(ge))}catch(_e){B(_e)}},J=ge=>{try{q(P.throw(ge))}catch(_e){B(_e)}},q=ge=>ge.done?H(ge.value):Promise.resolve(ge.value).then(R,J);q((P=P.apply(S,O)).next())});const E=S=>{var O=S,{children:P}=O,H=_(O,["children"]);const[B,R]=(0,Ae.useState)(!1);return Ae.createElement(p.ZP,L(X({},H),{loading:B,onClick:J=>y(void 0,null,function*(){try{R(!0),yield H.onClick(J),R(!1)}catch(q){console.error(q),R(!1)}})}),P)}},48530:function(Xe,Ge,w){"use strict";var p=w(86204),Ae=w.n(p),xe=Object.defineProperty,ce=(U,o,X)=>o in U?xe(U,o,{enumerable:!0,configurable:!0,writable:!0,value:X}):U[o]=X,Y=(U,o,X)=>ce(U,typeof o!="symbol"?o+"":o,X),m=(U,o,X)=>new Promise((L,_)=>{var y=O=>{try{S(X.next(O))}catch(P){_(P)}},E=O=>{try{S(X.throw(O))}catch(P){_(P)}},S=O=>O.done?L(O.value):Promise.resolve(O.value).then(y,E);S((X=X.apply(U,o)).next())});class ve extends p.EventEmitter{constructor(o,X){super(),Y(this,"url"),Y(this,"body"),Y(this,"fullContent",""),Y(this,"controller",null),Y(this,"buffer",""),this.url=o,this.body=X}startStream(){return m(this,null,function*(){this.controller=new AbortController;const{signal:o}=this.controller;try{const X=yield fetch(this.url,{method:"POST",headers:{"Content-Type":"application/json; charset=utf-8"},credentials:"include",body:JSON.stringify(this.body),signal:o});if(!X.ok)throw new Error(`\u8BF7\u6C42\u5931\u8D25: ${X.status}`);const L=X.headers.get("content-type");if(!L)throw new Error("\u54CD\u5E94\u5934\u7F3A\u5C11 content-type");if(L.includes("application/json")){const E=yield X.json();this.emit("error",E);return}if(!L.includes("text/event-stream"))throw new Error("\u54CD\u5E94\u6570\u636E\u683C\u5F0F\u9519\u8BEF");const _=X.body.getReader(),y=new TextDecoder("utf-8");for(;;){const{done:E,value:S}=yield _.read();if(E)break;const O=y.decode(S,{stream:!0});this.buffer+=O;const P=this.buffer.split(`
`);this.buffer=P.pop()||"";for(const H of P)if(H.startsWith("data:")){const B=H.slice(5).trim();if(B==="[DONE]")break;try{const R=JSON.parse(B);R.data&&this.handleData(R.data)}catch(R){this.buffer=H+`
`+this.buffer,console.error("\u89E3\u6790 JSON \u5931\u8D25:",R)}}}this.emit("done",this.fullContent)}catch(X){X.name==="AbortError"?this.emit("cancelled",this.fullContent):this.emit("error",X.message)}})}handleData(o){o.content&&(this.fullContent+=o.content,this.emit("data",{chunk:o,full:this.fullContent}))}cancelRequest(){var o;(o=this.controller)==null||o.abort()}}Ge.Z=ve},95532:function(Xe,Ge,w){"use strict";w.d(Ge,{Z:function(){return y}});var p=w(59301),Ae=w(30641),xe=w(77019),ce=w(5269),Y={smartWrp:"smartWrp___NjRcB"},m=w(50258),ve=w(82636),U=w(96935),o=w(59301),X=(E,S,O)=>new Promise((P,H)=>{var B=q=>{try{J(O.next(q))}catch(ge){H(ge)}},R=q=>{try{J(O.throw(q))}catch(ge){H(ge)}},J=q=>q.done?P(q.value):Promise.resolve(q.value).then(B,R);J((O=O.apply(E,S)).next())});const L=`<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>\u5FEB\u901F\u6392\u5E8F\u6F14\u793A</title>
<style>
body {
font-family: Arial, sans-serif;
text-align: center;
margin: 20px;
}
.array-container {
display: flex;
justify-content: center;
align-items: flex-end;
height: 300px;
margin-top: 20px;
}
.bar {
width: 30px;
margin: 0 2px;
background-color: #4caf50;
color: white;
display: flex;
justify-content: center;
align-items: center;
border-radius: 5px;
transition: all 0.3s ease;
}
.bar.sorted {
background-color: #ff9800;
}
.bar.pivot {
background-color: #f44336;
}
</style>
</head>
<body>
<h1>\u5FEB\u901F\u6392\u5E8F\u7B97\u6CD5\u6F14\u793A</h1>
<button id="start-sort">\u5F00\u59CB\u6392\u5E8F</button>
<div class="array-container" id="array-container"></div>
<script>
const array = [34, 7, 23, 32, 5, 62]; // \u56FA\u5B9A\u6570\u7EC4
let bars = [];
// \u521D\u59CB\u5316\u6570\u7EC4\u663E\u793A
function initArrayDisplay() {
const container = document.getElementById('array-container');
container.innerHTML = '';
bars = array.map(value => {
const bar = document.createElement('div');
bar.className = 'bar';
bar.style.height = \`\${value * 5}px\`;
bar.textContent = value;
container.appendChild(bar);
return bar;
});
}
// \u9AD8\u4EAE\u67D0\u4E2A\u8303\u56F4\u5185\u7684\u67F1\u5B50
function highlightBars(indices, className) {
indices.forEach(index => bars[index].classList.add(className));
}
// \u79FB\u9664\u9AD8\u4EAE
function removeHighlightBars(indices, className) {
indices.forEach(index => bars[index].classList.remove(className));
}
// \u5FEB\u901F\u6392\u5E8F\u4E3B\u51FD\u6570
async function quickSort(arr, left = 0, right = arr.length - 1) {
if (left >= right) return;
const pivotIndex = await partition(arr, left, right);
await quickSort(arr, left, pivotIndex - 1);
await quickSort(arr, pivotIndex + 1, right);
}
// \u5206\u533A\u51FD\u6570
async function partition(arr, left, right) {
const pivot = arr[right];
let i = left - 1;
highlightBars([right], 'pivot'); // \u9AD8\u4EAE\u57FA\u51C6\u503C
for (let j = left; j < right; j++) {
highlightBars([j], 'sorted'); // \u9AD8\u4EAE\u5F53\u524D\u6BD4\u8F83\u5143\u7D20
await sleep(500);
if (arr[j] <= pivot) {
i++;
[arr[i], arr[j]] = [arr[j], arr[i]];
// \u66F4\u65B0\u67F1\u5B50\u9AD8\u5EA6
bars[i].style.height = \`\${arr[i] * 5}px\`;
bars[i].textContent = arr[i];
bars[j].style.height = \`\${arr[j] * 5}px\`;
bars[j].textContent = arr[j];
await sleep(500);
}
removeHighlightBars([j], 'sorted'); // \u79FB\u9664\u9AD8\u4EAE
}
// \u5C06\u57FA\u51C6\u503C\u653E\u5230\u6B63\u786E\u4F4D\u7F6E
[arr[i + 1], arr[right]] = [arr[right], arr[i + 1]];
bars[i + 1].style.height = \`\${arr[i + 1] * 5}px\`;
bars[i + 1].textContent = arr[i + 1];
bars[right].style.height = \`\${arr[right] * 5}px\`;
bars[right].textContent = arr[right];
removeHighlightBars([right], 'pivot'); // \u79FB\u9664\u57FA\u51C6\u503C\u9AD8\u4EAE
highlightBars([i + 1], 'sorted'); // \u9AD8\u4EAE\u6700\u7EC8\u4F4D\u7F6E
await sleep(500);
removeHighlightBars([i + 1], 'sorted');
return i + 1;
}
// \u5EF6\u8FDF\u51FD\u6570
function sleep(ms) {
return new Promise(resolve => setTimeout(resolve, ms));
}
// \u5F00\u59CB\u6392\u5E8F\u6309\u94AE\u70B9\u51FB\u4E8B\u4EF6
document.getElementById('start-sort').addEventListener('click', () => {
quickSort(array);
});
// \u521D\u59CB\u5316\u9875\u9762
initArrayDisplay();
<\/script>
</body>
</html>`;function _({open:E=!0,onChange:S,defaultValue:O,placement:P,width:H,height:B,extra:R,onDynamic:J,onOpenChange:q,showExtra:ge=!0}){const _e=(0,p.useRef)(null),se=(0,p.useRef)(null),[we,de]=(0,p.useState)(O||""),[ie,oe]=(0,p.useState)(O||""),[K,k]=(0,p.useState)(!!E),[V,$]=(0,p.useState)(1),ae={selectOnLineNumbers:!0};(0,p.useEffect)(()=>{E&&(de(O),oe(O),k(!0))},[E,O]),(0,p.useEffect)(()=>{we!==""&&(clearTimeout(se.current),se.current=setTimeout(()=>{const x=document.createElement("iframe");if(x.style.width="100%",x.style.height="100%",x.style.border="0",_e.current){_e.current.innerHTML="",_e.current.appendChild(x);const b=x.contentDocument||x.contentWindow.document;b.open(),b.write(we),b.close()}},1e3))},[E,we]);const re=x=>{de(x),S==null||S(x,ie)};return o.createElement(Ae.Z,{title:"\u667A\u80FD\u52A8\u6548",placement:"right",open:K,width:"100%",height:B||"100vh",rootClassName:Y.smartWrp,destroyOnClose:!0,onClose:()=>{k(!1),q==null||q(we)},extra:ge&&o.createElement("div",null,o.createElement(ve.tp,{dataSource:[{name:"\u9884\u89C8",id:1},{name:"\u4EE3\u7801",id:2}],value:V,onChange:x=>$(x)}),o.createElement(U.Z,{type:"primary",className:"ml20",onClick:()=>X(this,null,function*(){yield J(we,()=>{k(!1)})})},"\u4FDD\u5B58\u81F3\u8BFE\u4EF6"))},o.createElement(xe.Z,{className:"h100"},o.createElement(ce.Z,{flex:"1",style:{background:"#f6f7fb",borderRight:"#e8eaf1 1px solid",display:V===1?"block":"none"}},o.createElement("div",{className:"h100",ref:_e})),o.createElement(ce.Z,{flex:"1",style:{display:V===2?"block":"none"}},o.createElement(m.ZP,{height:"90vh",value:O,language:"html",theme:"vs",showMiniMap:!1,options:ae,onChange:re}))))}var y=_},12709:function(Xe,Ge,w){"use strict";w.d(Ge,{Z:function(){return we}});var p=w(59301),Ae=w(97831),xe=w(66328),ce=w(3977),Y=w(18369),m=w(56102),ve={answer:"answer___UngkO",imgWrap:"imgWrap___ORTRf",codeCopy:"codeCopy___re8vm",runCode:"runCode___MYs9m"},U=w(6767),o=w(90083),X=w(23513),L=w(30084),_=w(10787),y=w(48850),E=w(95532),S=Object.defineProperty,O=Object.defineProperties,P=Object.getOwnPropertyDescriptors,H=Object.getOwnPropertySymbols,B=Object.prototype.hasOwnProperty,R=Object.prototype.propertyIsEnumerable,J=(de,ie,oe)=>ie in de?S(de,ie,{enumerable:!0,configurable:!0,writable:!0,value:oe}):de[ie]=oe,q=(de,ie)=>{for(var oe in ie||(ie={}))B.call(ie,oe)&&J(de,oe,ie[oe]);if(H)for(var oe of H(ie))R.call(ie,oe)&&J(de,oe,ie[oe]);return de},ge=(de,ie)=>O(de,P(ie)),_e=(de,ie)=>{var oe={};for(var K in de)B.call(de,K)&&ie.indexOf(K)<0&&(oe[K]=de[K]);if(de!=null&&H)for(var K of H(de))ie.indexOf(K)<0&&R.call(de,K)&&(oe[K]=de[K]);return oe},we=({onFinish:de,value:ie,streamingStatus:oe,cancelIndex:K,loadImage:k,onDynamic:V,isHiddenHtml:$})=>{const[ae,re]=(0,p.useState)(""),[x,b]=(0,p.useState)({defaultValue:"",open:0,language:"",placement:"right",height:"100vh"}),[W,fe]=(0,p.useState)(0),[ke,je]=(0,p.useState)(!1),yt=Dt=>{const Ve=/(```[\s\S]*?```|`[^`]*`)/g;let Jt=0,ot="",Et=null;const qe=Kt=>(Kt=Kt.replace(/\$\$([\s\S]*?)\$\$/g,(Te,F)=>{const v=F.trim();return`<mathx data-text="${v}">$$${v}$$</mathx>`}),Kt=Kt.replace(/\\\[([\s\S]*?[\\_^{}][\s\S]*?)\\\]/g,(Te,F)=>{const v=F.trim();return`<mathx data-text="${v}">$$${v}$$</mathx>`}),Kt=Kt.replace(/\\\(([\s\S]*?)\\\)/g,(Te,F)=>{const v=F.trim();return`<mathx data-text="${v}">$${v}$</mathx>`}),Kt=Kt.replace(/\$(?!\$)([^\n$]+?)\$(?!\$)/g,(Te,F)=>{const v=F.trim();return`<mathx data-text="${v}">$${v}$</mathx>`}),Kt);for(;(Et=Ve.exec(Dt))!==null;)Et.index>Jt&&(ot+=qe(Dt.slice(Jt,Et.index))),ot+=Et[0],Jt=Et.index+Et[0].length;return Jt<Dt.length&&(ot+=qe(Dt.slice(Jt))),ot},ht=()=>{je(!0),de==null||de()};(0,p.useEffect)(()=>{const Dt=k?`\u8FD9\u662F\u6839\u636E\u60A8\u7684\u63CF\u8FF0\u751F\u6210\u7684\u56FE\u7247\uFF1A
${ie}`:ie,Ve=yt(Dt);if(!ke)if(k||!oe||K>0){re(Ve),fe(Ve.length),(!oe||K>0)&&!k&&ht();return}else if((Ve==null?void 0:Ve.length)<4)re(Ve),fe(Ve.length);else if(W<Ve.length){const Jt=Ve.length-W,ot=setInterval(()=>{re(Ve.slice(0,W+2)),fe(Et=>Et+2)},Jt>10?Math.max(500/(Jt/2),20):50);return()=>clearInterval(ot)}else oe||ht()},[ie,oe,K,k,W]);const Ot=(0,p.useMemo)(()=>p.createElement("section",{className:`${ve.answer} fadeIn animated edu_md`},p.createElement(Ae.UG,{remarkPlugins:[L.Z,_.Z],rehypePlugins:[X.Z,ce.Z],components:{code(Dt){var Ve=Dt,{node:Jt,inline:ot,className:Et,children:qe}=Ve,Kt=_e(Ve,["node","inline","className","children"]);const Te=/language-(\w+)/.exec(Et||""),F=String(qe).trim();return ot||!Te?p.createElement("code",q({className:Et},Kt),qe):p.createElement("code",{className:ve.codeCopy,"data-text":`\`\`\`${Te?Te[1]:""}
${qe}
\`\`\``},!$&&p.createElement(m.CopyToClipboard,{text:F,onCopy:()=>U.ZP.success({content:"\u590D\u5236\u6210\u529F",key:"copy"})},p.createElement("button",null,"\u590D\u5236")),!$&&Te[1]==="html"&&ke&&p.createElement("button",{className:ve.runCode,onClick:()=>{b(q({},ge(q({},x),{open:++x.open,defaultValue:F,language:Te[1]})))}},"\u8FD0\u884CHTML"),p.createElement(xe.Z,q({wrapLongLines:!0,style:Y.Z,language:Te[1],PreTag:"div",showLineNumbers:!0,lineNumberStyle:{minWidth:"40px"}},Kt),F))},img({node:Dt}){var Ve;const Jt=(Ve=Dt.properties)==null?void 0:Ve.src;return p.createElement(o.Z,{src:Jt,width:320,"data-text":Jt,onLoad:()=>k&&setTimeout(()=>ht(),500)})},a:Dt=>{var Ve=Dt,{node:Jt}=Ve,ot=_e(Ve,["node"]);return p.createElement("a",ge(q({},ot),{target:"_blank",rel:"noopener noreferrer"}))}}},ke?ae:`${ae}__`)),[ae,ke]);return p.createElement(p.Fragment,null,p.createElement(E.Z,{defaultValue:x.defaultValue,open:x.open,language:x.language,height:x.height,onChange:(Dt,Ve)=>{re(ae.replaceAll(Ve,Dt))},onDynamic:V}),Ot)}},52516:function(Xe,Ge,w){"use strict";w.d(Ge,{Z:function(){return ve}});var p=w(59301),Ae=w(65862),xe={draggableImage:"draggableImage___vcTso",img:"img___xAyno",close:"close___WUtfj",extraNode:"extraNode___tnBrt",specialImg:"specialImg___yAPav",bubble:"bubble___qNdfF",upImg:"upImg___Mx6QM"},ce=w(74128),Y=w(37166),ve=({src:U,onClick:o,topPercentage:X=.62,draggableExtraNode:L,showAvatarEditData:_})=>{var y;const E=(0,p.useRef)(null),S=(0,p.useRef)(!1),O=(0,p.useRef)(!1),[P,H]=(0,p.useState)(window.innerHeight*X),[B,R]=(0,p.useState)(!1),J=10;return(0,p.useEffect)(()=>{if(E.current){let q=function(de){var ie;S.current=!0,we=de.pageY,se=de.pageY-(((ie=E.current)==null?void 0:ie.getBoundingClientRect().top)||0),(0,Ae.kk)("none"),document.onselectstart=function(){return!1}},ge=function(){S.current&&!O.current&&o&&o(),S.current=!1,O.current=!1,(0,Ae.kk)("auto"),document.onselectstart=null},_e=function(de){var ie;if(S.current){const K=de.pageY-se,k=window.innerHeight-(((ie=E.current)==null?void 0:ie.offsetHeight)||0)-50,V=50;if(!O.current&&Math.abs(we-de.pageY)>J&&(O.current=!0),O.current){let $=Math.max(V,Math.min(K,k));H($)}}},se=0,we=0;return E.current.addEventListener("mousedown",q),document.addEventListener("mousemove",_e),document.addEventListener("mouseup",ge),()=>{var de,ie;(ie=(de=E==null?void 0:E.current)==null?void 0:de.removeEventListener)==null||ie.call(de,"mousedown",q),document.removeEventListener("mousemove",_e),document.removeEventListener("mouseup",ge)}}},[o]),(0,p.useEffect)(()=>{const q=()=>{H(window.innerHeight*X)};return window.addEventListener("resize",q),()=>{window.removeEventListener("resize",q)}},[X]),p.createElement("div",{className:xe.draggableImage,style:{top:`${P}px`,display:B?"none":"block",cursor:S.current?"grabbing":"grab"},ref:E},L&&p.createElement("div",{className:xe.extraNode,onMouseUp:q=>q.stopPropagation(),onMouseDownCapture:q=>q.stopPropagation()},L),_!=null&&_.nickname?p.createElement("div",{className:xe.specialImg},p.createElement("div",{className:xe.bubble},_==null?void 0:_.nickname),p.createElement("img",{className:xe.upImg,src:_!=null&&_.headImgId?((y=ce.Z)==null?void 0:y.API_SERVER)+"/api/attachments/"+(_==null?void 0:_.headImgId):Y,width:60,draggable:"false"})):p.createElement("img",{className:xe.img,src:U,width:60,draggable:"false"}),p.createElement("i",{className:`iconfont icon-tupianguanbi ${xe.close}`,onMouseUp:q=>{q.stopPropagation(),R(!0)}}))}},86409:function(Xe,Ge,w){"use strict";w.d(Ge,{r:function(){return P}});var p=w(59301),Ae=w(44104),xe=w(62957),ce=w(65862),Y=w(74128),m=w(82636),ve="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAABb0lEQVR4AZxQPUsDQRSc3Xx4Fy9EMATRIIIpFAyCsbIV0cYilfbqb7AL/gVLjRLEwk5bwQRBK2NlejuroKKJwuVyt+u+44Qkd9GQ4719s3MzA2+5vD2YEOXCpVMuNO2bgvyr29f7rfphqvZ+lMvC+7hjixMhkZcShsf1HRIyKqxm1v5+vv84XVgmIVfHquqBirGQ0jEIp5Vofb7cvR3PrVCAptiBivEIjPQaIsY0wnpK50y/oICBzL8iLbmIRGZL9TbiM5tpX4AkZW4PUk8SctvFSztQ7+TeOw7uC4BkgD4GMZ+HjE9BGpMuRmwcbniHm6A/QLHCbMJ6LMGZXYeT2YBVLYE49ctXgQGk0kM27GoR9kMRetgmKrD7BpBai4agjYQI9u2AAIF249VnaDfqCHzFXiVjDOzprJcGr52Dc+bnfYwiovqoOrsrosW6Ce9GK5geHmaYFFAZxul5Kty0+K5a7Uqt/uWR/w7Skoe8PwAAAP//m7VE6gAAAAZJREFUAwCRcYHLyINd+gAAAABJRU5ErkJggg==",U="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAB6klEQVR4AYySS0gbQRjH/7tJTCQStdWmwfpKpYWWttLS9lDqoVB6aHsJpS1BEEEURQ8qnkQPKuLJg3jVgwcFIQevKoL4AjW+8EHiK6gYH2Rl1UTdmF13BhwfIYvL/ma++eb7/vMN3/BQP/ea9GHaG5anPJKixffqZVdF26pRTWE//7psKaGxY9PZ3e/negb2cE3v0D7mV09YIDEOBckx5zkfr2jbeUbWBN4QCrt8e2dVs14RMx4RYwtH8PmDGJgMoN21jYlFkcQxTkKR9+5lwf2/wfuZOHnw3EdiJJr1+P0lGV/fWZCnQnwEn/+MTBSOoxNCF/KTzZ3zEUfdupNXoDQBSmQ3IME1LGBwWkTfqEAjLapoXm4StcnQXJKDpuLnlLrCbEPRT2sXP9+Z21r+J+NXjTMLlf8yUVuQjTJHBuoL7WgpzUFaqonkUlKS4mB9ZGSkJsfpaBfe2i3HWbZ43CbdaoJBT7dpcqwhKmJfuMDixqkmATHM9KIEZBm4jCiayIoSW+BQlLDiC2oiHGtU8MaegL/frJq8SDfHrmBh7RQ9g+qL1MC7FYwtYI7XqW0i7brh06tE5P+wMV5malRgSzGCXOM2aaqPHXnPiOqC2aTD08fGO5Cq7uWxJRXQ8wq5lNpA5n+QwYE7uAIAAP//pt/DRgAAAAZJREFUAwBZyguAkhNiOwAAAABJRU5ErkJggg==",o=w(38147),X=w(56656),L=w.n(X),_=w(64270),y=w.n(_),E=w(12709),S=w(4676),O=(H,B,R)=>new Promise((J,q)=>{var ge=we=>{try{se(R.next(we))}catch(de){q(de)}},_e=we=>{try{se(R.throw(we))}catch(de){q(de)}},se=we=>we.done?J(we.value):Promise.resolve(we.value).then(ge,_e);se((R=R.apply(H,B)).next())});const P=H=>{const B=[{key:"markdown",name:"\u5BFC\u51FA\u4E3AMarkdown",icon:ve},{key:"word",name:"\u5BFC\u51FA\u4E3AWord",icon:U}],R=de=>de==null?"":String(de).replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;").replace(/'/g,"&#039;"),J=de=>O(void 0,null,function*(){return new Promise(ie=>{const oe=document.createElement("div");oe.style.position="fixed",oe.style.left="-9999px",oe.style.top="0",oe.style.width="720px",document.body.appendChild(oe);let K=null,k=!1;const V=de==null?void 0:de.trim().startsWith("<img");try{if(V){oe.innerHTML=de?`<p style="color:#434D6C;">\u8FD9\u662F\u6839\u636E\u60A8\u7684\u63CF\u8FF0\u751F\u6210\u7684\u56FE\u7247\uFF1A</p>${de}`:"";const fe=oe.querySelector("img");if(fe){fe.addEventListener("load",()=>{try{const je=document.createElement("canvas");je.width=320,je.height=320;const yt=je.getContext("2d");yt&&yt.drawImage(fe,0,0);const ht=je.toDataURL("image/png");fe.src=ht}catch(je){console.error("\u56FE\u7247\u8F6C base64 \u5931\u8D25",je)}const ke=oe.innerHTML;oe.parentNode&&oe.parentNode.removeChild(oe),ie(ke)}),fe.addEventListener("error",()=>{const ke=oe.innerHTML;oe.parentNode&&oe.parentNode.removeChild(oe),ie(ke)});return}else{const ke=oe.innerHTML;oe.parentNode&&oe.parentNode.removeChild(oe),ie(ke);return}}else if(S.render)S.render(p.createElement(E.Z,{value:de,streamingStatus:!1}),oe);else{oe.innerText=de!=null?de:"";const fe=oe.innerHTML;document.body.removeChild(oe),ie(fe);return}}catch(fe){console.error("[exportHistory] render Answer failed:",fe),oe.innerText=typeof de=="string"?de:String(de!=null?de:"");const ke=oe.innerHTML;try{k&&K&&K.unmount?K.unmount():S.unmountComponentAtNode&&S.unmountComponentAtNode(oe)}catch(je){}document.body.removeChild(oe),ie(ke);return}let $=Date.now();const ae=new MutationObserver(()=>{$=Date.now()});ae.observe(oe,{childList:!0,subtree:!0,attributes:!0,characterData:!0});const re=350,x=6e3,b=Date.now(),W=()=>{const fe=Date.now();if(fe-$>re){ae.disconnect();const ke=oe.innerHTML;try{k&&K&&K.unmount?K.unmount():S.unmountComponentAtNode&&S.unmountComponentAtNode(oe)}catch(je){}oe.parentNode&&oe.parentNode.removeChild(oe),ie(ke);return}if(fe-b>x){ae.disconnect();const ke=oe.innerHTML;try{k&&K&&K.unmount?K.unmount():S.unmountComponentAtNode&&S.unmountComponentAtNode(oe)}catch(je){}oe.parentNode&&oe.parentNode.removeChild(oe),ie(ke);return}setTimeout(W,re)};setTimeout(W,re)})}),q=de=>L()(de).format("YYYY-MM-DD HH:mm:ss"),ge=(de,ie,oe)=>O(void 0,null,function*(){return(yield Promise.all(de.map(k=>O(void 0,null,function*(){var V,$;let ae="";try{ae=yield J(k.answer)}catch(re){console.error("[exportHistory] renderAnswer error:",re),ae=R(String((V=k.answer)!=null?V:""))}return`
<div class="message">
<p class="user-name">${R(ie)}<span class="timestamp">${q(k.updated_at)}</span></p>
<pre class="code">${R(($=k.question)!=null?$:"")}</pre>
</div>
<div class="message">
<p class="user-name">${R(oe)}</p>
<div class="code">${ae}</div>
</div>
`})))).join("")}),_e=de=>O(void 0,null,function*(){const ie=yield ge(de.data,de.my_user_name,de.user_name),oe=`export-id-${String(Math.random()).slice(-6)}`,K=`
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<style>
.wrap {
font-family: Arial, sans-serif;
line-height: 1.6;
color: #333;
padding: 20px 20px 0 20px;
background-color: #f9f9f9;
position:fixed;
left: 0;
top: 0;
z-index: 100;
width: 100vw;
height: 100vh;
overflow: auto;
box-sizing: border-box;
}
.message {
margin-bottom: 20px;
padding: 10px;
border-radius: 5px;
background-color: #fff;
box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}
.user-name {
font-size: 14px;
font-weight: bold;
color: #333;
margin: 0;
}
.timestamp {
display: block;
font-size: 12px;
color: #666;
margin-top: 5px;
}
pre.code {
background-color: #f5f5f5;
padding: 10px;
border-radius: 5px;
overflow-x: auto;
white-space: pre-wrap;
word-wrap: break-word;
margin: 10px 0 0;
}
.code > .animated {
animation-duration: 0s;
}
.code > img {
width: 320px;
}
</style>
</head>
<body>
<div class='wrap' id='${oe}'>
${ie}
</div>
</body>
</html>
`,k=document.createElement("div");k.innerHTML=K.replace(/box-shadow/g,"// box-shadow"),document.body.appendChild(k);const V=document.getElementById(oe);if(!V){console.error("PDF \u5143\u7D20\u672A\u627E\u5230"),k.parentNode&&k.parentNode.removeChild(k);return}V.style.width="auto",V.style.height="auto",V.style.position="initial";try{const ae=(yield y()(V,{useCORS:!0,backgroundColor:"#fff"})).toDataURL("image/png"),re=document.createElement("a");re.href=ae,re.download=`\u5386\u53F2\u5BF9\u8BDD-${de.my_user_name}-${L()().format("YYYYMMDDHHmmss")}.png`,re.click()}catch($){console.error("[exportHistory] html2canvas error:",$)}finally{k.parentNode&&k.parentNode.removeChild(k)}});let se="markdown";const we=()=>{const[de,ie]=(0,p.useState)(se);return se=de,p.createElement(Ae.Z,{size:30},B.map(oe=>p.createElement(m.op,{key:oe.key,style:de===oe.key?{border:"1px solid #165dff",color:"#165dff"}:{},onClick:()=>ie(oe.key),shape:"default",icon:p.createElement("img",{src:oe.icon})},oe.name)))};xe.default.confirm({centered:!0,icon:null,okText:"\u786E\u8BA4",width:538,cancelText:"\u53D6\u6D88",title:"\u5BFC\u51FA\u5386\u53F2\u5BF9\u8BDD",content:p.createElement(we,null),onOk:()=>O(void 0,null,function*(){var de,ie,oe;if(se==="image"){const k=yield(0,o.ZP)(`/api/course_qna_sessions/${H}.json`,{method:"get"});if((k==null?void 0:k.status)===0){const V=(ie=(de=k==null?void 0:k.data)==null?void 0:de.messages)==null?void 0:ie.map(ae=>({updated_at:ae.updated_at,question:ae.question,answer:ae.answer})),$={my_user_name:(oe=k==null?void 0:k.data)==null?void 0:oe.user_name,user_name:"AI\u56DE\u7B54",data:V};yield _e($)}return}const K=`${Y.Z.API_SERVER}/api/course_qna_sessions/${H}/download_chat_data.json?file_type=${se}`;(0,ce.Nd)(null,K)})})}},30688:function(Xe,Ge,w){"use strict";var p=w(59301),Ae=Object.defineProperty,xe=Object.getOwnPropertySymbols,ce=Object.prototype.hasOwnProperty,Y=Object.prototype.propertyIsEnumerable,m=(_,y,E)=>y in _?Ae(_,y,{enumerable:!0,configurable:!0,writable:!0,value:E}):_[y]=E,ve=(_,y)=>{for(var E in y||(y={}))ce.call(y,E)&&m(_,E,y[E]);if(xe)for(var E of xe(y))Y.call(y,E)&&m(_,E,y[E]);return _},U=(_,y)=>{var E={};for(var S in _)ce.call(_,S)&&y.indexOf(S)<0&&(E[S]=_[S]);if(_!=null&&xe)for(var S of xe(_))y.indexOf(S)<0&&Y.call(_,S)&&(E[S]=_[S]);return E};const o=w(20441),X={};o.keys().forEach(_=>{const y=_.replace("./","").replace(".svg","");X[y]=o(_)});const L=_=>{var y=_,{filename:E}=y,S=U(y,["filename"]),O;const P=((O=E==null?void 0:E.split(".").pop())==null?void 0:O.toLowerCase())||"unknown",H=X[P]||X.default;return p.createElement("img",ve({src:H,alt:P},S))};Ge.Z=L},30003:function(Xe,Ge,w){"use strict";w.d(Ge,{Z:function(){return X}});var p=w(59301),Ae={flex_box_center:"flex_box_center___kyfCX",flex_space_between:"flex_space_between___GHTzD",flex_box_vertical_center:"flex_box_vertical_center___FdgNd",flex_box_center_end:"flex_box_center_end___LMVYD",flex_box_column:"flex_box_column___Yb2bC",f_l_c:"f_l_c___nwLBO",officediv:"officediv___KkKIB",preclass:"preclass___SCKdC"},xe=w(37285),ce=w(30688),Y=w(25399),m=w(37639),U=({item:L})=>{var _,y,E,S,O;const[P,H]=(0,p.useState)(!1);console.log("----",L);let B=[{name:"subject",icon:p.createElement("i",{style:{width:16,height:16,marginRight:5,color:"#2054C9"},className:"iconfont icon-kecheng1"})},{name:"shixun",icon:p.createElement("i",{style:{width:16,height:16,marginRight:5,color:"#2054C9"},className:"iconfont icon-shixunti2"})},{name:"challenge",icon:p.createElement("i",{style:{width:16,height:16,marginRight:5,color:"#2054C9"},className:"iconfont icon-shixunti2"})},{name:"document",icon:p.createElement(ce.Z,{filename:L==null?void 0:L.name,style:{width:16,height:16,marginRight:5}})}];return p.createElement("div",{className:Ae.f_l_c},p.createElement(Y.Z,{title:L==null?void 0:L.name},p.createElement(m.Z,{placement:"top",content:p.createElement("div",null,p.createElement(xe.Z,null),p.createElement("pre",{className:Ae.preclass,style:{maxWidth:600,maxHeight:400}},(L==null?void 0:L.type)==="document"&&((_=L==null?void 0:L.contents)==null?void 0:_.toString()),(L==null?void 0:L.type)!=="document"&&p.createElement("a",{target:"_blank",href:(y=L==null?void 0:L.contents)==null?void 0:y.toString()},(E=L==null?void 0:L.contents)==null?void 0:E.toString()))),title:p.createElement("div",null,(S=B==null?void 0:B.find(R=>(R==null?void 0:R.name)===L.type))==null?void 0:S.icon,L==null?void 0:L.name),trigger:"click",open:P,onOpenChange:R=>{H(R)}},p.createElement("div",{className:Ae.officediv},(O=B==null?void 0:B.find(R=>(R==null?void 0:R.name)===L.type))==null?void 0:O.icon,L==null?void 0:L.name))))},X=({Filelist:L})=>p.createElement("div",null,p.createElement("div",{style:{display:"flex",alignItems:"center"}},p.createElement("span",{style:{minWidth:40,fontWeight:500,color:"#333"}},"\u5F15\u7528"),p.createElement(xe.Z,{style:{flex:1,minWidth:"calc(100% - 40px)"}})),p.createElement("div",{className:Ae.f_l_c},L==null?void 0:L.map(_=>p.createElement(U,{item:_}))))},28044:function(Xe,Ge,w){"use strict";w.d(Ge,{Z:function(){return q}});var p=w(59301),Ae={select:"select___Kt_GE",box:"box___S5_ly",text:"text___dtZDv",itemWrap:"itemWrap___xmw7x",item:"item___io6Bx",active:"active___nHRTI"},xe=w(44104),ce=Object.defineProperty,Y=Object.getOwnPropertySymbols,m=Object.prototype.hasOwnProperty,ve=Object.prototype.propertyIsEnumerable,U=(ge,_e,se)=>_e in ge?ce(ge,_e,{enumerable:!0,configurable:!0,writable:!0,value:se}):ge[_e]=se,o=(ge,_e)=>{for(var se in _e||(_e={}))m.call(_e,se)&&U(ge,se,_e[se]);if(Y)for(var se of Y(_e))ve.call(_e,se)&&U(ge,se,_e[se]);return ge};const X=ge=>React.createElement("svg",o({className:"logo1_svg__icon",viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg",width:200,height:200},ge),React.createElement("path",{d:"M1019.407 620.8 891.834 397.781 946.49 293.12a29.099 29.099 0 0 0 6.4-36.395l-70.187-126.592a30.08 30.08 0 0 0-24.576-13.653H597.519L539.194 14.507a27.35 27.35 0 0 0-20.907-14.55H380.644a29.141 29.141 0 0 0-24.618 14.55v5.546L225.806 243.03H100.923a29.184 29.184 0 0 0-25.515 13.654L3.428 384.085a32.768 32.768 0 0 0 0 29.184L132.836 638.08 74.511 740.053a32.768 32.768 0 0 0 0 29.056l66.517 116.566a29.907 29.907 0 0 0 25.515 14.506H427.15l62.848 109.227A30.08 30.08 0 0 0 512.783 1024H660.41a29.141 29.141 0 0 0 24.576-14.55l128.469-224.853h114.773a31.915 31.915 0 0 0 24.662-15.445l66.474-117.419a28.16 28.16 0 0 0 0-30.976l.043.043zm-161.28 14.592L791.61 512.469 518.287 993.963l-74.752-122.88h-273.28l65.621-119.211h139.392L101.86 272.213h143.062L380.687 30.08l68.352 119.253-70.187 122.88H925.54l-69.205 121.942 137.6 241.194H858.17z",fill:"#605BEC"}),React.createElement("path",{d:"m499.983 699.307 174.379-274.731H324.708z",fill:"#605BEC"}));var L="data:image/svg+xml;base64,PHN2ZyBjbGFzcz0iaWNvbiIgdmlld0JveD0iMCAwIDEwMjQgMTAyNCIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIiB3aWR0aD0iMjAwIiBoZWlnaHQ9IjIwMCI+PHBhdGggZD0iTTEwMTkuNDA3IDYyMC44IDg5MS44MzQgMzk3Ljc4MSA5NDYuNDkgMjkzLjEyYTI5LjA5OSAyOS4wOTkgMCAwIDAgNi40LTM2LjM5NWwtNzAuMTg3LTEyNi41OTJhMzAuMDggMzAuMDggMCAwIDAtMjQuNTc2LTEzLjY1M0g1OTcuNTE5TDUzOS4xOTQgMTQuNTA3YTI3LjM1IDI3LjM1IDAgMCAwLTIwLjkwNy0xNC41NUgzODAuNjQ0YTI5LjE0MSAyOS4xNDEgMCAwIDAtMjQuNjE4IDE0LjU1djUuNTQ2TDIyNS44MDYgMjQzLjAzSDEwMC45MjNhMjkuMTg0IDI5LjE4NCAwIDAgMC0yNS41MTUgMTMuNjU0TDMuNDI4IDM4NC4wODVhMzIuNzY4IDMyLjc2OCAwIDAgMCAwIDI5LjE4NEwxMzIuODM2IDYzOC4wOCA3NC41MTEgNzQwLjA1M2EzMi43NjggMzIuNzY4IDAgMCAwIDAgMjkuMDU2bDY2LjUxNyAxMTYuNTY2YTI5LjkwNyAyOS45MDcgMCAwIDAgMjUuNTE1IDE0LjUwNkg0MjcuMTVsNjIuODQ4IDEwOS4yMjdBMzAuMDggMzAuMDggMCAwIDAgNTEyLjc4MyAxMDI0SDY2MC40MWEyOS4xNDEgMjkuMTQxIDAgMCAwIDI0LjU3Ni0xNC41NWwxMjguNDY5LTIyNC44NTNoMTE0Ljc3M2EzMS45MTUgMzEuOTE1IDAgMCAwIDI0LjY2Mi0xNS40NDVsNjYuNDc0LTExNy40MTlhMjguMTYgMjguMTYgMCAwIDAgMC0zMC45NzZsLjA0My4wNDN6bS0xNjEuMjggMTQuNTkyTDc5MS42MSA1MTIuNDY5IDUxOC4yODcgOTkzLjk2M2wtNzQuNzUyLTEyMi44OGgtMjczLjI4bDY1LjYyMS0xMTkuMjExaDEzOS4zOTJMMTAxLjg2IDI3Mi4yMTNoMTQzLjA2MkwzODAuNjg3IDMwLjA4bDY4LjM1MiAxMTkuMjUzLTcwLjE4NyAxMjIuODhIOTI1LjU0bC02OS4yMDUgMTIxLjk0MiAxMzcuNiAyNDEuMTk0SDg1OC4xN3oiIGZpbGw9IiM2MDVCRUMiLz48cGF0aCBkPSJtNDk5Ljk4MyA2OTkuMzA3IDE3NC4zNzktMjc0LjczMUgzMjQuNzA4eiIgZmlsbD0iIzYwNUJFQyIvPjwvc3ZnPg==",_=Object.defineProperty,y=Object.getOwnPropertySymbols,E=Object.prototype.hasOwnProperty,S=Object.prototype.propertyIsEnumerable,O=(ge,_e,se)=>_e in ge?_(ge,_e,{enumerable:!0,configurable:!0,writable:!0,value:se}):ge[_e]=se,P=(ge,_e)=>{for(var se in _e||(_e={}))E.call(_e,se)&&O(ge,se,_e[se]);if(y)for(var se of y(_e))S.call(_e,se)&&O(ge,se,_e[se]);return ge};const H=ge=>React.createElement("svg",P({className:"logo2_svg__icon",viewBox:"0 0 1417 1024",xmlns:"http://www.w3.org/2000/svg",width:276.758,height:200},ge),React.createElement("path",{d:"M1364.44 118.705c-14.178-6.695-20.322 6.065-28.593 12.525-2.914 2.048-5.277 4.726-7.64 7.246-20.717 21.268-44.899 35.21-76.643 33.556a152.576 152.576 0 0 0-120.674 45.371c-7.404-41.826-32.06-66.875-69.553-82.865-19.693-8.35-39.543-16.7-53.248-34.737-9.61-12.919-12.288-27.333-17.015-41.512-3.15-8.507-6.144-17.25-16.384-18.668-11.185-1.733-15.517 7.247-19.928 14.73a189.125 189.125 0 0 0-23.552 98.461c1.575 76.88 35.446 138.083 102.636 181.642 7.562 4.963 9.531 9.925 7.09 17.25-4.49 14.967-9.926 29.54-14.81 44.584-2.992 9.61-7.561 11.658-18.274 7.483a309.484 309.484 0 0 1-96.886-63.015c-47.813-44.426-91.057-93.342-144.935-131.702a635.825 635.825 0 0 0-38.36-25.207c-54.982-51.2 7.167-93.262 21.582-98.225 14.966-5.199 5.277-23.158-43.402-22.922-48.68.237-93.184 15.833-149.977 36.628-8.428 3.15-17.092 5.514-25.993 7.326a557.844 557.844 0 0 0-160.768-5.436c-105.157 11.264-189.204 58.92-250.96 140.367-74.2 97.832-91.687 208.975-70.261 325.002 22.449 122.25 87.434 223.468 187.47 302.631 103.582 82 222.917 122.172 359.188 114.452 82.708-4.568 174.79-15.202 278.686-99.485 26.151 12.445 53.642 17.486 99.249 21.267 35.131 3.072 69.002-1.733 95.153-6.931 40.96-8.35 38.203-44.741 23.316-51.437-120.202-53.72-93.814-31.822-117.839-49.624 61.125-69.317 153.206-141.312 189.204-374.706 2.835-18.51.472-30.168 0-45.213-.237-9.137 1.969-12.603 12.918-13.706a240.089 240.089 0 0 0 86.173-25.442c77.982-40.803 109.332-107.914 116.736-188.259 1.103-12.288-.236-24.97-13.705-31.429zM685.45 842.043C569.108 754.215 512.55 725.307 489.157 726.49c-21.82 1.26-17.96 25.206-13.155 40.802 5.042 15.439 11.58 26.073 20.717 39.621 6.301 8.9 10.791 22.213-6.302 32.295-37.494 22.213-102.794-7.561-105.787-8.98-76.012-42.929-139.421-99.564-184.241-176.994a523.894 523.894 0 0 1-72.468-239.93c-1.024-20.56 5.278-27.885 26.703-31.587a272.148 272.148 0 0 1 85.307-2.127c118.942 16.699 220.16 67.741 305.073 148.48 48.443 46.001 85.071 100.982 122.88 154.703 40.173 57.029 83.338 111.458 138.32 155.963 19.376 15.675 34.894 27.569 49.781 36.234-44.74 4.805-119.414 5.829-170.456-32.926zm55.926-344.615c0-5.357 2.757-10.398 7.326-13.47a17.723 17.723 0 0 1 22.134 2.048c3.072 2.915 4.805 7.09 4.805 11.422a16.778 16.778 0 0 1-17.25 16.541 17.33 17.33 0 0 1-12.131-4.883 15.911 15.911 0 0 1-4.884-11.658zm173.529 85.464a104.37 104.37 0 0 1-33.005 8.586 71.444 71.444 0 0 1-44.504-13.548c-15.282-12.288-26.23-19.141-30.72-40.645a89.167 89.167 0 0 1 .787-31.429c3.939-17.487-.393-28.75-13.312-38.912-10.476-8.35-23.71-10.634-38.36-10.634a32.06 32.06 0 0 1-14.179-4.175c-6.144-2.914-11.106-10.24-6.301-19.14a60.18 60.18 0 0 1 10.712-11.265c19.85-10.79 42.693-7.246 63.882.788 19.693 7.798 34.501 21.898 55.926 41.905 21.74 24.183 25.68 30.8 38.125 48.916 9.846 14.179 18.747 28.75 24.89 45.45 3.703 10.397-1.102 18.905-13.941 24.103z",fill:"#4D6BFE"}));var B="data:image/svg+xml;base64,PHN2ZyBjbGFzcz0iaWNvbiIgdmlld0JveD0iMCAwIDE0MTcgMTAyNCIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIiB3aWR0aD0iMjc2Ljc1OCIgaGVpZ2h0PSIyMDAiPjxwYXRoIGQ9Ik0xMzY0Lj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i4yMy0xOS4xNDEtMzAuNzItNDAuNjQ1YTg5LjE2NyA4OS4xNjcgMCAwIDEgLjc4Ny0zMS40MjljMy45MzktMTcuNDg3LS4zOTMtMjguNzUtMTMuMzEyLTM4LjkxMi0xMC40NzYtOC4zNS0yMy43MS0xMC42MzQtMzguMzYtMTAuNjM0YTMyLjA2IDMyLjA2IDAgMCAxLTE0LjE3OS00LjE3NWMtNi4xNDQtMi45MTQtMTEuMTA2LTEwLjI0LTYuMzAxLTE5LjE0YTYwLjE4IDYwLjE4IDAgMCAxIDEwLjcxMi0xMS4yNjVjMTkuODUtMTAuNzkgNDIuNjkzLTcuMjQ2IDYzLjg4Mi43ODggMTkuNjkzIDcuNzk4IDM0LjUwMSAyMS44OTggNTUuOTI2IDQxLjkwNSAyMS43NCAyNC4xODMgMjUuNjggMzAuOCAzOC4xMjUgNDguOTE2IDkuODQ2IDE0LjE3OSAxOC43NDcgMjguNzUgMjQuODkgNDUuNDUgMy43MDMgMTAuMzk3LTEuMTAyIDE4LjkwNS0xMy45NDEgMjQuMTAzeiIgZmlsbD0iIzRENkJGRSIvPjwvc3ZnPg==",R=w(59301),q=({value:ge,onChange:_e})=>{const[se,we]=(0,p.useState)(!1),de=[{name:"\u901A\u4E49\u5343\u95EE",key:"qwen-plus-latest",img:L},{name:"DeepSeek R1-671B",key:"deepseek-r1",img:B}],ie=de.find(oe=>oe.key===ge);return R.createElement("div",{className:Ae.select},R.createElement(xe.Z,{size:10},R.createElement("span",{className:"c-grey-333 font16"},"\u6A21\u578B"),R.createElement("div",{className:Ae.box,onMouseLeave:()=>we(!1)},R.createElement("div",{className:Ae.text,onClick:()=>we(!0)},R.createElement("img",{src:ie.img,width:20}),R.createElement("span",null,ie.name),R.createElement("b",{className:"iconfont icon-zhankai6"})),se&&R.createElement("div",{className:Ae.itemWrap},R.createElement("aside",null,de.map(oe=>R.createElement("div",{key:oe.key,className:`${Ae.item} ${oe.key===ge?Ae.active:""}`,onClick:K=>{K.stopPropagation(),_e(oe.key),we(!1)}},R.createElement("img",{src:oe.img,width:20}),R.createElement("span",null,oe.name))))))))}},10298:function(Xe,Ge,w){"use strict";w.d(Ge,{Z:function(){return ve}});var p=w(59301),Ae={reasoning:"reasoning___S0mKl",btn:"btn____CIJG",content:"content___CIAh9"},xe=w(29787),ce=w(59301),Y=(U,o,X)=>new Promise((L,_)=>{var y=O=>{try{S(X.next(O))}catch(P){_(P)}},E=O=>{try{S(X.throw(O))}catch(P){_(P)}},S=O=>O.done?L(O.value):Promise.resolve(O.value).then(y,E);S((X=X.apply(U,o)).next())}),ve=({value:U="",streamingStatus:o,onFinish:X,cancelIndex:L,time:_,loading:y,loadAll:E})=>{const[S,O]=(0,p.useState)(""),[P,H]=(0,p.useState)(!0),B=(0,p.useRef)(U),R=(0,p.useRef)(o),J=(0,p.useRef)(0),q=(0,p.useRef)(null),[ge,_e]=(0,p.useState)(!1),se=70;(0,p.useEffect)(()=>{R.current=o},[o]),(0,p.useEffect)(()=>{B.current=U},[U]),(0,p.useEffect)(()=>{if(!o){O(B.current);return}return _e(!0),q.current=setInterval(we,se),()=>{clearInterval(q.current)}},[]),(0,p.useEffect)(()=>{ge&&(O(B.current),clearInterval(q.current),_e(!1),X())},[L]);const we=()=>Y(void 0,null,function*(){const de=B.current[J.current];de!==void 0?(O(ie=>ie+de),J.current++,clearInterval(q.current),q.current=setInterval(we,280/(B.current.length-J.current))):R.current===!1&&(O(B.current),clearInterval(q.current),_e(!1),X())});return ce.createElement("div",{className:`${Ae.reasoning} fadeIn animated`},ce.createElement("div",{className:Ae.btn,onClick:()=>H(!P)},ce.createElement("i",{className:"iconfont icon-shendusikao"}),_?ce.createElement("span",null,"\u5DF2\u6DF1\u5EA6\u601D\u8003\uFF08\u7528\u65F6 ",_," \u79D2\uFF09"):ce.createElement("span",null,"\u601D\u8003\u4E2D..."),P?ce.createElement("b",{className:"iconfont icon-shouqi6"}):ce.createElement("b",{className:"iconfont icon-zhankai6"})),y&&ce.createElement(xe.Z,{spinning:!0,className:"mt20"}),P&&!y&&ce.createElement("div",{className:Ae.content},S,ge?ce.createElement("span",{className:"aiBlink"},"__"):""))}},91783:function(Xe,Ge,w){"use strict";w.d(Ge,{Z:function(){return qe}});var p=w(59301),Ae=w(30641),xe=w(6767),ce=w(14566),Y=w(62957),m=w(25399),ve=w(37568),U=w(7939),o=w(29787),X=w(584),L=w(93725),_=w(75727),y=w(37639),E=w(92310),S=w.n(E),O=w(12709),P=w(30003),H=w(10298),B=w(28044),R={flex_box_center:"flex_box_center___GmElr",flex_space_between:"flex_space_between____pbWi",flex_box_vertical_center:"flex_box_vertical_center___COMWd",flex_box_center_end:"flex_box_center_end___lmAQf",flex_box_column:"flex_box_column___OJb7M",loadingPic:"loadingPic___y2kKZ",loading:"loading___UEUk1",dot:"dot___TYXFV","dot-fade":"dot-fade___KWn1a",wrap:"wrap___nU3cS",chatContainer:"chatContainer___PNe3Q",footerContainer:"footerContainer___hQATV",btnWrp:"btnWrp___mS8l6",btn:"btn___3za5U",btnActive:"btnActive____jzfb",inputContainer:"inputContainer___iCQ3u",uploadBtn:"uploadBtn___OHHJF",sendBtn:"sendBtn___ktaQl",sendBtnDisabled:"sendBtnDisabled___DVncF",cancelBtn:"cancelBtn___bzMDI",lineFour:"lineFour___Lhbz5",fullIcon:"fullIcon___YWXTV",footerContainerSelected:"footerContainerSelected___pGBh3",full:"full___dZLXo",li:"li___PjMV3",avatarIcon:"avatarIcon___ztGQ3",img:"img___wZqEA",content:"content___OlYYG",borderBox:"borderBox___tjHwt",text:"text___yWTCV",fileWrap:"fileWrap___IX778",file:"file___fxAKb",fileName:"fileName___RA8nu",source:"source___nkLC0",action:"action___I2zGy",disabledInput:"disabledInput___Buork",backBottom:"backBottom___SMuL2",head:"head___v8Eom",headBtn:"headBtn___IS7xR",menuWarp:"menuWarp___G6yj0",menu:"menu___M8VWP",menuText:"menuText___gRpb5",menuDel:"menuDel___eH_wg",active:"active___KWwPV",textmu:"textmu___SnRvX",bottomlist:"bottomlist___mgGfL"},J=w(38147),q=w(65862),ge=w(52516),_e=w(37166),se=w(28984),we=w(71986),de=w(74128),ie=w(56102),oe=w(48530),K=w(58617),k=w(32050),V={addImg:"addImg___SRqVr"},$="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAj0AAADWCAYAAAA6jTNpAAAQAElEQVR4Aey9B2BkSXUu/NXtoDyjyTnvhN3ZmZ3NgY1sgCWHJRlMeAYcsQ3YmN9+Nuvw7Gc/G2xjgxNxMWBgMSYvsLCJjWyY3ZmdnJNmJM1Ioyx13/q/r25fqaVRHrXUkqp1z62qU6dOVZ2+VffrU3WvAkyOj2EzPQHeBt4G/hqA/3gLeAt4C4zOAsUCeoaayEfXO1/KW8BbYCpaYKj5QvlTsd++TwWzgFc8XSwwkaBHE1NMg9k7lvEhvKcH8DYAvA0w9CeeL4aW9BLeAt4C08YCEwF6BpqMYn7fMP4y+vJ9Gv7mB3gbANPKBsh9Bhv/OREXxHIuMdKTl/cW8BaYWhYYb9CjCaivBcUTxXzF+6M434feAt4C09cC/c0NMS+2St+0+OIp9OQt4C0wjS0wnqCn76SjtEjmVzgUqa2eAG+DCbeB/w44aCfyOjSsfyiiSLcHTHFRXEZxT94C3gLT0AKauMaj25ps8uuJ0wpFylM4EKmdA+V5Prond28Lb4vpeg2An7jvjLoxoVAkvsKY+qZjvg+9BbwFprgFBCYK3cW+E0yczg8V70tqW0x984oyTUP6dsHdbLwdvB0KeQ3E84LCuJ78eMyLQ/CjOIPuo2+6O8NHvAW8BaauBTRRjGfv4olGYX+k9vTHF095nuCXVnjB+utgel8HhtdATLoW4nh/IUUdEM8PFffkLeAtUBgLFLVWTRiFbKAmoVh/HFcoEl+hSO0Q5ceVzifleYKbwL0dvB2m8zWQPy/0jcsu4imMCfwozsCNH4WimKe4J28Bb4FpYAFNDuPZzfxJRvHBaDzb5evyFvAWmLwWGGweifPUO8UVepoIC4xhnV/8mb3is/fby75wv/2YKFatuMinIwt86UG7KYr5c2yBQoKe/AlGcZ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ZqNzUSuNGBG9/ABrMvROYLSqUH/jH65TAPXGP6ibySyY8RveLyWaPFa3Wh65SaBnYcOlAHgfoI6IBeUc1ANQOXwQyca9ND97mhDewiFqtk4B9x/1zm4UpdB1fquH4u6/Jij7O4HrDz58D+GVINuZqBy3cG/hcAAP//HVuNTwAAAAZJREFUAwCbhWtY2GS/CgAAAABJRU5ErkJggg==",ae=(Kt,Te,F)=>new Promise((v,T)=>{var ee=he=>{try{z(F.next(he))}catch(Fe){T(Fe)}},N=he=>{try{z(F.throw(he))}catch(Fe){T(Fe)}},z=he=>he.done?v(he.value):Promise.resolve(he.value).then(ee,N);z((F=F.apply(Kt,Te)).next())}),x=({nickname:Kt="",headImgId:Te="",onOk:F=()=>{}})=>{var v;const[T,ee]=(0,p.useState)(""),[N,z]=(0,p.useState)(""),[he,Fe]=(0,p.useState)(!1),[Ne,rt]=(0,p.useState)(!1);return(0,p.useEffect)(()=>{he&&(ee(Kt),z(Te))},[he]),p.createElement(p.Fragment,null,p.createElement("i",{onClick:()=>Fe(!0),style:{marginLeft:10,color:"#333",fontSize:14,cursor:"pointer"},className:"iconfont icon-bianji16"}),p.createElement(Y.default,{title:"\u8BBE\u7F6E\u52A9\u6559\u5934\u50CF\u548C\u540D\u79F0",centered:!0,width:720,okText:"\u4FDD\u5B58",open:he,confirmLoading:Ne,onOk:()=>ae(void 0,null,function*(){T||xe.ZP.info("\u540D\u79F0\u4E0D\u80FD\u4E3A\u7A7A"),rt(!0),(yield F({ai_nickname:T,ai_headimg_id:N}))&&Fe(!1),rt(!1)}),onCancel:()=>{Fe(!1)}},p.createElement("div",{style:{display:"flex",alignItems:"center"}},p.createElement("label",{style:{width:70,textAlign:"end"}},p.createElement("span",{style:{color:"red"}},"*"),"\u52A9\u6559\u540D\u79F0"),p.createElement(ve.default,{maxLength:5,showCount:!0,style:{width:"80%",marginLeft:20},value:T,onChange:lt=>ee(lt.target.value)})),p.createElement("div",{style:{display:"flex",alignItems:"center",marginTop:20}},p.createElement("label",{style:{width:70,textAlign:"end",marginRight:20}},"\u52A9\u6559\u5934\u50CF"),p.createElement(ce.default,{disabled:!!N,accept:".png,.jpg",action:`${de.Z.API_SERVER}/api/attachments.json`,maxCount:1,showUploadList:!1,withCredentials:!0,beforeUpload:lt=>{var zt,Tt,Ct,At;const It=(At=(Ct=(Tt=(zt=lt==null?void 0:lt.name)==null?void 0:zt.split("."))==null?void 0:Tt.slice(-1))==null?void 0:Ct[0])==null?void 0:At.toLowerCase(),ct=["jpg","png"].includes(It);return lt.size==0?(xe.ZP.warning("\u6587\u4EF6\u5185\u5BB9\u4E0D\u80FD\u4E3A\u7A7A"),ce.default.LIST_IGNORE):ct?lt.size/1024/1024>100?(xe.ZP.warning("\u4E0A\u4F20\u7684\u6587\u4EF6\u5927\u5C0F\u9650\u5236100MB\uFF0C\u8BF7\u68C0\u67E5\u540E\u91CD\u65B0\u4E0A\u4F20"),ce.default.LIST_IGNORE):!0:(xe.ZP.warning("\u76EE\u524D\u652F\u6301png\u3001jpg\u6587\u4EF6"),ce.default.LIST_IGNORE)},onChange:({file:lt})=>{var zt;z((zt=lt==null?void 0:lt.response)==null?void 0:zt.container_id)}},N?p.createElement("div",{style:{position:"relative"}},p.createElement("img",{src:((v=de.Z)==null?void 0:v.API_SERVER)+"/api/attachments/"+N,width:120,height:120}),p.createElement("i",{onClick:()=>{z("")},style:{color:"red",cursor:"pointer",position:"absolute",right:0,top:0},className:"iconfont icon-zuoce-jinengbiaoqianshanchu"})):p.createElement("div",{className:V.addImg},p.createElement("i",{className:"iconfont icon-tianjia5"}),p.createElement("span",{style:{marginTop:10}},"\u4E0A\u4F20\u5934\u50CF")))),p.createElement("div",{style:{marginLeft:12}},p.createElement("p",{style:{color:"#333",marginBottom:0,marginTop:20}},"\u5C55\u793A\u5165\u53E3\u793A\u4F8B"),p.createElement("img",{src:$,style:{width:570}}))))},b=w(65582),W=w(86409),fe=Object.defineProperty,ke=Object.defineProperties,je=Object.getOwnPropertyDescriptors,yt=Object.getOwnPropertySymbols,ht=Object.prototype.hasOwnProperty,Ot=Object.prototype.propertyIsEnumerable,Dt=(Kt,Te,F)=>Te in Kt?fe(Kt,Te,{enumerable:!0,configurable:!0,writable:!0,value:F}):Kt[Te]=F,Ve=(Kt,Te)=>{for(var F in Te||(Te={}))ht.call(Te,F)&&Dt(Kt,F,Te[F]);if(yt)for(var F of yt(Te))Ot.call(Te,F)&&Dt(Kt,F,Te[F]);return Kt},Jt=(Kt,Te)=>ke(Kt,je(Te)),ot=(Kt,Te,F)=>new Promise((v,T)=>{var ee=he=>{try{z(F.next(he))}catch(Fe){T(Fe)}},N=he=>{try{z(F.throw(he))}catch(Fe){T(Fe)}},z=he=>he.done?v(he.value):Promise.resolve(he.value).then(ee,N);z((F=F.apply(Kt,Te)).next())}),qe=({title:Kt="\u5934\u6B4CAI",placeholder:Te,hideUpload:F,hideInputBox:v,aiIcon:T=_e,userIcon:ee=se,dragIcon:N=we,children:z,fetchUrl:he,fetchData:Fe={},extraAnswerAction:Ne,showDefaultTips:rt=!0,onOpen:lt,onClose:zt,loadingOption:Tt,showPreference:Ct=!1,initMessage:At,customRequest:It,visible:st,width:ct=1200,isCheckRestrictNumber:Pe=!1,headNode:wt,headFunctionNode:Lt,showRedraw:St,showEdit:en,promptPropName:Yt="prompt",topPercentage:Ht,showSwitchingModel:In=!1,showImageGenerator:$n=!1,showLookHistory:Vt=!1,fetchListObject:vn,customPreference:He,customDataNode:Le,showAddSession:De,historyId:te,draggableExtraNode:ue,drawerExtraNode:Se,menuExtraFunctionNode:Ie,showSceneAwareness:Me=!1,ReactComponent:Ke=Ae.Z,topFunctionNode:Ye,footerContainerStyle:it,chatContainerStyle:pt={},showCodePreview:Xt=!1,showSource:hn=!0,onSendMessage:kt,onDynamic:Nt=()=>{},showAvatarEditData:fn,isPath:Fn=!1,BottomNode:Re,BOttomNodeName:Nn,ysclist:Rt={},isCoze:Ft,Selectdiv:rn})=>{var _n,Mn,oi,Oi,ki,vi,ji,ti,Si,wi;const[Yi,Qn]=(0,p.useState)(!1),[Xn,di]=(0,p.useState)("qwen-plus-latest"),[ai,wn]=(0,p.useState)([]),[We,ut]=(0,p.useState)([]),[Ut,dt]=(0,p.useState)(!1),[vt,Mt]=(0,p.useState)(!1),[Wt,sn]=(0,p.useState)(!1),[ln,gn]=(0,p.useState)([]),[ni,An]=(0,p.useState)(""),[Hn,j]=(0,p.useState)(0),[G,pe]=(0,p.useState)(void 0),[Ee,ze]=(0,p.useState)(!1),[$e,bt]=(0,p.useState)(null),[xt,Gt]=(0,p.useState)(""),_t=(0,p.useRef)(),Ce=(0,p.useRef)(null),et=(0,p.useRef)(null),[Pt,an]=(0,p.useState)(!1),[un,qt]=(0,p.useState)(!1),[tn,mn]=(0,p.useState)(!1),[Tn,on]=(0,p.useState)(!1),[$t,kn]=(0,p.useState)(!1),[Ln,Cn]=(0,p.useState)(0),Pn=(0,p.useRef)(null),En=(0,p.useRef)(!1),ii=(0,p.useRef)(null),[ri,qn]=(0,p.useState)(void 0),Ti=(0,b.useParams)(),[Li,Ei]=(0,p.useState)(!0),[_i,si]=(0,p.useState)(ct-28),[mi,Ai]=(0,p.useState)(!1),[dr,Ii]=(0,p.useState)(!0),[Ni,Gi]=(0,p.useState)([]),Ui=(0,p.useRef)([]),hi=(0,p.useRef)(null),nr=(0,p.useRef)(null),Ji=(0,p.useRef)(!1),ir=_i-22,pr=ni==null?void 0:ni.split(`
`).length,{onAdd:Vn,onGetList:gr,onListClick:sr,onListDelete:hr,onListDealData:Fr}=vn||{},Nr=50,Kr=10,Gr={maxCount:Nr,showUploadList:!1,withCredentials:!0,openFileDialogOnClick:!1,fileList:ai,multiple:!0,accept:".doc,.docx,.md,.txt,.pdf,.xlsx,.xls",beforeUpload:Qe=>ot(void 0,null,function*(){var dn,On,Wn,xi;const Kn=(xi=(Wn=(On=(dn=Qe==null?void 0:Qe.name)==null?void 0:dn.split("."))==null?void 0:On.slice(-1))==null?void 0:Wn[0])==null?void 0:xi.toLowerCase(),Hi=["doc","docx","md","pdf","txt","xlsx","xls"].includes(Kn);return Qe.size==0?(xe.ZP.warning("\u6587\u4EF6\u5185\u5BB9\u4E0D\u80FD\u4E3A\u7A7A"),ce.default.LIST_IGNORE):Hi?Qe.size/1024/1024>100?(xe.ZP.warning("\u4E0A\u4F20\u7684\u6587\u4EF6\u5927\u5C0F\u9650\u5236100MB\uFF0C\u8BF7\u68C0\u67E5\u540E\u91CD\u65B0\u4E0A\u4F20"),ce.default.LIST_IGNORE):!0:(xe.ZP.warning("\u76EE\u524D\u652F\u6301txt\u3001md\u3001doc\u3001docx\u3001pdf\u3001xlsx\u3001xls\u6587\u4EF6"),ce.default.LIST_IGNORE)}),onChange:({fileList:Qe})=>{wn(Qe)},action:`${(_n=de.Z)==null?void 0:_n.API_SERVER}/api/intelligent_imports/upload_file.json`},bi={maxCount:Kr,showUploadList:!1,withCredentials:!0,openFileDialogOnClick:!1,fileList:We,multiple:!0,accept:".jpg,.png,",beforeUpload:Qe=>{var dn,On,Wn,xi;const Kn=(xi=(Wn=(On=(dn=Qe==null?void 0:Qe.name)==null?void 0:dn.split("."))==null?void 0:On.slice(-1))==null?void 0:Wn[0])==null?void 0:xi.toLowerCase(),Hi=["jpg","png"].includes(Kn);return Qe.size==0?(xe.ZP.warning("\u6587\u4EF6\u5185\u5BB9\u4E0D\u80FD\u4E3A\u7A7A"),ce.default.LIST_IGNORE):Hi?Qe.size/1024/1024>10?(xe.ZP.warning("\u4E0A\u4F20\u7684\u56FE\u7247\u5927\u5C0F\u9650\u523610MB\uFF0C\u8BF7\u68C0\u67E5\u540E\u91CD\u65B0\u4E0A\u4F20"),ce.default.LIST_IGNORE):!0:(xe.ZP.warning("\u76EE\u524D\u652F\u6301jpg\u3001png"),ce.default.LIST_IGNORE)},onChange:({fileList:Qe})=>{ut(Qe)},action:`${(Mn=de.Z)==null?void 0:Mn.API_SERVER}/api/ai/generals/update_file.json`};(0,p.useEffect)(()=>{if(!ln.length||!_t.current)return;const Qe=ln[ln.length-1];Qe!=null&&Qe.loading&&(_t.current.scrollTop=_t.current.scrollHeight)},[ln.length]),(0,p.useEffect)(()=>{if(!_t.current||!Pn.current)return;const Qe=new IntersectionObserver(([dn])=>{Ei(dn.isIntersecting)},{root:_t.current,rootMargin:"70px",threshold:0});return Qe.observe(Pn.current),()=>{Pn.current&&Qe.unobserve(Pn.current)}},[_t.current,Pn.current]),(0,p.useEffect)(()=>{if(!Pt)return;const Qe=_t.current,dn=ii.current;En.current=!1;let On=Qe.scrollTop;const Wn=()=>{const{scrollTop:Kn,scrollHeight:qi,clientHeight:Hi}=Qe;Kn>On?Kn+Hi>=qi-50&&(Qe.scrollTop=Qe.scrollHeight,En.current=!1):Kn<On&&(En.current=!0),On=Kn};Qe.addEventListener("scroll",Wn);const xi=new ResizeObserver(()=>{En.current||(Qe.scrollTop=Qe.scrollHeight)});return xi.observe(dn),()=>{var Kn;xi.unobserve(dn),(Kn=Qe==null?void 0:Qe.removeEventListener)==null||Kn.call(Qe,"scroll",Wn)}},[Pt]),(0,p.useEffect)(()=>{!Pt&&Ui.current.length&&(gn([...ln,...Ui.current]),Ui.current=[])},[Pt]),(0,p.useEffect)(()=>{if(!_t.current)return;const Qe=new ResizeObserver(()=>{var dn;_t.current&&si((dn=_t.current)==null?void 0:dn.offsetWidth)});return Qe.observe(_t.current),()=>{_t.current&&Qe.unobserve(_t.current)}},[_t.current]),(0,p.useEffect)(()=>{typeof st=="boolean"&&Qn(st)},[st]),(0,p.useEffect)(()=>{var Qe;if(Ce.current&&$e!==null){Ce.current.focus();const dn=(Qe=Ce.current.resizableTextArea)==null?void 0:Qe.textArea;dn&&(dn.selectionStart=dn.selectionEnd=dn.value.length)}},[$e]),(0,p.useEffect)(()=>{pr<5&&ze(!1)},[pr]),(0,p.useEffect)(()=>{Yi&&At&&(gn(Qi(At)),dt(!0),Ir(At,{history:[]})),Yi&&(vr(),Ti!=null&&Ti.pathId&&Xi(),te?Wr(te):De&&!ri&&kr()),Yi||mr()},[Yi]),(0,p.useEffect)(()=>{var Qe,dn,On;let Wn=Object.values(((Qe=Rt==null?void 0:Rt.bot_option_data)==null?void 0:Qe.model_detail_map)||{});(Wn==null?void 0:Wn.length)>0&&((On=(dn=Wn==null?void 0:Wn[0])==null?void 0:dn.name.toLowerCase())!=null&&On.includes("reasoner"))?qt(!0):qt(!1)},[Rt]);const Qi=(Qe="",dn=[],On=[])=>{const Wn=Date.now();return[{text:Qe,key:Wn,sender:"user",fileList:dn,imageList:On,show:!0},{loading:!0,key:Wn,sender:"AI",show:!0,model:Xn,imageGenerator:Tn,thinkingEnabled:un,codePreview:tn}]},mr=()=>{Gt(""),bt(null),wn([]),ut([]),An("")},Ur=()=>{if(lt){lt({chatData:ln,setChatData:gn,setLoading:dt,getData:Ir,renderChatItems:Qi,handleAdd:kr,identifier:ri});return}Qn(!0)},ur=()=>{if(Ii(!0),zt){zt();return}Qn(!1)},Xi=()=>ot(void 0,null,function*(){const Qe=yield(0,J.ZP)("/api/ai/agents/click.json",{method:"post",body:{deployable_type:"Subject",deployable_id:Ti==null?void 0:Ti.pathId}})}),_r=()=>{ze(!Ee)},vr=()=>ot(void 0,null,function*(){if(!Pe)return;const Qe=yield(0,J.ZP)("/api/intelligent_imports/check_number.json",{method:"get"});(Qe==null?void 0:Qe.status)===0&&(Qe==null?void 0:Qe.total_number)!==-1&&(j((Qe==null?void 0:Qe.total_number)-(Qe==null?void 0:Qe.remaining_number)),pe(Qe==null?void 0:Qe.total_number))}),Dr=()=>{Y.default.info({title:"\u63D0\u793A",icon:null,okText:"\u6211\u77E5\u9053\u4E86",width:510,centered:!0,content:p.createElement("div",null,p.createElement("div",{style:{color:"#FA6400"}},"\u60A8\u5DF2\u8FBE\u5230\u667A\u80FD\u52A9\u6559\u7684\u4F7F\u7528\u6B21\u6570"),p.createElement("div",{className:"c-grey-333 mt5"},"\u667A\u80FD\u52A9\u6559\u6BCF\u5929\u9650\u5236\u4F7F\u7528",G,"\u6B21\uFF0C\u8BF7\u660E\u5929\u518D\u8BD5\u3002"))})},Er=Qe=>Qe.reduce((On,Wn)=>{if(Wn.sender==="user"){const xi=Qe.find(Kn=>Kn.key===Wn.key&&Kn.sender==="AI");xi&&(xi!=null&&xi.text)&&!(xi!=null&&xi.error)&&On.push({question:Wn.text,answer:xi.text})}return On},[]),Ir=(...Qe)=>ot(void 0,[...Qe],function*(dn="",On={},Wn=ln){if(It&&(yield It({mes:dn,setChatData:gn,fileList:ai,body:On,checkNum:vr,setLoading:dt,bodyChatData:Wn,setTyping:an,setImageGenerator:on,renderChatItems:Qi})),!It){const xi=ai==null?void 0:ai.map($i=>{var Ar;return(Ar=$i==null?void 0:$i.response)==null?void 0:Ar.file_id}),Kn=We==null?void 0:We.map($i=>{var Ar;return(Ar=$i==null?void 0:$i.response)==null?void 0:Ar.data}),qi=On.history||Er(Wn),Hi=Ve(Ve({identifier:ri,response_mode:"streaming",model:Xn,scene_awareness:$t,thinking_enabled:un,image_generator:Tn,code_preview:tn,file_ids:xi,image_list:Kn,history:qi,[Yt]:dn},Fe),On),cr=Object.fromEntries(Object.entries(Hi).filter(([$i,Ar])=>Ar!==void 0));et.current=new oe.Z(de.Z.API_SERVER+he,cr),yield new Promise(($i,Ar)=>{let Mr=null,Pr=null;et.current.on("data",Zr=>{an(!0);const{chunk:{content:ls,type:yr,created:wr,msg:ts}}=Zr,ds=ts==="error";yr==="thinking"&&(Mr=Mr||wr,gn(Qr=>[...Qr].map((Cr,ss)=>ss===Qr.length-1?Jt(Ve({},Cr),{reasoning:(Cr.reasoning||"")+ls,loading:!1,hideAnswer:!0,error:ds}):Cr))),yr==="text"&&(Pr=Pr||wr,gn(Qr=>[...Qr].map((Cr,ss)=>ss===Qr.length-1?Jt(Ve({},Cr),{text:(Cr.text||"")+ls,loading:!1,startTime:Mr,endTime:Pr,error:ds}):Cr))),yr==="knowledge"&&gn(Qr=>[...Qr].map((Cr,ss)=>{var Ds;return ss===Qr.length-1?Jt(Ve({},Cr),{text:(Cr.text||"")+"",loading:!1,startTime:Mr,endTime:Pr,error:ds,knowledge:(Ds=Zr==null?void 0:Zr.chunk)==null?void 0:Ds.content}):Cr}))}),et.current.on("done",()=>{$i()}),et.current.on("error",Zr=>{let ls="\u62B1\u6B49\uFF0C\u6211\u521A\u521A\u9047\u5230\u4E86\u4E00\u70B9\u95EE\u9898\uFF0C\u6CA1\u80FD\u5B8C\u6210\u60A8\u7684\u8BF7\u6C42\u3002\u8BF7\u60A8\u7A0D\u540E\u518D\u8BD5\u4E00\u6B21\uFF0C\u6216\u8005\u8054\u7CFB\u6280\u672F\u652F\u6301\u5E2E\u5FD9\u89E3\u51B3!";Object.prototype.toString.call(Zr)==="[object Object]"&&Zr.status===-9&&(ls=Zr==null?void 0:Zr.message),gn(yr=>[...yr].map((wr,ts)=>ts===yr.length-1?Jt(Ve({},wr),{text:ls,loading:!1,error:!0}):wr)),$i()}),et.current.on("cancelled",()=>{$i()}),et.current.startStream()})}vr(),dt(!1)}),is=Qe=>{An(Qe.target.value)},Hr=(Qe,dn)=>{if(mr(),dt(!0),Qe==="edit"){Ui.current=ln.slice(dn+2);const On=ln.splice(dn),{fileList:Wn=[],imageList:xi=[]}=(On==null?void 0:On[0])||{},Kn=Wn.map(cr=>{var $i;return($i=cr.response)==null?void 0:$i.file_id}),qi=xi.map(cr=>{var $i;return($i=cr.response)==null?void 0:$i.data}),Hi={history:Er(ln),file_ids:Kn,image_list:qi,edit:!0};gn([...ln,...Qi(xt,Wn,xi)]),Ir(xt,Hi,ln)}if(Qe==="redraw"){Ui.current=ln.slice(dn+1);const On=ln.splice(dn-1),{text:Wn,fileList:xi=[],imageList:Kn=[]}=(On==null?void 0:On[0])||{},qi=xi.map($i=>{var Ar;return(Ar=$i.response)==null?void 0:Ar.file_id}),Hi=Kn.map($i=>{var Ar;return(Ar=$i.response)==null?void 0:Ar.data}),cr={history:Er(ln),file_ids:qi,image_list:Hi,edit:!0};gn([...ln,...Qi(Wn,xi,Kn)]),Ir(Wn,cr,ln)}},Vr=()=>{if(ni.trim()!==""){mr(),dt(!0);const Qe=ai.filter(On=>On.status==="done"),dn=We.filter(On=>On.status==="done");gn([...ln,...Qi(ni,Qe,dn)]),Ir(ni)}},Dn=Qe=>{if(Qe.shiftKey){if(Qe.key==="Enter")return}else if(Qe.key==="Enter"){if(Qe.preventDefault(),es||Ji.current)return;Vr()}},Yn=(Qe,dn)=>{let On=!1;en===!0?On=!0:en==="last"&&(On=ln.reduce((qi,Hi,cr)=>Hi.sender==="user"?cr:qi,-1)===dn);const Wn=dn===$e,xi=[...(Qe==null?void 0:Qe.fileList)||[],...(Qe==null?void 0:Qe.imageList)||[]];return p.createElement("div",{className:R.li,style:Ve({width:ir},pt)},p.createElement("div",{className:R.avatarIcon},p.createElement("img",{className:R.img,src:ee})),p.createElement("div",{className:R.content},!!(xi!=null&&xi.length)&&p.createElement("div",{className:R.fileWrap},xi==null?void 0:xi.map((Kn,qi)=>{var Hi,cr;return p.createElement("div",{key:qi,className:R.file},p.createElement("img",{src:w(90034)(`./${((cr=(Hi=Kn==null?void 0:Kn.name)==null?void 0:Hi.split("."))==null?void 0:cr.pop())||"txt"}.png`),width:20,className:"mr10"}),p.createElement("aside",null,p.createElement(m.Z,{title:Kn==null?void 0:Kn.name},p.createElement("div",{className:R.fileName},Kn==null?void 0:Kn.name)),p.createElement("div",{className:"c-grey-999 font12"},(0,q.RD)(Kn==null?void 0:Kn.size))))})),p.createElement("div",{className:R.borderBox},Wn?p.createElement(ve.default.TextArea,{value:xt,ref:Ce,autoSize:!0,placeholder:"\u8BF7\u8F93\u5165",bordered:!1,onChange:Kn=>Gt(Kn.target.value)}):p.createElement("div",{className:R.text},Qe==null?void 0:Qe.text)),Wn?p.createElement("div",{className:R.action},p.createElement(U.ZP,{onClick:()=>{Gt(""),bt(null)},size:"small"},"\u53D6\u6D88"),p.createElement(U.ZP,{disabled:!xt.trim(),onClick:()=>Hr("edit",dn),type:"primary",size:"small"},"\u786E\u8BA4")):p.createElement("div",{className:R.action},p.createElement(ie.CopyToClipboard,{text:(Qe==null?void 0:Qe.text)||"",onCopy:()=>xe.ZP.success("\u590D\u5236\u6210\u529F")},p.createElement(m.Z,{title:"\u590D\u5236"},p.createElement("i",{className:"iconfont icon-fuzhi8 font13"}))),On&&!Ut&&p.createElement(m.Z,{title:"\u7F16\u8F91"},p.createElement("i",{onClick:()=>{bt(dn),Gt((Qe==null?void 0:Qe.text)||"")},className:"iconfont icon-bianji10 font14"})))))},Fi=(Qe,dn)=>{var On,Wn;let xi=!1;St===!0?xi=!0:St==="last"&&(xi=ln.reduce((Hi,cr,$i)=>cr.sender==="AI"?$i:Hi,-1)===dn);let Kn="";return Qe!=null&&Qe.source?Kn=Qe==null?void 0:Qe.source:(Qe==null?void 0:Qe.model)==="deepseek-r1"?Kn="\u7531deepseek\u751F\u6210":(Qe==null?void 0:Qe.model)==="qwen-plus-latest"&&(Kn="\u7531\u901A\u4E49\u5343\u95EE\u751F\u6210"),p.createElement("div",{className:R.li,style:Ve({width:ir},pt)},p.createElement("div",{className:R.avatarIcon},p.createElement("img",{className:R.img,src:fn!=null&&fn.headImgId?((On=de.Z)==null?void 0:On.API_SERVER)+"/api/attachments/"+(fn==null?void 0:fn.headImgId):T})),p.createElement("div",{className:R.content},p.createElement("div",{className:R.borderBox},Qe.loading&&p.createElement(p.Fragment,null,Qe!=null&&Qe.imageGenerator?p.createElement("div",{className:R.loadingPic},"\u6B63\u5728\u751F\u6210\u4E2D",p.createElement("div",{className:"ai-loading"})):!(Qe!=null&&Qe.thinkingEnabled)&&p.createElement("div",null,p.createElement("div",{className:R.loading},p.createElement("div",{className:R.dot}),p.createElement("div",{className:R.dot}),p.createElement("div",{className:R.dot})),p.createElement("div",{style:{marginTop:10,color:"#9096A3"}},Tt!=null&&Tt.text||Ft?"\u5F53\u524D\u667A\u80FD\u4F53\u4E3A\u6559\u5E08\u81EA\u5B9A\u4E49\u5DE5\u4F5C\u6D41\u667A\u80FD\u4F53\uFF0C\u5DE5\u4F5C\u6D41\u5F62\u5F0F\u6682\u4E0D\u652F\u6301\u6D41\u5F0F\u8F93\u51FA\uFF0C\u8FD0\u884C\u65F6\u95F4\u53EF\u80FD\u8F83\u957F\uFF0C\u8BF7\u7A0D\u4F5C\u7B49\u5F85\u3002":"\u8BF7\u8010\u5FC3\u7B49\u5F85\uFF0C\u76EE\u524D\u9AD8\u5CF0\u671F\u4F53\u9A8C\u4EBA\u6570\u8FC7\u591A\uFF0C\u6211\u4EEC\u5DF2\u8BB0\u5F55\u4E0B\u60A8\u7684\u9700\u6C42\uFF0C\u7A0D\u540E\u5C06\u81EA\u52A8\u4E3A\u60A8\u751F\u6210\u7B54\u6848\u3002"))),(Qe==null?void 0:Qe.thinkingEnabled)&&p.createElement(H.Z,{time:Qe==null?void 0:Qe.time,cancelIndex:Ln,loading:Qe.loading,streamingStatus:!(Qe!=null&&Qe.text),onFinish:()=>{Cn(0),gn(qi=>[...qi].map((Hi,cr)=>cr===qi.length-1?Jt(Ve({},Hi),{hideAnswer:!1,time:Hi.startTime?Hi.endTime-Hi.startTime:null}):Hi))},value:Qe==null?void 0:Qe.reasoning}),!!(Qe!=null&&Qe.text)&&!Qe.hideAnswer&&p.createElement(O.Z,{onDynamic:Nt,cancelIndex:Ln,streamingStatus:Ut,loadImage:!!(Qe!=null&&Qe.imageGenerator),onFinish:()=>ot(void 0,null,function*(){Cn(0),setTimeout(()=>an(!1),0)}),value:Qe==null?void 0:Qe.text}),((Wn=Qe==null?void 0:Qe.knowledge)==null?void 0:Wn.length)>0&&p.createElement(P.Z,{Filelist:Qe==null?void 0:Qe.knowledge})),hn&&!!(Qe!=null&&Qe.text)&&Kn&&!Ft&&p.createElement("div",{className:R.source},Kn),p.createElement("div",{className:R.action},Ne==null?void 0:Ne(Qe,dn,Br),!(Qe!=null&&Qe.imageGenerator)&&p.createElement(ie.CopyToClipboard,{text:String((Qe==null?void 0:Qe.text)||""),onCopy:()=>xe.ZP.success({content:"\u590D\u5236\u6210\u529F",key:"copy"})},p.createElement(m.Z,{title:"\u590D\u5236"},p.createElement("i",{className:"iconfot icon-fuzhi8 font13"}))),Ct&&!Ut&&p.createElement(p.Fragment,null,p.createElement(m.Z,{title:"\u559C\u6B22"},p.createElement("i",{style:Qe!=null&&Qe.like?{color:"#FA8D30"}:{},onClick:()=>li("like",!(Qe!=null&&Qe.like),dn),className:"iconfot icon-yijiejue font15"})),p.createElement(m.Z,{title:"\u4E0D\u559C\u6B22"},p.createElement("i",{style:Qe!=null&&Qe.dislike?{color:"#e86d7c"}:{},onClick:()=>li("dislike",!(Qe!=null&&Qe.dislike),dn),className:"iconfot icon-weijiejuezhengchang font15"}))),xi&&!Ut&&p.createElement(m.Z,{title:"\u91CD\u65B0\u751F\u6210"},p.createElement("i",{onClick:()=>Hr("redraw",dn),className:"iconfot icon-gengxin-genghuan-tihuan"})))))},li=(Qe,dn,On)=>ot(void 0,null,function*(){if(He){const Wn=ln.slice(0,On+1),Kn=Er(Wn).length;yield He({type:Qe,value:dn,index:On,identifier:ri,objectIndex:Kn})}gn(Wn=>(Wn[On][Qe]=dn,dn&&(Wn[On][Qe==="like"?"dislike":"like"]=!1),[...Wn]))}),pi=()=>{var Qe,dn;Cn(1),(dn=(Qe=et.current)==null?void 0:Qe.cancelRequest)==null||dn.call(Qe),dt(!1),an(!1)},kr=()=>ot(void 0,null,function*(){var Qe,dn,On;(dn=(Qe=et.current)==null?void 0:Qe.cancelRequest)==null||dn.call(Qe),mr(),gn([]),dt(!0);const Wn=yield Vn();(Wn==null?void 0:Wn.status)===0&&qn((On=Wn==null?void 0:Wn.data)==null?void 0:On.identifier),dt(!1),an(!1)}),xr=()=>ot(void 0,null,function*(){var Qe;sn(!0);const dn=yield gr();(dn==null?void 0:dn.status)===0&&Gi(((Qe=dn==null?void 0:dn.data)==null?void 0:Qe.list)||[]),sn(!1)}),Wr=(...Qe)=>ot(void 0,[...Qe],function*(dn=ri){var On,Wn,xi,Kn;(Wn=(On=et.current)==null?void 0:On.cancelRequest)==null||Wn.call(On),mr(),Mt(!0);const qi=yield sr(dn);if(qi.status===0){const Hi=Fr(((xi=qi==null?void 0:qi.data)==null?void 0:xi.messages)||[]);gn(Hi),Mt(!1),qn((Kn=qi==null?void 0:qi.data)==null?void 0:Kn.identifier);return}gn([]),Mt(!1)}),rs=(Qe,dn)=>ot(void 0,null,function*(){(yield hr(Qe)).status===0&&(xe.ZP.success("\u5220\u9664\u6210\u529F"),dn===ri&&kr(),xr())}),fs=()=>p.createElement("div",{className:R.menuWarp},p.createElement("h4",null,"\u5386\u53F2\u5BF9\u8BDD"),p.createElement(o.Z,{spinning:Wt},!Ni.length&&p.createElement(X.Z,{style:{width:250,paddingBottom:30},image:X.Z.PRESENTED_IMAGE_SIMPLE}),!!Ni.length&&p.createElement("div",{className:R.menu},Ni.map(function(Qe,dn){return p.createElement("aside",{className:S()(ri===Qe.identifier&&R.active),key:Qe.id,onClick:()=>Wr(Qe.id)},p.createElement("div",{className:R.menuText},p.createElement(m.Z,{title:Qe==null?void 0:Qe.question},p.createElement("span",null,Qe==null?void 0:Qe.question)),Ie&&Ie(Qe)),p.createElement("div",{className:R.menuDel,onClick:On=>On.stopPropagation()},p.createElement("i",{onClick:()=>(0,W.r)(Qe.id),className:"iconfont icon-daochubeifen primary-hover font14"})),p.createElement("div",{className:R.menuDel,onClick:On=>On.stopPropagation()},p.createElement(L.Z,{title:"\u63D0\u793A",description:"\u4F60\u786E\u5B9A\u8981\u5220\u9664\u672C\u6761\u5BF9\u8BDD\u5417\uFF1F",onConfirm:()=>rs(Qe.id,Qe.identifier),okText:"\u786E\u8BA4",cancelText:"\u53D6\u6D88"},p.createElement("i",{className:"iconfont icon-shanchu14 delete-hover font14"}))))})))),Gs=Qe=>{if(Qe==="file"){if(We.length){Y.default.confirm({centered:!0,icon:null,okText:"\u786E\u8BA4\u8986\u76D6",cancelText:"\u53D6\u6D88",title:"\u63D0\u793A",content:"\u5DF2\u5B58\u5728\u56FE\u7247\uFF0C\u4E0A\u4F20\u6587\u4EF6\u540E\u56FE\u7247\u5C06\u4F1A\u88AB\u8986\u76D6?",onOk:()=>{ut([]),hi.current.upload.uploader.fileInput.click()}});return}hi.current.upload.uploader.fileInput.click()}if(Qe==="image"){if(ai.length){Y.default.confirm({centered:!0,icon:null,okText:"\u786E\u8BA4\u8986\u76D6",cancelText:"\u53D6\u6D88",title:"\u63D0\u793A",content:"\u5DF2\u5B58\u5728\u6587\u4EF6\uFF0C\u4E0A\u4F20\u56FE\u7247\u540E\u6587\u4EF6\u5C06\u4F1A\u88AB\u8986\u76D6?",onOk:()=>{wn([]),nr.current.upload.uploader.fileInput.click()}});return}nr.current.upload.uploader.fileInput.click()}},Hs=[{key:"file",disabled:ai.length>=Nr,label:p.createElement(m.Z,{placement:"right",title:p.createElement("div",null,p.createElement("b",null,"\u4E0A\u4F20\u9644\u4EF6\uFF08\u4EC5\u8BC6\u522B\u6587\u5B57\uFF09"),p.createElement("div",null,"\u6700\u591A 50 \u4E2A\uFF0C\u6BCF\u4E2A 100 MB\uFF0C\u652F\u6301\u5404\u7C7B\u578B\u6587\u6863"))},p.createElement("span",null,p.createElement("i",{className:"iconfont icon-fujian3 font14 mr5"}),"\u4E0A\u4F20\u6587\u6863"))},{key:"image",disabled:We.length>=Kr,label:p.createElement(m.Z,{placement:"right",title:"\u652F\u6301\u4E0D\u8D85\u8FC710M\u7684PNG/JPG\u56FE\u7247\uFF0C\u6700\u591A10\u4E2A"},p.createElement("span",null,p.createElement("i",{className:"iconfont icon-tupianshangchuan font14 mr5"}),"\u4E0A\u4F20\u56FE\u7247"))}].filter(Boolean),qr=[...ai,...We],es=qr.some(Qe=>Qe.status==="uploading")||Ut||Pt,Lr=Hn>=G,Ts=F||ai.length>=Nr||We.length>=Kr,os=Tn||un||$t||tn||!!qr.length,Br={chatData:ln,stream:et,isDisabledNum:Lr,isDisAbledUpload:es,checkNumModal:Dr,checkNum:vr,onClose:ur,setChatData:gn,setLoading:dt,getData:Ir,clearStatus:mr,typing:Pt,setImageGenerator:on,renderChatItems:Qi,setSceneAwareness:kn,setIdentifier:qn,setCodePreview:mn,setTyping:an,onMenuClick:Wr};return p.createElement(p.Fragment,null,z?p.createElement("div",{onClick:Ur},z):z!==null&&p.createElement(ge.Z,{draggableExtraNode:ue,showAvatarEditData:fn,src:N,onClick:Ur,topPercentage:Ht}),p.createElement(Ke,{open:Yi,width:mi?"100%":ct,afterOpenChange:Qe=>{Qe&&Ii(!1)},push:!1,contentWrapperStyle:dr?{}:{transition:"none"},extra:p.createElement("div",{className:R.head},Se,In&&p.createElement(B.Z,{value:Xn,onChange:Qe=>{qt(!1),on(!1),di(Qe),ut([]),wn([])}}),Vt&&p.createElement(p.Fragment,null,p.createElement(_.Z,{dropdownRender:fs,onOpenChange:Qe=>{Qe&&xr()},placement:"bottomLeft",arrow:!0},p.createElement("div",{className:R.headBtn},p.createElement("i",{className:"icon-lishiduihua1 font14 mr10"}),"\u5386\u53F2\u5BF9\u8BDD"))),De&&p.createElement(p.Fragment,null,p.createElement("div",{className:R.headBtn,onClick:kr},p.createElement("i",{className:"icon-xinjianduihua font14 mr10"}),"\u65B0\u5EFA\u5BF9\u8BDD")),p.createElement(m.Z,{title:mi?"\u9000\u51FA\u5168\u5C4F":"\u5168\u5C4F"},p.createElement("div",{className:R.headBtn,style:{padding:"0 12px"},onClick:()=>Ai(!mi)},mi&&p.createElement("i",{className:"iconfont icon-tuichuquanping3"}),!mi&&p.createElement("i",{className:"iconfont icon-quanping4"})))),title:p.createElement("div",null,p.createElement("span",{className:"c-grey-333 font16"},(fn==null?void 0:fn.nickname)||Kt),(fn==null?void 0:fn.show)&&p.createElement(x,Ve({},fn))),onClose:ur,bodyStyle:{paddingRight:4}},p.createElement("div",{className:S()(R.wrap,Yi&&"body-overflow-hidden")},p.createElement("div",{ref:_t,className:R.chatContainer},!Fn&&(Ye==null?void 0:Ye(Br)),rt&&p.createElement("div",{className:`${R.li} mb20`,style:Ve({width:ir},pt)},p.createElement("div",{className:R.avatarIcon},p.createElement("img",{className:R.img,src:fn!=null&&fn.headImgId?((oi=de.Z)==null?void 0:oi.API_SERVER)+"/api/attachments/"+(fn==null?void 0:fn.headImgId):T})),p.createElement("div",{className:R.content},p.createElement("div",{className:R.borderBox},wt,Lt==null?void 0:Lt(Br)))),Fn&&(ln==null?void 0:ln.length)<=0&&p.createElement("div",{style:{textAlign:"center"}},wt,Fn&&(Ye==null?void 0:Ye(Br))),p.createElement("div",{ref:ii},p.createElement(o.Z,{spinning:vt,className:"mt20"},ln==null?void 0:ln.map((Qe,dn)=>p.createElement(p.Fragment,{key:Qe.key+dn},Qe.show&&p.createElement(p.Fragment,null,Qe.sender==="user"&&Yn(Qe,dn),Qe.sender==="AI"&&Fi(Qe,dn),Le&&!["AI","user"].includes(Qe.sender)&&Le(Qe,dn,{width:ir})))))),!Li&&p.createElement("div",{className:R.backBottom,onClick:()=>{_t.current.scrollTop=_t.current.scrollHeight}},p.createElement("i",{className:"iconfont icon-huidaodibu"})),p.createElement("div",{ref:Pn})),Fn&&(ln==null?void 0:ln.length)<=0&&p.createElement("div",{style:{display:((ki=Object.keys(((Oi=Rt==null?void 0:Rt.bot_info)==null?void 0:Oi.onboarding_info)||{}))==null?void 0:ki.length)===0&&"none",marginTop:20,maxHeight:300,overflow:"auto"}},p.createElement("div",{style:{color:"#333",fontSize:16,whiteSpace:"pre-wrap"}},(ji=(vi=Rt==null?void 0:Rt.bot_info)==null?void 0:vi.onboarding_info)==null?void 0:ji.prologue),(wi=(Si=(ti=Rt==null?void 0:Rt.bot_info)==null?void 0:ti.onboarding_info)==null?void 0:Si.suggested_questions)==null?void 0:wi.map(Qe=>p.createElement("div",{onClick:()=>{dt(!0);const dn=ai.filter(Wn=>Wn.status==="done"),On=We.filter(Wn=>Wn.status==="done");gn([...ln,...Qi(Qe,dn,On)]),Ir(Qe)},className:R.bottomlist},Qe))),Fn&&(ln==null?void 0:ln.length)>0&&p.createElement("div",{style:{display:"flex",gap:20,marginBottom:20}},Nn&&p.createElement(U.ZP,{className:R.textmu,style:{height:34,borderRadius:20,width:102,padding:"0px 10px"},ghost:!0,type:"primary"},Nn),p.createElement(y.Z,{zIndex:1e3,placement:"topLeft",content:Re==null?void 0:Re(Br),title:"\u667A\u80FD\u5DE5\u5177"}," ",p.createElement(U.ZP,{style:{height:34,borderRadius:20,width:102},icon:p.createElement("i",{className:"iconfont icon-qita"}),type:"primary",ghost:!0},"\u667A\u80FD\u5DE5\u5177"))),!v&&p.createElement("div",{style:it,className:S()(R.footerContainer,Ee&&R.full,os&&R.footerContainerSelected)},p.createElement("div",{className:R.btnWrp},Xt&&p.createElement(m.Z,{title:"\u66F4\u64C5\u957F\u5904\u7406\u4EE3\u7801\u95EE\u9898\uFF0C\u652F\u6301\u4E00\u53E5\u8BDD\u751F\u6210\u5E94\u7528"},p.createElement("div",{onClick:()=>mn(!tn),className:S()(R.btn,tn&&R.btnActive)},p.createElement("i",{className:"iconfont icon-daimamoshi1 mr10 font12"}),"\u4EE3\u7801\u6A21\u5F0F")),Me&&p.createElement(m.Z,{title:"\u667A\u80FD\u611F\u77E5\u5F53\u524D\u60C5\u5883\uFF0C\u63D0\u4F9B\u9488\u5BF9\u6027\u89E3\u7B54"},p.createElement("div",{onClick:()=>kn(!$t),className:S()(R.btn,$t&&R.btnActive)},p.createElement("i",{className:"iconfont icon-changjingganzhi mr10 font12"}),"\u573A\u666F\u611F\u77E5")),Xn==="deepseek-r1"&&p.createElement(m.Z,{title:"\u8C03\u7528\u65B0\u6A21\u578B DeepSeek-R1\uFF0C\u89E3\u51B3\u63A8\u7406\u95EE\u9898"},p.createElement("div",{onClick:()=>qt(!un),className:S()(R.btn,un&&R.btnActive)},p.createElement("i",{className:"iconfont icon-shendusikao mr10 font12"}),"\u6DF1\u5EA6\u601D\u8003\uFF08R1\uFF09")),$n&&Xn==="qwen-plus-latest"&&p.createElement("div",{onClick:()=>on(!Tn),className:S()(R.btn,Tn&&R.btnActive)},p.createElement("i",{className:"iconfont icon-shangchuantupian2 mr10 font12"}),"\u56FE\u50CF\u751F\u6210"),qr.map(Qe=>p.createElement("div",{key:Qe.uid},(Qe==null?void 0:Qe.status)==="uploading"&&p.createElement(o.Z,{indicator:p.createElement(K.Z,{rev:"",spin:!0}),className:"mr10",size:"small",spinning:!0}),p.createElement("span",{title:Qe==null?void 0:Qe.name,className:"mr10"},(0,q.Pq)(Qe.name,20)),p.createElement("i",{onClick:()=>{wn(dn=>dn.filter(On=>On.uid!==Qe.uid)),ut(dn=>dn.filter(On=>On.uid!==Qe.uid))},className:"iconfont current icon-shanchu15 delete-hover c-red-ee4 font12"})))),p.createElement(m.Z,{title:Lr&&p.createElement("div",null,p.createElement("div",null,"\u60A8\u5DF2\u8FBE\u5230\u667A\u80FD\u52A9\u6559\u7684\u4F7F\u7528\u6B21\u6570"),p.createElement("div",null,"\u667A\u80FD\u52A9\u6559\u6BCF\u5929\u9650\u5236\u4F7F",G,"\u6B21\uFF0C\u8BF7\u660E\u5929\u518D\u8BD5\u3002"))},p.createElement("div",{style:{display:"flex"}},rn==null?void 0:rn(),p.createElement("div",{className:S()(R.inputContainer,pr>4&&R.lineFour,Lr&&R.disabledInput)},p.createElement(ce.default,Ve({ref:hi},Gr)),p.createElement(ce.default,Ve({ref:nr},bi)),p.createElement(_.Z,{className:`${Ts&&"hide"}`,menu:{items:Hs,onClick:Qe=>Gs(Qe.key)},placement:"top"},p.createElement(U.ZP,{className:R.uploadBtn,icon:p.createElement(k.Z,{rev:"",style:{fontSize:18,color:"#FFF"}})})),p.createElement(ve.default.TextArea,{rows:pr>4?4:pr,placeholder:Te||"\u5728\u8FD9\u91CC\u8F93\u5165\u4F60\u7684\u95EE\u9898\u5427\uFF0CShift+Enter\u6362\u884C\uFF5E",value:ni,bordered:!1,style:Ts?{paddingLeft:0,marginLeft:0}:{},onChange:is,onPressEnter:Dn,onFocus:()=>kt==null?void 0:kt(),onCompositionStart:()=>{Ji.current=!0},onCompositionEnd:()=>{Ji.current=!1}}),Pt?p.createElement(m.Z,{title:"\u505C\u6B62\u751F\u6210"},p.createElement("div",{className:`iconfont icon-tingzhihuida ${R.cancelBtn}`,onClick:pi})):p.createElement(U.ZP,{className:(ni==null?void 0:ni.trim())===""?R.sendBtnDisabled:R.sendBtn,icon:p.createElement("i",{className:"iconfont icon-fasong2 c-white"}),disabled:es,onClick:Vr}),pr>4&&p.createElement("span",{className:R.fullIcon,onClick:_r},Ee&&p.createElement("span",{className:"iconfont icon-shousuo"}),!Ee&&p.createElement("span",{className:"iconfont icon-zhankai"})))))))))}},2524:function(Xe,Ge,w){"use strict";var p=w(59301),Ae=w(93314),xe=w(7939),ce=Object.defineProperty,Y=Object.defineProperties,m=Object.getOwnPropertyDescriptors,ve=Object.getOwnPropertySymbols,U=Object.prototype.hasOwnProperty,o=Object.prototype.propertyIsEnumerable,X=(E,S,O)=>S in E?ce(E,S,{enumerable:!0,configurable:!0,writable:!0,value:O}):E[S]=O,L=(E,S)=>{for(var O in S||(S={}))U.call(S,O)&&X(E,O,S[O]);if(ve)for(var O of ve(S))o.call(S,O)&&X(E,O,S[O]);return E},_=(E,S)=>Y(E,m(S));const y=({img:E,buttonProps:S={},styles:O={},customText:P,ButtonText:H,ButtonClick:B,Buttonclass:R,ButtonTwo:J,imgStyles:q,loading:ge=!1,className:_e=""})=>p.createElement("section",{className:`tc animated fadeIn ${_e}`,style:L({color:"#999",margin:"100px auto",visibility:ge?"hidden":"visible"},O)},p.createElement("img",{src:E||Ae,style:_(L({},q),{pointerEvents:"none",userSelect:"none"})}),p.createElement("p",{className:"mt20 font14"},P||"\u6682\u65F6\u8FD8\u6CA1\u6709\u76F8\u5173\u6570\u636E\u54E6!"),H&&p.createElement(xe.ZP,L({className:R,onClick:B},S),H),J&&J);Ge.Z=y},52918:function(Xe,Ge,w){"use strict";w.d(Ge,{Z:function(){return R}});var p=w(59301),Ae={wrp:"wrp___dq7YK",bgBlack:"bgBlack___ARIUV",monaco:"monaco___VnZC3",darkBlue:"darkBlue___UprA9",close:"close___LKoWu",embed:"embed___hvpEJ"},xe=w(7939),ce=w(70557),Y=w(50258),m=w(25399),ve=w(65862),U=w(87513),o=w(2524),X=w(74128),L=w(7310),_=w(59301),y=Object.defineProperty,E=Object.getOwnPropertySymbols,S=Object.prototype.hasOwnProperty,O=Object.prototype.propertyIsEnumerable,P=(J,q,ge)=>q in J?y(J,q,{enumerable:!0,configurable:!0,writable:!0,value:ge}):J[q]=ge,H=(J,q)=>{for(var ge in q||(q={}))S.call(q,ge)&&P(J,ge,q[ge]);if(E)for(var ge of E(q))O.call(q,ge)&&P(J,ge,q[ge]);return J},B=(J,q,ge)=>new Promise((_e,se)=>{var we=oe=>{try{ie(ge.next(oe))}catch(K){se(K)}},de=oe=>{try{ie(ge.throw(oe))}catch(K){se(K)}},ie=oe=>oe.done?_e(oe.value):Promise.resolve(oe.value).then(we,de);ie((ge=ge.apply(J,q)).next())}),R=({editOffice:J="view",data:q,issaver:ge,onSaver:_e,theme:se,type:we,filename:de,monacoEditor:ie,className:oe,style:K,close:k,onClose:V,hasMask:$,disabledDownload:ae,onImgDimensions:re,showNodata:x,recordInfo:b})=>{const[W,fe]=(0,p.useState)("https://view.officeapps.live.com/op/view.aspx?src=http://testgs.educoder.net//rails/active_storage/blobs/eyJfcmFpbHMiOnsibWVzc2FnZSI6IkJBaHBCZz09IiwiZXhwIjpudWxsLCJwdXIiOiJibG9iX2lkIn19--03541f6234b93d7ac3b2d84e7eb0e6594a952945/1.ppt"),[ke,je]=(0,p.useState)(""),[yt,ht]=(0,p.useState)(),Ot=window.ENV==="build"?"/react/build":"",Dt=location.host.startsWith("localhost")?X.Z.PROXY_SERVER:X.Z.API_SERVER,Jt=10*(1024*1024),ot=(0,p.useRef)();q!=null&&q.startsWith("/api")&&we!=="txt"&&(q=X.Z.API_SERVER+q);const Et=v=>v.substring(v.lastIndexOf("/")+1).split(".").pop();de&&ie&&(ie.filename=de),(0,p.useEffect)(()=>{var v,T;const ee=(T=(v=document.cookie)==null?void 0:v.replace(/\s/g,""))==null?void 0:T.split(";");ee==null||ee.map(N=>{let z=N.split("=");z[0]==="_educoder_session"&&je(z[1])})},[]),(0,p.useEffect)(()=>{we==="office"&&(q.indexOf("bigfilescdn.")>-1||q.indexOf("bigfiles1")>-1?ht({url:q,fileType:Et(q),model:q.indexOf("model=edit")?"edit":"view"}):Kt())},[we,q]);function qe(v){return B(this,null,function*(){v.data.type==="pdfdata"&&(_e(v.data.data),window.removeEventListener("message",qe,!1)),console.log("mess---:",v.data)})}const Kt=()=>B(void 0,null,function*(){console.log("data:",q);let v=q;q.startsWith("http")||(v=location.origin+v);let T=new URL(v).pathname.split("/").pop();const ee=yield(0,U.gJ)({attachment_id:T});ee.url=Dt+ee.url,ht(ee)}),Te=()=>{if(q.startsWith("http")||q.startsWith("blob:")){F();return}(0,ve.Sv)(de||"educoder",q,de)},F=()=>{b&&(0,L.fc)({id:b==null?void 0:b.id,watch_type:1,course_id:b==null?void 0:b.course_id}),(0,ve.Nd)(de||"educoder",decodeURIComponent(q))};return _.createElement("div",{style:H({},K||{}),className:`${$&&Ae.bgBlack} ${we?Ae.wrp:"hide"}`},k&&_.createElement("div",{className:Ae.close,ref:ot},!!re&&_.createElement(m.Z,{title:"\u70B9\u51FB\u5BF9\u56FE\u7247\u8FDB\u884C\u6279\u6CE8",getPopupContainer:()=>ot.current},_.createElement("span",{onClick:()=>{V(),re()}},_.createElement("i",{className:"icon-yulanpizhu"}))),!ae&&_.createElement(m.Z,{title:"\u70B9\u51FB\u4E0B\u8F7D\u6B64\u6587\u4EF6",getPopupContainer:()=>ot.current},_.createElement("span",{onClick:F},_.createElement("i",{className:"icon-quxiaozhiding"}))),ge&&_.createElement(m.Z,{title:"\u4FDD\u5B58pdf\u5E76\u9000\u51FA",getPopupContainer:()=>ot.current},_.createElement("span",{className:"",onClick:()=>{const v=document.getElementById("pdfiframe");window.addEventListener("message",qe,!1),setTimeout(()=>{v.contentWindow.postMessage("getData","*")},300)}},_.createElement("i",{className:"icon-baocun"}))),_.createElement(m.Z,{title:"\u5173\u95ED",getPopupContainer:()=>ot.current},_.createElement("span",{className:"",onClick:()=>{V()}},_.createElement("i",{className:"icon-guanbi1"})))),_.createElement("div",{className:`${Ae[oe]} ${oe} ${Ae.monaco} ${we==="txt"?"show":"hide"}`},we==="txt"&&_.createElement(_.Fragment,null,_.createElement(Y.ZP,H({},ie)))),we==="audio"&&_.createElement("audio",{src:`${(q==null?void 0:q.indexOf("http://"))>-1||(q==null?void 0:q.indexOf("https://"))>-1?"":"data:audio/mp3;base64,"}${q}`,autoPlay:!0}),we==="video"&&_.createElement(_.Fragment,null,(q==null?void 0:q.indexOf("http"))>-1?_.createElement("video",{controls:!0,src:`${q}`,autoPlay:!0}):_.createElement("video",{controls:!0,src:`data:video/mp4;base64,${q}`,autoPlay:!0})),we==="office"&&yt&&_.createElement("iframe",{src:`${Ot}/office.html?key=${yt.key}&url=${btoa(yt.url)}&callbackUrl=${Dt+(yt.callbackUrl||"")}&fileType=${yt.fileType}&title=${yt.title||""}&model=${J}&officeServer=${X.Z.ONLYOFFICE}&disabledDownload=${!!ae}`}),we==="html"&&_.createElement("iframe",{src:q+"&disposition=inline"}),we==="pdf"&&_.createElement("iframe",{id:"pdfiframe",src:`${Ot}/js/pdf/index.html?filename=${de||"educoder.pdf"}&url=${encodeURIComponent(q)}&disabledDownload=${!!ae}&model=${J}`}),we==="image"&&_.createElement("img",{src:`${(q==null?void 0:q.indexOf("http://"))>-1||(q==null?void 0:q.indexOf("https://"))>-1?"":"data:image/png;base64,"}${q}`}),(we==="other"||we==="download")&&_.createElement(_.Fragment,null,x?_.createElement(o.Z,{customText:"\u5F53\u524D\u6587\u4EF6\u4E0D\u652F\u6301\u9884\u89C8\uFF0C\u53EF\u70B9\u51FB\u4E0B\u8F7D\u67E5\u770B",ButtonTwo:_.createElement(xe.ZP,{icon:_.createElement("i",{className:"iconfont icon-xiazai4 font14"}),type:"primary",size:"middle",onClick:Te,disabled:ae},"\u4E0B\u8F7D")}):_.createElement(xe.ZP,{type:"primary",size:"middle",onClick:Te,disabled:ae},_.createElement(ce.Z,null),"\u70B9\u51FB\u4E0B\u8F7D")),we==="flowChart"&&_.createElement("div",{className:"embed"},_.createElement("iframe",{src:`/drawio/src/main/webapp/viewer.html?id=${q||""}&gapi=0&od=0&db=0&gh=0&gl=0`,width:"100%",height:"100%",frameBorder:"0"})))}},95097:function(Xe,Ge,w){"use strict";w.d(Ge,{z:function(){return ie},Z:function(){return oe}});var p=w(59301),Ae=w(48850),xe=w(49142),ce=w(64018),Y=w(80360),m=w(74128),ve=w(65862),U=w(15342),o=w(44104),X=w(7939),L=w(1012),_=w(52918),y=w(59301),S=({html:K})=>{const k=(0,p.useRef)(null),V=(0,p.useRef)(null),$=`.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,p.useEffect)(()=>{const ae=k.current.attachShadow({mode:"open"});V.current=document.createElement("div"),V.current.className="markdown-body",V.current.innerHTML=K,ae.appendChild(V.current);const re=document.createElement("style");return re.textContent=$,ae.appendChild(re),()=>{ae.innerHTML=""}},[]),(0,p.useEffect)(()=>{V.current&&(V.current.innerHTML=K)},[K]),y.createElement("div",{ref:k})};function O(K){const k=["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"],V=new RegExp(`\\b(${k.join("|")})\\s*=\\s*(?:"[^"]*"|'[^']*'|[^\\s>]*)`,"gi");return K.replace(V,"").trim()}var P={mdBody:"mdBody___raKXb",button:"button___Ch5Pc",previewFlowChart:"previewFlowChart___vY1dq"},H=Object.defineProperty,B=Object.getOwnPropertySymbols,R=Object.prototype.hasOwnProperty,J=Object.prototype.propertyIsEnumerable,q=(K,k,V)=>k in K?H(K,k,{enumerable:!0,configurable:!0,writable:!0,value:V}):K[k]=V,ge=(K,k)=>{for(var V in k||(k={}))R.call(k,V)&&q(K,V,k[V]);if(B)for(var V of B(k))J.call(k,V)&&q(K,V,k[V]);return K};const _e="@\u2581\u2581@",se="@\u2581@",we=/<pre[^>]*>/g;function de(K){let k=document.createElement("div");return k.innerHTML=K,k.childNodes.length===0?"":k.childNodes[0].nodeValue}const ie=(K,k)=>{K=K||"";const V=/(?:https?:\/\/[^\/]+)?\/api\/attachments\/([A-Za-z0-9+/=]+)(\?.*?)?\)|(?:https?:\/\/[^\/]+)?\/api\/attachments\/([A-Za-z0-9+/=]+)(\?.*?)?|(?:https?:\/\/[^\/]+)?\/attachments\/download\/([A-Za-z0-9+/=]+)(\?.*?)?\//g,$=/\"(?:https?:\/\/[^\/]+)?\/api\/attachments\/([A-Za-z0-9+/=]+)(\?.*?)?|\"(?:https?:\/\/[^\/]+)?\/attachments\/download\/([A-Za-z0-9+/=]+)(\?.*?)?\//g,ae=/\(\s+(?:https?:\/\/[^\/]+)?\/files\/uploads\/([A-Za-z0-9+/=]+)(\?.*?)?|\"(?:https?:\/\/[^\/]+)?\/files\/uploads\/([A-Za-z0-9+/=]+)(\?.*?)?\//g,re=/(?:https?:\/\/[^\/]+)?\/attachments\/download\/([A-Za-z0-9+/=]+)(\?.*?)?\//g;return k?K.replaceAll("https://www.educoder.net","").replaceAll("https://www-cdn.educoder.net","").replaceAll("//api/attachments","/api/attachments").replace(V,(x,b,W,fe,ke,je,yt)=>{const ht=b||fe||je,Ot=W||ke||yt||"?";return m.Z.API_SERVER+"/api/attachments/"+ht+Ot+"&t="+(0,ve.Jn)(ht,Date.now())+(x.indexOf(")")>-1?")":"&")}).replaceAll('src="(','src="').replaceAll("src='(",'src="'):(K=K.replace(re,(x,b,W,fe,ke,je,yt)=>{const ht=b||fe||je,Ot=W||ke||yt||"?";return m.Z.API_SERVER+"/attachments/download/"+ht+Ot+"&t="+(0,ve.Jn)(ht,Date.now())+(x.indexOf(")")>-1?")":"&")}).replace(V,(x,b,W,fe,ke,je,yt)=>{const ht=b||fe||je,Ot=W||ke||yt||"?";return m.Z.API_SERVER+"/api/attachments/"+ht+Ot+"&t="+(0,ve.Jn)(ht,Date.now())+(x.indexOf(")")>-1?")":"&")}).replace($,(x,b,W,fe,ke)=>{const je=b||fe,yt=W||ke||"";return'"'+m.Z.API_SERVER+"/api/attachments/"+je+yt+je+yt+"&t="+(0,ve.Jn)(je,Date.now())}).replace(ae,(x,b,W,fe,ke)=>{const je=b||fe,yt=W||ke||"";return"("+m.Z.API_SERVER+"/files/uploads/"+je+yt+je+yt+"&t="+(0,ve.Jn)(je,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,`
`),K)};var oe=({value:K="",edit:k=!1,className:V,showTextOnly:$,showLines:ae,style:re={},stylesPrev:x={},highlightKeywords:b,showProgramFill:W,isProgramFill:fe,disabledFill:ke=!1,programFillValue:je,openEditor:yt=()=>{},onFillChange:ht=Ve=>{},onFillBlur:Ot=()=>{},onFillFocus:Dt=()=>{}})=>{let Ve=O(String(K||""));const Jt=(0,p.useRef)(),ot=(0,p.useRef)(),[Et,qe]=(0,p.useState)(""),[Kt,Te]=(0,p.useState)("office"),[F,v]=(0,p.useState)([]),T=(0,p.useRef)("a"+(0,L.Z)()),ee={},N=Pe=>/<style[\s\S]*?>/i.test(Pe||""),z=(Pe,wt,Lt)=>{const St=document.createElement(Pe===se?"input":"textarea");St.style.width="100%",St.style.height=Pe===se?"40px":"151px",St.rows=5,St.spellcheck=!1,St.name="edu-program-fill",St.placeholder="\u8BF7\u8F93\u5165",St.dataset.id=wt;const en=Object.keys(ee).length;return ee[en]=St,`<span class="edu-program-fill-wrap ${Pe===se?"":"show"}" style="width:${Pe===se?"600px":"100%"}" title=${Lt||""}><span>${St.outerHTML}<span class="edu-program-fill-score" style="margin:0 6px"></span></span></span>`};function he(Pe){return Pe=Pe.replace(/!\[.*?\]\(.*?\)/g,""),Pe=Pe.replace(/\[.*?\]\(.*?\)/g,""),Pe=Pe.replace(new RegExp("<iframe.*?<\\/iframe>","gs"),""),Pe=Pe.replace(/<embed.*?>/g,""),Pe=Pe.replace(/<img.*?>/g,""),Pe=Pe.replace(new RegExp("<video.*?>.*?<\\/video>","gs"),""),Pe=Pe.replace(new RegExp("<audio.*?>.*?<\\/audio>","gs"),""),Pe=Pe.replace(new RegExp("<style.*?>.*?<\\/style>","gs"),""),Pe=Pe.replace(new RegExp("<script.*?>.*?<\\/script>","gs"),""),Pe}const Fe=Pe=>!$&&N(Ve)?Pe:Pe.replace(/<style.*?>([\s\S]+?)<\/style>/gim,function(wt,Lt){let St=Lt.replace(/(\n|\r)/g,"").split("}"),en=[];return St.map(Yt=>{Yt!=""&&en.push(`.${T.current} ${Yt}`)}),`<style>${en.join("}")}</style>`}),Ne=(0,p.useMemo)(()=>{try{const St=/\(\s+\/api\/attachments\/|\(\/api\/attachments\//g,en=/\"\/api\/attachments\/|\"\/attachments\/download\//g,Yt=/\(\s+\/files\/uploads\/|\"\/files\/uploads\//g,Ht=/\(\/attachments\/download\//g;Ve=Ve.replace(Ht,"("+m.Z.API_SERVER+"/attachments/download/").replace(St,"("+m.Z.API_SERVER+"/api/attachments/").replace(en,'"'+m.Z.API_SERVER+"/api/attachments/").replace(Yt,'"'+m.Z.API_SERVER+"/files/uploads/").replaceAll("http://video.educoder","https://video.educoder").replaceAll("http://www.educoder.net/api","https://data.educoder.net/api").replaceAll("https://www.educoder.net/api","https://data.educoder.net/api").replace(/\r\n/g,`
`),Jt.current.style.display="none"}catch(St){}if(W){let St=-1;return Ve=Ve.replaceAll("<","&lt;").replaceAll(">","&gt;").replace(/(@▁▁@|@▁@)/g,function(en,Yt,Ht){var In;return++St,z(en,St,(In=je==null?void 0:je[St])==null?void 0:In.value.replaceAll("<","&lt;").replaceAll(">","&gt;"))}),`<pre style="background:#fff;padding:4px">${Fe(Ve||"")}</pre>`}let Pe=Fe(Ve);Pe=(0,xe.ZP)(Pe);const wt=(0,xe.ez)();Ve.match(/\[TOC\]/)&&(Pe=Pe.replace("<p>[TOC]</p>",(0,xe.Qv)()),(0,xe.Iy)()),Pe=Pe.replace(/(__special_katext_id_\d+__)/g,(St,en)=>{const{type:Yt,expression:Ht}=wt[en];return(0,U.renderToString)(de(Ht)||"",{displayMode:Yt==="block",throwOnError:!1,output:"html"})}),Pe=Pe.replace(/▁/g,"\u2581\u2581\u2581\u2581\u2581"),(0,xe.AL)();const Lt=document.createElement("div");if(Lt.innerHTML=Pe,$)return Lt.innerText;if(b){const St=b.replace(/[.*+?^${}()|[\]\\]/g,"\\$&");return Tt(Lt,St),Lt.innerHTML}return setTimeout(()=>It(),500),Lt.innerHTML},[Ve,b]);(0,p.useEffect)(()=>{Ct.current&&Ct.current.querySelectorAll(["input","textarea"]).forEach(wt=>{wt.oninput=rt,wt.onblur=lt,wt.onfocus=zt})},[F]),(0,p.useEffect)(()=>{var Pe,wt,Lt,St,en;if(je!=null&&je.length)try{const Yt=Ct.current.querySelectorAll(".edu-program-fill-score"),Ht=Ct.current.querySelectorAll('[name="edu-program-fill"]');for(const[In,$n]of Ht.entries())$n.value=((Pe=je==null?void 0:je[In])==null?void 0:Pe.value)||"",((wt=je==null?void 0:je[In])==null?void 0:wt.type)==="warning"?$n.className="program-fill-warning":((Lt=je==null?void 0:je[In])==null?void 0:Lt.type)==="success"?$n.className="program-fill-success":$n.className="";for(const[In,$n]of Yt.entries())$n.innerHTML=(St=je==null?void 0:je[In])!=null&&St.score?`${(en=je==null?void 0:je[In])==null?void 0:en.score}\u5206`:"";v(je)}catch(Yt){console.log(Yt,"error")}},[je]);const rt=Pe=>{F[Pe.target.dataset.id]=F[Pe.target.dataset.id]||{},F[Pe.target.dataset.id].value=Pe.target.value,v([...F]),ht(F,Pe.target.dataset.id)},lt=Pe=>{F[Pe.target.dataset.id]=F[Pe.target.dataset.id]||{},F[Pe.target.dataset.id].value=Pe.target.value,v([...F]),Ot(F,Pe.target.dataset.id)},zt=Pe=>{F[Pe.target.dataset.id]=F[Pe.target.dataset.id]||{},F[Pe.target.dataset.id].value=Pe.target.value,v([...F]),Dt(F,Pe.target.dataset.id)};function Tt(Pe,wt){return Pe.childNodes.forEach(Lt=>{var St;if(Lt.childNodes.length>0)Tt(Lt,wt);else if(Lt.nodeName!=="IMG")if(Lt.innerHTML)Lt.innerHTML=(St=Lt.innerHTML)==null?void 0:St.replace(new RegExp(wt,"gi"),'<span style="color:#0152d9;background-color:#1890ff33">$&</span>');else{const en=document.createElement("span");en.innerHTML=Lt.textContent.replace(new RegExp(wt,"gi"),'<span style="color:#0152d9;background-color:#1890ff33">$&</span>'),Lt.replaceWith(en)}})}const Ct=(0,p.useRef)();xe.jb.WebkitLineClamp=ae,ae&&(re=ge(ge({},re),xe.jb));function At(Pe){let wt=Pe.target;if(wt.tagName.toUpperCase()==="A"){let Lt=wt.getAttribute("href");if(Lt.indexOf("office")>-1)Pe.preventDefault(),qe(Lt),Te("office");else if(Lt.indexOf("application/pdf")>-1)Pe.preventDefault(),qe(Lt),Te("pdf");else if(Lt.indexOf("text/html")>-1)Pe.preventDefault(),qe(Lt),Te("html");else if(Lt.startsWith("#")){Pe.preventDefault();let St=document.getElementById(Lt.replace("#",""));St&&St.scrollIntoView(!0)}}}const It=()=>{var Pe;const wt=(Pe=Ct.current)==null?void 0:Pe.querySelectorAll("video");wt==null||wt.forEach(Lt=>{if(Lt.oncontextmenu=()=>!1,Lt.src.indexOf(".m3u8")>-1&&!Lt.canPlayType("application/vnd.apple.mpegurl")){if(Y.ZP.isSupported()){var St=new Y.ZP;St.loadSource(Lt.src),St.attachMedia(Lt)}}})};(0,p.useEffect)(()=>{if(Ct.current&&Ne&&Ne.match(we)&&window.PR.prettyPrint(),Ct.current)return Ct.current.addEventListener("click",At),()=>{var Pe;(Pe=Ct.current)==null||Pe.removeEventListener("click",At),(0,xe.AL)(),(0,xe.Iy)()}},[Ne,Ct.current,At]);const st=Pe=>{Pe.target.nodeName==="IMG"&&Pe.target.className.indexOf("draw-flowchart")>-1?(Jt.current.style.zIndex=1,Jt.current.style.display="flex",Jt.current.style.width=Pe.target.clientWidth+"px",Jt.current.style.height=Pe.target.clientHeight+"px",Jt.current.style.top=Pe.target.offsetTop+"px",Jt.current.style.left=Pe.target.offsetLeft+"px",Pe.target.id&&(ot.current=Pe.target.id)):Jt.current.style.display="none"},ct=()=>{Jt.current.style.display="none"};return(0,p.useEffect)(()=>{var Pe;const wt=Lt=>{Lt.preventDefault(),Lt.clipboardData.setData("text",window.getSelection().toString())};return(Pe=Ct.current)==null||Pe.addEventListener("copy",wt),()=>{var Lt;(Lt=Ct.current)==null||Lt.removeEventListener("copy",wt)}},[Ct.current]),p.createElement("div",{style:{position:"relative"},onMouseLeave:ct},$&&p.createElement("div",{ref:Ct,className:`${P.mdBody} `},Ne),!$&&!N(Ne)&&p.createElement("div",{ref:Ct,style:ge({},re),onMouseOver:st,className:`${V||""} ${ke?"disabled-fill":""} markdown-body ${P.mdBody} ${T.current}`,dangerouslySetInnerHTML:{__html:Ne}}),!$&&N(Ne)&&p.createElement(S,{html:Ne}),p.createElement("div",{ref:Jt,className:`${P.button} ${k?"":P.previewFlowChart}`},p.createElement(o.Z,null,p.createElement(X.ZP,{onClick:()=>{k?yt(ot.current):(qe(ot.current),Te("flowChart"))}},k?"\u7F16\u8F91":"\u9884\u89C8"))),p.createElement(_.Z,{close:!0,data:Et,type:Et!=null&&Et.length?Kt:"",style:ge({},x),onClose:()=>qe("")}))}},50258:function(Xe,Ge,w){"use strict";w.d(Ge,{SV:function(){return Jt},ZP:function(){return Ve}});var p=w(59301),Ae=w(76374);const xe={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"]},ce={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"]},Y={keywords:["abstract","amp","array","auto","bool","break","case","catch","char","class","const","constexpr","const_cast","continue","cpu","decltype","default","delegate","delete","do","double","dynamic_cast","each","else","enum","event","explicit","export","extern","false","final","finally","float","friend","gcnew","generic","goto","in","initonly","inline","int","interface","interior_ptr","internal","literal","long","mutable","namespace","new","noexcept","nullptr","__nullptr","operator","override","partial","pascal","pin_ptr","private","property","protected","public","ref","register","reinterpret_cast","restrict","return","safe_cast","sealed","short","signed","sizeof","static","static_assert","static_cast","struct","switch","template","this","thread_local","throw","tile_static","true","try","typedef","typeid","typename","union","unsigned","using","virtual","void","volatile","wchar_t","where","while","_asm","_based","_cdecl","_declspec","_fastcall","_if_exists","_if_not_exists","_inline","_multiple_inheritance","_pascal","_single_inheritance","_stdcall","_virtual_inheritance","_w64","__abstract","__alignof","__asm","__assume","__based","__box","__builtin_alignof","__cdecl","__clrcall","__declspec","__delegate","__event","__except","__fastcall","__finally","__forceinline","__gc","__hook","__identifier","__if_exists","__if_not_exists","__inline","__int128","__int16","__int32","__int64","__int8","__interface","__leave","__m128","__m128d","__m128i","__m256","__m256d","__m256i","__m64","__multiple_inheritance","__newslot","__nogc","__noop","__nounwind","__novtordisp","__pascal","__pin","__pragma","__property","__ptr32","__ptr64","__raise","__restrict","__resume","__sealed","__single_inheritance","__stdcall","__super","__thiscall","__try","__try_cast","__typeof","__unaligned","__unhook","__uuidof","__value","__virtual_inheritance","__w64","__wchar_t"],operators:["=",">","<","!","~","?",":","==","<=",">=","!=","&&","||","++","--","+","-","*","/","&","|","^","%","<<",">>",">>>","+=","-=","*=","/=","&=","|=","^=","%=","<<=",">>=",">>>="],quickKey:[{label:"ifelse",content:["if (${1:condition}) {"," $0","} else {"," ","}"].join(`
`)},{label:"include",content:"include<$0>"},{label:"printf",content:"printf($0)"},{label:"system",content:'system("$0")'},{label:"main",content:["int main () {"," $0","}"].join(`
`)},{label:"if",content:["if () {"," $0","}"].join(`
`)},{label:"for",content:["for(int j=0 ; j<10; j++){"," $0","}"].join(`
`)},{label:"trycatch",content:["try{"," $0","}catch(ExceptionName e){","}"].join(`
`)},{label:"using namespace std",content:["using namespace std"].join(`
`)},{label:"include <iostream>",content:["#include <iostream>"].join(`
`)},{label:"include <vector>",content:["#include <vector>"].join(`
`)},{label:"include <cstdio>",content:["#include <cstdio>"].join(`
`)},{label:"include <cstring>",content:["#include <cstring>"].join(`
`)},{label:"include <sstream>",content:["#include <sstream>"].join(`
`)},{label:"include <fstream>",content:["#include <fstream>"].join(`
`)},{label:"include <map>",content:["#include <map>"].join(`
`)},{label:"include <string>",content:["#include <string>"].join(`
`)},{label:"include <cmath>",content:["#include <cmath>"].join(`
`)}]},m={keywords:["and","as","assert","break","class","continue","def","del","elif","else","except","exec","finally","for","from","global","if","import","in","is","lambda","None","not","or","pass","raise","return","self","try","while","with","yield","int","float","long","complex","hex","abs","all","any","apply","basestring","bin","bool","buffer","bytearray","callable","chr","classmethod","cmp","coerce","compile","complex","delattr","dict","dir","divmod","enumerate","eval","execfile","file","filter","format","frozenset","getattr","globals","hasattr","hash","help","id","input","intern","isinstance","issubclass","iter","len","locals","list","map","max","memoryview","min","next","object","oct","open","ord","pow","print","property","reversed","range","raw_input","reduce","reload","repr","reversed","round","set","setattr","slice","sorted","staticmethod","str","sum","super","tuple","type","unichr","unicode","vars","xrange","zip","True","False","__dict__","__methods__","__members__","__class__","__bases__","__name__","__mro__","__subclasses__","__init__","__import__"],quickKey:[{label:"print",content:["print($0)"].join(`
`)}]},ve={keywords:["asInstanceOf","catch","class","classOf","def","do","else","extends","finally","for","foreach","forSome","if","import","isInstanceOf","macro","match","new","object","package","return","throw","trait","try","type","until","val","var","while","with","yield","given","enum","then"],quickKey:[{label:"println",content:["println($0)"].join(`
`)}]};var U=w(53184),o=w.n(U),X=(ot,Et,qe)=>new Promise((Kt,Te)=>{var F=ee=>{try{T(qe.next(ee))}catch(N){Te(N)}},v=ee=>{try{T(qe.throw(ee))}catch(N){Te(N)}},T=ee=>ee.done?Kt(ee.value):Promise.resolve(ee.value).then(F,v);T((qe=qe.apply(ot,Et)).next())});const L={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"]}},_=(ot,Et,qe,Kt)=>{const Te=Et.getValueInRange({startLineNumber:1,startColumn:1,endLineNumber:qe.lineNumber,endColumn:qe.column});return Array.from(new Set(Te.match(/\b\w{2,}\b/g)||[])).map(v=>({label:v,kind:ot.languages.CompletionItemKind.Text,insertText:v,range:Kt}))},y=(ot,Et,qe,Kt)=>{ot.languages.registerCompletionItemProvider(Et,{provideCompletionItems(Te,F){const v=Te.getWordUntilPosition(F),T={startLineNumber:F.lineNumber,endLineNumber:F.lineNumber,startColumn:v.startColumn,endColumn:v.endColumn},ee=Te.getLineContent(F.lineNumber).substring(v.startColumn-2,v.endColumn);return{suggestions:[..._(ot,Te,F,T),...qe.map(z=>({label:z,kind:ot.languages.CompletionItemKind.Keyword,documentation:z,insertText:z,insertTextRules:ot.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:T})),...Kt.map(z=>({label:z.label,kind:ot.languages.CompletionItemKind.Snippet,documentation:z.content,insertText:ee.startsWith("#")?z.content.replace(/#/,""):z.content,insertTextRules:ot.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:T}))]}}})};var E=ot=>{L.languages.forEach(Et=>{ot.languages.registerDocumentFormattingEditProvider(Et,{provideDocumentFormattingEdits(qe){return X(this,null,function*(){const Kt=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:Kt}]})}})}),y(ot,"java",ce.keywords,ce.quickKey),y(ot,"cpp",Y.keywords,Y.quickKey),y(ot,"c",xe.keywords,[]),y(ot,"python",m.keywords,m.quickKey),y(ot,"scala",ve.keywords,ve.quickKey)};const S="\u8BE5\u4EFB\u52A1\u5173\u5361\u8BBE\u7F6E\u4E86\u7981\u6B62\u590D\u5236\u7C98\u8D34\uFF0C\u8BF7\u624B\u52A8\u8F93\u5165\u4EE3\u7801\u3002";var O=Object.defineProperty,P=(ot,Et,qe)=>Et in ot?O(ot,Et,{enumerable:!0,configurable:!0,writable:!0,value:qe}):ot[Et]=qe,H=(ot,Et,qe)=>P(ot,typeof Et!="symbol"?Et+"":Et,qe);const B=class tc{constructor(Et,qe,Kt){this.placeholder=Et,this.editor=qe,this.monaco=Kt,qe.onDidChangeModelContent(()=>this.onDidChangeModelContent()),this.onDidChangeModelContent()}onDidChangeModelContent(){this.editor.getValue()===""?this.editor.addContentWidget(this):this.editor.removeContentWidget(this)}getId(){return tc.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)}};H(B,"ID","editor.widget.placeholderHint");var J=B,q=w(96236),ge=w(6767),_e=w(25399),se=w(89392),we=w(77254),de=w(56102),ie=Object.defineProperty,oe=Object.defineProperties,K=Object.getOwnPropertyDescriptors,k=Object.getOwnPropertySymbols,V=Object.prototype.hasOwnProperty,$=Object.prototype.propertyIsEnumerable,ae=(ot,Et,qe)=>Et in ot?ie(ot,Et,{enumerable:!0,configurable:!0,writable:!0,value:qe}):ot[Et]=qe,re=(ot,Et)=>{for(var qe in Et||(Et={}))V.call(Et,qe)&&ae(ot,qe,Et[qe]);if(k)for(var qe of k(Et))$.call(Et,qe)&&ae(ot,qe,Et[qe]);return ot},x=(ot,Et)=>oe(ot,K(Et)),b=(ot,Et)=>{var qe={};for(var Kt in ot)V.call(ot,Kt)&&Et.indexOf(Kt)<0&&(qe[Kt]=ot[Kt]);if(ot!=null&&k)for(var Kt of k(ot))Et.indexOf(Kt)<0&&$.call(ot,Kt)&&(qe[Kt]=ot[Kt]);return qe},W=(ot,Et,qe)=>new Promise((Kt,Te)=>{var F=ee=>{try{T(qe.next(ee))}catch(N){Te(N)}},v=ee=>{try{T(qe.throw(ee))}catch(N){Te(N)}},T=ee=>ee.done?Kt(ee.value):Promise.resolve(ee.value).then(F,v);T((qe=qe.apply(ot,Et)).next())});function fe(ot){return/^\d+$/.test(ot)?`${ot}px`:ot}function ke(){}let je=!1;const yt={"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 ht(ot=[]){let Et=ot;if(Array.isArray(ot)){for(let qe=0;qe<ot.length;qe++){let Kt=yt[ot[qe]];if(Kt)return Kt}return Et[0]}return yt[Et]||Et}let Ot=null;const Dt=()=>W(void 0,null,function*(){try{yield navigator.clipboard.writeText(" "),console.log("\u5185\u5BB9\u5DF2\u81EA\u52A8\u590D\u5236\u5230\u526A\u8D34\u677F:")}catch(ot){console.error("\u81EA\u52A8\u590D\u5236\u5931\u8D25:",ot)}});var Ve=ot=>{var Et=ot,{width:qe="100%",height:Kt="100%",value:Te,language:F="javascript",style:v={},options:T={},overrideServices:ee={},theme:N="vs-dark",onEditBlur:z,isCopy:he=!1,onSave:Fe,autoHeight:Ne=!1,forbidCopy:rt=!1,onChange:lt=ke,editorDidMount:zt=ke,onFocus:Tt=ke,onBreakPoint:Ct=ke,breakPointValue:At=[],filename:It="educoder.txt",errorLine:st,errorContent:ct="",highlightLine:Pe,openBreakPoint:wt=!1,placeholder:Lt="",showMiniMap:St=!0}=Et,en=b(Et,["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 Yt=(0,p.useRef)(),Ht=(0,p.useRef)({}),In=(0,p.useRef)(),$n=(0,p.useRef)(),Vt=(0,p.useRef)([]),vn=(0,p.useRef)(!1),He=(0,p.useRef)(),Le=(0,p.useRef)(),De=(0,p.useRef)(!1),[te,ue]=(0,p.useState)(!1);function Se(){let Rt;return Yt.current&&(Rt=new Ae.Z(Ft=>{for(let rn of Ft)(rn.target.offsetHeight>0||rn.target.offsetWidth>0)&&Ht.current.instance.layout()}),Rt.observe(Yt.current)),Rt}function Ie(){ge.ZP.warning({content:decodeURIComponent(S),key:"monaco-editor-tip"})}const Me=()=>{let Rt=Ht.current.instance;if(Te!=null&&Rt&&te){const Ft=Rt.getModel();Ft&&Te!==Ft.getValue()&&(je=!0,Ft.setValue(Te),Rt.layout(),je=!1)}};(0,p.useEffect)(()=>{const Rt=we.Z.subscribe("formatDocument",Ft=>{var rn;let _n=Ht.current.instance;(rn=_n==null?void 0:_n.getAction)==null||rn.call(_n,"editor.action.formatDocument").run()});return window.updateMonacoValue=Ft=>{lt(Ft)},Rt},[]),(0,p.useEffect)(()=>{var Rt;let Ft=Ht.current.instance;$n.current&&clearTimeout($n.current),$n.current=setTimeout(()=>{Me()},500),Te&&(Te!=null&&Te.length)&&((Rt=Ft==null?void 0:Ft.updateOptions)==null||Rt.call(Ft,{lineNumbersMinChars:Math.max(Math.floor(Math.log10(Te.split(/\r\n|\r|\n/g).length))+3,5)}))},[Te,te,Ht.current]),(0,p.useEffect)(()=>{if(st&&Ht.current&&Ht.current.instance){let Ft=Ht.current.instance;Ft.changeViewZones(function(rn){var _n=document.createElement("div");_n.style.padding="10px 20px",_n.style.width="calc(100% - 20px)",_n.className="my-error-line-wrp",_n.innerHTML=ct,rn.addZone({afterLineNumber:st||11,heightInLines:3,domNode:_n})});var Rt={domNode:null,getId:function(){return"my.overlay.widget"},getDomNode:function(){return this.domNode||(this.domNode=document.createElement("div"),this.domNode.innerHTML="",this.domNode.style.width="100%",this.domNode.style.padding="20px 100px",this.domNode.style.right="0px",this.domNode.style.top="50px",this.domNode.style.position="relative",this.domNode.style.color="#333"),this.domNode},getPosition:function(){return null}};Ft.addOverlayWidget(Rt),Ft.revealPositionInCenter({lineNumber:20,column:1})}},[st,Ht.current,te]);const Ke=(Rt="",Ft)=>{if(!Rt||Rt.trim()==="")return!0;const _n=Ht.current.instance.getModel().getLineTokens(Ft);let Mn=!1;for(let oi=0;oi<2;oi++)_n.getStandardTokenType(oi)===1&&(Mn=!0);return Mn};(0,p.useEffect)(()=>{var Rt;const Ft=(Rt=Ht.current)==null?void 0:Rt.instance;if(Ft&&te&&rt){const rn=Ft.onDidBlurEditorWidget(()=>{De.current=!1}),_n=Ft.onDidFocusEditorText(()=>{De.current=!0});return()=>{rn.dispose(),_n.dispose()}}},[Ht.current,te,rt]),(0,p.useEffect)(()=>{var Rt;if((Rt=Ht.current)!=null&&Rt.instance&&te&&wt){let Ft=Ht.current.instance,rn=Ft.getModel();if(!rn)return;(()=>{var Qn;let Xn=[],di=[];const ai=rn.getAllDecorations();for(let We of ai)We.options.className==="highlighted-line"&&(Xn.push((Qn=We==null?void 0:We.range)==null?void 0:Qn.startLineNumber),di.push(We==null?void 0:We.id));if(Pe===Xn[0])return;rn.deltaDecorations(di,[]);const wn=rn.getLineCount();Pe&&Pe<=wn&&(Ft.deltaDecorations([],[{range:new Ot.Range(Pe,1,Pe,rn.getLineMaxColumn(Pe)),options:{isWholeLine:!0,className:"highlighted-line"}}]),Ft.revealLineInCenter(Pe))})();const Mn=(Qn=!1)=>{var Xn;let di=[],ai=[];const wn=rn.getAllDecorations();for(let We of wn)We.options.linesDecorationsClassName==="breakpoints-select"&&(di.push((Xn=We==null?void 0:We.range)==null?void 0:Xn.startLineNumber),ai.push(We==null?void 0:We.id));if(Qn)return{lines:di,ids:ai};Ct(di)},oi=Qn=>W(void 0,null,function*(){let Xn={range:new Ot.Range(Qn,1,Qn,1),options:{isWholeLine:!1,linesDecorationsClassName:"breakpoints-select"}};yield rn.deltaDecorations([],[Xn]),Mn()}),Oi=Qn=>W(void 0,null,function*(){let Xn=[];const di=Ft.getLineDecorations(Qn);for(let ai of di)ai.options.linesDecorationsClassName==="breakpoints-select"&&Xn.push(ai.id);yield rn.deltaDecorations(Xn,[]),Mn()}),ki=Qn=>{let Xn=Ft.getLineDecorations(Qn);for(let di of Xn)if(di.options.linesDecorationsClassName==="breakpoints-select")return!0;return!1};if(!(0,se.isEqual)(At,Mn(!0).lines)){rn.deltaDecorations(Mn(!0).ids,[]);const Qn=At.map(Xn=>({range:new Ot.Range(Xn,1,Xn,1),options:{isWholeLine:!1,linesDecorationsClassName:"breakpoints-select"}}));rn.deltaDecorations([],Qn)}const vi=Ft.onDidChangeModelContent(Qn=>{let Xn=Ft.getPosition();if(Xn){let di=Xn.lineNumber;clearTimeout(Le.current),Le.current=setTimeout(()=>{Ke(rn.getLineContent(di),di)?Oi(di):ki(di)?(Oi(di),oi(di)):Mn()},100)}}),ji=Ft.onMouseDown(Qn=>{var Xn,di,ai;if(Qn.target.detail&&((ai=(di=(Xn=Qn.target)==null?void 0:Xn.element)==null?void 0:di.className)!=null&&ai.includes("line-numbers"))){let wn=Qn.target.position.lineNumber;if(Ke(rn.getLineContent(wn),wn))return;ki(wn)?Oi(wn):oi(wn)}}),ti=Qn=>{let Xn={range:new Ot.Range(Qn,1,Qn,1),options:{isWholeLine:!1,linesDecorationsClassName:"breakpoints-fake"}};Vt.current=Ft.deltaDecorations(Vt.current,[Xn])},Si=()=>{Vt.current=Ft.deltaDecorations(Vt.current,[])},wi=Ft.onMouseMove(Qn=>{var Xn,di,ai;if(Si(),Qn.target.detail&&((ai=(di=(Xn=Qn.target)==null?void 0:Xn.element)==null?void 0:di.className)!=null&&ai.includes("line-numbers"))){let wn=Qn.target.position.lineNumber;if(Ke(rn.getLineContent(wn),wn))return;ti(wn)}}),Yi=Ft.onMouseLeave(()=>{Si()});return()=>{vi.dispose(),ji.dispose(),wi.dispose(),Yi.dispose()}}},[Ht.current,te,At,Pe,wt,F]),(0,p.useEffect)(()=>{var Rt;(Rt=Ht.current)!=null&&Rt.instance&&wt&&Ht.current.instance.setPosition({lineNumber:0,column:0})},[Pe]);function Ye(){let Rt=Ht.current.instance;if(Rt){const Ft=Rt.getSelection(),rn=Ht.current.pastePos||{},_n=new Ot.Range(rn.startLineNumber||Ft.endLineNumber,rn.startColumn||Ft.endColumn,rn.endLineNumber||Ft.endLineNumber,rn.endColumn||Ft.endColumn);setTimeout(()=>{Rt.executeEdits("",[{range:_n,text:""}])},300)}}function it(Rt){(window.navigator.platform.match("Mac")?Rt.metaKey:Rt.ctrlKey)&&Rt.keyCode==83&&(Rt.preventDefault(),Fe())}const pt=()=>{if(Ne&&Ht.current.instance){const Rt=Ht.current.instance.getContentHeight();Re(Rt<Kt?Kt:Rt)}else Re(Kt)};function Xt(Rt){var Ft=document.createEvent("MouseEvents");Ft.initMouseEvent("click",!0,!1,window,0,0,0,0,0,!1,!1,!1,!1,0,null),Rt.dispatchEvent(Ft)}const hn=Rt=>{if(!De.current)return;const{keyCode:Ft,ctrlKey:rn,metaKey:_n,target:Mn,type:oi}=Rt;return(oi==="paste"||(Ft===67||Ft===86)&&(_n||rn))&&Mn.nodeName==="TEXTAREA"&&(Ie(),Rt.preventDefault()),!1};function kt(Rt,Ft){var rn=window.URL||window.webkitURL||window,_n=new Blob([Ft]),Mn=document.createElementNS("http://www.w3.org/1999/xhtml","a");Mn.href=rn.createObjectURL(_n),Mn.download=Rt,Xt(Mn)}(0,p.useEffect)(()=>{pt()},[pt]),(0,p.useEffect)(()=>{Yt.current&&!te&&Promise.all([w.e(8909),w.e(2460)]).then(w.bind(w,71448)).then(Rt=>{try{Ot=Rt,Ht.current.instance=Ot.editor.create(Yt.current,{value:Te,language:ht(F),theme:N,requireConfig:{"vs/nls":{availableLanguages:{"*":"zh-cn"}}},wordWrap:!0,autoIndent:!0,contextmenu:!0,formatOnType:!0,minimap:{enabled:St||!1}},ee);const Ft=Ht.current.instance;let Mn=[...q.BH._menuItems].find(vi=>vi[0]._debugName=="EditorContext")[1],oi=["editor.action.clipboardCopyWithSyntaxHighlightingAction","editor.action.quickCommand","editor.action.clipboardCopyAction","editor.action.clipboardPasteAction","editor.action.clipboardCutAction"],Oi=(vi,ji)=>{var ti,Si;let wi=vi._first;do ji.includes((Si=(ti=wi.element)==null?void 0:ti.command)==null?void 0:Si.id)&&vi._remove(wi);while(wi=wi.next)};if(zt(Ft,Ot),setTimeout(()=>{pt(),Ht.current.instance.addAction({id:"d123123",label:"Download File",contextMenuGroupId:"9_cutcopypaste",run:()=>{kt(It||"educoder.txt",Ft.getValue())}})},500),Ht.current.subscription=Ft.onDidChangeModelContent(vi=>{vn.current?clearTimeout(He.current):(pt(),lt(Ft.getValue(),vi)),He.current=setTimeout(()=>{vn.current=!1},500)}),window.Monaco||E(Ot,ht(F)),rt&&(Oi(Mn,oi),Yt.current.classList.add("noCopyPaste"),window.removeEventListener("keydown",hn),window.removeEventListener("paste",hn),window.addEventListener("keydown",hn),window.addEventListener("paste",hn)),window.Monaco=Ot,z&&Ft.onDidBlurEditorWidget(()=>{z(Ft.getValue())}),Tt&&Ft.onDidFocusEditorText(()=>{rt&&Dt(),Tt(Ft.getValue())}),rt){Dt();try{Ft.onDidPaste(vi=>{const ji=Ft.getSelection(),ti=Ht.current.pastePos||{},Si=new Ot.Range(ti.startLineNumber||ji.endLineNumber,ti.startColumn||ji.endColumn,ti.endLineNumber||ji.endLineNumber,ti.endColumn||ji.endColumn);Ft.executeEdits("",[{range:vi.range,text:""}])})}catch(vi){}}let ki=Se();return Lt&&typeof Lt=="string"&&new J(Lt,Ft,Ot),ue(!0),()=>{const vi=Ht.current.instance;vi.dispose();const ji=vi.getModel();ji&&ji.dispose(),Ht.current.subscription&&Ht.current.subscription.dispose(),ki.unobserve(Yt.current)}}catch(Ft){}})},[]),(0,p.useEffect)(()=>{if(Ht.current.instance&&te)return document.addEventListener("keydown",it,!1),()=>{document.removeEventListener("keydown",it)}},[Fe,te]),(0,p.useEffect)(()=>{let Rt=Ht.current.instance;if(Rt&&te){let Ft=ht(F);Ot.editor.setModelLanguage(Rt.getModel(),Ft)}},[F,te]),(0,p.useEffect)(()=>{Ht.current.instance&&te&&Ot.editor.setTheme(N)},[N,te]),(0,p.useEffect)(()=>{let Rt=Ht.current.instance;In.current=T,Rt&&te&&(Rt.updateOptions(re({},T)),setTimeout(()=>{Rt.getModel().updateOptions(re({},T))},200))},[JSON.stringify(T),te]),(0,p.useEffect)(()=>{let Rt=Ht.current.instance;Rt&&te&&Rt.layout()},[qe,Kt,te]);const[Nt,fn]=(0,p.useState)(fe(qe)),[Fn,Re]=(0,p.useState)(fe(Kt)),Nn=x(re({},v),{width:Nt,height:Fn,position:"relative"});return p.createElement("div",{className:"my-monaco-editor",ref:Yt,style:Nn,onFocus:()=>{rt&&Dt()}},he&&p.createElement(de.CopyToClipboard,{text:Te,onCopy:()=>ge.ZP.success("\u590D\u5236\u6210\u529F")},p.createElement(_e.Z,{title:"\u590D\u5236\u4EE3\u7801"},p.createElement("div",{style:{position:"absolute",top:0,right:10,cursor:"pointer",zIndex:10,color:"#165DFF"}},p.createElement("i",{className:"iconfont icon-fuzhi8",style:{fontSize:14}})," \u590D\u5236\u4EE3\u7801"))))};function Jt({width:ot="100%",height:Et="100%",original:qe,modified:Kt,language:Te,options:F={}}){const v=(0,p.useRef)(),[T,ee]=(0,p.useState)(null);function N(Ne){let rt;return v.current&&(rt=new Ae.Z(lt=>{for(let zt of lt)(zt.target.offsetHeight>0||zt.target.offsetWidth>0)&&Ne.layout()}),rt.observe(v.current)),rt}(0,p.useEffect)(()=>(v.current&&Promise.all([w.e(8909),w.e(9404)]).then(w.bind(w,2550)).then(Ne=>{Ot=Ne;const rt=Ot.editor.createDiffEditor(v.current,x(re({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},F),{wordWrap:!0}));ee(rt);let lt=N(rt);return()=>{rt.dispose();const zt=rt.getModel();zt&&zt.dispose(),lt.unobserve(v.current)}}),()=>{window.removeEventListener("keydown",checkPaste),window.removeEventListener("paste",checkPaste)}),[]),(0,p.useEffect)(()=>{T&&T.setModel({original:Ot.editor.createModel(qe,Te),modified:Ot.editor.createModel(Kt,Te)})},[qe,Kt,Te,T]);const z=fe(ot),he=fe(Et),Fe={width:z,height:he};return p.createElement("div",{className:"my-diff-editor",ref:v,style:Fe})}},61584:function(Xe,Ge,w){"use strict";w.d(Ge,{Z:function(){return L}});var p={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",tagsDom:"tagsDom___COQg7",hiddenbq:"hiddenbq___TqlUF"},Ae=w(29787),xe=w(25399),ce=w(60242),Y=w(92310),m=w.n(Y),ve=w(65862),U=w(2524),o=w(59301),L=({className:_,dataSource:y=[],col:E=4,right:S,bottom:O=23,precision:P=0,wrapWidth:H=1200,trackEventItems:B,loading:R,onRemove:J=()=>{},isCurrent:q=!0,showProgress:ge=!1,showAlias:_e=!1,category:se,hiddenClick:we})=>{const de=Math.floor((H-(E-1)*S)/E),ie=[{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 o.createElement(Ae.Z,{spinning:R},o.createElement("div",{className:m()(p.list,_)},!!(y!=null&&y.length)&&(y==null?void 0:y.map((oe,K)=>{var k,V,$,ae,re,x,b,W,fe,ke,je,yt,ht;const{name:Ot,id:Dt,identifier:Ve,featured:Jt,school_name:ot,image_url:Et,excellent:qe,is_plan:Kt}=oe;return o.createElement("div",{key:Dt,className:q&&ge?p.wrapisCurrent:p.wrap,style:{width:de,marginRight:(1+K)%E===0?0:S+P,marginBottom:O}},o.createElement("a",{className:p.li,onClick:Te=>{Te.preventDefault(),Te.stopPropagation(),B&&(0,ve.L9)([B]),(0,ve.xg)(`/paths/${Ve}`)}},o.createElement("div",{className:p.img},o.createElement("img",{className:p.cover,src:`${Et}`}),(k=oe==null?void 0:oe.subject_tags)==null?void 0:k.map((Te,F)=>{var v,T;if(F===0){const N=(v=ie.find(z=>z.name==Te))==null?void 0:v.swimg;return o.createElement("img",{className:p.sign,src:N,style:{left:"-4px"}})}const ee=(T=ie.find(N=>N.name==Te))==null?void 0:T.ptimg;return o.createElement("img",{className:p.sign,src:ee,style:{left:`${48+52*(F-1)+2*F}px`}})}),o.createElement("div",{className:p.tagsDom},o.createElement("div",{className:"flex flex-wrap gap-10px item-center"},(oe==null?void 0:oe.excellent)&&o.createElement("div",{className:p.bq},"\u5F00\u653E\u8BFE\u7A0B"),((V=oe==null?void 0:oe.custom_tags)==null?void 0:V.length)>0&&o.createElement(xe.Z,{title:(re=(ae=oe==null?void 0:oe.custom_tags)==null?void 0:ae[(($=oe==null?void 0:oe.custom_tags)==null?void 0:$.length)-1])==null?void 0:re.tag_name},o.createElement("div",{className:"px-6px rounded-2px c-white h-16px flex item-center",style:{maxWidth:"62px",background:"#3061D0",border:"0.5px solid #8FAFF8"}},o.createElement("span",{className:"multi-llipsis1e text-10px"},(W=(b=oe==null?void 0:oe.custom_tags)==null?void 0:b[((x=oe==null?void 0:oe.custom_tags)==null?void 0:x.length)-1])==null?void 0:W.tag_name))))),se=="hide"&&(oe==null?void 0:oe.studying)&&q&&o.createElement("div",{className:`${p.movebq} user-path-items`,onClick:Te=>{Te.stopPropagation(),J(oe)}},o.createElement("i",{className:"iconfont icon-yichu1 font12"}),o.createElement("span",null,"\u79FB\u9664")),!["collect","payed"].includes(se)&&q&&o.createElement("div",{className:`${p.hiddenbq} user-path-items`,onClick:Te=>{Te.stopPropagation(),we(oe)}},o.createElement("i",{className:`iconfont ${se=="hide"?"icon-chakan2":"icon-yincangtiaojianshezhi"} font12`}),o.createElement("span",null,se=="hide"?"\u53D6\u6D88\u9690\u85CF":"\u9690\u85CF"))),o.createElement("div",{className:p.name},o.createElement(xe.Z,{title:_e&&(oe!=null&&oe.excellent_alias_name)?o.createElement("span",null,`\u8BFE\u7A0B\u539F\u540D\uFF1A${Ot}`,o.createElement("br",null),o.createElement("span",null,`\u8BFE\u7A0B\u522B\u540D\uFF1A${oe==null?void 0:oe.excellent_alias_name}`)):Ot},o.createElement("span",{className:p.e},_e&&(oe==null?void 0:oe.excellent_alias_name)||Ot))),q&&ge&&((fe=oe==null?void 0:oe.progress)==null?void 0:fe.all_score)!=0&&o.createElement("div",{style:{padding:"0px 10px",color:"#333",marginTop:10}},o.createElement(ce.Z,{strokeColor:"#44d7b6",gap:"small",percent:(((ke=oe==null?void 0:oe.progress)==null?void 0:ke.my_score)/((je=oe==null?void 0:oe.progress)==null?void 0:je.all_score)*100).toFixed(),showInfo:!1}),"\u5DF2\u5B8C\u6210 ",(yt=oe==null?void 0:oe.progress)==null?void 0:yt.my_score,"/",(ht=oe==null?void 0:oe.progress)==null?void 0:ht.all_score),(!q||!ge)&&o.createElement(xe.Z,{title:`\u53D1\u5E03\u5355\u4F4D\uFF1A${ot}`},o.createElement("div",{className:p.unit},o.createElement("i",{className:"iconfont icon-danwei1 font14 mr3"}),ot)),(!q||!ge)&&o.createElement("div",{className:p.tags},o.createElement("div",null,o.createElement(xe.Z,{placement:"bottom",title:"\u7AE0\u8282\u6570"},o.createElement("span",null,o.createElement("i",{className:"iconfont icon-zhangjie1 font14 mr3"}),o.createElement("span",null,oe.stages_count))),o.createElement(xe.Z,{placement:"bottom",title:"\u5B66\u4E60\u4EBA\u6570"},o.createElement("span",null,o.createElement("i",{className:"iconfont icon-chengyuan font14 mr3"}),o.createElement("span",null,oe.members_count)))))))})),!y.length&&o.createElement(U.Z,null)))}},82636:function(Xe,Ge,w){"use strict";w.d(Ge,{jL:function(){return Y},w9:function(){return fe},QD:function(){return st},cQ:function(){return ae.Z},op:function(){return lt},O5:function(){return Me},_b:function(){return en},t7:function(){return H},Gi:function(){return Dt},YG:function(){return ht},qp:function(){return L},vr:function(){return wt},qE:function(){return Ct},Je:function(){return J},wb:function(){return $},cq:function(){return Kt},tp:function(){return E}});var p=w(59301),Ae={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"},xe="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAE4AAAA0CAYAAAAkEw66AAAAAXNSR0IArs4c6QAAGNVJREFUeF7VmwmwHVWdxr9zuvvu9+3ZXsxCiNkIQZOwEzMgyADjggsWgzPqOAJaMiCjYiGKqDBQAo4iWGAxA+ooMm7gBhSyhBBRIIBSAQlrHuTt7913t97PmfpOd4cXlLAFGO6rW9237719+/z6+6/nPIHX+XHttddaex38nlW2lLO1svq1wJ4aeFMM9CqFnNKoaYVapDAOicfjGEMKqKk2nrx59Lbt5xx6aPR6DEG8Hj/K3xwY0YtjSx2vYnlspLEsX0BRKUBrINtyX+PZp0r3fR+IIgzFSo9EsahFUfSHWIj7Pa919zvf2vlo+rFXdWivObjHJvR8S6vTJORHckV0+4GBAF4InwQlBCAIkEMXgCLA9Mn9WCef4ft8HWkgVIDn6ckwUA/HQfCzoFX71TsP6n/41aL3moHTWotnJnGysPEFx8ZcAtMqGTjh2NmVTL+iDB6BZurjsRSe2SogjhNwMZIngbZbqgXom8N26/KjV3femB7ebRxfE3DbRnW/k8c3LQvv5yCjOFVVqhgCyNnJmAhoxyOFasz1OeCM2lLTJryI4BQQUn1RAhI24Lc1dBjc2K6Nnv2edfP+sLvIvergxqb0vpHA1fk8lre9xBZpZsYKU9sMYiDvAHKaqU4HuANcZrIpcILiezRdo7z0aUw3BoJYI4gELAeI/bjZmBq9+PGNd5x/+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pGmgWFcS4pGsQnzvuOBG/4CzXFX/Qp+zZi28pPzkZHeNIS337X2+Qp+IckWajb1RsyXWffqOeN8tRH+rKyWOhsSBnYyYziiCAa0k8EQKb2kF01acPc3akXS8IbsW1Onf6AnVib16ewqWz21vq9qu2yNPeqL7thW7xZ65391jcV1jE/1qKFcaeCfDwOYeK9D83nv32/wHzrWgvjJ8Q7AAAAABJRU5ErkJggg==",Y=({dataSource:Ke=[],img:Ye,imgWidth:it=346,title:pt,sunTitle:Xt,bannerExtraContent:hn})=>p.createElement("div",{className:Ae.banner},p.createElement("div",{className:Ae.content},p.createElement("aside",null,p.createElement("p",null,p.createElement("b",null,pt),p.createElement("span",null,Xt)),Ke.length>0&&p.createElement("div",{className:Ae.btns},Ke.map((kt,Nt)=>p.createElement("div",{key:Nt,onClick:kt.click},kt.name,kt.sign?p.createElement("img",{src:xe,width:39}):null))),hn),Ye&&p.createElement("img",{style:{marginTop:33,marginRight:38},src:Ye,width:it}))),m={flex_box_center:"flex_box_center___hG6RI",flex_space_between:"flex_space_between___ss3Fh",flex_box_vertical_center:"flex_box_vertical_center___K80p9",flex_box_center_end:"flex_box_center_end___qmXX3",flex_box_column:"flex_box_column___GFV8F",row:"row___aXJjm",title:"title___HUKL0",tagsWrap:"tagsWrap___XB2W3",action:"action___VdHb1",bar:"bar___t1kKC",tag:"tag___V7Eft",name:"name___Hk1Ip",num:"num___xQpcH",active:"active___XryTX",tagsBorderWrap:"tagsBorderWrap___OMxjs"},ve=w(92310),U=w.n(ve),o=w(89392),L=({dataSource:Ke=[],value:Ye,onChange:it,onTitleChange:pt,className:Xt,title:hn,titleWidth:kt=41,style:Nt={},fontColor:fn="#6A7283",showCount:Fn})=>{const[Re,Nn]=(0,p.useState)(1),[Rt,Ft]=(0,p.useState)(!1),rn=(0,p.useRef)(null),_n=(0,p.useRef)(null);return(0,p.useEffect)(()=>{var Mn;Ke.length!==0&&(((Mn=rn==null?void 0:rn.current)==null?void 0:Mn.clientHeight)>97?Nn(1):Nn(0)),Ke.length===0&&Nn(0),Ft(!1)},[Ke]),p.createElement("div",{className:U()(m.row,Xt,"fadeIn","animated"),style:Nt},p.createElement("div",{onClick:(0,o.throttle)(()=>pt==null?void 0:pt(),2e3),style:{width:kt,marginTop:Rt?12:4},className:`${m.title} ${pt?"current":""}`},hn),p.createElement("div",{className:Rt?`${m.tagsWrap} ${m.tagsBorderWrap}`:m.tagsWrap},p.createElement("div",{className:m.bar,ref:_n,style:Re>0?{height:Re===1?97:"auto",overflow:Re===1?"hidden":"auto",paddingRight:55}:{paddingRight:0}},p.createElement("div",{className:m.tag,ref:rn},Ke==null?void 0:Ke.map(Mn=>p.createElement("span",{onClick:()=>it(Mn.id),key:Mn.id,style:{color:fn},className:Ye===Mn.id?m.active:""},p.createElement("span",{title:Mn.name,className:m.name},Mn.name),!!Fn&&p.createElement("span",{className:m.num},Mn.count))))),!!Re&&p.createElement(p.Fragment,null,Re===1?p.createElement("div",{onClick:()=>{var Mn;Nn(2),((Mn=rn==null?void 0:rn.current)==null?void 0:Mn.clientHeight)>245?Ft(!0):Ft(!1)},className:m.action},"\u5C55\u5F00",p.createElement("i",{style:{transform:"translateY(1px) scale(0.6)"},className:"iconfont icon-zhankai4"})):p.createElement("div",{onClick:()=>{_n.current.scrollTop=0,Nn(1),Ft(!1)},className:m.action},"\u6536\u8D77",p.createElement("i",{style:{transform:"translateY(0px) scale(0.6)"},className:"iconfont icon-shouqi3"})))))},_={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"},E=({dataSource:Ke=[],value:Ye,onChange:it,className:pt,style:Xt={}})=>p.createElement("div",{style:Xt,className:U()(_.tabs,pt)},Ke.map(hn=>p.createElement("span",{onClick:()=>it(hn.id),className:Ye===hn.id?_.active:"",key:hn.id},hn.name))),S={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"},O=w(37568),H=({dataSource:Ke=[],value:Ye="",onChange:it,onInputChange:pt=()=>{},className:Xt,style:hn={},placeholder:kt,allowClear:Nt=!1})=>{var fn;const[Fn,Re]=(0,p.useState)(""),[Nn,Rt]=(0,p.useState)("");(0,p.useEffect)(()=>{var _n;let Mn=Ye;(_n=JSON.stringify(Ye))!=null&&_n.includes("{")&&(Re(Ye.id),Mn=Ye.value||"");try{Rt(decodeURIComponent(Mn||""))}catch(oi){Rt(decodeURIComponent(Mn||""))}},[Ye]);const Ft=()=>{it(encodeURIComponent(Nn),Fn||null)},rn=_n=>{_n!==Fn&&(Re(_n),it(encodeURIComponent(Nn),_n))};return p.createElement("div",{className:U()(S.input,Xt),style:hn},!!Ke.length&&p.createElement("div",{className:S.dropdown},p.createElement("div",{className:S.text},(fn=Ke.find(_n=>_n.id===Fn))==null?void 0:fn.name,p.createElement("i",{className:"iconfont icon-zhankai4"}),p.createElement("b",{className:S.b1}),p.createElement("b",{className:S.b2})),p.createElement("div",{className:S.menu},Ke.map((_n,Mn)=>p.createElement("div",{key:Mn,onClick:()=>rn(_n.id)},_n.name)))),p.createElement(O.default,{onPressEnter:Ft,value:Nn,onChange:_n=>{Rt(_n.target.value),pt(encodeURIComponent(_n.target.value),Fn||null)},placeholder:kt,variant:"borderless",allowClear:Nt,onClear:()=>it("",Fn||null)}),p.createElement("i",{onClick:Ft,className:"iconfont icon-sousuo9 font14 current"}))},B={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"},J=({value:Ke,onChange:Ye,className:it,total:pt,pageSize:Xt,style:hn={}})=>{const kt=Ke<2,Nt=Ke>=Math.ceil(pt/Xt);return pt<=Xt?p.createElement(p.Fragment,null):p.createElement("div",{className:U()(B.quickPager,it),style:hn},p.createElement("div",{onClick:()=>{kt||Ye(Ke-1,"prev")},className:kt?B.disabled:""},"\u4E0A\u4E00\u9875"),p.createElement("div",{onClick:()=>{Nt||Ye(Ke+1,"next")},className:Nt?B.disabled:""},"\u4E0B\u4E00\u9875"))},q={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"},ge=w(29787),_e=w(25399),se=w(58018),we=w(74128),de=w(65862),ie=w(96908),oe=w(57177),K=w(81378),k=w(2524),$=({className:Ke,dataSource:Ye=[],col:it=4,right:pt,bottom:Xt=23,precision:hn=0,wrapWidth:kt=1200,trackEventItems:Nt,loading:fn})=>{const Fn=Math.floor((kt-(it-1)*pt)/it);return p.createElement(ge.Z,{spinning:fn},p.createElement("div",{className:U()(q.list,Ke)},!!Ye.length&&Ye.map((Re,Nn)=>{const{name:Rt,id:Ft,identifier:rn,power:_n,cover_image_id:Mn,pic:oi}=Re;return p.createElement("div",{className:q.wrap,key:Ft,style:{width:Fn,marginRight:(1+Nn)%it===0?0:pt+hn,marginBottom:Xt}},p.createElement("a",{target:"_blank",href:`/shixuns/${rn}/challenges`,className:q.li,onClick:Oi=>{Oi.preventDefault(),Nt&&(0,de.L9)([Nt]),_n&&(0,de.xg)(`/shixuns/${rn}/challenges`)}},p.createElement("div",{className:q.img},p.createElement("img",{className:q.cover,src:`${oi}`}),Re.is_jupyter&&p.createElement("img",{className:q.sign,src:ie}),Re.is_jupyter_lab&&p.createElement("img",{className:q.sign,src:oe}),Re.is_unity_3d&&p.createElement("img",{className:q.sign,src:K})),p.createElement("div",{className:q.name},p.createElement(_e.Z,{title:Rt||"\u5B9E\u8DF5\u9879\u76EE\u540D\u79F0-\u672A\u586B\u5199"},p.createElement("span",{className:q.e},Rt||"\u5B9E\u8DF5\u9879\u76EE\u540D\u79F0-\u672A\u586B\u5199"))),p.createElement("div",{className:q.tags},p.createElement(_e.Z,{placement:"bottom",title:"\u5173\u5361\u6570"},p.createElement("span",null,p.createElement("i",{className:"iconfont icon-shixunguanqia font14 mr2"}),p.createElement("span",null,Re.challenges_count))),!!Re.myshixuns_count&&p.createElement(_e.Z,{placement:"bottom",title:"\u5B66\u4E60\u4EBA\u6570"},p.createElement("span",null,p.createElement("i",{className:"iconfont icon-chengyuan font14 mr2"}),p.createElement("span",null,Re.myshixuns_count))),p.createElement(_e.Z,{placement:"bottom",title:"\u96BE\u5EA6\u7B49\u7EA7"},p.createElement("span",null,p.createElement("span",null,Re.level))),p.createElement("div",{className:q.rate},p.createElement(se.Z,{allowHalf:!0,disabled:!0,defaultValue:Re.score_info}),p.createElement("span",null,"\xA0",Re.score_info?`${Re.score_info}\u5206`:"5\u5206")))),!_n&&p.createElement("div",{className:q.lockWrap},p.createElement("img",{src:`${we.Z.IMG_SERVER}/images/educoder/icon/lockclose.svg`}),p.createElement("span",{className:"mt15 font16 c-white"},"\u5B9A\u5411\u5F00\u653E\u5185\u5BB9\uFF0C\u9700\u8981\u6388\u6743")))}),!Ye.length&&p.createElement(k.Z,null)))},ae=w(61584),re={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",hidden:"hidden___NniIi",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"},x="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAHgAAAB4CAYAAAA5ZDbSAAAAAXNSR0IArs4c6QAAIABJREFUeF7tXWmQXFd1/s59r3t6nX00o93GluV9AQNxiAkIB0OMISFsFQqSAhOohFR+JKmEQPILClJZfpEfIUAChFQSHIJxnGDiDYwsb8KRLUuWZcmSxqN9pJF6nV7eSZ373u1509Mzvd2eGVt6VV2z9Ht3+9459+yX8Bq4mDmWK2GLqla3MvFWZt4KpjVMSBNzGoQ0M6WJkJbpMiNDxBkwMkyUIUYGxCeJaB8x7fMcZ18yiv1EVHy1Lw+9GicwO8tXlSrlbSB6O4HfANAmZlY250JEHsBHGLQTzA9H3chDfX2012Yfy9HWqwJgZh7NF6vvY/a2gWkbgyeWY3Hq+yDQcRA/RKQeSsSce4jo9EqMo50+Vy3AzNxXKFTv9MAfB/AuZo60M7Fe30tEZQA/UqBvx+POvUQ02+s+O2l/1QGcy5Xe6Cn1SXj8YYAHO5nU8j9DM1D0b8rzvpFMRp9a/v4X73HVAJwplN9GHj7P4NtW0wK1OxYCPcAKX0rHI4+0+2wv7l9xgHPFyrs9j78A5l/sxQRXrE2ix5SiLyZj7v+s2BgArBjA+XzpzR7oq8x880ouQK/7JqKnFfiziUT0iV731aj9ZQeYmYez+fJXiOguZl72/ldkkYmYmb+eSkT+lIjOLOcYlm2BBcx8sfoJz+O/BHhkOSe5evqiaaXoTxIx55tExMsxrmUBOJ/njVVUvgvmW5djUqu+D6JHHbgfTSRostdj7TnAuWLlDq/K37pwqXYxCGlaOfRbyZh7Xy9B7hnAzOzmCpUvA/jDC2WvbReogE3/TTLufo6IKu0+38r9PQE4n+f1VVS+B+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Ej2mFH3RlkWq03GuOMBm4JLwRh4+z+DbOp3ManhOsvxY4UvpeOSR1TGe1TCK0BiC/OS7APoQwKHqHKtsoPOGQzMA/7sCvp5MRp9aTSNdNRRcvyhSTqJQqN7pgT8O4F3MvArC3uZGKdVsAPxIgb4djzv3EtHsagLWjGXVAhxeLCnxlC9W38fsbQPTNgZPrMRiSgU5ED9EpB5KxJx7iKjFkxlXYrR+n68KgOuXJ6ituQ1E2wj8eoA2McuxWPYuqbcM8BEG7QTzw1E38pBtR4C90S7e0qsS4AbsPJYrYYuqVrcy8VZm3gqmcSakiTkFQpqZ0kRIy7PMyBBxBowME2WJkQHxCSLaR0z7PMfZl4xiPxFdXaKvAAAADElEQVQVlwOEXvbx/3Bccpan8cseAAAAAElFTkSuQmCC",b=w(59301),fe=({className:Ke,dataSource:Ye=[],col:it=4,right:pt,bottom:Xt=23,precision:hn=0,wrapWidth:kt=1200,trackEventItems:Nt,loading:fn,category:Fn,hiddenClick:Re,handleVery:Nn=()=>!0,isCurrent:Rt})=>{const Ft=Math.floor((kt-(it-1)*pt)/it);return b.createElement(ge.Z,{spinning:fn},b.createElement("div",{className:U()(re.list,Ke)},!!Ye.length&&Ye.map((rn,_n)=>{const{subject_identifier:Mn,id:oi,identifier:Oi,power:ki}=rn,vi=rn.is_public!=0&&rn.is_public;return b.createElement("div",{className:re.wrap,key:oi,style:{width:Ft,marginRight:(1+_n)%it===0?0:pt+hn,marginBottom:Xt}},b.createElement("a",{className:re.li,onClick:ji=>{ji.preventDefault(),Nn(rn==null?void 0:rn.first_category_url)&&(Nt&&(0,de.L9)([Nt]),(0,de.xg)(rn.first_category_url))}},b.createElement("div",{className:re.top},b.createElement(_e.Z,{title:rn.name},b.createElement("div",{className:re.name},rn.name)),b.createElement("img",{className:re.img,src:we.Z.IMG_SERVER+"/images/"+rn.avatar_url}),b.createElement("div",{className:re.text,title:rn.creator},rn.creator),Mn&&b.createElement("div",{className:re.btns},b.createElement("div",null,"\u5F00\u653E\u8BFE\u7A0B"),b.createElement("aside",null,"\u5F00\u653E\u8BFE\u5802")),vi&&b.createElement("div",{className:re.sign},"\u516C\u5F00"),Rt&&b.createElement("div",{className:re.hidden,onClick:ji=>{ji.stopPropagation(),Re(rn)}},b.createElement("i",{className:`iconfont ${Fn=="hide"?"icon-chakan2":"icon-yincangtiaojianshezhi"} font12`}),Fn=="hide"?"\u53D6\u6D88\u9690\u85CF":"\u9690\u85CF")),b.createElement("div",{className:re.bottom},rn.visits>0&&b.createElement(_e.Z,{title:"\u8BBF\u95EE\u91CF",placement:"bottom"},b.createElement("span",null,b.createElement("i",{className:"iconfont icon-liulanyan"}),b.createElement("span",null,rn.visits))),rn.course_members_count>0&&b.createElement(_e.Z,{title:"\u6210\u5458",placement:"bottom"},b.createElement("span",null,b.createElement("i",{className:"iconfont icon-chengyuan"}),rn.course_members_count)),rn.tasks_count>0&&b.createElement(_e.Z,{title:"\u4F5C\u4E1A",placement:"bottom"},b.createElement("span",null,b.createElement("i",{className:"iconfont icon-zuoye"}),rn.tasks_count)),rn.is_end?b.createElement("div",{style:{color:"#6B758B"}},"\u5DF2\u7ED3\u675F"):b.createElement("div",{style:{color:"#00B187"}},"\u8FDB\u884C\u4E2D"))),!rn.is_accessible&&b.createElement("div",{className:re.lockWrap},b.createElement("img",{src:`${we.Z.IMG_SERVER}/images/educoder/icon/lockclose.svg`}),b.createElement("span",{className:"mt15 font16 c-white"},"\u975E\u8BFE\u5802\u6210\u5458\u4E0D\u53EF\u8FDB\u5165")))}),!Ye.length&&b.createElement(k.Z,null)))},ke={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"},je=w(65582),ht=({dataSource:Ke=[],value:Ye,onChange:it,className:pt,style:Xt={},tabBarExtraContent:hn})=>p.createElement("div",{className:U()(ke.tabs,pt),style:Xt},p.createElement("div",{className:ke.tabsWrap},Ke.map((kt,Nt)=>!(kt!=null&&kt.hide)&&p.createElement("aside",{className:ke.tab,onClick:()=>{it(kt.id),kt.link&&je.history.push(kt.link)},key:Nt},p.createElement("div",{className:Ye===kt.id?ke.active:""},kt.name),(kt==null?void 0:kt.resetCount)==null&&(kt==null?void 0:kt.total)!==void 0&&p.createElement("span",null,"\uFF08",kt==null?void 0:kt.total,"\uFF09"),(kt==null?void 0:kt.resetCount)!==void 0&&(kt==null?void 0:kt.total)!==void 0&&p.createElement(_e.Z,{title:(kt==null?void 0:kt.tip)!=null?kt==null?void 0:kt.tip:""},p.createElement("span",{style:{color:"#9096A3"}},"\uFF08",p.createElement("span",{style:{color:"#000"}},kt==null?void 0:kt.resetCount),"/",p.createElement("span",null,kt==null?void 0:kt.total),"\uFF09"))))),p.createElement("div",{className:ke.tabBar},hn)),Dt=({className:Ke,style:Ye={},children:it})=>p.createElement("div",{className:U()(Ke),style:Ye},it),Ve={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"},Jt=w(75727),ot=w(93041);const Et=[{id:"updated_at",name:"\u6700\u65B0\u52A8\u6001"},{id:"created_at",name:"\u6700\u65B0\u521B\u5EFA"},{id:"name",name:"\u540D\u79F0\u6392\u5E8F"}];var Kt=({sortValue:Ke,dropValue:Ye,className:it,onSort:pt,onDrop:Xt,dataSource:hn=Et})=>{var kt;return p.createElement("div",{className:U()(Ve.orderWrap,it)},p.createElement(Jt.Z,{dropdownRender:()=>p.createElement(ot.default,null,hn.map((Nt,fn)=>p.createElement(ot.default.Item,{key:fn,onClick:()=>Xt(Nt.id)},Nt.name)))},p.createElement("span",{className:Ve.orderTextWrap},(kt=hn.find(Nt=>Ye===Nt.id))==null?void 0:kt.name)),p.createElement("span",{className:Ve.orderIconWrap},p.createElement("span",{className:Ve.orderAsc},p.createElement("i",{className:Ke==="asc"?`iconfont icon-sanjiaoxing-up font12 ${Ve.cursorPointer} ${Ve.active}`:`iconfont icon-sanjiaoxing-up font12 ${Ve.cursorPointer}`,onClick:()=>pt(Ke==="asc"?"desc":"asc")})),p.createElement("span",{className:Ve.orderDesc},p.createElement("i",{className:Ke==="desc"?`iconfont icon-sanjiaoxing-down font12 ${Ve.cursorPointer} ${Ve.active}`:`iconfont icon-sanjiaoxing-down font12 ${Ve.cursorPointer}`,onClick:()=>pt(Ke==="asc"?"desc":"asc")}))))},Te={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"},F=w(7939),v=Object.defineProperty,T=Object.getOwnPropertySymbols,ee=Object.prototype.hasOwnProperty,N=Object.prototype.propertyIsEnumerable,z=(Ke,Ye,it)=>Ye in Ke?v(Ke,Ye,{enumerable:!0,configurable:!0,writable:!0,value:it}):Ke[Ye]=it,he=(Ke,Ye)=>{for(var it in Ye||(Ye={}))ee.call(Ye,it)&&z(Ke,it,Ye[it]);if(T)for(var it of T(Ye))N.call(Ye,it)&&z(Ke,it,Ye[it]);return Ke},Fe=(Ke,Ye)=>{var it={};for(var pt in Ke)ee.call(Ke,pt)&&Ye.indexOf(pt)<0&&(it[pt]=Ke[pt]);if(Ke!=null&&T)for(var pt of T(Ke))Ye.indexOf(pt)<0&&N.call(Ke,pt)&&(it[pt]=Ke[pt]);return it},Ne=(Ke,Ye,it)=>new Promise((pt,Xt)=>{var hn=fn=>{try{Nt(it.next(fn))}catch(Fn){Xt(Fn)}},kt=fn=>{try{Nt(it.throw(fn))}catch(Fn){Xt(Fn)}},Nt=fn=>fn.done?pt(fn.value):Promise.resolve(fn.value).then(hn,kt);Nt((it=it.apply(Ke,Ye)).next())}),lt=Ke=>{var Ye=Ke,{className:it,style:pt,children:Xt,loading:hn=!1,openLoading:kt,onClick:Nt=()=>{},size:fn="middle",shape:Fn="round"}=Ye,Re=Fe(Ye,["className","style","children","loading","openLoading","onClick","size","shape"]);const[Nn,Rt]=(0,p.useState)(!1);return p.createElement(F.ZP,he({onClick:(0,o.throttle)(Ft=>Ne(void 0,null,function*(){kt&&Rt(!0);try{yield Nt(Ft)}catch(rn){console.log("error",rn)}kt&&Rt(!1)}),2e3,{leading:!0,trailing:!1}),className:U()(Te.btn,Te[`${fn}-${Fn}`],it),style:pt,size:fn,shape:Fn,loading:Nn||hn},Re),Xt)},zt={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"},Ct=({className:Ke,style:Ye,children:it=null,onClick:pt,title:Xt})=>p.createElement("div",{className:U()(zt.head,Ke),style:Ye},p.createElement("span",{className:"primary-hover",onClick:pt},p.createElement("i",{className:"iconfont icon-fanhui2 font12"}),"\u8FD4\u56DE"),p.createElement("b",{title:Xt},Xt),p.createElement("div",{className:zt.node},it)),At={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"},st=({confirmShow:Ke=!0,confirmTitle:Ye,confirmClick:it,cancelShow:pt=!0,cancelTitle:Xt,cancelClick:hn,className:kt,style:Nt,confirmLoading:fn=!1})=>p.createElement("div",{className:U()(At.btns,kt),style:Nt},Ke&&p.createElement(F.ZP,{loading:fn,onClick:it,type:"primary",className:At.confirm},Ye),pt&&p.createElement(F.ZP,{onClick:hn,className:At.cancel},Xt)),ct={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"},wt=({className:Ke,style:Ye={},LeftContent:it,children:pt,RightContent:Xt})=>p.createElement("div",{className:U()(ct.fixedBottom,Ke),style:Ye},p.createElement("div",{className:ct.wrap},p.createElement("div",{className:ct.left},it),p.createElement("div",{className:ct.center},pt),p.createElement("div",{className:ct.right},Xt))),Lt={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"},en=({className:Ke,style:Ye={},dataSource:it=[]})=>p.createElement("div",{className:U()(Lt.crumbs,Ke),style:Ye},it.map((pt,Xt)=>Xt<it.length-1?p.createElement(p.Fragment,{key:Xt},pt.path||pt.onClick?p.createElement("span",{className:Lt.hover,onClick:pt!=null&&pt.onClick?pt.onClick:()=>je.history.push(pt.path)},pt.name):p.createElement("span",null,pt.name),p.createElement("span",null,"\xA0",">","\xA0")):p.createElement("span",{key:Xt,style:{color:"#5F6368"}},pt.name))),Yt=w(11938),Ht=Object.defineProperty,In=Object.defineProperties,$n=Object.getOwnPropertyDescriptors,Vt=Object.getOwnPropertySymbols,vn=Object.prototype.hasOwnProperty,He=Object.prototype.propertyIsEnumerable,Le=(Ke,Ye,it)=>Ye in Ke?Ht(Ke,Ye,{enumerable:!0,configurable:!0,writable:!0,value:it}):Ke[Ye]=it,De=(Ke,Ye)=>{for(var it in Ye||(Ye={}))vn.call(Ye,it)&&Le(Ke,it,Ye[it]);if(Vt)for(var it of Vt(Ye))He.call(Ye,it)&&Le(Ke,it,Ye[it]);return Ke},te=(Ke,Ye)=>In(Ke,$n(Ye)),ue=(Ke,Ye)=>{var it={};for(var pt in Ke)vn.call(Ke,pt)&&Ye.indexOf(pt)<0&&(it[pt]=Ke[pt]);if(Ke!=null&&Vt)for(var pt of Vt(Ke))Ye.indexOf(pt)<0&&He.call(Ke,pt)&&(it[pt]=Ke[pt]);return it};const{Countdown:Se}=Yt.default;var Me=Ke=>{var Ye=Ke,{onChange:it}=Ye,pt=ue(Ye,["onChange"]);const[Xt,hn]=(0,p.useState)(null);(0,p.useEffect)(()=>{typeof Xt=="number"&&Xt>=0&&it(Xt)},[Xt]);const kt=Nt=>{const fn=Math.floor(Nt/1e3);hn(fn)};return p.createElement(Se,te(De({},pt),{onChange:kt}))}},26733:function(Xe,Ge,w){"use strict";w.r(Ge),w.d(Ge,{default:function(){return At}});var p=w(59301),Ae=w(56656),xe=w.n(Ae),ce=w(86129),Y=w.n(ce),m=w(38147),ve=w(65582),U=w(62957),o=w(6767),X=w(77019),L=w(5269),_=w(7939),y=w(458),E=w(91882),S=w(37285),O=w(54172),P=w(71114),H=w(82326),B=w(29787),R=w(27812),J=w(95869),q=w(87169),ge=w(26227),_e=w(74128),se=w(41867),we=w(65862),de=w(28284),ie=w(71051),oe=w(37568),K=({defaultValue:It,onBlur:st,max:ct,className:Pe="game-score"})=>{const[wt,Lt]=(0,p.useState)(It);(0,p.useEffect)(()=>{Lt(It)},[It]);function St(Yt){Lt(Yt)}function en(){wt&&(st(wt>ct?ct:wt),Lt(null))}return p.createElement(ie.Z,{max:ct,min:0,className:Pe,value:wt,onChange:St,onBlur:en})},k={greyText:"greyText___lvEE6",info:"info___El01Z",label:"label___GmvST",blackContent:"blackContent___FYo0Z",orangeContent:"orangeContent____uYQ3",inputLabel:"inputLabel___ruiZm",tableTitle:"tableTitle___ir3x7",scoreTable:"scoreTable___b9Z37"},V=w(91783),$=w(88493),ae=w(59301),re=Object.defineProperty,x=Object.defineProperties,b=Object.getOwnPropertyDescriptors,W=Object.getOwnPropertySymbols,fe=Object.prototype.hasOwnProperty,ke=Object.prototype.propertyIsEnumerable,je=(It,st,ct)=>st in It?re(It,st,{enumerable:!0,configurable:!0,writable:!0,value:ct}):It[st]=ct,yt=(It,st)=>{for(var ct in st||(st={}))fe.call(st,ct)&&je(It,ct,st[ct]);if(W)for(var ct of W(st))ke.call(st,ct)&&je(It,ct,st[ct]);return It},ht=(It,st)=>x(It,b(st)),Ot=(It,st,ct)=>new Promise((Pe,wt)=>{var Lt=Yt=>{try{en(ct.next(Yt))}catch(Ht){wt(Ht)}},St=Yt=>{try{en(ct.throw(Yt))}catch(Ht){wt(Ht)}},en=Yt=>Yt.done?Pe(Yt.value):Promise.resolve(Yt.value).then(Lt,St);en((ct=ct.apply(It,st)).next())});const Dt=({shixunHomeworks:It,dispatch:st,classroomList:ct,gethomeworkreport:Pe,homeWorkReport:wt})=>{var Lt,St;const{shixunWorkReport:en}=It,Yt=(0,ve.useParams)(),[Ht,In]=(0,p.useState)(!1),[$n,Vt]=(0,p.useState)(!1),[vn,He]=(0,p.useState)(""),[Le]=de.default.useForm(),De=de.default.useWatch("comment",Le),te=de.default.useWatch("hidden_comment",Le),[ue,Se]=(0,p.useState)(!1),Ie=(0,p.useRef)({}),[Me,Ke]=U.default.useModal(),Ye=()=>Ot(void 0,null,function*(){Vt(!0);const kt=Le.getFieldsValue();(yield(0,m.ZP)(`/api/student_works/${Yt.homeworkId}/shixun_work_comment.json`,{method:"post",body:{hidden_comment:kt.hidden_comment,comment:kt.comment}})).status===0&&(o.ZP.success("\u70B9\u8BC4\u6210\u529F"),Le.resetFields(),st({type:"classroomList/setActionTabs",payload:{}}),Pe()),Vt(!1)}),it=()=>Ot(void 0,null,function*(){if(!vn){o.ZP.warning("\u8BF7\u586B\u5199\u5206\u6570");return}Vt(!0);const kt=Le.getFieldsValue();(yield(0,m.ZP)(`/api/student_works/${Yt.homeworkId}/add_score.json`,{method:"post",body:{comment:kt.comment,score:vn}})).status===0&&(o.ZP.success("\u70B9\u8BC4\u6210\u529F"),st({type:"classroomList/setActionTabs",payload:{}}),Pe()),Vt(!1)}),pt=kt=>Ot(void 0,null,function*(){const{mes:Nt,setChatData:fn,setTyping:Fn}=kt,Re=yield(0,m.ZP)("/api/intelligent_reviews/large_model_intelligent_qa.json",{method:"post",body:yt({query:Nt,student_work_id:Yt.homeworkId},Ie.current)});Re.answer=(Re==null?void 0:Re.status)==-3?Re.message:Re==null?void 0:Re.answer,Re!=null&&Re.answer&&fn(Nn=>[...Nn].map((Rt,Ft)=>Ft===Nn.length-1?ht(yt({},Rt),{text:Re==null?void 0:Re.answer,loading:!1,response:Re}):Rt))}),Xt=({chatData:kt,setChatData:Nt,setLoading:fn,getData:Fn,renderChatItems:Re})=>{st({type:"shixunHomeworks/setActionTabs",payload:{key:"\u667A\u80FD\u8BC4\u9605\u914D\u7F6E",onOk:Nn=>{Ie.current=Nn,Se(!0),fn(!0);const Rt=Re();Rt[0].show=!1,Nt(Rt),Fn()}}})},hn=[{title:"\u4EFB\u52A1\u540D\u79F0",dataIndex:"shixun_name",ellipsis:!0},{title:"\u5F00\u542F\u65F6\u95F4",dataIndex:"open_time",width:160,render:kt=>kt||"--"},{title:"\u8BC4\u6D4B\u6B21\u6570",dataIndex:"evaluate_count",width:110},{title:"\u5B8C\u6210\u65F6\u95F4",dataIndex:"finished_time",width:160},{title:"\u5B9E\u8BAD\u8017\u65F6",dataIndex:"cost_time",width:160},{title:"\u7F3A\u8BC4\u6263\u5206",dataIndex:"absence_penalty",width:90,render:kt=>kt||"--"},{title:"\u5F97\u5206",dataIndex:"score",width:90,render:(kt,Nt)=>ae.createElement("div",null,ae.createElement("span",{style:{color:parseFloat(Nt.score_full)!==parseFloat(kt)?"#E30000":"#53C41B"}},kt),"/",Nt.score_full)},{title:"\u8C03\u5206",width:100,dataIndex:"action",render:(kt,Nt)=>(0,se.GJ)()?ae.createElement(K,{max:Nt.score_full,onBlur:fn=>Ot(void 0,null,function*(){var Fn;if((0,se.Rm)()&&!((Fn=ct.AssistantObject.practice)!=null&&Fn.can_appraise)){o.ZP.warning("\u60A8\u672A\u83B7\u53D6\u6B64\u6743\u9650\uFF0C\u9700\u5411\u8BFE\u5802\u7BA1\u7406\u5458\u7533\u8BF7\u6743\u9650\u624D\u80FD\u4F7F\u7528\u6B64\u529F\u80FD");return}const Re=yield(0,m.ZP)(`/api/student_works/${Yt.homeworkId}/adjust_score.json`,{method:"post",body:{score:fn}});Pe(),Re.status===0&&o.ZP.success("\u8C03\u5206\u6210\u529F")})}):wt!=null&&wt.is_anonymous?ae.createElement(ie.Z,{min:0,value:vn,onChange:fn=>He(fn),max:Nt.score_full}):kt}].filter(kt=>wt!=null&&wt.is_anonymous?!["late_penalty","score","absence_penalty"].includes(kt.dataIndex):!0);return ae.createElement(ae.Fragment,null,ae.createElement(U.default,{centered:!0,width:1080,title:"\u70B9\u8BC4\u4F5C\u4E1A",afterClose:()=>{Le.resetFields(),He("")},confirmLoading:$n,open:ct.actionTabs.key==="\u66F4\u6539\u70B9\u8BC4",okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",onOk:()=>Ot(void 0,null,function*(){var kt;if((0,se.Rm)()&&!((kt=ct.AssistantObject.practice)!=null&&kt.can_appraise)){o.ZP.warning("\u60A8\u672A\u83B7\u53D6\u6B64\u6743\u9650\uFF0C\u9700\u5411\u8BFE\u5802\u7BA1\u7406\u5458\u7533\u8BF7\u6743\u9650\u624D\u80FD\u4F7F\u7528\u6B64\u529F\u80FD");return}if(wt!=null&&wt.is_anonymous){it();return}const Nt=Le.getFieldsValue();JSON.stringify(Nt)==="{}"||Nt.hidden_comment===""&&Nt.comment===""?In(!0):Ye()}),onCancel:()=>{st({type:"classroomList/setActionTabs",payload:{}})}},ae.createElement(X.Z,{className:k.info},ae.createElement(L.Z,null,ae.createElement("span",{className:`${k.label} ${k.greyText}`},"\u59D3\u540D"),ae.createElement("span",{className:k.blackContent},wt==null?void 0:wt.username)),ae.createElement(L.Z,null,ae.createElement("span",{className:`${k.label} ${k.greyText}`},"\u5B66\u53F7"),ae.createElement("span",{className:k.blackContent},(wt==null?void 0:wt.student_id)||"--")),!(wt!=null&&wt.is_anonymous)&&ae.createElement(ae.Fragment,null,ae.createElement(L.Z,null,ae.createElement("span",{className:`${k.label} ${k.greyText}`},"\u73ED\u7EA7"),ae.createElement("span",{className:k.blackContent},(wt==null?void 0:wt.group_name)||"--")),ae.createElement(L.Z,null,ae.createElement("span",{className:`${k.label} ${k.greyText}`},"\u8865\u4EA4\u6263\u5206"),ae.createElement("span",{className:k.orangeContent},((Lt=wt==null?void 0:wt.stage_list[0])==null?void 0:Lt.late_penalty)||"--")),ae.createElement(L.Z,null,ae.createElement("span",{className:`${k.label} ${k.greyText}`},"\u7F3A\u8BC4\u6263\u5206"),ae.createElement("span",{className:k.orangeContent},((St=wt==null?void 0:wt.stage_list[0])==null?void 0:St.absence_penalty)||"--")),ae.createElement(L.Z,null,ae.createElement("span",{className:`${k.label} ${k.greyText}`},"\u603B\u6210\u7EE9"),ae.createElement("span",{className:k.orangeContent},(wt==null?void 0:wt.stage_list[0].score)||"--")))),ae.createElement(de.default,{form:Le,onChange:()=>{Ht&&In(!1)}},ae.createElement("div",{className:"w-full flex justify-between item-center"},ae.createElement("div",{className:`${k.inputLabel} ${k.greyText}`,style:{marginBottom:0}},wt!=null&&wt.is_anonymous?"\u8BC4\u8BED":"\u5B66\u751F\u548C\u8BFE\u5802\u8001\u5E08\u53EF\u89C1"),ae.createElement("div",{className:"mb10"},ae.createElement(V.Z,{title:"\u667A\u80FD\u8BC4\u9605",visible:ue,onOpen:Xt,onClose:()=>{Se(!1)},loadingOption:{text:"AI\u8BC4\u9605\u4E2D..."},hideUpload:!0,showDefaultTips:!1,hideInputBox:!0,customRequest:pt,extraAnswerAction:kt=>{var Nt;return!kt.loading&&![-1,-3].includes((Nt=kt==null?void 0:kt.response)==null?void 0:Nt.status)&&ae.createElement("div",{className:k.apply,onClick:()=>{const fn=()=>{var Fn,Re,Nn;Le.setFieldsValue({comment:(Fn=kt==null?void 0:kt.response)==null?void 0:Fn.remarks,hidden_comment:(Re=kt==null?void 0:kt.response)==null?void 0:Re.remarks}),He((Nn=kt==null?void 0:kt.response)==null?void 0:Nn.score),Se(!1)};if(vn||De||te){Me.confirm({icon:null,title:"\u63D0\u793A",centered:!0,content:"\u7CFB\u7EDF\u68C0\u6D4B\u5230\u8BC4\u5206\u6216\u8BC4\u8BED\u8F93\u5165\u6846\u4E2D\u5DF2\u6709\u5185\u5BB9\uFF0C\u4E00\u952E\u5E94\u7528\u5C06\u4F1A\u8986\u76D6\u539F\u6709\u5185\u5BB9\u3002\u662F\u5426\u5E94\u7528\uFF1F",okText:"\u5E94\u7528",onOk:fn});return}fn()}},ae.createElement("i",{style:{color:"#3061D0"},className:"iconfont icon-yijianyingyong1 font12 mr5"}),"\u4E00\u952E\u5E94\u7528")}},ae.createElement(_.ZP,{icon:ae.createElement("img",{src:w(11689)}),type:"link"},"\u667A\u80FD\u8BC4\u9605")))),ae.createElement(de.default.Item,{name:"comment"},ae.createElement(oe.default.TextArea,{placeholder:"\u8BF7\u8F93\u5165\u8BC4\u9605\u5185\u5BB9",rows:3})),!(wt!=null&&wt.is_anonymous)&&ae.createElement(ae.Fragment,null,ae.createElement("div",{className:`${k.inputLabel} ${k.greyText}`},"\u4EC5\u8BFE\u5802\u8001\u5E08\u53EF\u89C1"),ae.createElement(de.default.Item,{name:"hidden_comment"},ae.createElement(oe.default.TextArea,{placeholder:"\u8BF7\u8F93\u5165\u8BC4\u9605\u5185\u5BB9",rows:3}))," ")),Ht&&ae.createElement("p",{className:"c-red"},"\u8BC4\u9605\u5185\u5BB9\u81F3\u5C11\u6709\u4E00\u4E2A\u4E0D\u4E3A\u7A7A"),ae.createElement("div",{className:k.tableTitle},"\u5173\u5361\u6210\u7EE9"),ae.createElement(O.default,{className:k.scoreTable,dataSource:wt==null?void 0:wt.stage_list,rowKey:"challenge_id",pagination:!1,columns:hn})),ae.createElement($.Z,null))};var Ve=(0,ve.connect)(({shixunHomeworks:It,classroomList:st})=>({shixunHomeworks:It,classroomList:st}))(Dt),Jt={},ot=(It,st,ct)=>new Promise((Pe,wt)=>{var Lt=Yt=>{try{en(ct.next(Yt))}catch(Ht){wt(Ht)}},St=Yt=>{try{en(ct.throw(Yt))}catch(Ht){wt(Ht)}},en=Yt=>Yt.done?Pe(Yt.value):Promise.resolve(Yt.value).then(Lt,St);en((ct=ct.apply(It,st)).next())});const Et=({shixunHomeworks:It,dispatch:st,gethomeworkreport:ct,homeWorkReport:Pe})=>{var wt,Lt;const{shixunWorkReport:St}=It;console.log(Pe,"homeWorkReport");const en=(0,ve.useParams)(),[Yt,Ht]=(0,p.useState)(!1),[In]=de.default.useForm(),{user_name:$n,score:Vt,comment_time:vn,content:He,score_id:Le,user_id:De}=((Lt=(wt=It==null?void 0:It.actionTabs)==null?void 0:wt.selectArrs)==null?void 0:Lt.data)||{},te=()=>ot(void 0,null,function*(){yield In.validateFields(),Ht(!0);const ue=In.getFieldsValue();(yield(0,m.ZP)(`/api/student_works/${en.homeworkId}/appeal_anonymous_score.json`,{method:"post",body:{comment:ue.comment,score_id:Le,userId:De}})).status===0&&(o.ZP.success("\u64CD\u4F5C\u6210\u529F"),st({type:"shixunHomeworks/setActionTabs",payload:{}}),ct()),Ht(!1)});return p.createElement(U.default,{centered:!0,width:600,title:"\u533F\u8BC4\u7533\u8BC9",afterClose:()=>{In.resetFields()},confirmLoading:Yt,open:It.actionTabs.key==="\u533F\u8BC4\u7533\u8BC9",okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",onOk:te,onCancel:()=>{st({type:"shixunHomeworks/setActionTabs",payload:{}})}},p.createElement("div",{className:"p20",style:{background:"#F7F8F9",padding:15,marginBottom:20}},p.createElement(X.Z,{justify:"space-between",className:Jt.info},p.createElement("span",null,p.createElement("span",{className:"c-grey-666"},$n),p.createElement("span",{className:"c-grey-333 ml5"},"\u8C03\u5206\u4E3A"),p.createElement("span",{className:"c-orange ml5"},Vt,"\u5206")),p.createElement("span",{className:"c-grey-333"},vn)),p.createElement("div",{className:"c-grey-333 mt5"},He)),p.createElement(de.default,{form:In,className:"mt15",layout:"vertical"},p.createElement(de.default.Item,{name:"comment",label:"\u7533\u8BC9",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u7533\u8BC9\u539F\u56E0"}]},p.createElement(oe.default.TextArea,{placeholder:"\u8BF7\u8F93\u5165\u7533\u8BC9\u539F\u56E0",rows:3}))))};var qe=(0,ve.connect)(({shixunHomeworks:It})=>({shixunHomeworks:It}))(Et),Kt=w(43428),Te={flex_box_center:"flex_box_center___uz0LL",flex_space_between:"flex_space_between___kuKI5",flex_box_vertical_center:"flex_box_vertical_center___VzPH1",flex_box_center_end:"flex_box_center_end___Tyr1U",flex_box_column:"flex_box_column___qsgVa",title:"title___SFyGM",export:"export___ezPhH",title1_right:"title1_right___tMOJn",userPic:"userPic___mW4Rr",userInfo:"userInfo___vYvSZ",listItem:"listItem___gJf4Z",rightInfo:"rightInfo___PRYRt",shixunTitle:"shixunTitle___STlvE",shixunWrp:"shixunWrp___knhTt",footerBar:"footerBar___R5IlQ",footerBarStatic:"footerBarStatic___M4EQj",exitComment:"exitComment___NoCI4",nextComment:"nextComment___sFj7z",modal:"modal___TwQdH",tag:"tag___RErUu"},F=w(95097),v=w(88761),T=w(44164),ee=w.n(T),N=w(59301),z=Object.defineProperty,he=Object.getOwnPropertySymbols,Fe=Object.prototype.hasOwnProperty,Ne=Object.prototype.propertyIsEnumerable,rt=(It,st,ct)=>st in It?z(It,st,{enumerable:!0,configurable:!0,writable:!0,value:ct}):It[st]=ct,lt=(It,st)=>{for(var ct in st||(st={}))Fe.call(st,ct)&&rt(It,ct,st[ct]);if(he)for(var ct of he(st))Ne.call(st,ct)&&rt(It,ct,st[ct]);return It},zt=(It,st)=>{var ct={};for(var Pe in It)Fe.call(It,Pe)&&st.indexOf(Pe)<0&&(ct[Pe]=It[Pe]);if(It!=null&&he)for(var Pe of he(It))st.indexOf(Pe)<0&&Ne.call(It,Pe)&&(ct[Pe]=It[Pe]);return ct},Tt=(It,st,ct)=>new Promise((Pe,wt)=>{var Lt=Yt=>{try{en(ct.next(Yt))}catch(Ht){wt(Ht)}},St=Yt=>{try{en(ct.throw(Yt))}catch(Ht){wt(Ht)}},en=Yt=>Yt.done?Pe(Yt.value):Promise.resolve(Yt.value).then(Lt,St);en((ct=ct.apply(It,st)).next())});const Ct=It=>{var st=It,{shixunHomeworks:ct,classroomList:Pe,globalSetting:wt,loading:Lt,user:St,dispatch:en}=st,Yt=zt(st,["shixunHomeworks","classroomList","globalSetting","loading","user","dispatch"]),Ht,In,$n,Vt,vn,He,Le;const[De,te]=(0,p.useState)(lt({},(0,ve.useParams)())),ue=(0,ve.useParams)(),Se=(0,ve.useLocation)(),[]=(0,p.useState)([]),[Ie,Me]=(0,p.useState)({last:!1}),[Ke,Ye]=(0,p.useState)({last:!1}),it=(0,p.useRef)(),pt=(0,p.useRef)(),[Xt,hn]=(0,p.useState)(!1),[kt,Nt]=(0,p.useState)(!1),[fn,Fn]=(0,p.useState)(!1),[Re,Nn]=(0,p.useState)(),[Rt,Ft]=(0,p.useState)(),[rn,_n]=(0,p.useState)(!0),[Mn,oi]=(0,p.useState)(),Oi=(0,se.GJ)(),[ki,vi]=(0,p.useState)(new(Y())),[ji,ti]=(0,p.useState)(0),[Si,wi]=(0,p.useState)([]),[Yi,Qn]=(0,p.useState)(!1),[Xn,di]=(0,p.useState)(!1),[ai,wn]=(0,p.useState)(""),[We,ut]=(0,p.useState)(!1),[Ut,dt]=(0,p.useState)(!0),[vt,Mt]=(0,p.useState)(0),[Wt]=(0,ve.useSearchParams)(),sn=()=>Tt(void 0,null,function*(){(St.userInfo.is_teacher||St.userInfo.admin)&&(ut(!0),dt(!1))});(0,p.useEffect)(()=>{sn(),console.log("\u6253\u5370\u7684------",Re),console.log(ct),wn(Re==null?void 0:Re.repeat_minus_score)},[Re,St]),(0,p.useEffect)(()=>{console.log("\u89E6\u53D1\u8FD9",Re==null?void 0:Re.work_score),Mt(Re==null?void 0:Re.work_score)},[Re==null?void 0:Re.work_score,ai]),(0,p.useEffect)(()=>(en({type:"globalSetting/footerToggle",payload:!1}),()=>{en({type:"globalSetting/footerToggle",payload:!0})}),[]),(0,p.useEffect)(()=>{var Ce;if(Re){let et=[];(Ce=Re==null?void 0:Re.target_test_sets)==null||Ce.map((Pt,an)=>{var un;(un=Pt==null?void 0:Pt.targets)==null||un.map((qt,tn)=>{var mn;qt.name=Pt==null?void 0:Pt.name,qt.total_target_score=Pt==null?void 0:Pt.total_target_score,qt.actual_target_score=Pt==null?void 0:Pt.actual_target_score,qt.rowSpan=tn===0?(mn=Pt==null?void 0:Pt.targets)==null?void 0:mn.length:0,qt.order=an+1,et.push(qt)})}),oi(et),en({type:"classroomList/getAssistantPermissions",payload:{course_id:De.coursesId}})}},[Re]),(0,p.useEffect)(()=>{ct.actionTabs.key==="\u5BFC\u51FA\u5B9E\u8BAD\u62A5\u544A"&&Si.length>0&&Re!=null&&Re.course_name&&An("all")},[Re==null?void 0:Re.course_name]),(0,p.useEffect)(()=>{console.log(ue),te(lt({},ue))},[Se.pathname]);const ln=()=>{document.body.scrollIntoView()};function gn(){return Tt(this,null,function*(){var Ce,et,Pt,an;const un=JSON.parse(localStorage.all_student_works_param||"{}"),qt=yield en({type:"shixunHomeworks/getAllStudentWorks",payload:lt(lt({},De),un)});wi(qt.all_student_works);const tn=(Ce=qt.all_student_works)==null?void 0:Ce.map(mn=>String(mn.student_work_id)).indexOf(De.homeworkId);tn===((et=qt.all_student_works)==null?void 0:et.length)-1?Me({last:!0}):Me((Pt=qt.all_student_works)==null?void 0:Pt[tn+1]),Ye(tn===0?{last:!0}:(an=qt.all_student_works)==null?void 0:an[tn-1])})}const ni=()=>{document.querySelectorAll("canvas").forEach(Ce=>{(!Ce.clientWidth||!Ce.clientHeight)&&Ce.remove()})},An=Ce=>Tt(void 0,null,function*(){let et=0,Pt;Pt=U.default.info({width:460,title:N.createElement("div",null,"\u6B63\u5728\u5BFC\u51FA\u5B9E\u8BAD\u62A5\u544A,",N.createElement("span",{className:"c-red"},"\u8BF7\u52FF\u5173\u95ED\u6216\u64CD\u4F5C\u5F53\u524D\u6D4F\u89C8\u5668\u7A97\u53E3")),content:N.createElement("div",null,"\u5F53\u524D\u8FDB\u5EA6: ",N.createElement("span",{className:"c-blue"},et+1),"/",Ce!=="all"?1:Si==null?void 0:Si.length,N.createElement("br",null),"\u8BF7\u52FF\u5173\u95ED\u6D4F\u89C8\u5668\u7A97\u53E3"),maskClosable:!1,className:Te.modal,onOk:()=>{}});const an={margin:[0,0],filename:`${Re==null?void 0:Re.username}.pdf`,html2canvas:{useCORS:!0,letterRendering:!0},jsPDF:{unit:"mm",format:"a4",orientation:"landscape"}};function un(){return Tt(this,null,function*(){ln(),et++,setTimeout(()=>Tt(this,null,function*(){var tn;ni();const mn=ki.folder(`${(tn=Re==null?void 0:Re.stage_list[0])==null?void 0:tn.shixun_name}`),Tn=document.querySelector("#export-all").children;let on=ee()();for(let $t=0;$t<Tn.length;$t++)yield on.set(an).from(Tn[$t]).toContainer().toCanvas().toPdf().get("pdf").then(kn=>Tt(this,null,function*(){$t<Tn.length-1&&(yield kn.addPage())}));mn.file(`${Si[et-1].student_work_user_name}.pdf`,on.output("blob")),Pt.update({content:N.createElement("div",null,"\u5F53\u524D\u8FDB\u5EA6: ",N.createElement("span",{className:"c-blue"},et),"/",Si==null?void 0:Si.length,N.createElement("br",null),"\u8BF7\u52FF\u5173\u95ED\u6D4F\u89C8\u5668\u7A97\u53E3")}),et==(Si==null?void 0:Si.length)?(Pt.destroy(),Hn()):qt()}),2200)})}function qt(){return Tt(this,null,function*(){var tn,mn,Tn,on,$t;const kn=yield(0,m.ZP)(`/api/student_works/${Si[et].student_work_id}/jupyter_work_report.json`,{method:"get"});if((kn==null?void 0:kn.status)===0)if(Nn(kn.data),(mn=(tn=kn==null?void 0:kn.data)==null?void 0:tn.shixun_detail[0])!=null&&mn.myshixun_identifier){_n(!0);const Ln=yield(0,m.ZP)("/api/jupyters/preview_tpi.json",{method:"get",params:{identifier:(on=(Tn=kn==null?void 0:kn.data)==null?void 0:Tn.shixun_detail[0])==null?void 0:on.myshixun_identifier,student_work_id:($t=kn==null?void 0:kn.data)==null?void 0:$t.work_id}});Ln.status===0&&(Ft(Ln.html_content),_n(!1),Ee(),un())}else un()})}if(Ce!=="all"||(Si==null?void 0:Si.length)<2){ni(),ln();const tn=pt.current.children;let mn=ee()();const Tn=ki.folder(`${Re==null?void 0:Re.username}`);for(let on=0;on<tn.length;on++)yield mn.set(an).from(tn[on]).toContainer().toCanvas().toPdf().get("pdf").then($t=>Tt(void 0,null,function*(){on<tn.length-1&&(yield $t.addPage())}));hn(!1),Tn.file(`${Re==null?void 0:Re.username}.pdf`,mn.output("blob"),{base64:!1}),Pt.destroy(),Hn();return}else qt()}),Hn=()=>{ki.generateAsync({type:"blob"}).then(function(Ce){const et=document.createElement("a");et.href=window.URL.createObjectURL(Ce),et.download=(Re==null?void 0:Re.course_name)+".zip",document.body.appendChild(et);const Pt=document.createEvent("MouseEvents");Pt.initEvent("click",!1,!1),et.dispatchEvent(Pt),document.body.removeChild(et),vi(new(Y()))}),Fn(!1)};(0,p.useEffect)(()=>{ze()},[De.homeworkId]),(0,p.useEffect)(()=>{Re!=null&&Re.work_id&&((0,se.GJ)()||Re!=null&&Re.is_anonymous)&&gn()},[Re==null?void 0:Re.work_id]),(0,p.useEffect)(()=>{console.log(Re)},[Re]);const j=()=>Tt(void 0,null,function*(){const Ce=yield(0,m.ZP)(`/api/student_works/${De.homeworkId}/jupyter_work_report.json`,{method:"get"});(Ce==null?void 0:Ce.status)===0&&Nn(Ce.data)}),G=()=>Tt(void 0,null,function*(){var Ce,et,Pt,an,un;const qt=yield(0,m.ZP)(`/api/student_works/${De.homeworkId}/jupyter_work_report.json`,{method:"get"});if((qt==null?void 0:qt.status)===0&&(Nn(qt.data),(et=(Ce=qt==null?void 0:qt.data)==null?void 0:Ce.shixun_detail[0])!=null&&et.myshixun_identifier)){_n(!0);const tn=yield(0,m.ZP)("/api/jupyters/preview_tpi.json",{method:"get",params:{identifier:(an=(Pt=qt==null?void 0:qt.data)==null?void 0:Pt.shixun_detail[0])==null?void 0:an.myshixun_identifier,student_work_id:(un=qt==null?void 0:qt.data)==null?void 0:un.work_id}});if(tn.status===0){Ft(tn.html_content),_n(!1),pe(tn.html_content);return}}}),pe=Ce=>{var et,Pt;(Pt=(et=Ce==null?void 0:Ce.match)==null?void 0:et.call(Ce,/<script [^>]*src=['"]([^'"]+)[^>]*>/gi))==null||Pt.map(an=>{const un=document.createElement("script");un.src=/<script [^>]*src=['"]([^'"]+)[^>]*>/gi.exec(an)[1],document.body.appendChild(un)}),Ee()},Ee=()=>{try{window.MathJax&&(MathJax.Hub.Config({TeX:{equationNumbers:{autoNumber:"AMS",useLabelIds:!0}},tex2jax:{inlineMath:[["$","$"],["\\\\(","\\\\)"]],displayMath:[["$$","$$"],["\\\\[","\\\\]"]],processEscapes:!0,processEnvironments:!0},displayAlign:"center",CommonHTML:{linebreaks:{automatic:!0}},"HTML-CSS":{linebreaks:{automatic:!0}}}),MathJax.Hub.Queue(["Typeset",MathJax.Hub]))}catch(Ce){}},ze=()=>Tt(void 0,null,function*(){Nt(!0),G(),Nt(!1)}),$e=[{title:"\u4EFB\u52A1\u540D\u79F0",dataIndex:"shixun_name",ellipsis:!0,render:(Ce,et,Pt)=>Ce},{title:"\u5F00\u542F\u65F6\u95F4",dataIndex:"open_time",width:Re!=null&&Re.is_anonymous?220:170,render:Ce=>Ce||"--"},{title:"\u8BC4\u6D4B\u6B21\u6570",dataIndex:"evaluate_count",width:Re!=null&&Re.is_anonymous?140:90},{title:"\u5B8C\u6210\u65F6\u95F4",dataIndex:"finished_time",width:Re!=null&&Re.is_anonymous?220:170},{title:"\u5B9E\u8BAD\u8017\u65F6",dataIndex:"cost_time",width:130},{title:"\u8865\u4EA4\u6263\u5206",dataIndex:"late_penalty",width:90,render:Ce=>Ce||"--"},{title:"\u7F3A\u8BC4\u6263\u5206",dataIndex:"absence_penalty",width:90,render:Ce=>Ce||"--"},{title:"\u5F97\u5206",dataIndex:"score",width:100,render:(Ce,et)=>N.createElement("div",null,N.createElement("span",{style:{color:parseFloat(et.score_full)!==parseFloat(Ce)?"red":"green"}},Ce||0),"/",et.score_full)},{title:"\u8C03\u5206",dataIndex:"action",width:110,render:(Ce,et)=>Oi?N.createElement(K,{max:et.score_full,onBlur:Pt=>Tt(void 0,null,function*(){var an;if((0,se.Rm)()&&!((an=Pe.AssistantObject.practice)!=null&&an.can_appraise)){o.ZP.warning("\u60A8\u672A\u83B7\u53D6\u6B64\u6743\u9650\uFF0C\u9700\u5411\u8BFE\u5802\u7BA1\u7406\u5458\u7533\u8BF7\u6743\u9650\u624D\u80FD\u4F7F\u7528\u6B64\u529F\u80FD");return}const un=yield(0,m.ZP)(`/api/student_works/${De.homeworkId}/adjust_score.json`,{method:"post",body:{score:Pt}});j(),un.status===0&&o.ZP.success("\u64CD\u4F5C\u6210\u529F")})}):Ce}].filter(Ce=>Re!=null&&Re.is_anonymous?!["late_penalty","absence_penalty","score","action"].includes(Ce.dataIndex):!0),bt=Re==null?void 0:Re.comment_scores.map(Ce=>{var et,Pt,an;return{children:N.createElement(X.Z,null,N.createElement(L.Z,{span:24},N.createElement(X.Z,null,N.createElement(L.Z,{flex:1},N.createElement("span",{className:"c-light-black mr10"},Ce.user_name),N.createElement("span",null,"\u8C03\u5206\u4E3A"),N.createElement("span",{className:"ml10 c-orange"},Ce.score?Ce.score:0,"\u5206")),N.createElement(L.Z,null,N.createElement("span",{className:"c-light-black ml10"},Ce.comment_time)))),N.createElement(L.Z,{span:24,className:"mt8"},N.createElement(X.Z,{className:"mt8"},N.createElement(L.Z,{span:22},Ce.content?N.createElement(F.Z,{value:Ce.content,style:{fontSize:14}}):N.createElement("span",{className:"c-light-black"},"\u6682\u672A\u5199\u8BC4\u8BED")),N.createElement(L.Z,{className:"tr",span:2},(Ce==null?void 0:Ce.can_appeal)&&!(Ce!=null&&Ce.is_invalid)&&N.createElement(_.ZP,{size:"small",type:"primary",onClick:()=>{en({type:"shixunHomeworks/setActionTabs",payload:{key:"\u533F\u8BC4\u7533\u8BC9",selectArrs:{data:lt({},Ce)}}})}},"\u7533\u8BC9")))),!!(Ce!=null&&Ce.appeal_info)&&N.createElement(L.Z,{span:24,className:"mt8"},N.createElement("div",{className:"p20",style:{background:"#F7F8F9",padding:15}},N.createElement(X.Z,{justify:"space-between"},N.createElement("span",null,N.createElement("span",{className:"c-grey-333"},(et=Ce==null?void 0:Ce.appeal_info)==null?void 0:et.user_name),N.createElement("span",null,(Ce==null?void 0:Ce.appeal_status)===1&&N.createElement("span",{className:`tag-style bg-orange ml10 ${Te.tag}`},"\u7533\u8BC9\u4E2D"),(Ce==null?void 0:Ce.appeal_status)===2&&N.createElement("span",{className:`tag-style bg-grey-ede c-light-black ml10 ${Te.tag}`},"\u7533\u8BC9\u5DF2\u64A4\u9500"),(Ce==null?void 0:Ce.appeal_status)===3&&N.createElement("span",{className:`tag-style ml10 ${Te.tag}`,style:{background:"#57BE40"}},"\u7533\u8BC9\u6210\u529F"),(Ce==null?void 0:Ce.appeal_status)===4&&N.createElement("span",{className:`tag-style bg-grey-ede c-light-black ml10 ${Te.tag}`},"\u7533\u8BC9\u88AB\u62D2\u7EDD"),(Ce==null?void 0:Ce.appeal_status)===5&&N.createElement("span",{className:`tag-style c-light-black ml10 ${Te.tag}`,style:{background:"#E9EAED"}},"\u7533\u8BC9\u5931\u8D25"))),N.createElement("span",{className:"c-light-black"}," ",xe()((Pt=Ce==null?void 0:Ce.appeal_info)==null?void 0:Pt.time).format("YYYY-MM-DD HH:mm:ss"))),N.createElement(X.Z,{justify:"space-between",className:"mt10"},N.createElement(L.Z,{flex:1},(an=Ce.appeal_info)==null?void 0:an.content),N.createElement(L.Z,{style:{flexShrink:0,marginLeft:"auto"}},(Ce==null?void 0:Ce.appeal_status)===1&&(0,se.GJ)()&&N.createElement("span",{onClick:()=>{U.default.confirm({title:"\u63A5\u53D7\u7533\u8BC9",icon:null,content:"\u6B64\u533F\u8BC4\u8BB0\u5F55\u5C06\u4F5C\u5E9F\uFF0C\u533F\u8BC4\u5B66\u751F\u7684\u4F5C\u54C1\u5C06\u88AB\u6263\u51CF\u8FDD\u89C4\u533F\u8BC4\u5206 \u662F\u5426\u786E\u8BA4\u63A5\u53D7\u7533\u8BC9\uFF1F",onOk:()=>Tt(void 0,null,function*(){const un=yield(0,m.ZP)(`/api/student_works/${De.homeworkId}/deal_appeal_score.json`,{method:"post",body:{score_id:Ce.score_id,status:3}});(un==null?void 0:un.status)===0&&j()})})},className:"c-red current"},"\u63A5\u53D7\u7533\u8BC9"),(Ce==null?void 0:Ce.appeal_status)===1&&(0,se.GJ)()&&N.createElement("span",{onClick:()=>{U.default.confirm({icon:null,title:"\u63A5\u53D7\u7533\u8BC9",content:"\u6B64\u533F\u8BC4\u8BB0\u5F55\u88AB\u8BA4\u4E3A\u5408\u7406\uFF0C\u662F\u5426\u786E\u8BA4\u62D2\u7EDD\u7533\u8BC9\uFF1F",onOk:()=>Tt(void 0,null,function*(){const un=yield(0,m.ZP)(`/api/student_works/${De.homeworkId}/deal_appeal_score.json`,{method:"post",body:{score_id:Ce.score_id,status:4}});(un==null?void 0:un.status)===0&&j()})})},className:"c-light-black current ml10"},"\u62D2\u7EDD\u7533\u8BC9"))))))}}),xt=Ce=>{Ft(null),en({type:"shixunHomeworks/setActionTabs",payload:{key:"",type:2}}),setTimeout(()=>{Ce==="next"?ve.history.push(`/classrooms/${De.coursesId}/common_homework/${De.categoryId}/${Ie==null?void 0:Ie.student_work_id}/comment?page=${Wt.get("page")}`):ve.history.push(`/classrooms/${De.coursesId}/common_homework/${De.categoryId}/${Ke==null?void 0:Ke.student_work_id}/comment?page=${Wt.get("page")}`)},200)},Gt=Ce=>{wn(""),Ce.target.value&&(console.log("\u8FDB\u6765",Re),Ce.target.value=Ce.target.value>(Re==null?void 0:Re.repeat_setting_score)?Re==null?void 0:Re.repeat_setting_score:Ce.target.value,wn(Ce.target.value))},_t=()=>Tt(void 0,null,function*(){const Ce=yield(0,m.ZP)(`/api/student_works/${Re==null?void 0:Re.work_id}/update_repeat_score`,{method:"put",body:{score:ai}});yield en({type:"shixunHomeworks/gethomeWorkReport",payload:lt({},De)}),Ce.status===0&&o.ZP.info("\u64CD\u4F5C\u6210\u529F")});return console.log(!!(Re!=null&&Re.category),Re==null?void 0:Re.course_id,"homeWorkReport"),N.createElement("section",{className:"bg-fafafa",style:{position:"sticky",top:0}},N.createElement("div",{className:"edu-container mt10",style:{paddingBottom:100}},N.createElement(y.Z,{loading:kt,active:!0,avatar:{size:40},paragraph:{rows:5}},N.createElement("div",{className:"edu-container"},(Re==null?void 0:Re.course_id)&&N.createElement("section",{className:"animated fadeIn"},N.createElement("aside",{className:""},(Re==null?void 0:Re.category)&&N.createElement(E.Z,{separator:">"},N.createElement(E.Z.Item,null,N.createElement(ve.Link,{to:`/classrooms/${Re==null?void 0:Re.course_id}/common_homework`},Re==null?void 0:Re.course_name)),N.createElement(E.Z.Item,null,N.createElement(ve.Link,{to:`/classrooms/${Re==null?void 0:Re.course_id}/common_homework/${Re!=null&&Re.category.main?"":Re==null?void 0:Re.category.category_id}`},Re==null?void 0:Re.category.category_name)),N.createElement(E.Z.Item,null,N.createElement(ve.Link,{to:`/classrooms/${Re==null?void 0:Re.course_id}/common_homework/${Re==null?void 0:Re.homework_common_id}/detail`},"\u4F5C\u4E1A\u8BE6\u60C5")),N.createElement(E.Z.Item,null,Re==null?void 0:Re.username))),N.createElement("aside",{className:[Te.title1,"mt20"].join(" ")},N.createElement(X.Z,{align:"middle"},N.createElement(L.Z,{flex:1},N.createElement(ve.Link,{to:`/classrooms/${Re==null?void 0:Re.course_id}/common_homework/${Re==null?void 0:Re.homework_common_id}/detail?page=${Wt.get("page")}`},N.createElement(R.Z,{className:"font16 c-black"})),N.createElement("strong",{style:{fontWeight:700},className:"font20 ml5"},Re==null?void 0:Re.shixun_name),N.createElement(we.VV,{status:Re==null?void 0:Re.homework_status})),N.createElement(L.Z,{className:Te.title1_right},!(Re!=null&&Re.is_anonymous)&&!!(Re!=null&&Re.work_status)&&N.createElement(_.ZP,null,N.createElement("span",{className:"iconfont icon-yijiandianping mr5"}),N.createElement(ve.Link,{className:"c-black",target:"_blank",to:`/tasks/${(In=(Ht=Re==null?void 0:Re.shixun_detail)==null?void 0:Ht[0])==null?void 0:In.myshixun_identifier}/jupyter${(0,se.GJ)()?"":`?homework_common_id=${ue.categoryId}`}`},(0,se.GJ)()?"\u67E5\u770B\u5B66\u5458\u5B9E\u8BAD":"\u67E5\u770B\u5B9E\u8BAD")),(0,se.GJ)()&&!(($n=Re==null?void 0:Re.homework_status)!=null&&$n.includes("\u5DF2\u622A\u6B62"))&&N.createElement(_.ZP,{className:"ml10",onClick:()=>Tt(void 0,null,function*(){yield en({type:"shixunHomeworks/setActionTabs",payload:{key:"redoShixunModal",homework_common_id:ue.categoryId,student_work_id:ue.homeworkId}})})},N.createElement("span",{className:"iconfont icon-dahuizhongzuo3x mr5"}),"\u6253\u56DE\u91CD\u505A"),!(Re!=null&&Re.is_anonymous)&&N.createElement(_.ZP,{className:"ml10",onClick:()=>{var Ce;if((0,se.Rm)()&&!((Ce=Pe.AssistantObject.normal)!=null&&Ce.can_download)){o.ZP.warning("\u60A8\u672A\u83B7\u53D6\u6B64\u6743\u9650\uFF0C\u9700\u5411\u8BFE\u5802\u7BA1\u7406\u5458\u7533\u8BF7\u6743\u9650\u624D\u80FD\u4F7F\u7528\u6B64\u529F\u80FD");return}An("")},loading:Xt},N.createElement("span",{className:"iconfont icon-daochu mr5"}),"\u5BFC\u51FA\u5B9E\u8BAD\u62A5\u544A"),(0,se.GJ)()&&(Si==null?void 0:Si.length)>1&&N.createElement(_.ZP,{className:"ml10",onClick:()=>{var Ce;if((0,se.Rm)()&&!((Ce=Pe.AssistantObject.normal)!=null&&Ce.can_download)){o.ZP.warning("\u60A8\u672A\u83B7\u53D6\u6B64\u6743\u9650\uFF0C\u9700\u5411\u8BFE\u5802\u7BA1\u7406\u5458\u7533\u8BF7\u6743\u9650\u624D\u80FD\u4F7F\u7528\u6B64\u529F\u80FD");return}An("all")}},N.createElement("span",{className:"iconfont icon-daochu mr5"}),"\u5BFC\u51FA\u5168\u90E8\u5B66\u751F\u5B9E\u8BAD\u62A5\u544A"))))),N.createElement("aside",{className:"mt30 relative"})),N.createElement("aside",{className:"edu-container bg-white",ref:it},N.createElement("div",{id:"export-all",ref:pt},N.createElement("div",{id:"export-all-1"},N.createElement("div",{className:Te.title},N.createElement("h1",null,"\u603B\u4F53\u8BC4\u4EF7"),N.createElement("div",null,!((Vt=Re==null?void 0:Re.homework_status)!=null&&Vt.includes("\u5DF2\u622A\u6B62")&&(0,se.dE)())&&((0,se.GJ)()||(Re==null?void 0:Re.is_anonymous))&&N.createElement(_.ZP,{className:"mr20",type:"primary",onClick:()=>{en({type:"classroomList/setActionTabs",payload:{key:"\u66F4\u6539\u70B9\u8BC4",selectArrs:{myshixun_identifier:Re==null?void 0:Re.user_id,data:lt({},Re)}}})}},N.createElement(J.Z,null),Re!=null&&Re.has_shixun_work_comment?"\u66F4\u6539\u70B9\u8BC4":"\u70B9\u8BC4\u4F5C\u4E1A"))),N.createElement(S.Z,{style:{marginTop:0}}),N.createElement(X.Z,{className:"pl30 pr30"},N.createElement(L.Z,null,N.createElement("img",{className:Te.userPic,src:`${_e.Z.IMG_SERVER}/images/${Re==null?void 0:Re.image_url}`,alt:Re==null?void 0:Re.username})),N.createElement(L.Z,{className:"pt20"},N.createElement("span",{className:"font16 ml40"},Re==null?void 0:Re.username),N.createElement(we.Y,{status:Re==null?void 0:Re.work_status}),N.createElement("ul",{className:Te.userInfo},N.createElement("li",null,"\u5B66\u53F7\uFF1A",(Re==null?void 0:Re.student_id)||"--"),((0,se.GJ)()||!(Re!=null&&Re.is_anonymous))&&N.createElement("li",null,"\u5206\u73ED\uFF1A",(Re==null?void 0:Re.group_name)||"--"),N.createElement("br",null)))),N.createElement("aside",{className:"pl30 pr30 mt30 mb10"},N.createElement(O.default,{dataSource:Re==null?void 0:Re.stage_list,rowKey:Ce=>Ce==null?void 0:Ce.challenge_id,pagination:!1,columns:$e})),((Re==null?void 0:Re.work_comment_hidden)||(Re==null?void 0:Re.work_comment))&&N.createElement("div",null,N.createElement(X.Z,{align:"middle"},N.createElement(L.Z,{flex:1},N.createElement("h1",{className:Te.title},"\u70B9\u8BC4\u5185\u5BB9")),N.createElement(L.Z,{className:"pr30"},(0,se.GJ)()&&N.createElement(_.ZP,{onClick:()=>Tt(void 0,null,function*(){U.default.confirm({centered:!0,okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",title:"\u63D0\u793A",icon:N.createElement(q.Z,null),content:"\u662F\u5426\u786E\u8BA4\u5220\u9664\uFF1F",onOk(){return Tt(this,null,function*(){(yield(0,v.gZ)({comment_id:Re==null?void 0:Re.comment_id,homeworkId:De.homeworkId})).status===0&&(o.ZP.success("\u5220\u9664\u6210\u529F"),j())})}})})},N.createElement(ge.Z,null),"\u5220\u9664"))),(Re==null?void 0:Re.work_comment)&&N.createElement("aside",{className:"pl30 pr30",style:{marginTop:"-5px"}},N.createElement("span",{className:"c-light-black font12"},"# \u5B66\u751F\u548C\u8BFE\u5802\u8001\u5E08\u53EF\u89C1"),N.createElement("br",null),N.createElement(F.Z,{value:Re==null?void 0:Re.work_comment,className:"font14"})),(Re==null?void 0:Re.work_comment_hidden)&&N.createElement("aside",{className:"pl30 pr30 mt15"},N.createElement("span",{className:"c-light-black font12"},"# \u4EC5\u8BFE\u5802\u8001\u5E08\u53EF\u89C1"),N.createElement("br",null),N.createElement(F.Z,{value:Re==null?void 0:Re.work_comment_hidden,className:"font14"}))),(Re==null?void 0:Re.comment_scores.length)>0&&N.createElement(N.Fragment,null,N.createElement("h1",{className:Te.title},"\u8C03\u5206\u539F\u56E0"),N.createElement("aside",{className:"pl30 pr30",style:{marginTop:"4px"}},N.createElement(P.Z,{items:bt}))),((vn=Re==null?void 0:Re.shixun_detail[0])==null?void 0:vn.myshixun_identifier)&&N.createElement(N.Fragment,null,N.createElement("h1",{className:Te.title,style:{marginTop:"-20px"}},"\u5B9E\u8BAD\u8BE6\u60C5"),N.createElement("aside",{className:"pl30 pr30"},N.createElement("div",{className:Te.shixunWrp},N.createElement("h2",null,N.createElement("span",null,"\u8BC4\u6D4B\u4EE3\u7801",N.createElement("span",{className:"ml5 font12 c-grey-999"},"\u672A\u901A\u8FC7\u672C\u9898\uFF0C\u5C55\u793A\u6700\u540E\u63D0\u4EA4\u8BC4\u6D4B\u7684\u4EE3\u7801\u8BE6\u60C5")),N.createElement("span",null,N.createElement(H.default,{style:{width:200},value:(He=Re==null?void 0:Re.shixun_detail[0])==null?void 0:He.path}," ",Re==null?void 0:Re.shixun_detail.map(Ce=>N.createElement(Option,{value:Ce.path},Ce.path))," "))),N.createElement(B.Z,{spinning:rn},N.createElement("div",{style:{width:"100%",minHeight:"550px",padding:"16px"},dangerouslySetInnerHTML:{__html:Rt}})))))))),((0,se.GJ)()||(Re==null?void 0:Re.is_anonymous))&&N.createElement("aside",{className:`${Te.footerBar} ${Xt?Te.footerBarStatic:""}`},N.createElement("aside",{className:"edu-container"},N.createElement(X.Z,{align:"middle"},N.createElement(L.Z,{flex:"1"},N.createElement(ve.Link,{className:Te.exitComment,to:`/classrooms/${De.coursesId}/common_homework/${De.categoryId}/detail?page=${Wt.get("page")}`},"\u8FD4\u56DE\u5217\u8868")),N.createElement(L.Z,{flex:"1",className:"tr"},N.createElement(_.ZP,{type:"default",disabled:Ke==null?void 0:Ke.last,onClick:()=>xt()},"\u4E0A\u4E00\u4E2A"),N.createElement(_.ZP,{type:"default",style:{marginLeft:"20px",marginRight:"20px"},disabled:Ie==null?void 0:Ie.last,onClick:()=>xt("next")},"\u4E0B\u4E00\u4E2A"),!((Le=Re==null?void 0:Re.homework_status)!=null&&Le.includes("\u5DF2\u622A\u6B62")&&(0,se.dE)())&&((0,se.GJ)()||(Re==null?void 0:Re.is_anonymous))&&N.createElement(_.ZP,{type:"primary",onClick:()=>Tt(void 0,null,function*(){en({type:"classroomList/setActionTabs",payload:{key:"\u66F4\u6539\u70B9\u8BC4",selectArrs:{myshixun_identifier:Re==null?void 0:Re.user_id,data:lt({},Re)}}})})},"\u70B9\u8BC4\u4F5C\u4E1A"))))))),N.createElement(qe,{gethomeworkreport:j,homeWorkReport:Re}),N.createElement(Ve,{gethomeworkreport:j,homeWorkReport:Re}),N.createElement(Kt.Z,{getData:j}),N.createElement(U.default,{open:Yi,width:860,centered:!0,onCancel:()=>{Qn(!1)},title:"\u8BA1\u65F6\u89C4\u5219\u8BF4\u660E",footer:null},N.createElement("div",{style:{color:"#333333",fontWeight:400}},N.createElement("span",{style:{fontWeight:500}},"1\u3001\u9875\u9762\u505C\u7559\u65F6\u957F"),N.createElement("br",null),N.createElement("span",null,"\u5B66\u751F\u8FDB\u5165\u5173\u5361\u7684\u7B54\u9898\u9875\u9762\u5F00\u59CB\u8BA1\u65F6\uFF0C\u76F4\u81F3\u5B66\u751F\u5173\u5361\u8BC4\u6D4B\u901A\u8FC7\uFF0C\u5219\u8BA1\u65F6\u7ED3\u675F\uFF1B"),N.createElement("br",null),N.createElement("span",null," \u5B66\u751F\u8FDB\u5165\u5173\u5361\u7684\u7B54\u9898\u9875\u9762\u5F00\u59CB\u8BA1\u65F6\uFF0C\u82E5\u5B66\u751F\u5173\u95ED/\u9000\u51FA\u7B54\u9898\u9875\u9762\uFF0C\u5219\u8BA1\u65F6\u6682\u505C\uFF0C\u518D\u6B21\u8FDB\u5165\u7B54\u9898\u9875\u9762\u65F6\u5F00\u59CB\u7D2F\u8BA1\u8BA1\u65F6\u76F4\u81F3\u8BC4\u6D4B\u901A\u8FC7\uFF0C\u5219\u8BA1\u65F6\u7ED3\u675F\uFF1B"),N.createElement("span",{style:{color:"#FA6400",display:"flex",height:34,alignItems:"center"}}," \u53EF\u80FD\u4F1A\u9020\u6210\u65F6\u957F\u8BC4\u4F30\u4E0E\u5B9E\u9645\u505A\u9898\u80FD\u529B\u4E0D\u7B26\u7684\u60C5\u51B5 "),N.createElement("span",null,"a\u3001\u5B66\u751F\u8FDB\u5165\u5173\u5361\u770B\u5B8C\u9898\u540E\uFF0C\u9000\u51FA\u7B54\u9898\u9875\u9762\u5B8C\u6210\u4EE3\u7801\u8BBE\u8BA1\uFF0C\u518D\u590D\u5236\u8FDB\u5E73\u53F0\u7B54\u9898\u9875\u9762\u8FDB\u884C\u8BC4\u6D4B\uFF0C\u65E0\u6CD5\u8BC4\u4F30\u5B66\u751F\u7684\u5B66\u4E60\u548C\u601D\u8003\u65F6\u95F4\u3002")),N.createElement("div",{style:{color:"#333333",marginTop:20,fontWeight:400}},N.createElement("span",{style:{fontWeight:500}},"2\u3001\u5173\u5361\u603B\u8017\u65F6"),N.createElement("br",null),N.createElement("span",{style:{}},"\u5B66\u751F\u7B2C\u4E00\u6B21\u8FDB\u5165\u5173\u5361\u7B54\u9898\u9875\u9762\u5F00\u59CB\u8BA1\u65F6\uFF0C\u76F4\u81F3\u8BE5\u5173\u5361\u8BC4\u6D4B\u901A\u8FC7\uFF0C\u5219\u8BA1\u65F6\u7ED3\u675F\u3002 "),N.createElement("br",null),N.createElement("span",null," \u53E6\uFF0C\u5373\u4F7F\u5173\u5361\u95EF\u5173\u8FC7\u7A0B\u4E2D\uFF0C\u5B66\u751F\u9000\u51FA/\u5173\u95ED\u7B54\u9898\u9875\u9762\uFF0C\u4E5F\u5C06\u6301\u7EED\u8BA1\u65F6\uFF0C\u76F4\u81F3\u8BE5\u5173\u5361\u901A\u8FC7\u3002"),N.createElement("span",{style:{color:"#FA6400",display:"flex",height:44,paddingTop:10}}," \u53EF\u80FD\u4F1A\u9020\u6210\u65F6\u957F\u8BC4\u4F30\u4E0E\u5B9E\u9645\u505A\u9898\u80FD\u529B\u4E0D\u7B26\u7684\u60C5\u51B5 "),N.createElement("span",null,"a\u3001\u5B66\u751F\u4ECE\u5176\u4ED6\u540C\u5B66\u5904\u770B\u5230\u9898\u76EE\u540E\uFF0C\u5B8C\u6210\u4EE3\u7801\u8BBE\u8BA1\uFF0C\u518D\u8FDB\u5165\u5173\u5361\u7B54\u9898\u9875\u9762\uFF0C\u5C06\u5DF2\u5B8C\u6210\u7684\u4EE3\u7801\u590D\u5236\u81F3\u5E73\u53F0\u8FDB\u884C\u8BC4\u6D4B\uFF1B"),N.createElement("br",null),N.createElement("span",null,"b\u3001\u5B66\u751F\u7B2C\u4E00\u6B21\u6253\u5F00\u5173\u5361\u540E\uFF0C\u56E0\u4E3A\u67D0\u79CD\u539F\u56E0\u79BB\u5F00\u9875\u9762\uFF0C\u65F6\u9694\u591A\u65E5\u624D\u518D\u6B21\u8FDB\u5165\u5E73\u53F0\u95EF\u5173\uFF0C\u5C31\u4F1A\u5BFC\u81F4\u5B66\u751F\u5173\u5361\u603B\u8017\u65F6\u8FC7\u957F\uFF1B")),N.createElement("div",{style:{color:"#333333",marginTop:20,fontWeight:400}},N.createElement("span",{style:{fontWeight:500}},"3\u3001\u4F5C\u4E1A\u901A\u5173\u65F6\u957F"),N.createElement("br",null),N.createElement("span",{style:{}},"\u4ECE\u8001\u5E08\u53D1\u5E03\u7684\u5B9E\u8BAD\u4F5C\u4E1A\u5F00\u59CB\u65F6\u95F4\uFF0C\u5F00\u59CB\u8BA1\u65F6\uFF0C\u76F4\u81F3\u5B66\u751F\u5B9E\u8BAD\u901A\u5173\uFF08\u5305\u62EC\u8FDF\u4EA4\u901A\u5173\uFF09\uFF0C\u7ED3\u675F\u8BA1\u65F6\u3002\u5982\u679C\u5B66\u751F\u672A\u901A\u5173\uFF0C\u5219\u8BE5\u751F\u7684\u95EF\u5173\u8017\u65F6\u4E3A\u8001\u5E08\u8BBE\u7F6E\u7684\u5B9E\u8BAD\u5F00\u59CB\u65F6\u95F4\u81F3\u5B9E\u8BAD\u622A\u6B62\u65F6\u95F4\uFF0C\u5982\u679C\u8001\u5E08\u5F00\u542F\u4E86\u8865\u4EA4\uFF0C\u5219\u8BE5\u751F\u7684\u95EF\u5173\u8017\u65F6\u4E3A\u5B9E\u8BAD\u5F00\u59CB\u65F6\u95F4\u81F3\u5B9E\u8BAD\u8865\u4EA4\u622A\u6B62\u65F6\u95F4\u3002")),N.createElement("div",{style:{color:"#333333",marginTop:20,fontWeight:400}},N.createElement("span",{style:{fontWeight:500}},"\u89C4\u5219\u76EE\u7684"),N.createElement("br",null),N.createElement("span",{style:{}},"\u9F13\u52B1\u5B66\u751F\u5728\u5B9E\u8BAD\u4F5C\u4E1A\u53D1\u5E03\u7684\u7B2C\u4E00\u65F6\u95F4\uFF0C\u7ACB\u5373\u767B\u5F55\u5E73\u53F0\u5B8C\u6210\u5B9E\u8BAD\u4F5C\u4E1A\u7684\u901A\u5173\u3002"))),N.createElement(U.default,{open:Xn,title:"\u5B9E\u8BAD\u603B\u8017\u65F6\u8BF4\u660E",centered:!0,footer:null,onCancel:()=>{di(!1)},width:600},N.createElement("div",{style:{fontWeight:400,color:"#333333"}},N.createElement("div",null,"1\u3001\u5F53\u8BA1\u65F6\u89C4\u5219\u4E3A\u201C",N.createElement("span",{style:{color:"#145DFF"}},"\u9875\u9762\u505C\u7559\u65F6\u957F"),"\u201D\u65F6\uFF0C\u5B9E\u8BAD\u603B\u8017\u65F6\u4E3A\u6240\u6709\u5173\u5361\u8017\u65F6\u76F8\u52A0\u4E4B\u548C\uFF1B"),N.createElement("div",{style:{margin:"20px 0px"}},"2\u3001\u5F53\u8BA1\u65F6\u89C4\u5219\u4E3A\u201C",N.createElement("span",{style:{color:"#145DFF"}},"\u5173\u5361\u603B\u8017\u65F6"),"\u201D\u65F6\uFF0C\u5B9E\u8BAD\u603B\u8017\u65F6\u4E3A\u6240\u6709\u5173\u5361\u8017\u65F6\u76F8\u52A0\u4E4B\u548C\uFF1B"),N.createElement("div",null,"3\u3001\u5F53\u8BA1\u65F6\u89C4\u5219\u4E3A\u201C",N.createElement("span",{style:{color:"#145DFF"}},"\u4F5C\u4E1A\u901A\u5173\u65F6\u957F"),"\u201D\u65F6\uFF0C\u5B9E\u8BAD\u603B\u8017\u65F6\u4E3A\u5B9E\u8BAD\u53D1\u5E03\u65F6\u95F4\u81F3\u5B9E\u8BAD\u901A\u5173\u65F6\u95F4\uFF0C\u5F53\u5B66\u751F\u672A\u901A\u5173\u65F6\uFF0C\u5B9E\u8BAD\u603B\u8017\u65F6\u4E3A\u5B9E\u8BAD\u53D1\u5E03\u65F6\u95F4\u81F3\u5B9E\u8BAD\u622A\u6B62\u65F6\u95F4\u3002"))))};var At=(0,ve.connect)(({shixunHomeworks:It,classroomList:st,loading:ct,globalSetting:Pe,user:wt})=>({shixunHomeworks:It,classroomList:st,globalSetting:Pe,loading:ct.effects,user:wt}))(Ct)},43428:function(Xe,Ge,w){"use strict";var p=w(62957),Ae=w(6767),xe=w(38147),ce=w(65582),Y=w(41867),m=w(59301),ve=(o,X,L)=>new Promise((_,y)=>{var E=P=>{try{O(L.next(P))}catch(H){y(H)}},S=P=>{try{O(L.throw(P))}catch(H){y(H)}},O=P=>P.done?_(P.value):Promise.resolve(P.value).then(E,S);O((L=L.apply(o,X)).next())});const U=({shixunHomeworks:o,dispatch:X,classroomList:L,getData:_})=>m.createElement(p.default,{centered:!0,title:"\u63D0\u793A",open:o.actionTabs.key==="redoShixunModal",okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",onOk:()=>ve(void 0,null,function*(){var y;if((0,Y.Rm)()&&!((y=L.AssistantObject.normal)!=null&&y.can_redo)){Ae.ZP.warning("\u60A8\u672A\u83B7\u53D6\u6B64\u6743\u9650\uFF0C\u9700\u5411\u8BFE\u5802\u7BA1\u7406\u5458\u7533\u8BF7\u6743\u9650\u624D\u80FD\u4F7F\u7528\u6B64\u529F\u80FD");return}(yield(0,xe.ZP)(`/api/homework_commons/${o.actionTabs.homework_common_id}/batch_redo_modal.json`,{method:"post",body:{student_work_id:o.actionTabs.student_work_id}})).status===0&&(Ae.ZP.success("\u64CD\u4F5C\u6210\u529F"),X({type:"shixunHomeworks/setActionTabs",payload:{}}),_())}),onCancel:()=>{X({type:"shixunHomeworks/setActionTabs",payload:{}})}},m.createElement("p",null,"\u8BE5\u4F5C\u4E1A\u5C06\u88AB\u6253\u56DE\u91CD\u505A\uFF0C",o.actionTabs.isshixun?"\u5B66\u751F\u5B9E\u8BAD":"\u5B66\u751F\u4F5C\u54C1\u63D0\u4EA4","\u8BB0\u5F55\u5C06\u88AB\u6E05\u7A7A!"),m.createElement("p",null,"\u786E\u5B9A\u6253\u56DE?"));Ge.Z=(0,ce.connect)(({shixunHomeworks:o,classroomList:X})=>({shixunHomeworks:o,classroomList:X}))(U)},88493:function(Xe,Ge,w){"use strict";w.d(Ge,{Z:function(){return we}});var p=w(28284),Ae=w(62957),xe=w(77019),ce=w(5269),Y=w(37568),m=w(71051),ve=w(6767),U=w(62673),o=w(59301),X=w(65582),L={form_item_warp:"form_item_warp___jRcx8",lable_name1:"lable_name1___NOUD6",h_lh_40:"h_lh_40___murfL",config_title:"config_title___Pz2EP"},_=w(65862),y=w(24929),E=w(59301),S=Object.defineProperty,O=Object.defineProperties,P=Object.getOwnPropertyDescriptors,H=Object.getOwnPropertySymbols,B=Object.prototype.hasOwnProperty,R=Object.prototype.propertyIsEnumerable,J=(de,ie,oe)=>ie in de?S(de,ie,{enumerable:!0,configurable:!0,writable:!0,value:oe}):de[ie]=oe,q=(de,ie)=>{for(var oe in ie||(ie={}))B.call(ie,oe)&&J(de,oe,ie[oe]);if(H)for(var oe of H(ie))R.call(ie,oe)&&J(de,oe,ie[oe]);return de},ge=(de,ie)=>O(de,P(ie)),_e=(de,ie,oe)=>new Promise((K,k)=>{var V=re=>{try{ae(oe.next(re))}catch(x){k(x)}},$=re=>{try{ae(oe.throw(re))}catch(x){k(x)}},ae=re=>re.done?K(re.value):Promise.resolve(re.value).then(V,$);ae((oe=oe.apply(de,ie)).next())});const se=({shixunHomeworks:de,loading:ie,showModel:oe=!1,dispatch:K,getData:k})=>{var V,$;const{ai_review_settings:ae,ai_review_method:re,ai_review_text:x}=de==null?void 0:de.studentWorkDetail,[b]=p.default.useForm(),[W,fe]=(0,o.useState)("qwen-long"),ke=[{name:"\u683C\u5F0F\u89C4\u8303",content:"\u4F5C\u4E1A\u7B26\u5408\u63D0\u4EA4\u8981\u6C42\uFF08\u547D\u540D\u3001\u683C\u5F0F\u3001\u9644\u4EF6\u5B8C\u6574\uFF09\uFF0C\u6587\u6863\u7ED3\u6784\u6E05\u6670\uFF0C\u8BED\u8A00\u8868\u8FBE\u51C6\u786E",weight:10},{name:"\u903B\u8F91\u4E25\u8C28",content:"\u8BBA\u8FF0\u6E05\u6670\uFF0C\u5185\u5BB9\u8FDE\u8D2F\uFF0C\u8BBA\u8BC1\u5408\u7406\uFF0C\u6709\u5145\u5206\u7684\u6570\u636E\u6216\u7406\u8BBA\u652F\u6491",weight:20},{name:"\u5185\u5BB9\u5B8C\u6574",content:"\u8986\u76D6\u6240\u6709\u8981\u6C42\u7684\u5185\u5BB9\uFF0C\u5206\u6790\u6DF1\u5165\uFF0C\u5305\u542B\u5B9E\u9A8C\u73B0\u8C61\u3001\u6570\u636E\u548C\u7ED3\u8BBA",weight:60},{name:"\u521B\u65B0\u4E0E\u601D\u8003",content:"\u63D0\u51FA\u4E2A\u4EBA\u89C1\u89E3\u6216\u6539\u8FDB\u5EFA\u8BAE\uFF0C\u5BF9\u5B9E\u9A8C\u7ED3\u679C\u6216\u95EE\u9898\u6709\u53CD\u601D\u4E0E\u603B\u7ED3",weight:10}];(0,o.useEffect)(()=>{var ht;((ht=de.actionTabs)==null?void 0:ht.key)==="\u667A\u80FD\u8BC4\u9605\u914D\u7F6E"&&b.setFieldsValue({ai_review_settings:(ae==null?void 0:ae.length)>0?ae:ke,ai_review_text:x,update_ai_review_settings:!1})},[(V=de.actionTabs)==null?void 0:V.key]);const je=()=>{K({type:"shixunHomeworks/setActionTabs",payload:{key:""}})},yt=()=>_e(void 0,null,function*(){var ht;const Ot=b.getFieldValue("ai_review_settings");if(!(0,_.BR)(Ot,re==1))return;const Ve=b.getFieldsValue();(ht=de.actionTabs)==null||ht.onOk(ge(q({},Ve),{model:oe?W:"qwen-long-latest",ai_review_method:re})),je()});return E.createElement(Ae.default,{width:1150,centered:!0,title:"\u667A\u80FD\u8BC4\u9605",open:(($=de.actionTabs)==null?void 0:$.key)==="\u667A\u80FD\u8BC4\u9605\u914D\u7F6E",destroyOnClose:!0,onCancel:()=>je(),okText:"\u5F00\u59CB\u8BC4\u9605",onOk:()=>yt(),bodyStyle:{maxHeight:"calc(100vh - 200px)",overflowY:"auto"}},oe&&E.createElement(y.Z,{value:W,onChange:ht=>fe(ht)}),E.createElement("div",{className:`${L.config_title} ${oe&&"mt20"}`},"\u8BC4\u5206\u6807\u51C6"),E.createElement(p.default,{form:b,colon:!1},re!=2&&E.createElement("div",{className:L.form_item_warp},E.createElement(p.default.List,{name:"ai_review_settings"},(ht,{add:Ot,remove:Dt})=>ht.map((Ve,Jt)=>{var ot;return E.createElement(xe.Z,{key:Ve.key,style:{padding:"5px 14px 5px 30px"}},E.createElement(ce.Z,{className:L.lable_name1},"\u8BC4\u5206\u70B9"),E.createElement(ce.Z,null,E.createElement(p.default.Item,{className:"ml10",name:[Ve.name,"name"],rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u8BC4\u5206\u70B9"}]},E.createElement(Y.default,{onChange:Et=>{b.setFieldValue([Ve.name,"content"],Et.target.value)},placeholder:"\u8BF7\u8F93\u5165\u8BC4\u5206\u70B9",size:"large",style:{width:164},className:"mr20"}))),E.createElement(ce.Z,{className:L.lable_name1},"\u8BC4\u5206\u6807\u51C6"),E.createElement(ce.Z,null,E.createElement(p.default.Item,{className:"ml10",name:[Ve.name,"content"],rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u8BC4\u5206\u6807\u51C6"}]},E.createElement(Y.default,{onChange:Et=>{b.setFieldValue([Ve.name,"content"],Et.target.value)},placeholder:"\u8BF7\u8F93\u5165\u8BC4\u5206\u6807\u51C6",size:"large",style:{width:467},className:"mr20"}))),E.createElement(ce.Z,{className:L.lable_name1},"\u6743\u91CD"),E.createElement(ce.Z,null,E.createElement(p.default.Item,{className:"ml10",name:[Ve.name,"weight"],rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u6743\u91CD"}]},E.createElement(m.Z,{onChange:Et=>{Number.isInteger(Et)||b.setFieldValue([Ve.name,"weight"],parseFloat(Et).toFixed(2))},size:"large",addonAfter:"%",placeholder:"\u8BF7\u8F93\u5165\u6743\u91CD",min:.01,step:1,max:100,style:{width:"134px"}}))),E.createElement(xe.Z,{className:(ot=L)==null?void 0:ot.h_lh_40},E.createElement(ce.Z,null,E.createElement("i",{className:"iconfont icon-tianjiatimu ml20 current",style:{color:"#00B187"},onClick:()=>{if(ht.length>=10)return ve.ZP.info("\u6700\u591A\u53EA\u80FD\u6DFB\u52A010\u4E2A\u8BC4\u5206\u70B9");Ot()}})),Jt>0&&E.createElement(ce.Z,null,E.createElement("i",{className:"iconfont icon-shanjian1 ml10 current",style:{color:"#E30000"},onClick:()=>{Dt(Ve.name)}}))))}))),re==2&&E.createElement(p.default.Item,{name:"ai_review_text"},E.createElement(Y.default.TextArea,{placeholder:"\u8BF7\u8F93\u5165\u8BC4\u5206\u6807\u51C6~",style:{minHeight:240,padding:10,background:"#F6F7F9"},size:"large"})),E.createElement(p.default.Item,{name:"update_ai_review_settings",valuePropName:"checked"},E.createElement(U.default,{style:{color:"#000"}},"\u5C06\u5F53\u524D\u8BC4\u5206\u6807\u51C6\u5E94\u7528\u4E8E\u6574\u4EFD\u4F5C\u4E1A",E.createElement("span",{style:{color:"#666"}},"\uFF08\u9009\u4E2D\u540E\uFF0C\u5C06\u66FF\u6362\u667A\u80FD\u8BC4\u9605\u7684\u8BC4\u5206\u6807\u51C6\uFF1B\u672A\u9009\u4E2D\uFF0C\u4EC5\u5BF9\u672C\u6B21\u667A\u80FD\u8BC4\u9605\u751F\u6548\uFF09")))))};var we=(0,X.connect)(({shixunHomeworks:de,loading:ie,user:oe})=>({shixunHomeworks:de,loading:ie.effects,user:oe}))(se)},24929:function(Xe,Ge,w){"use strict";w.d(Ge,{Z:function(){return E}});var p=w(59301),Ae={select:"select___ZHIRV",box:"box___ITyyI",text:"text___CIexk",itemWrap:"itemWrap___MwxrN",item:"item___EwLEb",active:"active___KIGwC",config_title:"config_title___ihFgg"},xe=w(44104),ce=Object.defineProperty,Y=Object.getOwnPropertySymbols,m=Object.prototype.hasOwnProperty,ve=Object.prototype.propertyIsEnumerable,U=(S,O,P)=>O in S?ce(S,O,{enumerable:!0,configurable:!0,writable:!0,value:P}):S[O]=P,o=(S,O)=>{for(var P in O||(O={}))m.call(O,P)&&U(S,P,O[P]);if(Y)for(var P of Y(O))ve.call(O,P)&&U(S,P,O[P]);return S};const X=S=>React.createElement("svg",o({className:"logo1_svg__icon",viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg",width:200,height:200},S),React.createElement("path",{d:"M1019.407 620.8 891.834 397.781 946.49 293.12a29.099 29.099 0 0 0 6.4-36.395l-70.187-126.592a30.08 30.08 0 0 0-24.576-13.653H597.519L539.194 14.507a27.35 27.35 0 0 0-20.907-14.55H380.644a29.141 29.141 0 0 0-24.618 14.55v5.546L225.806 243.03H100.923a29.184 29.184 0 0 0-25.515 13.654L3.428 384.085a32.768 32.768 0 0 0 0 29.184L132.836 638.08 74.511 740.053a32.768 32.768 0 0 0 0 29.056l66.517 116.566a29.907 29.907 0 0 0 25.515 14.506H427.15l62.848 109.227A30.08 30.08 0 0 0 512.783 1024H660.41a29.141 29.141 0 0 0 24.576-14.55l128.469-224.853h114.773a31.915 31.915 0 0 0 24.662-15.445l66.474-117.419a28.16 28.16 0 0 0 0-30.976l.043.043zm-161.28 14.592L791.61 512.469 518.287 993.963l-74.752-122.88h-273.28l65.621-119.211h139.392L101.86 272.213h143.062L380.687 30.08l68.352 119.253-70.187 122.88H925.54l-69.205 121.942 137.6 241.194H858.17z",fill:"#605BEC"}),React.createElement("path",{d:"m499.983 699.307 174.379-274.731H324.708z",fill:"#605BEC"}));var L="data:image/svg+xml;base64,PHN2ZyBjbGFzcz0iaWNvbiIgdmlld0JveD0iMCAwIDEwMjQgMTAyNCIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIiB3aWR0aD0iMjAwIiBoZWlnaHQ9IjIwMCI+PHBhdGggZD0iTTEwMTkuNDA3IDYyMC44IDg5MS44MzQgMzk3Ljc4MSA5NDYuNDkgMjkzLjEyYTI5LjA5OSAyOS4wOTkgMCAwIDAgNi40LTM2LjM5NWwtNzAuMTg3LTEyNi41OTJhMzAuMDggMzAuMDggMCAwIDAtMjQuNTc2LTEzLjY1M0g1OTcuNTE5TDUzOS4xOTQgMTQuNTA3YTI3LjM1IDI3LjM1IDAgMCAwLTIwLjkwNy0xNC41NUgzODAuNjQ0YTI5LjE0MSAyOS4xNDEgMCAwIDAtMjQuNjE4IDE0LjU1djUuNTQ2TDIyNS44MDYgMjQzLjAzSDEwMC45MjNhMjkuMTg0IDI5LjE4NCAwIDAgMC0yNS41MTUgMTMuNjU0TDMuNDI4IDM4NC4wODVhMzIuNzY4IDMyLjc2OCAwIDAgMCAwIDI5LjE4NEwxMzIuODM2IDYzOC4wOCA3NC41MTEgNzQwLjA1M2EzMi43NjggMzIuNzY4IDAgMCAwIDAgMjkuMDU2bDY2LjUxNyAxMTYuNTY2YTI5LjkwNyAyOS45MDcgMCAwIDAgMjUuNTE1IDE0LjUwNkg0MjcuMTVsNjIuODQ4IDEwOS4yMjdBMzAuMDggMzAuMDggMCAwIDAgNTEyLjc4MyAxMDI0SDY2MC40MWEyOS4xNDEgMjkuMTQxIDAgMCAwIDI0LjU3Ni0xNC41NWwxMjguNDY5LTIyNC44NTNoMTE0Ljc3M2EzMS45MTUgMzEuOTE1IDAgMCAwIDI0LjY2Mi0xNS40NDVsNjYuNDc0LTExNy40MTlhMjguMTYgMjguMTYgMCAwIDAgMC0zMC45NzZsLjA0My4wNDN6bS0xNjEuMjggMTQuNTkyTDc5MS42MSA1MTIuNDY5IDUxOC4yODcgOTkzLjk2M2wtNzQuNzUyLTEyMi44OGgtMjczLjI4bDY1LjYyMS0xMTkuMjExaDEzOS4zOTJMMTAxLjg2IDI3Mi4yMTNoMTQzLjA2MkwzODAuNjg3IDMwLjA4bDY4LjM1MiAxMTkuMjUzLTcwLjE4NyAxMjIuODhIOTI1LjU0bC02OS4yMDUgMTIxLjk0MiAxMzcuNiAyNDEuMTk0SDg1OC4xN3oiIGZpbGw9IiM2MDVCRUMiLz48cGF0aCBkPSJtNDk5Ljk4MyA2OTkuMzA3IDE3NC4zNzktMjc0LjczMUgzMjQuNzA4eiIgZmlsbD0iIzYwNUJFQyIvPjwvc3ZnPg==",_=w(59301),E=({value:S,onChange:O})=>{const[P,H]=(0,p.useState)(!1),B=[{name:"\u5934\u6B4C&\u901A\u4E49\u5343\u95EE-Long(\u7A33\u5B9A\u7248)",key:"qwen-long",img:L},{name:"\u5934\u6B4C&\u901A\u4E49\u5343\u95EE-Long-Latest(\u6700\u65B0\u7248)",key:"qwen-long-latest",img:L}],R=B.find(J=>J.key===S);return _.createElement("div",{className:Ae.select},_.createElement(xe.Z,{size:10},_.createElement("div",{className:`${Ae.config_title}`},"\u8BC4\u5206\u6A21\u578B"),_.createElement("div",{className:Ae.box,onMouseLeave:()=>H(!1)},_.createElement("div",{className:Ae.text,onClick:()=>H(!0)},_.createElement("img",{src:R.img,width:20}),_.createElement("span",null,R.name),_.createElement("b",{className:"iconfont icon-zhankai6"})),P&&_.createElement("div",{className:Ae.itemWrap},_.createElement("aside",null,B.map(J=>_.createElement("div",{key:J.key,className:`${Ae.item} ${J.key===S?Ae.active:""}`,onClick:q=>{q.stopPropagation(),O(J.key),H(!1)}},_.createElement("img",{src:J.img,width:20}),_.createElement("span",null,J.name))))))))}},49142:function(Xe,Ge,w){"use strict";w.d(Ge,{AL:function(){return J},Iy:function(){return L},Qv:function(){return E},ez:function(){return R},jb:function(){return _}});var p=w(32834),Ae=w.n(p),xe=w(11690),ce=w.n(xe);let Y=1;function m(we,de){const ie=we.match(/^(\s+)(?:```)/);if(ie===null)return de;const oe=ie[1];return de.split(`
`).map(K=>{const k=K.match(/^\s+/);if(k===null)return K;const[V]=k;return V.length>=oe.length?K.slice(oe.length):K}).join(`
`)}let ve=[],U=["<ul>"];const o=new(Ae()).Renderer,X=/^ *(#{1,6}) *([^\n]+?) *(?:#+ *)?(?:\n+|$)/;function L(){ve.length=0,U=["<ul>"]}const _={overflow:"hidden",WebkitBoxOrient:"vertical",display:"-webkit-box",WebkitLineClamp:2};function y(we,de,ie,oe){if(de>=we.length||we[de].level<=ie)return de;var K=we[de];oe.push("<li><a href='#"+Y+K.anchor+"'>"+K.text+"</a>"),de++;var k=[];return de=y(we,de,K.level,k),k.length>0&&(oe.push("<ul>"),k.forEach(function(V){oe.push(V)}),oe.push("</ul>")),oe.push("</li>"),de=y(we,de,ie,oe),de}function E(){return y(ve,0,0,U),U.push("</ul>"),U.join("")}const S={heading(we){const de=X.exec(we);if(Y+=1,de)return{type:"heading",raw:de[0],depth:de[1].length,text:de[2]}},fences(we){const de=this.rules.block.fences.exec(we);if(de){const ie=de[0];let oe=m(ie,de[3]||"");const K=de[2]?de[2].trim():de[2];if(["latex","katex","math"].indexOf(K)>=0){const k=H(),V=oe;oe=k,B[k]={type:"block",expression:V}}return{type:"code",raw:ie,lang:K,text:oe}}}},O=/(?:\${2})([^\n`]+?)(?:\${2})/gi;let P=0;const H=()=>`__special_katext_id_${P++}__`;let B={};function R(){return B}function J(){P=0,B={}}function q(we){return we=we.replace(O,(de,ie)=>{const oe=H();return B[oe]={type:"inline",expression:ie},oe}),we}const ge=o.listitem;o.listitem=function(we){return ge(q(we))};const _e=o.paragraph;o.paragraph=function(we){return _e(q(we))};const se=o.tablecell;o.tablecell=function(we,de){return se(q(we),de)},o.code=function(we,de,ie){const oe=(de||"").match(/\S*/)[0];return oe?["latex","katex","math"].indexOf(oe)>=0?`<p class='editormd-tex'>${we}</p>`:`<pre class="prettyprint linenums"><code class="language-${de}">${ie?we:(0,xe.escape)(we,!0)}</code></pre>
`:'<pre class="prettyprint linenums"><code>'+(ie?we:(0,xe.escape)(we,!0))+"</code></pre>"},o.heading=function(we,de,ie){let oe=this.options.headerPrefix+ie.toLowerCase().replace(/[^\w\\u4e00-\\u9fa5]]+/g,"-");return ve.push({anchor:oe,level:de,text:we}),"<h"+de+' id="'+Y+oe+'">'+we+"</h"+de+">"},Ae().setOptions({silent:!0,gfm:!0,pedantic:!1}),Ae().use({tokenizer:S,renderer:o}),Ge.ZP=Ae()},71114:function(Xe,Ge,w){"use strict";w.d(Ge,{Z:function(){return de}});var p=w(59301),Ae=w(92310),xe=w.n(Ae),ce=w(48755),Y=w(83397),m=w(36237),ve=w(63356),U=w(16931),o=w(51636);const X=ie=>{const{componentCls:oe,calc:K}=ie;return{[oe]:Object.assign(Object.assign({},(0,ve.Wf)(ie)),{margin:0,padding:0,listStyle:"none",[`${oe}-item`]:{position:"relative",margin:0,paddingBottom:ie.itemPaddingBottom,fontSize:ie.fontSize,listStyle:"none","&-tail":{position:"absolute",insetBlockStart:ie.itemHeadSize,insetInlineStart:K(K(ie.itemHeadSize).sub(ie.tailWidth)).div(2).equal(),height:`calc(100% - ${(0,m.unit)(ie.itemHeadSize)})`,borderInlineStart:`${(0,m.unit)(ie.tailWidth)} ${ie.lineType} ${ie.tailColor}`},"&-pending":{[`${oe}-item-head`]:{fontSize:ie.fontSizeSM,backgroundColor:"transparent"},[`${oe}-item-tail`]:{display:"none"}},"&-head":{position:"absolute",width:ie.itemHeadSize,height:ie.itemHeadSize,backgroundColor:ie.dotBg,border:`${(0,m.unit)(ie.dotBorderWidth)} ${ie.lineType} transparent`,borderRadius:"50%","&-blue":{color:ie.colorPrimary,borderColor:ie.colorPrimary},"&-red":{color:ie.colorError,borderColor:ie.colorError},"&-green":{color:ie.colorSuccess,borderColor:ie.colorSuccess},"&-gray":{color:ie.colorTextDisabled,borderColor:ie.colorTextDisabled}},"&-head-custom":{position:"absolute",insetBlockStart:K(ie.itemHeadSize).div(2).equal(),insetInlineStart:K(ie.itemHeadSize).div(2).equal(),width:"auto",height:"auto",marginBlockStart:0,paddingBlock:ie.customHeadPaddingVertical,lineHeight:1,textAlign:"center",border:0,borderRadius:0,transform:"translate(-50%, -50%)"},"&-content":{position:"relative",insetBlockStart:K(K(ie.fontSize).mul(ie.lineHeight).sub(ie.fontSize)).mul(-1).add(ie.lineWidth).equal(),marginInlineStart:K(ie.margin).add(ie.itemHeadSize).equal(),marginInlineEnd:0,marginBlockStart:0,marginBlockEnd:0,wordBreak:"break-word"},"&-last":{[`> ${oe}-item-tail`]:{display:"none"},[`> ${oe}-item-content`]:{minHeight:K(ie.controlHeightLG).mul(1.2).equal()}}},[`&${oe}-alternate,
&${oe}-right,
&${oe}-label`]:{[`${oe}-item`]:{"&-tail, &-head, &-head-custom":{insetInlineStart:"50%"},"&-head":{marginInlineStart:K(ie.marginXXS).mul(-1).equal(),"&-custom":{marginInlineStart:K(ie.tailWidth).div(2).equal()}},"&-left":{[`${oe}-item-content`]:{insetInlineStart:`calc(50% - ${(0,m.unit)(ie.marginXXS)})`,width:`calc(50% - ${(0,m.unit)(ie.marginSM)})`,textAlign:"start"}},"&-right":{[`${oe}-item-content`]:{width:`calc(50% - ${(0,m.unit)(ie.marginSM)})`,margin:0,textAlign:"end"}}}},[`&${oe}-right`]:{[`${oe}-item-right`]:{[`${oe}-item-tail,
${oe}-item-head,
${oe}-item-head-custom`]:{insetInlineStart:`calc(100% - ${(0,m.unit)(K(K(ie.itemHeadSize).add(ie.tailWidth)).div(2).equal())})`},[`${oe}-item-content`]:{width:`calc(100% - ${(0,m.unit)(K(ie.itemHeadSize).add(ie.marginXS).equal())})`}}},[`&${oe}-pending
${oe}-item-last
${oe}-item-tail`]:{display:"block",height:`calc(100% - ${(0,m.unit)(ie.margin)})`,borderInlineStart:`${(0,m.unit)(ie.tailWidth)} dotted ${ie.tailColor}`},[`&${oe}-reverse
${oe}-item-last
${oe}-item-tail`]:{display:"none"},[`&${oe}-reverse ${oe}-item-pending`]:{[`${oe}-item-tail`]:{insetBlockStart:ie.margin,display:"block",height:`calc(100% - ${(0,m.unit)(ie.margin)})`,borderInlineStart:`${(0,m.unit)(ie.tailWidth)} dotted ${ie.tailColor}`},[`${oe}-item-content`]:{minHeight:K(ie.controlHeightLG).mul(1.2).equal()}},[`&${oe}-label`]:{[`${oe}-item-label`]:{position:"absolute",insetBlockStart:K(K(ie.fontSize).mul(ie.lineHeight).sub(ie.fontSize)).mul(-1).add(ie.tailWidth).equal(),width:`calc(50% - ${(0,m.unit)(ie.marginSM)})`,textAlign:"end"},[`${oe}-item-right`]:{[`${oe}-item-label`]:{insetInlineStart:`calc(50% + ${(0,m.unit)(ie.marginSM)})`,width:`calc(50% - ${(0,m.unit)(ie.marginSM)})`,textAlign:"start"}}},"&-rtl":{direction:"rtl",[`${oe}-item-head-custom`]:{transform:"translate(50%, -50%)"}}})}},L=ie=>({tailColor:ie.colorSplit,tailWidth:ie.lineWidthBold,dotBorderWidth:ie.wireframe?ie.lineWidthBold:ie.lineWidth*3,dotBg:ie.colorBgContainer,itemPaddingBottom:ie.padding*1.25});var _=(0,U.I$)("Timeline",ie=>{const oe=(0,o.mergeToken)(ie,{itemHeadSize:10,customHeadPaddingVertical:ie.paddingXXS,paddingInlineEnd:2});return[X(oe)]},L),y=function(ie,oe){var K={};for(var k in ie)Object.prototype.hasOwnProperty.call(ie,k)&&oe.indexOf(k)<0&&(K[k]=ie[k]);if(ie!=null&&typeof Object.getOwnPropertySymbols=="function")for(var V=0,k=Object.getOwnPropertySymbols(ie);V<k.length;V++)oe.indexOf(k[V])<0&&Object.prototype.propertyIsEnumerable.call(ie,k[V])&&(K[k[V]]=ie[k[V]]);return K},S=ie=>{var{prefixCls:oe,className:K,color:k="blue",dot:V,pending:$=!1,position:ae,label:re,children:x}=ie,b=y(ie,["prefixCls","className","color","dot","pending","position","label","children"]);const{getPrefixCls:W}=p.useContext(ce.E_),fe=W("timeline",oe),ke=xe()(`${fe}-item`,{[`${fe}-item-pending`]:$},K),je=/blue|red|green|gray/.test(k||"")?void 0:k,yt=xe()(`${fe}-item-head`,{[`${fe}-item-head-custom`]:!!V,[`${fe}-item-head-${k}`]:!je});return p.createElement("li",Object.assign({},b,{className:ke}),re&&p.createElement("div",{className:`${fe}-item-label`},re),p.createElement("div",{className:`${fe}-item-tail`}),p.createElement("div",{className:yt,style:{borderColor:je,color:je}},V),p.createElement("div",{className:`${fe}-item-content`},x))},O=w(94480),P=w(58617),H=function(ie,oe){var K={};for(var k in ie)Object.prototype.hasOwnProperty.call(ie,k)&&oe.indexOf(k)<0&&(K[k]=ie[k]);if(ie!=null&&typeof Object.getOwnPropertySymbols=="function")for(var V=0,k=Object.getOwnPropertySymbols(ie);V<k.length;V++)oe.indexOf(k[V])<0&&Object.prototype.propertyIsEnumerable.call(ie,k[V])&&(K[k[V]]=ie[k[V]]);return K},R=ie=>{var{prefixCls:oe,className:K,pending:k=!1,children:V,items:$,rootClassName:ae,reverse:re=!1,direction:x,hashId:b,pendingDot:W,mode:fe=""}=ie,ke=H(ie,["prefixCls","className","pending","children","items","rootClassName","reverse","direction","hashId","pendingDot","mode"]);const je=(Et,qe)=>fe==="alternate"?Et==="right"?`${oe}-item-right`:Et==="left"?`${oe}-item-left`:qe%2===0?`${oe}-item-left`:`${oe}-item-right`:fe==="left"?`${oe}-item-left`:fe==="right"?`${oe}-item-right`:Et==="right"?`${oe}-item-right`:"",yt=(0,O.Z)($||[]),ht=typeof k=="boolean"?null:k;k&&yt.push({pending:!!k,dot:W||p.createElement(P.Z,null),children:ht}),re&&yt.reverse();const Ot=yt.length,Dt=`${oe}-item-last`,Ve=yt.filter(Et=>!!Et).map((Et,qe)=>{var Kt;const Te=qe===Ot-2?Dt:"",F=qe===Ot-1?Dt:"",{className:v}=Et,T=H(Et,["className"]);return p.createElement(S,Object.assign({},T,{className:xe()([v,!re&&k?Te:F,je((Kt=Et==null?void 0:Et.position)!==null&&Kt!==void 0?Kt:"",qe)]),key:(Et==null?void 0:Et.key)||qe}))}),Jt=yt.some(Et=>!!(Et!=null&&Et.label)),ot=xe()(oe,{[`${oe}-pending`]:!!k,[`${oe}-reverse`]:!!re,[`${oe}-${fe}`]:!!fe&&!Jt,[`${oe}-label`]:Jt,[`${oe}-rtl`]:x==="rtl"},K,ae,b);return p.createElement("ul",Object.assign({},ke,{className:ot}),Ve)},J=w(11592);function q(ie,oe){return ie&&Array.isArray(ie)?ie:(0,J.Z)(oe).map(K=>{var k,V;return Object.assign({children:(V=(k=K==null?void 0:K.props)===null||k===void 0?void 0:k.children)!==null&&V!==void 0?V:""},K.props)})}var ge=q,_e=function(ie,oe){var K={};for(var k in ie)Object.prototype.hasOwnProperty.call(ie,k)&&oe.indexOf(k)<0&&(K[k]=ie[k]);if(ie!=null&&typeof Object.getOwnPropertySymbols=="function")for(var V=0,k=Object.getOwnPropertySymbols(ie);V<k.length;V++)oe.indexOf(k[V])<0&&Object.prototype.propertyIsEnumerable.call(ie,k[V])&&(K[k[V]]=ie[k[V]]);return K};const se=ie=>{const{getPrefixCls:oe,direction:K,timeline:k}=p.useContext(ce.E_),{prefixCls:V,children:$,items:ae,className:re,style:x}=ie,b=_e(ie,["prefixCls","children","items","className","style"]),W=oe("timeline",V),fe=(0,Y.Z)(W),[ke,je,yt]=_(W,fe),ht=ge(ae,$);return ke(p.createElement(R,Object.assign({},b,{className:xe()(k==null?void 0:k.className,re,yt,fe),style:Object.assign(Object.assign({},k==null?void 0:k.style),x),prefixCls:W,direction:K,items:ht,hashId:je})))};se.Item=S;var we=se,de=we},86251:function(Xe,Ge){"use strict";Ge.byteLength=ve,Ge.toByteArray=o,Ge.fromByteArray=_;for(var w=[],p=[],Ae=typeof Uint8Array!="undefined"?Uint8Array:Array,xe="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",ce=0,Y=xe.length;ce<Y;++ce)w[ce]=xe[ce],p[xe.charCodeAt(ce)]=ce;p[45]=62,p[95]=63;function m(y){var E=y.length;if(E%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var S=y.indexOf("=");S===-1&&(S=E);var O=S===E?0:4-S%4;return[S,O]}function ve(y){var E=m(y),S=E[0],O=E[1];return(S+O)*3/4-O}function U(y,E,S){return(E+S)*3/4-S}function o(y){var E,S=m(y),O=S[0],P=S[1],H=new Ae(U(y,O,P)),B=0,R=P>0?O-4:O,J;for(J=0;J<R;J+=4)E=p[y.charCodeAt(J)]<<18|p[y.charCodeAt(J+1)]<<12|p[y.charCodeAt(J+2)]<<6|p[y.charCodeAt(J+3)],H[B++]=E>>16&255,H[B++]=E>>8&255,H[B++]=E&255;return P===2&&(E=p[y.charCodeAt(J)]<<2|p[y.charCodeAt(J+1)]>>4,H[B++]=E&255),P===1&&(E=p[y.charCodeAt(J)]<<10|p[y.charCodeAt(J+1)]<<4|p[y.charCodeAt(J+2)]>>2,H[B++]=E>>8&255,H[B++]=E&255),H}function X(y){return w[y>>18&63]+w[y>>12&63]+w[y>>6&63]+w[y&63]}function L(y,E,S){for(var O,P=[],H=E;H<S;H+=3)O=(y[H]<<16&16711680)+(y[H+1]<<8&65280)+(y[H+2]&255),P.push(X(O));return P.join("")}function _(y){for(var E,S=y.length,O=S%3,P=[],H=16383,B=0,R=S-O;B<R;B+=H)P.push(L(y,B,B+H>R?R:B+H));return O===1?(E=y[S-1],P.push(w[E>>2]+w[E<<4&63]+"==")):O===2&&(E=(y[S-2]<<8)+y[S-1],P.push(w[E>>10]+w[E>>4&63]+w[E<<2&63]+"=")),P.join("")}},19208:function(Xe,Ge,w){"use strict";var p;var Ae=w(86251),xe=w(67467),ce=typeof Symbol=="function"&&typeof Symbol.for=="function"?Symbol.for("nodejs.util.inspect.custom"):null;Ge.lW=U,p=B,Ge.h2=50;var Y=2147483647;p=Y,U.TYPED_ARRAY_SUPPORT=m(),!U.TYPED_ARRAY_SUPPORT&&typeof console!="undefined"&&typeof console.error=="function"&&console.error("This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support.");function m(){try{var F=new Uint8Array(1),v={foo:function(){return 42}};return Object.setPrototypeOf(v,Uint8Array.prototype),Object.setPrototypeOf(F,v),F.foo()===42}catch(T){return!1}}Object.defineProperty(U.prototype,"parent",{enumerable:!0,get:function(){if(U.isBuffer(this))return this.buffer}}),Object.defineProperty(U.prototype,"offset",{enumerable:!0,get:function(){if(U.isBuffer(this))return this.byteOffset}});function ve(F){if(F>Y)throw new RangeError('The value "'+F+'" is invalid for option "size"');var v=new Uint8Array(F);return Object.setPrototypeOf(v,U.prototype),v}function U(F,v,T){if(typeof F=="number"){if(typeof v=="string")throw new TypeError('The "string" argument must be of type string. Received type number');return _(F)}return o(F,v,T)}U.poolSize=8192;function o(F,v,T){if(typeof F=="string")return y(F,v);if(ArrayBuffer.isView(F))return S(F);if(F==null)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof F);if(qe(F,ArrayBuffer)||F&&qe(F.buffer,ArrayBuffer)||typeof SharedArrayBuffer!="undefined"&&(qe(F,SharedArrayBuffer)||F&&qe(F.buffer,SharedArrayBuffer)))return O(F,v,T);if(typeof F=="number")throw new TypeError('The "value" argument must not be of type number. Received type number');var ee=F.valueOf&&F.valueOf();if(ee!=null&&ee!==F)return U.from(ee,v,T);var N=P(F);if(N)return N;if(typeof Symbol!="undefined"&&Symbol.toPrimitive!=null&&typeof F[Symbol.toPrimitive]=="function")return U.from(F[Symbol.toPrimitive]("string"),v,T);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof F)}U.from=function(F,v,T){return o(F,v,T)},Object.setPrototypeOf(U.prototype,Uint8Array.prototype),Object.setPrototypeOf(U,Uint8Array);function X(F){if(typeof F!="number")throw new TypeError('"size" argument must be of type number');if(F<0)throw new RangeError('The value "'+F+'" is invalid for option "size"')}function L(F,v,T){return X(F),F<=0?ve(F):v!==void 0?typeof T=="string"?ve(F).fill(v,T):ve(F).fill(v):ve(F)}U.alloc=function(F,v,T){return L(F,v,T)};function _(F){return X(F),ve(F<0?0:H(F)|0)}U.allocUnsafe=function(F){return _(F)},U.allocUnsafeSlow=function(F){return _(F)};function y(F,v){if((typeof v!="string"||v==="")&&(v="utf8"),!U.isEncoding(v))throw new TypeError("Unknown encoding: "+v);var T=R(F,v)|0,ee=ve(T),N=ee.write(F,v);return N!==T&&(ee=ee.slice(0,N)),ee}function E(F){for(var v=F.length<0?0:H(F.length)|0,T=ve(v),ee=0;ee<v;ee+=1)T[ee]=F[ee]&255;return T}function S(F){if(qe(F,Uint8Array)){var v=new Uint8Array(F);return O(v.buffer,v.byteOffset,v.byteLength)}return E(F)}function O(F,v,T){if(v<0||F.byteLength<v)throw new RangeError('"offset" is outside of buffer bounds');if(F.byteLength<v+(T||0))throw new RangeError('"length" is outside of buffer bounds');var ee;return v===void 0&&T===void 0?ee=new Uint8Array(F):T===void 0?ee=new Uint8Array(F,v):ee=new Uint8Array(F,v,T),Object.setPrototypeOf(ee,U.prototype),ee}function P(F){if(U.isBuffer(F)){var v=H(F.length)|0,T=ve(v);return T.length===0||F.copy(T,0,0,v),T}if(F.length!==void 0)return typeof F.length!="number"||Kt(F.length)?ve(0):E(F);if(F.type==="Buffer"&&Array.isArray(F.data))return E(F.data)}function H(F){if(F>=Y)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+Y.toString(16)+" bytes");return F|0}function B(F){return+F!=F&&(F=0),U.alloc(+F)}U.isBuffer=function(v){return v!=null&&v._isBuffer===!0&&v!==U.prototype},U.compare=function(v,T){if(qe(v,Uint8Array)&&(v=U.from(v,v.offset,v.byteLength)),qe(T,Uint8Array)&&(T=U.from(T,T.offset,T.byteLength)),!U.isBuffer(v)||!U.isBuffer(T))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(v===T)return 0;for(var ee=v.length,N=T.length,z=0,he=Math.min(ee,N);z<he;++z)if(v[z]!==T[z]){ee=v[z],N=T[z];break}return ee<N?-1:N<ee?1:0},U.isEncoding=function(v){switch(String(v).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}},U.concat=function(v,T){if(!Array.isArray(v))throw new TypeError('"list" argument must be an Array of Buffers');if(v.length===0)return U.alloc(0);var ee;if(T===void 0)for(T=0,ee=0;ee<v.length;++ee)T+=v[ee].length;var N=U.allocUnsafe(T),z=0;for(ee=0;ee<v.length;++ee){var he=v[ee];if(qe(he,Uint8Array))z+he.length>N.length?U.from(he).copy(N,z):Uint8Array.prototype.set.call(N,he,z);else if(U.isBuffer(he))he.copy(N,z);else throw new TypeError('"list" argument must be an Array of Buffers');z+=he.length}return N};function R(F,v){if(U.isBuffer(F))return F.length;if(ArrayBuffer.isView(F)||qe(F,ArrayBuffer))return F.byteLength;if(typeof F!="string")throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof F);var T=F.length,ee=arguments.length>2&&arguments[2]===!0;if(!ee&&T===0)return 0;for(var N=!1;;)switch(v){case"ascii":case"latin1":case"binary":return T;case"utf8":case"utf-8":return Dt(F).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return T*2;case"hex":return T>>>1;case"base64":return ot(F).length;default:if(N)return ee?-1:Dt(F).length;v=(""+v).toLowerCase(),N=!0}}U.byteLength=R;function J(F,v,T){var ee=!1;if((v===void 0||v<0)&&(v=0),v>this.length||((T===void 0||T>this.length)&&(T=this.length),T<=0)||(T>>>=0,v>>>=0,T<=v))return"";for(F||(F="utf8");;)switch(F){case"hex":return x(this,v,T);case"utf8":case"utf-8":return k(this,v,T);case"ascii":return ae(this,v,T);case"latin1":case"binary":return re(this,v,T);case"base64":return K(this,v,T);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return b(this,v,T);default:if(ee)throw new TypeError("Unknown encoding: "+F);F=(F+"").toLowerCase(),ee=!0}}U.prototype._isBuffer=!0;function q(F,v,T){var ee=F[v];F[v]=F[T],F[T]=ee}U.prototype.swap16=function(){var v=this.length;if(v%2!==0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(var T=0;T<v;T+=2)q(this,T,T+1);return this},U.prototype.swap32=function(){var v=this.length;if(v%4!==0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(var T=0;T<v;T+=4)q(this,T,T+3),q(this,T+1,T+2);return this},U.prototype.swap64=function(){var v=this.length;if(v%8!==0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(var T=0;T<v;T+=8)q(this,T,T+7),q(this,T+1,T+6),q(this,T+2,T+5),q(this,T+3,T+4);return this},U.prototype.toString=function(){var v=this.length;return v===0?"":arguments.length===0?k(this,0,v):J.apply(this,arguments)},U.prototype.toLocaleString=U.prototype.toString,U.prototype.equals=function(v){if(!U.isBuffer(v))throw new TypeError("Argument must be a Buffer");return this===v?!0:U.compare(this,v)===0},U.prototype.inspect=function(){var v="",T=Ge.h2;return v=this.toString("hex",0,T).replace(/(.{2})/g,"$1 ").trim(),this.length>T&&(v+=" ... "),"<Buffer "+v+">"},ce&&(U.prototype[ce]=U.prototype.inspect),U.prototype.compare=function(v,T,ee,N,z){if(qe(v,Uint8Array)&&(v=U.from(v,v.offset,v.byteLength)),!U.isBuffer(v))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof v);if(T===void 0&&(T=0),ee===void 0&&(ee=v?v.length:0),N===void 0&&(N=0),z===void 0&&(z=this.length),T<0||ee>v.length||N<0||z>this.length)throw new RangeError("out of range index");if(N>=z&&T>=ee)return 0;if(N>=z)return-1;if(T>=ee)return 1;if(T>>>=0,ee>>>=0,N>>>=0,z>>>=0,this===v)return 0;for(var he=z-N,Fe=ee-T,Ne=Math.min(he,Fe),rt=this.slice(N,z),lt=v.slice(T,ee),zt=0;zt<Ne;++zt)if(rt[zt]!==lt[zt]){he=rt[zt],Fe=lt[zt];break}return he<Fe?-1:Fe<he?1:0};function ge(F,v,T,ee,N){if(F.length===0)return-1;if(typeof T=="string"?(ee=T,T=0):T>2147483647?T=2147483647:T<-2147483648&&(T=-2147483648),T=+T,Kt(T)&&(T=N?0:F.length-1),T<0&&(T=F.length+T),T>=F.length){if(N)return-1;T=F.length-1}else if(T<0)if(N)T=0;else return-1;if(typeof v=="string"&&(v=U.from(v,ee)),U.isBuffer(v))return v.length===0?-1:_e(F,v,T,ee,N);if(typeof v=="number")return v=v&255,typeof Uint8Array.prototype.indexOf=="function"?N?Uint8Array.prototype.indexOf.call(F,v,T):Uint8Array.prototype.lastIndexOf.call(F,v,T):_e(F,[v],T,ee,N);throw new TypeError("val must be string, number or Buffer")}function _e(F,v,T,ee,N){var z=1,he=F.length,Fe=v.length;if(ee!==void 0&&(ee=String(ee).toLowerCase(),ee==="ucs2"||ee==="ucs-2"||ee==="utf16le"||ee==="utf-16le")){if(F.length<2||v.length<2)return-1;z=2,he/=2,Fe/=2,T/=2}function Ne(Ct,At){return z===1?Ct[At]:Ct.readUInt16BE(At*z)}var rt;if(N){var lt=-1;for(rt=T;rt<he;rt++)if(Ne(F,rt)===Ne(v,lt===-1?0:rt-lt)){if(lt===-1&&(lt=rt),rt-lt+1===Fe)return lt*z}else lt!==-1&&(rt-=rt-lt),lt=-1}else for(T+Fe>he&&(T=he-Fe),rt=T;rt>=0;rt--){for(var zt=!0,Tt=0;Tt<Fe;Tt++)if(Ne(F,rt+Tt)!==Ne(v,Tt)){zt=!1;break}if(zt)return rt}return-1}U.prototype.includes=function(v,T,ee){return this.indexOf(v,T,ee)!==-1},U.prototype.indexOf=function(v,T,ee){return ge(this,v,T,ee,!0)},U.prototype.lastIndexOf=function(v,T,ee){return ge(this,v,T,ee,!1)};function se(F,v,T,ee){T=Number(T)||0;var N=F.length-T;ee?(ee=Number(ee),ee>N&&(ee=N)):ee=N;var z=v.length;ee>z/2&&(ee=z/2);for(var he=0;he<ee;++he){var Fe=parseInt(v.substr(he*2,2),16);if(Kt(Fe))return he;F[T+he]=Fe}return he}function we(F,v,T,ee){return Et(Dt(v,F.length-T),F,T,ee)}function de(F,v,T,ee){return Et(Ve(v),F,T,ee)}function ie(F,v,T,ee){return Et(ot(v),F,T,ee)}function oe(F,v,T,ee){return Et(Jt(v,F.length-T),F,T,ee)}U.prototype.write=function(v,T,ee,N){if(T===void 0)N="utf8",ee=this.length,T=0;else if(ee===void 0&&typeof T=="string")N=T,ee=this.length,T=0;else if(isFinite(T))T=T>>>0,isFinite(ee)?(ee=ee>>>0,N===void 0&&(N="utf8")):(N=ee,ee=void 0);else throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");var z=this.length-T;if((ee===void 0||ee>z)&&(ee=z),v.length>0&&(ee<0||T<0)||T>this.length)throw new RangeError("Attempt to write outside buffer bounds");N||(N="utf8");for(var he=!1;;)switch(N){case"hex":return se(this,v,T,ee);case"utf8":case"utf-8":return we(this,v,T,ee);case"ascii":case"latin1":case"binary":return de(this,v,T,ee);case"base64":return ie(this,v,T,ee);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return oe(this,v,T,ee);default:if(he)throw new TypeError("Unknown encoding: "+N);N=(""+N).toLowerCase(),he=!0}},U.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};function K(F,v,T){return v===0&&T===F.length?Ae.fromByteArray(F):Ae.fromByteArray(F.slice(v,T))}function k(F,v,T){T=Math.min(F.length,T);for(var ee=[],N=v;N<T;){var z=F[N],he=null,Fe=z>239?4:z>223?3:z>191?2:1;if(N+Fe<=T){var Ne,rt,lt,zt;switch(Fe){case 1:z<128&&(he=z);break;case 2:Ne=F[N+1],(Ne&192)===128&&(zt=(z&31)<<6|Ne&63,zt>127&&(he=zt));break;case 3:Ne=F[N+1],rt=F[N+2],(Ne&192)===128&&(rt&192)===128&&(zt=(z&15)<<12|(Ne&63)<<6|rt&63,zt>2047&&(zt<55296||zt>57343)&&(he=zt));break;case 4:Ne=F[N+1],rt=F[N+2],lt=F[N+3],(Ne&192)===128&&(rt&192)===128&&(lt&192)===128&&(zt=(z&15)<<18|(Ne&63)<<12|(rt&63)<<6|lt&63,zt>65535&&zt<1114112&&(he=zt))}}he===null?(he=65533,Fe=1):he>65535&&(he-=65536,ee.push(he>>>10&1023|55296),he=56320|he&1023),ee.push(he),N+=Fe}return $(ee)}var V=4096;function $(F){var v=F.length;if(v<=V)return String.fromCharCode.apply(String,F);for(var T="",ee=0;ee<v;)T+=String.fromCharCode.apply(String,F.slice(ee,ee+=V));return T}function ae(F,v,T){var ee="";T=Math.min(F.length,T);for(var N=v;N<T;++N)ee+=String.fromCharCode(F[N]&127);return ee}function re(F,v,T){var ee="";T=Math.min(F.length,T);for(var N=v;N<T;++N)ee+=String.fromCharCode(F[N]);return ee}function x(F,v,T){var ee=F.length;(!v||v<0)&&(v=0),(!T||T<0||T>ee)&&(T=ee);for(var N="",z=v;z<T;++z)N+=Te[F[z]];return N}function b(F,v,T){for(var ee=F.slice(v,T),N="",z=0;z<ee.length-1;z+=2)N+=String.fromCharCode(ee[z]+ee[z+1]*256);return N}U.prototype.slice=function(v,T){var ee=this.length;v=~~v,T=T===void 0?ee:~~T,v<0?(v+=ee,v<0&&(v=0)):v>ee&&(v=ee),T<0?(T+=ee,T<0&&(T=0)):T>ee&&(T=ee),T<v&&(T=v);var N=this.subarray(v,T);return Object.setPrototypeOf(N,U.prototype),N};function W(F,v,T){if(F%1!==0||F<0)throw new RangeError("offset is not uint");if(F+v>T)throw new RangeError("Trying to access beyond buffer length")}U.prototype.readUintLE=U.prototype.readUIntLE=function(v,T,ee){v=v>>>0,T=T>>>0,ee||W(v,T,this.length);for(var N=this[v],z=1,he=0;++he<T&&(z*=256);)N+=this[v+he]*z;return N},U.prototype.readUintBE=U.prototype.readUIntBE=function(v,T,ee){v=v>>>0,T=T>>>0,ee||W(v,T,this.length);for(var N=this[v+--T],z=1;T>0&&(z*=256);)N+=this[v+--T]*z;return N},U.prototype.readUint8=U.prototype.readUInt8=function(v,T){return v=v>>>0,T||W(v,1,this.length),this[v]},U.prototype.readUint16LE=U.prototype.readUInt16LE=function(v,T){return v=v>>>0,T||W(v,2,this.length),this[v]|this[v+1]<<8},U.prototype.readUint16BE=U.prototype.readUInt16BE=function(v,T){return v=v>>>0,T||W(v,2,this.length),this[v]<<8|this[v+1]},U.prototype.readUint32LE=U.prototype.readUInt32LE=function(v,T){return v=v>>>0,T||W(v,4,this.length),(this[v]|this[v+1]<<8|this[v+2]<<16)+this[v+3]*16777216},U.prototype.readUint32BE=U.prototype.readUInt32BE=function(v,T){return v=v>>>0,T||W(v,4,this.length),this[v]*16777216+(this[v+1]<<16|this[v+2]<<8|this[v+3])},U.prototype.readIntLE=function(v,T,ee){v=v>>>0,T=T>>>0,ee||W(v,T,this.length);for(var N=this[v],z=1,he=0;++he<T&&(z*=256);)N+=this[v+he]*z;return z*=128,N>=z&&(N-=Math.pow(2,8*T)),N},U.prototype.readIntBE=function(v,T,ee){v=v>>>0,T=T>>>0,ee||W(v,T,this.length);for(var N=T,z=1,he=this[v+--N];N>0&&(z*=256);)he+=this[v+--N]*z;return z*=128,he>=z&&(he-=Math.pow(2,8*T)),he},U.prototype.readInt8=function(v,T){return v=v>>>0,T||W(v,1,this.length),this[v]&128?(255-this[v]+1)*-1:this[v]},U.prototype.readInt16LE=function(v,T){v=v>>>0,T||W(v,2,this.length);var ee=this[v]|this[v+1]<<8;return ee&32768?ee|4294901760:ee},U.prototype.readInt16BE=function(v,T){v=v>>>0,T||W(v,2,this.length);var ee=this[v+1]|this[v]<<8;return ee&32768?ee|4294901760:ee},U.prototype.readInt32LE=function(v,T){return v=v>>>0,T||W(v,4,this.length),this[v]|this[v+1]<<8|this[v+2]<<16|this[v+3]<<24},U.prototype.readInt32BE=function(v,T){return v=v>>>0,T||W(v,4,this.length),this[v]<<24|this[v+1]<<16|this[v+2]<<8|this[v+3]},U.prototype.readFloatLE=function(v,T){return v=v>>>0,T||W(v,4,this.length),xe.read(this,v,!0,23,4)},U.prototype.readFloatBE=function(v,T){return v=v>>>0,T||W(v,4,this.length),xe.read(this,v,!1,23,4)},U.prototype.readDoubleLE=function(v,T){return v=v>>>0,T||W(v,8,this.length),xe.read(this,v,!0,52,8)},U.prototype.readDoubleBE=function(v,T){return v=v>>>0,T||W(v,8,this.length),xe.read(this,v,!1,52,8)};function fe(F,v,T,ee,N,z){if(!U.isBuffer(F))throw new TypeError('"buffer" argument must be a Buffer instance');if(v>N||v<z)throw new RangeError('"value" argument is out of bounds');if(T+ee>F.length)throw new RangeError("Index out of range")}U.prototype.writeUintLE=U.prototype.writeUIntLE=function(v,T,ee,N){if(v=+v,T=T>>>0,ee=ee>>>0,!N){var z=Math.pow(2,8*ee)-1;fe(this,v,T,ee,z,0)}var he=1,Fe=0;for(this[T]=v&255;++Fe<ee&&(he*=256);)this[T+Fe]=v/he&255;return T+ee},U.prototype.writeUintBE=U.prototype.writeUIntBE=function(v,T,ee,N){if(v=+v,T=T>>>0,ee=ee>>>0,!N){var z=Math.pow(2,8*ee)-1;fe(this,v,T,ee,z,0)}var he=ee-1,Fe=1;for(this[T+he]=v&255;--he>=0&&(Fe*=256);)this[T+he]=v/Fe&255;return T+ee},U.prototype.writeUint8=U.prototype.writeUInt8=function(v,T,ee){return v=+v,T=T>>>0,ee||fe(this,v,T,1,255,0),this[T]=v&255,T+1},U.prototype.writeUint16LE=U.prototype.writeUInt16LE=function(v,T,ee){return v=+v,T=T>>>0,ee||fe(this,v,T,2,65535,0),this[T]=v&255,this[T+1]=v>>>8,T+2},U.prototype.writeUint16BE=U.prototype.writeUInt16BE=function(v,T,ee){return v=+v,T=T>>>0,ee||fe(this,v,T,2,65535,0),this[T]=v>>>8,this[T+1]=v&255,T+2},U.prototype.writeUint32LE=U.prototype.writeUInt32LE=function(v,T,ee){return v=+v,T=T>>>0,ee||fe(this,v,T,4,4294967295,0),this[T+3]=v>>>24,this[T+2]=v>>>16,this[T+1]=v>>>8,this[T]=v&255,T+4},U.prototype.writeUint32BE=U.prototype.writeUInt32BE=function(v,T,ee){return v=+v,T=T>>>0,ee||fe(this,v,T,4,4294967295,0),this[T]=v>>>24,this[T+1]=v>>>16,this[T+2]=v>>>8,this[T+3]=v&255,T+4},U.prototype.writeIntLE=function(v,T,ee,N){if(v=+v,T=T>>>0,!N){var z=Math.pow(2,8*ee-1);fe(this,v,T,ee,z-1,-z)}var he=0,Fe=1,Ne=0;for(this[T]=v&255;++he<ee&&(Fe*=256);)v<0&&Ne===0&&this[T+he-1]!==0&&(Ne=1),this[T+he]=(v/Fe>>0)-Ne&255;return T+ee},U.prototype.writeIntBE=function(v,T,ee,N){if(v=+v,T=T>>>0,!N){var z=Math.pow(2,8*ee-1);fe(this,v,T,ee,z-1,-z)}var he=ee-1,Fe=1,Ne=0;for(this[T+he]=v&255;--he>=0&&(Fe*=256);)v<0&&Ne===0&&this[T+he+1]!==0&&(Ne=1),this[T+he]=(v/Fe>>0)-Ne&255;return T+ee},U.prototype.writeInt8=function(v,T,ee){return v=+v,T=T>>>0,ee||fe(this,v,T,1,127,-128),v<0&&(v=255+v+1),this[T]=v&255,T+1},U.prototype.writeInt16LE=function(v,T,ee){return v=+v,T=T>>>0,ee||fe(this,v,T,2,32767,-32768),this[T]=v&255,this[T+1]=v>>>8,T+2},U.prototype.writeInt16BE=function(v,T,ee){return v=+v,T=T>>>0,ee||fe(this,v,T,2,32767,-32768),this[T]=v>>>8,this[T+1]=v&255,T+2},U.prototype.writeInt32LE=function(v,T,ee){return v=+v,T=T>>>0,ee||fe(this,v,T,4,2147483647,-2147483648),this[T]=v&255,this[T+1]=v>>>8,this[T+2]=v>>>16,this[T+3]=v>>>24,T+4},U.prototype.writeInt32BE=function(v,T,ee){return v=+v,T=T>>>0,ee||fe(this,v,T,4,2147483647,-2147483648),v<0&&(v=4294967295+v+1),this[T]=v>>>24,this[T+1]=v>>>16,this[T+2]=v>>>8,this[T+3]=v&255,T+4};function ke(F,v,T,ee,N,z){if(T+ee>F.length)throw new RangeError("Index out of range");if(T<0)throw new RangeError("Index out of range")}function je(F,v,T,ee,N){return v=+v,T=T>>>0,N||ke(F,v,T,4,34028234663852886e22,-34028234663852886e22),xe.write(F,v,T,ee,23,4),T+4}U.prototype.writeFloatLE=function(v,T,ee){return je(this,v,T,!0,ee)},U.prototype.writeFloatBE=function(v,T,ee){return je(this,v,T,!1,ee)};function yt(F,v,T,ee,N){return v=+v,T=T>>>0,N||ke(F,v,T,8,17976931348623157e292,-17976931348623157e292),xe.write(F,v,T,ee,52,8),T+8}U.prototype.writeDoubleLE=function(v,T,ee){return yt(this,v,T,!0,ee)},U.prototype.writeDoubleBE=function(v,T,ee){return yt(this,v,T,!1,ee)},U.prototype.copy=function(v,T,ee,N){if(!U.isBuffer(v))throw new TypeError("argument should be a Buffer");if(ee||(ee=0),!N&&N!==0&&(N=this.length),T>=v.length&&(T=v.length),T||(T=0),N>0&&N<ee&&(N=ee),N===ee||v.length===0||this.length===0)return 0;if(T<0)throw new RangeError("targetStart out of bounds");if(ee<0||ee>=this.length)throw new RangeError("Index out of range");if(N<0)throw new RangeError("sourceEnd out of bounds");N>this.length&&(N=this.length),v.length-T<N-ee&&(N=v.length-T+ee);var z=N-ee;return this===v&&typeof Uint8Array.prototype.copyWithin=="function"?this.copyWithin(T,ee,N):Uint8Array.prototype.set.call(v,this.subarray(ee,N),T),z},U.prototype.fill=function(v,T,ee,N){if(typeof v=="string"){if(typeof T=="string"?(N=T,T=0,ee=this.length):typeof ee=="string"&&(N=ee,ee=this.length),N!==void 0&&typeof N!="string")throw new TypeError("encoding must be a string");if(typeof N=="string"&&!U.isEncoding(N))throw new TypeError("Unknown encoding: "+N);if(v.length===1){var z=v.charCodeAt(0);(N==="utf8"&&z<128||N==="latin1")&&(v=z)}}else typeof v=="number"?v=v&255:typeof v=="boolean"&&(v=Number(v));if(T<0||this.length<T||this.length<ee)throw new RangeError("Out of range index");if(ee<=T)return this;T=T>>>0,ee=ee===void 0?this.length:ee>>>0,v||(v=0);var he;if(typeof v=="number")for(he=T;he<ee;++he)this[he]=v;else{var Fe=U.isBuffer(v)?v:U.from(v,N),Ne=Fe.length;if(Ne===0)throw new TypeError('The value "'+v+'" is invalid for argument "value"');for(he=0;he<ee-T;++he)this[he+T]=Fe[he%Ne]}return this};var ht=/[^+/0-9A-Za-z-_]/g;function Ot(F){if(F=F.split("=")[0],F=F.trim().replace(ht,""),F.length<2)return"";for(;F.length%4!==0;)F=F+"=";return F}function Dt(F,v){v=v||1/0;for(var T,ee=F.length,N=null,z=[],he=0;he<ee;++he){if(T=F.charCodeAt(he),T>55295&&T<57344){if(!N){if(T>56319){(v-=3)>-1&&z.push(239,191,189);continue}else if(he+1===ee){(v-=3)>-1&&z.push(239,191,189);continue}N=T;continue}if(T<56320){(v-=3)>-1&&z.push(239,191,189),N=T;continue}T=(N-55296<<10|T-56320)+65536}else N&&(v-=3)>-1&&z.push(239,191,189);if(N=null,T<128){if((v-=1)<0)break;z.push(T)}else if(T<2048){if((v-=2)<0)break;z.push(T>>6|192,T&63|128)}else if(T<65536){if((v-=3)<0)break;z.push(T>>12|224,T>>6&63|128,T&63|128)}else if(T<1114112){if((v-=4)<0)break;z.push(T>>18|240,T>>12&63|128,T>>6&63|128,T&63|128)}else throw new Error("Invalid code point")}return z}function Ve(F){for(var v=[],T=0;T<F.length;++T)v.push(F.charCodeAt(T)&255);return v}function Jt(F,v){for(var T,ee,N,z=[],he=0;he<F.length&&!((v-=2)<0);++he)T=F.charCodeAt(he),ee=T>>8,N=T%256,z.push(N),z.push(ee);return z}function ot(F){return Ae.toByteArray(Ot(F))}function Et(F,v,T,ee){for(var N=0;N<ee&&!(N+T>=v.length||N>=F.length);++N)v[N+T]=F[N];return N}function qe(F,v){return F instanceof v||F!=null&&F.constructor!=null&&F.constructor.name!=null&&F.constructor.name===v.name}function Kt(F){return F!==F}var Te=function(){for(var F="0123456789abcdef",v=new Array(256),T=0;T<16;++T)for(var ee=T*16,N=0;N<16;++N)v[ee+N]=F[T]+F[N];return v}()},64018:function(){var Xe,Ge,w,p=!1,Ae,xe;window.PR_SHOULD_USE_CONTINUATION=!0;var ce,Y;(function(){var m=window,ve=["break,continue,do,else,for,if,return,while"],U=[ve,"auto,case,char,const,default,double,enum,extern,float,goto,inline,int,long,register,restrict,short,signed,sizeof,static,struct,switch,typedef,union,unsigned,void,volatile"],o=[U,"catch,class,delete,false,import,new,operator,private,protected,public,this,throw,true,try,typeof"],X=[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"],L=[o,"abstract,assert,boolean,byte,extends,finally,final,implements,import,instanceof,interface,null,native,package,strictfp,super,synchronized,throws,transient"],_=[o,"abstract,add,alias,as,ascending,async,await,base,bool,by,byte,checked,decimal,delegate,descending,dynamic,event,finally,fixed,foreach,from,get,global,group,implicit,in,interface,internal,into,is,join,let,lock,null,object,out,override,orderby,params,partial,readonly,ref,remove,sbyte,sealed,select,set,stackalloc,string,select,uint,ulong,unchecked,unsafe,ushort,value,var,virtual,where,yield"],y="all,and,by,catch,class,else,extends,false,finally,for,if,in,is,isnt,loop,new,no,not,null,of,off,on,or,return,super,then,throw,true,try,unless,until,when,while,yes",E=[o,"abstract,async,await,constructor,debugger,enum,eval,export,function,get,implements,instanceof,interface,let,null,set,undefined,var,with,yield,Infinity,NaN"],S="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",O=[ve,"and,as,assert,class,def,del,elif,except,exec,finally,from,global,import,in,is,lambda,nonlocal,not,or,pass,print,raise,try,with,yield,False,True,None"],P=[ve,"alias,and,begin,case,class,def,defined,elsif,end,ensure,false,in,module,next,nil,not,or,redo,rescue,retry,self,super,then,true,undef,unless,until,when,yield,BEGIN,END"],H=[ve,"case,done,elif,esac,eval,fi,function,in,local,set,then,until"],B=[X,_,L,E,S,O,P,H],R=/^(DIR|FILE|array|vector|(de|priority_)?queue|(forward_)?list|stack|(const_)?(reverse_)?iterator|(unordered_)?(multi)?(set|map)|bitset|u?(int|float)\d*)\b/,J="str",q="kwd",ge="com",_e="typ",se="lit",we="pun",de="pln",ie="tag",oe="dec",K="src",k="atn",V="atv",$="nocode",ae="(?:^^\\.?|[+-]|[!=]=?=?|\\#|%=?|&&?=?|\\(|\\*=?|[+\\-]=|->|\\/=?|::?|<<?=?|>>?>?=?|,|;|\\?|@|\\[|~|{|\\^\\^?=?|\\|\\|?=?|break|case|continue|delete|do|else|finally|instanceof|return|throw|try|typeof)\\s*";function re(F){for(var v=0,T=!1,ee=!1,N=0,z=F.length;N<z;++N){var he=F[N];if(he.ignoreCase)ee=!0;else if(/[a-z]/i.test(he.source.replace(/\\u[0-9a-f]{4}|\\x[0-9a-f]{2}|\\[^ux]/gi,""))){T=!0,ee=!1;break}}var Fe={b:8,t:9,n:10,v:11,f:12,r:13};function Ne(Ct){var At=Ct.charCodeAt(0);if(At!==92)return At;var It=Ct.charAt(1);return At=Fe[It],At||("0"<=It&&It<="7"?parseInt(Ct.substring(1),8):It==="u"||It==="x"?parseInt(Ct.substring(2),16):Ct.charCodeAt(1))}function rt(Ct){if(Ct<32)return(Ct<16?"\\x0":"\\x")+Ct.toString(16);var At=String.fromCharCode(Ct);return At==="\\"||At==="-"||At==="]"||At==="^"?"\\"+At:At}function lt(Ct){var At=Ct.substring(1,Ct.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")),It=[],st=At[0]==="^",ct=["["];st&&ct.push("^");for(var Pe=st?1:0,wt=At.length;Pe<wt;++Pe){var Lt=At[Pe];if(/\\[bdsw]/i.test(Lt))ct.push(Lt);else{var St=Ne(Lt),en;Pe+2<wt&&At[Pe+1]==="-"?(en=Ne(At[Pe+2]),Pe+=2):en=St,It.push([St,en]),en<65||St>122||(en<65||St>90||It.push([Math.max(65,St)|32,Math.min(en,90)|32]),en<97||St>122||It.push([Math.max(97,St)&-33,Math.min(en,122)&-33]))}}It.sort(function($n,Vt){return $n[0]-Vt[0]||Vt[1]-$n[1]});for(var Yt=[],Ht=[],Pe=0;Pe<It.length;++Pe){var In=It[Pe];In[0]<=Ht[1]+1?Ht[1]=Math.max(Ht[1],In[1]):Yt.push(Ht=In)}for(var Pe=0;Pe<Yt.length;++Pe){var In=Yt[Pe];ct.push(rt(In[0])),In[1]>In[0]&&(In[1]+1>In[0]&&ct.push("-"),ct.push(rt(In[1])))}return ct.push("]"),ct.join("")}function zt(Ct){for(var At=Ct.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")),It=At.length,st=[],ct=0,Pe=0;ct<It;++ct){var wt=At[ct];if(wt==="(")++Pe;else if(wt.charAt(0)==="\\"){var Lt=+wt.substring(1);Lt&&(Lt<=Pe?st[Lt]=-1:At[ct]=rt(Lt))}}for(var ct=1;ct<st.length;++ct)st[ct]===-1&&(st[ct]=++v);for(var ct=0,Pe=0;ct<It;++ct){var wt=At[ct];if(wt==="(")++Pe,st[Pe]||(At[ct]="(?:");else if(wt.charAt(0)==="\\"){var Lt=+wt.substring(1);Lt&&Lt<=Pe&&(At[ct]="\\"+st[Lt])}}for(var ct=0;ct<It;++ct)At[ct]==="^"&&At[ct+1]!=="^"&&(At[ct]="");if(Ct.ignoreCase&&T)for(var ct=0;ct<It;++ct){var wt=At[ct],St=wt.charAt(0);wt.length>=2&&St==="["?At[ct]=lt(wt):St!=="\\"&&(At[ct]=wt.replace(/[a-zA-Z]/g,function(Ht){var In=Ht.charCodeAt(0);return"["+String.fromCharCode(In&-33,In|32)+"]"}))}return At.join("")}for(var Tt=[],N=0,z=F.length;N<z;++N){var he=F[N];if(he.global||he.multiline)throw new Error(""+he);Tt.push("(?:"+zt(he)+")")}return new RegExp(Tt.join("|"),ee?"gi":"g")}function x(F,v){var T=/(?:^|\s)nocode(?:\s|$)/,ee=[],N=0,z=[],he=0;function Fe(Ne){var rt=Ne.nodeType;if(rt==1){if(T.test(Ne.className))return;for(var lt=Ne.firstChild;lt;lt=lt.nextSibling)Fe(lt);var zt=Ne.nodeName.toLowerCase();(zt==="br"||zt==="li")&&(ee[he]=`
`,z[he<<1]=N++,z[he++<<1|1]=Ne)}else if(rt==3||rt==4){var Tt=Ne.nodeValue;Tt.length&&(v?Tt=Tt.replace(/\r\n?/g,`
`):Tt=Tt.replace(/[ \t\r\n]+/g," "),ee[he]=Tt,z[he<<1]=N,N+=Tt.length,z[he++<<1|1]=Ne)}}return Fe(F),{sourceCode:ee.join("").replace(/\n$/,""),spans:z}}function b(F,v,T,ee,N){if(T){var z={sourceNode:F,pre:1,langExtension:null,numberLines:null,sourceCode:T,spans:null,basePos:v,decorations:null};ee(z),N.push.apply(N,z.decorations)}}var W=/\S/;function fe(F){for(var v=void 0,T=F.firstChild;T;T=T.nextSibling){var ee=T.nodeType;v=ee===1?v?F:T:ee===3&&W.test(T.nodeValue)?F:v}return v===F?void 0:v}function ke(F,v){var T={},ee;(function(){for(var he=F.concat(v),Fe=[],Ne={},rt=0,lt=he.length;rt<lt;++rt){var zt=he[rt],Tt=zt[3];if(Tt)for(var Ct=Tt.length;--Ct>=0;)T[Tt.charAt(Ct)]=zt;var At=zt[1],It=""+At;Ne.hasOwnProperty(It)||(Fe.push(At),Ne[It]=null)}Fe.push(/[\0-\uffff]/),ee=re(Fe)})();var N=v.length,z=function(he){for(var Fe=he.sourceCode,Ne=he.basePos,rt=he.sourceNode,lt=[Ne,de],zt=0,Tt=Fe.match(ee)||[],Ct={},At=0,It=Tt.length;At<It;++At){var st=Tt[At],ct=Ct[st],Pe=void 0,wt;if(typeof ct=="string")wt=!1;else{var Lt=T[st.charAt(0)];if(Lt)Pe=st.match(Lt[1]),ct=Lt[0];else{for(var St=0;St<N;++St)if(Lt=v[St],Pe=st.match(Lt[1]),Pe){ct=Lt[0];break}Pe||(ct=de)}wt=ct.length>=5&&ct.substring(0,5)==="lang-",wt&&!(Pe&&typeof Pe[1]=="string")&&(wt=!1,ct=K),wt||(Ct[st]=ct)}var en=zt;if(zt+=st.length,!wt)lt.push(Ne+en,ct);else{var Yt=Pe[1],Ht=st.indexOf(Yt),In=Ht+Yt.length;Pe[2]&&(In=st.length-Pe[2].length,Ht=In-Yt.length);var $n=ct.substring(5);b(rt,Ne+en,st.substring(0,Ht),z,lt),b(rt,Ne+en+Ht,Yt,Jt($n,Yt),lt),b(rt,Ne+en+In,st.substring(In),z,lt)}}he.decorations=lt};return z}function je(F){var v=[],T=[];F.tripleQuotedStrings?v.push([J,/^(?:\'\'\'(?:[^\'\\]|\\[\s\S]|\'{1,2}(?=[^\']))*(?:\'\'\'|$)|\"\"\"(?:[^\"\\]|\\[\s\S]|\"{1,2}(?=[^\"]))*(?:\"\"\"|$)|\'(?:[^\\\']|\\[\s\S])*(?:\'|$)|\"(?:[^\\\"]|\\[\s\S])*(?:\"|$))/,null,`'"`]):F.multiLineStrings?v.push([J,/^(?:\'(?:[^\\\']|\\[\s\S])*(?:\'|$)|\"(?:[^\\\"]|\\[\s\S])*(?:\"|$)|\`(?:[^\\\`]|\\[\s\S])*(?:\`|$))/,null,"'\"`"]):v.push([J,/^(?:\'(?:[^\\\'\r\n]|\\.)*(?:\'|$)|\"(?:[^\\\"\r\n]|\\.)*(?:\"|$))/,null,`"'`]),F.verbatimStrings&&T.push([J,/^@\"(?:[^\"]|\"\")*(?:\"|$)/,null]);var ee=F.hashComments;ee&&(F.cStyleComments?(ee>1?v.push([ge,/^#(?:##(?:[^#]|#(?!##))*(?:###|$)|.*)/,null,"#"]):v.push([ge,/^#(?:(?:define|e(?:l|nd)if|else|error|ifn?def|include|line|pragma|undef|warning)\b|[^\r\n]*)/,null,"#"]),T.push([J,/^<(?:(?:(?:\.\.\/)*|\/?)(?:[\w-]+(?:\/[\w-]+)+)?[\w-]+\.h(?:h|pp|\+\+)?|[a-z]\w*)>/,null])):v.push([ge,/^#[^\r\n]*/,null,"#"])),F.cStyleComments&&(T.push([ge,/^\/\/[^\r\n]*/,null]),T.push([ge,/^\/\*[\s\S]*?(?:\*\/|$)/,null]));var N=F.regexLiterals;if(N){var z=N>1?"":`
\r`,he=z?".":"[\\S\\s]",Fe="/(?=[^/*"+z+"])(?:[^/\\x5B\\x5C"+z+"]|\\x5C"+he+"|\\x5B(?:[^\\x5C\\x5D"+z+"]|\\x5C"+he+")*(?:\\x5D|$))+/";T.push(["lang-regex",RegExp("^"+ae+"("+Fe+")")])}var Ne=F.types;Ne&&T.push([_e,Ne]);var rt=(""+F.keywords).replace(/^ | $/g,"");rt.length&&T.push([q,new RegExp("^(?:"+rt.replace(/[\s,]+/g,"|")+")\\b"),null]),v.push([de,/^\s+/,null,` \r
\xA0`]);var lt="^.[^\\s\\w.$@'\"`/\\\\]*";return F.regexLiterals&&(lt+="(?!s*/)"),T.push([se,/^@[a-z_$][a-z_$@0-9]*/i,null],[_e,/^(?:[@_]?[A-Z]+[a-z][A-Za-z_$@0-9]*|\w+_t\b)/,null],[de,/^[a-z_$][a-z_$@0-9]*/i,null],[se,new RegExp("^(?:0x[a-f0-9]+|(?:\\d(?:_\\d+)*\\d*(?:\\.\\d*)?|\\.\\d\\+)(?:e[+\\-]?\\d+)?)[a-z]*","i"),null,"0123456789"],[de,/^\\[\s\S]?/,null],[we,new RegExp(lt),null]),ke(v,T)}var yt=je({keywords:B,hashComments:!0,cStyleComments:!0,multiLineStrings:!0,regexLiterals:!0});function ht(F,v,T){for(var ee=/(?:^|\s)nocode(?:\s|$)/,N=/\r\n?|\n/,z=F.ownerDocument,he=z.createElement("li");F.firstChild;)he.appendChild(F.firstChild);var Fe=[he];function Ne(At){var It=At.nodeType;if(It==1&&!ee.test(At.className))if(At.nodeName==="br")rt(At),At.parentNode&&At.parentNode.removeChild(At);else for(var st=At.firstChild;st;st=st.nextSibling)Ne(st);else if((It==3||It==4)&&T){var ct=At.nodeValue,Pe=ct.match(N);if(Pe){var wt=ct.substring(0,Pe.index);At.nodeValue=wt;var Lt=ct.substring(Pe.index+Pe[0].length);if(Lt){var St=At.parentNode;St.insertBefore(z.createTextNode(Lt),At.nextSibling)}rt(At),wt||At.parentNode.removeChild(At)}}}function rt(At){for(;!At.nextSibling;)if(At=At.parentNode,!At)return;function It(Pe,wt){var Lt=wt?Pe.cloneNode(!1):Pe,St=Pe.parentNode;if(St){var en=It(St,1),Yt=Pe.nextSibling;en.appendChild(Lt);for(var Ht=Yt;Ht;Ht=Yt)Yt=Ht.nextSibling,en.appendChild(Ht)}return Lt}for(var st=It(At.nextSibling,0),ct;(ct=st.parentNode)&&ct.nodeType===1;)st=ct;Fe.push(st)}for(var lt=0;lt<Fe.length;++lt)Ne(Fe[lt]);v===(v|0)&&Fe[0].setAttribute("value",v);var zt=z.createElement("ol");zt.className="linenums";for(var Tt=Math.max(0,v-1|0)||0,lt=0,Ct=Fe.length;lt<Ct;++lt)he=Fe[lt],he.className="L"+(lt+Tt)%10,he.firstChild||he.appendChild(z.createTextNode("\xA0")),zt.appendChild(he);F.appendChild(zt)}function Ot(F){var v=/\bMSIE\s(\d+)/.exec(navigator.userAgent);v=v&&+v[1]<=8;var T=/\n/g,ee=F.sourceCode,N=ee.length,z=0,he=F.spans,Fe=he.length,Ne=0,rt=F.decorations,lt=rt.length,zt=0;rt[lt]=N;var Tt,Ct;for(Ct=Tt=0;Ct<lt;)rt[Ct]!==rt[Ct+2]?(rt[Tt++]=rt[Ct++],rt[Tt++]=rt[Ct++]):Ct+=2;for(lt=Tt,Ct=Tt=0;Ct<lt;){for(var At=rt[Ct],It=rt[Ct+1],st=Ct+2;st+2<=lt&&rt[st+1]===It;)st+=2;rt[Tt++]=At,rt[Tt++]=It,Ct=st}lt=rt.length=Tt;var ct=F.sourceNode,Pe="";ct&&(Pe=ct.style.display,ct.style.display="none");try{for(var wt=null;Ne<Fe;){var Lt=he[Ne],St=he[Ne+2]||N,en=rt[zt+2]||N,st=Math.min(St,en),Yt=he[Ne+1],Ht;if(Yt.nodeType!==1&&(Ht=ee.substring(z,st))){v&&(Ht=Ht.replace(T,"\r")),Yt.nodeValue=Ht;var In=Yt.ownerDocument,$n=In.createElement("span");$n.className=rt[zt+1];var Vt=Yt.parentNode;Vt.replaceChild($n,Yt),$n.appendChild(Yt),z<St&&(he[Ne+1]=Yt=In.createTextNode(ee.substring(st,St)),Vt.insertBefore(Yt,$n.nextSibling))}z=st,z>=St&&(Ne+=2),z>=en&&(zt+=2)}}finally{ct&&(ct.style.display=Pe)}}var Dt={};function Ve(F,v){for(var T=v.length;--T>=0;){var ee=v[T];Dt.hasOwnProperty(ee)?m.console&&console.warn("cannot override language handler %s",ee):Dt[ee]=F}}function Jt(F,v){return F&&Dt.hasOwnProperty(F)||(F=/^\s*</.test(v)?"default-markup":"default-code"),Dt[F]}Ve(yt,["default-code"]),Ve(ke([],[[de,/^[^<?]+/],[oe,/^<!\w[^>]*(?:>|$)/],[ge,/^<\!--[\s\S]*?(?:-\->|$)/],["lang-",/^<\?([\s\S]+?)(?:\?>|$)/],["lang-",/^<%([\s\S]+?)(?:%>|$)/],[we,/^(?:<[%?]|[%?]>)/],["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"]),Ve(ke([[de,/^[\s]+/,null,` \r
`],[V,/^(?:\"[^\"]*\"?|\'[^\']*\'?)/,null,`"'`]],[[ie,/^^<\/?[a-z](?:[\w.:-]*\w)?|\/?>$/i],[k,/^(?!style[\s=]|on)[a-z](?:[\w:-]*\w)?/i],["lang-uq.val",/^=\s*([^>\'\"\s]*(?:[^>\'\"\s\/]|\/(?=\s)))/],[we,/^[=<>\/]+/],["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"]),Ve(ke([],[[V,/^[\s\S]+/]]),["uq.val"]),Ve(je({keywords:X,hashComments:!0,cStyleComments:!0,types:R}),["c","cc","cpp","cxx","cyc","m"]),Ve(je({keywords:"null,true,false"}),["json"]),Ve(je({keywords:_,hashComments:!0,cStyleComments:!0,verbatimStrings:!0,types:R}),["cs"]),Ve(je({keywords:L,cStyleComments:!0}),["java"]),Ve(je({keywords:H,hashComments:!0,multiLineStrings:!0}),["bash","bsh","csh","sh"]),Ve(je({keywords:O,hashComments:!0,multiLineStrings:!0,tripleQuotedStrings:!0}),["cv","py","python"]),Ve(je({keywords:S,hashComments:!0,multiLineStrings:!0,regexLiterals:2}),["perl","pl","pm"]),Ve(je({keywords:P,hashComments:!0,multiLineStrings:!0,regexLiterals:!0}),["rb","ruby"]),Ve(je({keywords:E,cStyleComments:!0,regexLiterals:!0}),["javascript","js","ts","typescript"]),Ve(je({keywords:y,hashComments:3,cStyleComments:!0,multilineStrings:!0,tripleQuotedStrings:!0,regexLiterals:!0}),["coffee"]),Ve(ke([],[[J,/^[\s\S]+/]]),["regex"]);function ot(F){var v=F.langExtension;try{var T=x(F.sourceNode,F.pre),ee=T.sourceCode;F.sourceCode=ee,F.spans=T.spans,F.basePos=0,Jt(v,ee)(F),Ot(F)}catch(N){m.console&&console.log(N&&N.stack||N)}}function Et(F,v,T){var ee=T||!1,N=v||null,z=document.createElement("div");z.innerHTML="<pre>"+F+"</pre>",z=z.firstChild,ee&&ht(z,ee,!0);var he={langExtension:N,numberLines:ee,sourceNode:z,pre:1,sourceCode:null,basePos:null,spans:null,decorations:null};return ot(he),z.innerHTML}function qe(F,v){var T=v||document.body,ee=T.ownerDocument||document;function N(Lt){return T.getElementsByTagName(Lt)}for(var z=[N("pre"),N("code"),N("xmp")],he=[],Fe=0;Fe<z.length;++Fe)for(var Ne=0,rt=z[Fe].length;Ne<rt;++Ne)he.push(z[Fe][Ne]);z=null;var lt=Date;lt.now||(lt={now:function(){return+new Date}});var zt=0,Tt=/\blang(?:uage)?-([\w.]+)(?!\S)/,Ct=/\bprettyprint\b/,At=/\bprettyprinted\b/,It=/pre|xmp/i,st=/^code$/i,ct=/^(?:pre|code|xmp)$/i,Pe={};function wt(){for(var Lt=m.PR_SHOULD_USE_CONTINUATION?lt.now()+250:1/0;zt<he.length&&lt.now()<Lt;zt++){for(var St=he[zt],en=Pe,Yt=St;Yt=Yt.previousSibling;){var Ht=Yt.nodeType,In=(Ht===7||Ht===8)&&Yt.nodeValue;if(In?!/^\??prettify\b/.test(In):Ht!==3||/\S/.test(Yt.nodeValue))break;if(In){en={},In.replace(/\b(\w+)=([\w:.%+-]+)/g,function(Ye,it,pt){en[it]=pt});break}}var $n=St.className;if((en!==Pe||Ct.test($n))&&!At.test($n)){for(var Vt=!1,vn=St.parentNode;vn;vn=vn.parentNode){var He=vn.tagName;if(ct.test(He)&&vn.className&&Ct.test(vn.className)){Vt=!0;break}}if(!Vt){St.className+=" prettyprinted";var Le=en.lang;if(!Le){Le=$n.match(Tt);var De;!Le&&(De=fe(St))&&st.test(De.tagName)&&(Le=De.className.match(Tt)),Le&&(Le=Le[1])}var te;if(It.test(St.tagName))te=1;else{var ue=St.currentStyle,Se=ee.defaultView,Ie=ue?ue.whiteSpace:Se&&Se.getComputedStyle?Se.getComputedStyle(St,null).getPropertyValue("white-space"):0;te=Ie&&Ie.substring(0,3)==="pre"}var Me=en.linenums;(Me=Me==="true"||+Me)||(Me=$n.match(/\blinenums\b(?::(\d+))?/),Me=Me?Me[1]&&Me[1].length?+Me[1]:!0:!1),Me&&ht(St,Me,te);var Ke={langExtension:Le,sourceNode:St,numberLines:Me,pre:te,sourceCode:null,basePos:null,spans:null,decorations:null};ot(Ke)}}}zt<he.length?m.setTimeout(wt,250):typeof F=="function"&&F()}wt()}var Kt=m.PR={createSimpleLexer:ke,registerLangHandler:Ve,sourceDecorator:je,PR_ATTRIB_NAME:k,PR_ATTRIB_VALUE:V,PR_COMMENT:ge,PR_DECLARATION:oe,PR_KEYWORD:q,PR_LITERAL:se,PR_NOCODE:$,PR_PLAIN:de,PR_PUNCTUATION:we,PR_SOURCE:K,PR_STRING:J,PR_TAG:ie,PR_TYPE:_e,prettyPrintOne:p?m.prettyPrintOne=Et:ce=Et,prettyPrint:Y=p?m.prettyPrint=qe:Y=qe},Te=m.define;typeof Te=="function"&&Te.amd&&Te("google-code-prettify",[],function(){return Kt})})()},25769:function(Xe,Ge,w){"use strict";var p=w(98040),Ae={"text/plain":"Text","text/html":"Url",default:"Text"},xe="Copy to clipboard: #{key}, Enter";function ce(m){var ve=(/mac os x/i.test(navigator.userAgent)?"\u2318":"Ctrl")+"+C";return m.replace(/#{\s*key\s*}/g,ve)}function Y(m,ve){var U,o,X,L,_,y,E=!1;ve||(ve={}),U=ve.debug||!1;try{X=p(),L=document.createRange(),_=document.getSelection(),y=document.createElement("span"),y.textContent=m,y.ariaHidden="true",y.style.all="unset",y.style.position="fixed",y.style.top=0,y.style.clip="rect(0, 0, 0, 0)",y.style.whiteSpace="pre",y.style.webkitUserSelect="text",y.style.MozUserSelect="text",y.style.msUserSelect="text",y.style.userSelect="text",y.addEventListener("copy",function(O){if(O.stopPropagation(),ve.format)if(O.preventDefault(),typeof O.clipboardData=="undefined"){U&&console.warn("unable to use e.clipboardData"),U&&console.warn("trying IE specific stuff"),window.clipboardData.clearData();var P=Ae[ve.format]||Ae.default;window.clipboardData.setData(P,m)}else O.clipboardData.clearData(),O.clipboardData.setData(ve.format,m);ve.onCopy&&(O.preventDefault(),ve.onCopy(O.clipboardData))}),document.body.appendChild(y),L.selectNodeContents(y),_.addRange(L);var S=document.execCommand("copy");if(!S)throw new Error("copy command was unsuccessful");E=!0}catch(O){U&&console.error("unable to copy using execCommand: ",O),U&&console.warn("trying IE specific stuff");try{window.clipboardData.setData(ve.format||"text",m),ve.onCopy&&ve.onCopy(window.clipboardData),E=!0}catch(P){U&&console.error("unable to copy using clipboardData: ",P),U&&console.error("falling back to prompt"),o=ce("message"in ve?ve.message:xe),window.prompt(o,m)}}finally{_&&(typeof _.removeRange=="function"?_.removeRange(L):_.removeAllRanges()),y&&document.body.removeChild(y),X()}return E}Xe.exports=Y},6341:function(Xe,Ge,w){"use strict";w.d(Ge,{Jx:function(){return Ll}});function p(u,D="utf8"){return new TextDecoder(D).decode(u)}const Ae=new TextEncoder;function xe(u){return Ae.encode(u)}const ce=1024*8,Y=(()=>{const u=new Uint8Array(4),D=new Uint32Array(u.buffer);return!((D[0]=1)&u[0])})(),m={int8:globalThis.Int8Array,uint8:globalThis.Uint8Array,int16:globalThis.Int16Array,uint16:globalThis.Uint16Array,int32:globalThis.Int32Array,uint32:globalThis.Uint32Array,uint64:globalThis.BigUint64Array,int64:globalThis.BigInt64Array,float32:globalThis.Float32Array,float64:globalThis.Float64Array};class ve{constructor(D=ce,d={}){Vi(this,"buffer");Vi(this,"byteLength");Vi(this,"byteOffset");Vi(this,"length");Vi(this,"offset");Vi(this,"lastWrittenByte");Vi(this,"littleEndian");Vi(this,"_data");Vi(this,"_mark");Vi(this,"_marks");let M=!1;typeof D=="number"?D=new ArrayBuffer(D):(M=!0,this.lastWrittenByte=D.byteLength);const ne=d.offset?d.offset>>>0:0,le=D.byteLength-ne;let Ze=ne;(ArrayBuffer.isView(D)||D instanceof ve)&&(D.byteLength!==D.buffer.byteLength&&(Ze=D.byteOffset+ne),D=D.buffer),M?this.lastWrittenByte=le:this.lastWrittenByte=0,this.buffer=D,this.length=le,this.byteLength=le,this.byteOffset=Ze,this.offset=0,this.littleEndian=!0,this._data=new DataView(this.buffer,Ze,le),this._mark=0,this._marks=[]}available(D=1){return this.offset+D<=this.length}isLittleEndian(){return this.littleEndian}setLittleEndian(){return this.littleEndian=!0,this}isBigEndian(){return!this.littleEndian}setBigEndian(){return this.littleEndian=!1,this}skip(D=1){return this.offset+=D,this}back(D=1){return this.offset-=D,this}seek(D){return this.offset=D,this}mark(){return this._mark=this.offset,this}reset(){return this.offset=this._mark,this}pushMark(){return this._marks.push(this.offset),this}popMark(){const D=this._marks.pop();if(D===void 0)throw new Error("Mark stack empty");return this.seek(D),this}rewind(){return this.offset=0,this}ensureAvailable(D=1){if(!this.available(D)){const M=(this.offset+D)*2,ne=new Uint8Array(M);ne.set(new Uint8Array(this.buffer)),this.buffer=ne.buffer,this.length=M,this.byteLength=M,this._data=new DataView(this.buffer)}return this}readBoolean(){return this.readUint8()!==0}readInt8(){return this._data.getInt8(this.offset++)}readUint8(){return this._data.getUint8(this.offset++)}readByte(){return this.readUint8()}readBytes(D=1){return this.readArray(D,"uint8")}readArray(D,d){const M=m[d].BYTES_PER_ELEMENT*D,ne=this.byteOffset+this.offset,le=this.buffer.slice(ne,ne+M);if(this.littleEndian===Y&&d!=="uint8"&&d!=="int8"){const Oe=new Uint8Array(this.buffer.slice(ne,ne+M));Oe.reverse();const nn=new m[d](Oe.buffer);return this.offset+=M,nn.reverse(),nn}const Ze=new m[d](le);return this.offset+=M,Ze}readInt16(){const D=this._data.getInt16(this.offset,this.littleEndian);return this.offset+=2,D}readUint16(){const D=this._data.getUint16(this.offset,this.littleEndian);return this.offset+=2,D}readInt32(){const D=this._data.getInt32(this.offset,this.littleEndian);return this.offset+=4,D}readUint32(){const D=this._data.getUint32(this.offset,this.littleEndian);return this.offset+=4,D}readFloat32(){const D=this._data.getFloat32(this.offset,this.littleEndian);return this.offset+=4,D}readFloat64(){const D=this._data.getFloat64(this.offset,this.littleEndian);return this.offset+=8,D}readBigInt64(){const D=this._data.getBigInt64(this.offset,this.littleEndian);return this.offset+=8,D}readBigUint64(){const D=this._data.getBigUint64(this.offset,this.littleEndian);return this.offset+=8,D}readChar(){return String.fromCharCode(this.readInt8())}readChars(D=1){let d="";for(let M=0;M<D;M++)d+=this.readChar();return d}readUtf8(D=1){return p(this.readBytes(D))}decodeText(D=1,d="utf8"){return p(this.readBytes(D),d)}writeBoolean(D){return this.writeUint8(D?255:0),this}writeInt8(D){return this.ensureAvailable(1),this._data.setInt8(this.offset++,D),this._updateLastWrittenByte(),this}writeUint8(D){return this.ensureAvailable(1),this._data.setUint8(this.offset++,D),this._updateLastWrittenByte(),this}writeByte(D){return this.writeUint8(D)}writeBytes(D){this.ensureAvailable(D.length);for(let d=0;d<D.length;d++)this._data.setUint8(this.offset++,D[d]);return this._updateLastWrittenByte(),this}writeInt16(D){return this.ensureAvailable(2),this._data.setInt16(this.offset,D,this.littleEndian),this.offset+=2,this._updateLastWrittenByte(),this}writeUint16(D){return this.ensureAvailable(2),this._data.setUint16(this.offset,D,this.littleEndian),this.offset+=2,this._updateLastWrittenByte(),this}writeInt32(D){return this.ensureAvailable(4),this._data.setInt32(this.offset,D,this.littleEndian),this.offset+=4,this._updateLastWrittenByte(),this}writeUint32(D){return this.ensureAvailable(4),this._data.setUint32(this.offset,D,this.littleEndian),this.offset+=4,this._updateLastWrittenByte(),this}writeFloat32(D){return this.ensureAvailable(4),this._data.setFloat32(this.offset,D,this.littleEndian),this.offset+=4,this._updateLastWrittenByte(),this}writeFloat64(D){return this.ensureAvailable(8),this._data.setFloat64(this.offset,D,this.littleEndian),this.offset+=8,this._updateLastWrittenByte(),this}writeBigInt64(D){return this.ensureAvailable(8),this._data.setBigInt64(this.offset,D,this.littleEndian),this.offset+=8,this._updateLastWrittenByte(),this}writeBigUint64(D){return this.ensureAvailable(8),this._data.setBigUint64(this.offset,D,this.littleEndian),this.offset+=8,this._updateLastWrittenByte(),this}writeChar(D){return this.writeUint8(D.charCodeAt(0))}writeChars(D){for(let d=0;d<D.length;d++)this.writeUint8(D.charCodeAt(d));return this}writeUtf8(D){return this.writeBytes(xe(D))}toArray(){return new Uint8Array(this.buffer,this.byteOffset,this.lastWrittenByte)}getWrittenByteLength(){return this.lastWrittenByte-this.byteOffset}_updateLastWrittenByte(){this.offset>this.lastWrittenByte&&(this.lastWrittenByte=this.offset)}}const U=4,o=0,X=1,L=2;function _(u){let D=u.length;for(;--D>=0;)u[D]=0}const y=0,E=1,S=2,O=3,P=258,H=29,B=256,R=B+1+H,J=30,q=19,ge=2*R+1,_e=15,se=16,we=7,de=256,ie=16,oe=17,K=18,k=new Uint8Array([0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0]),V=new Uint8Array([0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13]),$=new Uint8Array([0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,3,7]),ae=new Uint8Array([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]),re=512,x=new Array((R+2)*2);_(x);const b=new Array(J*2);_(b);const W=new Array(re);_(W);const fe=new Array(P-O+1);_(fe);const ke=new Array(H);_(ke);const je=new Array(J);_(je);function yt(u,D,d,M,ne){this.static_tree=u,this.extra_bits=D,this.extra_base=d,this.elems=M,this.max_length=ne,this.has_stree=u&&u.length}let ht,Ot,Dt;function Ve(u,D){this.dyn_tree=u,this.max_code=0,this.stat_desc=D}const Jt=u=>u<256?W[u]:W[256+(u>>>7)],ot=(u,D)=>{u.pending_buf[u.pending++]=D&255,u.pending_buf[u.pending++]=D>>>8&255},Et=(u,D,d)=>{u.bi_valid>se-d?(u.bi_buf|=D<<u.bi_valid&65535,ot(u,u.bi_buf),u.bi_buf=D>>se-u.bi_valid,u.bi_valid+=d-se):(u.bi_buf|=D<<u.bi_valid&65535,u.bi_valid+=d)},qe=(u,D,d)=>{Et(u,d[D*2],d[D*2+1])},Kt=(u,D)=>{let d=0;do d|=u&1,u>>>=1,d<<=1;while(--D>0);return d>>>1},Te=u=>{u.bi_valid===16?(ot(u,u.bi_buf),u.bi_buf=0,u.bi_valid=0):u.bi_valid>=8&&(u.pending_buf[u.pending++]=u.bi_buf&255,u.bi_buf>>=8,u.bi_valid-=8)},F=(u,D)=>{const d=D.dyn_tree,M=D.max_code,ne=D.stat_desc.static_tree,le=D.stat_desc.has_stree,Ze=D.stat_desc.extra_bits,Oe=D.stat_desc.extra_base,nn=D.stat_desc.max_length;let Be,tt,Bn,cn,Zt,Un,Wi=0;for(cn=0;cn<=_e;cn++)u.bl_count[cn]=0;for(d[u.heap[u.heap_max]*2+1]=0,Be=u.heap_max+1;Be<ge;Be++)tt=u.heap[Be],cn=d[d[tt*2+1]*2+1]+1,cn>nn&&(cn=nn,Wi++),d[tt*2+1]=cn,!(tt>M)&&(u.bl_count[cn]++,Zt=0,tt>=Oe&&(Zt=Ze[tt-Oe]),Un=d[tt*2],u.opt_len+=Un*(cn+Zt),le&&(u.static_len+=Un*(ne[tt*2+1]+Zt)));if(Wi!==0){do{for(cn=nn-1;u.bl_count[cn]===0;)cn--;u.bl_count[cn]--,u.bl_count[cn+1]+=2,u.bl_count[nn]--,Wi-=2}while(Wi>0);for(cn=nn;cn!==0;cn--)for(tt=u.bl_count[cn];tt!==0;)Bn=u.heap[--Be],!(Bn>M)&&(d[Bn*2+1]!==cn&&(u.opt_len+=(cn-d[Bn*2+1])*d[Bn*2],d[Bn*2+1]=cn),tt--)}},v=(u,D,d)=>{const M=new Array(_e+1);let ne=0,le,Ze;for(le=1;le<=_e;le++)ne=ne+d[le-1]<<1,M[le]=ne;for(Ze=0;Ze<=D;Ze++){let Oe=u[Ze*2+1];Oe!==0&&(u[Ze*2]=Kt(M[Oe]++,Oe))}},T=()=>{let u,D,d,M,ne;const le=new Array(_e+1);for(d=0,M=0;M<H-1;M++)for(ke[M]=d,u=0;u<1<<k[M];u++)fe[d++]=M;for(fe[d-1]=M,ne=0,M=0;M<16;M++)for(je[M]=ne,u=0;u<1<<V[M];u++)W[ne++]=M;for(ne>>=7;M<J;M++)for(je[M]=ne<<7,u=0;u<1<<V[M]-7;u++)W[256+ne++]=M;for(D=0;D<=_e;D++)le[D]=0;for(u=0;u<=143;)x[u*2+1]=8,u++,le[8]++;for(;u<=255;)x[u*2+1]=9,u++,le[9]++;for(;u<=279;)x[u*2+1]=7,u++,le[7]++;for(;u<=287;)x[u*2+1]=8,u++,le[8]++;for(v(x,R+1,le),u=0;u<J;u++)b[u*2+1]=5,b[u*2]=Kt(u,5);ht=new yt(x,k,B+1,R,_e),Ot=new yt(b,V,0,J,_e),Dt=new yt(new Array(0),$,0,q,we)},ee=u=>{let D;for(D=0;D<R;D++)u.dyn_ltree[D*2]=0;for(D=0;D<J;D++)u.dyn_dtree[D*2]=0;for(D=0;D<q;D++)u.bl_tree[D*2]=0;u.dyn_ltree[de*2]=1,u.opt_len=u.static_len=0,u.sym_next=u.matches=0},N=u=>{u.bi_valid>8?ot(u,u.bi_buf):u.bi_valid>0&&(u.pending_buf[u.pending++]=u.bi_buf),u.bi_buf=0,u.bi_valid=0},z=(u,D,d,M)=>{const ne=D*2,le=d*2;return u[ne]<u[le]||u[ne]===u[le]&&M[D]<=M[d]},he=(u,D,d)=>{const M=u.heap[d];let ne=d<<1;for(;ne<=u.heap_len&&(ne<u.heap_len&&z(D,u.heap[ne+1],u.heap[ne],u.depth)&&ne++,!z(D,M,u.heap[ne],u.depth));)u.heap[d]=u.heap[ne],d=ne,ne<<=1;u.heap[d]=M},Fe=(u,D,d)=>{let M,ne,le=0,Ze,Oe;if(u.sym_next!==0)do M=u.pending_buf[u.sym_buf+le++]&255,M+=(u.pending_buf[u.sym_buf+le++]&255)<<8,ne=u.pending_buf[u.sym_buf+le++],M===0?qe(u,ne,D):(Ze=fe[ne],qe(u,Ze+B+1,D),Oe=k[Ze],Oe!==0&&(ne-=ke[Ze],Et(u,ne,Oe)),M--,Ze=Jt(M),qe(u,Ze,d),Oe=V[Ze],Oe!==0&&(M-=je[Ze],Et(u,M,Oe)));while(le<u.sym_next);qe(u,de,D)},Ne=(u,D)=>{const d=D.dyn_tree,M=D.stat_desc.static_tree,ne=D.stat_desc.has_stree,le=D.stat_desc.elems;let Ze,Oe,nn=-1,Be;for(u.heap_len=0,u.heap_max=ge,Ze=0;Ze<le;Ze++)d[Ze*2]!==0?(u.heap[++u.heap_len]=nn=Ze,u.depth[Ze]=0):d[Ze*2+1]=0;for(;u.heap_len<2;)Be=u.heap[++u.heap_len]=nn<2?++nn:0,d[Be*2]=1,u.depth[Be]=0,u.opt_len--,ne&&(u.static_len-=M[Be*2+1]);for(D.max_code=nn,Ze=u.heap_len>>1;Ze>=1;Ze--)he(u,d,Ze);Be=le;do Ze=u.heap[1],u.heap[1]=u.heap[u.heap_len--],he(u,d,1),Oe=u.heap[1],u.heap[--u.heap_max]=Ze,u.heap[--u.heap_max]=Oe,d[Be*2]=d[Ze*2]+d[Oe*2],u.depth[Be]=(u.depth[Ze]>=u.depth[Oe]?u.depth[Ze]:u.depth[Oe])+1,d[Ze*2+1]=d[Oe*2+1]=Be,u.heap[1]=Be++,he(u,d,1);while(u.heap_len>=2);u.heap[--u.heap_max]=u.heap[1],F(u,D),v(d,nn,u.bl_count)},rt=(u,D,d)=>{let M,ne=-1,le,Ze=D[0*2+1],Oe=0,nn=7,Be=4;for(Ze===0&&(nn=138,Be=3),D[(d+1)*2+1]=65535,M=0;M<=d;M++)le=Ze,Ze=D[(M+1)*2+1],!(++Oe<nn&&le===Ze)&&(Oe<Be?u.bl_tree[le*2]+=Oe:le!==0?(le!==ne&&u.bl_tree[le*2]++,u.bl_tree[ie*2]++):Oe<=10?u.bl_tree[oe*2]++:u.bl_tree[K*2]++,Oe=0,ne=le,Ze===0?(nn=138,Be=3):le===Ze?(nn=6,Be=3):(nn=7,Be=4))},lt=(u,D,d)=>{let M,ne=-1,le,Ze=D[0*2+1],Oe=0,nn=7,Be=4;for(Ze===0&&(nn=138,Be=3),M=0;M<=d;M++)if(le=Ze,Ze=D[(M+1)*2+1],!(++Oe<nn&&le===Ze)){if(Oe<Be)do qe(u,le,u.bl_tree);while(--Oe!==0);else le!==0?(le!==ne&&(qe(u,le,u.bl_tree),Oe--),qe(u,ie,u.bl_tree),Et(u,Oe-3,2)):Oe<=10?(qe(u,oe,u.bl_tree),Et(u,Oe-3,3)):(qe(u,K,u.bl_tree),Et(u,Oe-11,7));Oe=0,ne=le,Ze===0?(nn=138,Be=3):le===Ze?(nn=6,Be=3):(nn=7,Be=4)}},zt=u=>{let D;for(rt(u,u.dyn_ltree,u.l_desc.max_code),rt(u,u.dyn_dtree,u.d_desc.max_code),Ne(u,u.bl_desc),D=q-1;D>=3&&u.bl_tree[ae[D]*2+1]===0;D--);return u.opt_len+=3*(D+1)+5+5+4,D},Tt=(u,D,d,M)=>{let ne;for(Et(u,D-257,5),Et(u,d-1,5),Et(u,M-4,4),ne=0;ne<M;ne++)Et(u,u.bl_tree[ae[ne]*2+1],3);lt(u,u.dyn_ltree,D-1),lt(u,u.dyn_dtree,d-1)},Ct=u=>{let D=4093624447,d;for(d=0;d<=31;d++,D>>>=1)if(D&1&&u.dyn_ltree[d*2]!==0)return o;if(u.dyn_ltree[9*2]!==0||u.dyn_ltree[10*2]!==0||u.dyn_ltree[13*2]!==0)return X;for(d=32;d<B;d++)if(u.dyn_ltree[d*2]!==0)return X;return o};let At=!1;const It=u=>{At||(T(),At=!0),u.l_desc=new Ve(u.dyn_ltree,ht),u.d_desc=new Ve(u.dyn_dtree,Ot),u.bl_desc=new Ve(u.bl_tree,Dt),u.bi_buf=0,u.bi_valid=0,ee(u)},st=(u,D,d,M)=>{Et(u,(y<<1)+(M?1:0),3),N(u),ot(u,d),ot(u,~d),d&&u.pending_buf.set(u.window.subarray(D,D+d),u.pending),u.pending+=d},ct=u=>{Et(u,E<<1,3),qe(u,de,x),Te(u)},Pe=(u,D,d,M)=>{let ne,le,Ze=0;u.level>0?(u.strm.data_type===L&&(u.strm.data_type=Ct(u)),Ne(u,u.l_desc),Ne(u,u.d_desc),Ze=zt(u),ne=u.opt_len+3+7>>>3,le=u.static_len+3+7>>>3,le<=ne&&(ne=le)):ne=le=d+5,d+4<=ne&&D!==-1?st(u,D,d,M):u.strategy===U||le===ne?(Et(u,(E<<1)+(M?1:0),3),Fe(u,x,b)):(Et(u,(S<<1)+(M?1:0),3),Tt(u,u.l_desc.max_code+1,u.d_desc.max_code+1,Ze+1),Fe(u,u.dyn_ltree,u.dyn_dtree)),ee(u),M&&N(u)},wt=(u,D,d)=>(u.pending_buf[u.sym_buf+u.sym_next++]=D,u.pending_buf[u.sym_buf+u.sym_next++]=D>>8,u.pending_buf[u.sym_buf+u.sym_next++]=d,D===0?u.dyn_ltree[d*2]++:(u.matches++,D--,u.dyn_ltree[(fe[d]+B+1)*2]++,u.dyn_dtree[Jt(D)*2]++),u.sym_next===u.sym_end);var Lt=It,St=st,en=Pe,Yt=wt,Ht=ct,In={_tr_init:Lt,_tr_stored_block:St,_tr_flush_block:en,_tr_tally:Yt,_tr_align:Ht},Vt=(u,D,d,M)=>{let ne=u&65535|0,le=u>>>16&65535|0,Ze=0;for(;d!==0;){Ze=d>2e3?2e3:d,d-=Ze;do ne=ne+D[M++]|0,le=le+ne|0;while(--Ze);ne%=65521,le%=65521}return ne|le<<16|0};const vn=()=>{let u,D=[];for(var d=0;d<256;d++){u=d;for(var M=0;M<8;M++)u=u&1?3988292384^u>>>1:u>>>1;D[d]=u}return D},He=new Uint32Array(vn());var De=(u,D,d,M)=>{const ne=He,le=M+d;u^=-1;for(let Ze=M;Ze<le;Ze++)u=u>>>8^ne[(u^D[Ze])&255];return u^-1},te={2:"need dictionary",1:"stream end",0:"","-1":"file error","-2":"stream error","-3":"data error","-4":"insufficient memory","-5":"buffer error","-6":"incompatible version"},ue={Z_NO_FLUSH:0,Z_PARTIAL_FLUSH:1,Z_SYNC_FLUSH:2,Z_FULL_FLUSH:3,Z_FINISH:4,Z_BLOCK:5,Z_TREES:6,Z_OK:0,Z_STREAM_END:1,Z_NEED_DICT:2,Z_ERRNO:-1,Z_STREAM_ERROR:-2,Z_DATA_ERROR:-3,Z_MEM_ERROR:-4,Z_BUF_ERROR:-5,Z_NO_COMPRESSION:0,Z_BEST_SPEED:1,Z_BEST_COMPRESSION:9,Z_DEFAULT_COMPRESSION:-1,Z_FILTERED:1,Z_HUFFMAN_ONLY:2,Z_RLE:3,Z_FIXED:4,Z_DEFAULT_STRATEGY:0,Z_BINARY:0,Z_TEXT:1,Z_UNKNOWN:2,Z_DEFLATED:8};const{_tr_init:Se,_tr_stored_block:Ie,_tr_flush_block:Me,_tr_tally:Ke,_tr_align:Ye}=In,{Z_NO_FLUSH:it,Z_PARTIAL_FLUSH:pt,Z_FULL_FLUSH:Xt,Z_FINISH:hn,Z_BLOCK:kt,Z_OK:Nt,Z_STREAM_END:fn,Z_STREAM_ERROR:Fn,Z_DATA_ERROR:Re,Z_BUF_ERROR:Nn,Z_DEFAULT_COMPRESSION:Rt,Z_FILTERED:Ft,Z_HUFFMAN_ONLY:rn,Z_RLE:_n,Z_FIXED:Mn,Z_DEFAULT_STRATEGY:oi,Z_UNKNOWN:Oi,Z_DEFLATED:ki}=ue,vi=9,ji=15,ti=8,Yi=256+1+29,Qn=30,Xn=19,di=2*Yi+1,ai=15,wn=3,We=258,ut=We+wn+1,Ut=32,dt=42,vt=57,Mt=69,Wt=73,sn=91,ln=103,gn=113,ni=666,An=1,Hn=2,j=3,G=4,pe=3,Ee=(u,D)=>(u.msg=te[D],D),ze=u=>u*2-(u>4?9:0),$e=u=>{let D=u.length;for(;--D>=0;)u[D]=0},bt=u=>{let D,d,M,ne=u.w_size;D=u.hash_size,M=D;do d=u.head[--M],u.head[M]=d>=ne?d-ne:0;while(--D);D=ne,M=D;do d=u.prev[--M],u.prev[M]=d>=ne?d-ne:0;while(--D)};let Gt=(u,D,d)=>(D<<u.hash_shift^d)&u.hash_mask;const _t=u=>{const D=u.state;let d=D.pending;d>u.avail_out&&(d=u.avail_out),d!==0&&(u.output.set(D.pending_buf.subarray(D.pending_out,D.pending_out+d),u.next_out),u.next_out+=d,D.pending_out+=d,u.total_out+=d,u.avail_out-=d,D.pending-=d,D.pending===0&&(D.pending_out=0))},Ce=(u,D)=>{Me(u,u.block_start>=0?u.block_start:-1,u.strstart-u.block_start,D),u.block_start=u.strstart,_t(u.strm)},et=(u,D)=>{u.pending_buf[u.pending++]=D},Pt=(u,D)=>{u.pending_buf[u.pending++]=D>>>8&255,u.pending_buf[u.pending++]=D&255},an=(u,D,d,M)=>{let ne=u.avail_in;return ne>M&&(ne=M),ne===0?0:(u.avail_in-=ne,D.set(u.input.subarray(u.next_in,u.next_in+ne),d),u.state.wrap===1?u.adler=Vt(u.adler,D,ne,d):u.state.wrap===2&&(u.adler=De(u.adler,D,ne,d)),u.next_in+=ne,u.total_in+=ne,ne)},un=(u,D)=>{let d=u.max_chain_length,M=u.strstart,ne,le,Ze=u.prev_length,Oe=u.nice_match;const nn=u.strstart>u.w_size-ut?u.strstart-(u.w_size-ut):0,Be=u.window,tt=u.w_mask,Bn=u.prev,cn=u.strstart+We;let Zt=Be[M+Ze-1],Un=Be[M+Ze];u.prev_length>=u.good_match&&(d>>=2),Oe>u.lookahead&&(Oe=u.lookahead);do if(ne=D,!(Be[ne+Ze]!==Un||Be[ne+Ze-1]!==Zt||Be[ne]!==Be[M]||Be[++ne]!==Be[M+1])){M+=2,ne++;do;while(Be[++M]===Be[++ne]&&Be[++M]===Be[++ne]&&Be[++M]===Be[++ne]&&Be[++M]===Be[++ne]&&Be[++M]===Be[++ne]&&Be[++M]===Be[++ne]&&Be[++M]===Be[++ne]&&Be[++M]===Be[++ne]&&M<cn);if(le=We-(cn-M),M=cn-We,le>Ze){if(u.match_start=D,Ze=le,le>=Oe)break;Zt=Be[M+Ze-1],Un=Be[M+Ze]}}while((D=Bn[D&tt])>nn&&--d!==0);return Ze<=u.lookahead?Ze:u.lookahead},qt=u=>{const D=u.w_size;let d,M,ne;do{if(M=u.window_size-u.lookahead-u.strstart,u.strstart>=D+(D-ut)&&(u.window.set(u.window.subarray(D,D+D-M),0),u.match_start-=D,u.strstart-=D,u.block_start-=D,u.insert>u.strstart&&(u.insert=u.strstart),bt(u),M+=D),u.strm.avail_in===0)break;if(d=an(u.strm,u.window,u.strstart+u.lookahead,M),u.lookahead+=d,u.lookahead+u.insert>=wn)for(ne=u.strstart-u.insert,u.ins_h=u.window[ne],u.ins_h=Gt(u,u.ins_h,u.window[ne+1]);u.insert&&(u.ins_h=Gt(u,u.ins_h,u.window[ne+wn-1]),u.prev[ne&u.w_mask]=u.head[u.ins_h],u.head[u.ins_h]=ne,ne++,u.insert--,!(u.lookahead+u.insert<wn)););}while(u.lookahead<ut&&u.strm.avail_in!==0)},tn=(u,D)=>{let d=u.pending_buf_size-5>u.w_size?u.w_size:u.pending_buf_size-5,M,ne,le,Ze=0,Oe=u.strm.avail_in;do{if(M=65535,le=u.bi_valid+42>>3,u.strm.avail_out<le||(le=u.strm.avail_out-le,ne=u.strstart-u.block_start,M>ne+u.strm.avail_in&&(M=ne+u.strm.avail_in),M>le&&(M=le),M<d&&(M===0&&D!==hn||D===it||M!==ne+u.strm.avail_in)))break;Ze=D===hn&&M===ne+u.strm.avail_in?1:0,Ie(u,0,0,Ze),u.pending_buf[u.pending-4]=M,u.pending_buf[u.pending-3]=M>>8,u.pending_buf[u.pending-2]=~M,u.pending_buf[u.pending-1]=~M>>8,_t(u.strm),ne&&(ne>M&&(ne=M),u.strm.output.set(u.window.subarray(u.block_start,u.block_start+ne),u.strm.next_out),u.strm.next_out+=ne,u.strm.avail_out-=ne,u.strm.total_out+=ne,u.block_start+=ne,M-=ne),M&&(an(u.strm,u.strm.output,u.strm.next_out,M),u.strm.next_out+=M,u.strm.avail_out-=M,u.strm.total_out+=M)}while(Ze===0);return Oe-=u.strm.avail_in,Oe&&(Oe>=u.w_size?(u.matches=2,u.window.set(u.strm.input.subarray(u.strm.next_in-u.w_size,u.strm.next_in),0),u.strstart=u.w_size,u.insert=u.strstart):(u.window_size-u.strstart<=Oe&&(u.strstart-=u.w_size,u.window.set(u.window.subarray(u.w_size,u.w_size+u.strstart),0),u.matches<2&&u.matches++,u.insert>u.strstart&&(u.insert=u.strstart)),u.window.set(u.strm.input.subarray(u.strm.next_in-Oe,u.strm.next_in),u.strstart),u.strstart+=Oe,u.insert+=Oe>u.w_size-u.insert?u.w_size-u.insert:Oe),u.block_start=u.strstart),u.high_water<u.strstart&&(u.high_water=u.strstart),Ze?G:D!==it&&D!==hn&&u.strm.avail_in===0&&u.strstart===u.block_start?Hn:(le=u.window_size-u.strstart,u.strm.avail_in>le&&u.block_start>=u.w_size&&(u.block_start-=u.w_size,u.strstart-=u.w_size,u.window.set(u.window.subarray(u.w_size,u.w_size+u.strstart),0),u.matches<2&&u.matches++,le+=u.w_size,u.insert>u.strstart&&(u.insert=u.strstart)),le>u.strm.avail_in&&(le=u.strm.avail_in),le&&(an(u.strm,u.window,u.strstart,le),u.strstart+=le,u.insert+=le>u.w_size-u.insert?u.w_size-u.insert:le),u.high_water<u.strstart&&(u.high_water=u.strstart),le=u.bi_valid+42>>3,le=u.pending_buf_size-le>65535?65535:u.pending_buf_size-le,d=le>u.w_size?u.w_size:le,ne=u.strstart-u.block_start,(ne>=d||(ne||D===hn)&&D!==it&&u.strm.avail_in===0&&ne<=le)&&(M=ne>le?le:ne,Ze=D===hn&&u.strm.avail_in===0&&M===ne?1:0,Ie(u,u.block_start,M,Ze),u.block_start+=M,_t(u.strm)),Ze?j:An)},mn=(u,D)=>{let d,M;for(;;){if(u.lookahead<ut){if(qt(u),u.lookahead<ut&&D===it)return An;if(u.lookahead===0)break}if(d=0,u.lookahead>=wn&&(u.ins_h=Gt(u,u.ins_h,u.window[u.strstart+wn-1]),d=u.prev[u.strstart&u.w_mask]=u.head[u.ins_h],u.head[u.ins_h]=u.strstart),d!==0&&u.strstart-d<=u.w_size-ut&&(u.match_length=un(u,d)),u.match_length>=wn)if(M=Ke(u,u.strstart-u.match_start,u.match_length-wn),u.lookahead-=u.match_length,u.match_length<=u.max_lazy_match&&u.lookahead>=wn){u.match_length--;do u.strstart++,u.ins_h=Gt(u,u.ins_h,u.window[u.strstart+wn-1]),d=u.prev[u.strstart&u.w_mask]=u.head[u.ins_h],u.head[u.ins_h]=u.strstart;while(--u.match_length!==0);u.strstart++}else u.strstart+=u.match_length,u.match_length=0,u.ins_h=u.window[u.strstart],u.ins_h=Gt(u,u.ins_h,u.window[u.strstart+1]);else M=Ke(u,0,u.window[u.strstart]),u.lookahead--,u.strstart++;if(M&&(Ce(u,!1),u.strm.avail_out===0))return An}return u.insert=u.strstart<wn-1?u.strstart:wn-1,D===hn?(Ce(u,!0),u.strm.avail_out===0?j:G):u.sym_next&&(Ce(u,!1),u.strm.avail_out===0)?An:Hn},Tn=(u,D)=>{let d,M,ne;for(;;){if(u.lookahead<ut){if(qt(u),u.lookahead<ut&&D===it)return An;if(u.lookahead===0)break}if(d=0,u.lookahead>=wn&&(u.ins_h=Gt(u,u.ins_h,u.window[u.strstart+wn-1]),d=u.prev[u.strstart&u.w_mask]=u.head[u.ins_h],u.head[u.ins_h]=u.strstart),u.prev_length=u.match_length,u.prev_match=u.match_start,u.match_length=wn-1,d!==0&&u.prev_length<u.max_lazy_match&&u.strstart-d<=u.w_size-ut&&(u.match_length=un(u,d),u.match_length<=5&&(u.strategy===Ft||u.match_length===wn&&u.strstart-u.match_start>4096)&&(u.match_length=wn-1)),u.prev_length>=wn&&u.match_length<=u.prev_length){ne=u.strstart+u.lookahead-wn,M=Ke(u,u.strstart-1-u.prev_match,u.prev_length-wn),u.lookahead-=u.prev_length-1,u.prev_length-=2;do++u.strstart<=ne&&(u.ins_h=Gt(u,u.ins_h,u.window[u.strstart+wn-1]),d=u.prev[u.strstart&u.w_mask]=u.head[u.ins_h],u.head[u.ins_h]=u.strstart);while(--u.prev_length!==0);if(u.match_available=0,u.match_length=wn-1,u.strstart++,M&&(Ce(u,!1),u.strm.avail_out===0))return An}else if(u.match_available){if(M=Ke(u,0,u.window[u.strstart-1]),M&&Ce(u,!1),u.strstart++,u.lookahead--,u.strm.avail_out===0)return An}else u.match_available=1,u.strstart++,u.lookahead--}return u.match_available&&(M=Ke(u,0,u.window[u.strstart-1]),u.match_available=0),u.insert=u.strstart<wn-1?u.strstart:wn-1,D===hn?(Ce(u,!0),u.strm.avail_out===0?j:G):u.sym_next&&(Ce(u,!1),u.strm.avail_out===0)?An:Hn},on=(u,D)=>{let d,M,ne,le;const Ze=u.window;for(;;){if(u.lookahead<=We){if(qt(u),u.lookahead<=We&&D===it)return An;if(u.lookahead===0)break}if(u.match_length=0,u.lookahead>=wn&&u.strstart>0&&(ne=u.strstart-1,M=Ze[ne],M===Ze[++ne]&&M===Ze[++ne]&&M===Ze[++ne])){le=u.strstart+We;do;while(M===Ze[++ne]&&M===Ze[++ne]&&M===Ze[++ne]&&M===Ze[++ne]&&M===Ze[++ne]&&M===Ze[++ne]&&M===Ze[++ne]&&M===Ze[++ne]&&ne<le);u.match_length=We-(le-ne),u.match_length>u.lookahead&&(u.match_length=u.lookahead)}if(u.match_length>=wn?(d=Ke(u,1,u.match_length-wn),u.lookahead-=u.match_length,u.strstart+=u.match_length,u.match_length=0):(d=Ke(u,0,u.window[u.strstart]),u.lookahead--,u.strstart++),d&&(Ce(u,!1),u.strm.avail_out===0))return An}return u.insert=0,D===hn?(Ce(u,!0),u.strm.avail_out===0?j:G):u.sym_next&&(Ce(u,!1),u.strm.avail_out===0)?An:Hn},$t=(u,D)=>{let d;for(;;){if(u.lookahead===0&&(qt(u),u.lookahead===0)){if(D===it)return An;break}if(u.match_length=0,d=Ke(u,0,u.window[u.strstart]),u.lookahead--,u.strstart++,d&&(Ce(u,!1),u.strm.avail_out===0))return An}return u.insert=0,D===hn?(Ce(u,!0),u.strm.avail_out===0?j:G):u.sym_next&&(Ce(u,!1),u.strm.avail_out===0)?An:Hn};function kn(u,D,d,M,ne){this.good_length=u,this.max_lazy=D,this.nice_length=d,this.max_chain=M,this.func=ne}const Ln=[new kn(0,0,0,0,tn),new kn(4,4,8,4,mn),new kn(4,5,16,8,mn),new kn(4,6,32,32,mn),new kn(4,4,16,16,Tn),new kn(8,16,32,32,Tn),new kn(8,16,128,128,Tn),new kn(8,32,128,256,Tn),new kn(32,128,258,1024,Tn),new kn(32,258,258,4096,Tn)],Cn=u=>{u.window_size=2*u.w_size,$e(u.head),u.max_lazy_match=Ln[u.level].max_lazy,u.good_match=Ln[u.level].good_length,u.nice_match=Ln[u.level].nice_length,u.max_chain_length=Ln[u.level].max_chain,u.strstart=0,u.block_start=0,u.lookahead=0,u.insert=0,u.match_length=u.prev_length=wn-1,u.match_available=0,u.ins_h=0};function Pn(){this.strm=null,this.status=0,this.pending_buf=null,this.pending_buf_size=0,this.pending_out=0,this.pending=0,this.wrap=0,this.gzhead=null,this.gzindex=0,this.method=ki,this.last_flush=-1,this.w_size=0,this.w_bits=0,this.w_mask=0,this.window=null,this.window_size=0,this.prev=null,this.head=null,this.ins_h=0,this.hash_size=0,this.hash_bits=0,this.hash_mask=0,this.hash_shift=0,this.block_start=0,this.match_length=0,this.prev_match=0,this.match_available=0,this.strstart=0,this.match_start=0,this.lookahead=0,this.prev_length=0,this.max_chain_length=0,this.max_lazy_match=0,this.level=0,this.strategy=0,this.good_match=0,this.nice_match=0,this.dyn_ltree=new Uint16Array(di*2),this.dyn_dtree=new Uint16Array((2*Qn+1)*2),this.bl_tree=new Uint16Array((2*Xn+1)*2),$e(this.dyn_ltree),$e(this.dyn_dtree),$e(this.bl_tree),this.l_desc=null,this.d_desc=null,this.bl_desc=null,this.bl_count=new Uint16Array(ai+1),this.heap=new Uint16Array(2*Yi+1),$e(this.heap),this.heap_len=0,this.heap_max=0,this.depth=new Uint16Array(2*Yi+1),$e(this.depth),this.sym_buf=0,this.lit_bufsize=0,this.sym_next=0,this.sym_end=0,this.opt_len=0,this.static_len=0,this.matches=0,this.insert=0,this.bi_buf=0,this.bi_valid=0}const En=u=>{if(!u)return 1;const D=u.state;return!D||D.strm!==u||D.status!==dt&&D.status!==vt&&D.status!==Mt&&D.status!==Wt&&D.status!==sn&&D.status!==ln&&D.status!==gn&&D.status!==ni?1:0},ii=u=>{if(En(u))return Ee(u,Fn);u.total_in=u.total_out=0,u.data_type=Oi;const D=u.state;return D.pending=0,D.pending_out=0,D.wrap<0&&(D.wrap=-D.wrap),D.status=D.wrap===2?vt:D.wrap?dt:gn,u.adler=D.wrap===2?0:1,D.last_flush=-2,Se(D),Nt},ri=u=>{const D=ii(u);return D===Nt&&Cn(u.state),D},qn=(u,D)=>En(u)||u.state.wrap!==2?Fn:(u.state.gzhead=D,Nt),Ti=(u,D,d,M,ne,le)=>{if(!u)return Fn;let Ze=1;if(D===Rt&&(D=6),M<0?(Ze=0,M=-M):M>15&&(Ze=2,M-=16),ne<1||ne>vi||d!==ki||M<8||M>15||D<0||D>9||le<0||le>Mn||M===8&&Ze!==1)return Ee(u,Fn);M===8&&(M=9);const Oe=new Pn;return u.state=Oe,Oe.strm=u,Oe.status=dt,Oe.wrap=Ze,Oe.gzhead=null,Oe.w_bits=M,Oe.w_size=1<<Oe.w_bits,Oe.w_mask=Oe.w_size-1,Oe.hash_bits=ne+7,Oe.hash_size=1<<Oe.hash_bits,Oe.hash_mask=Oe.hash_size-1,Oe.hash_shift=~~((Oe.hash_bits+wn-1)/wn),Oe.window=new Uint8Array(Oe.w_size*2),Oe.head=new Uint16Array(Oe.hash_size),Oe.prev=new Uint16Array(Oe.w_size),Oe.lit_bufsize=1<<ne+6,Oe.pending_buf_size=Oe.lit_bufsize*4,Oe.pending_buf=new Uint8Array(Oe.pending_buf_size),Oe.sym_buf=Oe.lit_bufsize,Oe.sym_end=(Oe.lit_bufsize-1)*3,Oe.level=D,Oe.strategy=le,Oe.method=d,ri(u)},Li=(u,D)=>Ti(u,D,ki,ji,ti,oi),Ei=(u,D)=>{if(En(u)||D>kt||D<0)return u?Ee(u,Fn):Fn;const d=u.state;if(!u.output||u.avail_in!==0&&!u.input||d.status===ni&&D!==hn)return Ee(u,u.avail_out===0?Nn:Fn);const M=d.last_flush;if(d.last_flush=D,d.pending!==0){if(_t(u),u.avail_out===0)return d.last_flush=-1,Nt}else if(u.avail_in===0&&ze(D)<=ze(M)&&D!==hn)return Ee(u,Nn);if(d.status===ni&&u.avail_in!==0)return Ee(u,Nn);if(d.status===dt&&d.wrap===0&&(d.status=gn),d.status===dt){let ne=ki+(d.w_bits-8<<4)<<8,le=-1;if(d.strategy>=rn||d.level<2?le=0:d.level<6?le=1:d.level===6?le=2:le=3,ne|=le<<6,d.strstart!==0&&(ne|=Ut),ne+=31-ne%31,Pt(d,ne),d.strstart!==0&&(Pt(d,u.adler>>>16),Pt(d,u.adler&65535)),u.adler=1,d.status=gn,_t(u),d.pending!==0)return d.last_flush=-1,Nt}if(d.status===vt){if(u.adler=0,et(d,31),et(d,139),et(d,8),d.gzhead)et(d,(d.gzhead.text?1:0)+(d.gzhead.hcrc?2:0)+(d.gzhead.extra?4:0)+(d.gzhead.name?8:0)+(d.gzhead.comment?16:0)),et(d,d.gzhead.time&255),et(d,d.gzhead.time>>8&255),et(d,d.gzhead.time>>16&255),et(d,d.gzhead.time>>24&255),et(d,d.level===9?2:d.strategy>=rn||d.level<2?4:0),et(d,d.gzhead.os&255),d.gzhead.extra&&d.gzhead.extra.length&&(et(d,d.gzhead.extra.length&255),et(d,d.gzhead.extra.length>>8&255)),d.gzhead.hcrc&&(u.adler=De(u.adler,d.pending_buf,d.pending,0)),d.gzindex=0,d.status=Mt;else if(et(d,0),et(d,0),et(d,0),et(d,0),et(d,0),et(d,d.level===9?2:d.strategy>=rn||d.level<2?4:0),et(d,pe),d.status=gn,_t(u),d.pending!==0)return d.last_flush=-1,Nt}if(d.status===Mt){if(d.gzhead.extra){let ne=d.pending,le=(d.gzhead.extra.length&65535)-d.gzindex;for(;d.pending+le>d.pending_buf_size;){let Oe=d.pending_buf_size-d.pending;if(d.pending_buf.set(d.gzhead.extra.subarray(d.gzindex,d.gzindex+Oe),d.pending),d.pending=d.pending_buf_size,d.gzhead.hcrc&&d.pending>ne&&(u.adler=De(u.adler,d.pending_buf,d.pending-ne,ne)),d.gzindex+=Oe,_t(u),d.pending!==0)return d.last_flush=-1,Nt;ne=0,le-=Oe}let Ze=new Uint8Array(d.gzhead.extra);d.pending_buf.set(Ze.subarray(d.gzindex,d.gzindex+le),d.pending),d.pending+=le,d.gzhead.hcrc&&d.pending>ne&&(u.adler=De(u.adler,d.pending_buf,d.pending-ne,ne)),d.gzindex=0}d.status=Wt}if(d.status===Wt){if(d.gzhead.name){let ne=d.pending,le;do{if(d.pending===d.pending_buf_size){if(d.gzhead.hcrc&&d.pending>ne&&(u.adler=De(u.adler,d.pending_buf,d.pending-ne,ne)),_t(u),d.pending!==0)return d.last_flush=-1,Nt;ne=0}d.gzindex<d.gzhead.name.length?le=d.gzhead.name.charCodeAt(d.gzindex++)&255:le=0,et(d,le)}while(le!==0);d.gzhead.hcrc&&d.pending>ne&&(u.adler=De(u.adler,d.pending_buf,d.pending-ne,ne)),d.gzindex=0}d.status=sn}if(d.status===sn){if(d.gzhead.comment){let ne=d.pending,le;do{if(d.pending===d.pending_buf_size){if(d.gzhead.hcrc&&d.pending>ne&&(u.adler=De(u.adler,d.pending_buf,d.pending-ne,ne)),_t(u),d.pending!==0)return d.last_flush=-1,Nt;ne=0}d.gzindex<d.gzhead.comment.length?le=d.gzhead.comment.charCodeAt(d.gzindex++)&255:le=0,et(d,le)}while(le!==0);d.gzhead.hcrc&&d.pending>ne&&(u.adler=De(u.adler,d.pending_buf,d.pending-ne,ne))}d.status=ln}if(d.status===ln){if(d.gzhead.hcrc){if(d.pending+2>d.pending_buf_size&&(_t(u),d.pending!==0))return d.last_flush=-1,Nt;et(d,u.adler&255),et(d,u.adler>>8&255),u.adler=0}if(d.status=gn,_t(u),d.pending!==0)return d.last_flush=-1,Nt}if(u.avail_in!==0||d.lookahead!==0||D!==it&&d.status!==ni){let ne=d.level===0?tn(d,D):d.strategy===rn?$t(d,D):d.strategy===_n?on(d,D):Ln[d.level].func(d,D);if((ne===j||ne===G)&&(d.status=ni),ne===An||ne===j)return u.avail_out===0&&(d.last_flush=-1),Nt;if(ne===Hn&&(D===pt?Ye(d):D!==kt&&(Ie(d,0,0,!1),D===Xt&&($e(d.head),d.lookahead===0&&(d.strstart=0,d.block_start=0,d.insert=0))),_t(u),u.avail_out===0))return d.last_flush=-1,Nt}return D!==hn?Nt:d.wrap<=0?fn:(d.wrap===2?(et(d,u.adler&255),et(d,u.adler>>8&255),et(d,u.adler>>16&255),et(d,u.adler>>24&255),et(d,u.total_in&255),et(d,u.total_in>>8&255),et(d,u.total_in>>16&255),et(d,u.total_in>>24&255)):(Pt(d,u.adler>>>16),Pt(d,u.adler&65535)),_t(u),d.wrap>0&&(d.wrap=-d.wrap),d.pending!==0?Nt:fn)},_i=u=>{if(En(u))return Fn;const D=u.state.status;return u.state=null,D===gn?Ee(u,Re):Nt},si=(u,D)=>{let d=D.length;if(En(u))return Fn;const M=u.state,ne=M.wrap;if(ne===2||ne===1&&M.status!==dt||M.lookahead)return Fn;if(ne===1&&(u.adler=Vt(u.adler,D,d,0)),M.wrap=0,d>=M.w_size){ne===0&&($e(M.head),M.strstart=0,M.block_start=0,M.insert=0);let nn=new Uint8Array(M.w_size);nn.set(D.subarray(d-M.w_size,d),0),D=nn,d=M.w_size}const le=u.avail_in,Ze=u.next_in,Oe=u.input;for(u.avail_in=d,u.next_in=0,u.input=D,qt(M);M.lookahead>=wn;){let nn=M.strstart,Be=M.lookahead-(wn-1);do M.ins_h=Gt(M,M.ins_h,M.window[nn+wn-1]),M.prev[nn&M.w_mask]=M.head[M.ins_h],M.head[M.ins_h]=nn,nn++;while(--Be);M.strstart=nn,M.lookahead=wn-1,qt(M)}return M.strstart+=M.lookahead,M.block_start=M.strstart,M.insert=M.lookahead,M.lookahead=0,M.match_length=M.prev_length=wn-1,M.match_available=0,u.next_in=Ze,u.input=Oe,u.avail_in=le,M.wrap=ne,Nt};var mi=Li,Ai=Ti,dr=ri,Ii=ii,Ni=qn,Gi=Ei,Ui=_i,hi=si,nr="pako deflate (from Nodeca project)",Ji={deflateInit:mi,deflateInit2:Ai,deflateReset:dr,deflateResetKeep:Ii,deflateSetHeader:Ni,deflate:Gi,deflateEnd:Ui,deflateSetDictionary:hi,deflateInfo:nr};const ir=(u,D)=>Object.prototype.hasOwnProperty.call(u,D);var pr=function(u){const D=Array.prototype.slice.call(arguments,1);for(;D.length;){const d=D.shift();if(d){if(typeof d!="object")throw new TypeError(d+"must be non-object");for(const M in d)ir(d,M)&&(u[M]=d[M])}}return u},Vn=u=>{let D=0;for(let M=0,ne=u.length;M<ne;M++)D+=u[M].length;const d=new Uint8Array(D);for(let M=0,ne=0,le=u.length;M<le;M++){let Ze=u[M];d.set(Ze,ne),ne+=Ze.length}return d},gr={assign:pr,flattenChunks:Vn};let sr=!0;try{String.fromCharCode.apply(null,new Uint8Array(1))}catch(u){sr=!1}const hr=new Uint8Array(256);for(let u=0;u<256;u++)hr[u]=u>=252?6:u>=248?5:u>=240?4:u>=224?3:u>=192?2:1;hr[254]=hr[254]=1;var Fr=u=>{if(typeof TextEncoder=="function"&&TextEncoder.prototype.encode)return new TextEncoder().encode(u);let D,d,M,ne,le,Ze=u.length,Oe=0;for(ne=0;ne<Ze;ne++)d=u.charCodeAt(ne),(d&64512)===55296&&ne+1<Ze&&(M=u.charCodeAt(ne+1),(M&64512)===56320&&(d=65536+(d-55296<<10)+(M-56320),ne++)),Oe+=d<128?1:d<2048?2:d<65536?3:4;for(D=new Uint8Array(Oe),le=0,ne=0;le<Oe;ne++)d=u.charCodeAt(ne),(d&64512)===55296&&ne+1<Ze&&(M=u.charCodeAt(ne+1),(M&64512)===56320&&(d=65536+(d-55296<<10)+(M-56320),ne++)),d<128?D[le++]=d:d<2048?(D[le++]=192|d>>>6,D[le++]=128|d&63):d<65536?(D[le++]=224|d>>>12,D[le++]=128|d>>>6&63,D[le++]=128|d&63):(D[le++]=240|d>>>18,D[le++]=128|d>>>12&63,D[le++]=128|d>>>6&63,D[le++]=128|d&63);return D};const Nr=(u,D)=>{if(D<65534&&u.subarray&&sr)return String.fromCharCode.apply(null,u.length===D?u:u.subarray(0,D));let d="";for(let M=0;M<D;M++)d+=String.fromCharCode(u[M]);return d};var Kr=(u,D)=>{const d=D||u.length;if(typeof TextDecoder=="function"&&TextDecoder.prototype.decode)return new TextDecoder().decode(u.subarray(0,D));let M,ne;const le=new Array(d*2);for(ne=0,M=0;M<d;){let Ze=u[M++];if(Ze<128){le[ne++]=Ze;continue}let Oe=hr[Ze];if(Oe>4){le[ne++]=65533,M+=Oe-1;continue}for(Ze&=Oe===2?31:Oe===3?15:7;Oe>1&&M<d;)Ze=Ze<<6|u[M++]&63,Oe--;if(Oe>1){le[ne++]=65533;continue}Ze<65536?le[ne++]=Ze:(Ze-=65536,le[ne++]=55296|Ze>>10&1023,le[ne++]=56320|Ze&1023)}return Nr(le,ne)},Gr=(u,D)=>{D=D||u.length,D>u.length&&(D=u.length);let d=D-1;for(;d>=0&&(u[d]&192)===128;)d--;return d<0||d===0?D:d+hr[u[d]]>D?d:D},bi={string2buf:Fr,buf2string:Kr,utf8border:Gr};function Qi(){this.input=null,this.next_in=0,this.avail_in=0,this.total_in=0,this.output=null,this.next_out=0,this.avail_out=0,this.total_out=0,this.msg="",this.state=null,this.data_type=2,this.adler=0}var mr=Qi;const Ur=Object.prototype.toString,{Z_NO_FLUSH:ur,Z_SYNC_FLUSH:Xi,Z_FULL_FLUSH:_r,Z_FINISH:vr,Z_OK:Dr,Z_STREAM_END:Er,Z_DEFAULT_COMPRESSION:Ir,Z_DEFAULT_STRATEGY:is,Z_DEFLATED:Hr}=ue;function Vr(u){this.options=gr.assign({level:Ir,method:Hr,chunkSize:16384,windowBits:15,memLevel:8,strategy:is},u||{});let D=this.options;D.raw&&D.windowBits>0?D.windowBits=-D.windowBits:D.gzip&&D.windowBits>0&&D.windowBits<16&&(D.windowBits+=16),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new mr,this.strm.avail_out=0;let d=Ji.deflateInit2(this.strm,D.level,D.method,D.windowBits,D.memLevel,D.strategy);if(d!==Dr)throw new Error(te[d]);if(D.header&&Ji.deflateSetHeader(this.strm,D.header),D.dictionary){let M;if(typeof D.dictionary=="string"?M=bi.string2buf(D.dictionary):Ur.call(D.dictionary)==="[object ArrayBuffer]"?M=new Uint8Array(D.dictionary):M=D.dictionary,d=Ji.deflateSetDictionary(this.strm,M),d!==Dr)throw new Error(te[d]);this._dict_set=!0}}Vr.prototype.push=function(u,D){const d=this.strm,M=this.options.chunkSize;let ne,le;if(this.ended)return!1;for(D===~~D?le=D:le=D===!0?vr:ur,typeof u=="string"?d.input=bi.string2buf(u):Ur.call(u)==="[object ArrayBuffer]"?d.input=new Uint8Array(u):d.input=u,d.next_in=0,d.avail_in=d.input.length;;){if(d.avail_out===0&&(d.output=new Uint8Array(M),d.next_out=0,d.avail_out=M),(le===Xi||le===_r)&&d.avail_out<=6){this.onData(d.output.subarray(0,d.next_out)),d.avail_out=0;continue}if(ne=Ji.deflate(d,le),ne===Er)return d.next_out>0&&this.onData(d.output.subarray(0,d.next_out)),ne=Ji.deflateEnd(this.strm),this.onEnd(ne),this.ended=!0,ne===Dr;if(d.avail_out===0){this.onData(d.output);continue}if(le>0&&d.next_out>0){this.onData(d.output.subarray(0,d.next_out)),d.avail_out=0;continue}if(d.avail_in===0)break}return!0},Vr.prototype.onData=function(u){this.chunks.push(u)},Vr.prototype.onEnd=function(u){u===Dr&&(this.result=gr.flattenChunks(this.chunks)),this.chunks=[],this.err=u,this.msg=this.strm.msg};function Dn(u,D){const d=new Vr(D);if(d.push(u,!0),d.err)throw d.msg||te[d.err];return d.result}function Yn(u,D){return D=D||{},D.raw=!0,Dn(u,D)}function Fi(u,D){return D=D||{},D.gzip=!0,Dn(u,D)}var li=Vr,pi=Dn,kr=Yn,xr=Fi,Wr=ue,rs={Deflate:li,deflate:pi,deflateRaw:kr,gzip:xr,constants:Wr};const fs=16209,Gs=16191;var Hs=function(D,d){let M,ne,le,Ze,Oe,nn,Be,tt,Bn,cn,Zt,Un,Wi,yi,fi,Mi,ui,yn,Ri,lr,ei,rr,Pi,gi;const Bi=D.state;M=D.next_in,Pi=D.input,ne=M+(D.avail_in-5),le=D.next_out,gi=D.output,Ze=le-(d-D.avail_out),Oe=le+(D.avail_out-257),nn=Bi.dmax,Be=Bi.wsize,tt=Bi.whave,Bn=Bi.wnext,cn=Bi.window,Zt=Bi.hold,Un=Bi.bits,Wi=Bi.lencode,yi=Bi.distcode,fi=(1<<Bi.lenbits)-1,Mi=(1<<Bi.distbits)-1;e:do{Un<15&&(Zt+=Pi[M++]<<Un,Un+=8,Zt+=Pi[M++]<<Un,Un+=8),ui=Wi[Zt&fi];t:for(;;){if(yn=ui>>>24,Zt>>>=yn,Un-=yn,yn=ui>>>16&255,yn===0)gi[le++]=ui&65535;else if(yn&16){Ri=ui&65535,yn&=15,yn&&(Un<yn&&(Zt+=Pi[M++]<<Un,Un+=8),Ri+=Zt&(1<<yn)-1,Zt>>>=yn,Un-=yn),Un<15&&(Zt+=Pi[M++]<<Un,Un+=8,Zt+=Pi[M++]<<Un,Un+=8),ui=yi[Zt&Mi];n:for(;;){if(yn=ui>>>24,Zt>>>=yn,Un-=yn,yn=ui>>>16&255,yn&16){if(lr=ui&65535,yn&=15,Un<yn&&(Zt+=Pi[M++]<<Un,Un+=8,Un<yn&&(Zt+=Pi[M++]<<Un,Un+=8)),lr+=Zt&(1<<yn)-1,lr>nn){D.msg="invalid distance too far back",Bi.mode=fs;break e}if(Zt>>>=yn,Un-=yn,yn=le-Ze,lr>yn){if(yn=lr-yn,yn>tt&&Bi.sane){D.msg="invalid distance too far back",Bi.mode=fs;break e}if(ei=0,rr=cn,Bn===0){if(ei+=Be-yn,yn<Ri){Ri-=yn;do gi[le++]=cn[ei++];while(--yn);ei=le-lr,rr=gi}}else if(Bn<yn){if(ei+=Be+Bn-yn,yn-=Bn,yn<Ri){Ri-=yn;do gi[le++]=cn[ei++];while(--yn);if(ei=0,Bn<Ri){yn=Bn,Ri-=yn;do gi[le++]=cn[ei++];while(--yn);ei=le-lr,rr=gi}}}else if(ei+=Bn-yn,yn<Ri){Ri-=yn;do gi[le++]=cn[ei++];while(--yn);ei=le-lr,rr=gi}for(;Ri>2;)gi[le++]=rr[ei++],gi[le++]=rr[ei++],gi[le++]=rr[ei++],Ri-=3;Ri&&(gi[le++]=rr[ei++],Ri>1&&(gi[le++]=rr[ei++]))}else{ei=le-lr;do gi[le++]=gi[ei++],gi[le++]=gi[ei++],gi[le++]=gi[ei++],Ri-=3;while(Ri>2);Ri&&(gi[le++]=gi[ei++],Ri>1&&(gi[le++]=gi[ei++]))}}else if(yn&64){D.msg="invalid distance code",Bi.mode=fs;break e}else{ui=yi[(ui&65535)+(Zt&(1<<yn)-1)];continue n}break}}else if(yn&64)if(yn&32){Bi.mode=Gs;break e}else{D.msg="invalid literal/length code",Bi.mode=fs;break e}else{ui=Wi[(ui&65535)+(Zt&(1<<yn)-1)];continue t}break}}while(M<ne&&le<Oe);Ri=Un>>3,M-=Ri,Un-=Ri<<3,Zt&=(1<<Un)-1,D.next_in=M,D.next_out=le,D.avail_in=M<ne?5+(ne-M):5-(M-ne),D.avail_out=le<Oe?257+(Oe-le):257-(le-Oe),Bi.hold=Zt,Bi.bits=Un};const qr=15,es=852,Lr=592,Ts=0,os=1,Br=2,Qe=new Uint16Array([3,4,5,6,7,8,9,10,11,13,15,17,19,23,27,31,35,43,51,59,67,83,99,115,131,163,195,227,258,0,0]),dn=new Uint8Array([16,16,16,16,16,16,16,16,17,17,17,17,18,18,18,18,19,19,19,19,20,20,20,20,21,21,21,21,16,72,78]),On=new Uint16Array([1,2,3,4,5,7,9,13,17,25,33,49,65,97,129,193,257,385,513,769,1025,1537,2049,3073,4097,6145,8193,12289,16385,24577,0,0]),Wn=new Uint8Array([16,16,16,16,17,17,18,18,19,19,20,20,21,21,22,22,23,23,24,24,25,25,26,26,27,27,28,28,29,29,64,64]);var Kn=(u,D,d,M,ne,le,Ze,Oe)=>{const nn=Oe.bits;let Be=0,tt=0,Bn=0,cn=0,Zt=0,Un=0,Wi=0,yi=0,fi=0,Mi=0,ui,yn,Ri,lr,ei,rr=null,Pi;const gi=new Uint16Array(qr+1),Bi=new Uint16Array(qr+1);let Fs=null,Bo,ta,zs;for(Be=0;Be<=qr;Be++)gi[Be]=0;for(tt=0;tt<M;tt++)gi[D[d+tt]]++;for(Zt=nn,cn=qr;cn>=1&&gi[cn]===0;cn--);if(Zt>cn&&(Zt=cn),cn===0)return ne[le++]=1<<24|64<<16|0,ne[le++]=1<<24|64<<16|0,Oe.bits=1,0;for(Bn=1;Bn<cn&&gi[Bn]===0;Bn++);for(Zt<Bn&&(Zt=Bn),yi=1,Be=1;Be<=qr;Be++)if(yi<<=1,yi-=gi[Be],yi<0)return-1;if(yi>0&&(u===Ts||cn!==1))return-1;for(Bi[1]=0,Be=1;Be<qr;Be++)Bi[Be+1]=Bi[Be]+gi[Be];for(tt=0;tt<M;tt++)D[d+tt]!==0&&(Ze[Bi[D[d+tt]]++]=tt);if(u===Ts?(rr=Fs=Ze,Pi=20):u===os?(rr=Qe,Fs=dn,Pi=257):(rr=On,Fs=Wn,Pi=0),Mi=0,tt=0,Be=Bn,ei=le,Un=Zt,Wi=0,Ri=-1,fi=1<<Zt,lr=fi-1,u===os&&fi>es||u===Br&&fi>Lr)return 1;for(;;){Bo=Be-Wi,Ze[tt]+1<Pi?(ta=0,zs=Ze[tt]):Ze[tt]>=Pi?(ta=Fs[Ze[tt]-Pi],zs=rr[Ze[tt]-Pi]):(ta=96,zs=0),ui=1<<Be-Wi,yn=1<<Un,Bn=yn;do yn-=ui,ne[ei+(Mi>>Wi)+yn]=Bo<<24|ta<<16|zs|0;while(yn!==0);for(ui=1<<Be-1;Mi&ui;)ui>>=1;if(ui!==0?(Mi&=ui-1,Mi+=ui):Mi=0,tt++,--gi[Be]===0){if(Be===cn)break;Be=D[d+Ze[tt]]}if(Be>Zt&&(Mi&lr)!==Ri){for(Wi===0&&(Wi=Zt),ei+=Bn,Un=Be-Wi,yi=1<<Un;Un+Wi<cn&&(yi-=gi[Un+Wi],!(yi<=0));)Un++,yi<<=1;if(fi+=1<<Un,u===os&&fi>es||u===Br&&fi>Lr)return 1;Ri=Mi&lr,ne[Ri]=Zt<<24|Un<<16|ei-le|0}}return Mi!==0&&(ne[ei+Mi]=Be-Wi<<24|64<<16|0),Oe.bits=Zt,0};const qi=0,Hi=1,cr=2,{Z_FINISH:$i,Z_BLOCK:Ar,Z_TREES:Mr,Z_OK:Pr,Z_STREAM_END:Zr,Z_NEED_DICT:ls,Z_STREAM_ERROR:yr,Z_DATA_ERROR:wr,Z_MEM_ERROR:ts,Z_BUF_ERROR:ds,Z_DEFLATED:Qr}=ue,Cr=16180,ss=16181,Ds=16182,oa=16183,Vs=16184,Ws=16185,Ms=16186,ar=16187,Ki=16188,er=16189,Sr=16190,fr=16191,bs=16192,Is=16193,ps=16194,Zs=16195,Ps=16196,gs=16197,Os=16198,Cs=16199,ks=16200,Or=16201,zr=16202,Ja=16203,jt=16204,la=16205,ua=16206,Ba=16207,Xa=16208,or=16209,Ma=16210,qa=16211,Yo=852,Pa=592,Ns=15,$a=u=>(u>>>24&255)+(u>>>8&65280)+((u&65280)<<8)+((u&255)<<24);function Jo(){this.strm=null,this.mode=0,this.last=!1,this.wrap=0,this.havedict=!1,this.flags=0,this.dmax=0,this.check=0,this.total=0,this.head=null,this.wbits=0,this.wsize=0,this.whave=0,this.wnext=0,this.window=null,this.hold=0,this.bits=0,this.length=0,this.offset=0,this.extra=0,this.lencode=null,this.distcode=null,this.lenbits=0,this.distbits=0,this.ncode=0,this.nlen=0,this.ndist=0,this.have=0,this.next=null,this.lens=new Uint16Array(320),this.work=new Uint16Array(288),this.lendyn=null,this.distdyn=null,this.sane=0,this.back=0,this.was=0}const Ls=u=>{if(!u)return 1;const D=u.state;return!D||D.strm!==u||D.mode<Cr||D.mode>qa?1:0},eo=u=>{if(Ls(u))return yr;const D=u.state;return u.total_in=u.total_out=D.total=0,u.msg="",D.wrap&&(u.adler=D.wrap&1),D.mode=Cr,D.last=0,D.havedict=0,D.flags=-1,D.dmax=32768,D.head=null,D.hold=0,D.bits=0,D.lencode=D.lendyn=new Int32Array(Yo),D.distcode=D.distdyn=new Int32Array(Pa),D.sane=1,D.back=-1,Pr},Oa=u=>{if(Ls(u))return yr;const D=u.state;return D.wsize=0,D.whave=0,D.wnext=0,eo(u)},ha=(u,D)=>{let d;if(Ls(u))return yr;const M=u.state;return D<0?(d=0,D=-D):(d=(D>>4)+5,D<48&&(D&=15)),D&&(D<8||D>15)?yr:(M.window!==null&&M.wbits!==D&&(M.window=null),M.wrap=d,M.wbits=D,Oa(u))},Qs=(u,D)=>{if(!u)return yr;const d=new Jo;u.state=d,d.strm=u,d.window=null,d.mode=Cr;const M=ha(u,D);return M!==Pr&&(u.state=null),M},Ys=u=>Qs(u,Ns);let to=!0,fa,da;const Na=u=>{if(to){fa=new Int32Array(512),da=new Int32Array(32);let D=0;for(;D<144;)u.lens[D++]=8;for(;D<256;)u.lens[D++]=9;for(;D<280;)u.lens[D++]=7;for(;D<288;)u.lens[D++]=8;for(Kn(Hi,u.lens,0,288,fa,0,u.work,{bits:9}),D=0;D<32;)u.lens[D++]=5;Kn(cr,u.lens,0,32,da,0,u.work,{bits:5}),to=!1}u.lencode=fa,u.lenbits=9,u.distcode=da,u.distbits=5},no=(u,D,d,M)=>{let ne;const le=u.state;return le.window===null&&(le.wsize=1<<le.wbits,le.wnext=0,le.whave=0,le.window=new Uint8Array(le.wsize)),M>=le.wsize?(le.window.set(D.subarray(d-le.wsize,d),0),le.wnext=0,le.whave=le.wsize):(ne=le.wsize-le.wnext,ne>M&&(ne=M),le.window.set(D.subarray(d-M,d-M+ne),le.wnext),M-=ne,M?(le.window.set(D.subarray(d-M,d),0),le.wnext=M,le.whave=le.wsize):(le.wnext+=ne,le.wnext===le.wsize&&(le.wnext=0),le.whave<le.wsize&&(le.whave+=ne))),0},pa=(u,D)=>{let d,M,ne,le,Ze,Oe,nn,Be,tt,Bn,cn,Zt,Un,Wi,yi=0,fi,Mi,ui,yn,Ri,lr,ei,rr;const Pi=new Uint8Array(4);let gi,Bi;const Fs=new Uint8Array([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]);if(Ls(u)||!u.output||!u.input&&u.avail_in!==0)return yr;d=u.state,d.mode===fr&&(d.mode=bs),Ze=u.next_out,ne=u.output,nn=u.avail_out,le=u.next_in,M=u.input,Oe=u.avail_in,Be=d.hold,tt=d.bits,Bn=Oe,cn=nn,rr=Pr;e:for(;;)switch(d.mode){case Cr:if(d.wrap===0){d.mode=bs;break}for(;tt<16;){if(Oe===0)break e;Oe--,Be+=M[le++]<<tt,tt+=8}if(d.wrap&2&&Be===35615){d.wbits===0&&(d.wbits=15),d.check=0,Pi[0]=Be&255,Pi[1]=Be>>>8&255,d.check=De(d.check,Pi,2,0),Be=0,tt=0,d.mode=ss;break}if(d.head&&(d.head.done=!1),!(d.wrap&1)||(((Be&255)<<8)+(Be>>8))%31){u.msg="incorrect header check",d.mode=or;break}if((Be&15)!==Qr){u.msg="unknown compression method",d.mode=or;break}if(Be>>>=4,tt-=4,ei=(Be&15)+8,d.wbits===0&&(d.wbits=ei),ei>15||ei>d.wbits){u.msg="invalid window size",d.mode=or;break}d.dmax=1<<d.wbits,d.flags=0,u.adler=d.check=1,d.mode=Be&512?er:fr,Be=0,tt=0;break;case ss:for(;tt<16;){if(Oe===0)break e;Oe--,Be+=M[le++]<<tt,tt+=8}if(d.flags=Be,(d.flags&255)!==Qr){u.msg="unknown compression method",d.mode=or;break}if(d.flags&57344){u.msg="unknown header flags set",d.mode=or;break}d.head&&(d.head.text=Be>>8&1),d.flags&512&&d.wrap&4&&(Pi[0]=Be&255,Pi[1]=Be>>>8&255,d.check=De(d.check,Pi,2,0)),Be=0,tt=0,d.mode=Ds;case Ds:for(;tt<32;){if(Oe===0)break e;Oe--,Be+=M[le++]<<tt,tt+=8}d.head&&(d.head.time=Be),d.flags&512&&d.wrap&4&&(Pi[0]=Be&255,Pi[1]=Be>>>8&255,Pi[2]=Be>>>16&255,Pi[3]=Be>>>24&255,d.check=De(d.check,Pi,4,0)),Be=0,tt=0,d.mode=oa;case oa:for(;tt<16;){if(Oe===0)break e;Oe--,Be+=M[le++]<<tt,tt+=8}d.head&&(d.head.xflags=Be&255,d.head.os=Be>>8),d.flags&512&&d.wrap&4&&(Pi[0]=Be&255,Pi[1]=Be>>>8&255,d.check=De(d.check,Pi,2,0)),Be=0,tt=0,d.mode=Vs;case Vs:if(d.flags&1024){for(;tt<16;){if(Oe===0)break e;Oe--,Be+=M[le++]<<tt,tt+=8}d.length=Be,d.head&&(d.head.extra_len=Be),d.flags&512&&d.wrap&4&&(Pi[0]=Be&255,Pi[1]=Be>>>8&255,d.check=De(d.check,Pi,2,0)),Be=0,tt=0}else d.head&&(d.head.extra=null);d.mode=Ws;case Ws:if(d.flags&1024&&(Zt=d.length,Zt>Oe&&(Zt=Oe),Zt&&(d.head&&(ei=d.head.extra_len-d.length,d.head.extra||(d.head.extra=new Uint8Array(d.head.extra_len)),d.head.extra.set(M.subarray(le,le+Zt),ei)),d.flags&512&&d.wrap&4&&(d.check=De(d.check,M,Zt,le)),Oe-=Zt,le+=Zt,d.length-=Zt),d.length))break e;d.length=0,d.mode=Ms;case Ms:if(d.flags&2048){if(Oe===0)break e;Zt=0;do ei=M[le+Zt++],d.head&&ei&&d.length<65536&&(d.head.name+=String.fromCharCode(ei));while(ei&&Zt<Oe);if(d.flags&512&&d.wrap&4&&(d.check=De(d.check,M,Zt,le)),Oe-=Zt,le+=Zt,ei)break e}else d.head&&(d.head.name=null);d.length=0,d.mode=ar;case ar:if(d.flags&4096){if(Oe===0)break e;Zt=0;do ei=M[le+Zt++],d.head&&ei&&d.length<65536&&(d.head.comment+=String.fromCharCode(ei));while(ei&&Zt<Oe);if(d.flags&512&&d.wrap&4&&(d.check=De(d.check,M,Zt,le)),Oe-=Zt,le+=Zt,ei)break e}else d.head&&(d.head.comment=null);d.mode=Ki;case Ki:if(d.flags&512){for(;tt<16;){if(Oe===0)break e;Oe--,Be+=M[le++]<<tt,tt+=8}if(d.wrap&4&&Be!==(d.check&65535)){u.msg="header crc mismatch",d.mode=or;break}Be=0,tt=0}d.head&&(d.head.hcrc=d.flags>>9&1,d.head.done=!0),u.adler=d.check=0,d.mode=fr;break;case er:for(;tt<32;){if(Oe===0)break e;Oe--,Be+=M[le++]<<tt,tt+=8}u.adler=d.check=$a(Be),Be=0,tt=0,d.mode=Sr;case Sr:if(d.havedict===0)return u.next_out=Ze,u.avail_out=nn,u.next_in=le,u.avail_in=Oe,d.hold=Be,d.bits=tt,ls;u.adler=d.check=1,d.mode=fr;case fr:if(D===Ar||D===Mr)break e;case bs:if(d.last){Be>>>=tt&7,tt-=tt&7,d.mode=ua;break}for(;tt<3;){if(Oe===0)break e;Oe--,Be+=M[le++]<<tt,tt+=8}switch(d.last=Be&1,Be>>>=1,tt-=1,Be&3){case 0:d.mode=Is;break;case 1:if(Na(d),d.mode=Cs,D===Mr){Be>>>=2,tt-=2;break e}break;case 2:d.mode=Ps;break;case 3:u.msg="invalid block type",d.mode=or}Be>>>=2,tt-=2;break;case Is:for(Be>>>=tt&7,tt-=tt&7;tt<32;){if(Oe===0)break e;Oe--,Be+=M[le++]<<tt,tt+=8}if((Be&65535)!==(Be>>>16^65535)){u.msg="invalid stored block lengths",d.mode=or;break}if(d.length=Be&65535,Be=0,tt=0,d.mode=ps,D===Mr)break e;case ps:d.mode=Zs;case Zs:if(Zt=d.length,Zt){if(Zt>Oe&&(Zt=Oe),Zt>nn&&(Zt=nn),Zt===0)break e;ne.set(M.subarray(le,le+Zt),Ze),Oe-=Zt,le+=Zt,nn-=Zt,Ze+=Zt,d.length-=Zt;break}d.mode=fr;break;case Ps:for(;tt<14;){if(Oe===0)break e;Oe--,Be+=M[le++]<<tt,tt+=8}if(d.nlen=(Be&31)+257,Be>>>=5,tt-=5,d.ndist=(Be&31)+1,Be>>>=5,tt-=5,d.ncode=(Be&15)+4,Be>>>=4,tt-=4,d.nlen>286||d.ndist>30){u.msg="too many length or distance symbols",d.mode=or;break}d.have=0,d.mode=gs;case gs:for(;d.have<d.ncode;){for(;tt<3;){if(Oe===0)break e;Oe--,Be+=M[le++]<<tt,tt+=8}d.lens[Fs[d.have++]]=Be&7,Be>>>=3,tt-=3}for(;d.have<19;)d.lens[Fs[d.have++]]=0;if(d.lencode=d.lendyn,d.lenbits=7,gi={bits:d.lenbits},rr=Kn(qi,d.lens,0,19,d.lencode,0,d.work,gi),d.lenbits=gi.bits,rr){u.msg="invalid code lengths set",d.mode=or;break}d.have=0,d.mode=Os;case Os:for(;d.have<d.nlen+d.ndist;){for(;yi=d.lencode[Be&(1<<d.lenbits)-1],fi=yi>>>24,Mi=yi>>>16&255,ui=yi&65535,!(fi<=tt);){if(Oe===0)break e;Oe--,Be+=M[le++]<<tt,tt+=8}if(ui<16)Be>>>=fi,tt-=fi,d.lens[d.have++]=ui;else{if(ui===16){for(Bi=fi+2;tt<Bi;){if(Oe===0)break e;Oe--,Be+=M[le++]<<tt,tt+=8}if(Be>>>=fi,tt-=fi,d.have===0){u.msg="invalid bit length repeat",d.mode=or;break}ei=d.lens[d.have-1],Zt=3+(Be&3),Be>>>=2,tt-=2}else if(ui===17){for(Bi=fi+3;tt<Bi;){if(Oe===0)break e;Oe--,Be+=M[le++]<<tt,tt+=8}Be>>>=fi,tt-=fi,ei=0,Zt=3+(Be&7),Be>>>=3,tt-=3}else{for(Bi=fi+7;tt<Bi;){if(Oe===0)break e;Oe--,Be+=M[le++]<<tt,tt+=8}Be>>>=fi,tt-=fi,ei=0,Zt=11+(Be&127),Be>>>=7,tt-=7}if(d.have+Zt>d.nlen+d.ndist){u.msg="invalid bit length repeat",d.mode=or;break}for(;Zt--;)d.lens[d.have++]=ei}}if(d.mode===or)break;if(d.lens[256]===0){u.msg="invalid code -- missing end-of-block",d.mode=or;break}if(d.lenbits=9,gi={bits:d.lenbits},rr=Kn(Hi,d.lens,0,d.nlen,d.lencode,0,d.work,gi),d.lenbits=gi.bits,rr){u.msg="invalid literal/lengths set",d.mode=or;break}if(d.distbits=6,d.distcode=d.distdyn,gi={bits:d.distbits},rr=Kn(cr,d.lens,d.nlen,d.ndist,d.distcode,0,d.work,gi),d.distbits=gi.bits,rr){u.msg="invalid distances set",d.mode=or;break}if(d.mode=Cs,D===Mr)break e;case Cs:d.mode=ks;case ks:if(Oe>=6&&nn>=258){u.next_out=Ze,u.avail_out=nn,u.next_in=le,u.avail_in=Oe,d.hold=Be,d.bits=tt,Hs(u,cn),Ze=u.next_out,ne=u.output,nn=u.avail_out,le=u.next_in,M=u.input,Oe=u.avail_in,Be=d.hold,tt=d.bits,d.mode===fr&&(d.back=-1);break}for(d.back=0;yi=d.lencode[Be&(1<<d.lenbits)-1],fi=yi>>>24,Mi=yi>>>16&255,ui=yi&65535,!(fi<=tt);){if(Oe===0)break e;Oe--,Be+=M[le++]<<tt,tt+=8}if(Mi&&!(Mi&240)){for(yn=fi,Ri=Mi,lr=ui;yi=d.lencode[lr+((Be&(1<<yn+Ri)-1)>>yn)],fi=yi>>>24,Mi=yi>>>16&255,ui=yi&65535,!(yn+fi<=tt);){if(Oe===0)break e;Oe--,Be+=M[le++]<<tt,tt+=8}Be>>>=yn,tt-=yn,d.back+=yn}if(Be>>>=fi,tt-=fi,d.back+=fi,d.length=ui,Mi===0){d.mode=la;break}if(Mi&32){d.back=-1,d.mode=fr;break}if(Mi&64){u.msg="invalid literal/length code",d.mode=or;break}d.extra=Mi&15,d.mode=Or;case Or:if(d.extra){for(Bi=d.extra;tt<Bi;){if(Oe===0)break e;Oe--,Be+=M[le++]<<tt,tt+=8}d.length+=Be&(1<<d.extra)-1,Be>>>=d.extra,tt-=d.extra,d.back+=d.extra}d.was=d.length,d.mode=zr;case zr:for(;yi=d.distcode[Be&(1<<d.distbits)-1],fi=yi>>>24,Mi=yi>>>16&255,ui=yi&65535,!(fi<=tt);){if(Oe===0)break e;Oe--,Be+=M[le++]<<tt,tt+=8}if(!(Mi&240)){for(yn=fi,Ri=Mi,lr=ui;yi=d.distcode[lr+((Be&(1<<yn+Ri)-1)>>yn)],fi=yi>>>24,Mi=yi>>>16&255,ui=yi&65535,!(yn+fi<=tt);){if(Oe===0)break e;Oe--,Be+=M[le++]<<tt,tt+=8}Be>>>=yn,tt-=yn,d.back+=yn}if(Be>>>=fi,tt-=fi,d.back+=fi,Mi&64){u.msg="invalid distance code",d.mode=or;break}d.offset=ui,d.extra=Mi&15,d.mode=Ja;case Ja:if(d.extra){for(Bi=d.extra;tt<Bi;){if(Oe===0)break e;Oe--,Be+=M[le++]<<tt,tt+=8}d.offset+=Be&(1<<d.extra)-1,Be>>>=d.extra,tt-=d.extra,d.back+=d.extra}if(d.offset>d.dmax){u.msg="invalid distance too far back",d.mode=or;break}d.mode=jt;case jt:if(nn===0)break e;if(Zt=cn-nn,d.offset>Zt){if(Zt=d.offset-Zt,Zt>d.whave&&d.sane){u.msg="invalid distance too far back",d.mode=or;break}Zt>d.wnext?(Zt-=d.wnext,Un=d.wsize-Zt):Un=d.wnext-Zt,Zt>d.length&&(Zt=d.length),Wi=d.window}else Wi=ne,Un=Ze-d.offset,Zt=d.length;Zt>nn&&(Zt=nn),nn-=Zt,d.length-=Zt;do ne[Ze++]=Wi[Un++];while(--Zt);d.length===0&&(d.mode=ks);break;case la:if(nn===0)break e;ne[Ze++]=d.length,nn--,d.mode=ks;break;case ua:if(d.wrap){for(;tt<32;){if(Oe===0)break e;Oe--,Be|=M[le++]<<tt,tt+=8}if(cn-=nn,u.total_out+=cn,d.total+=cn,d.wrap&4&&cn&&(u.adler=d.check=d.flags?De(d.check,ne,cn,Ze-cn):Vt(d.check,ne,cn,Ze-cn)),cn=nn,d.wrap&4&&(d.flags?Be:$a(Be))!==d.check){u.msg="incorrect data check",d.mode=or;break}Be=0,tt=0}d.mode=Ba;case Ba:if(d.wrap&&d.flags){for(;tt<32;){if(Oe===0)break e;Oe--,Be+=M[le++]<<tt,tt+=8}if(d.wrap&4&&Be!==(d.total&4294967295)){u.msg="incorrect length check",d.mode=or;break}Be=0,tt=0}d.mode=Xa;case Xa:rr=Zr;break e;case or:rr=wr;break e;case Ma:return ts;case qa:default:return yr}return u.next_out=Ze,u.avail_out=nn,u.next_in=le,u.avail_in=Oe,d.hold=Be,d.bits=tt,(d.wsize||cn!==u.avail_out&&d.mode<or&&(d.mode<ua||D!==$i))&&no(u,u.output,u.next_out,cn-u.avail_out),Bn-=u.avail_in,cn-=u.avail_out,u.total_in+=Bn,u.total_out+=cn,d.total+=cn,d.wrap&4&&cn&&(u.adler=d.check=d.flags?De(d.check,ne,cn,u.next_out-cn):Vt(d.check,ne,cn,u.next_out-cn)),u.data_type=d.bits+(d.last?64:0)+(d.mode===fr?128:0)+(d.mode===Cs||d.mode===ps?256:0),(Bn===0&&cn===0||D===$i)&&rr===Pr&&(rr=ds),rr},Xo=u=>{if(Ls(u))return yr;let D=u.state;return D.window&&(D.window=null),u.state=null,Pr},qo=(u,D)=>{if(Ls(u))return yr;const d=u.state;return d.wrap&2?(d.head=D,D.done=!1,Pr):yr},io=(u,D)=>{const d=D.length;let M,ne,le;return Ls(u)||(M=u.state,M.wrap!==0&&M.mode!==Sr)?yr:M.mode===Sr&&(ne=1,ne=Vt(ne,D,d,0),ne!==M.check)?wr:(le=no(u,D,d,d),le?(M.mode=Ma,ts):(M.havedict=1,Pr))};var ro=Oa,$o=ha,so=eo,el=Ys,tl=Qs,Ua=pa,nl=Xo,il=qo,rl=io,sl="pako inflate (from Nodeca project)",ms={inflateReset:ro,inflateReset2:$o,inflateResetKeep:so,inflateInit:el,inflateInit2:tl,inflate:Ua,inflateEnd:nl,inflateGetHeader:il,inflateSetDictionary:rl,inflateInfo:sl};function al(){this.text=0,this.time=0,this.xflags=0,this.os=0,this.extra=null,this.extra_len=0,this.name="",this.comment="",this.hcrc=0,this.done=!1}var ol=al;const ao=Object.prototype.toString,{Z_NO_FLUSH:ll,Z_FINISH:ga,Z_OK:Js,Z_STREAM_END:ma,Z_NEED_DICT:va,Z_STREAM_ERROR:ul,Z_DATA_ERROR:_a,Z_MEM_ERROR:$r}=ue;function Yr(u){this.options=gr.assign({chunkSize:1024*64,windowBits:15,to:""},u||{});const D=this.options;D.raw&&D.windowBits>=0&&D.windowBits<16&&(D.windowBits=-D.windowBits,D.windowBits===0&&(D.windowBits=-15)),D.windowBits>=0&&D.windowBits<16&&!(u&&u.windowBits)&&(D.windowBits+=32),D.windowBits>15&&D.windowBits<48&&(D.windowBits&15||(D.windowBits|=15)),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new mr,this.strm.avail_out=0;let d=ms.inflateInit2(this.strm,D.windowBits);if(d!==Js)throw new Error(te[d]);if(this.header=new ol,ms.inflateGetHeader(this.strm,this.header),D.dictionary&&(typeof D.dictionary=="string"?D.dictionary=bi.string2buf(D.dictionary):ao.call(D.dictionary)==="[object ArrayBuffer]"&&(D.dictionary=new Uint8Array(D.dictionary)),D.raw&&(d=ms.inflateSetDictionary(this.strm,D.dictionary),d!==Js)))throw new Error(te[d])}Yr.prototype.push=function(u,D){const d=this.strm,M=this.options.chunkSize,ne=this.options.dictionary;let le,Ze,Oe;if(this.ended)return!1;for(D===~~D?Ze=D:Ze=D===!0?ga:ll,ao.call(u)==="[object ArrayBuffer]"?d.input=new Uint8Array(u):d.input=u,d.next_in=0,d.avail_in=d.input.length;;){for(d.avail_out===0&&(d.output=new Uint8Array(M),d.next_out=0,d.avail_out=M),le=ms.inflate(d,Ze),le===va&&ne&&(le=ms.inflateSetDictionary(d,ne),le===Js?le=ms.inflate(d,Ze):le===_a&&(le=va));d.avail_in>0&&le===ma&&d.state.wrap>0&&u[d.next_in]!==0;)ms.inflateReset(d),le=ms.inflate(d,Ze);switch(le){case ul:case _a:case va:case $r:return this.onEnd(le),this.ended=!0,!1}if(Oe=d.avail_out,d.next_out&&(d.avail_out===0||le===ma))if(this.options.to==="string"){let nn=bi.utf8border(d.output,d.next_out),Be=d.next_out-nn,tt=bi.buf2string(d.output,nn);d.next_out=Be,d.avail_out=M-Be,Be&&d.output.set(d.output.subarray(nn,nn+Be),0),this.onData(tt)}else this.onData(d.output.length===d.next_out?d.output:d.output.subarray(0,d.next_out));if(!(le===Js&&Oe===0)){if(le===ma)return le=ms.inflateEnd(this.strm),this.onEnd(le),this.ended=!0,!0;if(d.avail_in===0)break}}return!0},Yr.prototype.onData=function(u){this.chunks.push(u)},Yr.prototype.onEnd=function(u){u===Js&&(this.options.to==="string"?this.result=this.chunks.join(""):this.result=gr.flattenChunks(this.chunks)),this.chunks=[],this.err=u,this.msg=this.strm.msg};function Xs(u,D){const d=new Yr(D);if(d.push(u),d.err)throw d.msg||te[d.err];return d.result}function cl(u,D){return D=D||{},D.raw=!0,Xs(u,D)}var ya=Yr,hl=Xs,fl=cl,dl=Xs,pl=ue,oo={Inflate:ya,inflate:hl,inflateRaw:fl,ungzip:dl,constants:pl};const{Deflate:lo,deflate:za,deflateRaw:uo,gzip:gl}=rs,{Inflate:co,inflate:ml,inflateRaw:ho,ungzip:vl}=oo;var fo=lo,_l=za,yl=uo,El=gl,Ea=co,po=ml,go=ho,qs=vl,Al=ue,ru={Deflate:fo,deflate:_l,deflateRaw:yl,gzip:El,Inflate:Ea,inflate:po,inflateRaw:go,ungzip:qs,constants:Al};const Tr=[];for(let u=0;u<256;u++){let D=u;for(let d=0;d<8;d++)D&1?D=3988292384^D>>>1:D=D>>>1;Tr[u]=D}const vs=4294967295;function ja(u,D,d){let M=u;for(let ne=0;ne<d;ne++)M=Tr[(M^D[ne])&255]^M>>>8;return M}function mo(u,D){return(ja(vs,u,D)^vs)>>>0}function vo(u,D,d){const M=u.readUint32(),ne=mo(new Uint8Array(u.buffer,u.byteOffset+u.offset-D-4,D),D);if(ne!==M)throw new Error(`CRC mismatch for chunk ${d}. Expected ${M}, found ${ne}`)}function _o(u,D){u.writeUint32(mo(new Uint8Array(u.buffer,u.byteOffset+u.offset-D,D),D))}function Aa(u,D,d){for(let M=0;M<d;M++)D[M]=u[M]}function Rs(u,D,d,M){let ne=0;for(;ne<M;ne++)D[ne]=u[ne];for(;ne<d;ne++)D[ne]=u[ne]+D[ne-M]&255}function yo(u,D,d,M){let ne=0;if(d.length===0)for(;ne<M;ne++)D[ne]=u[ne];else for(;ne<M;ne++)D[ne]=u[ne]+d[ne]&255}function _s(u,D,d,M,ne){let le=0;if(d.length===0){for(;le<ne;le++)D[le]=u[le];for(;le<M;le++)D[le]=u[le]+(D[le-ne]>>1)&255}else{for(;le<ne;le++)D[le]=u[le]+(d[le]>>1)&255;for(;le<M;le++)D[le]=u[le]+(D[le-ne]+d[le]>>1)&255}}function ft(u,D,d,M,ne){let le=0;if(d.length===0){for(;le<ne;le++)D[le]=u[le];for(;le<M;le++)D[le]=u[le]+D[le-ne]&255}else{for(;le<ne;le++)D[le]=u[le]+d[le]&255;for(;le<M;le++)D[le]=u[le]+Eo(D[le-ne],d[le],d[le-ne])&255}}function Eo(u,D,d){const M=u+D-d,ne=Math.abs(M-u),le=Math.abs(M-D),Ze=Math.abs(M-d);return ne<=le&&ne<=Ze?u:le<=Ze?D:d}function Ka(u,D,d,M,ne,le){switch(u){case 0:Aa(D,d,ne);break;case 1:Rs(D,d,ne,le);break;case 2:yo(D,d,M,ne);break;case 3:_s(D,d,M,ne,le);break;case 4:ft(D,d,M,ne,le);break;default:throw new Error(`Unsupported filter: ${u}`)}}const bl=new Uint16Array([255]),xl=new Uint8Array(bl.buffer)[0]===255;function Ao(u){const{data:D,width:d,height:M,channels:ne,depth:le}=u,Ze=[{x:0,y:0,xStep:8,yStep:8},{x:4,y:0,xStep:8,yStep:8},{x:0,y:4,xStep:4,yStep:8},{x:2,y:0,xStep:4,yStep:4},{x:0,y:2,xStep:2,yStep:4},{x:1,y:0,xStep:2,yStep:2},{x:0,y:1,xStep:1,yStep:2}],Oe=Math.ceil(le/8)*ne,nn=new Uint8Array(M*d*Oe);let Be=0;for(let tt=0;tt<7;tt++){const Bn=Ze[tt],cn=Math.ceil((d-Bn.x)/Bn.xStep),Zt=Math.ceil((M-Bn.y)/Bn.yStep);if(cn<=0||Zt<=0)continue;const Un=cn*Oe,Wi=new Uint8Array(Un);for(let yi=0;yi<Zt;yi++){const fi=D[Be++],Mi=D.subarray(Be,Be+Un);Be+=Un;const ui=new Uint8Array(Un);Ka(fi,Mi,ui,Wi,Un,Oe),Wi.set(ui);for(let yn=0;yn<cn;yn++){const Ri=Bn.x+yn*Bn.xStep,lr=Bn.y+yi*Bn.yStep;if(!(Ri>=d||lr>=M))for(let ei=0;ei<Oe;ei++)nn[(lr*d+Ri)*Oe+ei]=ui[yn*Oe+ei]}}}if(le===16){const tt=new Uint16Array(nn.buffer);if(xl)for(let Bn=0;Bn<tt.length;Bn++)tt[Bn]=wl(tt[Bn]);return tt}else return nn}function wl(u){return(u&255)<<8|u>>8&255}const Sl=new Uint16Array([255]),Tl=new Uint8Array(Sl.buffer)[0]===255,Us=new Uint8Array(0);function xa(u){const{data:D,width:d,height:M,channels:ne,depth:le}=u,Ze=Math.ceil(le/8)*ne,Oe=Math.ceil(le/8*ne*d),nn=new Uint8Array(M*Oe);let Be=Us,tt=0,Bn,cn;for(let Zt=0;Zt<M;Zt++){switch(Bn=D.subarray(tt+1,tt+1+Oe),cn=nn.subarray(Zt*Oe,(Zt+1)*Oe),D[tt]){case 0:Aa(Bn,cn,Oe);break;case 1:Rs(Bn,cn,Oe,Ze);break;case 2:yo(Bn,cn,Be,Oe);break;case 3:_s(Bn,cn,Be,Oe,Ze);break;case 4:ft(Bn,cn,Be,Oe,Ze);break;default:throw new Error(`Unsupported filter: ${D[tt]}`)}Be=cn,tt+=Oe+1}if(le===16){const Zt=new Uint16Array(nn.buffer);if(Tl)for(let Un=0;Un<Zt.length;Un++)Zt[Un]=bo(Zt[Un]);return Zt}else return nn}function bo(u){return(u&255)<<8|u>>8&255}const xs=Uint8Array.of(137,80,78,71,13,10,26,10);function ns(u){u.writeBytes(xs)}function xo(u){if(!wo(u.readBytes(xs.length)))throw new Error("wrong PNG signature")}function wo(u){if(u.length<xs.length)return!1;for(let D=0;D<xs.length;D++)if(u[D]!==xs[D])return!1;return!0}const Ga="tEXt",So=0,$s=new TextDecoder("latin1");function To(u){if(us(u),u.length===0||u.length>79)throw new Error("keyword length must be between 1 and 79")}const Do=/^[\u0000-\u00FF]*$/;function us(u){if(!Do.test(u))throw new Error("invalid latin1 text")}function wa(u,D,d){const M=Io(D);u[M]=Ha(D,d-M.length-1)}function Dl(u,D,d){To(D),us(d);const M=D.length+1+d.length;u.writeUint32(M),u.writeChars(Ga),u.writeChars(D),u.writeByte(So),u.writeChars(d),writeCrc(u,M+4)}function Io(u){for(u.mark();u.readByte()!==So;);const D=u.offset;u.reset();const d=$s.decode(u.readBytes(D-u.offset-1));return u.skip(1),To(d),d}function Ha(u,D){return $s.decode(u.readBytes(D))}const Rr={UNKNOWN:-1,GREYSCALE:0,TRUECOLOUR:2,INDEXED_COLOUR:3,GREYSCALE_ALPHA:4,TRUECOLOUR_ALPHA:6},Va={UNKNOWN:-1,DEFLATE:0},Co={UNKNOWN:-1,ADAPTIVE:0},Sa={UNKNOWN:-1,NO_INTERLACE:0,ADAM7:1},ea={NONE:0,BACKGROUND:1,PREVIOUS:2},Ta={SOURCE:0,OVER:1};class Il extends ve{constructor(d,M={}){super(d);Vi(this,"_checkCrc");Vi(this,"_inflator");Vi(this,"_png");Vi(this,"_apng");Vi(this,"_end");Vi(this,"_hasPalette");Vi(this,"_palette");Vi(this,"_hasTransparency");Vi(this,"_transparency");Vi(this,"_compressionMethod");Vi(this,"_filterMethod");Vi(this,"_interlaceMethod");Vi(this,"_colorType");Vi(this,"_isAnimated");Vi(this,"_numberOfFrames");Vi(this,"_numberOfPlays");Vi(this,"_frames");Vi(this,"_writingDataChunks");const{checkCrc:ne=!1}=M;this._checkCrc=ne,this._inflator=new Ea,this._png={width:-1,height:-1,channels:-1,data:new Uint8Array(0),depth:1,text:{}},this._apng={width:-1,height:-1,channels:-1,depth:1,numberOfFrames:1,numberOfPlays:0,text:{},frames:[]},this._end=!1,this._hasPalette=!1,this._palette=[],this._hasTransparency=!1,this._transparency=new Uint16Array(0),this._compressionMethod=Va.UNKNOWN,this._filterMethod=Co.UNKNOWN,this._interlaceMethod=Sa.UNKNOWN,this._colorType=Rr.UNKNOWN,this._isAnimated=!1,this._numberOfFrames=1,this._numberOfPlays=0,this._frames=[],this._writingDataChunks=!1,this.setBigEndian()}decode(){for(xo(this);!this._end;){const d=this.readUint32(),M=this.readChars(4);this.decodeChunk(d,M)}return this.decodeImage(),this._png}decodeApng(){for(xo(this);!this._end;){const d=this.readUint32(),M=this.readChars(4);this.decodeApngChunk(d,M)}return this.decodeApngImage(),this._apng}decodeChunk(d,M){const ne=this.offset;switch(M){case"IHDR":this.decodeIHDR();break;case"PLTE":this.decodePLTE(d);break;case"IDAT":this.decodeIDAT(d);break;case"IEND":this._end=!0;break;case"tRNS":this.decodetRNS(d);break;case"iCCP":this.decodeiCCP(d);break;case Ga:wa(this._png.text,this,d);break;case"pHYs":this.decodepHYs();break;default:this.skip(d);break}if(this.offset-ne!==d)throw new Error(`Length mismatch while decoding chunk ${M}`);this._checkCrc?vo(this,d+4,M):this.skip(4)}decodeApngChunk(d,M){const ne=this.offset;switch(M!=="fdAT"&&M!=="IDAT"&&this._writingDataChunks&&this.pushDataToFrame(),M){case"acTL":this.decodeACTL();break;case"fcTL":this.decodeFCTL();break;case"fdAT":this.decodeFDAT(d);break;default:this.decodeChunk(d,M),this.offset=ne+d;break}if(this.offset-ne!==d)throw new Error(`Length mismatch while decoding chunk ${M}`);this._checkCrc?vo(this,d+4,M):this.skip(4)}decodeIHDR(){const d=this._png;d.width=this.readUint32(),d.height=this.readUint32(),d.depth=Wa(this.readUint8());const M=this.readUint8();this._colorType=M;let ne;switch(M){case Rr.GREYSCALE:ne=1;break;case Rr.TRUECOLOUR:ne=3;break;case Rr.INDEXED_COLOUR:ne=1;break;case Rr.GREYSCALE_ALPHA:ne=2;break;case Rr.TRUECOLOUR_ALPHA:ne=4;break;case Rr.UNKNOWN:default:throw new Error(`Unknown color type: ${M}`)}if(this._png.channels=ne,this._compressionMethod=this.readUint8(),this._compressionMethod!==Va.DEFLATE)throw new Error(`Unsupported compression method: ${this._compressionMethod}`);this._filterMethod=this.readUint8(),this._interlaceMethod=this.readUint8()}decodeACTL(){this._numberOfFrames=this.readUint32(),this._numberOfPlays=this.readUint32(),this._isAnimated=!0}decodeFCTL(){const d={sequenceNumber:this.readUint32(),width:this.readUint32(),height:this.readUint32(),xOffset:this.readUint32(),yOffset:this.readUint32(),delayNumber:this.readUint16(),delayDenominator:this.readUint16(),disposeOp:this.readUint8(),blendOp:this.readUint8(),data:new Uint8Array(0)};this._frames.push(d)}decodePLTE(d){if(d%3!==0)throw new RangeError(`PLTE field length must be a multiple of 3. Got ${d}`);const M=d/3;this._hasPalette=!0;const ne=[];this._palette=ne;for(let le=0;le<M;le++)ne.push([this.readUint8(),this.readUint8(),this.readUint8()])}decodeIDAT(d){this._writingDataChunks=!0;const M=d,ne=this.offset+this.byteOffset;if(this._inflator.push(new Uint8Array(this.buffer,ne,M)),this._inflator.err)throw new Error(`Error while decompressing the data: ${this._inflator.err}`);this.skip(d)}decodeFDAT(d){this._writingDataChunks=!0;let M=d,ne=this.offset+this.byteOffset;if(ne+=4,M-=4,this._inflator.push(new Uint8Array(this.buffer,ne,M)),this._inflator.err)throw new Error(`Error while decompressing the data: ${this._inflator.err}`);this.skip(d)}decodetRNS(d){switch(this._colorType){case Rr.GREYSCALE:case Rr.TRUECOLOUR:{if(d%2!==0)throw new RangeError(`tRNS chunk length must be a multiple of 2. Got ${d}`);if(d/2>this._png.width*this._png.height)throw new Error(`tRNS chunk contains more alpha values than there are pixels (${d/2} vs ${this._png.width*this._png.height})`);this._hasTransparency=!0,this._transparency=new Uint16Array(d/2);for(let M=0;M<d/2;M++)this._transparency[M]=this.readUint16();break}case Rr.INDEXED_COLOUR:{if(d>this._palette.length)throw new Error(`tRNS chunk contains more alpha values than there are palette colors (${d} vs ${this._palette.length})`);let M=0;for(;M<d;M++){const ne=this.readByte();this._palette[M].push(ne)}for(;M<this._palette.length;M++)this._palette[M].push(255);break}case Rr.UNKNOWN:case Rr.GREYSCALE_ALPHA:case Rr.TRUECOLOUR_ALPHA:default:throw new Error(`tRNS chunk is not supported for color type ${this._colorType}`)}}decodeiCCP(d){const M=Io(this),ne=this.readUint8();if(ne!==Va.DEFLATE)throw new Error(`Unsupported iCCP compression method: ${ne}`);const le=this.readBytes(d-M.length-2);this._png.iccEmbeddedProfile={name:M,profile:po(le)}}decodepHYs(){const d=this.readUint32(),M=this.readUint32(),ne=this.readByte();this._png.resolution={x:d,y:M,unit:ne}}decodeApngImage(){this._apng.width=this._png.width,this._apng.height=this._png.height,this._apng.channels=this._png.channels,this._apng.depth=this._png.depth,this._apng.numberOfFrames=this._numberOfFrames,this._apng.numberOfPlays=this._numberOfPlays,this._apng.text=this._png.text,this._apng.resolution=this._png.resolution;for(let d=0;d<this._numberOfFrames;d++){const M={sequenceNumber:this._frames[d].sequenceNumber,delayNumber:this._frames[d].delayNumber,delayDenominator:this._frames[d].delayDenominator,data:this._apng.depth===8?new Uint8Array(this._apng.width*this._apng.height*this._apng.channels):new Uint16Array(this._apng.width*this._apng.height*this._apng.channels)},ne=this._frames.at(d);if(ne){if(ne.data=xa({data:ne.data,width:ne.width,height:ne.height,channels:this._apng.channels,depth:this._apng.depth}),this._hasPalette&&(this._apng.palette=this._palette),this._hasTransparency&&(this._apng.transparency=this._transparency),d===0||ne.xOffset===0&&ne.yOffset===0&&ne.width===this._png.width&&ne.height===this._png.height)M.data=ne.data;else{const le=this._apng.frames.at(d-1);this.disposeFrame(ne,le,M),this.addFrameDataToCanvas(M,ne)}this._apng.frames.push(M)}}return this._apng}disposeFrame(d,M,ne){switch(d.disposeOp){case ea.NONE:break;case ea.BACKGROUND:for(let le=0;le<this._png.height;le++)for(let Ze=0;Ze<this._png.width;Ze++){const Oe=(le*d.width+Ze)*this._png.channels;for(let nn=0;nn<this._png.channels;nn++)ne.data[Oe+nn]=0}break;case ea.PREVIOUS:ne.data.set(M.data);break;default:throw new Error("Unknown disposeOp")}}addFrameDataToCanvas(d,M){const ne=1<<this._png.depth,le=(Ze,Oe)=>{const nn=((Ze+M.yOffset)*this._png.width+M.xOffset+Oe)*this._png.channels,Be=(Ze*M.width+Oe)*this._png.channels;return{index:nn,frameIndex:Be}};switch(M.blendOp){case Ta.SOURCE:for(let Ze=0;Ze<M.height;Ze++)for(let Oe=0;Oe<M.width;Oe++){const{index:nn,frameIndex:Be}=le(Ze,Oe);for(let tt=0;tt<this._png.channels;tt++)d.data[nn+tt]=M.data[Be+tt]}break;case Ta.OVER:for(let Ze=0;Ze<M.height;Ze++)for(let Oe=0;Oe<M.width;Oe++){const{index:nn,frameIndex:Be}=le(Ze,Oe);for(let tt=0;tt<this._png.channels;tt++){const Bn=M.data[Be+this._png.channels-1]/ne,cn=tt%(this._png.channels-1)===0?1:M.data[Be+tt],Zt=Math.floor(Bn*cn+(1-Bn)*d.data[nn+tt]);d.data[nn+tt]+=Zt}}break;default:throw new Error("Unknown blendOp")}}decodeImage(){var M;if(this._inflator.err)throw new Error(`Error while decompressing the data: ${this._inflator.err}`);const d=this._isAnimated?((M=this._frames)==null?void 0:M.at(0)).data:this._inflator.result;if(this._filterMethod!==Co.ADAPTIVE)throw new Error(`Filter method ${this._filterMethod} not supported`);if(this._interlaceMethod===Sa.NO_INTERLACE)this._png.data=xa({data:d,width:this._png.width,height:this._png.height,channels:this._png.channels,depth:this._png.depth});else if(this._interlaceMethod===Sa.ADAM7)this._png.data=Ao({data:d,width:this._png.width,height:this._png.height,channels:this._png.channels,depth:this._png.depth});else throw new Error(`Interlace method ${this._interlaceMethod} not supported`);this._hasPalette&&(this._png.palette=this._palette),this._hasTransparency&&(this._png.transparency=this._transparency)}pushDataToFrame(){const d=this._inflator.result,M=this._frames.at(-1);M?M.data=d:this._frames.push({sequenceNumber:0,width:this._png.width,height:this._png.height,xOffset:0,yOffset:0,delayNumber:0,delayDenominator:0,disposeOp:ea.NONE,blendOp:Ta.SOURCE,data:d}),this._inflator=new Ea,this._writingDataChunks=!1}}function Wa(u){if(u!==1&&u!==2&&u!==4&&u!==8&&u!==16)throw new Error(`invalid bit depth: ${u}`);return u}const ko={level:3};class Da extends null{constructor(d,M={}){var ne;super();Vi(this,"_png");Vi(this,"_zlibOptions");Vi(this,"_colorType");Vi(this,"_interlaceMethod");this._colorType=ColorType.UNKNOWN,this._zlibOptions=iu(iu({},ko),M.zlib),this._png=this._checkData(d),this._interlaceMethod=(ne=M.interlace==="Adam7"?InterlaceMethod.ADAM7:InterlaceMethod.NO_INTERLACE)!=null?ne:InterlaceMethod.NO_INTERLACE,this.setBigEndian()}encode(){if(writeSignature(this),this.encodeIHDR(),this._png.palette&&(this.encodePLTE(),this._png.palette[0].length===4&&this.encodeTRNS()),this.encodeData(),this._png.text)for(const[d,M]of Object.entries(this._png.text))encodetEXt(this,d,M);return this.encodeIEND(),this.toArray()}encodeIHDR(){this.writeUint32(13),this.writeChars("IHDR"),this.writeUint32(this._png.width),this.writeUint32(this._png.height),this.writeByte(this._png.depth),this.writeByte(this._colorType),this.writeByte(CompressionMethod.DEFLATE),this.writeByte(FilterMethod.ADAPTIVE),this.writeByte(this._interlaceMethod),writeCrc(this,17)}encodeIEND(){this.writeUint32(0),this.writeChars("IEND"),writeCrc(this,4)}encodePLTE(){var M;const d=((M=this._png.palette)==null?void 0:M.length)*3;this.writeUint32(d),this.writeChars("PLTE");for(const ne of this._png.palette)this.writeByte(ne[0]),this.writeByte(ne[1]),this.writeByte(ne[2]);writeCrc(this,4+d)}encodeTRNS(){const d=this._png.palette.filter(M=>M.at(-1)!==255);this.writeUint32(d.length),this.writeChars("tRNS");for(const M of d)this.writeByte(M.at(-1));writeCrc(this,4+d.length)}encodeIDAT(d){this.writeUint32(d.length),this.writeChars("IDAT"),this.writeBytes(d),writeCrc(this,d.length+4)}encodeData(){const{width:d,height:M,channels:ne,depth:le,data:Ze}=this._png,Oe=le<=8?Math.ceil(d*le/8)*ne:Math.ceil(d*le/8*ne/2),nn=new IOBuffer().setBigEndian();let Be=0;if(this._interlaceMethod===InterlaceMethod.NO_INTERLACE)for(let cn=0;cn<M;cn++)nn.writeByte(0),le===16?Be=Ro(Ze,nn,Oe,Be):Be=kl(Ze,nn,Oe,Be);else this._interlaceMethod===InterlaceMethod.ADAM7&&(Be=Lo(this._png,Ze,nn,Be));const tt=nn.toArray(),Bn=deflate(tt,this._zlibOptions);this.encodeIDAT(Bn)}_checkData(d){const{colorType:M,channels:ne,depth:le}=Cl(d,d.palette),Ze={width:Ia(d.width,"width"),height:Ia(d.height,"height"),channels:ne,data:d.data,depth:le,text:d.text,palette:d.palette};this._colorType=M;const Oe=le<8?Math.ceil(Ze.width*le/8)*Ze.height*ne:Ze.width*Ze.height*ne;if(Ze.data.length!==Oe)throw new RangeError(`wrong data size. Found ${Ze.data.length}, expected ${Oe}`);return Ze}}function Ia(u,D){if(Number.isInteger(u)&&u>0)return u;throw new TypeError(`${D} must be a positive integer`)}function Cl(u,D){const{channels:d=4,depth:M=8}=u;if(d!==4&&d!==3&&d!==2&&d!==1)throw new RangeError(`unsupported number of channels: ${d}`);const ne={channels:d,depth:M,colorType:ColorType.UNKNOWN};switch(d){case 4:ne.colorType=ColorType.TRUECOLOUR_ALPHA;break;case 3:ne.colorType=ColorType.TRUECOLOUR;break;case 1:D?ne.colorType=ColorType.INDEXED_COLOUR:ne.colorType=ColorType.GREYSCALE;break;case 2:ne.colorType=ColorType.GREYSCALE_ALPHA;break;default:throw new Error("unsupported number of channels")}return ne}function kl(u,D,d,M){for(let ne=0;ne<d;ne++)D.writeByte(u[M++]);return M}function Lo(u,D,d,M){const ne=[{x:0,y:0,xStep:8,yStep:8},{x:4,y:0,xStep:8,yStep:8},{x:0,y:4,xStep:4,yStep:8},{x:2,y:0,xStep:4,yStep:4},{x:0,y:2,xStep:2,yStep:4},{x:1,y:0,xStep:2,yStep:2},{x:0,y:1,xStep:1,yStep:2}],{width:le,height:Ze,channels:Oe,depth:nn}=u;let Be=0;nn===16?Be=Oe*nn/8/2:Be=Oe*nn/8;for(let tt=0;tt<7;tt++){const Bn=ne[tt],cn=Math.floor((le-Bn.x+Bn.xStep-1)/Bn.xStep),Zt=Math.floor((Ze-Bn.y+Bn.yStep-1)/Bn.yStep);if(cn<=0||Zt<=0)continue;const Un=cn*Be;for(let Wi=0;Wi<Zt;Wi++){const yi=Bn.y+Wi*Bn.yStep,fi=nn<=8?new Uint8Array(Un):new Uint16Array(Un);let Mi=0;for(let ui=0;ui<cn;ui++){const yn=Bn.x+ui*Bn.xStep;if(yn<le&&yi<Ze){const Ri=(yi*le+yn)*Be;for(let lr=0;lr<Be;lr++)fi[Mi++]=D[Ri+lr]}}if(d.writeByte(0),nn===8)d.writeBytes(fi);else if(nn===16)for(const ui of fi)d.writeByte(ui>>8&255),d.writeByte(ui&255)}}return M}function Ro(u,D,d,M){for(let ne=0;ne<d;ne++)D.writeUint16(u[M++]);return M}var Fo;(function(u){u[u.UNKNOWN=0]="UNKNOWN",u[u.METRE=1]="METRE"})(Fo||(Fo={}));function Ll(u,D){return new Il(u,D).decode()}function Rl(u,D){return new PngEncoder(u,D).encode()}function au(u,D){return new PngDecoder(u,D).decodeApng()}},6330:function(Xe,Ge,w){"use strict";w.d(Ge,{iZ:function(){return kt}});var p={},Ae=function(j,G,pe,Ee,ze){var $e=new Worker(p[G]||(p[G]=URL.createObjectURL(new Blob([j+';addEventListener("error",function(e){e=e.error;postMessage({$e$:[e.message,e.code,e.stack]})})'],{type:"text/javascript"}))));return $e.onmessage=function(bt){var xt=bt.data,Gt=xt.$e$;if(Gt){var _t=new Error(Gt[0]);_t.code=Gt[1],_t.stack=Gt[2],ze(_t,null)}else ze(null,xt)},$e.postMessage(pe,Ee),$e},xe=Uint8Array,ce=Uint16Array,Y=Int32Array,m=new xe([0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0,0,0,0]),ve=new xe([0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13,0,0]),U=new xe([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]),o=function(j,G){for(var pe=new ce(31),Ee=0;Ee<31;++Ee)pe[Ee]=G+=1<<j[Ee-1];for(var ze=new Y(pe[30]),Ee=1;Ee<30;++Ee)for(var $e=pe[Ee];$e<pe[Ee+1];++$e)ze[$e]=$e-pe[Ee]<<5|Ee;return{b:pe,r:ze}},X=o(m,2),L=X.b,_=X.r;L[28]=258,_[258]=28;for(var y=o(ve,0),E=y.b,S=y.r,O=new ce(32768),P=0;P<32768;++P){var H=(P&43690)>>1|(P&21845)<<1;H=(H&52428)>>2|(H&13107)<<2,H=(H&61680)>>4|(H&3855)<<4,O[P]=((H&65280)>>8|(H&255)<<8)>>1}for(var B=function(j,G,pe){for(var Ee=j.length,ze=0,$e=new ce(G);ze<Ee;++ze)j[ze]&&++$e[j[ze]-1];var bt=new ce(G);for(ze=1;ze<G;++ze)bt[ze]=bt[ze-1]+$e[ze-1]<<1;var xt;if(pe){xt=new ce(1<<G);var Gt=15-G;for(ze=0;ze<Ee;++ze)if(j[ze])for(var _t=ze<<4|j[ze],Ce=G-j[ze],et=bt[j[ze]-1]++<<Ce,Pt=et|(1<<Ce)-1;et<=Pt;++et)xt[O[et]>>Gt]=_t}else for(xt=new ce(Ee),ze=0;ze<Ee;++ze)j[ze]&&(xt[ze]=O[bt[j[ze]-1]++]>>15-j[ze]);return xt},R=new xe(288),P=0;P<144;++P)R[P]=8;for(var P=144;P<256;++P)R[P]=9;for(var P=256;P<280;++P)R[P]=7;for(var P=280;P<288;++P)R[P]=8;for(var J=new xe(32),P=0;P<32;++P)J[P]=5;var q=B(R,9,0),ge=null,_e=B(J,5,0),se=null,we=function(j){for(var G=j[0],pe=1;pe<j.length;++pe)j[pe]>G&&(G=j[pe]);return G},de=function(j,G,pe){var Ee=G/8|0;return(j[Ee]|j[Ee+1]<<8)>>(G&7)&pe},ie=function(j,G){var pe=G/8|0;return(j[pe]|j[pe+1]<<8|j[pe+2]<<16)>>(G&7)},oe=function(j){return(j+7)/8|0},K=function(j,G,pe){return(G==null||G<0)&&(G=0),(pe==null||pe>j.length)&&(pe=j.length),new xe(j.subarray(G,pe))},k={UnexpectedEOF:0,InvalidBlockType:1,InvalidLengthLiteral:2,InvalidDistance:3,StreamFinished:4,NoStreamHandler:5,InvalidHeader:6,NoCallback:7,InvalidUTF8:8,ExtraFieldTooLong:9,InvalidDate:10,FilenameTooLong:11,StreamFinishing:12,InvalidZipData:13,UnknownCompressionMethod:14},V=["unexpected EOF","invalid block type","invalid length/literal","invalid distance","stream finished","no stream handler",,"no callback","invalid UTF-8 data","extra field too long","date not in range 1980-2099","filename too long","stream finishing","invalid zip data"],$=function(j,G,pe){var Ee=new Error(G||V[j]);if(Ee.code=j,Error.captureStackTrace&&Error.captureStackTrace(Ee,$),!pe)throw Ee;return Ee},ae=function(j,G,pe,Ee){var ze=j.length,$e=Ee?Ee.length:0;if(!ze||G.f&&!G.l)return pe||new xe(0);var bt=!pe,xt=bt||G.i!=2,Gt=G.i;bt&&(pe=new xe(ze*3));var _t=function(gr){var sr=pe.length;if(gr>sr){var hr=new xe(Math.max(sr*2,gr));hr.set(pe),pe=hr}},Ce=G.f||0,et=G.p||0,Pt=G.b||0,an=G.l,un=G.d,qt=G.m,tn=G.n,mn=ze*8;do{if(!an){Ce=de(j,et,1);var Tn=de(j,et+1,3);if(et+=3,Tn)if(Tn==1)an=ge,un=se,qt=9,tn=5;else if(Tn==2){var Ln=de(j,et,31)+257,Cn=de(j,et+10,15)+4,Pn=Ln+de(j,et+5,31)+1;et+=14;for(var En=new xe(Pn),ii=new xe(19),ri=0;ri<Cn;++ri)ii[U[ri]]=de(j,et+ri*3,7);et+=Cn*3;for(var qn=we(ii),Ti=(1<<qn)-1,Li=B(ii,qn,1),ri=0;ri<Pn;){var Ei=Li[de(j,et,Ti)];et+=Ei&15;var on=Ei>>4;if(on<16)En[ri++]=on;else{var _i=0,si=0;for(on==16?(si=3+de(j,et,3),et+=2,_i=En[ri-1]):on==17?(si=3+de(j,et,7),et+=3):on==18&&(si=11+de(j,et,127),et+=7);si--;)En[ri++]=_i}}var mi=En.subarray(0,Ln),Ai=En.subarray(Ln);qt=we(mi),tn=we(Ai),an=B(mi,qt,1),un=B(Ai,tn,1)}else $(1);else{var on=oe(et)+4,$t=j[on-4]|j[on-3]<<8,kn=on+$t;if(kn>ze){Gt&&$(0);break}xt&&_t(Pt+$t),pe.set(j.subarray(on,kn),Pt),G.b=Pt+=$t,G.p=et=kn*8,G.f=Ce;continue}if(et>mn){Gt&&$(0);break}}xt&&_t(Pt+131072);for(var dr=(1<<qt)-1,Ii=(1<<tn)-1,Ni=et;;Ni=et){var _i=an[ie(j,et)&dr],Gi=_i>>4;if(et+=_i&15,et>mn){Gt&&$(0);break}if(_i||$(2),Gi<256)pe[Pt++]=Gi;else if(Gi==256){Ni=et,an=null;break}else{var Ui=Gi-254;if(Gi>264){var ri=Gi-257,hi=m[ri];Ui=de(j,et,(1<<hi)-1)+L[ri],et+=hi}var nr=un[ie(j,et)&Ii],Ji=nr>>4;nr||$(3),et+=nr&15;var Ai=E[Ji];if(Ji>3){var hi=ve[Ji];Ai+=ie(j,et)&(1<<hi)-1,et+=hi}if(et>mn){Gt&&$(0);break}xt&&_t(Pt+131072);var ir=Pt+Ui;if(Pt<Ai){var pr=$e-Ai,Vn=Math.min(Ai,ir);for(pr+Pt<0&&$(3);Pt<Vn;++Pt)pe[Pt]=Ee[pr+Pt]}for(;Pt<ir;++Pt)pe[Pt]=pe[Pt-Ai]}}G.l=an,G.p=Ni,G.b=Pt,G.f=Ce,an&&(Ce=1,G.m=qt,G.d=un,G.n=tn)}while(!Ce);return Pt!=pe.length&&bt?K(pe,0,Pt):pe.subarray(0,Pt)},re=function(j,G,pe){pe<<=G&7;var Ee=G/8|0;j[Ee]|=pe,j[Ee+1]|=pe>>8},x=function(j,G,pe){pe<<=G&7;var Ee=G/8|0;j[Ee]|=pe,j[Ee+1]|=pe>>8,j[Ee+2]|=pe>>16},b=function(j,G){for(var pe=[],Ee=0;Ee<j.length;++Ee)j[Ee]&&pe.push({s:Ee,f:j[Ee]});var ze=pe.length,$e=pe.slice();if(!ze)return{t:Ot,l:0};if(ze==1){var bt=new xe(pe[0].s+1);return bt[pe[0].s]=1,{t:bt,l:1}}pe.sort(function(kn,Ln){return kn.f-Ln.f}),pe.push({s:-1,f:25001});var xt=pe[0],Gt=pe[1],_t=0,Ce=1,et=2;for(pe[0]={s:-1,f:xt.f+Gt.f,l:xt,r:Gt};Ce!=ze-1;)xt=pe[pe[_t].f<pe[et].f?_t++:et++],Gt=pe[_t!=Ce&&pe[_t].f<pe[et].f?_t++:et++],pe[Ce++]={s:-1,f:xt.f+Gt.f,l:xt,r:Gt};for(var Pt=$e[0].s,Ee=1;Ee<ze;++Ee)$e[Ee].s>Pt&&(Pt=$e[Ee].s);var an=new ce(Pt+1),un=W(pe[Ce-1],an,0);if(un>G){var Ee=0,qt=0,tn=un-G,mn=1<<tn;for($e.sort(function(Ln,Cn){return an[Cn.s]-an[Ln.s]||Ln.f-Cn.f});Ee<ze;++Ee){var Tn=$e[Ee].s;if(an[Tn]>G)qt+=mn-(1<<un-an[Tn]),an[Tn]=G;else break}for(qt>>=tn;qt>0;){var on=$e[Ee].s;an[on]<G?qt-=1<<G-an[on]++-1:++Ee}for(;Ee>=0&&qt;--Ee){var $t=$e[Ee].s;an[$t]==G&&(--an[$t],++qt)}un=G}return{t:new xe(an),l:un}},W=function(j,G,pe){return j.s==-1?Math.max(W(j.l,G,pe+1),W(j.r,G,pe+1)):G[j.s]=pe},fe=function(j){for(var G=j.length;G&&!j[--G];);for(var pe=new ce(++G),Ee=0,ze=j[0],$e=1,bt=function(Gt){pe[Ee++]=Gt},xt=1;xt<=G;++xt)if(j[xt]==ze&&xt!=G)++$e;else{if(!ze&&$e>2){for(;$e>138;$e-=138)bt(32754);$e>2&&(bt($e>10?$e-11<<5|28690:$e-3<<5|12305),$e=0)}else if($e>3){for(bt(ze),--$e;$e>6;$e-=6)bt(8304);$e>2&&(bt($e-3<<5|8208),$e=0)}for(;$e--;)bt(ze);$e=1,ze=j[xt]}return{c:pe.subarray(0,Ee),n:G}},ke=function(j,G){for(var pe=0,Ee=0;Ee<G.length;++Ee)pe+=j[Ee]*G[Ee];return pe},je=function(j,G,pe){var Ee=pe.length,ze=oe(G+2);j[ze]=Ee&255,j[ze+1]=Ee>>8,j[ze+2]=j[ze]^255,j[ze+3]=j[ze+1]^255;for(var $e=0;$e<Ee;++$e)j[ze+$e+4]=pe[$e];return(ze+4+Ee)*8},yt=function(j,G,pe,Ee,ze,$e,bt,xt,Gt,_t,Ce){re(G,Ce++,pe),++ze[256];for(var et=b(ze,15),Pt=et.t,an=et.l,un=b($e,15),qt=un.t,tn=un.l,mn=fe(Pt),Tn=mn.c,on=mn.n,$t=fe(qt),kn=$t.c,Ln=$t.n,Cn=new ce(19),Pn=0;Pn<Tn.length;++Pn)++Cn[Tn[Pn]&31];for(var Pn=0;Pn<kn.length;++Pn)++Cn[kn[Pn]&31];for(var En=b(Cn,7),ii=En.t,ri=En.l,qn=19;qn>4&&!ii[U[qn-1]];--qn);var Ti=_t+5<<3,Li=ke(ze,R)+ke($e,J)+bt,Ei=ke(ze,Pt)+ke($e,qt)+bt+14+3*qn+ke(Cn,ii)+2*Cn[16]+3*Cn[17]+7*Cn[18];if(Gt>=0&&Ti<=Li&&Ti<=Ei)return je(G,Ce,j.subarray(Gt,Gt+_t));var _i,si,mi,Ai;if(re(G,Ce,1+(Ei<Li)),Ce+=2,Ei<Li){_i=B(Pt,an,0),si=Pt,mi=B(qt,tn,0),Ai=qt;var dr=B(ii,ri,0);re(G,Ce,on-257),re(G,Ce+5,Ln-1),re(G,Ce+10,qn-4),Ce+=14;for(var Pn=0;Pn<qn;++Pn)re(G,Ce+3*Pn,ii[U[Pn]]);Ce+=3*qn;for(var Ii=[Tn,kn],Ni=0;Ni<2;++Ni)for(var Gi=Ii[Ni],Pn=0;Pn<Gi.length;++Pn){var Ui=Gi[Pn]&31;re(G,Ce,dr[Ui]),Ce+=ii[Ui],Ui>15&&(re(G,Ce,Gi[Pn]>>5&127),Ce+=Gi[Pn]>>12)}}else _i=q,si=R,mi=_e,Ai=J;for(var Pn=0;Pn<xt;++Pn){var hi=Ee[Pn];if(hi>255){var Ui=hi>>18&31;x(G,Ce,_i[Ui+257]),Ce+=si[Ui+257],Ui>7&&(re(G,Ce,hi>>23&31),Ce+=m[Ui]);var nr=hi&31;x(G,Ce,mi[nr]),Ce+=Ai[nr],nr>3&&(x(G,Ce,hi>>5&8191),Ce+=ve[nr])}else x(G,Ce,_i[hi]),Ce+=si[hi]}return x(G,Ce,_i[256]),Ce+si[256]},ht=new Y([65540,131080,131088,131104,262176,1048704,1048832,2114560,2117632]),Ot=new xe(0),Dt=function(j,G,pe,Ee,ze,$e){var bt=$e.z||j.length,xt=new xe(Ee+bt+5*(1+Math.ceil(bt/7e3))+ze),Gt=xt.subarray(Ee,xt.length-ze),_t=$e.l,Ce=($e.r||0)&7;if(G){Ce&&(Gt[0]=$e.r>>3);for(var et=ht[G-1],Pt=et>>13,an=et&8191,un=(1<<pe)-1,qt=$e.p||new ce(32768),tn=$e.h||new ce(un+1),mn=Math.ceil(pe/3),Tn=2*mn,on=function(Fr){return(j[Fr]^j[Fr+1]<<mn^j[Fr+2]<<Tn)&un},$t=new Y(25e3),kn=new ce(288),Ln=new ce(32),Cn=0,Pn=0,En=$e.i||0,ii=0,ri=$e.w||0,qn=0;En+2<bt;++En){var Ti=on(En),Li=En&32767,Ei=tn[Ti];if(qt[Li]=Ei,tn[Ti]=Li,ri<=En){var _i=bt-En;if((Cn>7e3||ii>24576)&&(_i>423||!_t)){Ce=yt(j,Gt,0,$t,kn,Ln,Pn,ii,qn,En-qn,Ce),ii=Cn=Pn=0,qn=En;for(var si=0;si<286;++si)kn[si]=0;for(var si=0;si<30;++si)Ln[si]=0}var mi=2,Ai=0,dr=an,Ii=Li-Ei&32767;if(_i>2&&Ti==on(En-Ii))for(var Ni=Math.min(Pt,_i)-1,Gi=Math.min(32767,En),Ui=Math.min(258,_i);Ii<=Gi&&--dr&&Li!=Ei;){if(j[En+mi]==j[En+mi-Ii]){for(var hi=0;hi<Ui&&j[En+hi]==j[En+hi-Ii];++hi);if(hi>mi){if(mi=hi,Ai=Ii,hi>Ni)break;for(var nr=Math.min(Ii,hi-2),Ji=0,si=0;si<nr;++si){var ir=En-Ii+si&32767,pr=qt[ir],Vn=ir-pr&32767;Vn>Ji&&(Ji=Vn,Ei=ir)}}}Li=Ei,Ei=qt[Li],Ii+=Li-Ei&32767}if(Ai){$t[ii++]=268435456|_[mi]<<18|S[Ai];var gr=_[mi]&31,sr=S[Ai]&31;Pn+=m[gr]+ve[sr],++kn[257+gr],++Ln[sr],ri=En+mi,++Cn}else $t[ii++]=j[En],++kn[j[En]]}}for(En=Math.max(En,ri);En<bt;++En)$t[ii++]=j[En],++kn[j[En]];Ce=yt(j,Gt,_t,$t,kn,Ln,Pn,ii,qn,En-qn,Ce),_t||($e.r=Ce&7|Gt[Ce/8|0]<<3,Ce-=7,$e.h=tn,$e.p=qt,$e.i=En,$e.w=ri)}else{for(var En=$e.w||0;En<bt+_t;En+=65535){var hr=En+65535;hr>=bt&&(Gt[Ce/8|0]=_t,hr=bt),Ce=je(Gt,Ce+1,j.subarray(En,hr))}$e.i=bt}return K(xt,0,Ee+oe(Ce)+ze)},Ve=null,Jt=function(){var j=-1;return{p:function(G){for(var pe=j,Ee=0;Ee<G.length;++Ee)pe=Ve[pe&255^G[Ee]]^pe>>>8;j=pe},d:function(){return~j}}},ot=function(){var j=1,G=0;return{p:function(pe){for(var Ee=j,ze=G,$e=pe.length|0,bt=0;bt!=$e;){for(var xt=Math.min(bt+2655,$e);bt<xt;++bt)ze+=Ee+=pe[bt];Ee=(Ee&65535)+15*(Ee>>16),ze=(ze&65535)+15*(ze>>16)}j=Ee,G=ze},d:function(){return j%=65521,G%=65521,(j&255)<<24|(j&65280)<<8|(G&255)<<8|G>>8}}},Et=function(j,G,pe,Ee,ze){if(!ze&&(ze={l:1},G.dictionary)){var $e=G.dictionary.subarray(-32768),bt=new xe($e.length+j.length);bt.set($e),bt.set(j,$e.length),j=bt,ze.w=$e.length}return Dt(j,G.level==null?6:G.level,G.mem==null?ze.l?Math.ceil(Math.max(8,Math.min(13,Math.log(j.length)))*1.5):20:12+G.mem,pe,Ee,ze)},qe=function(j,G){var pe={};for(var Ee in j)pe[Ee]=j[Ee];for(var Ee in G)pe[Ee]=G[Ee];return pe},Kt=function(j,G,pe){for(var Ee=j(),ze=j.toString(),$e=ze.slice(ze.indexOf("[")+1,ze.lastIndexOf("]")).replace(/\s+/g,"").split(","),bt=0;bt<Ee.length;++bt){var xt=Ee[bt],Gt=$e[bt];if(typeof xt=="function"){G+=";"+Gt+"=";var _t=xt.toString();if(xt.prototype)if(_t.indexOf("[native code]")!=-1){var Ce=_t.indexOf(" ",8)+1;G+=_t.slice(Ce,_t.indexOf("(",Ce))}else{G+=_t;for(var et in xt.prototype)G+=";"+Gt+".prototype."+et+"="+xt.prototype[et].toString()}else G+=_t}else pe[Gt]=xt}return G},Te=null,F=function(j){var G=[];for(var pe in j)j[pe].buffer&&G.push((j[pe]=new j[pe].constructor(j[pe])).buffer);return G},v=function(j,G,pe,Ee){if(!Te[pe]){for(var ze="",$e={},bt=j.length-1,xt=0;xt<bt;++xt)ze=Kt(j[xt],ze,$e);Te[pe]={c:Kt(j[bt],ze,$e),e:$e}}var Gt=qe({},Te[pe].e);return Ae(Te[pe].c+";onmessage=function(e){for(var k in e.data)self[k]=e.data[k];onmessage="+G.toString()+"}",pe,Gt,F(Gt),Ee)},T=function(){return[xe,ce,Y,m,ve,U,L,E,ge,se,O,V,B,we,de,ie,oe,K,$,ae,De,Ne,rt]},ee=function(){return[xe,ce,Y,m,ve,U,_,S,q,R,_e,J,O,ht,Ot,B,re,x,b,W,fe,ke,je,yt,oe,K,Dt,Et,Vt,Ne]},N=function(){return[ct,Lt,st,Jt,Ve]},z=function(){return[Pe,wt]},he=function(){return[St,st,ot]},Fe=function(){return[en]},Ne=function(j){return postMessage(j,[j.buffer])},rt=function(j){return j&&{out:j.size&&new xe(j.size),dictionary:j.dictionary}},lt=function(j,G,pe,Ee,ze,$e){var bt=v(pe,Ee,ze,function(xt,Gt){bt.terminate(),$e(xt,Gt)});return bt.postMessage([j,G],G.consume?[j.buffer]:[]),function(){bt.terminate()}},zt=function(j){return j.ondata=function(G,pe){return postMessage([G,pe],[G.buffer])},function(G){G.data.length?(j.push(G.data[0],G.data[1]),postMessage([G.data[0].length])):j.flush()}},Tt=function(j,G,pe,Ee,ze,$e,bt){var xt,Gt=v(j,Ee,ze,function(_t,Ce){_t?(Gt.terminate(),G.ondata.call(G,_t)):Array.isArray(Ce)?Ce.length==1?(G.queuedSize-=Ce[0],G.ondrain&&G.ondrain(Ce[0])):(Ce[1]&&Gt.terminate(),G.ondata.call(G,_t,Ce[0],Ce[1])):bt(Ce)});Gt.postMessage(pe),G.queuedSize=0,G.push=function(_t,Ce){G.ondata||$(5),xt&&G.ondata($(4,0,1),null,!!Ce),G.queuedSize+=_t.length,Gt.postMessage([_t,xt=Ce],[_t.buffer])},G.terminate=function(){Gt.terminate()},$e&&(G.flush=function(){Gt.postMessage([])})},Ct=function(j,G){return j[G]|j[G+1]<<8},At=function(j,G){return(j[G]|j[G+1]<<8|j[G+2]<<16|j[G+3]<<24)>>>0},It=function(j,G){return At(j,G)+At(j,G+4)*4294967296},st=function(j,G,pe){for(;pe;++G)j[G]=pe,pe>>>=8},ct=function(j,G){var pe=G.filename;if(j[0]=31,j[1]=139,j[2]=8,j[8]=G.level<2?4:G.level==9?2:0,j[9]=3,G.mtime!=0&&st(j,4,Math.floor(new Date(G.mtime||Date.now())/1e3)),pe){j[3]=8;for(var Ee=0;Ee<=pe.length;++Ee)j[Ee+10]=pe.charCodeAt(Ee)}},Pe=function(j){(j[0]!=31||j[1]!=139||j[2]!=8)&&$(6,"invalid gzip data");var G=j[3],pe=10;G&4&&(pe+=(j[10]|j[11]<<8)+2);for(var Ee=(G>>3&1)+(G>>4&1);Ee>0;Ee-=!j[pe++]);return pe+(G&2)},wt=function(j){var G=j.length;return(j[G-4]|j[G-3]<<8|j[G-2]<<16|j[G-1]<<24)>>>0},Lt=function(j){return 10+(j.filename?j.filename.length+1:0)},St=function(j,G){var pe=G.level,Ee=pe==0?0:pe<6?1:pe==9?3:2;if(j[0]=120,j[1]=Ee<<6|(G.dictionary&&32),j[1]|=31-(j[0]<<8|j[1])%31,G.dictionary){var ze=ot();ze.p(G.dictionary),st(j,2,ze.d())}},en=function(j,G){return((j[0]&15)!=8||j[0]>>4>7||(j[0]<<8|j[1])%31)&&$(6,"invalid zlib data"),(j[1]>>5&1)==+!G&&$(6,"invalid zlib data: "+(j[1]&32?"need":"unexpected")+" dictionary"),(j[1]>>3&4)+2};function Yt(j,G){return typeof j=="function"&&(G=j,j={}),this.ondata=G,j}var Ht=null,In=null;function $n(j,G,pe){return pe||(pe=G,G={}),typeof pe!="function"&&$(7),lt(j,G,[ee],function(Ee){return Ne(Vt(Ee.data[0],Ee.data[1]))},0,pe)}function Vt(j,G){return Et(j,G||{},0,0)}var vn=null,He=null;function Le(j,G,pe){return pe||(pe=G,G={}),typeof pe!="function"&&$(7),lt(j,G,[T],function(Ee){return Ne(De(Ee.data[0],rt(Ee.data[1])))},1,pe)}function De(j,G){return ae(j,{i:2},G&&G.out,G&&G.dictionary)}var te=null,ue=null;function Se(j,G,pe){return pe||(pe=G,G={}),typeof pe!="function"&&$(7),lt(j,G,[ee,N,function(){return[Ie]}],function(Ee){return Ne(Ie(Ee.data[0],Ee.data[1]))},2,pe)}function Ie(j,G){G||(G={});var pe=Jt(),Ee=j.length;pe.p(j);var ze=Et(j,G,Lt(G),8),$e=ze.length;return ct(ze,G),st(ze,$e-8,pe.d()),st(ze,$e-4,Ee),ze}var Me=null,Ke=null;function Ye(j,G,pe){return pe||(pe=G,G={}),typeof pe!="function"&&$(7),lt(j,G,[T,z,function(){return[it]}],function(Ee){return Ne(it(Ee.data[0],Ee.data[1]))},3,pe)}function it(j,G){var pe=Pe(j);return pe+8>j.length&&$(6,"invalid gzip data"),ae(j.subarray(pe,-8),{i:2},G&&G.out||new xe(wt(j)),G&&G.dictionary)}var pt=null,Xt=null;function hn(j,G,pe){return pe||(pe=G,G={}),typeof pe!="function"&&$(7),lt(j,G,[ee,he,function(){return[kt]}],function(Ee){return Ne(kt(Ee.data[0],Ee.data[1]))},4,pe)}function kt(j,G){G||(G={});var pe=ot();pe.p(j);var Ee=Et(j,G,G.dictionary?6:2,4);return St(Ee,G),st(Ee,Ee.length-4,pe.d()),Ee}var Nt=null,fn=null;function Fn(j,G,pe){return pe||(pe=G,G={}),typeof pe!="function"&&$(7),lt(j,G,[T,Fe,function(){return[Re]}],function(Ee){return Ne(Re(Ee.data[0],rt(Ee.data[1])))},5,pe)}function Re(j,G){return ae(j.subarray(en(j,G&&G.dictionary),-4),{i:2},G&&G.out,G&&G.dictionary)}var Nn=null,Rt=null;function Ft(j,G,pe){return pe||(pe=G,G={}),typeof pe!="function"&&$(7),j[0]==31&&j[1]==139&&j[2]==8?Ye(j,G,pe):(j[0]&15)!=8||j[0]>>4>7||(j[0]<<8|j[1])%31?Le(j,G,pe):Fn(j,G,pe)}function rn(j,G){return j[0]==31&&j[1]==139&&j[2]==8?it(j,G):(j[0]&15)!=8||j[0]>>4>7||(j[0]<<8|j[1])%31?De(j,G):Re(j,G)}var _n=function(j,G,pe,Ee){for(var ze in j){var $e=j[ze],bt=G+ze,xt=Ee;Array.isArray($e)&&(xt=qe(Ee,$e[1]),$e=$e[0]),$e instanceof xe?pe[bt]=[$e,xt]:(pe[bt+="/"]=[new xe(0),xt],_n($e,bt,pe,Ee))}},Mn=typeof TextEncoder!="undefined"&&new TextEncoder,oi=typeof TextDecoder!="undefined"&&new TextDecoder,Oi=0;try{oi.decode(Ot,{stream:!0}),Oi=1}catch(j){}var ki=function(j){for(var G="",pe=0;;){var Ee=j[pe++],ze=(Ee>127)+(Ee>223)+(Ee>239);if(pe+ze>j.length)return{s:G,r:K(j,pe-1)};ze?ze==3?(Ee=((Ee&15)<<18|(j[pe++]&63)<<12|(j[pe++]&63)<<6|j[pe++]&63)-65536,G+=String.fromCharCode(55296|Ee>>10,56320|Ee&1023)):ze&1?G+=String.fromCharCode((Ee&31)<<6|j[pe++]&63):G+=String.fromCharCode((Ee&15)<<12|(j[pe++]&63)<<6|j[pe++]&63):G+=String.fromCharCode(Ee)}},vi=null,ji=null;function ti(j,G){if(G){for(var pe=new xe(j.length),Ee=0;Ee<j.length;++Ee)pe[Ee]=j.charCodeAt(Ee);return pe}if(Mn)return Mn.encode(j);for(var ze=j.length,$e=new xe(j.length+(j.length>>1)),bt=0,xt=function(Ce){$e[bt++]=Ce},Ee=0;Ee<ze;++Ee){if(bt+5>$e.length){var Gt=new xe(bt+8+(ze-Ee<<1));Gt.set($e),$e=Gt}var _t=j.charCodeAt(Ee);_t<128||G?xt(_t):_t<2048?(xt(192|_t>>6),xt(128|_t&63)):_t>55295&&_t<57344?(_t=65536+(_t&1047552)|j.charCodeAt(++Ee)&1023,xt(240|_t>>18),xt(128|_t>>12&63),xt(128|_t>>6&63),xt(128|_t&63)):(xt(224|_t>>12),xt(128|_t>>6&63),xt(128|_t&63))}return K($e,0,bt)}function Si(j,G){if(G){for(var pe="",Ee=0;Ee<j.length;Ee+=16384)pe+=String.fromCharCode.apply(null,j.subarray(Ee,Ee+16384));return pe}else{if(oi)return oi.decode(j);var ze=ki(j),$e=ze.s,pe=ze.r;return pe.length&&$(8),$e}}var wi=function(j){return j==1?3:j<6?2:j==9?1:0},Yi=function(j,G){return G+30+Ct(j,G+26)+Ct(j,G+28)},Qn=function(j,G,pe){var Ee=Ct(j,G+28),ze=Si(j.subarray(G+46,G+46+Ee),!(Ct(j,G+8)&2048)),$e=G+46+Ee,bt=At(j,G+20),xt=pe&&bt==4294967295?Xn(j,$e):[bt,At(j,G+24),At(j,G+42)],Gt=xt[0],_t=xt[1],Ce=xt[2];return[Ct(j,G+10),Gt,_t,ze,$e+Ct(j,G+30)+Ct(j,G+32),Ce]},Xn=function(j,G){for(;Ct(j,G)!=1;G+=4+Ct(j,G+2));return[It(j,G+12),It(j,G+4),It(j,G+20)]},di=function(j){var G=0;if(j)for(var pe in j){var Ee=j[pe].length;Ee>65535&&$(9),G+=Ee+4}return G},ai=function(j,G,pe,Ee,ze,$e,bt,xt){var Gt=Ee.length,_t=pe.extra,Ce=xt&&xt.length,et=di(_t);st(j,G,bt!=null?33639248:67324752),G+=4,bt!=null&&(j[G++]=20,j[G++]=pe.os),j[G]=20,G+=2,j[G++]=pe.flag<<1|($e<0&&8),j[G++]=ze&&8,j[G++]=pe.compression&255,j[G++]=pe.compression>>8;var Pt=new Date(pe.mtime==null?Date.now():pe.mtime),an=Pt.getFullYear()-1980;if((an<0||an>119)&&$(10),st(j,G,an<<25|Pt.getMonth()+1<<21|Pt.getDate()<<16|Pt.getHours()<<11|Pt.getMinutes()<<5|Pt.getSeconds()>>1),G+=4,$e!=-1&&(st(j,G,pe.crc),st(j,G+4,$e<0?-$e-2:$e),st(j,G+8,pe.size)),st(j,G+12,Gt),st(j,G+14,et),G+=16,bt!=null&&(st(j,G,Ce),st(j,G+6,pe.attrs),st(j,G+10,bt),G+=14),j.set(Ee,G),G+=Gt,et)for(var un in _t){var qt=_t[un],tn=qt.length;st(j,G,+un),st(j,G+2,tn),j.set(qt,G+4),G+=4+tn}return Ce&&(j.set(xt,G),G+=Ce),G},wn=function(j,G,pe,Ee,ze){st(j,G,101010256),st(j,G+8,pe),st(j,G+10,pe),st(j,G+12,Ee),st(j,G+16,ze)},We=null,ut=null,Ut=null,dt=null;function vt(j,G,pe){pe||(pe=G,G={}),typeof pe!="function"&&$(7);var Ee={};_n(j,"",Ee,G);var ze=Object.keys(Ee),$e=ze.length,bt=0,xt=0,Gt=$e,_t=new Array($e),Ce=[],et=function(){for(var tn=0;tn<Ce.length;++tn)Ce[tn]()},Pt=function(tn,mn){ni(function(){pe(tn,mn)})};ni(function(){Pt=pe});var an=function(){var tn=new xe(xt+22),mn=bt,Tn=xt-bt;xt=0;for(var on=0;on<Gt;++on){var $t=_t[on];try{var kn=$t.c.length;ai(tn,xt,$t,$t.f,$t.u,kn);var Ln=30+$t.f.length+di($t.extra),Cn=xt+Ln;tn.set($t.c,Cn),ai(tn,bt,$t,$t.f,$t.u,kn,xt,$t.m),bt+=16+Ln+($t.m?$t.m.length:0),xt=Cn+kn}catch(Pn){return Pt(Pn,null)}}wn(tn,bt,_t.length,Tn,mn),Pt(null,tn)};$e||an();for(var un=function(tn){var mn=ze[tn],Tn=Ee[mn],on=Tn[0],$t=Tn[1],kn=Jt(),Ln=on.length;kn.p(on);var Cn=ti(mn),Pn=Cn.length,En=$t.comment,ii=En&&ti(En),ri=ii&&ii.length,qn=di($t.extra),Ti=$t.level==0?0:8,Li=function(Ei,_i){if(Ei)et(),Pt(Ei,null);else{var si=_i.length;_t[tn]=qe($t,{size:Ln,crc:kn.d(),c:_i,f:Cn,m:ii,u:Pn!=mn.length||ii&&En.length!=ri,compression:Ti}),bt+=30+Pn+qn+si,xt+=76+2*(Pn+qn)+(ri||0)+si,--$e||an()}};if(Pn>65535&&Li($(11,0,1),null),!Ti)Li(null,on);else if(Ln<16e4)try{Li(null,Vt(on,$t))}catch(Ei){Li(Ei,null)}else Ce.push($n(on,$t,Li))},qt=0;qt<Gt;++qt)un(qt);return et}function Mt(j,G){G||(G={});var pe={},Ee=[];_n(j,"",pe,G);var ze=0,$e=0;for(var bt in pe){var xt=pe[bt],Gt=xt[0],_t=xt[1],Ce=_t.level==0?0:8,et=ti(bt),Pt=et.length,an=_t.comment,un=an&&ti(an),qt=un&&un.length,tn=di(_t.extra);Pt>65535&&$(11);var mn=Ce?Vt(Gt,_t):Gt,Tn=mn.length,on=Jt();on.p(Gt),Ee.push(qe(_t,{size:Gt.length,crc:on.d(),c:mn,f:et,m:un,u:Pt!=bt.length||un&&an.length!=qt,o:ze,compression:Ce})),ze+=30+Pt+tn+Tn,$e+=76+2*(Pt+tn)+(qt||0)+Tn}for(var $t=new xe($e+22),kn=ze,Ln=$e-ze,Cn=0;Cn<Ee.length;++Cn){var et=Ee[Cn];ai($t,et.o,et,et.f,et.u,et.c.length);var Pn=30+et.f.length+di(et.extra);$t.set(et.c,et.o+Pn),ai($t,ze,et,et.f,et.u,et.c.length,et.o,et.m),ze+=16+Pn+(et.m?et.m.length:0)}return wn($t,ze,Ee.length,Ln,kn),$t}var Wt=null,sn=null,ln=null,gn=null,ni=typeof queueMicrotask=="function"?queueMicrotask:typeof setTimeout=="function"?setTimeout:function(j){j()};function An(j,G,pe){pe||(pe=G,G={}),typeof pe!="function"&&$(7);var Ee=[],ze=function(){for(var tn=0;tn<Ee.length;++tn)Ee[tn]()},$e={},bt=function(tn,mn){ni(function(){pe(tn,mn)})};ni(function(){bt=pe});for(var xt=j.length-22;At(j,xt)!=101010256;--xt)if(!xt||j.length-xt>65558)return bt($(13,0,1),null),ze;var Gt=Ct(j,xt+8);if(Gt){var _t=Gt,Ce=At(j,xt+16),et=Ce==4294967295||_t==65535;if(et){var Pt=At(j,xt-12);et=At(j,Pt)==101075792,et&&(_t=Gt=At(j,Pt+32),Ce=At(j,Pt+48))}for(var an=G&&G.filter,un=function(tn){var mn=Qn(j,Ce,et),Tn=mn[0],on=mn[1],$t=mn[2],kn=mn[3],Ln=mn[4],Cn=mn[5],Pn=Yi(j,Cn);Ce=Ln;var En=function(ri,qn){ri?(ze(),bt(ri,null)):(qn&&($e[kn]=qn),--Gt||bt(null,$e))};if(!an||an({name:kn,size:on,originalSize:$t,compression:Tn}))if(!Tn)En(null,K(j,Pn,Pn+on));else if(Tn==8){var ii=j.subarray(Pn,Pn+on);if($t<524288||on>.8*$t)try{En(null,De(ii,{out:new xe($t)}))}catch(ri){En(ri,null)}else Ee.push(Le(ii,{size:$t},En))}else En($(14,"unknown compression type "+Tn,1),null);else En(null,null)},qt=0;qt<_t;++qt)un(qt)}else bt(null,{});return ze}function Hn(j,G){for(var pe={},Ee=j.length-22;At(j,Ee)!=101010256;--Ee)(!Ee||j.length-Ee>65558)&&$(13);var ze=Ct(j,Ee+8);if(!ze)return{};var $e=At(j,Ee+16),bt=$e==4294967295||ze==65535;if(bt){var xt=At(j,Ee-12);bt=At(j,xt)==101075792,bt&&(ze=At(j,xt+32),$e=At(j,xt+48))}for(var Gt=G&&G.filter,_t=0;_t<ze;++_t){var Ce=Qn(j,$e,bt),et=Ce[0],Pt=Ce[1],an=Ce[2],un=Ce[3],qt=Ce[4],tn=Ce[5],mn=Yi(j,tn);$e=qt,(!Gt||Gt({name:un,size:Pt,originalSize:an,compression:et}))&&(et?et==8?pe[un]=De(j.subarray(mn,mn+Pt),{out:new xe(an)}):$(14,"unknown compression type "+et):pe[un]=K(j,mn,mn+Pt))}return pe}},67467:function(Xe,Ge){Ge.read=function(w,p,Ae,xe,ce){var Y,m,ve=ce*8-xe-1,U=(1<<ve)-1,o=U>>1,X=-7,L=Ae?ce-1:0,_=Ae?-1:1,y=w[p+L];for(L+=_,Y=y&(1<<-X)-1,y>>=-X,X+=ve;X>0;Y=Y*256+w[p+L],L+=_,X-=8);for(m=Y&(1<<-X)-1,Y>>=-X,X+=xe;X>0;m=m*256+w[p+L],L+=_,X-=8);if(Y===0)Y=1-o;else{if(Y===U)return m?NaN:(y?-1:1)*(1/0);m=m+Math.pow(2,xe),Y=Y-o}return(y?-1:1)*m*Math.pow(2,Y-xe)},Ge.write=function(w,p,Ae,xe,ce,Y){var m,ve,U,o=Y*8-ce-1,X=(1<<o)-1,L=X>>1,_=ce===23?Math.pow(2,-24)-Math.pow(2,-77):0,y=xe?0:Y-1,E=xe?1:-1,S=p<0||p===0&&1/p<0?1:0;for(p=Math.abs(p),isNaN(p)||p===1/0?(ve=isNaN(p)?1:0,m=X):(m=Math.floor(Math.log(p)/Math.LN2),p*(U=Math.pow(2,-m))<1&&(m--,U*=2),m+L>=1?p+=_/U:p+=_*Math.pow(2,1-L),p*U>=2&&(m++,U/=2),m+L>=X?(ve=0,m=X):m+L>=1?(ve=(p*U-1)*Math.pow(2,ce),m=m+L):(ve=p*Math.pow(2,L-1)*Math.pow(2,ce),m=0));ce>=8;w[Ae+y]=ve&255,y+=E,ve/=256,ce-=8);for(m=m<<ce|ve,o+=ce;o>0;w[Ae+y]=m&255,y+=E,m/=256,o-=8);w[Ae+y-E]|=S*128}},53184:function(Xe,Ge,w){"use strict";var p,Ae;function xe(ce,Y,m){var ve=function(U,o){return ce.js_beautify(U,o)};return ve.js=ce.js_beautify,ve.css=Y.css_beautify,ve.html=m.html_beautify,ve.js_beautify=ce.js_beautify,ve.css_beautify=Y.css_beautify,ve.html_beautify=m.html_beautify,ve}p=[w(58553),w(87804),w(40998)],Ae=function(ce,Y,m){return xe(ce,Y,m)}.apply(Ge,p),Ae!==void 0&&(Xe.exports=Ae)},87804:function(Xe,Ge){var w,p;(function(){var Ae;(function(){"use strict";var ce=[,,function(U){function o(_){this.__parent=_,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 _=new o(this.__parent);return _.set_indent(this.__indent_count,this.__alignment_count),_},o.prototype.item=function(_){return _<0?this.__items[this.__items.length+_]:this.__items[_]},o.prototype.has_match=function(_){for(var y=this.__items.length-1;y>=0;y--)if(this.__items[y].match(_))return!0;return!1},o.prototype.set_indent=function(_,y){this.is_empty()&&(this.__indent_count=_||0,this.__alignment_count=y||0,this.__character_count=this.__parent.get_indent_size(this.__indent_count,this.__alignment_count))},o.prototype._set_wrap_point=function(){this.__parent.wrap_line_length&&(this.__wrap_point_index=this.__items.length,this.__wrap_point_character_count=this.__character_count,this.__wrap_point_indent_count=this.__parent.next_line.__indent_count,this.__wrap_point_alignment_count=this.__parent.next_line.__alignment_count)},o.prototype._should_wrap=function(){return this.__wrap_point_index&&this.__character_count>this.__parent.wrap_line_length&&this.__wrap_point_character_count>this.__parent.next_line.__character_count},o.prototype._allow_wrap=function(){if(this._should_wrap()){this.__parent.add_new_line();var _=this.__parent.current_line;return _.set_indent(this.__wrap_point_indent_count,this.__wrap_point_alignment_count),_.__items=this.__items.slice(this.__wrap_point_index),this.__items=this.__items.slice(0,this.__wrap_point_index),_.__character_count+=this.__character_count-this.__wrap_point_character_count,this.__character_count=this.__wrap_point_character_count,_.__items[0]===" "&&(_.__items.splice(0,1),_.__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(_){this.__items.push(_);var y=_.lastIndexOf(`
`);y!==-1?this.__character_count=_.length-y:this.__character_count+=_.length},o.prototype.pop=function(){var _=null;return this.is_empty()||(_=this.__items.pop(),this.__character_count-=_.length),_},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 _="";return this.is_empty()?this.__parent.indent_empty_lines&&(_=this.__parent.get_indent_string(this.__indent_count)):(_=this.__parent.get_indent_string(this.__indent_count,this.__alignment_count),_+=this.__items.join("")),_};function X(_,y){this.__cache=[""],this.__indent_size=_.indent_size,this.__indent_string=_.indent_char,_.indent_with_tabs||(this.__indent_string=new Array(_.indent_size+1).join(_.indent_char)),y=y||"",_.indent_level>0&&(y=new Array(_.indent_level+1).join(this.__indent_string)),this.__base_string=y,this.__base_string_length=y.length}X.prototype.get_indent_size=function(_,y){var E=this.__base_string_length;return y=y||0,_<0&&(E=0),E+=_*this.__indent_size,E+=y,E},X.prototype.get_indent_string=function(_,y){var E=this.__base_string;return y=y||0,_<0&&(_=0,E=""),y+=_*this.__indent_size,this.__ensure_cache(y),E+=this.__cache[y],E},X.prototype.__ensure_cache=function(_){for(;_>=this.__cache.length;)this.__add_column()},X.prototype.__add_column=function(){var _=this.__cache.length,y=0,E="";this.__indent_size&&_>=this.__indent_size&&(y=Math.floor(_/this.__indent_size),_-=y*this.__indent_size,E=new Array(y+1).join(this.__indent_string)),_&&(E+=new Array(_+1).join(" ")),this.__cache.push(E)};function L(_,y){this.__indent_cache=new X(_,y),this.raw=!1,this._end_with_newline=_.end_with_newline,this.indent_size=_.indent_size,this.wrap_line_length=_.wrap_line_length,this.indent_empty_lines=_.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()}L.prototype.__add_outputline=function(){this.previous_line=this.current_line,this.current_line=this.next_line.clone_empty(),this.__lines.push(this.current_line)},L.prototype.get_line_number=function(){return this.__lines.length},L.prototype.get_indent_string=function(_,y){return this.__indent_cache.get_indent_string(_,y)},L.prototype.get_indent_size=function(_,y){return this.__indent_cache.get_indent_size(_,y)},L.prototype.is_empty=function(){return!this.previous_line&&this.current_line.is_empty()},L.prototype.add_new_line=function(_){return this.is_empty()||!_&&this.just_added_newline()?!1:(this.raw||this.__add_outputline(),!0)},L.prototype.get_code=function(_){this.trim(!0);var y=this.current_line.pop();y&&(y[y.length-1]===`
`&&(y=y.replace(/\n+$/g,"")),this.current_line.push(y)),this._end_with_newline&&this.__add_outputline();var E=this.__lines.join(`
`);return _!==`
`&&(E=E.replace(/[\n]/g,_)),E},L.prototype.set_wrap_point=function(){this.current_line._set_wrap_point()},L.prototype.set_indent=function(_,y){return _=_||0,y=y||0,this.next_line.set_indent(_,y),this.__lines.length>1?(this.current_line.set_indent(_,y),!0):(this.current_line.set_indent(),!1)},L.prototype.add_raw_token=function(_){for(var y=0;y<_.newlines;y++)this.__add_outputline();this.current_line.set_indent(-1),this.current_line.push(_.whitespace_before),this.current_line.push(_.text),this.space_before_token=!1,this.non_breaking_space=!1,this.previous_token_wrapped=!1},L.prototype.add_token=function(_){this.__add_space_before_token(),this.current_line.push(_),this.space_before_token=!1,this.non_breaking_space=!1,this.previous_token_wrapped=this.current_line._allow_wrap()},L.prototype.__add_space_before_token=function(){this.space_before_token&&!this.just_added_newline()&&(this.non_breaking_space||this.set_wrap_point(),this.current_line.push(" "))},L.prototype.remove_indent=function(_){for(var y=this.__lines.length;_<y;)this.__lines[_]._remove_indent(),_++;this.current_line._remove_wrap_indent()},L.prototype.trim=function(_){for(_=_===void 0?!1:_,this.current_line.trim();_&&this.__lines.length>1&&this.current_line.is_empty();)this.__lines.pop(),this.current_line=this.__lines[this.__lines.length-1],this.current_line.trim();this.previous_line=this.__lines.length>1?this.__lines[this.__lines.length-2]:null},L.prototype.just_added_newline=function(){return this.current_line.is_empty()},L.prototype.just_added_blankline=function(){return this.is_empty()||this.current_line.is_empty()&&this.previous_line.is_empty()},L.prototype.ensure_empty_line_above=function(_,y){for(var E=this.__lines.length-2;E>=0;){var S=this.__lines[E];if(S.is_empty())break;if(S.item(0).indexOf(_)!==0&&S.item(-1)!==y){this.__lines.splice(E+1,0,new o(this)),this.previous_line=this.__lines[this.__lines.length-2];break}E--}},U.exports.Output=L},,,,function(U){function o(_,y){this.raw_options=X(_,y),this.disabled=this._get_boolean("disabled"),this.eol=this._get_characters("eol","auto"),this.end_with_newline=this._get_boolean("end_with_newline"),this.indent_size=this._get_number("indent_size",4),this.indent_char=this._get_characters("indent_char"," "),this.indent_level=this._get_number("indent_level"),this.preserve_newlines=this._get_boolean("preserve_newlines",!0),this.max_preserve_newlines=this._get_number("max_preserve_newlines",32786),this.preserve_newlines||(this.max_preserve_newlines=0),this.indent_with_tabs=this._get_boolean("indent_with_tabs",this.indent_char===" "),this.indent_with_tabs&&(this.indent_char=" ",this.indent_size===1&&(this.indent_size=4)),this.wrap_line_length=this._get_number("wrap_line_length",this._get_number("max_char")),this.indent_empty_lines=this._get_boolean("indent_empty_lines"),this.templating=this._get_selection_list("templating",["auto","none","angular","django","erb","handlebars","php","smarty"],["auto"])}o.prototype._get_array=function(_,y){var E=this.raw_options[_],S=y||[];return typeof E=="object"?E!==null&&typeof E.concat=="function"&&(S=E.concat()):typeof E=="string"&&(S=E.split(/[^a-zA-Z0-9_\/\-]+/)),S},o.prototype._get_boolean=function(_,y){var E=this.raw_options[_],S=E===void 0?!!y:!!E;return S},o.prototype._get_characters=function(_,y){var E=this.raw_options[_],S=y||"";return typeof E=="string"&&(S=E.replace(/\\r/,"\r").replace(/\\n/,`
`).replace(/\\t/," ")),S},o.prototype._get_number=function(_,y){var E=this.raw_options[_];y=parseInt(y,10),isNaN(y)&&(y=0);var S=parseInt(E,10);return isNaN(S)&&(S=y),S},o.prototype._get_selection=function(_,y,E){var S=this._get_selection_list(_,y,E);if(S.length!==1)throw new Error("Invalid Option Value: The option '"+_+`' can only be one of the following values:
`+y+`
You passed in: '`+this.raw_options[_]+"'");return S[0]},o.prototype._get_selection_list=function(_,y,E){if(!y||y.length===0)throw new Error("Selection list cannot be empty.");if(E=E||[y[0]],!this._is_valid_selection(E,y))throw new Error("Invalid Default Value!");var S=this._get_array(_,E);if(!this._is_valid_selection(S,y))throw new Error("Invalid Option Value: The option '"+_+`' can contain only the following values:
`+y+`
You passed in: '`+this.raw_options[_]+"'");return S},o.prototype._is_valid_selection=function(_,y){return _.length&&y.length&&!_.some(function(E){return y.indexOf(E)===-1})};function X(_,y){var E={};_=L(_);var S;for(S in _)S!==y&&(E[S]=_[S]);if(y&&_[y])for(S in _[y])E[S]=_[y][S];return E}function L(_){var y={},E;for(E in _){var S=E.replace(/-/g,"_");y[S]=_[E]}return y}U.exports.Options=o,U.exports.normalizeOpts=L,U.exports.mergeOpts=X},,function(U){var o=RegExp.prototype.hasOwnProperty("sticky");function X(L){this.__input=L||"",this.__input_length=this.__input.length,this.__position=0}X.prototype.restart=function(){this.__position=0},X.prototype.back=function(){this.__position>0&&(this.__position-=1)},X.prototype.hasNext=function(){return this.__position<this.__input_length},X.prototype.next=function(){var L=null;return this.hasNext()&&(L=this.__input.charAt(this.__position),this.__position+=1),L},X.prototype.peek=function(L){var _=null;return L=L||0,L+=this.__position,L>=0&&L<this.__input_length&&(_=this.__input.charAt(L)),_},X.prototype.__match=function(L,_){L.lastIndex=_;var y=L.exec(this.__input);return y&&!(o&&L.sticky)&&y.index!==_&&(y=null),y},X.prototype.test=function(L,_){return _=_||0,_+=this.__position,_>=0&&_<this.__input_length?!!this.__match(L,_):!1},X.prototype.testChar=function(L,_){var y=this.peek(_);return L.lastIndex=0,y!==null&&L.test(y)},X.prototype.match=function(L){var _=this.__match(L,this.__position);return _?this.__position+=_[0].length:_=null,_},X.prototype.read=function(L,_,y){var E="",S;return L&&(S=this.match(L),S&&(E+=S[0])),_&&(S||!L)&&(E+=this.readUntil(_,y)),E},X.prototype.readUntil=function(L,_){var y="",E=this.__position;L.lastIndex=this.__position;var S=L.exec(this.__input);return S?(E=S.index,_&&(E+=S[0].length)):E=this.__input_length,y=this.__input.substring(this.__position,E),this.__position=E,y},X.prototype.readUntilAfter=function(L){return this.readUntil(L,!0)},X.prototype.get_regexp=function(L,_){var y=null,E="g";return _&&o&&(E="y"),typeof L=="string"&&L!==""?y=new RegExp(L,E):L&&(y=new RegExp(L.source,E)),y},X.prototype.get_literal_regexp=function(L){return RegExp(L.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&"))},X.prototype.peekUntilAfter=function(L){var _=this.__position,y=this.readUntilAfter(L);return this.__position=_,y},X.prototype.lookBack=function(L){var _=this.__position-1;return _>=L.length&&this.__input.substring(_-L.length,_).toLowerCase()===L},U.exports.InputScanner=X},,,,,function(U){function o(X,L){X=typeof X=="string"?X:X.source,L=typeof L=="string"?L:L.source,this.__directives_block_pattern=new RegExp(X+/ beautify( \w+[:]\w+)+ /.source+L,"g"),this.__directive_pattern=/ (\w+)[:](\w+)/g,this.__directives_end_ignore_pattern=new RegExp(X+/\sbeautify\signore:end\s/.source+L,"g")}o.prototype.get_directives=function(X){if(!X.match(this.__directives_block_pattern))return null;var L={};this.__directive_pattern.lastIndex=0;for(var _=this.__directive_pattern.exec(X);_;)L[_[1]]=_[2],_=this.__directive_pattern.exec(X);return L},o.prototype.readIgnored=function(X){return X.readUntilAfter(this.__directives_end_ignore_pattern)},U.exports.Directives=o},,function(U,o,X){var L=X(16).Beautifier,_=X(17).Options;function y(E,S){var O=new L(E,S);return O.beautify()}U.exports=y,U.exports.defaultOptions=function(){return new _}},function(U,o,X){var L=X(17).Options,_=X(2).Output,y=X(8).InputScanner,E=X(13).Directives,S=new E(/\/\*/,/\*\//),O=/\r\n|[\r\n]/,P=/\r\n|[\r\n]/g,H=/\s/,B=/(?:\s|\n)+/g,R=/\/\*(?:[\s\S]*?)((?:\*\/)|$)/g,J=/\/\/(?:[^\n\r\u2028\u2029]*)/g;function q(ge,_e){this._source_text=ge||"",this._options=new L(_e),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"]}q.prototype.eatString=function(ge){var _e="";for(this._ch=this._input.next();this._ch;){if(_e+=this._ch,this._ch==="\\")_e+=this._input.next();else if(ge.indexOf(this._ch)!==-1||this._ch===`
`)break;this._ch=this._input.next()}return _e},q.prototype.eatWhitespace=function(ge){for(var _e=H.test(this._input.peek()),se=0;H.test(this._input.peek());)this._ch=this._input.next(),ge&&this._ch===`
`&&(se===0||se<this._options.max_preserve_newlines)&&(se++,this._output.add_new_line(!0));return _e},q.prototype.foundNestedPseudoClass=function(){for(var ge=0,_e=1,se=this._input.peek(_e);se;){if(se==="{")return!0;if(se==="(")ge+=1;else if(se===")"){if(ge===0)return!1;ge-=1}else if(se===";"||se==="}")return!1;_e++,se=this._input.peek(_e)}return!1},q.prototype.print_string=function(ge){this._output.set_indent(this._indentLevel),this._output.non_breaking_space=!0,this._output.add_token(ge)},q.prototype.preserveSingleSpace=function(ge){ge&&(this._output.space_before_token=!0)},q.prototype.indent=function(){this._indentLevel++},q.prototype.outdent=function(){this._indentLevel>0&&this._indentLevel--},q.prototype.beautify=function(){if(this._options.disabled)return this._source_text;var ge=this._source_text,_e=this._options.eol;_e==="auto"&&(_e=`
`,ge&&O.test(ge||"")&&(_e=ge.match(O)[0])),ge=ge.replace(P,`
`);var se=ge.match(/^[\t ]*/)[0];this._output=new _(this._options,se),this._input=new y(ge),this._indentLevel=0,this._nestedLevel=0,this._ch=null;for(var we=0,de=!1,ie=!1,oe=!1,K=!1,k=!1,V=this._ch,$=!1,ae,re,x;ae=this._input.read(B),re=ae!=="",x=V,this._ch=this._input.next(),this._ch==="\\"&&this._input.hasNext()&&(this._ch+=this._input.next()),V=this._ch,this._ch;)if(this._ch==="/"&&this._input.peek()==="*"){this._output.add_new_line(),this._input.back();var b=this._input.read(R),W=S.get_directives(b);W&&W.ignore==="start"&&(b+=S.readIgnored(this._input)),this.print_string(b),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(J)),this.eatWhitespace(!0);else if(this._ch==="$"){this.preserveSingleSpace(re),this.print_string(this._ch);var fe=this._input.peekUntilAfter(/[: ,;{}()[\]\/='"]/g);fe.match(/[ :]$/)&&(fe=this.eatString(": ").replace(/\s+$/,""),this.print_string(fe),this._output.space_before_token=!0),we===0&&fe.indexOf(":")!==-1&&(ie=!0,this.indent())}else if(this._ch==="@")if(this.preserveSingleSpace(re),this._input.peek()==="{")this.print_string(this._ch+this.eatString("}"));else{this.print_string(this._ch);var ke=this._input.peekUntilAfter(/[: ,;{}()[\]\/='"]/g);ke.match(/[ :]$/)&&(ke=this.eatString(": ").replace(/\s+$/,""),this.print_string(ke),this._output.space_before_token=!0),we===0&&ke.indexOf(":")!==-1?(ie=!0,this.indent()):ke in this.NESTED_AT_RULE?(this._nestedLevel+=1,ke in this.CONDITIONAL_GROUP_RULE&&(oe=!0)):we===0&&!ie&&(K=!0)}else if(this._ch==="#"&&this._input.peek()==="{")this.preserveSingleSpace(re),this.print_string(this._ch+this.eatString("}"));else if(this._ch==="{")ie&&(ie=!1,this.outdent()),K=!1,oe?(oe=!1,de=this._indentLevel>=this._nestedLevel):de=this._indentLevel>=this._nestedLevel-1,this._options.newline_between_rules&&de&&this._output.previous_line&&this._output.previous_line.item(-1)!=="{"&&this._output.ensure_empty_line_above("/",","),this._output.space_before_token=!0,this._options.brace_style==="expand"?(this._output.add_new_line(),this.print_string(this._ch),this.indent(),this._output.set_indent(this._indentLevel)):(x==="("?this._output.space_before_token=!1:x!==","&&this.indent(),this.print_string(this._ch)),this.eatWhitespace(!0),this._output.add_new_line();else if(this._ch==="}")this.outdent(),this._output.add_new_line(),x==="{"&&this._output.trim(!0),ie&&(this.outdent(),ie=!1),this.print_string(this._ch),de=!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 je=0;je<this.NON_SEMICOLON_NEWLINE_PROPERTY.length;je++)if(this._input.lookBack(this.NON_SEMICOLON_NEWLINE_PROPERTY[je])){$=!0;break}(de||oe)&&!(this._input.lookBack("&")||this.foundNestedPseudoClass())&&!this._input.lookBack("(")&&!K&&we===0?(this.print_string(":"),ie||(ie=!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 yt=x==='"'||x==="'";this.preserveSingleSpace(yt||re),this.print_string(this._ch+this.eatString(this._ch)),this.eatWhitespace(!0)}else if(this._ch===";")$=!1,we===0?(ie&&(this.outdent(),ie=!1),K=!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(),we++,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(")")),we&&(we--,this.outdent()));else{var ht=!1;this._input.lookBack("with")&&(ht=!0),this.preserveSingleSpace(re||ht),this.print_string(this._ch),ie&&x==="$"&&this._options.selector_separator_newline?(this._output.add_new_line(),k=!0):(this.eatWhitespace(),we++,this.indent())}else if(this._ch===")")we&&(we--,this.outdent()),k&&this._input.peek()===";"&&this._options.selector_separator_newline&&(k=!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&&(!ie||k)&&we===0&&!K?this._output.add_new_line():this._output.space_before_token=!0;else if((this._ch===">"||this._ch==="+"||this._ch==="~")&&!ie&&we===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&&H.test(this._ch)&&(this._ch=""));else if(this._ch==="]")this.print_string(this._ch);else if(this._ch==="[")this.preserveSingleSpace(re),this.print_string(this._ch);else if(this._ch==="=")this.eatWhitespace(),this.print_string("="),H.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 Ot=x==='"'||x==="'";this.preserveSingleSpace(Ot||re),this.print_string(this._ch),!this._output.just_added_newline()&&this._input.peek()===`
`&&$&&this._output.add_new_line()}var Dt=this._output.get_code(_e);return Dt},U.exports.Beautifier=q},function(U,o,X){var L=X(6).Options;function _(y){L.call(this,y,"css"),this.selector_separator_newline=this._get_boolean("selector_separator_newline",!0),this.newline_between_rules=this._get_boolean("newline_between_rules",!0);var E=this._get_boolean("space_around_selector_separator");this.space_around_combinator=this._get_boolean("space_around_combinator")||E;var S=this._get_selection_list("brace_style",["collapse","expand","end-expand","none","preserve-inline"]);this.brace_style="collapse";for(var O=0;O<S.length;O++)S[O]!=="expand"?this.brace_style="collapse":this.brace_style=S[O]}_.prototype=new L,U.exports.Options=_}],Y={};function m(U){var o=Y[U];if(o!==void 0)return o.exports;var X=Y[U]={exports:{}};return ce[U](X,X.exports,m),X.exports}var ve=m(15);Ae=ve})();var xe=Ae;w=[],p=function(){return{css_beautify:xe}}.apply(Ge,w),p!==void 0&&(Xe.exports=p)})()},40998:function(Xe,Ge,w){var p,Ae;(function(){var xe;(function(){"use strict";var ve=[,,function(L){function _(S){this.__parent=S,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=[]}_.prototype.clone_empty=function(){var S=new _(this.__parent);return S.set_indent(this.__indent_count,this.__alignment_count),S},_.prototype.item=function(S){return S<0?this.__items[this.__items.length+S]:this.__items[S]},_.prototype.has_match=function(S){for(var O=this.__items.length-1;O>=0;O--)if(this.__items[O].match(S))return!0;return!1},_.prototype.set_indent=function(S,O){this.is_empty()&&(this.__indent_count=S||0,this.__alignment_count=O||0,this.__character_count=this.__parent.get_indent_size(this.__indent_count,this.__alignment_count))},_.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)},_.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},_.prototype._allow_wrap=function(){if(this._should_wrap()){this.__parent.add_new_line();var S=this.__parent.current_line;return S.set_indent(this.__wrap_point_indent_count,this.__wrap_point_alignment_count),S.__items=this.__items.slice(this.__wrap_point_index),this.__items=this.__items.slice(0,this.__wrap_point_index),S.__character_count+=this.__character_count-this.__wrap_point_character_count,this.__character_count=this.__wrap_point_character_count,S.__items[0]===" "&&(S.__items.splice(0,1),S.__character_count-=1),!0}return!1},_.prototype.is_empty=function(){return this.__items.length===0},_.prototype.last=function(){return this.is_empty()?null:this.__items[this.__items.length-1]},_.prototype.push=function(S){this.__items.push(S);var O=S.lastIndexOf(`
`);O!==-1?this.__character_count=S.length-O:this.__character_count+=S.length},_.prototype.pop=function(){var S=null;return this.is_empty()||(S=this.__items.pop(),this.__character_count-=S.length),S},_.prototype._remove_indent=function(){this.__indent_count>0&&(this.__indent_count-=1,this.__character_count-=this.__parent.indent_size)},_.prototype._remove_wrap_indent=function(){this.__wrap_point_indent_count>0&&(this.__wrap_point_indent_count-=1)},_.prototype.trim=function(){for(;this.last()===" ";)this.__items.pop(),this.__character_count-=1},_.prototype.toString=function(){var S="";return this.is_empty()?this.__parent.indent_empty_lines&&(S=this.__parent.get_indent_string(this.__indent_count)):(S=this.__parent.get_indent_string(this.__indent_count,this.__alignment_count),S+=this.__items.join("")),S};function y(S,O){this.__cache=[""],this.__indent_size=S.indent_size,this.__indent_string=S.indent_char,S.indent_with_tabs||(this.__indent_string=new Array(S.indent_size+1).join(S.indent_char)),O=O||"",S.indent_level>0&&(O=new Array(S.indent_level+1).join(this.__indent_string)),this.__base_string=O,this.__base_string_length=O.length}y.prototype.get_indent_size=function(S,O){var P=this.__base_string_length;return O=O||0,S<0&&(P=0),P+=S*this.__indent_size,P+=O,P},y.prototype.get_indent_string=function(S,O){var P=this.__base_string;return O=O||0,S<0&&(S=0,P=""),O+=S*this.__indent_size,this.__ensure_cache(O),P+=this.__cache[O],P},y.prototype.__ensure_cache=function(S){for(;S>=this.__cache.length;)this.__add_column()},y.prototype.__add_column=function(){var S=this.__cache.length,O=0,P="";this.__indent_size&&S>=this.__indent_size&&(O=Math.floor(S/this.__indent_size),S-=O*this.__indent_size,P=new Array(O+1).join(this.__indent_string)),S&&(P+=new Array(S+1).join(" ")),this.__cache.push(P)};function E(S,O){this.__indent_cache=new y(S,O),this.raw=!1,this._end_with_newline=S.end_with_newline,this.indent_size=S.indent_size,this.wrap_line_length=S.wrap_line_length,this.indent_empty_lines=S.indent_empty_lines,this.__lines=[],this.previous_line=null,this.current_line=null,this.next_line=new _(this),this.space_before_token=!1,this.non_breaking_space=!1,this.previous_token_wrapped=!1,this.__add_outputline()}E.prototype.__add_outputline=function(){this.previous_line=this.current_line,this.current_line=this.next_line.clone_empty(),this.__lines.push(this.current_line)},E.prototype.get_line_number=function(){return this.__lines.length},E.prototype.get_indent_string=function(S,O){return this.__indent_cache.get_indent_string(S,O)},E.prototype.get_indent_size=function(S,O){return this.__indent_cache.get_indent_size(S,O)},E.prototype.is_empty=function(){return!this.previous_line&&this.current_line.is_empty()},E.prototype.add_new_line=function(S){return this.is_empty()||!S&&this.just_added_newline()?!1:(this.raw||this.__add_outputline(),!0)},E.prototype.get_code=function(S){this.trim(!0);var O=this.current_line.pop();O&&(O[O.length-1]===`
`&&(O=O.replace(/\n+$/g,"")),this.current_line.push(O)),this._end_with_newline&&this.__add_outputline();var P=this.__lines.join(`
`);return S!==`
`&&(P=P.replace(/[\n]/g,S)),P},E.prototype.set_wrap_point=function(){this.current_line._set_wrap_point()},E.prototype.set_indent=function(S,O){return S=S||0,O=O||0,this.next_line.set_indent(S,O),this.__lines.length>1?(this.current_line.set_indent(S,O),!0):(this.current_line.set_indent(),!1)},E.prototype.add_raw_token=function(S){for(var O=0;O<S.newlines;O++)this.__add_outputline();this.current_line.set_indent(-1),this.current_line.push(S.whitespace_before),this.current_line.push(S.text),this.space_before_token=!1,this.non_breaking_space=!1,this.previous_token_wrapped=!1},E.prototype.add_token=function(S){this.__add_space_before_token(),this.current_line.push(S),this.space_before_token=!1,this.non_breaking_space=!1,this.previous_token_wrapped=this.current_line._allow_wrap()},E.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(" "))},E.prototype.remove_indent=function(S){for(var O=this.__lines.length;S<O;)this.__lines[S]._remove_indent(),S++;this.current_line._remove_wrap_indent()},E.prototype.trim=function(S){for(S=S===void 0?!1:S,this.current_line.trim();S&&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},E.prototype.just_added_newline=function(){return this.current_line.is_empty()},E.prototype.just_added_blankline=function(){return this.is_empty()||this.current_line.is_empty()&&this.previous_line.is_empty()},E.prototype.ensure_empty_line_above=function(S,O){for(var P=this.__lines.length-2;P>=0;){var H=this.__lines[P];if(H.is_empty())break;if(H.item(0).indexOf(S)!==0&&H.item(-1)!==O){this.__lines.splice(P+1,0,new _(this)),this.previous_line=this.__lines[this.__lines.length-2];break}P--}},L.exports.Output=E},function(L){function _(y,E,S,O){this.type=y,this.text=E,this.comments_before=null,this.newlines=S||0,this.whitespace_before=O||"",this.parent=null,this.next=null,this.previous=null,this.opened=null,this.closed=null,this.directives=null}L.exports.Token=_},,,function(L){function _(S,O){this.raw_options=y(S,O),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"])}_.prototype._get_array=function(S,O){var P=this.raw_options[S],H=O||[];return typeof P=="object"?P!==null&&typeof P.concat=="function"&&(H=P.concat()):typeof P=="string"&&(H=P.split(/[^a-zA-Z0-9_\/\-]+/)),H},_.prototype._get_boolean=function(S,O){var P=this.raw_options[S],H=P===void 0?!!O:!!P;return H},_.prototype._get_characters=function(S,O){var P=this.raw_options[S],H=O||"";return typeof P=="string"&&(H=P.replace(/\\r/,"\r").replace(/\\n/,`
`).replace(/\\t/," ")),H},_.prototype._get_number=function(S,O){var P=this.raw_options[S];O=parseInt(O,10),isNaN(O)&&(O=0);var H=parseInt(P,10);return isNaN(H)&&(H=O),H},_.prototype._get_selection=function(S,O,P){var H=this._get_selection_list(S,O,P);if(H.length!==1)throw new Error("Invalid Option Value: The option '"+S+`' can only be one of the following values:
`+O+`
You passed in: '`+this.raw_options[S]+"'");return H[0]},_.prototype._get_selection_list=function(S,O,P){if(!O||O.length===0)throw new Error("Selection list cannot be empty.");if(P=P||[O[0]],!this._is_valid_selection(P,O))throw new Error("Invalid Default Value!");var H=this._get_array(S,P);if(!this._is_valid_selection(H,O))throw new Error("Invalid Option Value: The option '"+S+`' can contain only the following values:
`+O+`
You passed in: '`+this.raw_options[S]+"'");return H},_.prototype._is_valid_selection=function(S,O){return S.length&&O.length&&!S.some(function(P){return O.indexOf(P)===-1})};function y(S,O){var P={};S=E(S);var H;for(H in S)H!==O&&(P[H]=S[H]);if(O&&S[O])for(H in S[O])P[H]=S[O][H];return P}function E(S){var O={},P;for(P in S){var H=P.replace(/-/g,"_");O[H]=S[P]}return O}L.exports.Options=_,L.exports.normalizeOpts=E,L.exports.mergeOpts=y},,function(L){var _=RegExp.prototype.hasOwnProperty("sticky");function y(E){this.__input=E||"",this.__input_length=this.__input.length,this.__position=0}y.prototype.restart=function(){this.__position=0},y.prototype.back=function(){this.__position>0&&(this.__position-=1)},y.prototype.hasNext=function(){return this.__position<this.__input_length},y.prototype.next=function(){var E=null;return this.hasNext()&&(E=this.__input.charAt(this.__position),this.__position+=1),E},y.prototype.peek=function(E){var S=null;return E=E||0,E+=this.__position,E>=0&&E<this.__input_length&&(S=this.__input.charAt(E)),S},y.prototype.__match=function(E,S){E.lastIndex=S;var O=E.exec(this.__input);return O&&!(_&&E.sticky)&&O.index!==S&&(O=null),O},y.prototype.test=function(E,S){return S=S||0,S+=this.__position,S>=0&&S<this.__input_length?!!this.__match(E,S):!1},y.prototype.testChar=function(E,S){var O=this.peek(S);return E.lastIndex=0,O!==null&&E.test(O)},y.prototype.match=function(E){var S=this.__match(E,this.__position);return S?this.__position+=S[0].length:S=null,S},y.prototype.read=function(E,S,O){var P="",H;return E&&(H=this.match(E),H&&(P+=H[0])),S&&(H||!E)&&(P+=this.readUntil(S,O)),P},y.prototype.readUntil=function(E,S){var O="",P=this.__position;E.lastIndex=this.__position;var H=E.exec(this.__input);return H?(P=H.index,S&&(P+=H[0].length)):P=this.__input_length,O=this.__input.substring(this.__position,P),this.__position=P,O},y.prototype.readUntilAfter=function(E){return this.readUntil(E,!0)},y.prototype.get_regexp=function(E,S){var O=null,P="g";return S&&_&&(P="y"),typeof E=="string"&&E!==""?O=new RegExp(E,P):E&&(O=new RegExp(E.source,P)),O},y.prototype.get_literal_regexp=function(E){return RegExp(E.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&"))},y.prototype.peekUntilAfter=function(E){var S=this.__position,O=this.readUntilAfter(E);return this.__position=S,O},y.prototype.lookBack=function(E){var S=this.__position-1;return S>=E.length&&this.__input.substring(S-E.length,S).toLowerCase()===E},L.exports.InputScanner=y},function(L,_,y){var E=y(8).InputScanner,S=y(3).Token,O=y(10).TokenStream,P=y(11).WhitespacePattern,H={START:"TK_START",RAW:"TK_RAW",EOF:"TK_EOF"},B=function(R,J){this._input=new E(R),this._options=J||{},this.__tokens=null,this._patterns={},this._patterns.whitespace=new P(this._input)};B.prototype.tokenize=function(){this._input.restart(),this.__tokens=new O,this._reset();for(var R,J=new S(H.START,""),q=null,ge=[],_e=new O;J.type!==H.EOF;){for(R=this._get_next_token(J,q);this._is_comment(R);)_e.add(R),R=this._get_next_token(J,q);_e.isEmpty()||(R.comments_before=_e,_e=new O),R.parent=q,this._is_opening(R)?(ge.push(q),q=R):q&&this._is_closing(R,q)&&(R.opened=q,q.closed=R,q=ge.pop(),R.parent=q),R.previous=J,J.next=R,this.__tokens.add(R),J=R}return this.__tokens},B.prototype._is_first_token=function(){return this.__tokens.isEmpty()},B.prototype._reset=function(){},B.prototype._get_next_token=function(R,J){this._readWhitespace();var q=this._input.read(/.+/g);return q?this._create_token(H.RAW,q):this._create_token(H.EOF,"")},B.prototype._is_comment=function(R){return!1},B.prototype._is_opening=function(R){return!1},B.prototype._is_closing=function(R,J){return!1},B.prototype._create_token=function(R,J){var q=new S(R,J,this._patterns.whitespace.newline_count,this._patterns.whitespace.whitespace_before_token);return q},B.prototype._readWhitespace=function(){return this._patterns.whitespace.read()},L.exports.Tokenizer=B,L.exports.TOKEN=H},function(L){function _(y){this.__tokens=[],this.__tokens_length=this.__tokens.length,this.__position=0,this.__parent_token=y}_.prototype.restart=function(){this.__position=0},_.prototype.isEmpty=function(){return this.__tokens_length===0},_.prototype.hasNext=function(){return this.__position<this.__tokens_length},_.prototype.next=function(){var y=null;return this.hasNext()&&(y=this.__tokens[this.__position],this.__position+=1),y},_.prototype.peek=function(y){var E=null;return y=y||0,y+=this.__position,y>=0&&y<this.__tokens_length&&(E=this.__tokens[y]),E},_.prototype.add=function(y){this.__parent_token&&(y.parent=this.__parent_token),this.__tokens.push(y),this.__tokens_length+=1},L.exports.TokenStream=_},function(L,_,y){var E=y(12).Pattern;function S(O,P){E.call(this,O,P),P?this._line_regexp=this._input.get_regexp(P._line_regexp):this.__set_whitespace_patterns("",""),this.newline_count=0,this.whitespace_before_token=""}S.prototype=new E,S.prototype.__set_whitespace_patterns=function(O,P){O+="\\t ",P+="\\n\\r",this._match_pattern=this._input.get_regexp("["+O+P+"]+",!0),this._newline_regexp=this._input.get_regexp("\\r\\n|["+P+"]")},S.prototype.read=function(){this.newline_count=0,this.whitespace_before_token="";var O=this._input.read(this._match_pattern);if(O===" ")this.whitespace_before_token=" ";else if(O){var P=this.__split(this._newline_regexp,O);this.newline_count=P.length-1,this.whitespace_before_token=P[this.newline_count]}return O},S.prototype.matching=function(O,P){var H=this._create();return H.__set_whitespace_patterns(O,P),H._update(),H},S.prototype._create=function(){return new S(this._input,this)},S.prototype.__split=function(O,P){O.lastIndex=0;for(var H=0,B=[],R=O.exec(P);R;)B.push(P.substring(H,R.index)),H=R.index+R[0].length,R=O.exec(P);return H<P.length?B.push(P.substring(H,P.length)):B.push(""),B},L.exports.WhitespacePattern=S},function(L){function _(y,E){this._input=y,this._starting_pattern=null,this._match_pattern=null,this._until_pattern=null,this._until_after=!1,E&&(this._starting_pattern=this._input.get_regexp(E._starting_pattern,!0),this._match_pattern=this._input.get_regexp(E._match_pattern,!0),this._until_pattern=this._input.get_regexp(E._until_pattern),this._until_after=E._until_after)}_.prototype.read=function(){var y=this._input.read(this._starting_pattern);return(!this._starting_pattern||y)&&(y+=this._input.read(this._match_pattern,this._until_pattern,this._until_after)),y},_.prototype.read_match=function(){return this._input.match(this._match_pattern)},_.prototype.until_after=function(y){var E=this._create();return E._until_after=!0,E._until_pattern=this._input.get_regexp(y),E._update(),E},_.prototype.until=function(y){var E=this._create();return E._until_after=!1,E._until_pattern=this._input.get_regexp(y),E._update(),E},_.prototype.starting_with=function(y){var E=this._create();return E._starting_pattern=this._input.get_regexp(y,!0),E._update(),E},_.prototype.matching=function(y){var E=this._create();return E._match_pattern=this._input.get_regexp(y,!0),E._update(),E},_.prototype._create=function(){return new _(this._input,this)},_.prototype._update=function(){},L.exports.Pattern=_},function(L){function _(y,E){y=typeof y=="string"?y:y.source,E=typeof E=="string"?E:E.source,this.__directives_block_pattern=new RegExp(y+/ beautify( \w+[:]\w+)+ /.source+E,"g"),this.__directive_pattern=/ (\w+)[:](\w+)/g,this.__directives_end_ignore_pattern=new RegExp(y+/\sbeautify\signore:end\s/.source+E,"g")}_.prototype.get_directives=function(y){if(!y.match(this.__directives_block_pattern))return null;var E={};this.__directive_pattern.lastIndex=0;for(var S=this.__directive_pattern.exec(y);S;)E[S[1]]=S[2],S=this.__directive_pattern.exec(y);return E},_.prototype.readIgnored=function(y){return y.readUntilAfter(this.__directives_end_ignore_pattern)},L.exports.Directives=_},function(L,_,y){var E=y(12).Pattern,S={django:!1,erb:!1,handlebars:!1,php:!1,smarty:!1,angular:!1};function O(P,H){E.call(this,P,H),this.__template_pattern=null,this._disabled=Object.assign({},S),this._excluded=Object.assign({},S),H&&(this.__template_pattern=this._input.get_regexp(H.__template_pattern),this._excluded=Object.assign(this._excluded,H._excluded),this._disabled=Object.assign(this._disabled,H._disabled));var B=new E(P);this.__patterns={handlebars_comment:B.starting_with(/{{!--/).until_after(/--}}/),handlebars_unescaped:B.starting_with(/{{{/).until_after(/}}}/),handlebars:B.starting_with(/{{/).until_after(/}}/),php:B.starting_with(/<\?(?:[= ]|php)/).until_after(/\?>/),erb:B.starting_with(/<%[^%]/).until_after(/[^%]%>/),django:B.starting_with(/{%/).until_after(/%}/),django_value:B.starting_with(/{{/).until_after(/}}/),django_comment:B.starting_with(/{#/).until_after(/#}/),smarty:B.starting_with(/{(?=[^}{\s\n])/).until_after(/[^\s\n]}/),smarty_comment:B.starting_with(/{\*/).until_after(/\*}/),smarty_literal:B.starting_with(/{literal}/).until_after(/{\/literal}/)}}O.prototype=new E,O.prototype._create=function(){return new O(this._input,this)},O.prototype._update=function(){this.__set_templated_pattern()},O.prototype.disable=function(P){var H=this._create();return H._disabled[P]=!0,H._update(),H},O.prototype.read_options=function(P){var H=this._create();for(var B in S)H._disabled[B]=P.templating.indexOf(B)===-1;return H._update(),H},O.prototype.exclude=function(P){var H=this._create();return H._excluded[P]=!0,H._update(),H},O.prototype.read=function(){var P="";this._match_pattern?P=this._input.read(this._starting_pattern):P=this._input.read(this._starting_pattern,this.__template_pattern);for(var H=this._read_template();H;)this._match_pattern?H+=this._input.read(this._match_pattern):H+=this._input.readUntil(this.__template_pattern),P+=H,H=this._read_template();return this._until_after&&(P+=this._input.readUntilAfter(this._until_pattern)),P},O.prototype.__set_templated_pattern=function(){var P=[];this._disabled.php||P.push(this.__patterns.php._starting_pattern.source),this._disabled.handlebars||P.push(this.__patterns.handlebars._starting_pattern.source),this._disabled.angular||P.push(this.__patterns.handlebars._starting_pattern.source),this._disabled.erb||P.push(this.__patterns.erb._starting_pattern.source),this._disabled.django||(P.push(this.__patterns.django._starting_pattern.source),P.push(this.__patterns.django_value._starting_pattern.source),P.push(this.__patterns.django_comment._starting_pattern.source)),this._disabled.smarty||P.push(this.__patterns.smarty._starting_pattern.source),this._until_pattern&&P.push(this._until_pattern.source),this.__template_pattern=this._input.get_regexp("(?:"+P.join("|")+")")},O.prototype._read_template=function(){var P="",H=this._input.peek();if(H==="<"){var B=this._input.peek(1);!this._disabled.php&&!this._excluded.php&&B==="?"&&(P=P||this.__patterns.php.read()),!this._disabled.erb&&!this._excluded.erb&&B==="%"&&(P=P||this.__patterns.erb.read())}else H==="{"&&(!this._disabled.handlebars&&!this._excluded.handlebars&&(P=P||this.__patterns.handlebars_comment.read(),P=P||this.__patterns.handlebars_unescaped.read(),P=P||this.__patterns.handlebars.read()),this._disabled.django||(!this._excluded.django&&!this._excluded.handlebars&&(P=P||this.__patterns.django_value.read()),this._excluded.django||(P=P||this.__patterns.django_comment.read(),P=P||this.__patterns.django.read())),this._disabled.smarty||this._disabled.django&&this._disabled.handlebars&&(P=P||this.__patterns.smarty_comment.read(),P=P||this.__patterns.smarty_literal.read(),P=P||this.__patterns.smarty.read()));return P},L.exports.TemplatablePattern=O},,,,function(L,_,y){var E=y(19).Beautifier,S=y(20).Options;function O(P,H,B,R){var J=new E(P,H,B,R);return J.beautify()}L.exports=O,L.exports.defaultOptions=function(){return new S}},function(L,_,y){var E=y(20).Options,S=y(2).Output,O=y(21).Tokenizer,P=y(21).TOKEN,H=/\r\n|[\r\n]/,B=/\r\n|[\r\n]/g,R=function(K,k){this.indent_level=0,this.alignment_size=0,this.max_preserve_newlines=K.max_preserve_newlines,this.preserve_newlines=K.preserve_newlines,this._output=new S(K,k)};R.prototype.current_line_has_match=function(K){return this._output.current_line.has_match(K)},R.prototype.set_space_before_token=function(K,k){this._output.space_before_token=K,this._output.non_breaking_space=k},R.prototype.set_wrap_point=function(){this._output.set_indent(this.indent_level,this.alignment_size),this._output.set_wrap_point()},R.prototype.add_raw_token=function(K){this._output.add_raw_token(K)},R.prototype.print_preserved_newlines=function(K){var k=0;K.type!==P.TEXT&&K.previous.type!==P.TEXT&&(k=K.newlines?1:0),this.preserve_newlines&&(k=K.newlines<this.max_preserve_newlines+1?K.newlines:this.max_preserve_newlines+1);for(var V=0;V<k;V++)this.print_newline(V>0);return k!==0},R.prototype.traverse_whitespace=function(K){return K.whitespace_before||K.newlines?(this.print_preserved_newlines(K)||(this._output.space_before_token=!0),!0):!1},R.prototype.previous_token_wrapped=function(){return this._output.previous_token_wrapped},R.prototype.print_newline=function(K){this._output.add_new_line(K)},R.prototype.print_token=function(K){K.text&&(this._output.set_indent(this.indent_level,this.alignment_size),this._output.add_token(K.text))},R.prototype.indent=function(){this.indent_level++},R.prototype.deindent=function(){this.indent_level>0&&(this.indent_level--,this._output.set_indent(this.indent_level,this.alignment_size))},R.prototype.get_full_indent=function(K){return K=this.indent_level+(K||0),K<1?"":this._output.get_indent_string(K)};var J=function(K){for(var k=null,V=K.next;V.type!==P.EOF&&K.closed!==V;){if(V.type===P.ATTRIBUTE&&V.text==="type"){V.next&&V.next.type===P.EQUALS&&V.next.next&&V.next.next.type===P.VALUE&&(k=V.next.next.text);break}V=V.next}return k},q=function(K,k){var V=null,$=null;return k.closed?(K==="script"?V="text/javascript":K==="style"&&(V="text/css"),V=J(k)||V,V.search("text/css")>-1?$="css":V.search(/module|((text|application|dojo)\/(x-)?(javascript|ecmascript|jscript|livescript|(ld\+)?json|method|aspect))/)>-1?$="javascript":V.search(/(text|application|dojo)\/(x-)?(html)/)>-1?$="html":V.search(/test\/null/)>-1&&($="null"),$):null};function ge(K,k){return k.indexOf(K)!==-1}function _e(K,k,V){this.parent=K||null,this.tag=k?k.tag_name:"",this.indent_level=V||0,this.parser_token=k||null}function se(K){this._printer=K,this._current_frame=null}se.prototype.get_parser_token=function(){return this._current_frame?this._current_frame.parser_token:null},se.prototype.record_tag=function(K){var k=new _e(this._current_frame,K,this._printer.indent_level);this._current_frame=k},se.prototype._try_pop_frame=function(K){var k=null;return K&&(k=K.parser_token,this._printer.indent_level=K.indent_level,this._current_frame=K.parent),k},se.prototype._get_frame=function(K,k){for(var V=this._current_frame;V&&K.indexOf(V.tag)===-1;){if(k&&k.indexOf(V.tag)!==-1){V=null;break}V=V.parent}return V},se.prototype.try_pop=function(K,k){var V=this._get_frame([K],k);return this._try_pop_frame(V)},se.prototype.indent_to_tag=function(K){var k=this._get_frame(K);k&&(this._printer.indent_level=k.indent_level)};function we(K,k,V,$){this._source_text=K||"",k=k||{},this._js_beautify=V,this._css_beautify=$,this._tag_stack=null;var ae=new E(k,"html");this._options=ae,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"}we.prototype.beautify=function(){if(this._options.disabled)return this._source_text;var K=this._source_text,k=this._options.eol;this._options.eol==="auto"&&(k=`
`,K&&H.test(K)&&(k=K.match(H)[0])),K=K.replace(B,`
`);var V=K.match(/^[\t ]*/)[0],$={text:"",type:""},ae=new de(this._options),re=new R(this._options,V),x=new O(K,this._options).tokenize();this._tag_stack=new se(re);for(var b=null,W=x.next();W.type!==P.EOF;)W.type===P.TAG_OPEN||W.type===P.COMMENT?(b=this._handle_tag_open(re,W,ae,$,x),ae=b):W.type===P.ATTRIBUTE||W.type===P.EQUALS||W.type===P.VALUE||W.type===P.TEXT&&!ae.tag_complete?b=this._handle_inside_tag(re,W,ae,$):W.type===P.TAG_CLOSE?b=this._handle_tag_close(re,W,ae):W.type===P.TEXT?b=this._handle_text(re,W,ae):W.type===P.CONTROL_FLOW_OPEN?b=this._handle_control_flow_open(re,W):W.type===P.CONTROL_FLOW_CLOSE?b=this._handle_control_flow_close(re,W):re.add_raw_token(W),$=b,W=x.next();var fe=re._output.get_code(k);return fe},we.prototype._handle_control_flow_open=function(K,k){var V={text:k.text,type:k.type};return K.set_space_before_token(k.newlines||k.whitespace_before!=="",!0),k.newlines?K.print_preserved_newlines(k):K.set_space_before_token(k.newlines||k.whitespace_before!=="",!0),K.print_token(k),K.indent(),V},we.prototype._handle_control_flow_close=function(K,k){var V={text:k.text,type:k.type};return K.deindent(),k.newlines?K.print_preserved_newlines(k):K.set_space_before_token(k.newlines||k.whitespace_before!=="",!0),K.print_token(k),V},we.prototype._handle_tag_close=function(K,k,V){var $={text:k.text,type:k.type};return K.alignment_size=0,V.tag_complete=!0,K.set_space_before_token(k.newlines||k.whitespace_before!=="",!0),V.is_unformatted?K.add_raw_token(k):(V.tag_start_char==="<"&&(K.set_space_before_token(k.text[0]==="/",!0),this._is_wrap_attributes_force_expand_multiline&&V.has_wrapped_attrs&&K.print_newline(!1)),K.print_token(k)),V.indent_content&&!(V.is_unformatted||V.is_content_unformatted)&&(K.indent(),V.indent_content=!1),!V.is_inline_element&&!(V.is_unformatted||V.is_content_unformatted)&&K.set_wrap_point(),$},we.prototype._handle_inside_tag=function(K,k,V,$){var ae=V.has_wrapped_attrs,re={text:k.text,type:k.type};return K.set_space_before_token(k.newlines||k.whitespace_before!=="",!0),V.is_unformatted?K.add_raw_token(k):V.tag_start_char==="{"&&k.type===P.TEXT?K.print_preserved_newlines(k)?(k.newlines=0,K.add_raw_token(k)):K.print_token(k):(k.type===P.ATTRIBUTE?K.set_space_before_token(!0):(k.type===P.EQUALS||k.type===P.VALUE&&k.previous.type===P.EQUALS)&&K.set_space_before_token(!1),k.type===P.ATTRIBUTE&&V.tag_start_char==="<"&&((this._is_wrap_attributes_preserve||this._is_wrap_attributes_preserve_aligned)&&(K.traverse_whitespace(k),ae=ae||k.newlines!==0),this._is_wrap_attributes_force&&V.attr_count>=this._options.wrap_attributes_min_attrs&&($.type!==P.TAG_OPEN||this._is_wrap_attributes_force_expand_multiline)&&(K.print_newline(!1),ae=!0)),K.print_token(k),ae=ae||K.previous_token_wrapped(),V.has_wrapped_attrs=ae),re},we.prototype._handle_text=function(K,k,V){var $={text:k.text,type:"TK_CONTENT"};return V.custom_beautifier_name?this._print_custom_beatifier_text(K,k,V):V.is_unformatted||V.is_content_unformatted?K.add_raw_token(k):(K.traverse_whitespace(k),K.print_token(k)),$},we.prototype._print_custom_beatifier_text=function(K,k,V){var $=this;if(k.text!==""){var ae=k.text,re,x=1,b="",W="";V.custom_beautifier_name==="javascript"&&typeof this._js_beautify=="function"?re=this._js_beautify:V.custom_beautifier_name==="css"&&typeof this._css_beautify=="function"?re=this._css_beautify:V.custom_beautifier_name==="html"&&(re=function(Ot,Dt){var Ve=new we(Ot,Dt,$._js_beautify,$._css_beautify);return Ve.beautify()}),this._options.indent_scripts==="keep"?x=0:this._options.indent_scripts==="separate"&&(x=-K.indent_level);var fe=K.get_full_indent(x);if(ae=ae.replace(/\n[ \t]*$/,""),V.custom_beautifier_name!=="html"&&ae[0]==="<"&&ae.match(/^(<!--|<!\[CDATA\[)/)){var ke=/^(<!--[^\n]*|<!\[CDATA\[)(\n?)([ \t\n]*)([\s\S]*)(-->|]]>)$/.exec(ae);if(!ke){K.add_raw_token(k);return}b=fe+ke[1]+`
`,ae=ke[4],ke[5]&&(W=fe+ke[5]),ae=ae.replace(/\n[ \t]*$/,""),(ke[2]||ke[3].indexOf(`
`)!==-1)&&(ke=ke[3].match(/[ \t]+$/),ke&&(k.whitespace_before=ke[0]))}if(ae)if(re){var je=function(){this.eol=`
`};je.prototype=this._options.raw_options;var yt=new je;ae=re(fe+ae,yt)}else{var ht=k.whitespace_before;ht&&(ae=ae.replace(new RegExp(`
(`+ht+")?","g"),`
`)),ae=fe+ae.replace(/\n/g,`
`+fe)}b&&(ae?ae=b+ae+`
`+W:ae=b+W),K.print_newline(!1),ae&&(k.text=ae,k.whitespace_before="",k.newlines=0,K.add_raw_token(k),K.print_newline(!0))}},we.prototype._handle_tag_open=function(K,k,V,$,ae){var re=this._get_tag_open_token(k);if((V.is_unformatted||V.is_content_unformatted)&&!V.is_empty_element&&k.type===P.TAG_OPEN&&!re.is_start_tag?(K.add_raw_token(k),re.start_tag_token=this._tag_stack.try_pop(re.tag_name)):(K.traverse_whitespace(k),this._set_tag_position(K,k,re,V,$),re.is_inline_element||K.set_wrap_point(),K.print_token(k)),re.is_start_tag&&this._is_wrap_attributes_force){var x=0,b;do b=ae.peek(x),b.type===P.ATTRIBUTE&&(re.attr_count+=1),x+=1;while(b.type!==P.EOF&&b.type!==P.TAG_CLOSE)}return(this._is_wrap_attributes_force_aligned||this._is_wrap_attributes_aligned_multiple||this._is_wrap_attributes_preserve_aligned)&&(re.alignment_size=k.text.length+1),!re.tag_complete&&!re.is_unformatted&&(K.alignment_size=re.alignment_size),re};var de=function(K,k,V){if(this.parent=k||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="",!V)this.tag_complete=!0;else{var $;this.tag_start_char=V.text[0],this.text=V.text,this.tag_start_char==="<"?($=V.text.match(/^<([^\s>]*)/),this.tag_check=$?$[1]:""):($=V.text.match(/^{{~?(?:[\^]|#\*?)?([^\s}]+)/),this.tag_check=$?$[1]:"",(V.text.startsWith("{{#>")||V.text.startsWith("{{~#>"))&&this.tag_check[0]===">"&&(this.tag_check===">"&&V.next!==null?this.tag_check=V.next.text.split(" ")[0]:this.tag_check=V.text.split(">")[1])),this.tag_check=this.tag_check.toLowerCase(),V.type===P.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||V.closed&&V.closed.text==="/>";var ae=2;this.tag_start_char==="{"&&this.text.length>=3&&this.text.charAt(2)==="~"&&(ae=3),this.is_end_tag=this.is_end_tag||this.tag_start_char==="{"&&(!K.indent_handlebars||this.text.length<3||/[^#\^]/.test(this.text.charAt(ae)))}};we.prototype._get_tag_open_token=function(K){var k=new de(this._options,this._tag_stack.get_parser_token(),K);return k.alignment_size=this._options.wrap_attributes_indent_size,k.is_end_tag=k.is_end_tag||ge(k.tag_check,this._options.void_elements),k.is_empty_element=k.tag_complete||k.is_start_tag&&k.is_end_tag,k.is_unformatted=!k.tag_complete&&ge(k.tag_check,this._options.unformatted),k.is_content_unformatted=!k.is_empty_element&&ge(k.tag_check,this._options.content_unformatted),k.is_inline_element=ge(k.tag_name,this._options.inline)||this._options.inline_custom_elements&&k.tag_name.includes("-")||k.tag_start_char==="{",k},we.prototype._set_tag_position=function(K,k,V,$,ae){if(V.is_empty_element||(V.is_end_tag?V.start_tag_token=this._tag_stack.try_pop(V.tag_name):(this._do_optional_end_element(V)&&(V.is_inline_element||K.print_newline(!1)),this._tag_stack.record_tag(V),(V.tag_name==="script"||V.tag_name==="style")&&!(V.is_unformatted||V.is_content_unformatted)&&(V.custom_beautifier_name=q(V.tag_check,k)))),ge(V.tag_check,this._options.extra_liners)&&(K.print_newline(!1),K._output.just_added_blankline()||K.print_newline(!0)),V.is_empty_element){if(V.tag_start_char==="{"&&V.tag_check==="else"){this._tag_stack.indent_to_tag(["if","unless","each"]),V.indent_content=!0;var re=K.current_line_has_match(/{{#if/);re||K.print_newline(!1)}V.tag_name==="!--"&&ae.type===P.TAG_CLOSE&&$.is_end_tag&&V.text.indexOf(`
`)===-1||(V.is_inline_element||V.is_unformatted||K.print_newline(!1),this._calcluate_parent_multiline(K,V))}else if(V.is_end_tag){var x=!1;x=V.start_tag_token&&V.start_tag_token.multiline_content,x=x||!V.is_inline_element&&!($.is_inline_element||$.is_unformatted)&&!(ae.type===P.TAG_CLOSE&&V.start_tag_token===$)&&ae.type!=="TK_CONTENT",(V.is_content_unformatted||V.is_unformatted)&&(x=!1),x&&K.print_newline(!1)}else V.indent_content=!V.custom_beautifier_name,V.tag_start_char==="<"&&(V.tag_name==="html"?V.indent_content=this._options.indent_inner_html:V.tag_name==="head"?V.indent_content=this._options.indent_head_inner_html:V.tag_name==="body"&&(V.indent_content=this._options.indent_body_inner_html)),!(V.is_inline_element||V.is_unformatted)&&(ae.type!=="TK_CONTENT"||V.is_content_unformatted)&&K.print_newline(!1),this._calcluate_parent_multiline(K,V)},we.prototype._calcluate_parent_multiline=function(K,k){k.parent&&K._output.just_added_newline()&&!((k.is_inline_element||k.is_unformatted)&&k.parent.is_inline_element)&&(k.parent.multiline_content=!0)};var ie=["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"],oe=["a","audio","del","ins","map","noscript","video"];we.prototype._do_optional_end_element=function(K){var k=null;if(!(K.is_empty_element||!K.is_start_tag||!K.parent)){if(K.tag_name==="body")k=k||this._tag_stack.try_pop("head");else if(K.tag_name==="li")k=k||this._tag_stack.try_pop("li",["ol","ul","menu"]);else if(K.tag_name==="dd"||K.tag_name==="dt")k=k||this._tag_stack.try_pop("dt",["dl"]),k=k||this._tag_stack.try_pop("dd",["dl"]);else if(K.parent.tag_name==="p"&&ie.indexOf(K.tag_name)!==-1){var V=K.parent.parent;(!V||oe.indexOf(V.tag_name)===-1)&&(k=k||this._tag_stack.try_pop("p"))}else K.tag_name==="rp"||K.tag_name==="rt"?(k=k||this._tag_stack.try_pop("rt",["ruby","rtc"]),k=k||this._tag_stack.try_pop("rp",["ruby","rtc"])):K.tag_name==="optgroup"?k=k||this._tag_stack.try_pop("optgroup",["select"]):K.tag_name==="option"?k=k||this._tag_stack.try_pop("option",["select","datalist","optgroup"]):K.tag_name==="colgroup"?k=k||this._tag_stack.try_pop("caption",["table"]):K.tag_name==="thead"?(k=k||this._tag_stack.try_pop("caption",["table"]),k=k||this._tag_stack.try_pop("colgroup",["table"])):K.tag_name==="tbody"||K.tag_name==="tfoot"?(k=k||this._tag_stack.try_pop("caption",["table"]),k=k||this._tag_stack.try_pop("colgroup",["table"]),k=k||this._tag_stack.try_pop("thead",["table"]),k=k||this._tag_stack.try_pop("tbody",["table"])):K.tag_name==="tr"?(k=k||this._tag_stack.try_pop("caption",["table"]),k=k||this._tag_stack.try_pop("colgroup",["table"]),k=k||this._tag_stack.try_pop("tr",["table","thead","tbody","tfoot"])):(K.tag_name==="th"||K.tag_name==="td")&&(k=k||this._tag_stack.try_pop("td",["table","thead","tbody","tfoot","tr"]),k=k||this._tag_stack.try_pop("th",["table","thead","tbody","tfoot","tr"]));return K.parent=this._tag_stack.get_parser_token(),k}},L.exports.Beautifier=we},function(L,_,y){var E=y(6).Options;function S(O){E.call(this,O,"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"])}S.prototype=new E,L.exports.Options=S},function(L,_,y){var E=y(9).Tokenizer,S=y(9).TOKEN,O=y(13).Directives,P=y(14).TemplatablePattern,H=y(12).Pattern,B={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:S.START,RAW:S.RAW,EOF:S.EOF},R=new O(/<\!--/,/-->/),J=function(q,ge){E.call(this,q,ge),this._current_tag_name="";var _e=new P(this._input).read_options(this._options),se=new H(this._input);if(this.__patterns={word:_e.until(/[\n\r\t <]/),word_control_flow_close_excluded:_e.until(/[\n\r\t <}]/),single_quote:_e.until_after(/'/),double_quote:_e.until_after(/"/),attribute:_e.until(/[\n\r\t =>]|\/>/),element_name:_e.until(/[\n\r\t >\/]/),angular_control_flow_start:se.matching(/\@[a-zA-Z]+[^({]*[({]/),handlebars_comment:se.starting_with(/{{!--/).until_after(/--}}/),handlebars:se.starting_with(/{{/).until_after(/}}/),handlebars_open:se.until(/[\n\r\t }]/),handlebars_raw_close:se.until(/}}/),comment:se.starting_with(/<!--/).until_after(/-->/),cdata:se.starting_with(/<!\[CDATA\[/).until_after(/]]>/),conditional_comment:se.starting_with(/<!\[/).until_after(/]>/),processing:se.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 we=this._input.get_literal_regexp(this._options.unformatted_content_delimiter);this.__patterns.unformatted_content_delimiter=se.matching(we).until_after(we)}};J.prototype=new E,J.prototype._is_comment=function(q){return!1},J.prototype._is_opening=function(q){return q.type===B.TAG_OPEN||q.type===B.CONTROL_FLOW_OPEN},J.prototype._is_closing=function(q,ge){return q.type===B.TAG_CLOSE&&ge&&((q.text===">"||q.text==="/>")&&ge.text[0]==="<"||q.text==="}}"&&ge.text[0]==="{"&&ge.text[1]==="{")||q.type===B.CONTROL_FLOW_CLOSE&&q.text==="}"&&ge.text.endsWith("{")},J.prototype._reset=function(){this._current_tag_name=""},J.prototype._get_next_token=function(q,ge){var _e=null;this._readWhitespace();var se=this._input.peek();return se===null?this._create_token(B.EOF,""):(_e=_e||this._read_open_handlebars(se,ge),_e=_e||this._read_attribute(se,q,ge),_e=_e||this._read_close(se,ge),_e=_e||this._read_script_and_style(se,q),_e=_e||this._read_control_flows(se,ge),_e=_e||this._read_raw_content(se,q,ge),_e=_e||this._read_content_word(se,ge),_e=_e||this._read_comment_or_cdata(se),_e=_e||this._read_processing(se),_e=_e||this._read_open(se,ge),_e=_e||this._create_token(B.UNKNOWN,this._input.next()),_e)},J.prototype._read_comment_or_cdata=function(q){var ge=null,_e=null,se=null;if(q==="<"){var we=this._input.peek(1);we==="!"&&(_e=this.__patterns.comment.read(),_e?(se=R.get_directives(_e),se&&se.ignore==="start"&&(_e+=R.readIgnored(this._input))):_e=this.__patterns.cdata.read()),_e&&(ge=this._create_token(B.COMMENT,_e),ge.directives=se)}return ge},J.prototype._read_processing=function(q){var ge=null,_e=null,se=null;if(q==="<"){var we=this._input.peek(1);(we==="!"||we==="?")&&(_e=this.__patterns.conditional_comment.read(),_e=_e||this.__patterns.processing.read()),_e&&(ge=this._create_token(B.COMMENT,_e),ge.directives=se)}return ge},J.prototype._read_open=function(q,ge){var _e=null,se=null;return(!ge||ge.type===B.CONTROL_FLOW_OPEN)&&q==="<"&&(_e=this._input.next(),this._input.peek()==="/"&&(_e+=this._input.next()),_e+=this.__patterns.element_name.read(),se=this._create_token(B.TAG_OPEN,_e)),se},J.prototype._read_open_handlebars=function(q,ge){var _e=null,se=null;return(!ge||ge.type===B.CONTROL_FLOW_OPEN)&&(this._options.templating.includes("angular")||this._options.indent_handlebars)&&q==="{"&&this._input.peek(1)==="{"&&(this._options.indent_handlebars&&this._input.peek(2)==="!"?(_e=this.__patterns.handlebars_comment.read(),_e=_e||this.__patterns.handlebars.read(),se=this._create_token(B.COMMENT,_e)):(_e=this.__patterns.handlebars_open.read(),se=this._create_token(B.TAG_OPEN,_e))),se},J.prototype._read_control_flows=function(q,ge){var _e="",se=null;if(!this._options.templating.includes("angular"))return se;if(q==="@"){if(_e=this.__patterns.angular_control_flow_start.read(),_e==="")return se;for(var we=_e.endsWith("(")?1:0,de=0;!(_e.endsWith("{")&&we===de);){var ie=this._input.next();if(ie===null)break;ie==="("?we++:ie===")"&&de++,_e+=ie}se=this._create_token(B.CONTROL_FLOW_OPEN,_e)}else q==="}"&&ge&&ge.type===B.CONTROL_FLOW_OPEN&&(_e=this._input.next(),se=this._create_token(B.CONTROL_FLOW_CLOSE,_e));return se},J.prototype._read_close=function(q,ge){var _e=null,se=null;return ge&&ge.type===B.TAG_OPEN&&(ge.text[0]==="<"&&(q===">"||q==="/"&&this._input.peek(1)===">")?(_e=this._input.next(),q==="/"&&(_e+=this._input.next()),se=this._create_token(B.TAG_CLOSE,_e)):ge.text[0]==="{"&&q==="}"&&this._input.peek(1)==="}"&&(this._input.next(),this._input.next(),se=this._create_token(B.TAG_CLOSE,"}}"))),se},J.prototype._read_attribute=function(q,ge,_e){var se=null,we="";if(_e&&_e.text[0]==="<")if(q==="=")se=this._create_token(B.EQUALS,this._input.next());else if(q==='"'||q==="'"){var de=this._input.next();q==='"'?de+=this.__patterns.double_quote.read():de+=this.__patterns.single_quote.read(),se=this._create_token(B.VALUE,de)}else we=this.__patterns.attribute.read(),we&&(ge.type===B.EQUALS?se=this._create_token(B.VALUE,we):se=this._create_token(B.ATTRIBUTE,we));return se},J.prototype._is_content_unformatted=function(q){return this._options.void_elements.indexOf(q)===-1&&(this._options.content_unformatted.indexOf(q)!==-1||this._options.unformatted.indexOf(q)!==-1)},J.prototype._read_raw_content=function(q,ge,_e){var se="";if(_e&&_e.text[0]==="{")se=this.__patterns.handlebars_raw_close.read();else if(ge.type===B.TAG_CLOSE&&ge.opened.text[0]==="<"&&ge.text[0]!=="/"){var we=ge.opened.text.substr(1).toLowerCase();this._is_content_unformatted(we)&&(se=this._input.readUntil(new RegExp("</"+we+"[\\n\\r\\t ]*?>","ig")))}return se?this._create_token(B.TEXT,se):null},J.prototype._read_script_and_style=function(q,ge){if(ge.type===B.TAG_CLOSE&&ge.opened.text[0]==="<"&&ge.text[0]!=="/"){var _e=ge.opened.text.substr(1).toLowerCase();if(_e==="script"||_e==="style"){var se=this._read_comment_or_cdata(q);if(se)return se.type=B.TEXT,se;var we=this._input.readUntil(new RegExp("</"+_e+"[\\n\\r\\t ]*?>","ig"));if(we)return this._create_token(B.TEXT,we)}}return null},J.prototype._read_content_word=function(q,ge){var _e="";return this._options.unformatted_content_delimiter&&q===this._options.unformatted_content_delimiter[0]&&(_e=this.__patterns.unformatted_content_delimiter.read()),_e||(_e=ge&&ge.type===B.CONTROL_FLOW_OPEN?this.__patterns.word_control_flow_close_excluded.read():this.__patterns.word.read()),_e?this._create_token(B.TEXT,_e):null},L.exports.Tokenizer=J,L.exports.TOKEN=B}],U={};function o(L){var _=U[L];if(_!==void 0)return _.exports;var y=U[L]={exports:{}};return ve[L](y,y.exports,o),y.exports}var X=o(18);xe=X})();var ce=xe;if(1)p=[w,w(58553),w(87804)],Ae=function(ve){var U=w(58553),o=w(87804);return{html_beautify:function(X,L){return ce(X,L,U.js_beautify,o.css_beautify)}}}.apply(Ge,p),Ae!==void 0&&(Xe.exports=Ae);else var Y,m})()},58553:function(Xe,Ge){var w,p;(function(){var Ae;(function(){"use strict";var ce=[function(U,o,X){var L=X(1).Beautifier,_=X(5).Options;function y(E,S){var O=new L(E,S);return O.beautify()}U.exports=y,U.exports.defaultOptions=function(){return new _}},function(U,o,X){var L=X(2).Output,_=X(3).Token,y=X(4),E=X(5).Options,S=X(7).Tokenizer,O=X(7).line_starters,P=X(7).positionable_operators,H=X(7).TOKEN;function B(b,W){return W.indexOf(b)!==-1}function R(b){return b.replace(/^\s+/g,"")}function J(b){for(var W={},fe=0;fe<b.length;fe++)W[b[fe].replace(/-/g,"_")]=b[fe];return W}function q(b,W){return b&&b.type===H.RESERVED&&b.text===W}function ge(b,W){return b&&b.type===H.RESERVED&&B(b.text,W)}var _e=["case","return","do","if","throw","else","await","break","continue","async"],se=["before-newline","after-newline","preserve-newline"],we=J(se),de=[we.before_newline,we.preserve_newline],ie={BlockStatement:"BlockStatement",Statement:"Statement",ObjectLiteral:"ObjectLiteral",ArrayLiteral:"ArrayLiteral",ForInitializer:"ForInitializer",Conditional:"Conditional",Expression:"Expression"};function oe(b,W){W.multiline_frame||W.mode===ie.ForInitializer||W.mode===ie.Conditional||b.remove_indent(W.start_line_index)}function K(b){b=b.replace(y.allLineBreaks,`
`);for(var W=[],fe=b.indexOf(`
`);fe!==-1;)W.push(b.substring(0,fe)),b=b.substring(fe+1),fe=b.indexOf(`
`);return b.length&&W.push(b),W}function k(b){return b===ie.ArrayLiteral}function V(b){return B(b,[ie.Expression,ie.ForInitializer,ie.Conditional])}function $(b,W){for(var fe=0;fe<b.length;fe++){var ke=b[fe].trim();if(ke.charAt(0)!==W)return!1}return!0}function ae(b,W){for(var fe=0,ke=b.length,je;fe<ke;fe++)if(je=b[fe],je&&je.indexOf(W)!==0)return!1;return!0}function re(b,W){W=W||{},this._source_text=b||"",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 E(W)}re.prototype.create_flags=function(b,W){var fe=0;b&&(fe=b.indentation_level,!this._output.just_added_newline()&&b.line_indent_level>fe&&(fe=b.line_indent_level));var ke={mode:W,parent:b,last_token:b?b.last_token:new _(H.START_BLOCK,""),last_word:b?b.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:fe,alignment:0,line_indent_level:b?b.line_indent_level:fe,start_line_index:this._output.get_line_number(),ternary_depth:0};return ke},re.prototype._reset=function(b){var W=b.match(/^[\t ]*/)[0];this._last_last_text="",this._output=new L(this._options,W),this._output.raw=this._options.test_output_raw,this._flag_store=[],this.set_mode(ie.BlockStatement);var fe=new S(b,this._options);return this._tokens=fe.tokenize(),b},re.prototype.beautify=function(){if(this._options.disabled)return this._source_text;var b,W=this._reset(this._source_text),fe=this._options.eol;this._options.eol==="auto"&&(fe=`
`,W&&y.lineBreak.test(W||"")&&(fe=W.match(y.lineBreak)[0]));for(var ke=this._tokens.next();ke;)this.handle_token(ke),this._last_last_text=this._flags.last_token.text,this._flags.last_token=ke,ke=this._tokens.next();return b=this._output.get_code(fe),b},re.prototype.handle_token=function(b,W){b.type===H.START_EXPR?this.handle_start_expr(b):b.type===H.END_EXPR?this.handle_end_expr(b):b.type===H.START_BLOCK?this.handle_start_block(b):b.type===H.END_BLOCK?this.handle_end_block(b):b.type===H.WORD?this.handle_word(b):b.type===H.RESERVED?this.handle_word(b):b.type===H.SEMICOLON?this.handle_semicolon(b):b.type===H.STRING?this.handle_string(b):b.type===H.EQUALS?this.handle_equals(b):b.type===H.OPERATOR?this.handle_operator(b):b.type===H.COMMA?this.handle_comma(b):b.type===H.BLOCK_COMMENT?this.handle_block_comment(b,W):b.type===H.COMMENT?this.handle_comment(b,W):b.type===H.DOT?this.handle_dot(b):b.type===H.EOF?this.handle_eof(b):b.type===H.UNKNOWN?this.handle_unknown(b,W):this.handle_unknown(b,W)},re.prototype.handle_whitespace_and_comments=function(b,W){var fe=b.newlines,ke=this._options.keep_array_indentation&&k(this._flags.mode);if(b.comments_before)for(var je=b.comments_before.next();je;)this.handle_whitespace_and_comments(je,W),this.handle_token(je,W),je=b.comments_before.next();if(ke)for(var yt=0;yt<fe;yt+=1)this.print_newline(yt>0,W);else if(this._options.max_preserve_newlines&&fe>this._options.max_preserve_newlines&&(fe=this._options.max_preserve_newlines),this._options.preserve_newlines&&fe>1){this.print_newline(!1,W);for(var ht=1;ht<fe;ht+=1)this.print_newline(!0,W)}};var x=["async","break","continue","return","throw","yield"];re.prototype.allow_wrap_or_preserved_newline=function(b,W){if(W=W===void 0?!1:W,!this._output.just_added_newline()){var fe=this._options.preserve_newlines&&b.newlines||W,ke=B(this._flags.last_token.text,P)||B(b.text,P);if(ke){var je=B(this._flags.last_token.text,P)&&B(this._options.operator_position,de)||B(b.text,P);fe=fe&&je}if(fe)this.print_newline(!1,!0);else if(this._options.wrap_line_length){if(ge(this._flags.last_token,x))return;this._output.set_wrap_point()}}},re.prototype.print_newline=function(b,W){if(!W&&this._flags.last_token.text!==";"&&this._flags.last_token.text!==","&&this._flags.last_token.text!=="="&&(this._flags.last_token.type!==H.OPERATOR||this._flags.last_token.text==="--"||this._flags.last_token.text==="++"))for(var fe=this._tokens.peek();this._flags.mode===ie.Statement&&!(this._flags.if_block&&q(fe,"else"))&&!this._flags.do_block;)this.restore_mode();this._output.add_new_line(b)&&(this._flags.multiline_frame=!0)},re.prototype.print_token_line_indentation=function(b){this._output.just_added_newline()&&(this._options.keep_array_indentation&&b.newlines&&(b.text==="["||k(this._flags.mode))?(this._output.current_line.set_indent(-1),this._output.current_line.push(b.whitespace_before),this._output.space_before_token=!1):this._output.set_indent(this._flags.indentation_level,this._flags.alignment)&&(this._flags.line_indent_level=this._flags.indentation_level))},re.prototype.print_token=function(b){if(this._output.raw){this._output.add_raw_token(b);return}if(this._options.comma_first&&b.previous&&b.previous.type===H.COMMA&&this._output.just_added_newline()&&this._output.previous_line.last()===","){var W=this._output.previous_line.pop();this._output.previous_line.is_empty()&&(this._output.previous_line.push(W),this._output.trim(!0),this._output.current_line.pop(),this._output.trim()),this.print_token_line_indentation(b),this._output.add_token(","),this._output.space_before_token=!0}this.print_token_line_indentation(b),this._output.non_breaking_space=!0,this._output.add_token(b.text),this._output.previous_token_wrapped&&(this._flags.multiline_frame=!0)},re.prototype.indent=function(){this._flags.indentation_level+=1,this._output.set_indent(this._flags.indentation_level,this._flags.alignment)},re.prototype.deindent=function(){this._flags.indentation_level>0&&(!this._flags.parent||this._flags.indentation_level>this._flags.parent.indentation_level)&&(this._flags.indentation_level-=1,this._output.set_indent(this._flags.indentation_level,this._flags.alignment))},re.prototype.set_mode=function(b){this._flags?(this._flag_store.push(this._flags),this._previous_flags=this._flags):this._previous_flags=this.create_flags(null,b),this._flags=this.create_flags(this._previous_flags,b),this._output.set_indent(this._flags.indentation_level,this._flags.alignment)},re.prototype.restore_mode=function(){this._flag_store.length>0&&(this._previous_flags=this._flags,this._flags=this._flag_store.pop(),this._previous_flags.mode===ie.Statement&&oe(this._output,this._previous_flags),this._output.set_indent(this._flags.indentation_level,this._flags.alignment))},re.prototype.start_of_object_property=function(){return this._flags.parent.mode===ie.ObjectLiteral&&this._flags.mode===ie.Statement&&(this._flags.last_token.text===":"&&this._flags.ternary_depth===0||ge(this._flags.last_token,["get","set"]))},re.prototype.start_of_statement=function(b){var W=!1;return W=W||ge(this._flags.last_token,["var","let","const"])&&b.type===H.WORD,W=W||q(this._flags.last_token,"do"),W=W||!(this._flags.parent.mode===ie.ObjectLiteral&&this._flags.mode===ie.Statement)&&ge(this._flags.last_token,x)&&!b.newlines,W=W||q(this._flags.last_token,"else")&&!(q(b,"if")&&!b.comments_before),W=W||this._flags.last_token.type===H.END_EXPR&&(this._previous_flags.mode===ie.ForInitializer||this._previous_flags.mode===ie.Conditional),W=W||this._flags.last_token.type===H.WORD&&this._flags.mode===ie.BlockStatement&&!this._flags.in_case&&!(b.text==="--"||b.text==="++")&&this._last_last_text!=="function"&&b.type!==H.WORD&&b.type!==H.RESERVED,W=W||this._flags.mode===ie.ObjectLiteral&&(this._flags.last_token.text===":"&&this._flags.ternary_depth===0||ge(this._flags.last_token,["get","set"])),W?(this.set_mode(ie.Statement),this.indent(),this.handle_whitespace_and_comments(b,!0),this.start_of_object_property()||this.allow_wrap_or_preserved_newline(b,ge(b,["do","for","if","while"])),!0):!1},re.prototype.handle_start_expr=function(b){this.start_of_statement(b)||this.handle_whitespace_and_comments(b);var W=ie.Expression;if(b.text==="["){if(this._flags.last_token.type===H.WORD||this._flags.last_token.text===")"){ge(this._flags.last_token,O)&&(this._output.space_before_token=!0),this.print_token(b),this.set_mode(W),this.indent(),this._options.space_in_paren&&(this._output.space_before_token=!0);return}W=ie.ArrayLiteral,k(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()),B(this._flags.last_token.type,[H.START_EXPR,H.END_EXPR,H.WORD,H.OPERATOR,H.DOT])||(this._output.space_before_token=!0)}else{if(this._flags.last_token.type===H.RESERVED)this._flags.last_token.text==="for"?(this._output.space_before_token=this._options.space_before_conditional,W=ie.ForInitializer):B(this._flags.last_token.text,["if","while","switch"])?(this._output.space_before_token=this._options.space_before_conditional,W=ie.Conditional):B(this._flags.last_word,["await","async"])?this._output.space_before_token=!0:this._flags.last_token.text==="import"&&b.whitespace_before===""?this._output.space_before_token=!1:(B(this._flags.last_token.text,O)||this._flags.last_token.text==="catch")&&(this._output.space_before_token=!0);else if(this._flags.last_token.type===H.EQUALS||this._flags.last_token.type===H.OPERATOR)this.start_of_object_property()||this.allow_wrap_or_preserved_newline(b);else if(this._flags.last_token.type===H.WORD){this._output.space_before_token=!1;var fe=this._tokens.peek(-3);if(this._options.space_after_named_function&&fe){var ke=this._tokens.peek(-4);ge(fe,["async","function"])||fe.text==="*"&&ge(ke,["async","function"])?this._output.space_before_token=!0:this._flags.mode===ie.ObjectLiteral?(fe.text==="{"||fe.text===","||fe.text==="*"&&(ke.text==="{"||ke.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(b);(this._flags.last_token.type===H.RESERVED&&(this._flags.last_word==="function"||this._flags.last_word==="typeof")||this._flags.last_token.text==="*"&&(B(this._last_last_text,["function","yield"])||this._flags.mode===ie.ObjectLiteral&&B(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===H.START_BLOCK?this.print_newline():(this._flags.last_token.type===H.END_EXPR||this._flags.last_token.type===H.START_EXPR||this._flags.last_token.type===H.END_BLOCK||this._flags.last_token.text==="."||this._flags.last_token.type===H.COMMA)&&this.allow_wrap_or_preserved_newline(b,b.newlines),this.print_token(b),this.set_mode(W),this._options.space_in_paren&&(this._output.space_before_token=!0),this.indent()},re.prototype.handle_end_expr=function(b){for(;this._flags.mode===ie.Statement;)this.restore_mode();this.handle_whitespace_and_comments(b),this._flags.multiline_frame&&this.allow_wrap_or_preserved_newline(b,b.text==="]"&&k(this._flags.mode)&&!this._options.keep_array_indentation),this._options.space_in_paren&&(this._flags.last_token.type===H.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(b),this.restore_mode(),oe(this._output,this._previous_flags),this._flags.do_while&&this._previous_flags.mode===ie.Conditional&&(this._previous_flags.mode=ie.Expression,this._flags.do_block=!1,this._flags.do_while=!1)},re.prototype.handle_start_block=function(b){this.handle_whitespace_and_comments(b);var W=this._tokens.peek(),fe=this._tokens.peek(1);this._flags.last_word==="switch"&&this._flags.last_token.type===H.END_EXPR?(this.set_mode(ie.BlockStatement),this._flags.in_case_statement=!0):this._flags.case_body?this.set_mode(ie.BlockStatement):fe&&(B(fe.text,[":",","])&&B(W.type,[H.STRING,H.WORD,H.RESERVED])||B(W.text,["get","set","..."])&&B(fe.type,[H.WORD,H.RESERVED]))?B(this._last_last_text,["class","interface"])&&!B(fe.text,[":",","])?this.set_mode(ie.BlockStatement):this.set_mode(ie.ObjectLiteral):this._flags.last_token.type===H.OPERATOR&&this._flags.last_token.text==="=>"?this.set_mode(ie.BlockStatement):B(this._flags.last_token.type,[H.EQUALS,H.START_EXPR,H.COMMA,H.OPERATOR])||ge(this._flags.last_token,["return","throw","import","default"])?this.set_mode(ie.ObjectLiteral):this.set_mode(ie.BlockStatement),this._flags.last_token&&ge(this._flags.last_token.previous,["class","extends"])&&(this._flags.class_start_block=!0);var ke=!W.comments_before&&W.text==="}",je=ke&&this._flags.last_word==="function"&&this._flags.last_token.type===H.END_EXPR;if(this._options.brace_preserve_inline){var yt=0,ht=null;this._flags.inline_frame=!0;do if(yt+=1,ht=this._tokens.peek(yt-1),ht.newlines){this._flags.inline_frame=!1;break}while(ht.type!==H.EOF&&!(ht.type===H.END_BLOCK&&ht.opened===b))}(this._options.brace_style==="expand"||this._options.brace_style==="none"&&b.newlines)&&!this._flags.inline_frame?this._flags.last_token.type!==H.OPERATOR&&(je||this._flags.last_token.type===H.EQUALS||ge(this._flags.last_token,_e)&&this._flags.last_token.text!=="else")?this._output.space_before_token=!0:this.print_newline(!1,!0):(k(this._previous_flags.mode)&&(this._flags.last_token.type===H.START_EXPR||this._flags.last_token.type===H.COMMA)&&((this._flags.last_token.type===H.COMMA||this._options.space_in_paren)&&(this._output.space_before_token=!0),(this._flags.last_token.type===H.COMMA||this._flags.last_token.type===H.START_EXPR&&this._flags.inline_frame)&&(this.allow_wrap_or_preserved_newline(b),this._previous_flags.multiline_frame=this._previous_flags.multiline_frame||this._flags.multiline_frame,this._flags.multiline_frame=!1)),this._flags.last_token.type!==H.OPERATOR&&this._flags.last_token.type!==H.START_EXPR&&(B(this._flags.last_token.type,[H.START_BLOCK,H.SEMICOLON])&&!this._flags.inline_frame?this.print_newline():this._output.space_before_token=!0)),this.print_token(b),this.indent(),!ke&&!(this._options.brace_preserve_inline&&this._flags.inline_frame)&&this.print_newline()},re.prototype.handle_end_block=function(b){for(this.handle_whitespace_and_comments(b);this._flags.mode===ie.Statement;)this.restore_mode();var W=this._flags.last_token.type===H.START_BLOCK;this._flags.inline_frame&&!W?this._output.space_before_token=!0:this._options.brace_style==="expand"?W||this.print_newline():W||(k(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(b)},re.prototype.handle_word=function(b){if(b.type===H.RESERVED){if(B(b.text,["set","get"])&&this._flags.mode!==ie.ObjectLiteral)b.type=H.WORD;else if(b.text==="import"&&B(this._tokens.peek().text,["(","."]))b.type=H.WORD;else if(B(b.text,["as","from"])&&!this._flags.import_block)b.type=H.WORD;else if(this._flags.mode===ie.ObjectLiteral){var W=this._tokens.peek();W.text===":"&&(b.type=H.WORD)}}if(this.start_of_statement(b)?ge(this._flags.last_token,["var","let","const"])&&b.type===H.WORD&&(this._flags.declaration_statement=!0):b.newlines&&!V(this._flags.mode)&&(this._flags.last_token.type!==H.OPERATOR||this._flags.last_token.text==="--"||this._flags.last_token.text==="++")&&this._flags.last_token.type!==H.EQUALS&&(this._options.preserve_newlines||!ge(this._flags.last_token,["var","let","const","set","get"]))?(this.handle_whitespace_and_comments(b),this.print_newline()):this.handle_whitespace_and_comments(b),this._flags.do_block&&!this._flags.do_while)if(q(b,"while")){this._output.space_before_token=!0,this.print_token(b),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&&q(b,"else"))this._flags.else_block=!0;else{for(;this._flags.mode===ie.Statement;)this.restore_mode();this._flags.if_block=!1,this._flags.else_block=!1}if(this._flags.in_case_statement&&ge(b,["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(b),this._flags.in_case=!0;return}if((this._flags.last_token.type===H.COMMA||this._flags.last_token.type===H.START_EXPR||this._flags.last_token.type===H.EQUALS||this._flags.last_token.type===H.OPERATOR)&&!this.start_of_object_property()&&!(B(this._flags.last_token.text,["+","-"])&&this._last_last_text===":"&&this._flags.parent.mode===ie.ObjectLiteral)&&this.allow_wrap_or_preserved_newline(b),q(b,"function")){(B(this._flags.last_token.text,["}",";"])||this._output.just_added_newline()&&!(B(this._flags.last_token.text,["(","[","{",":","=",","])||this._flags.last_token.type===H.OPERATOR))&&!this._output.just_added_blankline()&&!b.comments_before&&(this.print_newline(),this.print_newline(!0)),this._flags.last_token.type===H.RESERVED||this._flags.last_token.type===H.WORD?ge(this._flags.last_token,["get","set","new","export"])||ge(this._flags.last_token,x)?this._output.space_before_token=!0:q(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===H.OPERATOR||this._flags.last_token.text==="="?this._output.space_before_token=!0:!this._flags.multiline_frame&&(V(this._flags.mode)||k(this._flags.mode))||this.print_newline(),this.print_token(b),this._flags.last_word=b.text;return}var fe="NONE";if(this._flags.last_token.type===H.END_BLOCK?this._previous_flags.inline_frame?fe="SPACE":ge(b,["else","catch","finally","from"])?this._options.brace_style==="expand"||this._options.brace_style==="end-expand"||this._options.brace_style==="none"&&b.newlines?fe="NEWLINE":(fe="SPACE",this._output.space_before_token=!0):fe="NEWLINE":this._flags.last_token.type===H.SEMICOLON&&this._flags.mode===ie.BlockStatement?fe="NEWLINE":this._flags.last_token.type===H.SEMICOLON&&V(this._flags.mode)?fe="SPACE":this._flags.last_token.type===H.STRING?fe="NEWLINE":this._flags.last_token.type===H.RESERVED||this._flags.last_token.type===H.WORD||this._flags.last_token.text==="*"&&(B(this._last_last_text,["function","yield"])||this._flags.mode===ie.ObjectLiteral&&B(this._last_last_text,["{",","]))?fe="SPACE":this._flags.last_token.type===H.START_BLOCK?this._flags.inline_frame?fe="SPACE":fe="NEWLINE":this._flags.last_token.type===H.END_EXPR&&(this._output.space_before_token=!0,fe="NEWLINE"),ge(b,O)&&this._flags.last_token.text!==")"&&(this._flags.inline_frame||this._flags.last_token.text==="else"||this._flags.last_token.text==="export"?fe="SPACE":fe="NEWLINE"),ge(b,["else","catch","finally"]))if((!(this._flags.last_token.type===H.END_BLOCK&&this._previous_flags.mode===ie.BlockStatement)||this._options.brace_style==="expand"||this._options.brace_style==="end-expand"||this._options.brace_style==="none"&&b.newlines)&&!this._flags.inline_frame)this.print_newline();else{this._output.trim(!0);var ke=this._output.current_line;ke.last()!=="}"&&this.print_newline(),this._output.space_before_token=!0}else fe==="NEWLINE"?ge(this._flags.last_token,_e)?this._output.space_before_token=!0:this._flags.last_token.text==="declare"&&ge(b,["var","let","const"])?this._output.space_before_token=!0:this._flags.last_token.type!==H.END_EXPR?(this._flags.last_token.type!==H.START_EXPR||!ge(b,["var","let","const"]))&&this._flags.last_token.text!==":"&&(q(b,"if")&&q(b.previous,"else")?this._output.space_before_token=!0:this.print_newline()):ge(b,O)&&this._flags.last_token.text!==")"&&this.print_newline():this._flags.multiline_frame&&k(this._flags.mode)&&this._flags.last_token.text===","&&this._last_last_text==="}"?this.print_newline():fe==="SPACE"&&(this._output.space_before_token=!0);b.previous&&(b.previous.type===H.WORD||b.previous.type===H.RESERVED)&&(this._output.space_before_token=!0),this.print_token(b),this._flags.last_word=b.text,b.type===H.RESERVED&&(b.text==="do"?this._flags.do_block=!0:b.text==="if"?this._flags.if_block=!0:b.text==="import"?this._flags.import_block=!0:this._flags.import_block&&q(b,"from")&&(this._flags.import_block=!1))},re.prototype.handle_semicolon=function(b){this.start_of_statement(b)?this._output.space_before_token=!1:this.handle_whitespace_and_comments(b);for(var W=this._tokens.peek();this._flags.mode===ie.Statement&&!(this._flags.if_block&&q(W,"else"))&&!this._flags.do_block;)this.restore_mode();this._flags.import_block&&(this._flags.import_block=!1),this.print_token(b)},re.prototype.handle_string=function(b){b.text.startsWith("`")&&b.newlines===0&&b.whitespace_before===""&&(b.previous.text===")"||this._flags.last_token.type===H.WORD)||(this.start_of_statement(b)?this._output.space_before_token=!0:(this.handle_whitespace_and_comments(b),this._flags.last_token.type===H.RESERVED||this._flags.last_token.type===H.WORD||this._flags.inline_frame?this._output.space_before_token=!0:this._flags.last_token.type===H.COMMA||this._flags.last_token.type===H.START_EXPR||this._flags.last_token.type===H.EQUALS||this._flags.last_token.type===H.OPERATOR?this.start_of_object_property()||this.allow_wrap_or_preserved_newline(b):b.text.startsWith("`")&&this._flags.last_token.type===H.END_EXPR&&(b.previous.text==="]"||b.previous.text===")")&&b.newlines===0?this._output.space_before_token=!0:this.print_newline())),this.print_token(b)},re.prototype.handle_equals=function(b){this.start_of_statement(b)||this.handle_whitespace_and_comments(b),this._flags.declaration_statement&&(this._flags.declaration_assignment=!0),this._output.space_before_token=!0,this.print_token(b),this._output.space_before_token=!0},re.prototype.handle_comma=function(b){this.handle_whitespace_and_comments(b,!0),this.print_token(b),this._output.space_before_token=!0,this._flags.declaration_statement?(V(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(b)):this._flags.mode===ie.ObjectLiteral||this._flags.mode===ie.Statement&&this._flags.parent.mode===ie.ObjectLiteral?(this._flags.mode===ie.Statement&&this.restore_mode(),this._flags.inline_frame||this.print_newline()):this._options.comma_first&&this.allow_wrap_or_preserved_newline(b)},re.prototype.handle_operator=function(b){var W=b.text==="*"&&(ge(this._flags.last_token,["function","yield"])||B(this._flags.last_token.type,[H.START_BLOCK,H.COMMA,H.END_BLOCK,H.SEMICOLON])),fe=B(b.text,["-","+"])&&(B(this._flags.last_token.type,[H.START_BLOCK,H.START_EXPR,H.EQUALS,H.OPERATOR])||B(this._flags.last_token.text,O)||this._flags.last_token.text===",");if(!this.start_of_statement(b)){var ke=!W;this.handle_whitespace_and_comments(b,ke)}if(b.text==="*"&&this._flags.last_token.type===H.DOT){this.print_token(b);return}if(b.text==="::"){this.print_token(b);return}if(B(b.text,["-","+"])&&this.start_of_object_property()){this.print_token(b);return}if(this._flags.last_token.type===H.OPERATOR&&B(this._options.operator_position,de)&&this.allow_wrap_or_preserved_newline(b),b.text===":"&&this._flags.in_case){this.print_token(b),this._flags.in_case=!1,this._flags.case_body=!0,this._tokens.peek().type!==H.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 je=!0,yt=!0,ht=!1;if(b.text===":"?this._flags.ternary_depth===0?je=!1:(this._flags.ternary_depth-=1,ht=!0):b.text==="?"&&(this._flags.ternary_depth+=1),!fe&&!W&&this._options.preserve_newlines&&B(b.text,P)){var Ot=b.text===":",Dt=Ot&&ht,Ve=Ot&&!ht;switch(this._options.operator_position){case we.before_newline:this._output.space_before_token=!Ve,this.print_token(b),(!Ot||Dt)&&this.allow_wrap_or_preserved_newline(b),this._output.space_before_token=!0;return;case we.after_newline:this._output.space_before_token=!0,!Ot||Dt?this._tokens.peek().newlines?this.print_newline(!1,!0):this.allow_wrap_or_preserved_newline(b):this._output.space_before_token=!1,this.print_token(b),this._output.space_before_token=!0;return;case we.preserve_newline:Ve||this.allow_wrap_or_preserved_newline(b),je=!(this._output.just_added_newline()||Ve),this._output.space_before_token=je,this.print_token(b),this._output.space_before_token=!0;return}}if(W){this.allow_wrap_or_preserved_newline(b),je=!1;var Jt=this._tokens.peek();yt=Jt&&B(Jt.type,[H.WORD,H.RESERVED])}else if(b.text==="...")this.allow_wrap_or_preserved_newline(b),je=this._flags.last_token.type===H.START_BLOCK,yt=!1;else if(B(b.text,["--","++","!","~"])||fe){if((this._flags.last_token.type===H.COMMA||this._flags.last_token.type===H.START_EXPR)&&this.allow_wrap_or_preserved_newline(b),je=!1,yt=!1,b.newlines&&(b.text==="--"||b.text==="++"||b.text==="~")){var ot=ge(this._flags.last_token,_e)&&b.newlines;ot&&(this._previous_flags.if_block||this._previous_flags.else_block)&&this.restore_mode(),this.print_newline(ot,!0)}this._flags.last_token.text===";"&&V(this._flags.mode)&&(je=!0),this._flags.last_token.type===H.RESERVED?je=!0:this._flags.last_token.type===H.END_EXPR?je=!(this._flags.last_token.text==="]"&&(b.text==="--"||b.text==="++")):this._flags.last_token.type===H.OPERATOR&&(je=B(b.text,["--","-","++","+"])&&B(this._flags.last_token.text,["--","-","++","+"]),B(b.text,["+","-"])&&B(this._flags.last_token.text,["--","++"])&&(yt=!0)),(this._flags.mode===ie.BlockStatement&&!this._flags.inline_frame||this._flags.mode===ie.Statement)&&(this._flags.last_token.text==="{"||this._flags.last_token.text===";")&&this.print_newline()}this._output.space_before_token=this._output.space_before_token||je,this.print_token(b),this._output.space_before_token=yt},re.prototype.handle_block_comment=function(b,W){if(this._output.raw){this._output.add_raw_token(b),b.directives&&b.directives.preserve==="end"&&(this._output.raw=this._options.test_output_raw);return}if(b.directives){this.print_newline(!1,W),this.print_token(b),b.directives.preserve==="start"&&(this._output.raw=!0),this.print_newline(!1,!0);return}if(!y.newline.test(b.text)&&!b.newlines){this._output.space_before_token=!0,this.print_token(b),this._output.space_before_token=!0;return}else this.print_block_commment(b,W)},re.prototype.print_block_commment=function(b,W){var fe=K(b.text),ke,je=!1,yt=!1,ht=b.whitespace_before,Ot=ht.length;if(this.print_newline(!1,W),this.print_token_line_indentation(b),this._output.add_token(fe[0]),this.print_newline(!1,W),fe.length>1){for(fe=fe.slice(1),je=$(fe,"*"),yt=ae(fe,ht),je&&(this._flags.alignment=1),ke=0;ke<fe.length;ke++)je?(this.print_token_line_indentation(b),this._output.add_token(R(fe[ke]))):yt&&fe[ke]?(this.print_token_line_indentation(b),this._output.add_token(fe[ke].substring(Ot))):(this._output.current_line.set_indent(-1),this._output.add_token(fe[ke])),this.print_newline(!1,W);this._flags.alignment=0}},re.prototype.handle_comment=function(b,W){b.newlines?this.print_newline(!1,W):this._output.trim(!0),this._output.space_before_token=!0,this.print_token(b),this.print_newline(!1,W)},re.prototype.handle_dot=function(b){this.start_of_statement(b)||this.handle_whitespace_and_comments(b,!0),this._flags.last_token.text.match("^[0-9]+$")&&(this._output.space_before_token=!0),ge(this._flags.last_token,_e)?this._output.space_before_token=!1:this.allow_wrap_or_preserved_newline(b,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(b)},re.prototype.handle_unknown=function(b,W){this.print_token(b),b.text[b.text.length-1]===`
`&&this.print_newline(!1,W)},re.prototype.handle_eof=function(b){for(;this._flags.mode===ie.Statement;)this.restore_mode();this.handle_whitespace_and_comments(b)},U.exports.Beautifier=re},function(U){function o(_){this.__parent=_,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 _=new o(this.__parent);return _.set_indent(this.__indent_count,this.__alignment_count),_},o.prototype.item=function(_){return _<0?this.__items[this.__items.length+_]:this.__items[_]},o.prototype.has_match=function(_){for(var y=this.__items.length-1;y>=0;y--)if(this.__items[y].match(_))return!0;return!1},o.prototype.set_indent=function(_,y){this.is_empty()&&(this.__indent_count=_||0,this.__alignment_count=y||0,this.__character_count=this.__parent.get_indent_size(this.__indent_count,this.__alignment_count))},o.prototype._set_wrap_point=function(){this.__parent.wrap_line_length&&(this.__wrap_point_index=this.__items.length,this.__wrap_point_character_count=this.__character_count,this.__wrap_point_indent_count=this.__parent.next_line.__indent_count,this.__wrap_point_alignment_count=this.__parent.next_line.__alignment_count)},o.prototype._should_wrap=function(){return this.__wrap_point_index&&this.__character_count>this.__parent.wrap_line_length&&this.__wrap_point_character_count>this.__parent.next_line.__character_count},o.prototype._allow_wrap=function(){if(this._should_wrap()){this.__parent.add_new_line();var _=this.__parent.current_line;return _.set_indent(this.__wrap_point_indent_count,this.__wrap_point_alignment_count),_.__items=this.__items.slice(this.__wrap_point_index),this.__items=this.__items.slice(0,this.__wrap_point_index),_.__character_count+=this.__character_count-this.__wrap_point_character_count,this.__character_count=this.__wrap_point_character_count,_.__items[0]===" "&&(_.__items.splice(0,1),_.__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(_){this.__items.push(_);var y=_.lastIndexOf(`
`);y!==-1?this.__character_count=_.length-y:this.__character_count+=_.length},o.prototype.pop=function(){var _=null;return this.is_empty()||(_=this.__items.pop(),this.__character_count-=_.length),_},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 _="";return this.is_empty()?this.__parent.indent_empty_lines&&(_=this.__parent.get_indent_string(this.__indent_count)):(_=this.__parent.get_indent_string(this.__indent_count,this.__alignment_count),_+=this.__items.join("")),_};function X(_,y){this.__cache=[""],this.__indent_size=_.indent_size,this.__indent_string=_.indent_char,_.indent_with_tabs||(this.__indent_string=new Array(_.indent_size+1).join(_.indent_char)),y=y||"",_.indent_level>0&&(y=new Array(_.indent_level+1).join(this.__indent_string)),this.__base_string=y,this.__base_string_length=y.length}X.prototype.get_indent_size=function(_,y){var E=this.__base_string_length;return y=y||0,_<0&&(E=0),E+=_*this.__indent_size,E+=y,E},X.prototype.get_indent_string=function(_,y){var E=this.__base_string;return y=y||0,_<0&&(_=0,E=""),y+=_*this.__indent_size,this.__ensure_cache(y),E+=this.__cache[y],E},X.prototype.__ensure_cache=function(_){for(;_>=this.__cache.length;)this.__add_column()},X.prototype.__add_column=function(){var _=this.__cache.length,y=0,E="";this.__indent_size&&_>=this.__indent_size&&(y=Math.floor(_/this.__indent_size),_-=y*this.__indent_size,E=new Array(y+1).join(this.__indent_string)),_&&(E+=new Array(_+1).join(" ")),this.__cache.push(E)};function L(_,y){this.__indent_cache=new X(_,y),this.raw=!1,this._end_with_newline=_.end_with_newline,this.indent_size=_.indent_size,this.wrap_line_length=_.wrap_line_length,this.indent_empty_lines=_.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()}L.prototype.__add_outputline=function(){this.previous_line=this.current_line,this.current_line=this.next_line.clone_empty(),this.__lines.push(this.current_line)},L.prototype.get_line_number=function(){return this.__lines.length},L.prototype.get_indent_string=function(_,y){return this.__indent_cache.get_indent_string(_,y)},L.prototype.get_indent_size=function(_,y){return this.__indent_cache.get_indent_size(_,y)},L.prototype.is_empty=function(){return!this.previous_line&&this.current_line.is_empty()},L.prototype.add_new_line=function(_){return this.is_empty()||!_&&this.just_added_newline()?!1:(this.raw||this.__add_outputline(),!0)},L.prototype.get_code=function(_){this.trim(!0);var y=this.current_line.pop();y&&(y[y.length-1]===`
`&&(y=y.replace(/\n+$/g,"")),this.current_line.push(y)),this._end_with_newline&&this.__add_outputline();var E=this.__lines.join(`
`);return _!==`
`&&(E=E.replace(/[\n]/g,_)),E},L.prototype.set_wrap_point=function(){this.current_line._set_wrap_point()},L.prototype.set_indent=function(_,y){return _=_||0,y=y||0,this.next_line.set_indent(_,y),this.__lines.length>1?(this.current_line.set_indent(_,y),!0):(this.current_line.set_indent(),!1)},L.prototype.add_raw_token=function(_){for(var y=0;y<_.newlines;y++)this.__add_outputline();this.current_line.set_indent(-1),this.current_line.push(_.whitespace_before),this.current_line.push(_.text),this.space_before_token=!1,this.non_breaking_space=!1,this.previous_token_wrapped=!1},L.prototype.add_token=function(_){this.__add_space_before_token(),this.current_line.push(_),this.space_before_token=!1,this.non_breaking_space=!1,this.previous_token_wrapped=this.current_line._allow_wrap()},L.prototype.__add_space_before_token=function(){this.space_before_token&&!this.just_added_newline()&&(this.non_breaking_space||this.set_wrap_point(),this.current_line.push(" "))},L.prototype.remove_indent=function(_){for(var y=this.__lines.length;_<y;)this.__lines[_]._remove_indent(),_++;this.current_line._remove_wrap_indent()},L.prototype.trim=function(_){for(_=_===void 0?!1:_,this.current_line.trim();_&&this.__lines.length>1&&this.current_line.is_empty();)this.__lines.pop(),this.current_line=this.__lines[this.__lines.length-1],this.current_line.trim();this.previous_line=this.__lines.length>1?this.__lines[this.__lines.length-2]:null},L.prototype.just_added_newline=function(){return this.current_line.is_empty()},L.prototype.just_added_blankline=function(){return this.is_empty()||this.current_line.is_empty()&&this.previous_line.is_empty()},L.prototype.ensure_empty_line_above=function(_,y){for(var E=this.__lines.length-2;E>=0;){var S=this.__lines[E];if(S.is_empty())break;if(S.item(0).indexOf(_)!==0&&S.item(-1)!==y){this.__lines.splice(E+1,0,new o(this)),this.previous_line=this.__lines[this.__lines.length-2];break}E--}},U.exports.Output=L},function(U){function o(X,L,_,y){this.type=X,this.text=L,this.comments_before=null,this.newlines=_||0,this.whitespace_before=y||"",this.parent=null,this.next=null,this.previous=null,this.opened=null,this.closed=null,this.directives=null}U.exports.Token=o},function(U,o){var X="\\x23\\x24\\x40\\x41-\\x5a\\x5f\\x61-\\x7a",L="\\x24\\x30-\\x39\\x41-\\x5a\\x5f\\x61-\\x7a",_="\\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\\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0e94-\\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",y="\\u0300-\\u036f\\u0483-\\u0487\\u0591-\\u05bd\\u05bf\\u05c1\\u05c2\\u05c4\\u05c5\\u05c7\\u0610-\\u061a\\u0620-\\u0649\\u0672-\\u06d3\\u06e7-\\u06e8\\u06fb-\\u06fc\\u0730-\\u074a\\u0800-\\u0814\\u081b-\\u0823\\u0825-\\u0827\\u0829-\\u082d\\u0840-\\u0857\\u08e4-\\u08fe\\u0900-\\u0903\\u093a-\\u093c\\u093e-\\u094f\\u0951-\\u0957\\u0962-\\u0963\\u0966-\\u096f\\u0981-\\u0983\\u09bc\\u09be-\\u09c4\\u09c7\\u09c8\\u09d7\\u09df-\\u09e0\\u0a01-\\u0a03\\u0a3c\\u0a3e-\\u0a42\\u0a47\\u0a48\\u0a4b-\\u0a4d\\u0a51\\u0a66-\\u0a71\\u0a75\\u0a81-\\u0a83\\u0abc\\u0abe-\\u0ac5\\u0ac7-\\u0ac9\\u0acb-\\u0acd\\u0ae2-\\u0ae3\\u0ae6-\\u0aef\\u0b01-\\u0b03\\u0b3c\\u0b3e-\\u0b44\\u0b47\\u0b48\\u0b4b-\\u0b4d\\u0b56\\u0b57\\u0b5f-\\u0b60\\u0b66-\\u0b6f\\u0b82\\u0bbe-\\u0bc2\\u0bc6-\\u0bc8\\u0bca-\\u0bcd\\u0bd7\\u0be6-\\u0bef\\u0c01-\\u0c03\\u0c46-\\u0c48\\u0c4a-\\u0c4d\\u0c55\\u0c56\\u0c62-\\u0c63\\u0c66-\\u0c6f\\u0c82\\u0c83\\u0cbc\\u0cbe-\\u0cc4\\u0cc6-\\u0cc8\\u0cca-\\u0ccd\\u0cd5\\u0cd6\\u0ce2-\\u0ce3\\u0ce6-\\u0cef\\u0d02\\u0d03\\u0d46-\\u0d48\\u0d57\\u0d62-\\u0d63\\u0d66-\\u0d6f\\u0d82\\u0d83\\u0dca\\u0dcf-\\u0dd4\\u0dd6\\u0dd8-\\u0ddf\\u0df2\\u0df3\\u0e34-\\u0e3a\\u0e40-\\u0e45\\u0e50-\\u0e59\\u0eb4-\\u0eb9\\u0ec8-\\u0ecd\\u0ed0-\\u0ed9\\u0f18\\u0f19\\u0f20-\\u0f29\\u0f35\\u0f37\\u0f39\\u0f41-\\u0f47\\u0f71-\\u0f84\\u0f86-\\u0f87\\u0f8d-\\u0f97\\u0f99-\\u0fbc\\u0fc6\\u1000-\\u1029\\u1040-\\u1049\\u1067-\\u106d\\u1071-\\u1074\\u1082-\\u108d\\u108f-\\u109d\\u135d-\\u135f\\u170e-\\u1710\\u1720-\\u1730\\u1740-\\u1750\\u1772\\u1773\\u1780-\\u17b2\\u17dd\\u17e0-\\u17e9\\u180b-\\u180d\\u1810-\\u1819\\u1920-\\u192b\\u1930-\\u193b\\u1951-\\u196d\\u19b0-\\u19c0\\u19c8-\\u19c9\\u19d0-\\u19d9\\u1a00-\\u1a15\\u1a20-\\u1a53\\u1a60-\\u1a7c\\u1a7f-\\u1a89\\u1a90-\\u1a99\\u1b46-\\u1b4b\\u1b50-\\u1b59\\u1b6b-\\u1b73\\u1bb0-\\u1bb9\\u1be6-\\u1bf3\\u1c00-\\u1c22\\u1c40-\\u1c49\\u1c5b-\\u1c7d\\u1cd0-\\u1cd2\\u1d00-\\u1dbe\\u1e01-\\u1f15\\u200c\\u200d\\u203f\\u2040\\u2054\\u20d0-\\u20dc\\u20e1\\u20e5-\\u20f0\\u2d81-\\u2d96\\u2de0-\\u2dff\\u3021-\\u3028\\u3099\\u309a\\ua640-\\ua66d\\ua674-\\ua67d\\ua69f\\ua6f0-\\ua6f1\\ua7f8-\\ua800\\ua806\\ua80b\\ua823-\\ua827\\ua880-\\ua881\\ua8b4-\\ua8c4\\ua8d0-\\ua8d9\\ua8f3-\\ua8f7\\ua900-\\ua909\\ua926-\\ua92d\\ua930-\\ua945\\ua980-\\ua983\\ua9b3-\\ua9c0\\uaa00-\\uaa27\\uaa40-\\uaa41\\uaa4c-\\uaa4d\\uaa50-\\uaa59\\uaa7b\\uaae0-\\uaae9\\uaaf2-\\uaaf3\\uabc0-\\uabe1\\uabec\\uabed\\uabf0-\\uabf9\\ufb20-\\ufb28\\ufe00-\\ufe0f\\ufe20-\\ufe26\\ufe33\\ufe34\\ufe4d-\\ufe4f\\uff10-\\uff19\\uff3f",E="\\\\u[0-9a-fA-F]{4}|\\\\u\\{[0-9a-fA-F]+\\}",S="(?:"+E+"|["+X+_+"])",O="(?:"+E+"|["+L+_+y+"])*";o.identifier=new RegExp(S+O,"g"),o.identifierStart=new RegExp(S),o.identifierMatch=new RegExp("(?:"+E+"|["+L+_+y+"])+");var P=/[\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(U,o,X){var L=X(6).Options,_=["before-newline","after-newline","preserve-newline"];function y(E){L.call(this,E,"js");var S=this.raw_options.brace_style||null;S==="expand-strict"?this.raw_options.brace_style="expand":S==="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 O=this._get_selection_list("brace_style",["collapse","expand","end-expand","none","preserve-inline"]);this.brace_preserve_inline=!1,this.brace_style="collapse";for(var P=0;P<O.length;P++)O[P]==="preserve-inline"?this.brace_preserve_inline=!0:this.brace_style=O[P];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",_),this.test_output_raw=this._get_boolean("test_output_raw"),this.jslint_happy&&(this.space_after_anon_function=!0)}y.prototype=new L,U.exports.Options=y},function(U){function o(_,y){this.raw_options=X(_,y),this.disabled=this._get_boolean("disabled"),this.eol=this._get_characters("eol","auto"),this.end_with_newline=this._get_boolean("end_with_newline"),this.indent_size=this._get_number("indent_size",4),this.indent_char=this._get_characters("indent_char"," "),this.indent_level=this._get_number("indent_level"),this.preserve_newlines=this._get_boolean("preserve_newlines",!0),this.max_preserve_newlines=this._get_number("max_preserve_newlines",32786),this.preserve_newlines||(this.max_preserve_newlines=0),this.indent_with_tabs=this._get_boolean("indent_with_tabs",this.indent_char===" "),this.indent_with_tabs&&(this.indent_char=" ",this.indent_size===1&&(this.indent_size=4)),this.wrap_line_length=this._get_number("wrap_line_length",this._get_number("max_char")),this.indent_empty_lines=this._get_boolean("indent_empty_lines"),this.templating=this._get_selection_list("templating",["auto","none","angular","django","erb","handlebars","php","smarty"],["auto"])}o.prototype._get_array=function(_,y){var E=this.raw_options[_],S=y||[];return typeof E=="object"?E!==null&&typeof E.concat=="function"&&(S=E.concat()):typeof E=="string"&&(S=E.split(/[^a-zA-Z0-9_\/\-]+/)),S},o.prototype._get_boolean=function(_,y){var E=this.raw_options[_],S=E===void 0?!!y:!!E;return S},o.prototype._get_characters=function(_,y){var E=this.raw_options[_],S=y||"";return typeof E=="string"&&(S=E.replace(/\\r/,"\r").replace(/\\n/,`
`).replace(/\\t/," ")),S},o.prototype._get_number=function(_,y){var E=this.raw_options[_];y=parseInt(y,10),isNaN(y)&&(y=0);var S=parseInt(E,10);return isNaN(S)&&(S=y),S},o.prototype._get_selection=function(_,y,E){var S=this._get_selection_list(_,y,E);if(S.length!==1)throw new Error("Invalid Option Value: The option '"+_+`' can only be one of the following values:
`+y+`
You passed in: '`+this.raw_options[_]+"'");return S[0]},o.prototype._get_selection_list=function(_,y,E){if(!y||y.length===0)throw new Error("Selection list cannot be empty.");if(E=E||[y[0]],!this._is_valid_selection(E,y))throw new Error("Invalid Default Value!");var S=this._get_array(_,E);if(!this._is_valid_selection(S,y))throw new Error("Invalid Option Value: The option '"+_+`' can contain only the following values:
`+y+`
You passed in: '`+this.raw_options[_]+"'");return S},o.prototype._is_valid_selection=function(_,y){return _.length&&y.length&&!_.some(function(E){return y.indexOf(E)===-1})};function X(_,y){var E={};_=L(_);var S;for(S in _)S!==y&&(E[S]=_[S]);if(y&&_[y])for(S in _[y])E[S]=_[y][S];return E}function L(_){var y={},E;for(E in _){var S=E.replace(/-/g,"_");y[S]=_[E]}return y}U.exports.Options=o,U.exports.normalizeOpts=L,U.exports.mergeOpts=X},function(U,o,X){var L=X(8).InputScanner,_=X(9).Tokenizer,y=X(9).TOKEN,E=X(13).Directives,S=X(4),O=X(12).Pattern,P=X(14).TemplatablePattern;function H($,ae){return ae.indexOf($)!==-1}var B={START_EXPR:"TK_START_EXPR",END_EXPR:"TK_END_EXPR",START_BLOCK:"TK_START_BLOCK",END_BLOCK:"TK_END_BLOCK",WORD:"TK_WORD",RESERVED:"TK_RESERVED",SEMICOLON:"TK_SEMICOLON",STRING:"TK_STRING",EQUALS:"TK_EQUALS",OPERATOR:"TK_OPERATOR",COMMA:"TK_COMMA",BLOCK_COMMENT:"TK_BLOCK_COMMENT",COMMENT:"TK_COMMENT",DOT:"TK_DOT",UNKNOWN:"TK_UNKNOWN",START:y.START,RAW:y.RAW,EOF:y.EOF},R=new E(/\/\*/,/\*\//),J=/0[xX][0123456789abcdefABCDEF_]*n?|0[oO][01234567_]*n?|0[bB][01_]*n?|\d[\d_]*n|(?:\.\d[\d_]*|\d[\d_]*\.?[\d_]*)(?:[eE][+-]?[\d_]+)?/,q=/[0-9]/,ge=/[^\d\.]/,_e=">>> === !== &&= ??= ||= << && >= ** != == <= >> || ?? |> < / - + > : & % ? ^ | *".split(" "),se=">>>= ... >>= <<= === >>> !== **= &&= ??= ||= => ^= :: /= << <= == && -= >= >> != -- += ** || ?? ++ %= &= *= |= |> = ! ? > < : / ^ - + * & % ~ |";se=se.replace(/[-[\]{}()*+?.,\\^$|#]/g,"\\$&"),se="\\?\\.(?!\\d) "+se,se=se.replace(/ /g,"|");var we=new RegExp(se),de="continue,try,throw,return,var,let,const,if,switch,case,default,for,while,break,function,import,export".split(","),ie=de.concat(["do","in","of","else","get","set","new","catch","finally","typeof","yield","async","await","from","as","class","extends"]),oe=new RegExp("^(?:"+ie.join("|")+")$"),K,k=function($,ae){_.call(this,$,ae),this._patterns.whitespace=this._patterns.whitespace.matching(/\u00A0\u1680\u180e\u2000-\u200a\u202f\u205f\u3000\ufeff/.source,/\u2028\u2029/.source);var re=new O(this._input),x=new P(this._input).read_options(this._options);this.__patterns={template:x,identifier:x.starting_with(S.identifier).matching(S.identifierMatch),number:re.matching(J),punct:re.matching(we),comment:re.starting_with(/\/\//).until(/[\n\r\u2028\u2029]/),block_comment:re.starting_with(/\/\*/).until_after(/\*\//),html_comment_start:re.matching(/<!--/),html_comment_end:re.matching(/-->/),include:re.starting_with(/#include/).until_after(S.lineBreak),shebang:re.starting_with(/#!/).until_after(S.lineBreak),xml:re.matching(/[\s\S]*?<(\/?)([-a-zA-Z:0-9_.]+|{[^}]+?}|!\[CDATA\[[^\]]*?\]\]|)(\s*{[^}]+?}|\s+[-a-zA-Z:0-9_.]+|\s+[-a-zA-Z:0-9_.]+\s*=\s*('[^']*'|"[^"]*"|{([^{}]|{[^}]+?})+?}))*\s*(\/?)\s*>/),single_quote:x.until(/['\\\n\r\u2028\u2029]/),double_quote:x.until(/["\\\n\r\u2028\u2029]/),template_text:x.until(/[`\\$]/),template_expression:x.until(/[`}\\]/)}};k.prototype=new _,k.prototype._is_comment=function($){return $.type===B.COMMENT||$.type===B.BLOCK_COMMENT||$.type===B.UNKNOWN},k.prototype._is_opening=function($){return $.type===B.START_BLOCK||$.type===B.START_EXPR},k.prototype._is_closing=function($,ae){return($.type===B.END_BLOCK||$.type===B.END_EXPR)&&ae&&($.text==="]"&&ae.text==="["||$.text===")"&&ae.text==="("||$.text==="}"&&ae.text==="{")},k.prototype._reset=function(){K=!1},k.prototype._get_next_token=function($,ae){var re=null;this._readWhitespace();var x=this._input.peek();return x===null?this._create_token(B.EOF,""):(re=re||this._read_non_javascript(x),re=re||this._read_string(x),re=re||this._read_pair(x,this._input.peek(1)),re=re||this._read_word($),re=re||this._read_singles(x),re=re||this._read_comment(x),re=re||this._read_regexp(x,$),re=re||this._read_xml(x,$),re=re||this._read_punctuation(),re=re||this._create_token(B.UNKNOWN,this._input.next()),re)},k.prototype._read_word=function($){var ae;if(ae=this.__patterns.identifier.read(),ae!=="")return ae=ae.replace(S.allLineBreaks,`
`),!($.type===B.DOT||$.type===B.RESERVED&&($.text==="set"||$.text==="get"))&&oe.test(ae)?(ae==="in"||ae==="of")&&($.type===B.WORD||$.type===B.STRING)?this._create_token(B.OPERATOR,ae):this._create_token(B.RESERVED,ae):this._create_token(B.WORD,ae);if(ae=this.__patterns.number.read(),ae!=="")return this._create_token(B.WORD,ae)},k.prototype._read_singles=function($){var ae=null;return $==="("||$==="["?ae=this._create_token(B.START_EXPR,$):$===")"||$==="]"?ae=this._create_token(B.END_EXPR,$):$==="{"?ae=this._create_token(B.START_BLOCK,$):$==="}"?ae=this._create_token(B.END_BLOCK,$):$===";"?ae=this._create_token(B.SEMICOLON,$):$==="."&&ge.test(this._input.peek(1))?ae=this._create_token(B.DOT,$):$===","&&(ae=this._create_token(B.COMMA,$)),ae&&this._input.next(),ae},k.prototype._read_pair=function($,ae){var re=null;return $==="#"&&ae==="{"&&(re=this._create_token(B.START_BLOCK,$+ae)),re&&(this._input.next(),this._input.next()),re},k.prototype._read_punctuation=function(){var $=this.__patterns.punct.read();if($!=="")return $==="="?this._create_token(B.EQUALS,$):$==="?."?this._create_token(B.DOT,$):this._create_token(B.OPERATOR,$)},k.prototype._read_non_javascript=function($){var ae="";if($==="#"){if(this._is_first_token()&&(ae=this.__patterns.shebang.read(),ae))return this._create_token(B.UNKNOWN,ae.trim()+`
`);if(ae=this.__patterns.include.read(),ae)return this._create_token(B.UNKNOWN,ae.trim()+`
`);$=this._input.next();var re="#";if(this._input.hasNext()&&this._input.testChar(q)){do $=this._input.next(),re+=$;while(this._input.hasNext()&&$!=="#"&&$!=="=");return $==="#"||(this._input.peek()==="["&&this._input.peek(1)==="]"?(re+="[]",this._input.next(),this._input.next()):this._input.peek()==="{"&&this._input.peek(1)==="}"&&(re+="{}",this._input.next(),this._input.next())),this._create_token(B.WORD,re)}this._input.back()}else if($==="<"&&this._is_first_token()){if(ae=this.__patterns.html_comment_start.read(),ae){for(;this._input.hasNext()&&!this._input.testChar(S.newline);)ae+=this._input.next();return K=!0,this._create_token(B.COMMENT,ae)}}else if(K&&$==="-"&&(ae=this.__patterns.html_comment_end.read(),ae))return K=!1,this._create_token(B.COMMENT,ae);return null},k.prototype._read_comment=function($){var ae=null;if($==="/"){var re="";if(this._input.peek(1)==="*"){re=this.__patterns.block_comment.read();var x=R.get_directives(re);x&&x.ignore==="start"&&(re+=R.readIgnored(this._input)),re=re.replace(S.allLineBreaks,`
`),ae=this._create_token(B.BLOCK_COMMENT,re),ae.directives=x}else this._input.peek(1)==="/"&&(re=this.__patterns.comment.read(),ae=this._create_token(B.COMMENT,re))}return ae},k.prototype._read_string=function($){if($==="`"||$==="'"||$==='"'){var ae=this._input.next();return this.has_char_escapes=!1,$==="`"?ae+=this._read_string_recursive("`",!0,"${"):ae+=this._read_string_recursive($),this.has_char_escapes&&this._options.unescape_strings&&(ae=V(ae)),this._input.peek()===$&&(ae+=this._input.next()),ae=ae.replace(S.allLineBreaks,`
`),this._create_token(B.STRING,ae)}return null},k.prototype._allow_regexp_or_xml=function($){return $.type===B.RESERVED&&H($.text,["return","case","throw","else","do","typeof","yield"])||$.type===B.END_EXPR&&$.text===")"&&$.opened.previous.type===B.RESERVED&&H($.opened.previous.text,["if","while","for"])||H($.type,[B.COMMENT,B.START_EXPR,B.START_BLOCK,B.START,B.END_BLOCK,B.OPERATOR,B.EQUALS,B.EOF,B.SEMICOLON,B.COMMA])},k.prototype._read_regexp=function($,ae){if($==="/"&&this._allow_regexp_or_xml(ae)){for(var re=this._input.next(),x=!1,b=!1;this._input.hasNext()&&(x||b||this._input.peek()!==$)&&!this._input.testChar(S.newline);)re+=this._input.peek(),x?x=!1:(x=this._input.peek()==="\\",this._input.peek()==="["?b=!0:this._input.peek()==="]"&&(b=!1)),this._input.next();return this._input.peek()===$&&(re+=this._input.next(),re+=this._input.read(S.identifier)),this._create_token(B.STRING,re)}return null},k.prototype._read_xml=function($,ae){if(this._options.e4x&&$==="<"&&this._allow_regexp_or_xml(ae)){var re="",x=this.__patterns.xml.read_match();if(x){for(var b=x[2].replace(/^{\s+/,"{").replace(/\s+}$/,"}"),W=b.indexOf("{")===0,fe=0;x;){var ke=!!x[1],je=x[2],yt=!!x[x.length-1]||je.slice(0,8)==="![CDATA[";if(!yt&&(je===b||W&&je.replace(/^{\s+/,"{").replace(/\s+}$/,"}"))&&(ke?--fe:++fe),re+=x[0],fe<=0)break;x=this.__patterns.xml.read_match()}return x||(re+=this._input.match(/[\s\S]*/g)[0]),re=re.replace(S.allLineBreaks,`
`),this._create_token(B.STRING,re)}}return null};function V($){for(var ae="",re=0,x=new L($),b=null;x.hasNext();)if(b=x.match(/([\s]|[^\\]|\\\\)+/g),b&&(ae+=b[0]),x.peek()==="\\"){if(x.next(),x.peek()==="x")b=x.match(/x([0-9A-Fa-f]{2})/g);else if(x.peek()==="u")b=x.match(/u([0-9A-Fa-f]{4})/g),b||(b=x.match(/u\{([0-9A-Fa-f]+)\}/g));else{ae+="\\",x.hasNext()&&(ae+=x.next());continue}if(!b||(re=parseInt(b[1],16),re>126&&re<=255&&b[0].indexOf("x")===0))return $;re>=0&&re<32||re>1114111?ae+="\\"+b[0]:re===34||re===39||re===92?ae+="\\"+String.fromCharCode(re):ae+=String.fromCharCode(re)}return ae}k.prototype._read_string_recursive=function($,ae,re){var x,b;$==="'"?b=this.__patterns.single_quote:$==='"'?b=this.__patterns.double_quote:$==="`"?b=this.__patterns.template_text:$==="}"&&(b=this.__patterns.template_expression);for(var W=b.read(),fe="";this._input.hasNext();){if(fe=this._input.next(),fe===$||!ae&&S.newline.test(fe)){this._input.back();break}else fe==="\\"&&this._input.hasNext()?(x=this._input.peek(),x==="x"||x==="u"?this.has_char_escapes=!0:x==="\r"&&this._input.peek(1)===`
`&&this._input.next(),fe+=this._input.next()):re&&(re==="${"&&fe==="$"&&this._input.peek()==="{"&&(fe+=this._input.next()),re===fe&&($==="`"?fe+=this._read_string_recursive("}",ae,"`"):fe+=this._read_string_recursive("`",ae,"${"),this._input.hasNext()&&(fe+=this._input.next())));fe+=b.read(),W+=fe}return W},U.exports.Tokenizer=k,U.exports.TOKEN=B,U.exports.positionable_operators=_e.slice(),U.exports.line_starters=de.slice()},function(U){var o=RegExp.prototype.hasOwnProperty("sticky");function X(L){this.__input=L||"",this.__input_length=this.__input.length,this.__position=0}X.prototype.restart=function(){this.__position=0},X.prototype.back=function(){this.__position>0&&(this.__position-=1)},X.prototype.hasNext=function(){return this.__position<this.__input_length},X.prototype.next=function(){var L=null;return this.hasNext()&&(L=this.__input.charAt(this.__position),this.__position+=1),L},X.prototype.peek=function(L){var _=null;return L=L||0,L+=this.__position,L>=0&&L<this.__input_length&&(_=this.__input.charAt(L)),_},X.prototype.__match=function(L,_){L.lastIndex=_;var y=L.exec(this.__input);return y&&!(o&&L.sticky)&&y.index!==_&&(y=null),y},X.prototype.test=function(L,_){return _=_||0,_+=this.__position,_>=0&&_<this.__input_length?!!this.__match(L,_):!1},X.prototype.testChar=function(L,_){var y=this.peek(_);return L.lastIndex=0,y!==null&&L.test(y)},X.prototype.match=function(L){var _=this.__match(L,this.__position);return _?this.__position+=_[0].length:_=null,_},X.prototype.read=function(L,_,y){var E="",S;return L&&(S=this.match(L),S&&(E+=S[0])),_&&(S||!L)&&(E+=this.readUntil(_,y)),E},X.prototype.readUntil=function(L,_){var y="",E=this.__position;L.lastIndex=this.__position;var S=L.exec(this.__input);return S?(E=S.index,_&&(E+=S[0].length)):E=this.__input_length,y=this.__input.substring(this.__position,E),this.__position=E,y},X.prototype.readUntilAfter=function(L){return this.readUntil(L,!0)},X.prototype.get_regexp=function(L,_){var y=null,E="g";return _&&o&&(E="y"),typeof L=="string"&&L!==""?y=new RegExp(L,E):L&&(y=new RegExp(L.source,E)),y},X.prototype.get_literal_regexp=function(L){return RegExp(L.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&"))},X.prototype.peekUntilAfter=function(L){var _=this.__position,y=this.readUntilAfter(L);return this.__position=_,y},X.prototype.lookBack=function(L){var _=this.__position-1;return _>=L.length&&this.__input.substring(_-L.length,_).toLowerCase()===L},U.exports.InputScanner=X},function(U,o,X){var L=X(8).InputScanner,_=X(3).Token,y=X(10).TokenStream,E=X(11).WhitespacePattern,S={START:"TK_START",RAW:"TK_RAW",EOF:"TK_EOF"},O=function(P,H){this._input=new L(P),this._options=H||{},this.__tokens=null,this._patterns={},this._patterns.whitespace=new E(this._input)};O.prototype.tokenize=function(){this._input.restart(),this.__tokens=new y,this._reset();for(var P,H=new _(S.START,""),B=null,R=[],J=new y;H.type!==S.EOF;){for(P=this._get_next_token(H,B);this._is_comment(P);)J.add(P),P=this._get_next_token(H,B);J.isEmpty()||(P.comments_before=J,J=new y),P.parent=B,this._is_opening(P)?(R.push(B),B=P):B&&this._is_closing(P,B)&&(P.opened=B,B.closed=P,B=R.pop(),P.parent=B),P.previous=H,H.next=P,this.__tokens.add(P),H=P}return this.__tokens},O.prototype._is_first_token=function(){return this.__tokens.isEmpty()},O.prototype._reset=function(){},O.prototype._get_next_token=function(P,H){this._readWhitespace();var B=this._input.read(/.+/g);return B?this._create_token(S.RAW,B):this._create_token(S.EOF,"")},O.prototype._is_comment=function(P){return!1},O.prototype._is_opening=function(P){return!1},O.prototype._is_closing=function(P,H){return!1},O.prototype._create_token=function(P,H){var B=new _(P,H,this._patterns.whitespace.newline_count,this._patterns.whitespace.whitespace_before_token);return B},O.prototype._readWhitespace=function(){return this._patterns.whitespace.read()},U.exports.Tokenizer=O,U.exports.TOKEN=S},function(U){function o(X){this.__tokens=[],this.__tokens_length=this.__tokens.length,this.__position=0,this.__parent_token=X}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 X=null;return this.hasNext()&&(X=this.__tokens[this.__position],this.__position+=1),X},o.prototype.peek=function(X){var L=null;return X=X||0,X+=this.__position,X>=0&&X<this.__tokens_length&&(L=this.__tokens[X]),L},o.prototype.add=function(X){this.__parent_token&&(X.parent=this.__parent_token),this.__tokens.push(X),this.__tokens_length+=1},U.exports.TokenStream=o},function(U,o,X){var L=X(12).Pattern;function _(y,E){L.call(this,y,E),E?this._line_regexp=this._input.get_regexp(E._line_regexp):this.__set_whitespace_patterns("",""),this.newline_count=0,this.whitespace_before_token=""}_.prototype=new L,_.prototype.__set_whitespace_patterns=function(y,E){y+="\\t ",E+="\\n\\r",this._match_pattern=this._input.get_regexp("["+y+E+"]+",!0),this._newline_regexp=this._input.get_regexp("\\r\\n|["+E+"]")},_.prototype.read=function(){this.newline_count=0,this.whitespace_before_token="";var y=this._input.read(this._match_pattern);if(y===" ")this.whitespace_before_token=" ";else if(y){var E=this.__split(this._newline_regexp,y);this.newline_count=E.length-1,this.whitespace_before_token=E[this.newline_count]}return y},_.prototype.matching=function(y,E){var S=this._create();return S.__set_whitespace_patterns(y,E),S._update(),S},_.prototype._create=function(){return new _(this._input,this)},_.prototype.__split=function(y,E){y.lastIndex=0;for(var S=0,O=[],P=y.exec(E);P;)O.push(E.substring(S,P.index)),S=P.index+P[0].length,P=y.exec(E);return S<E.length?O.push(E.substring(S,E.length)):O.push(""),O},U.exports.WhitespacePattern=_},function(U){function o(X,L){this._input=X,this._starting_pattern=null,this._match_pattern=null,this._until_pattern=null,this._until_after=!1,L&&(this._starting_pattern=this._input.get_regexp(L._starting_pattern,!0),this._match_pattern=this._input.get_regexp(L._match_pattern,!0),this._until_pattern=this._input.get_regexp(L._until_pattern),this._until_after=L._until_after)}o.prototype.read=function(){var X=this._input.read(this._starting_pattern);return(!this._starting_pattern||X)&&(X+=this._input.read(this._match_pattern,this._until_pattern,this._until_after)),X},o.prototype.read_match=function(){return this._input.match(this._match_pattern)},o.prototype.until_after=function(X){var L=this._create();return L._until_after=!0,L._until_pattern=this._input.get_regexp(X),L._update(),L},o.prototype.until=function(X){var L=this._create();return L._until_after=!1,L._until_pattern=this._input.get_regexp(X),L._update(),L},o.prototype.starting_with=function(X){var L=this._create();return L._starting_pattern=this._input.get_regexp(X,!0),L._update(),L},o.prototype.matching=function(X){var L=this._create();return L._match_pattern=this._input.get_regexp(X,!0),L._update(),L},o.prototype._create=function(){return new o(this._input,this)},o.prototype._update=function(){},U.exports.Pattern=o},function(U){function o(X,L){X=typeof X=="string"?X:X.source,L=typeof L=="string"?L:L.source,this.__directives_block_pattern=new RegExp(X+/ beautify( \w+[:]\w+)+ /.source+L,"g"),this.__directive_pattern=/ (\w+)[:](\w+)/g,this.__directives_end_ignore_pattern=new RegExp(X+/\sbeautify\signore:end\s/.source+L,"g")}o.prototype.get_directives=function(X){if(!X.match(this.__directives_block_pattern))return null;var L={};this.__directive_pattern.lastIndex=0;for(var _=this.__directive_pattern.exec(X);_;)L[_[1]]=_[2],_=this.__directive_pattern.exec(X);return L},o.prototype.readIgnored=function(X){return X.readUntilAfter(this.__directives_end_ignore_pattern)},U.exports.Directives=o},function(U,o,X){var L=X(12).Pattern,_={django:!1,erb:!1,handlebars:!1,php:!1,smarty:!1,angular:!1};function y(E,S){L.call(this,E,S),this.__template_pattern=null,this._disabled=Object.assign({},_),this._excluded=Object.assign({},_),S&&(this.__template_pattern=this._input.get_regexp(S.__template_pattern),this._excluded=Object.assign(this._excluded,S._excluded),this._disabled=Object.assign(this._disabled,S._disabled));var O=new L(E);this.__patterns={handlebars_comment:O.starting_with(/{{!--/).until_after(/--}}/),handlebars_unescaped:O.starting_with(/{{{/).until_after(/}}}/),handlebars:O.starting_with(/{{/).until_after(/}}/),php:O.starting_with(/<\?(?:[= ]|php)/).until_after(/\?>/),erb:O.starting_with(/<%[^%]/).until_after(/[^%]%>/),django:O.starting_with(/{%/).until_after(/%}/),django_value:O.starting_with(/{{/).until_after(/}}/),django_comment:O.starting_with(/{#/).until_after(/#}/),smarty:O.starting_with(/{(?=[^}{\s\n])/).until_after(/[^\s\n]}/),smarty_comment:O.starting_with(/{\*/).until_after(/\*}/),smarty_literal:O.starting_with(/{literal}/).until_after(/{\/literal}/)}}y.prototype=new L,y.prototype._create=function(){return new y(this._input,this)},y.prototype._update=function(){this.__set_templated_pattern()},y.prototype.disable=function(E){var S=this._create();return S._disabled[E]=!0,S._update(),S},y.prototype.read_options=function(E){var S=this._create();for(var O in _)S._disabled[O]=E.templating.indexOf(O)===-1;return S._update(),S},y.prototype.exclude=function(E){var S=this._create();return S._excluded[E]=!0,S._update(),S},y.prototype.read=function(){var E="";this._match_pattern?E=this._input.read(this._starting_pattern):E=this._input.read(this._starting_pattern,this.__template_pattern);for(var S=this._read_template();S;)this._match_pattern?S+=this._input.read(this._match_pattern):S+=this._input.readUntil(this.__template_pattern),E+=S,S=this._read_template();return this._until_after&&(E+=this._input.readUntilAfter(this._until_pattern)),E},y.prototype.__set_templated_pattern=function(){var E=[];this._disabled.php||E.push(this.__patterns.php._starting_pattern.source),this._disabled.handlebars||E.push(this.__patterns.handlebars._starting_pattern.source),this._disabled.angular||E.push(this.__patterns.handlebars._starting_pattern.source),this._disabled.erb||E.push(this.__patterns.erb._starting_pattern.source),this._disabled.django||(E.push(this.__patterns.django._starting_pattern.source),E.push(this.__patterns.django_value._starting_pattern.source),E.push(this.__patterns.django_comment._starting_pattern.source)),this._disabled.smarty||E.push(this.__patterns.smarty._starting_pattern.source),this._until_pattern&&E.push(this._until_pattern.source),this.__template_pattern=this._input.get_regexp("(?:"+E.join("|")+")")},y.prototype._read_template=function(){var E="",S=this._input.peek();if(S==="<"){var O=this._input.peek(1);!this._disabled.php&&!this._excluded.php&&O==="?"&&(E=E||this.__patterns.php.read()),!this._disabled.erb&&!this._excluded.erb&&O==="%"&&(E=E||this.__patterns.erb.read())}else S==="{"&&(!this._disabled.handlebars&&!this._excluded.handlebars&&(E=E||this.__patterns.handlebars_comment.read(),E=E||this.__patterns.handlebars_unescaped.read(),E=E||this.__patterns.handlebars.read()),this._disabled.django||(!this._excluded.django&&!this._excluded.handlebars&&(E=E||this.__patterns.django_value.read()),this._excluded.django||(E=E||this.__patterns.django_comment.read(),E=E||this.__patterns.django.read())),this._disabled.smarty||this._disabled.django&&this._disabled.handlebars&&(E=E||this.__patterns.smarty_comment.read(),E=E||this.__patterns.smarty_literal.read(),E=E||this.__patterns.smarty.read()));return E},U.exports.TemplatablePattern=y}],Y={};function m(U){var o=Y[U];if(o!==void 0)return o.exports;var X=Y[U]={exports:{}};return ce[U](X,X.exports,m),X.exports}var ve=m(0);Ae=ve})();var xe=Ae;w=[],p=function(){return{js_beautify:xe}}.apply(Ge,w),p!==void 0&&(Xe.exports=p)})()},32834:function(Xe){(function(Ge,w){Xe.exports=w()})(this,function(){"use strict";function Ge(He,Le){for(var De=0;De<Le.length;De++){var te=Le[De];te.enumerable=te.enumerable||!1,te.configurable=!0,"value"in te&&(te.writable=!0),Object.defineProperty(He,te.key,te)}}function w(He,Le,De){return Le&&Ge(He.prototype,Le),De&&Ge(He,De),He}function p(He,Le){if(He){if(typeof He=="string")return Ae(He,Le);var De=Object.prototype.toString.call(He).slice(8,-1);if(De==="Object"&&He.constructor&&(De=He.constructor.name),De==="Map"||De==="Set")return Array.from(He);if(De==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(De))return Ae(He,Le)}}function Ae(He,Le){(Le==null||Le>He.length)&&(Le=He.length);for(var De=0,te=new Array(Le);De<Le;De++)te[De]=He[De];return te}function xe(He,Le){var De=typeof Symbol!="undefined"&&He[Symbol.iterator]||He["@@iterator"];if(De)return(De=De.call(He)).next.bind(De);if(Array.isArray(He)||(De=p(He))||Le&&He&&typeof He.length=="number"){De&&(He=De);var te=0;return function(){return te>=He.length?{done:!0}:{done:!1,value:He[te++]}}}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 ce={exports:{}};function Y(){return{baseUrl:null,breaks:!1,gfm:!0,headerIds:!0,headerPrefix:"",highlight:null,langPrefix:"language-",mangle:!0,pedantic:!1,renderer:null,sanitize:!1,sanitizer:null,silent:!1,smartLists:!1,smartypants:!1,tokenizer:null,walkTokens:null,xhtml:!1}}function m(He){ce.exports.defaults=He}ce.exports={defaults:Y(),getDefaults:Y,changeDefaults:m};var ve=/[&<>"']/,U=/[&<>"']/g,o=/[<>"']|&(?!#?\w+;)/,X=/[<>"']|&(?!#?\w+;)/g,L={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"},_=function(Le){return L[Le]};function y(He,Le){if(Le){if(ve.test(He))return He.replace(U,_)}else if(o.test(He))return He.replace(X,_);return He}var E=/&(#(?:\d+)|(?:#x[0-9A-Fa-f]+)|(?:\w+));?/ig;function S(He){return He.replace(E,function(Le,De){return De=De.toLowerCase(),De==="colon"?":":De.charAt(0)==="#"?De.charAt(1)==="x"?String.fromCharCode(parseInt(De.substring(2),16)):String.fromCharCode(+De.substring(1)):""})}var O=/(^|[^\[])\^/g;function P(He,Le){He=He.source||He,Le=Le||"";var De={replace:function(ue,Se){return Se=Se.source||Se,Se=Se.replace(O,"$1"),He=He.replace(ue,Se),De},getRegex:function(){return new RegExp(He,Le)}};return De}var H=/[^\w:]/g,B=/^$|^[a-z][a-z0-9+.-]*:|^[?#]/i;function R(He,Le,De){if(He){var te;try{te=decodeURIComponent(S(De)).replace(H,"").toLowerCase()}catch(ue){return null}if(te.indexOf("javascript:")===0||te.indexOf("vbscript:")===0||te.indexOf("data:")===0)return null}Le&&!B.test(De)&&(De=se(Le,De));try{De=encodeURI(De).replace(/%25/g,"%")}catch(ue){return null}return De}var J={},q=/^[^:]+:\/*[^/]*$/,ge=/^([^:]+:)[\s\S]*$/,_e=/^([^:]+:\/*[^/]*)[\s\S]*$/;function se(He,Le){J[" "+He]||(q.test(He)?J[" "+He]=He+"/":J[" "+He]=oe(He,"/",!0)),He=J[" "+He];var De=He.indexOf(":")===-1;return Le.substring(0,2)==="//"?De?Le:He.replace(ge,"$1")+Le:Le.charAt(0)==="/"?De?Le:He.replace(_e,"$1")+Le:He+Le}var we={exec:function(){}};function de(He){for(var Le=1,De,te;Le<arguments.length;Le++){De=arguments[Le];for(te in De)Object.prototype.hasOwnProperty.call(De,te)&&(He[te]=De[te])}return He}function ie(He,Le){var De=He.replace(/\|/g,function(Se,Ie,Me){for(var Ke=!1,Ye=Ie;--Ye>=0&&Me[Ye]==="\\";)Ke=!Ke;return Ke?"|":" |"}),te=De.split(/ \|/),ue=0;if(te.length>Le)te.splice(Le);else for(;te.length<Le;)te.push("");for(;ue<te.length;ue++)te[ue]=te[ue].trim().replace(/\\\|/g,"|");return te}function oe(He,Le,De){var te=He.length;if(te===0)return"";for(var ue=0;ue<te;){var Se=He.charAt(te-ue-1);if(Se===Le&&!De)ue++;else if(Se!==Le&&De)ue++;else break}return He.substr(0,te-ue)}function K(He,Le){if(He.indexOf(Le[1])===-1)return-1;for(var De=He.length,te=0,ue=0;ue<De;ue++)if(He[ue]==="\\")ue++;else if(He[ue]===Le[0])te++;else if(He[ue]===Le[1]&&(te--,te<0))return ue;return-1}function k(He){He&&He.sanitize&&!He.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 V(He,Le){if(Le<1)return"";for(var De="";Le>1;)Le&1&&(De+=He),Le>>=1,He+=He;return De+He}var $={escape:y,unescape:S,edit:P,cleanUrl:R,resolveUrl:se,noopTest:we,merge:de,splitCells:ie,rtrim:oe,findClosingBracket:K,checkSanitizeDeprecation:k,repeatString:V},ae=ce.exports.defaults,re=$.rtrim,x=$.splitCells,b=$.escape,W=$.findClosingBracket;function fe(He,Le,De){var te=Le.href,ue=Le.title?b(Le.title):null,Se=He[1].replace(/\\([\[\]])/g,"$1");return He[0].charAt(0)!=="!"?{type:"link",raw:De,href:te,title:ue,text:Se}:{type:"image",raw:De,href:te,title:ue,text:b(Se)}}function ke(He,Le){var De=He.match(/^(\s+)(?:```)/);if(De===null)return Le;var te=De[1];return Le.split(`
`).map(function(ue){var Se=ue.match(/^\s+/);if(Se===null)return ue;var Ie=Se[0];return Ie.length>=te.length?ue.slice(te.length):ue}).join(`
`)}var je=function(){function He(De){this.options=De||ae}var Le=He.prototype;return Le.space=function(te){var ue=this.rules.block.newline.exec(te);if(ue)return ue[0].length>1?{type:"space",raw:ue[0]}:{raw:`
`}},Le.code=function(te){var ue=this.rules.block.code.exec(te);if(ue){var Se=ue[0].replace(/^ {1,4}/gm,"");return{type:"code",raw:ue[0],codeBlockStyle:"indented",text:this.options.pedantic?Se:re(Se,`
`)}}},Le.fences=function(te){var ue=this.rules.block.fences.exec(te);if(ue){var Se=ue[0],Ie=ke(Se,ue[3]||"");return{type:"code",raw:Se,lang:ue[2]?ue[2].trim():ue[2],text:Ie}}},Le.heading=function(te){var ue=this.rules.block.heading.exec(te);if(ue){var Se=ue[2].trim();if(/#$/.test(Se)){var Ie=re(Se,"#");(this.options.pedantic||!Ie||/ $/.test(Ie))&&(Se=Ie.trim())}return{type:"heading",raw:ue[0],depth:ue[1].length,text:Se}}},Le.nptable=function(te){var ue=this.rules.block.nptable.exec(te);if(ue){var Se={type:"table",header:x(ue[1].replace(/^ *| *\| *$/g,"")),align:ue[2].replace(/^ *|\| *$/g,"").split(/ *\| */),cells:ue[3]?ue[3].replace(/\n$/,"").split(`
`):[],raw:ue[0]};if(Se.header.length===Se.align.length){var Ie=Se.align.length,Me;for(Me=0;Me<Ie;Me++)/^ *-+: *$/.test(Se.align[Me])?Se.align[Me]="right":/^ *:-+: *$/.test(Se.align[Me])?Se.align[Me]="center":/^ *:-+ *$/.test(Se.align[Me])?Se.align[Me]="left":Se.align[Me]=null;for(Ie=Se.cells.length,Me=0;Me<Ie;Me++)Se.cells[Me]=x(Se.cells[Me],Se.header.length);return Se}}},Le.hr=function(te){var ue=this.rules.block.hr.exec(te);if(ue)return{type:"hr",raw:ue[0]}},Le.blockquote=function(te){var ue=this.rules.block.blockquote.exec(te);if(ue){var Se=ue[0].replace(/^ *> ?/gm,"");return{type:"blockquote",raw:ue[0],text:Se}}},Le.list=function(te){var ue=this.rules.block.list.exec(te);if(ue){var Se=ue[0],Ie=ue[2],Me=Ie.length>1,Ke={type:"list",raw:Se,ordered:Me,start:Me?+Ie.slice(0,-1):"",loose:!1,items:[]},Ye=ue[0].match(this.rules.block.item),it=!1,pt,Xt,hn,kt,Nt,fn,Fn,Re,Nn,Rt=Ye.length;hn=this.rules.block.listItemStart.exec(Ye[0]);for(var Ft=0;Ft<Rt;Ft++){if(pt=Ye[Ft],Se=pt,this.options.pedantic||(Nn=pt.match(new RegExp("\\n\\s*\\n {0,"+(hn[0].length-1)+"}\\S")),Nn&&(Nt=pt.length-Nn.index+Ye.slice(Ft+1).join(`
`).length,Ke.raw=Ke.raw.substring(0,Ke.raw.length-Nt),pt=pt.substring(0,Nn.index),Se=pt,Rt=Ft+1)),Ft!==Rt-1){if(kt=this.rules.block.listItemStart.exec(Ye[Ft+1]),this.options.pedantic?kt[1].length>hn[1].length:kt[1].length>=hn[0].length||kt[1].length>3){Ye.splice(Ft,2,Ye[Ft]+(!this.options.pedantic&&kt[1].length<hn[0].length&&!Ye[Ft].match(/\n$/)?"":`
`)+Ye[Ft+1]),Ft--,Rt--;continue}else(!this.options.pedantic||this.options.smartLists?kt[2][kt[2].length-1]!==Ie[Ie.length-1]:Me===(kt[2].length===1))&&(Nt=Ye.slice(Ft+1).join(`
`).length,Ke.raw=Ke.raw.substring(0,Ke.raw.length-Nt),Ft=Rt-1);hn=kt}Xt=pt.length,pt=pt.replace(/^ *([*+-]|\d+[.)]) ?/,""),~pt.indexOf(`
`)&&(Xt-=pt.length,pt=this.options.pedantic?pt.replace(/^ {1,4}/gm,""):pt.replace(new RegExp("^ {1,"+Xt+"}","gm"),"")),pt=re(pt,`
`),Ft!==Rt-1&&(Se=Se+`
`),fn=it||/\n\n(?!\s*$)/.test(Se),Ft!==Rt-1&&(it=Se.slice(-2)===`
`,fn||(fn=it)),fn&&(Ke.loose=!0),this.options.gfm&&(Fn=/^\[[ xX]\] /.test(pt),Re=void 0,Fn&&(Re=pt[1]!==" ",pt=pt.replace(/^\[[ xX]\] +/,""))),Ke.items.push({type:"list_item",raw:Se,task:Fn,checked:Re,loose:fn,text:pt})}return Ke}},Le.html=function(te){var ue=this.rules.block.html.exec(te);if(ue)return{type:this.options.sanitize?"paragraph":"html",raw:ue[0],pre:!this.options.sanitizer&&(ue[1]==="pre"||ue[1]==="script"||ue[1]==="style"),text:this.options.sanitize?this.options.sanitizer?this.options.sanitizer(ue[0]):b(ue[0]):ue[0]}},Le.def=function(te){var ue=this.rules.block.def.exec(te);if(ue){ue[3]&&(ue[3]=ue[3].substring(1,ue[3].length-1));var Se=ue[1].toLowerCase().replace(/\s+/g," ");return{type:"def",tag:Se,raw:ue[0],href:ue[2],title:ue[3]}}},Le.table=function(te){var ue=this.rules.block.table.exec(te);if(ue){var Se={type:"table",header:x(ue[1].replace(/^ *| *\| *$/g,"")),align:ue[2].replace(/^ *|\| *$/g,"").split(/ *\| */),cells:ue[3]?ue[3].replace(/\n$/,"").split(`
`):[]};if(Se.header.length===Se.align.length){Se.raw=ue[0];var Ie=Se.align.length,Me;for(Me=0;Me<Ie;Me++)/^ *-+: *$/.test(Se.align[Me])?Se.align[Me]="right":/^ *:-+: *$/.test(Se.align[Me])?Se.align[Me]="center":/^ *:-+ *$/.test(Se.align[Me])?Se.align[Me]="left":Se.align[Me]=null;for(Ie=Se.cells.length,Me=0;Me<Ie;Me++)Se.cells[Me]=x(Se.cells[Me].replace(/^ *\| *| *\| *$/g,""),Se.header.length);return Se}}},Le.lheading=function(te){var ue=this.rules.block.lheading.exec(te);if(ue)return{type:"heading",raw:ue[0],depth:ue[2].charAt(0)==="="?1:2,text:ue[1]}},Le.paragraph=function(te){var ue=this.rules.block.paragraph.exec(te);if(ue)return{type:"paragraph",raw:ue[0],text:ue[1].charAt(ue[1].length-1)===`
`?ue[1].slice(0,-1):ue[1]}},Le.text=function(te){var ue=this.rules.block.text.exec(te);if(ue)return{type:"text",raw:ue[0],text:ue[0]}},Le.escape=function(te){var ue=this.rules.inline.escape.exec(te);if(ue)return{type:"escape",raw:ue[0],text:b(ue[1])}},Le.tag=function(te,ue,Se){var Ie=this.rules.inline.tag.exec(te);if(Ie)return!ue&&/^<a /i.test(Ie[0])?ue=!0:ue&&/^<\/a>/i.test(Ie[0])&&(ue=!1),!Se&&/^<(pre|code|kbd|script)(\s|>)/i.test(Ie[0])?Se=!0:Se&&/^<\/(pre|code|kbd|script)(\s|>)/i.test(Ie[0])&&(Se=!1),{type:this.options.sanitize?"text":"html",raw:Ie[0],inLink:ue,inRawBlock:Se,text:this.options.sanitize?this.options.sanitizer?this.options.sanitizer(Ie[0]):b(Ie[0]):Ie[0]}},Le.link=function(te){var ue=this.rules.inline.link.exec(te);if(ue){var Se=ue[2].trim();if(!this.options.pedantic&&/^</.test(Se)){if(!/>$/.test(Se))return;var Ie=re(Se.slice(0,-1),"\\");if((Se.length-Ie.length)%2===0)return}else{var Me=W(ue[2],"()");if(Me>-1){var Ke=ue[0].indexOf("!")===0?5:4,Ye=Ke+ue[1].length+Me;ue[2]=ue[2].substring(0,Me),ue[0]=ue[0].substring(0,Ye).trim(),ue[3]=""}}var it=ue[2],pt="";if(this.options.pedantic){var Xt=/^([^'"]*[^\s])\s+(['"])(.*)\2/.exec(it);Xt&&(it=Xt[1],pt=Xt[3])}else pt=ue[3]?ue[3].slice(1,-1):"";return it=it.trim(),/^</.test(it)&&(this.options.pedantic&&!/>$/.test(Se)?it=it.slice(1):it=it.slice(1,-1)),fe(ue,{href:it&&it.replace(this.rules.inline._escapes,"$1"),title:pt&&pt.replace(this.rules.inline._escapes,"$1")},ue[0])}},Le.reflink=function(te,ue){var Se;if((Se=this.rules.inline.reflink.exec(te))||(Se=this.rules.inline.nolink.exec(te))){var Ie=(Se[2]||Se[1]).replace(/\s+/g," ");if(Ie=ue[Ie.toLowerCase()],!Ie||!Ie.href){var Me=Se[0].charAt(0);return{type:"text",raw:Me,text:Me}}return fe(Se,Ie,Se[0])}},Le.emStrong=function(te,ue,Se){Se===void 0&&(Se="");var Ie=this.rules.inline.emStrong.lDelim.exec(te);if(Ie&&!(Ie[3]&&Se.match(/(?:[0-9A-Za-z\xAA\xB2\xB3\xB5\xB9\xBA\xBC-\xBE\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0370-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u048A-\u052F\u0531-\u0556\u0559\u0560-\u0588\u05D0-\u05EA\u05EF-\u05F2\u0620-\u064A\u0660-\u0669\u066E\u066F\u0671-\u06D3\u06D5\u06E5\u06E6\u06EE-\u06FC\u06FF\u0710\u0712-\u072F\u074D-\u07A5\u07B1\u07C0-\u07EA\u07F4\u07F5\u07FA\u0800-\u0815\u081A\u0824\u0828\u0840-\u0858\u0860-\u086A\u08A0-\u08B4\u08B6-\u08C7\u0904-\u0939\u093D\u0950\u0958-\u0961\u0966-\u096F\u0971-\u0980\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BD\u09CE\u09DC\u09DD\u09DF-\u09E1\u09E6-\u09F1\u09F4-\u09F9\u09FC\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A59-\u0A5C\u0A5E\u0A66-\u0A6F\u0A72-\u0A74\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABD\u0AD0\u0AE0\u0AE1\u0AE6-\u0AEF\u0AF9\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3D\u0B5C\u0B5D\u0B5F-\u0B61\u0B66-\u0B6F\u0B71-\u0B77\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BD0\u0BE6-\u0BF2\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D\u0C58-\u0C5A\u0C60\u0C61\u0C66-\u0C6F\u0C78-\u0C7E\u0C80\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBD\u0CDE\u0CE0\u0CE1\u0CE6-\u0CEF\u0CF1\u0CF2\u0D04-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D\u0D4E\u0D54-\u0D56\u0D58-\u0D61\u0D66-\u0D78\u0D7A-\u0D7F\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0DE6-\u0DEF\u0E01-\u0E30\u0E32\u0E33\u0E40-\u0E46\u0E50-\u0E59\u0E81\u0E82\u0E84\u0E86-\u0E8A\u0E8C-\u0EA3\u0EA5\u0EA7-\u0EB0\u0EB2\u0EB3\u0EBD\u0EC0-\u0EC4\u0EC6\u0ED0-\u0ED9\u0EDC-\u0EDF\u0F00\u0F20-\u0F33\u0F40-\u0F47\u0F49-\u0F6C\u0F88-\u0F8C\u1000-\u102A\u103F-\u1049\u1050-\u1055\u105A-\u105D\u1061\u1065\u1066\u106E-\u1070\u1075-\u1081\u108E\u1090-\u1099\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u1369-\u137C\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16EE-\u16F8\u1700-\u170C\u170E-\u1711\u1720-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17D7\u17DC\u17E0-\u17E9\u17F0-\u17F9\u1810-\u1819\u1820-\u1878\u1880-\u1884\u1887-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191E\u1946-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u19D0-\u19DA\u1A00-\u1A16\u1A20-\u1A54\u1A80-\u1A89\u1A90-\u1A99\u1AA7\u1B05-\u1B33\u1B45-\u1B4B\u1B50-\u1B59\u1B83-\u1BA0\u1BAE-\u1BE5\u1C00-\u1C23\u1C40-\u1C49\u1C4D-\u1C7D\u1C80-\u1C88\u1C90-\u1CBA\u1CBD-\u1CBF\u1CE9-\u1CEC\u1CEE-\u1CF3\u1CF5\u1CF6\u1CFA\u1D00-\u1DBF\u1E00-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u2070\u2071\u2074-\u2079\u207F-\u2089\u2090-\u209C\u2102\u2107\u210A-\u2113\u2115\u2119-\u211D\u2124\u2126\u2128\u212A-\u212D\u212F-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2150-\u2189\u2460-\u249B\u24EA-\u24FF\u2776-\u2793\u2C00-\u2C2E\u2C30-\u2C5E\u2C60-\u2CE4\u2CEB-\u2CEE\u2CF2\u2CF3\u2CFD\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D80-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u2E2F\u3005-\u3007\u3021-\u3029\u3031-\u3035\u3038-\u303C\u3041-\u3096\u309D-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312F\u3131-\u318E\u3192-\u3195\u31A0-\u31BF\u31F0-\u31FF\u3220-\u3229\u3248-\u324F\u3251-\u325F\u3280-\u3289\u32B1-\u32BF\u3400-\u4DBF\u4E00-\u9FFC\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA62B\uA640-\uA66E\uA67F-\uA69D\uA6A0-\uA6EF\uA717-\uA71F\uA722-\uA788\uA78B-\uA7BF\uA7C2-\uA7CA\uA7F5-\uA801\uA803-\uA805\uA807-\uA80A\uA80C-\uA822\uA830-\uA835\uA840-\uA873\uA882-\uA8B3\uA8D0-\uA8D9\uA8F2-\uA8F7\uA8FB\uA8FD\uA8FE\uA900-\uA925\uA930-\uA946\uA960-\uA97C\uA984-\uA9B2\uA9CF-\uA9D9\uA9E0-\uA9E4\uA9E6-\uA9FE\uAA00-\uAA28\uAA40-\uAA42\uAA44-\uAA4B\uAA50-\uAA59\uAA60-\uAA76\uAA7A\uAA7E-\uAAAF\uAAB1\uAAB5\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAADD\uAAE0-\uAAEA\uAAF2-\uAAF4\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB69\uAB70-\uABE2\uABF0-\uABF9\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D\uFB1F-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE70-\uFE74\uFE76-\uFEFC\uFF10-\uFF19\uFF21-\uFF3A\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC]|\uD800[\uDC00-\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1-\uDDF4\uDE00-\uDE11\uDE13-\uDE2B\uDE80-\uDE86\uDE88\uDE8A-\uDE8D\uDE8F-\uDE9D\uDE9F-\uDEA8\uDEB0-\uDEDE\uDEF0-\uDEF9\uDF05-\uDF0C\uDF0F\uDF10\uDF13-\uDF28\uDF2A-\uDF30\uDF32\uDF33\uDF35-\uDF39\uDF3D\uDF50\uDF5D-\uDF61]|\uD805[\uDC00-\uDC34\uDC47-\uDC4A\uDC50-\uDC59\uDC5F-\uDC61\uDC80-\uDCAF\uDCC4\uDCC5\uDCC7\uDCD0-\uDCD9\uDD80-\uDDAE\uDDD8-\uDDDB\uDE00-\uDE2F\uDE44\uDE50-\uDE59\uDE80-\uDEAA\uDEB8\uDEC0-\uDEC9\uDF00-\uDF1A\uDF30-\uDF3B]|\uD806[\uDC00-\uDC2B\uDCA0-\uDCF2\uDCFF-\uDD06\uDD09\uDD0C-\uDD13\uDD15\uDD16\uDD18-\uDD2F\uDD3F\uDD41\uDD50-\uDD59\uDDA0-\uDDA7\uDDAA-\uDDD0\uDDE1\uDDE3\uDE00\uDE0B-\uDE32\uDE3A\uDE50\uDE5C-\uDE89\uDE9D\uDEC0-\uDEF8]|\uD807[\uDC00-\uDC08\uDC0A-\uDC2E\uDC40\uDC50-\uDC6C\uDC72-\uDC8F\uDD00-\uDD06\uDD08\uDD09\uDD0B-\uDD30\uDD46\uDD50-\uDD59\uDD60-\uDD65\uDD67\uDD68\uDD6A-\uDD89\uDD98\uDDA0-\uDDA9\uDEE0-\uDEF2\uDFB0\uDFC0-\uDFD4]|\uD808[\uDC00-\uDF99]|\uD809[\uDC00-\uDC6E\uDC80-\uDD43]|[\uD80C\uD81C-\uD820\uD822\uD840-\uD868\uD86A-\uD86C\uD86F-\uD872\uD874-\uD879\uD880-\uD883][\uDC00-\uDFFF]|\uD80D[\uDC00-\uDC2E]|\uD811[\uDC00-\uDE46]|\uD81A[\uDC00-\uDE38\uDE40-\uDE5E\uDE60-\uDE69\uDED0-\uDEED\u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57\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 Me=Ie[1]||Ie[2]||"";if(!Me||Me&&(Se===""||this.rules.inline.punctuation.exec(Se))){var Ke=Ie[0].length-1,Ye,it,pt=Ke,Xt=0,hn=Ie[0][0]==="*"?this.rules.inline.emStrong.rDelimAst:this.rules.inline.emStrong.rDelimUnd;for(hn.lastIndex=0,ue=ue.slice(-1*te.length+Ke);(Ie=hn.exec(ue))!=null;)if(Ye=Ie[1]||Ie[2]||Ie[3]||Ie[4]||Ie[5]||Ie[6],!!Ye){if(it=Ye.length,Ie[3]||Ie[4]){pt+=it;continue}else if((Ie[5]||Ie[6])&&Ke%3&&!((Ke+it)%3)){Xt+=it;continue}if(pt-=it,!(pt>0))return it=Math.min(it,it+pt+Xt),Math.min(Ke,it)%2?{type:"em",raw:te.slice(0,Ke+Ie.index+it+1),text:te.slice(1,Ke+Ie.index+it)}:{type:"strong",raw:te.slice(0,Ke+Ie.index+it+1),text:te.slice(2,Ke+Ie.index+it-1)}}}}},Le.codespan=function(te){var ue=this.rules.inline.code.exec(te);if(ue){var Se=ue[2].replace(/\n/g," "),Ie=/[^ ]/.test(Se),Me=/^ /.test(Se)&&/ $/.test(Se);return Ie&&Me&&(Se=Se.substring(1,Se.length-1)),Se=b(Se,!0),{type:"codespan",raw:ue[0],text:Se}}},Le.br=function(te){var ue=this.rules.inline.br.exec(te);if(ue)return{type:"br",raw:ue[0]}},Le.del=function(te){var ue=this.rules.inline.del.exec(te);if(ue)return{type:"del",raw:ue[0],text:ue[2]}},Le.autolink=function(te,ue){var Se=this.rules.inline.autolink.exec(te);if(Se){var Ie,Me;return Se[2]==="@"?(Ie=b(this.options.mangle?ue(Se[1]):Se[1]),Me="mailto:"+Ie):(Ie=b(Se[1]),Me=Ie),{type:"link",raw:Se[0],text:Ie,href:Me,tokens:[{type:"text",raw:Ie,text:Ie}]}}},Le.url=function(te,ue){var Se;if(Se=this.rules.inline.url.exec(te)){var Ie,Me;if(Se[2]==="@")Ie=b(this.options.mangle?ue(Se[0]):Se[0]),Me="mailto:"+Ie;else{var Ke;do Ke=Se[0],Se[0]=this.rules.inline._backpedal.exec(Se[0])[0];while(Ke!==Se[0]);Ie=b(Se[0]),Se[1]==="www."?Me="http://"+Ie:Me=Ie}return{type:"link",raw:Se[0],text:Ie,href:Me,tokens:[{type:"text",raw:Ie,text:Ie}]}}},Le.inlineText=function(te,ue,Se){var Ie=this.rules.inline.text.exec(te);if(Ie){var Me;return ue?Me=this.options.sanitize?this.options.sanitizer?this.options.sanitizer(Ie[0]):b(Ie[0]):Ie[0]:Me=b(this.options.smartypants?Se(Ie[0]):Ie[0]),{type:"text",raw:Ie[0],text:Me}}},He}(),yt=$.noopTest,ht=$.edit,Ot=$.merge,Dt={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:yt,table:yt,lheading:/^([^\n]+)\n {0,3}(=+|-+) *(?:\n+|$)/,_paragraph:/^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html| +\n)[^\n]+)*)/,text:/^[^\n]+/};Dt._label=/(?!\s*\])(?:\\[\[\]]|[^\[\]])+/,Dt._title=/(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/,Dt.def=ht(Dt.def).replace("label",Dt._label).replace("title",Dt._title).getRegex(),Dt.bullet=/(?:[*+-]|\d{1,9}[.)])/,Dt.item=/^( *)(bull) ?[^\n]*(?:\n(?! *bull ?)[^\n]*)*/,Dt.item=ht(Dt.item,"gm").replace(/bull/g,Dt.bullet).getRegex(),Dt.listItemStart=ht(/^( *)(bull) */).replace("bull",Dt.bullet).getRegex(),Dt.list=ht(Dt.list).replace(/bull/g,Dt.bullet).replace("hr","\\n+(?=\\1?(?:(?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$))").replace("def","\\n+(?="+Dt.def.source+")").getRegex(),Dt._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",Dt._comment=/<!--(?!-?>)[\s\S]*?(?:-->|$)/,Dt.html=ht(Dt.html,"i").replace("comment",Dt._comment).replace("tag",Dt._tag).replace("attribute",/ +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(),Dt.paragraph=ht(Dt._paragraph).replace("hr",Dt.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",Dt._tag).getRegex(),Dt.blockquote=ht(Dt.blockquote).replace("paragraph",Dt.paragraph).getRegex(),Dt.normal=Ot({},Dt),Dt.gfm=Ot({},Dt.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*|$)"}),Dt.gfm.nptable=ht(Dt.gfm.nptable).replace("hr",Dt.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",Dt._tag).getRegex(),Dt.gfm.table=ht(Dt.gfm.table).replace("hr",Dt.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",Dt._tag).getRegex(),Dt.pedantic=Ot({},Dt.normal,{html:ht(`^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+?</\\1> *(?:\\n{2,}|\\s*$)|<tag(?:"[^"]*"|'[^']*'|\\s[^'"/>\\s]*)*?/?> *(?:\\n{2,}|\\s*$))`).replace("comment",Dt._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:yt,paragraph:ht(Dt.normal._paragraph).replace("hr",Dt.hr).replace("heading",` *#{1,6} *[^
]`).replace("lheading",Dt.lheading).replace("blockquote"," {0,3}>").replace("|fences","").replace("|list","").replace("|html","").getRegex()});var Ve={escape:/^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/,autolink:/^<(scheme:[^\s\x00-\x1f<>]*|email)>/,url:yt,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:yt,text:/^(`+|[^`])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\<!\[`*_]|\b_|$)|[^ ](?= {2,}\n)))/,punctuation:/^([\spunctuation])/};Ve._punctuation="!\"#$%&'()+\\-.,/:;<=>?@\\[\\]`^{|}~",Ve.punctuation=ht(Ve.punctuation).replace(/punctuation/g,Ve._punctuation).getRegex(),Ve.blockSkip=/\[[^\]]*?\]\([^\)]*?\)|`[^`]*?`|<[^>]*?>/g,Ve.escapedEmSt=/\\\*|\\_/g,Ve._comment=ht(Dt._comment).replace("(?:-->|$)","-->").getRegex(),Ve.emStrong.lDelim=ht(Ve.emStrong.lDelim).replace(/punct/g,Ve._punctuation).getRegex(),Ve.emStrong.rDelimAst=ht(Ve.emStrong.rDelimAst,"g").replace(/punct/g,Ve._punctuation).getRegex(),Ve.emStrong.rDelimUnd=ht(Ve.emStrong.rDelimUnd,"g").replace(/punct/g,Ve._punctuation).getRegex(),Ve._escapes=/\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/g,Ve._scheme=/[a-zA-Z][a-zA-Z0-9+.-]{1,31}/,Ve._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])?)+(?![-_])/,Ve.autolink=ht(Ve.autolink).replace("scheme",Ve._scheme).replace("email",Ve._email).getRegex(),Ve._attribute=/\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/,Ve.tag=ht(Ve.tag).replace("comment",Ve._comment).replace("attribute",Ve._attribute).getRegex(),Ve._label=/(?:\[(?:\\.|[^\[\]\\])*\]|\\.|`[^`]*`|[^\[\]\\`])*?/,Ve._href=/<(?:\\.|[^\n<>\\])+>|[^\s\x00-\x1f]*/,Ve._title=/"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/,Ve.link=ht(Ve.link).replace("label",Ve._label).replace("href",Ve._href).replace("title",Ve._title).getRegex(),Ve.reflink=ht(Ve.reflink).replace("label",Ve._label).getRegex(),Ve.reflinkSearch=ht(Ve.reflinkSearch,"g").replace("reflink",Ve.reflink).replace("nolink",Ve.nolink).getRegex(),Ve.normal=Ot({},Ve),Ve.pedantic=Ot({},Ve.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:ht(/^!?\[(label)\]\((.*?)\)/).replace("label",Ve._label).getRegex(),reflink:ht(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace("label",Ve._label).getRegex()}),Ve.gfm=Ot({},Ve.normal,{escape:ht(Ve.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.!#$%&'*+\/=?_`{\|}~-]+@)))/}),Ve.gfm.url=ht(Ve.gfm.url,"i").replace("email",Ve.gfm._extended_email).getRegex(),Ve.breaks=Ot({},Ve.gfm,{br:ht(Ve.br).replace("{2,}","*").getRegex(),text:ht(Ve.gfm.text).replace("\\b_","\\b_| {2,}\\n").replace(/\{2,\}/g,"*").getRegex()});var Jt={block:Dt,inline:Ve},ot=je,Et=ce.exports.defaults,qe=Jt.block,Kt=Jt.inline,Te=$.repeatString;function F(He){return He.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(He){var Le="",De,te,ue=He.length;for(De=0;De<ue;De++)te=He.charCodeAt(De),Math.random()>.5&&(te="x"+te.toString(16)),Le+="&#"+te+";";return Le}var T=function(){function He(De){this.tokens=[],this.tokens.links=Object.create(null),this.options=De||Et,this.options.tokenizer=this.options.tokenizer||new ot,this.tokenizer=this.options.tokenizer,this.tokenizer.options=this.options;var te={block:qe.normal,inline:Kt.normal};this.options.pedantic?(te.block=qe.pedantic,te.inline=Kt.pedantic):this.options.gfm&&(te.block=qe.gfm,this.options.breaks?te.inline=Kt.breaks:te.inline=Kt.gfm),this.tokenizer.rules=te}He.lex=function(te,ue){var Se=new He(ue);return Se.lex(te)},He.lexInline=function(te,ue){var Se=new He(ue);return Se.inlineTokens(te)};var Le=He.prototype;return Le.lex=function(te){return te=te.replace(/\r\n|\r/g,`
`).replace(/\t/g," "),this.blockTokens(te,this.tokens,!0),this.inline(this.tokens),this.tokens},Le.blockTokens=function(te,ue,Se){ue===void 0&&(ue=[]),Se===void 0&&(Se=!0),this.options.pedantic&&(te=te.replace(/^ +$/gm,""));for(var Ie,Me,Ke,Ye;te;){if(Ie=this.tokenizer.space(te)){te=te.substring(Ie.raw.length),Ie.type&&ue.push(Ie);continue}if(Ie=this.tokenizer.code(te)){te=te.substring(Ie.raw.length),Ye=ue[ue.length-1],Ye&&Ye.type==="paragraph"?(Ye.raw+=`
`+Ie.raw,Ye.text+=`
`+Ie.text):ue.push(Ie);continue}if(Ie=this.tokenizer.fences(te)){te=te.substring(Ie.raw.length),ue.push(Ie);continue}if(Ie=this.tokenizer.heading(te)){te=te.substring(Ie.raw.length),ue.push(Ie);continue}if(Ie=this.tokenizer.nptable(te)){te=te.substring(Ie.raw.length),ue.push(Ie);continue}if(Ie=this.tokenizer.hr(te)){te=te.substring(Ie.raw.length),ue.push(Ie);continue}if(Ie=this.tokenizer.blockquote(te)){te=te.substring(Ie.raw.length),Ie.tokens=this.blockTokens(Ie.text,[],Se),ue.push(Ie);continue}if(Ie=this.tokenizer.list(te)){for(te=te.substring(Ie.raw.length),Ke=Ie.items.length,Me=0;Me<Ke;Me++)Ie.items[Me].tokens=this.blockTokens(Ie.items[Me].text,[],!1);ue.push(Ie);continue}if(Ie=this.tokenizer.html(te)){te=te.substring(Ie.raw.length),ue.push(Ie);continue}if(Se&&(Ie=this.tokenizer.def(te))){te=te.substring(Ie.raw.length),this.tokens.links[Ie.tag]||(this.tokens.links[Ie.tag]={href:Ie.href,title:Ie.title});continue}if(Ie=this.tokenizer.table(te)){te=te.substring(Ie.raw.length),ue.push(Ie);continue}if(Ie=this.tokenizer.lheading(te)){te=te.substring(Ie.raw.length),ue.push(Ie);continue}if(Se&&(Ie=this.tokenizer.paragraph(te))){te=te.substring(Ie.raw.length),ue.push(Ie);continue}if(Ie=this.tokenizer.text(te)){te=te.substring(Ie.raw.length),Ye=ue[ue.length-1],Ye&&Ye.type==="text"?(Ye.raw+=`
`+Ie.raw,Ye.text+=`
`+Ie.text):ue.push(Ie);continue}if(te){var it="Infinite loop on byte: "+te.charCodeAt(0);if(this.options.silent){console.error(it);break}else throw new Error(it)}}return ue},Le.inline=function(te){var ue,Se,Ie,Me,Ke,Ye,it=te.length;for(ue=0;ue<it;ue++)switch(Ye=te[ue],Ye.type){case"paragraph":case"text":case"heading":{Ye.tokens=[],this.inlineTokens(Ye.text,Ye.tokens);break}case"table":{for(Ye.tokens={header:[],cells:[]},Me=Ye.header.length,Se=0;Se<Me;Se++)Ye.tokens.header[Se]=[],this.inlineTokens(Ye.header[Se],Ye.tokens.header[Se]);for(Me=Ye.cells.length,Se=0;Se<Me;Se++)for(Ke=Ye.cells[Se],Ye.tokens.cells[Se]=[],Ie=0;Ie<Ke.length;Ie++)Ye.tokens.cells[Se][Ie]=[],this.inlineTokens(Ke[Ie],Ye.tokens.cells[Se][Ie]);break}case"blockquote":{this.inline(Ye.tokens);break}case"list":{for(Me=Ye.items.length,Se=0;Se<Me;Se++)this.inline(Ye.items[Se].tokens);break}}return te},Le.inlineTokens=function(te,ue,Se,Ie){ue===void 0&&(ue=[]),Se===void 0&&(Se=!1),Ie===void 0&&(Ie=!1);var Me,Ke,Ye=te,it,pt,Xt;if(this.tokens.links){var hn=Object.keys(this.tokens.links);if(hn.length>0)for(;(it=this.tokenizer.rules.inline.reflinkSearch.exec(Ye))!=null;)hn.includes(it[0].slice(it[0].lastIndexOf("[")+1,-1))&&(Ye=Ye.slice(0,it.index)+"["+Te("a",it[0].length-2)+"]"+Ye.slice(this.tokenizer.rules.inline.reflinkSearch.lastIndex))}for(;(it=this.tokenizer.rules.inline.blockSkip.exec(Ye))!=null;)Ye=Ye.slice(0,it.index)+"["+Te("a",it[0].length-2)+"]"+Ye.slice(this.tokenizer.rules.inline.blockSkip.lastIndex);for(;(it=this.tokenizer.rules.inline.escapedEmSt.exec(Ye))!=null;)Ye=Ye.slice(0,it.index)+"++"+Ye.slice(this.tokenizer.rules.inline.escapedEmSt.lastIndex);for(;te;){if(pt||(Xt=""),pt=!1,Me=this.tokenizer.escape(te)){te=te.substring(Me.raw.length),ue.push(Me);continue}if(Me=this.tokenizer.tag(te,Se,Ie)){te=te.substring(Me.raw.length),Se=Me.inLink,Ie=Me.inRawBlock;var kt=ue[ue.length-1];kt&&Me.type==="text"&&kt.type==="text"?(kt.raw+=Me.raw,kt.text+=Me.text):ue.push(Me);continue}if(Me=this.tokenizer.link(te)){te=te.substring(Me.raw.length),Me.type==="link"&&(Me.tokens=this.inlineTokens(Me.text,[],!0,Ie)),ue.push(Me);continue}if(Me=this.tokenizer.reflink(te,this.tokens.links)){te=te.substring(Me.raw.length);var Nt=ue[ue.length-1];Me.type==="link"?(Me.tokens=this.inlineTokens(Me.text,[],!0,Ie),ue.push(Me)):Nt&&Me.type==="text"&&Nt.type==="text"?(Nt.raw+=Me.raw,Nt.text+=Me.text):ue.push(Me);continue}if(Me=this.tokenizer.emStrong(te,Ye,Xt)){te=te.substring(Me.raw.length),Me.tokens=this.inlineTokens(Me.text,[],Se,Ie),ue.push(Me);continue}if(Me=this.tokenizer.codespan(te)){te=te.substring(Me.raw.length),ue.push(Me);continue}if(Me=this.tokenizer.br(te)){te=te.substring(Me.raw.length),ue.push(Me);continue}if(Me=this.tokenizer.del(te)){te=te.substring(Me.raw.length),Me.tokens=this.inlineTokens(Me.text,[],Se,Ie),ue.push(Me);continue}if(Me=this.tokenizer.autolink(te,v)){te=te.substring(Me.raw.length),ue.push(Me);continue}if(!Se&&(Me=this.tokenizer.url(te,v))){te=te.substring(Me.raw.length),ue.push(Me);continue}if(Me=this.tokenizer.inlineText(te,Ie,F)){te=te.substring(Me.raw.length),Me.raw.slice(-1)!=="_"&&(Xt=Me.raw.slice(-1)),pt=!0,Ke=ue[ue.length-1],Ke&&Ke.type==="text"?(Ke.raw+=Me.raw,Ke.text+=Me.text):ue.push(Me);continue}if(te){var fn="Infinite loop on byte: "+te.charCodeAt(0);if(this.options.silent){console.error(fn);break}else throw new Error(fn)}}return ue},w(He,null,[{key:"rules",get:function(){return{block:qe,inline:Kt}}}]),He}(),ee=ce.exports.defaults,N=$.cleanUrl,z=$.escape,he=function(){function He(De){this.options=De||ee}var Le=He.prototype;return Le.code=function(te,ue,Se){var Ie=(ue||"").match(/\S*/)[0];if(this.options.highlight){var Me=this.options.highlight(te,Ie);Me!=null&&Me!==te&&(Se=!0,te=Me)}return te=te.replace(/\n$/,"")+`
`,Ie?'<pre><code class="'+this.options.langPrefix+z(Ie,!0)+'">'+(Se?te:z(te,!0))+`</code></pre>
`:"<pre><code>"+(Se?te:z(te,!0))+`</code></pre>
`},Le.blockquote=function(te){return`<blockquote>
`+te+`</blockquote>
`},Le.html=function(te){return te},Le.heading=function(te,ue,Se,Ie){return this.options.headerIds?"<h"+ue+' id="'+this.options.headerPrefix+Ie.slug(Se)+'">'+te+"</h"+ue+`>
`:"<h"+ue+">"+te+"</h"+ue+`>
`},Le.hr=function(){return this.options.xhtml?`<hr/>
`:`<hr>
`},Le.list=function(te,ue,Se){var Ie=ue?"ol":"ul",Me=ue&&Se!==1?' start="'+Se+'"':"";return"<"+Ie+Me+`>
`+te+"</"+Ie+`>
`},Le.listitem=function(te){return"<li>"+te+`</li>
`},Le.checkbox=function(te){return"<input "+(te?'checked="" ':"")+'disabled="" type="checkbox"'+(this.options.xhtml?" /":"")+"> "},Le.paragraph=function(te){return"<p>"+te+`</p>
`},Le.table=function(te,ue){return ue&&(ue="<tbody>"+ue+"</tbody>"),`<table>
<thead>
`+te+`</thead>
`+ue+`</table>
`},Le.tablerow=function(te){return`<tr>
`+te+`</tr>
`},Le.tablecell=function(te,ue){var Se=ue.header?"th":"td",Ie=ue.align?"<"+Se+' align="'+ue.align+'">':"<"+Se+">";return Ie+te+"</"+Se+`>
`},Le.strong=function(te){return"<strong>"+te+"</strong>"},Le.em=function(te){return"<em>"+te+"</em>"},Le.codespan=function(te){return"<code>"+te+"</code>"},Le.br=function(){return this.options.xhtml?"<br/>":"<br>"},Le.del=function(te){return"<del>"+te+"</del>"},Le.link=function(te,ue,Se){if(te=N(this.options.sanitize,this.options.baseUrl,te),te===null)return Se;var Ie='<a href="'+z(te)+'"';return ue&&(Ie+=' title="'+ue+'"'),Ie+=">"+Se+"</a>",Ie},Le.image=function(te,ue,Se){if(te=N(this.options.sanitize,this.options.baseUrl,te),te===null)return Se;var Ie='<img src="'+te+'" alt="'+Se+'"';return ue&&(Ie+=' title="'+ue+'"'),Ie+=this.options.xhtml?"/>":">",Ie},Le.text=function(te){return te},He}(),Fe=function(){function He(){}var Le=He.prototype;return Le.strong=function(te){return te},Le.em=function(te){return te},Le.codespan=function(te){return te},Le.del=function(te){return te},Le.html=function(te){return te},Le.text=function(te){return te},Le.link=function(te,ue,Se){return""+Se},Le.image=function(te,ue,Se){return""+Se},Le.br=function(){return""},He}(),Ne=function(){function He(){this.seen={}}var Le=He.prototype;return Le.serialize=function(te){return te.toLowerCase().trim().replace(/<[!\/a-z].*?>/ig,"").replace(/[\u2000-\u206F\u2E00-\u2E7F\\'!"#$%&()*+,./:;<=>?@[\]^`{|}~]/g,"").replace(/\s/g,"-")},Le.getNextSafeSlug=function(te,ue){var Se=te,Ie=0;if(this.seen.hasOwnProperty(Se)){Ie=this.seen[te];do Ie++,Se=te+"-"+Ie;while(this.seen.hasOwnProperty(Se))}return ue||(this.seen[te]=Ie,this.seen[Se]=0),Se},Le.slug=function(te,ue){ue===void 0&&(ue={});var Se=this.serialize(te);return this.getNextSafeSlug(Se,ue.dryrun)},He}(),rt=he,lt=Fe,zt=Ne,Tt=ce.exports.defaults,Ct=$.unescape,At=function(){function He(De){this.options=De||Tt,this.options.renderer=this.options.renderer||new rt,this.renderer=this.options.renderer,this.renderer.options=this.options,this.textRenderer=new lt,this.slugger=new zt}He.parse=function(te,ue){var Se=new He(ue);return Se.parse(te)},He.parseInline=function(te,ue){var Se=new He(ue);return Se.parseInline(te)};var Le=He.prototype;return Le.parse=function(te,ue){ue===void 0&&(ue=!0);var Se="",Ie,Me,Ke,Ye,it,pt,Xt,hn,kt,Nt,fn,Fn,Re,Nn,Rt,Ft,rn,_n,Mn=te.length;for(Ie=0;Ie<Mn;Ie++)switch(Nt=te[Ie],Nt.type){case"space":continue;case"hr":{Se+=this.renderer.hr();continue}case"heading":{Se+=this.renderer.heading(this.parseInline(Nt.tokens),Nt.depth,Ct(this.parseInline(Nt.tokens,this.textRenderer)),this.slugger);continue}case"code":{Se+=this.renderer.code(Nt.text,Nt.lang,Nt.escaped);continue}case"table":{for(hn="",Xt="",Ye=Nt.header.length,Me=0;Me<Ye;Me++)Xt+=this.renderer.tablecell(this.parseInline(Nt.tokens.header[Me]),{header:!0,align:Nt.align[Me]});for(hn+=this.renderer.tablerow(Xt),kt="",Ye=Nt.cells.length,Me=0;Me<Ye;Me++){for(pt=Nt.tokens.cells[Me],Xt="",it=pt.length,Ke=0;Ke<it;Ke++)Xt+=this.renderer.tablecell(this.parseInline(pt[Ke]),{header:!1,align:Nt.align[Ke]});kt+=this.renderer.tablerow(Xt)}Se+=this.renderer.table(hn,kt);continue}case"blockquote":{kt=this.parse(Nt.tokens),Se+=this.renderer.blockquote(kt);continue}case"list":{for(fn=Nt.ordered,Fn=Nt.start,Re=Nt.loose,Ye=Nt.items.length,kt="",Me=0;Me<Ye;Me++)Rt=Nt.items[Me],Ft=Rt.checked,rn=Rt.task,Nn="",Rt.task&&(_n=this.renderer.checkbox(Ft),Re?Rt.tokens.length>0&&Rt.tokens[0].type==="text"?(Rt.tokens[0].text=_n+" "+Rt.tokens[0].text,Rt.tokens[0].tokens&&Rt.tokens[0].tokens.length>0&&Rt.tokens[0].tokens[0].type==="text"&&(Rt.tokens[0].tokens[0].text=_n+" "+Rt.tokens[0].tokens[0].text)):Rt.tokens.unshift({type:"text",text:_n}):Nn+=_n),Nn+=this.parse(Rt.tokens,Re),kt+=this.renderer.listitem(Nn,rn,Ft);Se+=this.renderer.list(kt,fn,Fn);continue}case"html":{Se+=this.renderer.html(Nt.text);continue}case"paragraph":{Se+=this.renderer.paragraph(this.parseInline(Nt.tokens));continue}case"text":{for(kt=Nt.tokens?this.parseInline(Nt.tokens):Nt.text;Ie+1<Mn&&te[Ie+1].type==="text";)Nt=te[++Ie],kt+=`
`+(Nt.tokens?this.parseInline(Nt.tokens):Nt.text);Se+=ue?this.renderer.paragraph(kt):kt;continue}default:{var oi='Token with "'+Nt.type+'" type was not found.';if(this.options.silent){console.error(oi);return}else throw new Error(oi)}}return Se},Le.parseInline=function(te,ue){ue=ue||this.renderer;var Se="",Ie,Me,Ke=te.length;for(Ie=0;Ie<Ke;Ie++)switch(Me=te[Ie],Me.type){case"escape":{Se+=ue.text(Me.text);break}case"html":{Se+=ue.html(Me.text);break}case"link":{Se+=ue.link(Me.href,Me.title,this.parseInline(Me.tokens,ue));break}case"image":{Se+=ue.image(Me.href,Me.title,Me.text);break}case"strong":{Se+=ue.strong(this.parseInline(Me.tokens,ue));break}case"em":{Se+=ue.em(this.parseInline(Me.tokens,ue));break}case"codespan":{Se+=ue.codespan(Me.text);break}case"br":{Se+=ue.br();break}case"del":{Se+=ue.del(this.parseInline(Me.tokens,ue));break}case"text":{Se+=ue.text(Me.text);break}default:{var Ye='Token with "'+Me.type+'" type was not found.';if(this.options.silent){console.error(Ye);return}else throw new Error(Ye)}}return Se},He}(),It=T,st=At,ct=je,Pe=he,wt=Fe,Lt=Ne,St=$.merge,en=$.checkSanitizeDeprecation,Yt=$.escape,Ht=ce.exports.getDefaults,In=ce.exports.changeDefaults,$n=ce.exports.defaults;function Vt(He,Le,De){if(typeof He=="undefined"||He===null)throw new Error("marked(): input parameter is undefined or null");if(typeof He!="string")throw new Error("marked(): input parameter is of type "+Object.prototype.toString.call(He)+", string expected");if(typeof Le=="function"&&(De=Le,Le=null),Le=St({},Vt.defaults,Le||{}),en(Le),De){var te=Le.highlight,ue;try{ue=It.lex(He,Le)}catch(Ke){return De(Ke)}var Se=function(Ye){var it;if(!Ye)try{Le.walkTokens&&Vt.walkTokens(ue,Le.walkTokens),it=st.parse(ue,Le)}catch(pt){Ye=pt}return Le.highlight=te,Ye?De(Ye):De(null,it)};if(!te||te.length<3||(delete Le.highlight,!ue.length))return Se();var Ie=0;Vt.walkTokens(ue,function(Ke){Ke.type==="code"&&(Ie++,setTimeout(function(){te(Ke.text,Ke.lang,function(Ye,it){if(Ye)return Se(Ye);it!=null&&it!==Ke.text&&(Ke.text=it,Ke.escaped=!0),Ie--,Ie===0&&Se()})},0))}),Ie===0&&Se();return}try{var Me=It.lex(He,Le);return Le.walkTokens&&Vt.walkTokens(Me,Le.walkTokens),st.parse(Me,Le)}catch(Ke){if(Ke.message+=`
Please report this to https://github.com/markedjs/marked.`,Le.silent)return"<p>An error occurred:</p><pre>"+Yt(Ke.message+"",!0)+"</pre>";throw Ke}}Vt.options=Vt.setOptions=function(He){return St(Vt.defaults,He),In(Vt.defaults),Vt},Vt.getDefaults=Ht,Vt.defaults=$n,Vt.use=function(He){var Le=St({},He);if(He.renderer&&function(){var te=Vt.defaults.renderer||new Pe,ue=function(Me){var Ke=te[Me];te[Me]=function(){for(var Ye=arguments.length,it=new Array(Ye),pt=0;pt<Ye;pt++)it[pt]=arguments[pt];var Xt=He.renderer[Me].apply(te,it);return Xt===!1&&(Xt=Ke.apply(te,it)),Xt}};for(var Se in He.renderer)ue(Se);Le.renderer=te}(),He.tokenizer&&function(){var te=Vt.defaults.tokenizer||new ct,ue=function(Me){var Ke=te[Me];te[Me]=function(){for(var Ye=arguments.length,it=new Array(Ye),pt=0;pt<Ye;pt++)it[pt]=arguments[pt];var Xt=He.tokenizer[Me].apply(te,it);return Xt===!1&&(Xt=Ke.apply(te,it)),Xt}};for(var Se in He.tokenizer)ue(Se);Le.tokenizer=te}(),He.walkTokens){var De=Vt.defaults.walkTokens;Le.walkTokens=function(te){He.walkTokens(te),De&&De(te)}}Vt.setOptions(Le)},Vt.walkTokens=function(He,Le){for(var De=xe(He),te;!(te=De()).done;){var ue=te.value;switch(Le(ue),ue.type){case"table":{for(var Se=xe(ue.tokens.header),Ie;!(Ie=Se()).done;){var Me=Ie.value;Vt.walkTokens(Me,Le)}for(var Ke=xe(ue.tokens.cells),Ye;!(Ye=Ke()).done;)for(var it=Ye.value,pt=xe(it),Xt;!(Xt=pt()).done;){var hn=Xt.value;Vt.walkTokens(hn,Le)}break}case"list":{Vt.walkTokens(ue.items,Le);break}default:ue.tokens&&Vt.walkTokens(ue.tokens,Le)}}},Vt.parseInline=function(He,Le){if(typeof He=="undefined"||He===null)throw new Error("marked.parseInline(): input parameter is undefined or null");if(typeof He!="string")throw new Error("marked.parseInline(): input parameter is of type "+Object.prototype.toString.call(He)+", string expected");Le=St({},Vt.defaults,Le||{}),en(Le);try{var De=It.lexInline(He,Le);return Le.walkTokens&&Vt.walkTokens(De,Le.walkTokens),st.parseInline(De,Le)}catch(te){if(te.message+=`
Please report this to https://github.com/markedjs/marked.`,Le.silent)return"<p>An error occurred:</p><pre>"+Yt(te.message+"",!0)+"</pre>";throw te}},Vt.Parser=st,Vt.parser=st.parse,Vt.Renderer=Pe,Vt.TextRenderer=wt,Vt.Lexer=It,Vt.lexer=It.lex,Vt.Tokenizer=ct,Vt.Slugger=Lt,Vt.parse=Vt;var vn=Vt;return vn})},11690:function(Xe){const Ge=/[&<>"']/,w=/[&<>"']/g,p=/[<>"']|&(?!#?\w+;)/,Ae=/[<>"']|&(?!#?\w+;)/g,xe={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"},ce=se=>xe[se];function Y(se,we){if(we){if(Ge.test(se))return se.replace(w,ce)}else if(p.test(se))return se.replace(Ae,ce);return se}const m=/&(#(?:\d+)|(?:#x[0-9A-Fa-f]+)|(?:\w+));?/ig;function ve(se){return se.replace(m,(we,de)=>(de=de.toLowerCase(),de==="colon"?":":de.charAt(0)==="#"?de.charAt(1)==="x"?String.fromCharCode(parseInt(de.substring(2),16)):String.fromCharCode(+de.substring(1)):""))}const U=/(^|[^\[])\^/g;function o(se,we){se=se.source||se,we=we||"";const de={replace:(ie,oe)=>(oe=oe.source||oe,oe=oe.replace(U,"$1"),se=se.replace(ie,oe),de),getRegex:()=>new RegExp(se,we)};return de}const X=/[^\w:]/g,L=/^$|^[a-z][a-z0-9+.-]*:|^[?#]/i;function _(se,we,de){if(se){let ie;try{ie=decodeURIComponent(ve(de)).replace(X,"").toLowerCase()}catch(oe){return null}if(ie.indexOf("javascript:")===0||ie.indexOf("vbscript:")===0||ie.indexOf("data:")===0)return null}we&&!L.test(de)&&(de=P(we,de));try{de=encodeURI(de).replace(/%25/g,"%")}catch(ie){return null}return de}const y={},E=/^[^:]+:\/*[^/]*$/,S=/^([^:]+:)[\s\S]*$/,O=/^([^:]+:\/*[^/]*)[\s\S]*$/;function P(se,we){y[" "+se]||(E.test(se)?y[" "+se]=se+"/":y[" "+se]=J(se,"/",!0)),se=y[" "+se];const de=se.indexOf(":")===-1;return we.substring(0,2)==="//"?de?we:se.replace(S,"$1")+we:we.charAt(0)==="/"?de?we:se.replace(O,"$1")+we:se+we}const H={exec:function(){}};function B(se){let we=1,de,ie;for(;we<arguments.length;we++){de=arguments[we];for(ie in de)Object.prototype.hasOwnProperty.call(de,ie)&&(se[ie]=de[ie])}return se}function R(se,we){const de=se.replace(/\|/g,(K,k,V)=>{let $=!1,ae=k;for(;--ae>=0&&V[ae]==="\\";)$=!$;return $?"|":" |"}),ie=de.split(/ \|/);let oe=0;if(ie.length>we)ie.splice(we);else for(;ie.length<we;)ie.push("");for(;oe<ie.length;oe++)ie[oe]=ie[oe].trim().replace(/\\\|/g,"|");return ie}function J(se,we,de){const ie=se.length;if(ie===0)return"";let oe=0;for(;oe<ie;){const K=se.charAt(ie-oe-1);if(K===we&&!de)oe++;else if(K!==we&&de)oe++;else break}return se.substr(0,ie-oe)}function q(se,we){if(se.indexOf(we[1])===-1)return-1;const de=se.length;let ie=0,oe=0;for(;oe<de;oe++)if(se[oe]==="\\")oe++;else if(se[oe]===we[0])ie++;else if(se[oe]===we[1]&&(ie--,ie<0))return oe;return-1}function ge(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 _e(se,we){if(we<1)return"";let de="";for(;we>1;)we&1&&(de+=se),we>>=1,se+=se;return de+se}Xe.exports={escape:Y,unescape:ve,edit:o,cleanUrl:_,resolveUrl:P,noopTest:H,merge:B,splitCells:R,rtrim:J,findClosingBracket:q,checkSanitizeDeprecation:ge,repeatString:_e}},75918:function(Xe,Ge,w){"use strict";w.d(Ge,{Wi:function(){return m},Z0:function(){return ve},aU:function(){return Y},eZ:function(){return o},wY:function(){return U}});var p=w(4348),Ae=w(69323),xe=w(13268),ce=function(X,L,_,y){function E(S){return S instanceof _?S:new _(function(O){O(S)})}return new(_||(_=Promise))(function(S,O){function P(R){try{B(y.next(R))}catch(J){O(J)}}function H(R){try{B(y.throw(R))}catch(J){O(J)}}function B(R){R.done?S(R.value):E(R.value).then(P,H)}B((y=y.apply(X,L||[])).next())})};class Y extends Ae.JT{constructor(L,_="",y="",E=!0,S){super(),this._onDidChange=this._register(new p.Q5),this.onDidChange=this._onDidChange.event,this._enabled=!0,this._id=L,this._label=_,this._cssClass=y,this._enabled=E,this._actionCallback=S}get id(){return this._id}get label(){return this._label}set label(L){this._setLabel(L)}_setLabel(L){this._label!==L&&(this._label=L,this._onDidChange.fire({label:L}))}get tooltip(){return this._tooltip||""}set tooltip(L){this._setTooltip(L)}_setTooltip(L){this._tooltip!==L&&(this._tooltip=L,this._onDidChange.fire({tooltip:L}))}get class(){return this._cssClass}set class(L){this._setClass(L)}_setClass(L){this._cssClass!==L&&(this._cssClass=L,this._onDidChange.fire({class:L}))}get enabled(){return this._enabled}set enabled(L){this._setEnabled(L)}_setEnabled(L){this._enabled!==L&&(this._enabled=L,this._onDidChange.fire({enabled:L}))}get checked(){return this._checked}set checked(L){this._setChecked(L)}_setChecked(L){this._checked!==L&&(this._checked=L,this._onDidChange.fire({checked:L}))}run(L,_){return ce(this,void 0,void 0,function*(){this._actionCallback&&(yield this._actionCallback(L))})}}class m extends Ae.JT{constructor(){super(...arguments),this._onBeforeRun=this._register(new p.Q5),this.onBeforeRun=this._onBeforeRun.event,this._onDidRun=this._register(new p.Q5),this.onDidRun=this._onDidRun.event}run(L,_){return ce(this,void 0,void 0,function*(){if(!L.enabled)return;this._onBeforeRun.fire({action:L});let y;try{yield this.runAction(L,_)}catch(E){y=E}this._onDidRun.fire({action:L,error:y})})}runAction(L,_){return ce(this,void 0,void 0,function*(){yield L.run(_)})}}class ve extends Y{constructor(L){super(ve.ID,L,L?"separator text":"separator"),this.checked=!1,this.enabled=!1}}ve.ID="vs.actions.separator";class U{constructor(L,_,y,E){this.tooltip="",this.enabled=!0,this.checked=!1,this.id=L,this.label=_,this.class=E,this._actions=y}get actions(){return this._actions}dispose(){}run(){return ce(this,void 0,void 0,function*(){})}}class o extends Y{constructor(){super(o.ID,xe.N("submenu.empty","(empty)"),void 0,!1)}}o.ID="vs.actions.empty"},76068:function(Xe,Ge,w){"use strict";w.d(Ge,{ok:function(){return p}});function p(Ae,xe){if(!Ae)throw new Error(xe?`Assertion failed (${xe})`:"Assertion Failed")}},52615:function(Xe,Ge,w){"use strict";w.d(Ge,{CM:function(){return Y},JL:function(){return m},dT:function(){return U},fK:function(){return ce},lA:function(){return ve}});var p=w(4348);class Ae{constructor(){this._icons=new Map,this._onDidRegister=new p.Q5}add(X){const L=this._icons.get(X.id);L?X.description?L.description=X.description:console.error(`Duplicate registration of codicon ${X.id}`):(this._icons.set(X.id,X),this._onDidRegister.fire(X))}get(X){return this._icons.get(X)}get all(){return this._icons.values()}get onDidRegister(){return this._onDidRegister.event}}const xe=new Ae,ce=xe;function Y(o,X){return new ve(o,X)}function m(o){return o?o.replace(/\$\((.*?)\)/g,(X,L)=>` ${L} `).trim():""}class ve{constructor(X,L,_){this.id=X,this.definition=L,this.description=_,xe.add(this)}get classNames(){return"codicon codicon-"+this.id}get classNamesArray(){return["codicon","codicon-"+this.id]}get cssSelector(){return".codicon.codicon-"+this.id}}var U;(function(o){o.iconNameSegment="[A-Za-z0-9]+",o.iconNameExpression="[A-Za-z0-9\\-]+",o.iconModifierExpression="~[A-Za-z]+";const X=new RegExp(`^(${o.iconNameExpression})(${o.iconModifierExpression})?$`);function L(E){if(E instanceof ve)return["codicon","codicon-"+E.id];const S=X.exec(E.id);if(!S)return L(ve.error);let[,O,P]=S;const H=["codicon","codicon-"+O];return P&&H.push("codicon-modifier-"+P.substr(1)),H}o.asClassNameArray=L;function _(E){return L(E).join(" ")}o.asClassName=_;function y(E){return"."+L(E).join(".")}o.asCSSSelector=y})(U||(U={})),function(o){o.add=new o("add",{fontCharacter:"\\ea60"}),o.plus=new o("plus",o.add.definition),o.gistNew=new o("gist-new",o.add.definition),o.repoCreate=new o("repo-create",o.add.definition),o.lightbulb=new o("lightbulb",{fontCharacter:"\\ea61"}),o.lightBulb=new o("light-bulb",{fontCharacter:"\\ea61"}),o.repo=new o("repo",{fontCharacter:"\\ea62"}),o.repoDelete=new o("repo-delete",{fontCharacter:"\\ea62"}),o.gistFork=new o("gist-fork",{fontCharacter:"\\ea63"}),o.repoForked=new o("repo-forked",{fontCharacter:"\\ea63"}),o.gitPullRequest=new o("git-pull-request",{fontCharacter:"\\ea64"}),o.gitPullRequestAbandoned=new o("git-pull-request-abandoned",{fontCharacter:"\\ea64"}),o.recordKeys=new o("record-keys",{fontCharacter:"\\ea65"}),o.keyboard=new o("keyboard",{fontCharacter:"\\ea65"}),o.tag=new o("tag",{fontCharacter:"\\ea66"}),o.tagAdd=new o("tag-add",{fontCharacter:"\\ea66"}),o.tagRemove=new o("tag-remove",{fontCharacter:"\\ea66"}),o.person=new o("person",{fontCharacter:"\\ea67"}),o.personFollow=new o("person-follow",{fontCharacter:"\\ea67"}),o.personOutline=new o("person-outline",{fontCharacter:"\\ea67"}),o.personFilled=new o("person-filled",{fontCharacter:"\\ea67"}),o.gitBranch=new o("git-branch",{fontCharacter:"\\ea68"}),o.gitBranchCreate=new o("git-branch-create",{fontCharacter:"\\ea68"}),o.gitBranchDelete=new o("git-branch-delete",{fontCharacter:"\\ea68"}),o.sourceControl=new o("source-control",{fontCharacter:"\\ea68"}),o.mirror=new o("mirror",{fontCharacter:"\\ea69"}),o.mirrorPublic=new o("mirror-public",{fontCharacter:"\\ea69"}),o.star=new o("star",{fontCharacter:"\\ea6a"}),o.starAdd=new o("star-add",{fontCharacter:"\\ea6a"}),o.starDelete=new o("star-delete",{fontCharacter:"\\ea6a"}),o.starEmpty=new o("star-empty",{fontCharacter:"\\ea6a"}),o.comment=new o("comment",{fontCharacter:"\\ea6b"}),o.commentAdd=new o("comment-add",{fontCharacter:"\\ea6b"}),o.alert=new o("alert",{fontCharacter:"\\ea6c"}),o.warning=new o("warning",{fontCharacter:"\\ea6c"}),o.search=new o("search",{fontCharacter:"\\ea6d"}),o.searchSave=new o("search-save",{fontCharacter:"\\ea6d"}),o.logOut=new o("log-out",{fontCharacter:"\\ea6e"}),o.signOut=new o("sign-out",{fontCharacter:"\\ea6e"}),o.logIn=new o("log-in",{fontCharacter:"\\ea6f"}),o.signIn=new o("sign-in",{fontCharacter:"\\ea6f"}),o.eye=new o("eye",{fontCharacter:"\\ea70"}),o.eyeUnwatch=new o("eye-unwatch",{fontCharacter:"\\ea70"}),o.eyeWatch=new o("eye-watch",{fontCharacter:"\\ea70"}),o.circleFilled=new o("circle-filled",{fontCharacter:"\\ea71"}),o.primitiveDot=new o("primitive-dot",{fontCharacter:"\\ea71"}),o.closeDirty=new o("close-dirty",{fontCharacter:"\\ea71"}),o.debugBreakpoint=new o("debug-breakpoint",{fontCharacter:"\\ea71"}),o.debugBreakpointDisabled=new o("debug-breakpoint-disabled",{fontCharacter:"\\ea71"}),o.debugHint=new o("debug-hint",{fontCharacter:"\\ea71"}),o.primitiveSquare=new o("primitive-square",{fontCharacter:"\\ea72"}),o.edit=new o("edit",{fontCharacter:"\\ea73"}),o.pencil=new o("pencil",{fontCharacter:"\\ea73"}),o.info=new o("info",{fontCharacter:"\\ea74"}),o.issueOpened=new o("issue-opened",{fontCharacter:"\\ea74"}),o.gistPrivate=new o("gist-private",{fontCharacter:"\\ea75"}),o.gitForkPrivate=new o("git-fork-private",{fontCharacter:"\\ea75"}),o.lock=new o("lock",{fontCharacter:"\\ea75"}),o.mirrorPrivate=new o("mirror-private",{fontCharacter:"\\ea75"}),o.close=new o("close",{fontCharacter:"\\ea76"}),o.removeClose=new o("remove-close",{fontCharacter:"\\ea76"}),o.x=new o("x",{fontCharacter:"\\ea76"}),o.repoSync=new o("repo-sync",{fontCharacter:"\\ea77"}),o.sync=new o("sync",{fontCharacter:"\\ea77"}),o.clone=new o("clone",{fontCharacter:"\\ea78"}),o.desktopDownload=new o("desktop-download",{fontCharacter:"\\ea78"}),o.beaker=new o("beaker",{fontCharacter:"\\ea79"}),o.microscope=new o("microscope",{fontCharacter:"\\ea79"}),o.vm=new o("vm",{fontCharacter:"\\ea7a"}),o.deviceDesktop=new o("device-desktop",{fontCharacter:"\\ea7a"}),o.file=new o("file",{fontCharacter:"\\ea7b"}),o.fileText=new o("file-text",{fontCharacter:"\\ea7b"}),o.more=new o("more",{fontCharacter:"\\ea7c"}),o.ellipsis=new o("ellipsis",{fontCharacter:"\\ea7c"}),o.kebabHorizontal=new o("kebab-horizontal",{fontCharacter:"\\ea7c"}),o.mailReply=new o("mail-reply",{fontCharacter:"\\ea7d"}),o.reply=new o("reply",{fontCharacter:"\\ea7d"}),o.organization=new o("organization",{fontCharacter:"\\ea7e"}),o.organizationFilled=new o("organization-filled",{fontCharacter:"\\ea7e"}),o.organizationOutline=new o("organization-outline",{fontCharacter:"\\ea7e"}),o.newFile=new o("new-file",{fontCharacter:"\\ea7f"}),o.fileAdd=new o("file-add",{fontCharacter:"\\ea7f"}),o.newFolder=new o("new-folder",{fontCharacter:"\\ea80"}),o.fileDirectoryCreate=new o("file-directory-create",{fontCharacter:"\\ea80"}),o.trash=new o("trash",{fontCharacter:"\\ea81"}),o.trashcan=new o("trashcan",{fontCharacter:"\\ea81"}),o.history=new o("history",{fontCharacter:"\\ea82"}),o.clock=new o("clock",{fontCharacter:"\\ea82"}),o.folder=new o("folder",{fontCharacter:"\\ea83"}),o.fileDirectory=new o("file-directory",{fontCharacter:"\\ea83"}),o.symbolFolder=new o("symbol-folder",{fontCharacter:"\\ea83"}),o.logoGithub=new o("logo-github",{fontCharacter:"\\ea84"}),o.markGithub=new o("mark-github",{fontCharacter:"\\ea84"}),o.github=new o("github",{fontCharacter:"\\ea84"}),o.terminal=new o("terminal",{fontCharacter:"\\ea85"}),o.console=new o("console",{fontCharacter:"\\ea85"}),o.repl=new o("repl",{fontCharacter:"\\ea85"}),o.zap=new o("zap",{fontCharacter:"\\ea86"}),o.symbolEvent=new o("symbol-event",{fontCharacter:"\\ea86"}),o.error=new o("error",{fontCharacter:"\\ea87"}),o.stop=new o("stop",{fontCharacter:"\\ea87"}),o.variable=new o("variable",{fontCharacter:"\\ea88"}),o.symbolVariable=new o("symbol-variable",{fontCharacter:"\\ea88"}),o.array=new o("array",{fontCharacter:"\\ea8a"}),o.symbolArray=new o("symbol-array",{fontCharacter:"\\ea8a"}),o.symbolModule=new o("symbol-module",{fontCharacter:"\\ea8b"}),o.symbolPackage=new o("symbol-package",{fontCharacter:"\\ea8b"}),o.symbolNamespace=new o("symbol-namespace",{fontCharacter:"\\ea8b"}),o.symbolObject=new o("symbol-object",{fontCharacter:"\\ea8b"}),o.symbolMethod=new o("symbol-method",{fontCharacter:"\\ea8c"}),o.symbolFunction=new o("symbol-function",{fontCharacter:"\\ea8c"}),o.symbolConstructor=new o("symbol-constructor",{fontCharacter:"\\ea8c"}),o.symbolBoolean=new o("symbol-boolean",{fontCharacter:"\\ea8f"}),o.symbolNull=new o("symbol-null",{fontCharacter:"\\ea8f"}),o.symbolNumeric=new o("symbol-numeric",{fontCharacter:"\\ea90"}),o.symbolNumber=new o("symbol-number",{fontCharacter:"\\ea90"}),o.symbolStructure=new o("symbol-structure",{fontCharacter:"\\ea91"}),o.symbolStruct=new o("symbol-struct",{fontCharacter:"\\ea91"}),o.symbolParameter=new o("symbol-parameter",{fontCharacter:"\\ea92"}),o.symbolTypeParameter=new o("symbol-type-parameter",{fontCharacter:"\\ea92"}),o.symbolKey=new o("symbol-key",{fontCharacter:"\\ea93"}),o.symbolText=new o("symbol-text",{fontCharacter:"\\ea93"}),o.symbolReference=new o("symbol-reference",{fontCharacter:"\\ea94"}),o.goToFile=new o("go-to-file",{fontCharacter:"\\ea94"}),o.symbolEnum=new o("symbol-enum",{fontCharacter:"\\ea95"}),o.symbolValue=new o("symbol-value",{fontCharacter:"\\ea95"}),o.symbolRuler=new o("symbol-ruler",{fontCharacter:"\\ea96"}),o.symbolUnit=new o("symbol-unit",{fontCharacter:"\\ea96"}),o.activateBreakpoints=new o("activate-breakpoints",{fontCharacter:"\\ea97"}),o.archive=new o("archive",{fontCharacter:"\\ea98"}),o.arrowBoth=new o("arrow-both",{fontCharacter:"\\ea99"}),o.arrowDown=new o("arrow-down",{fontCharacter:"\\ea9a"}),o.arrowLeft=new o("arrow-left",{fontCharacter:"\\ea9b"}),o.arrowRight=new o("arrow-right",{fontCharacter:"\\ea9c"}),o.arrowSmallDown=new o("arrow-small-down",{fontCharacter:"\\ea9d"}),o.arrowSmallLeft=new o("arrow-small-left",{fontCharacter:"\\ea9e"}),o.arrowSmallRight=new o("arrow-small-right",{fontCharacter:"\\ea9f"}),o.arrowSmallUp=new o("arrow-small-up",{fontCharacter:"\\eaa0"}),o.arrowUp=new o("arrow-up",{fontCharacter:"\\eaa1"}),o.bell=new o("bell",{fontCharacter:"\\eaa2"}),o.bold=new o("bold",{fontCharacter:"\\eaa3"}),o.book=new o("book",{fontCharacter:"\\eaa4"}),o.bookmark=new o("bookmark",{fontCharacter:"\\eaa5"}),o.debugBreakpointConditionalUnverified=new o("debug-breakpoint-conditional-unverified",{fontCharacter:"\\eaa6"}),o.debugBreakpointConditional=new o("debug-breakpoint-conditional",{fontCharacter:"\\eaa7"}),o.debugBreakpointConditionalDisabled=new o("debug-breakpoint-conditional-disabled",{fontCharacter:"\\eaa7"}),o.debugBreakpointDataUnverified=new o("debug-breakpoint-data-unverified",{fontCharacter:"\\eaa8"}),o.debugBreakpointData=new o("debug-breakpoint-data",{fontCharacter:"\\eaa9"}),o.debugBreakpointDataDisabled=new o("debug-breakpoint-data-disabled",{fontCharacter:"\\eaa9"}),o.debugBreakpointLogUnverified=new o("debug-breakpoint-log-unverified",{fontCharacter:"\\eaaa"}),o.debugBreakpointLog=new o("debug-breakpoint-log",{fontCharacter:"\\eaab"}),o.debugBreakpointLogDisabled=new o("debug-breakpoint-log-disabled",{fontCharacter:"\\eaab"}),o.briefcase=new o("briefcase",{fontCharacter:"\\eaac"}),o.broadcast=new o("broadcast",{fontCharacter:"\\eaad"}),o.browser=new o("browser",{fontCharacter:"\\eaae"}),o.bug=new o("bug",{fontCharacter:"\\eaaf"}),o.calendar=new o("calendar",{fontCharacter:"\\eab0"}),o.caseSensitive=new o("case-sensitive",{fontCharacter:"\\eab1"}),o.check=new o("check",{fontCharacter:"\\eab2"}),o.checklist=new o("checklist",{fontCharacter:"\\eab3"}),o.chevronDown=new o("chevron-down",{fontCharacter:"\\eab4"}),o.dropDownButton=new o("drop-down-button",o.chevronDown.definition),o.chevronLeft=new o("chevron-left",{fontCharacter:"\\eab5"}),o.chevronRight=new o("chevron-right",{fontCharacter:"\\eab6"}),o.chevronUp=new o("chevron-up",{fontCharacter:"\\eab7"}),o.chromeClose=new o("chrome-close",{fontCharacter:"\\eab8"}),o.chromeMaximize=new o("chrome-maximize",{fontCharacter:"\\eab9"}),o.chromeMinimize=new o("chrome-minimize",{fontCharacter:"\\eaba"}),o.chromeRestore=new o("chrome-restore",{fontCharacter:"\\eabb"}),o.circleOutline=new o("circle-outline",{fontCharacter:"\\eabc"}),o.debugBreakpointUnverified=new o("debug-breakpoint-unverified",{fontCharacter:"\\eabc"}),o.circleSlash=new o("circle-slash",{fontCharacter:"\\eabd"}),o.circuitBoard=new o("circuit-board",{fontCharacter:"\\eabe"}),o.clearAll=new o("clear-all",{fontCharacter:"\\eabf"}),o.clippy=new o("clippy",{fontCharacter:"\\eac0"}),o.closeAll=new o("close-all",{fontCharacter:"\\eac1"}),o.cloudDownload=new o("cloud-download",{fontCharacter:"\\eac2"}),o.cloudUpload=new o("cloud-upload",{fontCharacter:"\\eac3"}),o.code=new o("code",{fontCharacter:"\\eac4"}),o.collapseAll=new o("collapse-all",{fontCharacter:"\\eac5"}),o.colorMode=new o("color-mode",{fontCharacter:"\\eac6"}),o.commentDiscussion=new o("comment-discussion",{fontCharacter:"\\eac7"}),o.compareChanges=new o("compare-changes",{fontCharacter:"\\eafd"}),o.creditCard=new o("credit-card",{fontCharacter:"\\eac9"}),o.dash=new o("dash",{fontCharacter:"\\eacc"}),o.dashboard=new o("dashboard",{fontCharacter:"\\eacd"}),o.database=new o("database",{fontCharacter:"\\eace"}),o.debugContinue=new o("debug-continue",{fontCharacter:"\\eacf"}),o.debugDisconnect=new o("debug-disconnect",{fontCharacter:"\\ead0"}),o.debugPause=new o("debug-pause",{fontCharacter:"\\ead1"}),o.debugRestart=new o("debug-restart",{fontCharacter:"\\ead2"}),o.debugStart=new o("debug-start",{fontCharacter:"\\ead3"}),o.debugStepInto=new o("debug-step-into",{fontCharacter:"\\ead4"}),o.debugStepOut=new o("debug-step-out",{fontCharacter:"\\ead5"}),o.debugStepOver=new o("debug-step-over",{fontCharacter:"\\ead6"}),o.debugStop=new o("debug-stop",{fontCharacter:"\\ead7"}),o.debug=new o("debug",{fontCharacter:"\\ead8"}),o.deviceCameraVideo=new o("device-camera-video",{fontCharacter:"\\ead9"}),o.deviceCamera=new o("device-camera",{fontCharacter:"\\eada"}),o.deviceMobile=new o("device-mobile",{fontCharacter:"\\eadb"}),o.diffAdded=new o("diff-added",{fontCharacter:"\\eadc"}),o.diffIgnored=new o("diff-ignored",{fontCharacter:"\\eadd"}),o.diffModified=new o("diff-modified",{fontCharacter:"\\eade"}),o.diffRemoved=new o("diff-removed",{fontCharacter:"\\eadf"}),o.diffRenamed=new o("diff-renamed",{fontCharacter:"\\eae0"}),o.diff=new o("diff",{fontCharacter:"\\eae1"}),o.discard=new o("discard",{fontCharacter:"\\eae2"}),o.editorLayout=new o("editor-layout",{fontCharacter:"\\eae3"}),o.emptyWindow=new o("empty-window",{fontCharacter:"\\eae4"}),o.exclude=new o("exclude",{fontCharacter:"\\eae5"}),o.extensions=new o("extensions",{fontCharacter:"\\eae6"}),o.eyeClosed=new o("eye-closed",{fontCharacter:"\\eae7"}),o.fileBinary=new o("file-binary",{fontCharacter:"\\eae8"}),o.fileCode=new o("file-code",{fontCharacter:"\\eae9"}),o.fileMedia=new o("file-media",{fontCharacter:"\\eaea"}),o.filePdf=new o("file-pdf",{fontCharacter:"\\eaeb"}),o.fileSubmodule=new o("file-submodule",{fontCharacter:"\\eaec"}),o.fileSymlinkDirectory=new o("file-symlink-directory",{fontCharacter:"\\eaed"}),o.fileSymlinkFile=new o("file-symlink-file",{fontCharacter:"\\eaee"}),o.fileZip=new o("file-zip",{fontCharacter:"\\eaef"}),o.files=new o("files",{fontCharacter:"\\eaf0"}),o.filter=new o("filter",{fontCharacter:"\\eaf1"}),o.flame=new o("flame",{fontCharacter:"\\eaf2"}),o.foldDown=new o("fold-down",{fontCharacter:"\\eaf3"}),o.foldUp=new o("fold-up",{fontCharacter:"\\eaf4"}),o.fold=new o("fold",{fontCharacter:"\\eaf5"}),o.folderActive=new o("folder-active",{fontCharacter:"\\eaf6"}),o.folderOpened=new o("folder-opened",{fontCharacter:"\\eaf7"}),o.gear=new o("gear",{fontCharacter:"\\eaf8"}),o.gift=new o("gift",{fontCharacter:"\\eaf9"}),o.gistSecret=new o("gist-secret",{fontCharacter:"\\eafa"}),o.gist=new o("gist",{fontCharacter:"\\eafb"}),o.gitCommit=new o("git-commit",{fontCharacter:"\\eafc"}),o.gitCompare=new o("git-compare",{fontCharacter:"\\eafd"}),o.gitMerge=new o("git-merge",{fontCharacter:"\\eafe"}),o.githubAction=new o("github-action",{fontCharacter:"\\eaff"}),o.githubAlt=new o("github-alt",{fontCharacter:"\\eb00"}),o.globe=new o("globe",{fontCharacter:"\\eb01"}),o.grabber=new o("grabber",{fontCharacter:"\\eb02"}),o.graph=new o("graph",{fontCharacter:"\\eb03"}),o.gripper=new o("gripper",{fontCharacter:"\\eb04"}),o.heart=new o("heart",{fontCharacter:"\\eb05"}),o.home=new o("home",{fontCharacter:"\\eb06"}),o.horizontalRule=new o("horizontal-rule",{fontCharacter:"\\eb07"}),o.hubot=new o("hubot",{fontCharacter:"\\eb08"}),o.inbox=new o("inbox",{fontCharacter:"\\eb09"}),o.issueClosed=new o("issue-closed",{fontCharacter:"\\eba4"}),o.issueReopened=new o("issue-reopened",{fontCharacter:"\\eb0b"}),o.issues=new o("issues",{fontCharacter:"\\eb0c"}),o.italic=new o("italic",{fontCharacter:"\\eb0d"}),o.jersey=new o("jersey",{fontCharacter:"\\eb0e"}),o.json=new o("json",{fontCharacter:"\\eb0f"}),o.kebabVertical=new o("kebab-vertical",{fontCharacter:"\\eb10"}),o.key=new o("key",{fontCharacter:"\\eb11"}),o.law=new o("law",{fontCharacter:"\\eb12"}),o.lightbulbAutofix=new o("lightbulb-autofix",{fontCharacter:"\\eb13"}),o.linkExternal=new o("link-external",{fontCharacter:"\\eb14"}),o.link=new o("link",{fontCharacter:"\\eb15"}),o.listOrdered=new o("list-ordered",{fontCharacter:"\\eb16"}),o.listUnordered=new o("list-unordered",{fontCharacter:"\\eb17"}),o.liveShare=new o("live-share",{fontCharacter:"\\eb18"}),o.loading=new o("loading",{fontCharacter:"\\eb19"}),o.location=new o("location",{fontCharacter:"\\eb1a"}),o.mailRead=new o("mail-read",{fontCharacter:"\\eb1b"}),o.mail=new o("mail",{fontCharacter:"\\eb1c"}),o.markdown=new o("markdown",{fontCharacter:"\\eb1d"}),o.megaphone=new o("megaphone",{fontCharacter:"\\eb1e"}),o.mention=new o("mention",{fontCharacter:"\\eb1f"}),o.milestone=new o("milestone",{fontCharacter:"\\eb20"}),o.mortarBoard=new o("mortar-board",{fontCharacter:"\\eb21"}),o.move=new o("move",{fontCharacter:"\\eb22"}),o.multipleWindows=new o("multiple-windows",{fontCharacter:"\\eb23"}),o.mute=new o("mute",{fontCharacter:"\\eb24"}),o.noNewline=new o("no-newline",{fontCharacter:"\\eb25"}),o.note=new o("note",{fontCharacter:"\\eb26"}),o.octoface=new o("octoface",{fontCharacter:"\\eb27"}),o.openPreview=new o("open-preview",{fontCharacter:"\\eb28"}),o.package_=new o("package",{fontCharacter:"\\eb29"}),o.paintcan=new o("paintcan",{fontCharacter:"\\eb2a"}),o.pin=new o("pin",{fontCharacter:"\\eb2b"}),o.play=new o("play",{fontCharacter:"\\eb2c"}),o.run=new o("run",{fontCharacter:"\\eb2c"}),o.plug=new o("plug",{fontCharacter:"\\eb2d"}),o.preserveCase=new o("preserve-case",{fontCharacter:"\\eb2e"}),o.preview=new o("preview",{fontCharacter:"\\eb2f"}),o.project=new o("project",{fontCharacter:"\\eb30"}),o.pulse=new o("pulse",{fontCharacter:"\\eb31"}),o.question=new o("question",{fontCharacter:"\\eb32"}),o.quote=new o("quote",{fontCharacter:"\\eb33"}),o.radioTower=new o("radio-tower",{fontCharacter:"\\eb34"}),o.reactions=new o("reactions",{fontCharacter:"\\eb35"}),o.references=new o("references",{fontCharacter:"\\eb36"}),o.refresh=new o("refresh",{fontCharacter:"\\eb37"}),o.regex=new o("regex",{fontCharacter:"\\eb38"}),o.remoteExplorer=new o("remote-explorer",{fontCharacter:"\\eb39"}),o.remote=new o("remote",{fontCharacter:"\\eb3a"}),o.remove=new o("remove",{fontCharacter:"\\eb3b"}),o.replaceAll=new o("replace-all",{fontCharacter:"\\eb3c"}),o.replace=new o("replace",{fontCharacter:"\\eb3d"}),o.repoClone=new o("repo-clone",{fontCharacter:"\\eb3e"}),o.repoForcePush=new o("repo-force-push",{fontCharacter:"\\eb3f"}),o.repoPull=new o("repo-pull",{fontCharacter:"\\eb40"}),o.repoPush=new o("repo-push",{fontCharacter:"\\eb41"}),o.report=new o("report",{fontCharacter:"\\eb42"}),o.requestChanges=new o("request-changes",{fontCharacter:"\\eb43"}),o.rocket=new o("rocket",{fontCharacter:"\\eb44"}),o.rootFolderOpened=new o("root-folder-opened",{fontCharacter:"\\eb45"}),o.rootFolder=new o("root-folder",{fontCharacter:"\\eb46"}),o.rss=new o("rss",{fontCharacter:"\\eb47"}),o.ruby=new o("ruby",{fontCharacter:"\\eb48"}),o.saveAll=new o("save-all",{fontCharacter:"\\eb49"}),o.saveAs=new o("save-as",{fontCharacter:"\\eb4a"}),o.save=new o("save",{fontCharacter:"\\eb4b"}),o.screenFull=new o("screen-full",{fontCharacter:"\\eb4c"}),o.screenNormal=new o("screen-normal",{fontCharacter:"\\eb4d"}),o.searchStop=new o("search-stop",{fontCharacter:"\\eb4e"}),o.server=new o("server",{fontCharacter:"\\eb50"}),o.settingsGear=new o("settings-gear",{fontCharacter:"\\eb51"}),o.settings=new o("settings",{fontCharacter:"\\eb52"}),o.shield=new o("shield",{fontCharacter:"\\eb53"}),o.smiley=new o("smiley",{fontCharacter:"\\eb54"}),o.sortPrecedence=new o("sort-precedence",{fontCharacter:"\\eb55"}),o.splitHorizontal=new o("split-horizontal",{fontCharacter:"\\eb56"}),o.splitVertical=new o("split-vertical",{fontCharacter:"\\eb57"}),o.squirrel=new o("squirrel",{fontCharacter:"\\eb58"}),o.starFull=new o("star-full",{fontCharacter:"\\eb59"}),o.starHalf=new o("star-half",{fontCharacter:"\\eb5a"}),o.symbolClass=new o("symbol-class",{fontCharacter:"\\eb5b"}),o.symbolColor=new o("symbol-color",{fontCharacter:"\\eb5c"}),o.symbolConstant=new o("symbol-constant",{fontCharacter:"\\eb5d"}),o.symbolEnumMember=new o("symbol-enum-member",{fontCharacter:"\\eb5e"}),o.symbolField=new o("symbol-field",{fontCharacter:"\\eb5f"}),o.symbolFile=new o("symbol-file",{fontCharacter:"\\eb60"}),o.symbolInterface=new o("symbol-interface",{fontCharacter:"\\eb61"}),o.symbolKeyword=new o("symbol-keyword",{fontCharacter:"\\eb62"}),o.symbolMisc=new o("symbol-misc",{fontCharacter:"\\eb63"}),o.symbolOperator=new o("symbol-operator",{fontCharacter:"\\eb64"}),o.symbolProperty=new o("symbol-property",{fontCharacter:"\\eb65"}),o.wrench=new o("wrench",{fontCharacter:"\\eb65"}),o.wrenchSubaction=new o("wrench-subaction",{fontCharacter:"\\eb65"}),o.symbolSnippet=new o("symbol-snippet",{fontCharacter:"\\eb66"}),o.tasklist=new o("tasklist",{fontCharacter:"\\eb67"}),o.telescope=new o("telescope",{fontCharacter:"\\eb68"}),o.textSize=new o("text-size",{fontCharacter:"\\eb69"}),o.threeBars=new o("three-bars",{fontCharacter:"\\eb6a"}),o.thumbsdown=new o("thumbsdown",{fontCharacter:"\\eb6b"}),o.thumbsup=new o("thumbsup",{fontCharacter:"\\eb6c"}),o.tools=new o("tools",{fontCharacter:"\\eb6d"}),o.triangleDown=new o("triangle-down",{fontCharacter:"\\eb6e"}),o.triangleLeft=new o("triangle-left",{fontCharacter:"\\eb6f"}),o.triangleRight=new o("triangle-right",{fontCharacter:"\\eb70"}),o.triangleUp=new o("triangle-up",{fontCharacter:"\\eb71"}),o.twitter=new o("twitter",{fontCharacter:"\\eb72"}),o.unfold=new o("unfold",{fontCharacter:"\\eb73"}),o.unlock=new o("unlock",{fontCharacter:"\\eb74"}),o.unmute=new o("unmute",{fontCharacter:"\\eb75"}),o.unverified=new o("unverified",{fontCharacter:"\\eb76"}),o.verified=new o("verified",{fontCharacter:"\\eb77"}),o.versions=new o("versions",{fontCharacter:"\\eb78"}),o.vmActive=new o("vm-active",{fontCharacter:"\\eb79"}),o.vmOutline=new o("vm-outline",{fontCharacter:"\\eb7a"}),o.vmRunning=new o("vm-running",{fontCharacter:"\\eb7b"}),o.watch=new o("watch",{fontCharacter:"\\eb7c"}),o.whitespace=new o("whitespace",{fontCharacter:"\\eb7d"}),o.wholeWord=new o("whole-word",{fontCharacter:"\\eb7e"}),o.window=new o("window",{fontCharacter:"\\eb7f"}),o.wordWrap=new o("word-wrap",{fontCharacter:"\\eb80"}),o.zoomIn=new o("zoom-in",{fontCharacter:"\\eb81"}),o.zoomOut=new o("zoom-out",{fontCharacter:"\\eb82"}),o.listFilter=new o("list-filter",{fontCharacter:"\\eb83"}),o.listFlat=new o("list-flat",{fontCharacter:"\\eb84"}),o.listSelection=new o("list-selection",{fontCharacter:"\\eb85"}),o.selection=new o("selection",{fontCharacter:"\\eb85"}),o.listTree=new o("list-tree",{fontCharacter:"\\eb86"}),o.debugBreakpointFunctionUnverified=new o("debug-breakpoint-function-unverified",{fontCharacter:"\\eb87"}),o.debugBreakpointFunction=new o("debug-breakpoint-function",{fontCharacter:"\\eb88"}),o.debugBreakpointFunctionDisabled=new o("debug-breakpoint-function-disabled",{fontCharacter:"\\eb88"}),o.debugStackframeActive=new o("debug-stackframe-active",{fontCharacter:"\\eb89"}),o.debugStackframeDot=new o("debug-stackframe-dot",{fontCharacter:"\\eb8a"}),o.debugStackframe=new o("debug-stackframe",{fontCharacter:"\\eb8b"}),o.debugStackframeFocused=new o("debug-stackframe-focused",{fontCharacter:"\\eb8b"}),o.debugBreakpointUnsupported=new o("debug-breakpoint-unsupported",{fontCharacter:"\\eb8c"}),o.symbolString=new o("symbol-string",{fontCharacter:"\\eb8d"}),o.debugReverseContinue=new o("debug-reverse-continue",{fontCharacter:"\\eb8e"}),o.debugStepBack=new o("debug-step-back",{fontCharacter:"\\eb8f"}),o.debugRestartFrame=new o("debug-restart-frame",{fontCharacter:"\\eb90"}),o.callIncoming=new o("call-incoming",{fontCharacter:"\\eb92"}),o.callOutgoing=new o("call-outgoing",{fontCharacter:"\\eb93"}),o.menu=new o("menu",{fontCharacter:"\\eb94"}),o.expandAll=new o("expand-all",{fontCharacter:"\\eb95"}),o.feedback=new o("feedback",{fontCharacter:"\\eb96"}),o.groupByRefType=new o("group-by-ref-type",{fontCharacter:"\\eb97"}),o.ungroupByRefType=new o("ungroup-by-ref-type",{fontCharacter:"\\eb98"}),o.account=new o("account",{fontCharacter:"\\eb99"}),o.bellDot=new o("bell-dot",{fontCharacter:"\\eb9a"}),o.debugConsole=new o("debug-console",{fontCharacter:"\\eb9b"}),o.library=new o("library",{fontCharacter:"\\eb9c"}),o.output=new o("output",{fontCharacter:"\\eb9d"}),o.runAll=new o("run-all",{fontCharacter:"\\eb9e"}),o.syncIgnored=new o("sync-ignored",{fontCharacter:"\\eb9f"}),o.pinned=new o("pinned",{fontCharacter:"\\eba0"}),o.githubInverted=new o("github-inverted",{fontCharacter:"\\eba1"}),o.debugAlt=new o("debug-alt",{fontCharacter:"\\eb91"}),o.serverProcess=new o("server-process",{fontCharacter:"\\eba2"}),o.serverEnvironment=new o("server-environment",{fontCharacter:"\\eba3"}),o.pass=new o("pass",{fontCharacter:"\\eba4"}),o.stopCircle=new o("stop-circle",{fontCharacter:"\\eba5"}),o.playCircle=new o("play-circle",{fontCharacter:"\\eba6"}),o.record=new o("record",{fontCharacter:"\\eba7"}),o.debugAltSmall=new o("debug-alt-small",{fontCharacter:"\\eba8"}),o.vmConnect=new o("vm-connect",{fontCharacter:"\\eba9"}),o.cloud=new o("cloud",{fontCharacter:"\\ebaa"}),o.merge=new o("merge",{fontCharacter:"\\ebab"}),o.exportIcon=new o("export",{fontCharacter:"\\ebac"}),o.graphLeft=new o("graph-left",{fontCharacter:"\\ebad"}),o.magnet=new o("magnet",{fontCharacter:"\\ebae"}),o.notebook=new o("notebook",{fontCharacter:"\\ebaf"}),o.redo=new o("redo",{fontCharacter:"\\ebb0"}),o.checkAll=new o("check-all",{fontCharacter:"\\ebb1"}),o.pinnedDirty=new o("pinned-dirty",{fontCharacter:"\\ebb2"}),o.passFilled=new o("pass-filled",{fontCharacter:"\\ebb3"}),o.circleLargeFilled=new o("circle-large-filled",{fontCharacter:"\\ebb4"}),o.circleLargeOutline=new o("circle-large-outline",{fontCharacter:"\\ebb5"}),o.combine=new o("combine",{fontCharacter:"\\ebb6"}),o.gather=new o("gather",{fontCharacter:"\\ebb6"}),o.table=new o("table",{fontCharacter:"\\ebb7"}),o.variableGroup=new o("variable-group",{fontCharacter:"\\ebb8"}),o.typeHierarchy=new o("type-hierarchy",{fontCharacter:"\\ebb9"}),o.typeHierarchySub=new o("type-hierarchy-sub",{fontCharacter:"\\ebba"}),o.typeHierarchySuper=new o("type-hierarchy-super",{fontCharacter:"\\ebbb"}),o.gitPullRequestCreate=new o("git-pull-request-create",{fontCharacter:"\\ebbc"}),o.runAbove=new o("run-above",{fontCharacter:"\\ebbd"}),o.runBelow=new o("run-below",{fontCharacter:"\\ebbe"}),o.notebookTemplate=new o("notebook-template",{fontCharacter:"\\ebbf"}),o.debugRerun=new o("debug-rerun",{fontCharacter:"\\ebc0"}),o.workspaceTrusted=new o("workspace-trusted",{fontCharacter:"\\ebc1"}),o.workspaceUntrusted=new o("workspace-untrusted",{fontCharacter:"\\ebc2"}),o.workspaceUnspecified=new o("workspace-unspecified",{fontCharacter:"\\ebc3"}),o.terminalCmd=new o("terminal-cmd",{fontCharacter:"\\ebc4"}),o.terminalDebian=new o("terminal-debian",{fontCharacter:"\\ebc5"}),o.terminalLinux=new o("terminal-linux",{fontCharacter:"\\ebc6"}),o.terminalPowershell=new o("terminal-powershell",{fontCharacter:"\\ebc7"}),o.terminalTmux=new o("terminal-tmux",{fontCharacter:"\\ebc8"}),o.terminalUbuntu=new o("terminal-ubuntu",{fontCharacter:"\\ebc9"}),o.terminalBash=new o("terminal-bash",{fontCharacter:"\\ebca"}),o.arrowSwap=new o("arrow-swap",{fontCharacter:"\\ebcb"}),o.copy=new o("copy",{fontCharacter:"\\ebcc"}),o.personAdd=new o("person-add",{fontCharacter:"\\ebcd"}),o.filterFilled=new o("filter-filled",{fontCharacter:"\\ebce"}),o.wand=new o("wand",{fontCharacter:"\\ebcf"}),o.debugLineByLine=new o("debug-line-by-line",{fontCharacter:"\\ebd0"}),o.inspect=new o("inspect",{fontCharacter:"\\ebd1"}),o.layers=new o("layers",{fontCharacter:"\\ebd2"}),o.layersDot=new o("layers-dot",{fontCharacter:"\\ebd3"}),o.layersActive=new o("layers-active",{fontCharacter:"\\ebd4"}),o.compass=new o("compass",{fontCharacter:"\\ebd5"}),o.compassDot=new o("compass-dot",{fontCharacter:"\\ebd6"}),o.compassActive=new o("compass-active",{fontCharacter:"\\ebd7"}),o.azure=new o("azure",{fontCharacter:"\\ebd8"}),o.issueDraft=new o("issue-draft",{fontCharacter:"\\ebd9"}),o.gitPullRequestClosed=new o("git-pull-request-closed",{fontCharacter:"\\ebda"}),o.gitPullRequestDraft=new o("git-pull-request-draft",{fontCharacter:"\\ebdb"}),o.debugAll=new o("debug-all",{fontCharacter:"\\ebdc"}),o.debugCoverage=new o("debug-coverage",{fontCharacter:"\\ebdd"}),o.runErrors=new o("run-errors",{fontCharacter:"\\ebde"}),o.folderLibrary=new o("folder-library",{fontCharacter:"\\ebdf"}),o.debugContinueSmall=new o("debug-continue-small",{fontCharacter:"\\ebe0"}),o.beakerStop=new o("beaker-stop",{fontCharacter:"\\ebe1"}),o.graphLine=new o("graph-line",{fontCharacter:"\\ebe2"}),o.graphScatter=new o("graph-scatter",{fontCharacter:"\\ebe3"}),o.pieChart=new o("pie-chart",{fontCharacter:"\\ebe4"}),o.bracket=new o("bracket",o.json.definition),o.bracketDot=new o("bracket-dot",{fontCharacter:"\\ebe5"}),o.bracketError=new o("bracket-error",{fontCharacter:"\\ebe6"}),o.lockSmall=new o("lock-small",{fontCharacter:"\\ebe7"}),o.azureDevops=new o("azure-devops",{fontCharacter:"\\ebe8"}),o.verifiedFilled=new o("verified-filled",{fontCharacter:"\\ebe9"})}(ve||(ve={}))},79881:function(Xe,Ge,w){"use strict";w.d(Ge,{B8:function(){return L},Cp:function(){return ce},F0:function(){return U},L6:function(){return X},VV:function(){return ve},b1:function(){return o},dL:function(){return xe},ri:function(){return Y}});class p{constructor(){this.listeners=[],this.unexpectedErrorHandler=function(y){setTimeout(()=>{throw y.stack?new Error(y.message+`
`+y.stack):y},0)}}emit(y){this.listeners.forEach(E=>{E(y)})}onUnexpectedError(y){this.unexpectedErrorHandler(y),this.emit(y)}onUnexpectedExternalError(y){this.unexpectedErrorHandler(y)}}const Ae=new p;function xe(_){ve(_)||Ae.onUnexpectedError(_)}function ce(_){ve(_)||Ae.onUnexpectedExternalError(_)}function Y(_){if(_ instanceof Error){let{name:y,message:E}=_;const S=_.stacktrace||_.stack;return{$isError:!0,name:y,message:E,stack:S}}return _}const m="Canceled";function ve(_){return _ instanceof Error&&_.name===m&&_.message===m}function U(){const _=new Error(m);return _.name=_.message,_}function o(_){return _?new Error(`Illegal argument: ${_}`):new Error("Illegal argument")}function X(_){return _?new Error(`Illegal state: ${_}`):new Error("Illegal state")}class L extends Error{constructor(y){super("NotSupported"),y&&(this.message=y)}}},4348:function(Xe,Ge,w){"use strict";w.d(Ge,{D0:function(){return L},E7:function(){return _},K3:function(){return X},Q5:function(){return o},ZD:function(){return y},ju:function(){return Y}});var p=w(79881),Ae=w(69323),xe=w(34502),ce=w(95830),Y;(function(E){E.None=()=>Ae.JT.None;function S(V){return($,ae=null,re)=>{let x=!1,b;return b=V(W=>{if(!x)return b?b.dispose():x=!0,$.call(ae,W)},null,re),x&&b.dispose(),b}}E.once=S;function O(V,$){return q((ae,re=null,x)=>V(b=>ae.call(re,$(b)),null,x))}E.map=O;function P(V,$){return q((ae,re=null,x)=>V(b=>{$(b),ae.call(re,b)},null,x))}E.forEach=P;function H(V,$){return q((ae,re=null,x)=>V(b=>$(b)&&ae.call(re,b),null,x))}E.filter=H;function B(V){return V}E.signal=B;function R(...V){return($,ae=null,re)=>(0,Ae.F8)(...V.map(x=>x(b=>$.call(ae,b),null,re)))}E.any=R;function J(V,$,ae){let re=ae;return O(V,x=>(re=$(re,x),re))}E.reduce=J;function q(V){let $;const ae=new o({onFirstListenerAdd(){$=V(ae.fire,ae)},onLastListenerRemove(){$.dispose()}});return ae.event}function ge(V,$,ae=100,re=!1,x){let b,W,fe,ke=0;const je=new o({leakWarningThreshold:x,onFirstListenerAdd(){b=V(yt=>{ke++,W=$(W,yt),re&&!fe&&(je.fire(W),W=void 0),clearTimeout(fe),fe=setTimeout(()=>{const ht=W;W=void 0,fe=void 0,(!re||ke>1)&&je.fire(ht),ke=0},ae)})},onLastListenerRemove(){b.dispose()}});return je.event}E.debounce=ge;function _e(V,$=(ae,re)=>ae===re){let ae=!0,re;return H(V,x=>{const b=ae||!$(x,re);return ae=!1,re=x,b})}E.latch=_e;function se(V,$){return[E.filter(V,$),E.filter(V,ae=>!$(ae))]}E.split=se;function we(V,$=!1,ae=[]){let re=ae.slice(),x=V(fe=>{re?re.push(fe):W.fire(fe)});const b=()=>{re&&re.forEach(fe=>W.fire(fe)),re=null},W=new o({onFirstListenerAdd(){x||(x=V(fe=>W.fire(fe)))},onFirstListenerDidAdd(){re&&($?setTimeout(b):b())},onLastListenerRemove(){x&&x.dispose(),x=null}});return W.event}E.buffer=we;class de{constructor($){this.event=$}map($){return new de(O(this.event,$))}forEach($){return new de(P(this.event,$))}filter($){return new de(H(this.event,$))}reduce($,ae){return new de(J(this.event,$,ae))}latch(){return new de(_e(this.event))}debounce($,ae=100,re=!1,x){return new de(ge(this.event,$,ae,re,x))}on($,ae,re){return this.event($,ae,re)}once($,ae,re){return S(this.event)($,ae,re)}}function ie(V){return new de(V)}E.chain=ie;function oe(V,$,ae=re=>re){const re=(...fe)=>W.fire(ae(...fe)),x=()=>V.on($,re),b=()=>V.removeListener($,re),W=new o({onFirstListenerAdd:x,onLastListenerRemove:b});return W.event}E.fromNodeEventEmitter=oe;function K(V,$,ae=re=>re){const re=(...fe)=>W.fire(ae(...fe)),x=()=>V.addEventListener($,re),b=()=>V.removeEventListener($,re),W=new o({onFirstListenerAdd:x,onLastListenerRemove:b});return W.event}E.fromDOMEventEmitter=K;function k(V){return new Promise($=>S(V)($))}E.toPromise=k})(Y||(Y={}));class m{constructor(S){this._listenerCount=0,this._invocationCount=0,this._elapsedOverall=0,this._name=`${S}_${m._idPool++}`}start(S){this._stopWatch=new ce.G(!0),this._listenerCount=S}stop(){if(this._stopWatch){const S=this._stopWatch.elapsed();this._elapsedOverall+=S,this._invocationCount+=1,console.info(`did FIRE ${this._name}: elapsed_ms: ${S.toFixed(5)}, listener: ${this._listenerCount} (elapsed_overall: ${this._elapsedOverall.toFixed(2)}, invocations: ${this._invocationCount})`),this._stopWatch=void 0}}}m._idPool=0;let ve=-1;class U{constructor(S,O=Math.random().toString(18).slice(2,5)){this.customThreshold=S,this.name=O,this._warnCountdown=0}dispose(){this._stacks&&this._stacks.clear()}check(S){let O=ve;if(typeof this.customThreshold=="number"&&(O=this.customThreshold),O<=0||S<O)return;this._stacks||(this._stacks=new Map);const P=new Error().stack.split(`
`).slice(3).join(`
`),H=this._stacks.get(P)||0;if(this._stacks.set(P,H+1),this._warnCountdown-=1,this._warnCountdown<=0){this._warnCountdown=O*.5;let B,R=0;for(const[J,q]of this._stacks)(!B||R<q)&&(B=J,R=q);console.warn(`[${this.name}] potential listener LEAK detected, having ${S} listeners already. MOST frequent listener (${R}):`),console.warn(B)}return()=>{const B=this._stacks.get(P)||0;this._stacks.set(P,B-1)}}}class o{constructor(S){var O;this._disposed=!1,this._options=S,this._leakageMon=ve>0?new U(this._options&&this._options.leakWarningThreshold):void 0,this._perfMon=!((O=this._options)===null||O===void 0)&&O._profName?new m(this._options._profName):void 0}get event(){return this._event||(this._event=(S,O,P)=>{var H;this._listeners||(this._listeners=new xe.S);const B=this._listeners.isEmpty();B&&this._options&&this._options.onFirstListenerAdd&&this._options.onFirstListenerAdd(this);const R=this._listeners.push(O?[S,O]:S);B&&this._options&&this._options.onFirstListenerDidAdd&&this._options.onFirstListenerDidAdd(this),this._options&&this._options.onListenerDidAdd&&this._options.onListenerDidAdd(this,S,O);const J=(H=this._leakageMon)===null||H===void 0?void 0:H.check(this._listeners.size),q=(0,Ae.OF)(()=>{J&&J(),this._disposed||(R(),this._options&&this._options.onLastListenerRemove&&(this._listeners&&!this._listeners.isEmpty()||this._options.onLastListenerRemove(this)))});return P instanceof Ae.SL?P.add(q):Array.isArray(P)&&P.push(q),q}),this._event}fire(S){var O,P;if(this._listeners){this._deliveryQueue||(this._deliveryQueue=new xe.S);for(let H of this._listeners)this._deliveryQueue.push([H,S]);for((O=this._perfMon)===null||O===void 0||O.start(this._deliveryQueue.size);this._deliveryQueue.size>0;){const[H,B]=this._deliveryQueue.shift();try{typeof H=="function"?H.call(void 0,B):H[0].call(H[1],B)}catch(R){(0,p.dL)(R)}}(P=this._perfMon)===null||P===void 0||P.stop()}}dispose(){var S,O,P,H,B;this._disposed||(this._disposed=!0,(S=this._listeners)===null||S===void 0||S.clear(),(O=this._deliveryQueue)===null||O===void 0||O.clear(),(H=(P=this._options)===null||P===void 0?void 0:P.onLastListenerRemove)===null||H===void 0||H.call(P),(B=this._leakageMon)===null||B===void 0||B.dispose())}}class X extends o{constructor(S){super(S),this._isPaused=0,this._eventQueue=new xe.S,this._mergeFn=S==null?void 0:S.merge}pause(){this._isPaused++}resume(){if(this._isPaused!==0&&--this._isPaused===0)if(this._mergeFn){const S=Array.from(this._eventQueue);this._eventQueue.clear(),super.fire(this._mergeFn(S))}else for(;!this._isPaused&&this._eventQueue.size!==0;)super.fire(this._eventQueue.shift())}fire(S){this._listeners&&(this._isPaused!==0?this._eventQueue.push(S):super.fire(S))}}class L extends X{constructor(S){var O;super(S),this._delay=(O=S.delay)!==null&&O!==void 0?O:100}fire(S){this._handle||(this.pause(),this._handle=setTimeout(()=>{this._handle=void 0,this.resume()},this._delay)),super.fire(S)}}class _{constructor(){this.buffers=[]}wrapEvent(S){return(O,P,H)=>S(B=>{const R=this.buffers[this.buffers.length-1];R?R.push(()=>O.call(P,B)):O.call(P,B)},void 0,H)}bufferEvents(S){const O=[];this.buffers.push(O);const P=S();return this.buffers.pop(),O.forEach(H=>H()),P}}class y{constructor(){this.listening=!1,this.inputEvent=Y.None,this.inputEventListener=Ae.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(S){this.inputEvent=S,this.listening&&(this.inputEventListener.dispose(),this.inputEventListener=S(this.emitter.fire,this.emitter))}dispose(){this.inputEventListener.dispose(),this.emitter.dispose()}}},17845:function(Xe,Ge,w){"use strict";w.d(Ge,{I:function(){return p}});function p(Ae){const xe=this;let ce=!1,Y;return function(){return ce||(ce=!0,Y=Ae.apply(xe,arguments)),Y}}},88226:function(Xe,Ge,w){"use strict";w.d(Ge,{$:function(){return p}});var p;(function(Ae){function xe(R){return R&&typeof R=="object"&&typeof R[Symbol.iterator]=="function"}Ae.is=xe;const ce=Object.freeze([]);function Y(){return ce}Ae.empty=Y;function*m(R){yield R}Ae.single=m;function ve(R){return R||ce}Ae.from=ve;function U(R){return!R||R[Symbol.iterator]().next().done===!0}Ae.isEmpty=U;function o(R){return R[Symbol.iterator]().next().value}Ae.first=o;function X(R,J){for(const q of R)if(J(q))return!0;return!1}Ae.some=X;function L(R,J){for(const q of R)if(J(q))return q}Ae.find=L;function*_(R,J){for(const q of R)J(q)&&(yield q)}Ae.filter=_;function*y(R,J){let q=0;for(const ge of R)yield J(ge,q++)}Ae.map=y;function*E(...R){for(const J of R)for(const q of J)yield q}Ae.concat=E;function*S(R){for(const J of R)for(const q of J)yield q}Ae.concatNested=S;function O(R,J,q){let ge=q;for(const _e of R)ge=J(ge,_e);return ge}Ae.reduce=O;function*P(R,J,q=R.length){for(J<0&&(J+=R.length),q<0?q+=R.length:q>R.length&&(q=R.length);J<q;J++)yield R[J]}Ae.slice=P;function H(R,J=Number.POSITIVE_INFINITY){const q=[];if(J===0)return[q,R];const ge=R[Symbol.iterator]();for(let _e=0;_e<J;_e++){const se=ge.next();if(se.done)return[q,Ae.empty()];q.push(se.value)}return[q,{[Symbol.iterator](){return ge}}]}Ae.consume=H;function B(R,J,q=(ge,_e)=>ge===_e){const ge=R[Symbol.iterator](),_e=J[Symbol.iterator]();for(;;){const se=ge.next(),we=_e.next();if(se.done!==we.done)return!1;if(se.done)return!0;if(!q(se.value,we.value))return!1}}Ae.equals=B})(p||(p={}))},69323:function(Xe,Ge,w){"use strict";w.d(Ge,{B9:function(){return y},F8:function(){return E},JT:function(){return P},Jz:function(){return B},OF:function(){return S},SL:function(){return O},Wf:function(){return _},XK:function(){return H},dk:function(){return X}});var p=w(17845),Ae=w(88226);const xe=!1;let ce=null;function Y(R){ce=R}if(xe){const R="__is_disposable_tracked__";Y(new class{trackDisposable(J){const q=new Error("Potentially leaked disposable").stack;setTimeout(()=>{J[R]||console.log(q)},3e3)}setParent(J,q){if(J&&J!==P.None)try{J[R]=!0}catch(ge){}}markAsDisposed(J){if(J&&J!==P.None)try{J[R]=!0}catch(q){}}markAsSingleton(J){}})}function m(R){return ce==null||ce.trackDisposable(R),R}function ve(R){ce==null||ce.markAsDisposed(R)}function U(R,J){ce==null||ce.setParent(R,J)}function o(R,J){if(ce)for(const q of R)ce.setParent(q,J)}function X(R){return ce==null||ce.markAsSingleton(R),R}class L extends Error{constructor(J){super(`Encountered errors while disposing of store. Errors: [${J.join(", ")}]`),this.errors=J}}function _(R){return typeof R.dispose=="function"&&R.dispose.length===0}function y(R){if(Ae.$.is(R)){let J=[];for(const q of R)if(q)try{q.dispose()}catch(ge){J.push(ge)}if(J.length===1)throw J[0];if(J.length>1)throw new L(J);return Array.isArray(R)?[]:R}else if(R)return R.dispose(),R}function E(...R){const J=S(()=>y(R));return o(R,J),J}function S(R){const J=m({dispose:(0,p.I)(()=>{ve(J),R()})});return J}class O{constructor(){this._toDispose=new Set,this._isDisposed=!1,m(this)}dispose(){this._isDisposed||(ve(this),this._isDisposed=!0,this.clear())}clear(){try{y(this._toDispose.values())}finally{this._toDispose.clear()}}add(J){if(!J)return J;if(J===this)throw new Error("Cannot register a disposable on itself!");return U(J,this),this._isDisposed?O.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(J),J}}O.DISABLE_DISPOSED_WARNING=!1;class P{constructor(){this._store=new O,m(this),U(this._store,this)}dispose(){ve(this),this._store.dispose()}_register(J){if(J===this)throw new Error("Cannot register a disposable on itself!");return this._store.add(J)}}P.None=Object.freeze({dispose(){}});class H{constructor(){this._isDisposed=!1,m(this)}get value(){return this._isDisposed?void 0:this._value}set value(J){var q;this._isDisposed||J===this._value||((q=this._value)===null||q===void 0||q.dispose(),J&&U(J,this),this._value=J)}clear(){this.value=void 0}dispose(){var J;this._isDisposed=!0,ve(this),(J=this._value)===null||J===void 0||J.dispose(),this._value=void 0}clearAndLeak(){const J=this._value;return this._value=void 0,J&&U(J,null),J}}class B{constructor(J){this.object=J}dispose(){}}},34502:function(Xe,Ge,w){"use strict";w.d(Ge,{S:function(){return Ae}});class p{constructor(ce){this.element=ce,this.next=p.Undefined,this.prev=p.Undefined}}p.Undefined=new p(void 0);class Ae{constructor(){this._first=p.Undefined,this._last=p.Undefined,this._size=0}get size(){return this._size}isEmpty(){return this._first===p.Undefined}clear(){let ce=this._first;for(;ce!==p.Undefined;){const Y=ce.next;ce.prev=p.Undefined,ce.next=p.Undefined,ce=Y}this._first=p.Undefined,this._last=p.Undefined,this._size=0}unshift(ce){return this._insert(ce,!1)}push(ce){return this._insert(ce,!0)}_insert(ce,Y){const m=new p(ce);if(this._first===p.Undefined)this._first=m,this._last=m;else if(Y){const U=this._last;this._last=m,m.prev=U,U.next=m}else{const U=this._first;this._first=m,m.next=U,U.prev=m}this._size+=1;let ve=!1;return()=>{ve||(ve=!0,this._remove(m))}}shift(){if(this._first!==p.Undefined){const ce=this._first.element;return this._remove(this._first),ce}}pop(){if(this._last!==p.Undefined){const ce=this._last.element;return this._remove(this._last),ce}}_remove(ce){if(ce.prev!==p.Undefined&&ce.next!==p.Undefined){const Y=ce.prev;Y.next=ce.next,ce.next.prev=Y}else ce.prev===p.Undefined&&ce.next===p.Undefined?(this._first=p.Undefined,this._last=p.Undefined):ce.next===p.Undefined?(this._last=this._last.prev,this._last.next=p.Undefined):ce.prev===p.Undefined&&(this._first=this._first.next,this._first.prev=p.Undefined);this._size-=1}*[Symbol.iterator](){let ce=this._first;for(;ce!==p.Undefined;)yield ce.element,ce=ce.next}}},23345:function(Xe,Ge,w){"use strict";w.d(Ge,{$L:function(){return ge},ED:function(){return B},IJ:function(){return J},OS:function(){return de},WE:function(){return se},dz:function(){return R},gn:function(){return _e},li:function(){return S},r:function(){return K},tY:function(){return q},xS:function(){return we}});var p=w(97671),Ae;const xe="en";let ce=!1,Y=!1,m=!1,ve=!1,U=!1,o=!1,X=!1,L,_=null,y=null,E;const S=typeof self=="object"?self:typeof w.g=="object"?w.g:{};let O;typeof S.vscode!="undefined"&&typeof S.vscode.process!="undefined"?O=S.vscode.process:typeof p!="undefined"&&(O=p);const P=typeof((Ae=O==null?void 0:O.versions)===null||Ae===void 0?void 0:Ae.electron)=="string"&&O.type==="renderer";if(typeof navigator=="object"&&!P)E=navigator.userAgent,ce=E.indexOf("Windows")>=0,Y=E.indexOf("Macintosh")>=0,X=(E.indexOf("Macintosh")>=0||E.indexOf("iPad")>=0||E.indexOf("iPhone")>=0)&&!!navigator.maxTouchPoints&&navigator.maxTouchPoints>0,m=E.indexOf("Linux")>=0,o=!0,L=navigator.language,_=L;else if(typeof O=="object"){ce=O.platform==="win32",Y=O.platform==="darwin",m=O.platform==="linux",ve=m&&!!O.env.SNAP&&!!O.env.SNAP_REVISION,L=xe,_=xe;const k=O.env.VSCODE_NLS_CONFIG;if(k)try{const V=JSON.parse(k),$=V.availableLanguages["*"];L=V.locale,_=$||xe,y=V._translationsConfigFile}catch(V){}U=!0}else console.error("Unable to resolve platform.");let H=0;Y?H=1:ce?H=3:m&&(H=2);const B=ce,R=Y,J=m,q=U,ge=o,_e=X,se=E,we=function(){if(S.setImmediate)return S.setImmediate.bind(S);if(typeof S.postMessage=="function"&&!S.importScripts){let $=[];S.addEventListener("message",re=>{if(re.data&&re.data.vscodeSetImmediateId)for(let x=0,b=$.length;x<b;x++){const W=$[x];if(W.id===re.data.vscodeSetImmediateId){$.splice(x,1),W.callback();return}}});let ae=0;return re=>{const x=++ae;$.push({id:x,callback:re}),S.postMessage({vscodeSetImmediateId:x},"*")}}if(typeof(O==null?void 0:O.nextTick)=="function")return O.nextTick.bind(O);const V=Promise.resolve();return $=>V.then($)}(),de=Y||X?2:ce?1:3;let ie=!0,oe=!1;function K(){if(!oe){oe=!0;const k=new Uint8Array(2);k[0]=1,k[1]=2,ie=new Uint16Array(k.buffer)[0]===513}return ie}},95830:function(Xe,Ge,w){"use strict";w.d(Ge,{G:function(){return xe}});var p=w(23345);const Ae=p.li.performance&&typeof p.li.performance.now=="function";class xe{constructor(Y){this._highResolution=Ae&&Y,this._startTime=this._now(),this._stopTime=-1}static create(Y=!0){return new xe(Y)}stop(){this._stopTime=this._now()}elapsed(){return this._stopTime!==-1?this._stopTime-this._startTime:this._now()-this._startTime}_now(){return this._highResolution?p.li.performance.now():Date.now()}}},82983:function(Xe,Ge,w){"use strict";w.d(Ge,{$i:function(){return ke},C8:function(){return Dt},GF:function(){return L},HO:function(){return ae},IO:function(){return _},K7:function(){return Ot},Kw:function(){return ot},LC:function(){return S},Mh:function(){return we},P1:function(){return de},PJ:function(){return Et},Qe:function(){return je},R1:function(){return X},RP:function(){return W},S6:function(){return qe},TT:function(){return B},Ut:function(){return x},V8:function(){return O},WU:function(){return xe},YK:function(){return oe},YU:function(){return ce},ZG:function(){return ie},ZH:function(){return k},ab:function(){return yt},c1:function(){return Ve},df:function(){return ge},ec:function(){return Y},fi:function(){return Kt},fy:function(){return m},j3:function(){return ve},j_:function(){return J},m5:function(){return p},mK:function(){return q},mr:function(){return y},oH:function(){return v},oL:function(){return U},ok:function(){return se},ow:function(){return P},qq:function(){return _e},qu:function(){return H},rL:function(){return K},uS:function(){return Jt},un:function(){return o},uq:function(){return E},vH:function(){return $},xe:function(){return ht},zY:function(){return R}});function p(z){return!z||typeof z!="string"?!0:z.trim().length===0}const Ae=/{(\d+)}/g;function xe(z,...he){return he.length===0?z:z.replace(Ae,function(Fe,Ne){const rt=parseInt(Ne,10);return isNaN(rt)||rt<0||rt>=he.length?Fe:he[rt]})}function ce(z){return z.replace(/[<>&]/g,function(he){switch(he){case"<":return"&lt;";case">":return"&gt;";case"&":return"&amp;";default:return he}})}function Y(z){return z.replace(/[\\\{\}\*\+\?\|\^\$\.\[\]\(\)]/g,"\\$&")}function m(z,he=" "){const Fe=ve(z,he);return U(Fe,he)}function ve(z,he){if(!z||!he)return z;const Fe=he.length;if(Fe===0||z.length===0)return z;let Ne=0;for(;z.indexOf(he,Ne)===Ne;)Ne=Ne+Fe;return z.substring(Ne)}function U(z,he){if(!z||!he)return z;const Fe=he.length,Ne=z.length;if(Fe===0||Ne===0)return z;let rt=Ne,lt=-1;for(;lt=z.lastIndexOf(he,rt-1),!(lt===-1||lt+Fe!==rt);){if(lt===0)return"";rt=lt}return z.substring(0,rt)}function o(z){return z.replace(/[\-\\\{\}\+\?\|\^\$\.\,\[\]\(\)\#\s]/g,"\\$&").replace(/[\*]/g,".*")}function X(z){return z.replace(/\*/g,"")}function L(z,he,Fe={}){if(!z)throw new Error("Cannot create regex from empty string");he||(z=Y(z)),Fe.wholeWord&&(/\B/.test(z.charAt(0))||(z="\\b"+z),/\B/.test(z.charAt(z.length-1))||(z=z+"\\b"));let Ne="";return Fe.global&&(Ne+="g"),Fe.matchCase||(Ne+="i"),Fe.multiline&&(Ne+="m"),Fe.unicode&&(Ne+="u"),new RegExp(z,Ne)}function _(z){return z.source==="^"||z.source==="^$"||z.source==="$"||z.source==="^\\s*$"?!1:!!(z.exec("")&&z.lastIndex===0)}function y(z){return(z.global?"g":"")+(z.ignoreCase?"i":"")+(z.multiline?"m":"")+(z.unicode?"u":"")}function E(z){return z.split(/\r\n|\r|\n/)}function S(z){for(let he=0,Fe=z.length;he<Fe;he++){const Ne=z.charCodeAt(he);if(Ne!==32&&Ne!==9)return he}return-1}function O(z,he=0,Fe=z.length){for(let Ne=he;Ne<Fe;Ne++){const rt=z.charCodeAt(Ne);if(rt!==32&&rt!==9)return z.substring(he,Ne)}return z.substring(he,Fe)}function P(z,he=z.length-1){for(let Fe=he;Fe>=0;Fe--){const Ne=z.charCodeAt(Fe);if(Ne!==32&&Ne!==9)return Fe}return-1}function H(z,he){return z<he?-1:z>he?1:0}function B(z,he,Fe=0,Ne=z.length,rt=0,lt=he.length){for(;Fe<Ne&&rt<lt;Fe++,rt++){let Ct=z.charCodeAt(Fe),At=he.charCodeAt(rt);if(Ct<At)return-1;if(Ct>At)return 1}const zt=Ne-Fe,Tt=lt-rt;return zt<Tt?-1:zt>Tt?1:0}function R(z,he){return J(z,he,0,z.length,0,he.length)}function J(z,he,Fe=0,Ne=z.length,rt=0,lt=he.length){for(;Fe<Ne&&rt<lt;Fe++,rt++){let Ct=z.charCodeAt(Fe),At=he.charCodeAt(rt);if(Ct===At)continue;if(Ct>=128||At>=128)return B(z.toLowerCase(),he.toLowerCase(),Fe,Ne,rt,lt);q(Ct)&&(Ct-=32),q(At)&&(At-=32);const It=Ct-At;if(It!==0)return It}const zt=Ne-Fe,Tt=lt-rt;return zt<Tt?-1:zt>Tt?1:0}function q(z){return z>=97&&z<=122}function ge(z){return z>=65&&z<=90}function _e(z,he){return z.length===he.length&&J(z,he)===0}function se(z,he){const Fe=he.length;return he.length>z.length?!1:J(z,he,0,Fe)===0}function we(z,he){let Fe,Ne=Math.min(z.length,he.length);for(Fe=0;Fe<Ne;Fe++)if(z.charCodeAt(Fe)!==he.charCodeAt(Fe))return Fe;return Ne}function de(z,he){let Fe,Ne=Math.min(z.length,he.length);const rt=z.length-1,lt=he.length-1;for(Fe=0;Fe<Ne;Fe++)if(z.charCodeAt(rt-Fe)!==he.charCodeAt(lt-Fe))return Fe;return Ne}function ie(z){return 55296<=z&&z<=56319}function oe(z){return 56320<=z&&z<=57343}function K(z,he){return(z-55296<<10)+(he-56320)+65536}function k(z,he,Fe){const Ne=z.charCodeAt(Fe);if(ie(Ne)&&Fe+1<he){const rt=z.charCodeAt(Fe+1);if(oe(rt))return K(Ne,rt)}return Ne}function V(z,he){const Fe=z.charCodeAt(he-1);if(oe(Fe)&&he>1){const Ne=z.charCodeAt(he-2);if(ie(Ne))return K(Ne,Fe)}return Fe}function $(z,he){const Fe=Te.getInstance(),Ne=he,rt=z.length,lt=k(z,rt,he);he+=lt>=65536?2:1;let zt=Fe.getGraphemeBreakType(lt);for(;he<rt;){const Tt=k(z,rt,he),Ct=Fe.getGraphemeBreakType(Tt);if(Kt(zt,Ct))break;he+=Tt>=65536?2:1,zt=Ct}return he-Ne}function ae(z,he){const Fe=Te.getInstance(),Ne=he,rt=V(z,he);he-=rt>=65536?2:1;let lt=Fe.getGraphemeBreakType(rt);for(;he>0;){const zt=V(z,he),Tt=Fe.getGraphemeBreakType(zt);if(Kt(Tt,lt))break;he-=zt>=65536?2:1,lt=Tt}return Ne-he}const re=/(?:[\u05BE\u05C0\u05C3\u05C6\u05D0-\u05F4\u0608\u060B\u060D\u061B-\u064A\u066D-\u066F\u0671-\u06D5\u06E5\u06E6\u06EE\u06EF\u06FA-\u0710\u0712-\u072F\u074D-\u07A5\u07B1-\u07EA\u07F4\u07F5\u07FA-\u0815\u081A\u0824\u0828\u0830-\u0858\u085E-\u08BD\u200F\uFB1D\uFB1F-\uFB28\uFB2A-\uFD3D\uFD50-\uFDFC\uFE70-\uFEFC]|\uD802[\uDC00-\uDD1B\uDD20-\uDE00\uDE10-\uDE33\uDE40-\uDEE4\uDEEB-\uDF35\uDF40-\uDFFF]|\uD803[\uDC00-\uDCFF]|\uD83A[\uDC00-\uDCCF\uDD00-\uDD43\uDD50-\uDFFF]|\uD83B[\uDC00-\uDEBB])/;function x(z){return re.test(z)}const b=/(?:[\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 W(z){return b.test(z)}const fe=/^[\t\n\r\x20-\x7E]*$/;function ke(z){return fe.test(z)}const je=/[\u2028\u2029]/;function yt(z){return je.test(z)}function ht(z){for(let he=0,Fe=z.length;he<Fe;he++)if(Ot(z.charCodeAt(he)))return!0;return!1}function Ot(z){return z=+z,z>=11904&&z<=55215||z>=63744&&z<=64255||z>=65281&&z<=65374}function Dt(z){return z>=127462&&z<=127487||z===8986||z===8987||z===9200||z===9203||z>=9728&&z<=10175||z===11088||z===11093||z>=127744&&z<=128591||z>=128640&&z<=128764||z>=128992&&z<=129003||z>=129280&&z<=129535||z>=129648&&z<=129750}const Ve="\uFEFF";function Jt(z){return!!(z&&z.length>0&&z.charCodeAt(0)===65279)}function ot(z,he=!1){return z?(he&&(z=z.replace(/\\./g,"")),z.toLowerCase()!==z):!1}function Et(z){return z=z%(2*26),z<26?String.fromCharCode(97+z):String.fromCharCode(65+z-26)}function qe(z){return Te.getInstance().getGraphemeBreakType(z)}function Kt(z,he){return z===0?he!==5&&he!==7:z===2&&he===3?!1:z===4||z===2||z===3||he===4||he===2||he===3?!0:!(z===8&&(he===8||he===9||he===11||he===12)||(z===11||z===9)&&(he===9||he===10)||(z===12||z===10)&&he===10||he===5||he===13||he===7||z===1||z===13&&he===14||z===6&&he===6)}class Te{constructor(){this._data=F()}static getInstance(){return Te._INSTANCE||(Te._INSTANCE=new Te),Te._INSTANCE}getGraphemeBreakType(he){if(he<32)return he===10?3:he===13?2:4;if(he<127)return 0;const Fe=this._data,Ne=Fe.length/3;let rt=1;for(;rt<=Ne;)if(he<Fe[3*rt])rt=2*rt;else if(he>Fe[3*rt+1])rt=2*rt+1;else return Fe[3*rt+2];return 0}}Te._INSTANCE=null;function F(){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(z,he){if(z===0)return 0;const Fe=T(z,he);if(Fe!==void 0)return Fe;const Ne=V(he,z);return z-=ee(Ne),z}function T(z,he){let Fe=V(he,z);for(z-=ee(Fe);N(Fe)||Fe===65039||Fe===8419;){if(z===0)return;Fe=V(he,z),z-=ee(Fe)}if(Dt(Fe)){if(z>=0){const Ne=V(he,z);Ne===8205&&(z-=ee(Ne))}return z}}function ee(z){return z>=65536?2:1}function N(z){return 127995<=z&&z<=127999}},72999:function(Xe,Ge,w){"use strict";w.d(Ge,{$E:function(){return S},$K:function(){return ve},D8:function(){return _},HD:function(){return Ae},IU:function(){return O},Jp:function(){return U},Kn:function(){return xe},cW:function(){return X},f6:function(){return P},hj:function(){return ce},jn:function(){return Y},kJ:function(){return p},mf:function(){return L},o8:function(){return m},p_:function(){return o},vE:function(){return H}});function p(B){return Array.isArray(B)}function Ae(B){return typeof B=="string"}function xe(B){return typeof B=="object"&&B!==null&&!Array.isArray(B)&&!(B instanceof RegExp)&&!(B instanceof Date)}function ce(B){return typeof B=="number"&&!isNaN(B)}function Y(B){return B===!0||B===!1}function m(B){return typeof B=="undefined"}function ve(B){return!U(B)}function U(B){return m(B)||B===null}function o(B,R){if(!B)throw new Error(R?`Unexpected type, expected '${R}'`:"Unexpected type")}function X(B){if(U(B))throw new Error("Assertion Failed: argument is undefined or null");return B}function L(B){return typeof B=="function"}function _(B,R){const J=Math.min(B.length,R.length);for(let q=0;q<J;q++)y(B[q],R[q])}function y(B,R){if(Ae(R)){if(typeof B!==R)throw new Error(`argument does not match constraint: typeof ${R}`)}else if(L(R)){try{if(B instanceof R)return}catch(J){}if(!U(B)&&B.constructor===R||R.length===1&&R.call(void 0,B)===!0)return;throw new Error("argument does not match one of these constraints: arg instanceof constraint, arg.constructor === constraint, nor constraint(arg) === true")}}function E(B){let R=[],J=Object.getPrototypeOf(B);for(;Object.prototype!==J;)R=R.concat(Object.getOwnPropertyNames(J)),J=Object.getPrototypeOf(J);return R}function S(B){const R=[];for(const J of E(B))typeof B[J]=="function"&&R.push(J);return R}function O(B,R){const J=ge=>function(){const _e=Array.prototype.slice.call(arguments,0);return R(ge,_e)};let q={};for(const ge of B)q[ge]=J(ge);return q}function P(B){return B===null?void 0:B}function H(B,R="Unreachable"){throw new Error(R)}},13268:function(Xe,Ge,w){"use strict";w.d(Ge,{N:function(){return Ae}});function p(xe,ce){let Y;return ce.length===0?Y=xe:Y=xe.replace(/\{(\d+)\}/g,function(m,ve){const U=ve[0];return typeof ce[U]!="undefined"?ce[U]:m}),Y}function Ae(xe,ce,...Y){return p(ce,Y)}},96236:function(Xe,Ge,w){"use strict";w.d(Ge,{BH:function(){return O},NZ:function(){return P},U8:function(){return H},co:function(){return S},eH:function(){return E},vr:function(){return y}});var p=w(75918),Ae=w(52615),xe=w(4348),ce=w(88226),Y=w(69323),m=w(34502),ve=w(35884),U=w(90689),o=w(16925),X=w(49055),L=function(B,R,J,q){var ge=arguments.length,_e=ge<3?R:q===null?q=Object.getOwnPropertyDescriptor(R,J):q,se;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")_e=Reflect.decorate(B,R,J,q);else for(var we=B.length-1;we>=0;we--)(se=B[we])&&(_e=(ge<3?se(_e):ge>3?se(R,J,_e):se(R,J))||_e);return ge>3&&_e&&Object.defineProperty(R,J,_e),_e},_=function(B,R){return function(J,q){R(J,q,B)}};function y(B){return B.command!==void 0}class E{constructor(R){this.id=E._idPool++,this._debugName=R}}E._idPool=0,E.CommandPalette=new E("CommandPalette"),E.EditorContext=new E("EditorContext"),E.SimpleEditorContext=new E("SimpleEditorContext"),E.EditorContextCopy=new E("EditorContextCopy"),E.EditorContextPeek=new E("EditorContextPeek"),E.MenubarEditMenu=new E("MenubarEditMenu"),E.MenubarCopy=new E("MenubarCopy"),E.MenubarGoMenu=new E("MenubarGoMenu"),E.MenubarSelectionMenu=new E("MenubarSelectionMenu"),E.InlineCompletionsActions=new E("InlineCompletionsActions");const S=(0,o.yh)("menuService"),O=new class{constructor(){this._commands=new Map,this._menuItems=new Map,this._onDidChangeMenu=new xe.Q5,this.onDidChangeMenu=this._onDidChangeMenu.event,this._commandPaletteChangeEvent={has:B=>B===E.CommandPalette}}addCommand(B){return this.addCommands(ce.$.single(B))}addCommands(B){for(const R of B)this._commands.set(R.id,R);return this._onDidChangeMenu.fire(this._commandPaletteChangeEvent),(0,Y.OF)(()=>{let R=!1;for(const J of B)R=this._commands.delete(J.id)||R;R&&this._onDidChangeMenu.fire(this._commandPaletteChangeEvent)})}getCommand(B){return this._commands.get(B)}getCommands(){const B=new Map;return this._commands.forEach((R,J)=>B.set(J,R)),B}appendMenuItem(B,R){return this.appendMenuItems(ce.$.single({id:B,item:R}))}appendMenuItems(B){const R=new Set,J=new m.S;for(const{id:q,item:ge}of B){let _e=this._menuItems.get(q);_e||(_e=new m.S,this._menuItems.set(q,_e)),J.push(_e.push(ge)),R.add(q)}return this._onDidChangeMenu.fire(R),(0,Y.OF)(()=>{if(J.size>0){for(let q of J)q();this._onDidChangeMenu.fire(R),J.clear()}})}getMenuItems(B){let R;return this._menuItems.has(B)?R=[...this._menuItems.get(B)]:R=[],B===E.CommandPalette&&this._appendImplicitItems(R),R}_appendImplicitItems(B){const R=new Set;for(const J of B)y(J)&&(R.add(J.command.id),J.alt&&R.add(J.alt.id));this._commands.forEach((J,q)=>{R.has(q)||B.push({command:J})})}};class P extends p.wY{constructor(R,J,q,ge){super(`submenuitem.${R.submenu.id}`,typeof R.title=="string"?R.title:R.title.value,[],"submenu"),this.item=R,this._menuService=J,this._contextKeyService=q,this._options=ge}get actions(){const R=[],J=this._menuService.createMenu(this.item.submenu,this._contextKeyService),q=J.getActions(this._options);J.dispose();for(const[,ge]of q)ge.length>0&&(R.push(...ge),R.push(new p.Z0));return R.length&&R.pop(),R}}let H=class nc{constructor(R,J,q,ge,_e){var se,we;if(this._commandService=_e,this.id=R.id,this.label=q!=null&&q.renderShortTitle&&R.shortTitle?typeof R.shortTitle=="string"?R.shortTitle:R.shortTitle.value:typeof R.title=="string"?R.title:R.title.value,this.tooltip=(we=typeof R.tooltip=="string"?R.tooltip:(se=R.tooltip)===null||se===void 0?void 0:se.value)!==null&&we!==void 0?we:"",this.enabled=!R.precondition||ge.contextMatchesRules(R.precondition),this.checked=void 0,R.toggled){const de=R.toggled.condition?R.toggled:{condition:R.toggled};this.checked=ge.contextMatchesRules(de.condition),this.checked&&de.tooltip&&(this.tooltip=typeof de.tooltip=="string"?de.tooltip:de.tooltip.value),de.title&&(this.label=typeof de.title=="string"?de.title:de.title.value)}this.item=R,this.alt=J?new nc(J,void 0,q,ge,_e):void 0,this._options=q,X.kS.isThemeIcon(R.icon)&&(this.class=Ae.dT.asClassName(R.icon))}dispose(){}run(...R){var J,q;let ge=[];return!((J=this._options)===null||J===void 0)&&J.arg&&(ge=[...ge,this._options.arg]),!((q=this._options)===null||q===void 0)&&q.shouldForwardArgs&&(ge=[...ge,...R]),this._commandService.executeCommand(this.id,...ge)}};H=L([_(3,U.i6),_(4,ve.H)],H)},35884:function(Xe,Ge,w){"use strict";w.d(Ge,{H:function(){return ve},P:function(){return U}});var p=w(4348),Ae=w(88226),xe=w(69323),ce=w(34502),Y=w(72999),m=w(16925);const ve=(0,m.yh)("commandService"),U=new class{constructor(){this._commands=new Map,this._onDidRegisterCommand=new p.Q5,this.onDidRegisterCommand=this._onDidRegisterCommand.event}registerCommand(o,X){if(!o)throw new Error("invalid command");if(typeof o=="string"){if(!X)throw new Error("invalid command");return this.registerCommand({id:o,handler:X})}if(o.description){const S=[];for(let P of o.description.args)S.push(P.constraint);const O=o.handler;o.handler=function(P,...H){return(0,Y.D8)(H,S),O(P,...H)}}const{id:L}=o;let _=this._commands.get(L);_||(_=new ce.S,this._commands.set(L,_));let y=_.unshift(o),E=(0,xe.OF)(()=>{y();const S=this._commands.get(L);S!=null&&S.isEmpty()&&this._commands.delete(L)});return this._onDidRegisterCommand.fire(L),E}registerCommandAlias(o,X){return U.registerCommand(o,(L,..._)=>L.get(ve).executeCommand(X,..._))}getCommand(o){const X=this._commands.get(o);if(!(!X||X.isEmpty()))return Ae.$.first(X)}getCommands(){const o=new Map;for(const X of this._commands.keys()){const L=this.getCommand(X);L&&o.set(X,L)}return o}};U.registerCommand("noop",()=>{})},90689:function(Xe,Ge,w){"use strict";w.d(Ge,{Ao:function(){return ve},Eq:function(){return K},Fb:function(){return U},K8:function(){return $},i6:function(){return oe},uy:function(){return ie}});var p=w(23345),Ae=w(82983),xe=w(16925);let ce=p.WE||"";const Y=new Map;Y.set("false",!1),Y.set("true",!0),Y.set("isMac",p.dz),Y.set("isLinux",p.IJ),Y.set("isWindows",p.ED),Y.set("isWeb",p.$L),Y.set("isMacNative",p.dz&&!p.$L),Y.set("isEdge",ce.indexOf("Edg/")>=0),Y.set("isFirefox",ce.indexOf("Firefox")>=0),Y.set("isChrome",ce.indexOf("Chrome")>=0),Y.set("isSafari",ce.indexOf("Safari")>=0);const m=Object.prototype.hasOwnProperty;class ve{static has(x){return _.create(x)}static equals(x,b){return y.create(x,b)}static regex(x,b){return ge.create(x,b)}static not(x){return P.create(x)}static and(...x){return we.create(x,null)}static or(...x){return de.create(x,null,!0)}static deserialize(x,b=!1){if(x)return this._deserializeOrExpression(x,b)}static _deserializeOrExpression(x,b){let W=x.split("||");return de.create(W.map(fe=>this._deserializeAndExpression(fe,b)),null,!0)}static _deserializeAndExpression(x,b){let W=x.split("&&");return we.create(W.map(fe=>this._deserializeOne(fe,b)),null)}static _deserializeOne(x,b){if(x=x.trim(),x.indexOf("!=")>=0){let W=x.split("!=");return O.create(W[0].trim(),this._deserializeValue(W[1],b))}if(x.indexOf("==")>=0){let W=x.split("==");return y.create(W[0].trim(),this._deserializeValue(W[1],b))}if(x.indexOf("=~")>=0){let W=x.split("=~");return ge.create(W[0].trim(),this._deserializeRegexValue(W[1],b))}if(x.indexOf(" in ")>=0){let W=x.split(" in ");return E.create(W[0].trim(),W[1].trim())}if(/^[^<=>]+>=[^<=>]+$/.test(x)){const W=x.split(">=");return R.create(W[0].trim(),W[1].trim())}if(/^[^<=>]+>[^<=>]+$/.test(x)){const W=x.split(">");return B.create(W[0].trim(),W[1].trim())}if(/^[^<=>]+<=[^<=>]+$/.test(x)){const W=x.split("<=");return q.create(W[0].trim(),W[1].trim())}if(/^[^<=>]+<[^<=>]+$/.test(x)){const W=x.split("<");return J.create(W[0].trim(),W[1].trim())}return/^\!\s*/.test(x)?P.create(x.substr(1).trim()):_.create(x)}static _deserializeValue(x,b){if(x=x.trim(),x==="true")return!0;if(x==="false")return!1;let W=/^'([^']*)'$/.exec(x);return W?W[1].trim():x}static _deserializeRegexValue(x,b){if((0,Ae.m5)(x)){if(b)throw new Error("missing regexp-value for =~-expression");return console.warn("missing regexp-value for =~-expression"),null}let W=x.indexOf("/"),fe=x.lastIndexOf("/");if(W===fe||W<0){if(b)throw new Error(`bad regexp-value '${x}', missing /-enclosure`);return console.warn(`bad regexp-value '${x}', missing /-enclosure`),null}let ke=x.slice(W+1,fe),je=x[fe+1]==="i"?"i":"";try{return new RegExp(ke,je)}catch(yt){if(b)throw new Error(`bad regexp-value '${x}', parse error: ${yt}`);return console.warn(`bad regexp-value '${x}', parse error: ${yt}`),null}}}function U(re,x){const b=re?re.substituteConstants():void 0,W=x?x.substituteConstants():void 0;return!b&&!W?!0:!b||!W?!1:b.equals(W)}function o(re,x){return re.cmp(x)}class X{constructor(){this.type=0}cmp(x){return this.type-x.type}equals(x){return x.type===this.type}substituteConstants(){return this}evaluate(x){return!1}serialize(){return"false"}keys(){return[]}negate(){return L.INSTANCE}}X.INSTANCE=new X;class L{constructor(){this.type=1}cmp(x){return this.type-x.type}equals(x){return x.type===this.type}substituteConstants(){return this}evaluate(x){return!0}serialize(){return"true"}keys(){return[]}negate(){return X.INSTANCE}}L.INSTANCE=new L;class _{constructor(x,b){this.key=x,this.negated=b,this.type=2}static create(x,b=null){const W=Y.get(x);return typeof W=="boolean"?W?L.INSTANCE:X.INSTANCE:new _(x,b)}cmp(x){return x.type!==this.type?this.type-x.type:k(this.key,x.key)}equals(x){return x.type===this.type?this.key===x.key:!1}substituteConstants(){const x=Y.get(this.key);return typeof x=="boolean"?x?L.INSTANCE:X.INSTANCE:this}evaluate(x){return!!x.getValue(this.key)}serialize(){return this.key}keys(){return[this.key]}negate(){return this.negated||(this.negated=P.create(this.key,this)),this.negated}}class y{constructor(x,b,W){this.key=x,this.value=b,this.negated=W,this.type=4}static create(x,b,W=null){if(typeof b=="boolean")return b?_.create(x,W):P.create(x,W);const fe=Y.get(x);return typeof fe=="boolean"?b===(fe?"true":"false")?L.INSTANCE:X.INSTANCE:new y(x,b,W)}cmp(x){return x.type!==this.type?this.type-x.type:V(this.key,this.value,x.key,x.value)}equals(x){return x.type===this.type?this.key===x.key&&this.value===x.value:!1}substituteConstants(){const x=Y.get(this.key);if(typeof x=="boolean"){const b=x?"true":"false";return this.value===b?L.INSTANCE:X.INSTANCE}return this}evaluate(x){return x.getValue(this.key)==this.value}serialize(){return`${this.key} == '${this.value}'`}keys(){return[this.key]}negate(){return this.negated||(this.negated=O.create(this.key,this.value,this)),this.negated}}class E{constructor(x,b){this.key=x,this.valueKey=b,this.type=10,this.negated=null}static create(x,b){return new E(x,b)}cmp(x){return x.type!==this.type?this.type-x.type:V(this.key,this.valueKey,x.key,x.valueKey)}equals(x){return x.type===this.type?this.key===x.key&&this.valueKey===x.valueKey:!1}substituteConstants(){return this}evaluate(x){const b=x.getValue(this.valueKey),W=x.getValue(this.key);return Array.isArray(b)?b.indexOf(W)>=0:typeof W=="string"&&typeof b=="object"&&b!==null?m.call(b,W):!1}serialize(){return`${this.key} in '${this.valueKey}'`}keys(){return[this.key,this.valueKey]}negate(){return this.negated||(this.negated=S.create(this)),this.negated}}class S{constructor(x){this._actual=x,this.type=11}static create(x){return new S(x)}cmp(x){return x.type!==this.type?this.type-x.type:this._actual.cmp(x._actual)}equals(x){return x.type===this.type?this._actual.equals(x._actual):!1}substituteConstants(){return this}evaluate(x){return!this._actual.evaluate(x)}serialize(){throw new Error("Method not implemented.")}keys(){return this._actual.keys()}negate(){return this._actual}}class O{constructor(x,b,W){this.key=x,this.value=b,this.negated=W,this.type=5}static create(x,b,W=null){if(typeof b=="boolean")return b?P.create(x,W):_.create(x,W);const fe=Y.get(x);return typeof fe=="boolean"?b===(fe?"true":"false")?X.INSTANCE:L.INSTANCE:new O(x,b,W)}cmp(x){return x.type!==this.type?this.type-x.type:V(this.key,this.value,x.key,x.value)}equals(x){return x.type===this.type?this.key===x.key&&this.value===x.value:!1}substituteConstants(){const x=Y.get(this.key);if(typeof x=="boolean"){const b=x?"true":"false";return this.value===b?X.INSTANCE:L.INSTANCE}return this}evaluate(x){return x.getValue(this.key)!=this.value}serialize(){return`${this.key} != '${this.value}'`}keys(){return[this.key]}negate(){return this.negated||(this.negated=y.create(this.key,this.value,this)),this.negated}}class P{constructor(x,b){this.key=x,this.negated=b,this.type=3}static create(x,b=null){const W=Y.get(x);return typeof W=="boolean"?W?X.INSTANCE:L.INSTANCE:new P(x,b)}cmp(x){return x.type!==this.type?this.type-x.type:k(this.key,x.key)}equals(x){return x.type===this.type?this.key===x.key:!1}substituteConstants(){const x=Y.get(this.key);return typeof x=="boolean"?x?X.INSTANCE:L.INSTANCE:this}evaluate(x){return!x.getValue(this.key)}serialize(){return`!${this.key}`}keys(){return[this.key]}negate(){return this.negated||(this.negated=_.create(this.key,this)),this.negated}}function H(re,x){if(typeof re=="string"){const b=parseFloat(re);isNaN(b)||(re=b)}return typeof re=="string"||typeof re=="number"?x(re):X.INSTANCE}class B{constructor(x,b,W){this.key=x,this.value=b,this.negated=W,this.type=12}static create(x,b,W=null){return H(b,fe=>new B(x,fe,W))}cmp(x){return x.type!==this.type?this.type-x.type:V(this.key,this.value,x.key,x.value)}equals(x){return x.type===this.type?this.key===x.key&&this.value===x.value:!1}substituteConstants(){return this}evaluate(x){return typeof this.value=="string"?!1:parseFloat(x.getValue(this.key))>this.value}serialize(){return`${this.key} > ${this.value}`}keys(){return[this.key]}negate(){return this.negated||(this.negated=q.create(this.key,this.value,this)),this.negated}}class R{constructor(x,b,W){this.key=x,this.value=b,this.negated=W,this.type=13}static create(x,b,W=null){return H(b,fe=>new R(x,fe,W))}cmp(x){return x.type!==this.type?this.type-x.type:V(this.key,this.value,x.key,x.value)}equals(x){return x.type===this.type?this.key===x.key&&this.value===x.value:!1}substituteConstants(){return this}evaluate(x){return typeof this.value=="string"?!1:parseFloat(x.getValue(this.key))>=this.value}serialize(){return`${this.key} >= ${this.value}`}keys(){return[this.key]}negate(){return this.negated||(this.negated=J.create(this.key,this.value,this)),this.negated}}class J{constructor(x,b,W){this.key=x,this.value=b,this.negated=W,this.type=14}static create(x,b,W=null){return H(b,fe=>new J(x,fe,W))}cmp(x){return x.type!==this.type?this.type-x.type:V(this.key,this.value,x.key,x.value)}equals(x){return x.type===this.type?this.key===x.key&&this.value===x.value:!1}substituteConstants(){return this}evaluate(x){return typeof this.value=="string"?!1:parseFloat(x.getValue(this.key))<this.value}serialize(){return`${this.key} < ${this.value}`}keys(){return[this.key]}negate(){return this.negated||(this.negated=R.create(this.key,this.value,this)),this.negated}}class q{constructor(x,b,W){this.key=x,this.value=b,this.negated=W,this.type=15}static create(x,b,W=null){return H(b,fe=>new q(x,fe,W))}cmp(x){return x.type!==this.type?this.type-x.type:V(this.key,this.value,x.key,x.value)}equals(x){return x.type===this.type?this.key===x.key&&this.value===x.value:!1}substituteConstants(){return this}evaluate(x){return typeof this.value=="string"?!1:parseFloat(x.getValue(this.key))<=this.value}serialize(){return`${this.key} <= ${this.value}`}keys(){return[this.key]}negate(){return this.negated||(this.negated=B.create(this.key,this.value,this)),this.negated}}class ge{constructor(x,b){this.key=x,this.regexp=b,this.type=7,this.negated=null}static create(x,b){return new ge(x,b)}cmp(x){if(x.type!==this.type)return this.type-x.type;if(this.key<x.key)return-1;if(this.key>x.key)return 1;const b=this.regexp?this.regexp.source:"",W=x.regexp?x.regexp.source:"";return b<W?-1:b>W?1:0}equals(x){if(x.type===this.type){const b=this.regexp?this.regexp.source:"",W=x.regexp?x.regexp.source:"";return this.key===x.key&&b===W}return!1}substituteConstants(){return this}evaluate(x){let b=x.getValue(this.key);return this.regexp?this.regexp.test(b):!1}serialize(){const x=this.regexp?`/${this.regexp.source}/${this.regexp.ignoreCase?"i":""}`:"/invalid/";return`${this.key} =~ ${x}`}keys(){return[this.key]}negate(){return this.negated||(this.negated=_e.create(this)),this.negated}}class _e{constructor(x){this._actual=x,this.type=8}static create(x){return new _e(x)}cmp(x){return x.type!==this.type?this.type-x.type:this._actual.cmp(x._actual)}equals(x){return x.type===this.type?this._actual.equals(x._actual):!1}substituteConstants(){return this}evaluate(x){return!this._actual.evaluate(x)}serialize(){throw new Error("Method not implemented.")}keys(){return this._actual.keys()}negate(){return this._actual}}function se(re){let x=null;for(let b=0,W=re.length;b<W;b++){const fe=re[b].substituteConstants();if(re[b]!==fe&&x===null){x=[];for(let ke=0;ke<b;ke++)x[ke]=re[ke]}x!==null&&(x[b]=fe)}return x===null?re:x}class we{constructor(x,b){this.expr=x,this.negated=b,this.type=6}static create(x,b){return we._normalizeArr(x,b)}cmp(x){if(x.type!==this.type)return this.type-x.type;if(this.expr.length<x.expr.length)return-1;if(this.expr.length>x.expr.length)return 1;for(let b=0,W=this.expr.length;b<W;b++){const fe=o(this.expr[b],x.expr[b]);if(fe!==0)return fe}return 0}equals(x){if(x.type===this.type){if(this.expr.length!==x.expr.length)return!1;for(let b=0,W=this.expr.length;b<W;b++)if(!this.expr[b].equals(x.expr[b]))return!1;return!0}return!1}substituteConstants(){const x=se(this.expr);return x===this.expr?this:we.create(x,this.negated)}evaluate(x){for(let b=0,W=this.expr.length;b<W;b++)if(!this.expr[b].evaluate(x))return!1;return!0}static _normalizeArr(x,b){const W=[];let fe=!1;for(const ke of x)if(ke){if(ke.type===1){fe=!0;continue}if(ke.type===0)return X.INSTANCE;if(ke.type===6){W.push(...ke.expr);continue}W.push(ke)}if(W.length===0&&fe)return L.INSTANCE;if(W.length!==0){if(W.length===1)return W[0];W.sort(o);for(let ke=1;ke<W.length;ke++)W[ke-1].equals(W[ke])&&(W.splice(ke,1),ke--);if(W.length===1)return W[0];for(;W.length>1;){const ke=W[W.length-1];if(ke.type!==9)break;W.pop();const je=W.pop(),yt=W.length===0,ht=de.create(ke.expr.map(Ot=>we.create([Ot,je],null)),null,yt);ht&&(W.push(ht),W.sort(o))}return W.length===1?W[0]:new we(W,b)}}serialize(){return this.expr.map(x=>x.serialize()).join(" && ")}keys(){const x=[];for(let b of this.expr)x.push(...b.keys());return x}negate(){if(!this.negated){const x=[];for(let b of this.expr)x.push(b.negate());this.negated=de.create(x,this,!0)}return this.negated}}class de{constructor(x,b){this.expr=x,this.negated=b,this.type=9}static create(x,b,W){return de._normalizeArr(x,b,W)}cmp(x){if(x.type!==this.type)return this.type-x.type;if(this.expr.length<x.expr.length)return-1;if(this.expr.length>x.expr.length)return 1;for(let b=0,W=this.expr.length;b<W;b++){const fe=o(this.expr[b],x.expr[b]);if(fe!==0)return fe}return 0}equals(x){if(x.type===this.type){if(this.expr.length!==x.expr.length)return!1;for(let b=0,W=this.expr.length;b<W;b++)if(!this.expr[b].equals(x.expr[b]))return!1;return!0}return!1}substituteConstants(){const x=se(this.expr);return x===this.expr?this:de.create(x,this.negated,!1)}evaluate(x){for(let b=0,W=this.expr.length;b<W;b++)if(this.expr[b].evaluate(x))return!0;return!1}static _normalizeArr(x,b,W){let fe=[],ke=!1;if(x){for(let je=0,yt=x.length;je<yt;je++){const ht=x[je];if(ht){if(ht.type===0){ke=!0;continue}if(ht.type===1)return L.INSTANCE;if(ht.type===9){fe=fe.concat(ht.expr);continue}fe.push(ht)}}if(fe.length===0&&ke)return X.INSTANCE;fe.sort(o)}if(fe.length!==0){if(fe.length===1)return fe[0];for(let je=1;je<fe.length;je++)fe[je-1].equals(fe[je])&&(fe.splice(je,1),je--);if(fe.length===1)return fe[0];if(W){for(let je=0;je<fe.length;je++)for(let yt=je+1;yt<fe.length;yt++)$(fe[je],fe[yt])&&(fe.splice(yt,1),yt--);if(fe.length===1)return fe[0]}return new de(fe,b)}}serialize(){return this.expr.map(x=>x.serialize()).join(" || ")}keys(){const x=[];for(let b of this.expr)x.push(...b.keys());return x}negate(){if(!this.negated){let x=[];for(let b of this.expr)x.push(b.negate());for(;x.length>1;){const b=x.shift(),W=x.shift(),fe=[];for(const je of ae(b))for(const yt of ae(W))fe.push(we.create([je,yt],null));const ke=x.length===0;x.unshift(de.create(fe,null,ke))}this.negated=x[0]}return this.negated}}class ie extends _{constructor(x,b,W){super(x,null),this._defaultValue=b,typeof W=="object"?ie._info.push(Object.assign(Object.assign({},W),{key:x})):W!==!0&&ie._info.push({key:x,description:W,type:b!=null?typeof b:void 0})}static all(){return ie._info.values()}bindTo(x){return x.createKey(this.key,this._defaultValue)}getValue(x){return x.getContextKeyValue(this.key)}toNegated(){return this.negate()}isEqualTo(x){return y.create(this.key,x)}}ie._info=[];const oe=(0,xe.yh)("contextKeyService"),K="setContext";function k(re,x){return re<x?-1:re>x?1:0}function V(re,x,b,W){return re<b?-1:re>b?1:x<W?-1:x>W?1:0}function $(re,x){if(x.type===6&&re.type!==9&&re.type!==6){for(const fe of x.expr)if(re.equals(fe))return!0}const b=re.negate(),W=ae(b).concat(ae(x));W.sort(o);for(let fe=0;fe<W.length;fe++){const je=W[fe].negate();for(let yt=fe+1;yt<W.length;yt++){const ht=W[yt];if(je.equals(ht))return!0}}return!1}function ae(re){return re.type===9?re.expr:[re]}},16925:function(Xe,Ge,w){"use strict";w.d(Ge,{I8:function(){return p},TG:function(){return Ae},jt:function(){return Y},yh:function(){return ce}});var p;(function(m){m.serviceIds=new Map,m.DI_TARGET="$di$target",m.DI_DEPENDENCIES="$di$dependencies";function ve(U){return U[m.DI_DEPENDENCIES]||[]}m.getServiceDependencies=ve})(p||(p={}));const Ae=ce("instantiationService");function xe(m,ve,U,o){ve[p.DI_TARGET]===ve?ve[p.DI_DEPENDENCIES].push({id:m,index:U,optional:o}):(ve[p.DI_DEPENDENCIES]=[{id:m,index:U,optional:o}],ve[p.DI_TARGET]=ve)}function ce(m){if(p.serviceIds.has(m))return p.serviceIds.get(m);const ve=function(U,o,X){if(arguments.length!==3)throw new Error("@IServiceName-decorator can only be used to decorate a parameter");xe(ve,U,X,!1)};return ve.toString=()=>m,p.serviceIds.set(m,ve),ve}function Y(m){return function(ve,U,o){if(arguments.length!==3)throw new Error("@optional-decorator can only be used to decorate a parameter");xe(m,ve,o,!0)}}},44650:function(Xe,Ge,w){"use strict";w.d(Ge,{B:function(){return ce}});var p=w(76068),Ae=w(72999);class xe{constructor(){this.data=new Map}add(m,ve){p.ok(Ae.HD(m)),p.ok(Ae.Kn(ve)),p.ok(!this.data.has(m),"There is already an extension with this id"),this.data.set(m,ve)}as(m){return this.data.get(m)||null}}const ce=new xe},66213:function(Xe,Ge,w){"use strict";w.d(Ge,{e:function(){return p}});var p;(function(Ae){Ae.DARK="dark",Ae.LIGHT="light",Ae.HIGH_CONTRAST="hc"})(p||(p={}))},49055:function(Xe,Ge,w){"use strict";w.d(Ge,{EN:function(){return o},IP:function(){return _},Ic:function(){return S},XE:function(){return ve},bB:function(){return O},kS:function(){return X},m6:function(){return L}});var p=w(52615),Ae=w(4348),xe=w(69323),ce=w(16925),Y=w(44650),m=w(66213);const ve=(0,ce.yh)("themeService");var U;(function(P){function H(B){return B&&typeof B=="object"&&typeof B.id=="string"}P.isThemeColor=H})(U||(U={}));function o(P){return{id:P}}var X;(function(P){function H(_e){return _e&&typeof _e=="object"&&typeof _e.id=="string"&&(typeof _e.color=="undefined"||U.isThemeColor(_e.color))}P.isThemeIcon=H;const B=new RegExp(`^\\$\\((${p.dT.iconNameExpression}(?:${p.dT.iconModifierExpression})?)\\)$`);function R(_e){const se=B.exec(_e);if(!se)return;let[,we]=se;return{id:we}}P.fromString=R;function J(_e,se){let we=_e.id;const de=we.lastIndexOf("~");return de!==-1&&(we=we.substring(0,de)),se&&(we=`${we}~${se}`),{id:we}}P.modify=J;function q(_e,se){var we,de;return _e.id===se.id&&((we=_e.color)===null||we===void 0?void 0:we.id)===((de=se.color)===null||de===void 0?void 0:de.id)}P.isEqual=q;function ge(_e,se){return{id:_e.id,color:se?o(se):void 0}}P.asThemeIcon=ge,P.asClassNameArray=p.dT.asClassNameArray,P.asClassName=p.dT.asClassName,P.asCSSSelector=p.dT.asCSSSelector})(X||(X={}));function L(P){switch(P){case m.e.DARK:return"vs-dark";case m.e.HIGH_CONTRAST:return"hc-black";default:return"vs"}}const _={ThemingContribution:"base.contributions.theming"};class y{constructor(){this.themingParticipants=[],this.themingParticipants=[],this.onThemingParticipantAddedEmitter=new Ae.Q5}onColorThemeChange(H){return this.themingParticipants.push(H),this.onThemingParticipantAddedEmitter.fire(H),(0,xe.OF)(()=>{const B=this.themingParticipants.indexOf(H);this.themingParticipants.splice(B,1)})}getThemingParticipants(){return this.themingParticipants}}let E=new y;Y.B.add(_.ThemingContribution,E);function S(P){return E.onColorThemeChange(P)}class O extends xe.JT{constructor(H){super(),this.themeService=H,this.theme=H.getColorTheme(),this._register(this.themeService.onDidColorThemeChange(B=>this.onThemeChange(B)))}onThemeChange(H){this.theme=H,this.updateStyles()}updateStyles(){}}},16632:function(Xe,Ge,w){"use strict";var p=w(54476),Ae=w(33885),xe=w(20068),ce=w(42978),Y=w(75931),m=w(92310),ve=w.n(m),U=w(18929),o=w(59301),X=["prefixCls","className","style","checked","disabled","defaultChecked","type","title","onChange"],L=(0,o.forwardRef)(function(_,y){var E=_.prefixCls,S=E===void 0?"rc-checkbox":E,O=_.className,P=_.style,H=_.checked,B=_.disabled,R=_.defaultChecked,J=R===void 0?!1:R,q=_.type,ge=q===void 0?"checkbox":q,_e=_.title,se=_.onChange,we=(0,Y.Z)(_,X),de=(0,o.useRef)(null),ie=(0,o.useRef)(null),oe=(0,U.Z)(J,{value:H}),K=(0,ce.Z)(oe,2),k=K[0],V=K[1];(0,o.useImperativeHandle)(y,function(){return{focus:function(x){var b;(b=de.current)===null||b===void 0||b.focus(x)},blur:function(){var x;(x=de.current)===null||x===void 0||x.blur()},input:de.current,nativeElement:ie.current}});var $=ve()(S,O,(0,xe.Z)((0,xe.Z)({},"".concat(S,"-checked"),k),"".concat(S,"-disabled"),B)),ae=function(x){B||("checked"in _||V(x.target.checked),se==null||se({target:(0,Ae.Z)((0,Ae.Z)({},_),{},{type:ge,checked:x.target.checked}),stopPropagation:function(){x.stopPropagation()},preventDefault:function(){x.preventDefault()},nativeEvent:x.nativeEvent}))};return o.createElement("span",{className:$,title:_e,style:P,ref:ie},o.createElement("input",(0,p.Z)({},we,{className:"".concat(S,"-input"),ref:de,onChange:ae,disabled:B,checked:!!k,type:ge})),o.createElement("span",{className:"".concat(S,"-inner")}))});Ge.Z=L},96478:function(Xe,Ge,w){"use strict";w.d(Ge,{Z:function(){return _e}});var p=w(54476),Ae=w(20068),xe=w(42978),ce=w(75931),Y=w(65030),m=w(92310),ve=w.n(m),U=w(8654),o=w(59301),X=w(10228),L=w(16089),_=X.Z.ESC,y=X.Z.TAB;function E(se){var we=se.visible,de=se.triggerRef,ie=se.onVisibleChange,oe=se.autoFocus,K=se.overlayRef,k=o.useRef(!1),V=function(){if(we){var x,b;(x=de.current)===null||x===void 0||(b=x.focus)===null||b===void 0||b.call(x),ie==null||ie(!1)}},$=function(){var x;return(x=K.current)!==null&&x!==void 0&&x.focus?(K.current.focus(),k.current=!0,!0):!1},ae=function(x){switch(x.keyCode){case _:V();break;case y:{var b=!1;k.current||(b=$()),b?x.preventDefault():V();break}}};o.useEffect(function(){return we?(window.addEventListener("keydown",ae),oe&&(0,L.Z)($,3),function(){window.removeEventListener("keydown",ae),k.current=!1}):function(){k.current=!1}},[we])}var S=(0,o.forwardRef)(function(se,we){var de=se.overlay,ie=se.arrow,oe=se.prefixCls,K=(0,o.useMemo)(function(){var V;return typeof de=="function"?V=de():V=de,V},[de]),k=(0,U.sQ)(we,(0,U.C4)(K));return o.createElement(o.Fragment,null,ie&&o.createElement("div",{className:"".concat(oe,"-arrow")}),o.cloneElement(K,{ref:(0,U.Yr)(K)?k:void 0}))}),O=S,P={adjustX:1,adjustY:1},H=[0,0],B={topLeft:{points:["bl","tl"],overflow:P,offset:[0,-4],targetOffset:H},top:{points:["bc","tc"],overflow:P,offset:[0,-4],targetOffset:H},topRight:{points:["br","tr"],overflow:P,offset:[0,-4],targetOffset:H},bottomLeft:{points:["tl","bl"],overflow:P,offset:[0,4],targetOffset:H},bottom:{points:["tc","bc"],overflow:P,offset:[0,4],targetOffset:H},bottomRight:{points:["tr","br"],overflow:P,offset:[0,4],targetOffset:H}},R=B,J=["arrow","prefixCls","transitionName","animation","align","placement","placements","getPopupContainer","showAction","hideAction","overlayClassName","overlayStyle","visible","trigger","autoFocus","overlay","children","onVisibleChange"];function q(se,we){var de,ie=se.arrow,oe=ie===void 0?!1:ie,K=se.prefixCls,k=K===void 0?"rc-dropdown":K,V=se.transitionName,$=se.animation,ae=se.align,re=se.placement,x=re===void 0?"bottomLeft":re,b=se.placements,W=b===void 0?R:b,fe=se.getPopupContainer,ke=se.showAction,je=se.hideAction,yt=se.overlayClassName,ht=se.overlayStyle,Ot=se.visible,Dt=se.trigger,Ve=Dt===void 0?["hover"]:Dt,Jt=se.autoFocus,ot=se.overlay,Et=se.children,qe=se.onVisibleChange,Kt=(0,ce.Z)(se,J),Te=o.useState(),F=(0,xe.Z)(Te,2),v=F[0],T=F[1],ee="visible"in se?Ot:v,N=o.useRef(null),z=o.useRef(null),he=o.useRef(null);o.useImperativeHandle(we,function(){return N.current});var Fe=function(st){T(st),qe==null||qe(st)};E({visible:ee,triggerRef:he,onVisibleChange:Fe,autoFocus:Jt,overlayRef:z});var Ne=function(st){var ct=se.onOverlayClick;T(!1),ct&&ct(st)},rt=function(){return o.createElement(O,{ref:z,overlay:ot,prefixCls:k,arrow:oe})},lt=function(){return typeof ot=="function"?rt:rt()},zt=function(){var st=se.minOverlayWidthMatchTrigger,ct=se.alignPoint;return"minOverlayWidthMatchTrigger"in se?st:!ct},Tt=function(){var st=se.openClassName;return st!==void 0?st:"".concat(k,"-open")},Ct=o.cloneElement(Et,{className:ve()((de=Et.props)===null||de===void 0?void 0:de.className,ee&&Tt()),ref:(0,U.Yr)(Et)?(0,U.sQ)(he,(0,U.C4)(Et)):void 0}),At=je;return!At&&Ve.indexOf("contextMenu")!==-1&&(At=["click"]),o.createElement(Y.Z,(0,p.Z)({builtinPlacements:W},Kt,{prefixCls:k,ref:N,popupClassName:ve()(yt,(0,Ae.Z)({},"".concat(k,"-show-arrow"),oe)),popupStyle:ht,action:Ve,showAction:ke,hideAction:At,popupPlacement:x,popupAlign:ae,popupTransitionName:V,popupAnimation:$,popupVisible:ee,stretch:zt()?"minWidth":"",popup:lt(),onPopupVisibleChange:Fe,onPopupClick:Ne,getPopupContainer:fe}),Ct)}var ge=o.forwardRef(q),_e=ge},66003:function(Xe,Ge,w){"use strict";w.d(Ge,{Z:function(){return ve}});var p=w(75931),Ae=w(33885),xe=w(76190),ce=w(59301),Y=["show"];function m(U,o){if(!o.max)return!0;var X=o.strategy(U);return X<=o.max}function ve(U,o){return ce.useMemo(function(){var X={};o&&(X.show=(0,xe.Z)(o)==="object"&&o.formatter?o.formatter:!!o),X=(0,Ae.Z)((0,Ae.Z)({},X),U);var L=X,_=L.show,y=(0,p.Z)(L,Y);return(0,Ae.Z)((0,Ae.Z)({},y),{},{show:!!_,showFormatter:typeof _=="function"?_:void 0,strategy:y.strategy||function(E){return E.length}})},[U,o])}},36901:function(Xe,Ge,w){"use strict";w.r(Ge),w.d(Ge,{BaseInput:function(){return X},default:function(){return R}});var p=w(33885),Ae=w(54476),xe=w(20068),ce=w(76190),Y=w(92310),m=w.n(Y),ve=w(59301),U=w(30292),o=ve.forwardRef(function(J,q){var ge,_e,se,we=J.inputElement,de=J.children,ie=J.prefixCls,oe=J.prefix,K=J.suffix,k=J.addonBefore,V=J.addonAfter,$=J.className,ae=J.style,re=J.disabled,x=J.readOnly,b=J.focused,W=J.triggerFocus,fe=J.allowClear,ke=J.value,je=J.handleReset,yt=J.hidden,ht=J.classes,Ot=J.classNames,Dt=J.dataAttrs,Ve=J.styles,Jt=J.components,ot=J.onClear,Et=de!=null?de:we,qe=(Jt==null?void 0:Jt.affixWrapper)||"span",Kt=(Jt==null?void 0:Jt.groupWrapper)||"span",Te=(Jt==null?void 0:Jt.wrapper)||"span",F=(Jt==null?void 0:Jt.groupAddon)||"span",v=(0,ve.useRef)(null),T=function(wt){var Lt;(Lt=v.current)!==null&&Lt!==void 0&&Lt.contains(wt.target)&&(W==null||W())},ee=(0,U.X3)(J),N=(0,ve.cloneElement)(Et,{value:ke,className:m()((ge=Et.props)===null||ge===void 0?void 0:ge.className,!ee&&(Ot==null?void 0:Ot.variant))||null}),z=(0,ve.useRef)(null);if(ve.useImperativeHandle(q,function(){return{nativeElement:z.current||v.current}}),ee){var he=null;if(fe){var Fe=!re&&!x&&ke,Ne="".concat(ie,"-clear-icon"),rt=(0,ce.Z)(fe)==="object"&&fe!==null&&fe!==void 0&&fe.clearIcon?fe.clearIcon:"\u2716";he=ve.createElement("button",{type:"button",tabIndex:-1,onClick:function(wt){je==null||je(wt),ot==null||ot()},onMouseDown:function(wt){return wt.preventDefault()},className:m()(Ne,(0,xe.Z)((0,xe.Z)({},"".concat(Ne,"-hidden"),!Fe),"".concat(Ne,"-has-suffix"),!!K))},rt)}var lt="".concat(ie,"-affix-wrapper"),zt=m()(lt,(0,xe.Z)((0,xe.Z)((0,xe.Z)((0,xe.Z)((0,xe.Z)({},"".concat(ie,"-disabled"),re),"".concat(lt,"-disabled"),re),"".concat(lt,"-focused"),b),"".concat(lt,"-readonly"),x),"".concat(lt,"-input-with-clear-btn"),K&&fe&&ke),ht==null?void 0:ht.affixWrapper,Ot==null?void 0:Ot.affixWrapper,Ot==null?void 0:Ot.variant),Tt=(K||fe)&&ve.createElement("span",{className:m()("".concat(ie,"-suffix"),Ot==null?void 0:Ot.suffix),style:Ve==null?void 0:Ve.suffix},he,K);N=ve.createElement(qe,(0,Ae.Z)({className:zt,style:Ve==null?void 0:Ve.affixWrapper,onClick:T},Dt==null?void 0:Dt.affixWrapper,{ref:v}),oe&&ve.createElement("span",{className:m()("".concat(ie,"-prefix"),Ot==null?void 0:Ot.prefix),style:Ve==null?void 0:Ve.prefix},oe),N,Tt)}if((0,U.He)(J)){var Ct="".concat(ie,"-group"),At="".concat(Ct,"-addon"),It="".concat(Ct,"-wrapper"),st=m()("".concat(ie,"-wrapper"),Ct,ht==null?void 0:ht.wrapper,Ot==null?void 0:Ot.wrapper),ct=m()(It,(0,xe.Z)({},"".concat(It,"-disabled"),re),ht==null?void 0:ht.group,Ot==null?void 0:Ot.groupWrapper);N=ve.createElement(Kt,{className:ct,ref:z},ve.createElement(Te,{className:st},k&&ve.createElement(F,{className:At},k),N,V&&ve.createElement(F,{className:At},V)))}return ve.cloneElement(N,{className:m()((_e=N.props)===null||_e===void 0?void 0:_e.className,$)||null,style:(0,p.Z)((0,p.Z)({},(se=N.props)===null||se===void 0?void 0:se.style),ae),hidden:yt})}),X=o,L=w(94480),_=w(42978),y=w(75931),E=w(18929),S=w(2738),O=w(66003),P=["autoComplete","onChange","onFocus","onBlur","onPressEnter","onKeyDown","onKeyUp","prefixCls","disabled","htmlSize","className","maxLength","suffix","showCount","count","type","classes","classNames","styles","onCompositionStart","onCompositionEnd"],H=(0,ve.forwardRef)(function(J,q){var ge=J.autoComplete,_e=J.onChange,se=J.onFocus,we=J.onBlur,de=J.onPressEnter,ie=J.onKeyDown,oe=J.onKeyUp,K=J.prefixCls,k=K===void 0?"rc-input":K,V=J.disabled,$=J.htmlSize,ae=J.className,re=J.maxLength,x=J.suffix,b=J.showCount,W=J.count,fe=J.type,ke=fe===void 0?"text":fe,je=J.classes,yt=J.classNames,ht=J.styles,Ot=J.onCompositionStart,Dt=J.onCompositionEnd,Ve=(0,y.Z)(J,P),Jt=(0,ve.useState)(!1),ot=(0,_.Z)(Jt,2),Et=ot[0],qe=ot[1],Kt=(0,ve.useRef)(!1),Te=(0,ve.useRef)(!1),F=(0,ve.useRef)(null),v=(0,ve.useRef)(null),T=function(vn){F.current&&(0,U.nH)(F.current,vn)},ee=(0,E.Z)(J.defaultValue,{value:J.value}),N=(0,_.Z)(ee,2),z=N[0],he=N[1],Fe=z==null?"":String(z),Ne=(0,ve.useState)(null),rt=(0,_.Z)(Ne,2),lt=rt[0],zt=rt[1],Tt=(0,O.Z)(W,b),Ct=Tt.max||re,At=Tt.strategy(Fe),It=!!Ct&&At>Ct;(0,ve.useImperativeHandle)(q,function(){var Vt;return{focus:T,blur:function(){var He;(He=F.current)===null||He===void 0||He.blur()},setSelectionRange:function(He,Le,De){var te;(te=F.current)===null||te===void 0||te.setSelectionRange(He,Le,De)},select:function(){var He;(He=F.current)===null||He===void 0||He.select()},input:F.current,nativeElement:((Vt=v.current)===null||Vt===void 0?void 0:Vt.nativeElement)||F.current}}),(0,ve.useEffect)(function(){Te.current&&(Te.current=!1),qe(function(Vt){return Vt&&V?!1:Vt})},[V]);var st=function(vn,He,Le){var De=He;if(!Kt.current&&Tt.exceedFormatter&&Tt.max&&Tt.strategy(He)>Tt.max){if(De=Tt.exceedFormatter(He,{max:Tt.max}),He!==De){var te,ue;zt([((te=F.current)===null||te===void 0?void 0:te.selectionStart)||0,((ue=F.current)===null||ue===void 0?void 0:ue.selectionEnd)||0])}}else if(Le.source==="compositionEnd")return;he(De),F.current&&(0,U.rJ)(F.current,vn,_e,De)};(0,ve.useEffect)(function(){if(lt){var Vt;(Vt=F.current)===null||Vt===void 0||Vt.setSelectionRange.apply(Vt,(0,L.Z)(lt))}},[lt]);var ct=function(vn){st(vn,vn.target.value,{source:"change"})},Pe=function(vn){Kt.current=!1,st(vn,vn.currentTarget.value,{source:"compositionEnd"}),Dt==null||Dt(vn)},wt=function(vn){de&&vn.key==="Enter"&&!Te.current&&(Te.current=!0,de(vn)),ie==null||ie(vn)},Lt=function(vn){vn.key==="Enter"&&(Te.current=!1),oe==null||oe(vn)},St=function(vn){qe(!0),se==null||se(vn)},en=function(vn){Te.current&&(Te.current=!1),qe(!1),we==null||we(vn)},Yt=function(vn){he(""),T(),F.current&&(0,U.rJ)(F.current,vn,_e)},Ht=It&&"".concat(k,"-out-of-range"),In=function(){var vn=(0,S.Z)(J,["prefixCls","onPressEnter","addonBefore","addonAfter","prefix","suffix","allowClear","defaultValue","showCount","count","classes","htmlSize","styles","classNames","onClear"]);return ve.createElement("input",(0,Ae.Z)({autoComplete:ge},vn,{onChange:ct,onFocus:St,onBlur:en,onKeyDown:wt,onKeyUp:Lt,className:m()(k,(0,xe.Z)({},"".concat(k,"-disabled"),V),yt==null?void 0:yt.input),style:ht==null?void 0:ht.input,ref:F,size:$,type:ke,onCompositionStart:function(Le){Kt.current=!0,Ot==null||Ot(Le)},onCompositionEnd:Pe}))},$n=function(){var vn=Number(Ct)>0;if(x||Tt.show){var He=Tt.showFormatter?Tt.showFormatter({value:Fe,count:At,maxLength:Ct}):"".concat(At).concat(vn?" / ".concat(Ct):"");return ve.createElement(ve.Fragment,null,Tt.show&&ve.createElement("span",{className:m()("".concat(k,"-show-count-suffix"),(0,xe.Z)({},"".concat(k,"-show-count-has-suffix"),!!x),yt==null?void 0:yt.count),style:(0,p.Z)({},ht==null?void 0:ht.count)},He),x)}return null};return ve.createElement(X,(0,Ae.Z)({},Ve,{prefixCls:k,className:m()(ae,Ht),handleReset:Yt,value:Fe,focused:Et,triggerFocus:T,suffix:$n(),disabled:V,classes:je,classNames:yt,styles:ht}),In())}),B=H,R=B},30292:function(Xe,Ge,w){"use strict";w.d(Ge,{He:function(){return p},X3:function(){return Ae},nH:function(){return Y},rJ:function(){return ce}});function p(m){return!!(m.addonBefore||m.addonAfter)}function Ae(m){return!!(m.prefix||m.suffix||m.allowClear)}function xe(m,ve,U){var o=ve.cloneNode(!0),X=Object.create(m,{target:{value:o},currentTarget:{value:o}});return o.value=U,typeof ve.selectionStart=="number"&&typeof ve.selectionEnd=="number"&&(o.selectionStart=ve.selectionStart,o.selectionEnd=ve.selectionEnd),o.setSelectionRange=function(){ve.setSelectionRange.apply(ve,arguments)},X}function ce(m,ve,U,o){if(U){var X=ve;if(ve.type==="click"){X=xe(ve,m,""),U(X);return}if(m.type!=="file"&&o!==void 0){X=xe(ve,m,o),U(X);return}U(X)}}function Y(m,ve){if(m){m.focus(ve);var U=ve||{},o=U.cursor;if(o){var X=m.value.length;switch(o){case"start":m.setSelectionRange(0,0);break;case"end":m.setSelectionRange(X,X);break;default:m.setSelectionRange(0,X)}}}}},28321:function(Xe,Ge,w){"use strict";w.d(Ge,{iz:function(){return oi},ck:function(){return De},BW:function(){return ji},sN:function(){return De},Wd:function(){return _n},ZP:function(){return wn},Xl:function(){return de}});var p=w(54476),Ae=w(20068),xe=w(33885),ce=w(94480),Y=w(42978),m=w(75931),ve=w(92310),U=w.n(ve),o=w(83836),X=w(18929),L=w(13697),_=w(48736),y=w(59301),E=w(4676),S=y.createContext(null);function O(We,ut){return We===void 0?null:"".concat(We,"-").concat(ut)}function P(We){var ut=y.useContext(S);return O(ut,We)}var H=w(80547),B=["children","locked"],R=y.createContext(null);function J(We,ut){var Ut=(0,xe.Z)({},We);return Object.keys(ut).forEach(function(dt){var vt=ut[dt];vt!==void 0&&(Ut[dt]=vt)}),Ut}function q(We){var ut=We.children,Ut=We.locked,dt=(0,m.Z)(We,B),vt=y.useContext(R),Mt=(0,H.Z)(function(){return J(vt,dt)},[vt,dt],function(Wt,sn){return!Ut&&(Wt[0]!==sn[0]||!(0,L.Z)(Wt[1],sn[1],!0))});return y.createElement(R.Provider,{value:Mt},ut)}var ge=[],_e=y.createContext(null);function se(){return y.useContext(_e)}var we=y.createContext(ge);function de(We){var ut=y.useContext(we);return y.useMemo(function(){return We!==void 0?[].concat((0,ce.Z)(ut),[We]):ut},[ut,We])}var ie=y.createContext(null),oe=y.createContext({}),K=oe,k=w(29194);function V(We){var ut=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;if((0,k.Z)(We)){var Ut=We.nodeName.toLowerCase(),dt=["input","select","textarea","button"].includes(Ut)||We.isContentEditable||Ut==="a"&&!!We.getAttribute("href"),vt=We.getAttribute("tabindex"),Mt=Number(vt),Wt=null;return vt&&!Number.isNaN(Mt)?Wt=Mt:dt&&Wt===null&&(Wt=0),dt&&We.disabled&&(Wt=null),Wt!==null&&(Wt>=0||ut&&Wt<0)}return!1}function $(We){var ut=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,Ut=(0,ce.Z)(We.querySelectorAll("*")).filter(function(dt){return V(dt,ut)});return V(We,ut)&&Ut.unshift(We),Ut}var ae=null;function re(){ae=document.activeElement}function x(){ae=null}function b(){if(ae)try{ae.focus()}catch(We){}}function W(We,ut){if(ut.keyCode===9){var Ut=$(We),dt=Ut[ut.shiftKey?0:Ut.length-1],vt=dt===document.activeElement||We===document.activeElement;if(vt){var Mt=Ut[ut.shiftKey?Ut.length-1:0];Mt.focus(),ut.preventDefault()}}}var fe=w(10228),ke=w(16089),je=fe.Z.LEFT,yt=fe.Z.RIGHT,ht=fe.Z.UP,Ot=fe.Z.DOWN,Dt=fe.Z.ENTER,Ve=fe.Z.ESC,Jt=fe.Z.HOME,ot=fe.Z.END,Et=[ht,Ot,je,yt];function qe(We,ut,Ut,dt){var vt,Mt="prev",Wt="next",sn="children",ln="parent";if(We==="inline"&&dt===Dt)return{inlineTrigger:!0};var gn=(0,Ae.Z)((0,Ae.Z)({},ht,Mt),Ot,Wt),ni=(0,Ae.Z)((0,Ae.Z)((0,Ae.Z)((0,Ae.Z)({},je,Ut?Wt:Mt),yt,Ut?Mt:Wt),Ot,sn),Dt,sn),An=(0,Ae.Z)((0,Ae.Z)((0,Ae.Z)((0,Ae.Z)((0,Ae.Z)((0,Ae.Z)({},ht,Mt),Ot,Wt),Dt,sn),Ve,ln),je,Ut?sn:ln),yt,Ut?ln:sn),Hn={inline:gn,horizontal:ni,vertical:An,inlineSub:gn,horizontalSub:An,verticalSub:An},j=(vt=Hn["".concat(We).concat(ut?"":"Sub")])===null||vt===void 0?void 0:vt[dt];switch(j){case Mt:return{offset:-1,sibling:!0};case Wt:return{offset:1,sibling:!0};case ln:return{offset:-1,sibling:!1};case sn:return{offset:1,sibling:!1};default:return null}}function Kt(We){for(var ut=We;ut;){if(ut.getAttribute("data-menu-list"))return ut;ut=ut.parentElement}return null}function Te(We,ut){for(var Ut=We||document.activeElement;Ut;){if(ut.has(Ut))return Ut;Ut=Ut.parentElement}return null}function F(We,ut){var Ut=$(We,!0);return Ut.filter(function(dt){return ut.has(dt)})}function v(We,ut,Ut){var dt=arguments.length>3&&arguments[3]!==void 0?arguments[3]:1;if(!We)return null;var vt=F(We,ut),Mt=vt.length,Wt=vt.findIndex(function(sn){return Ut===sn});return dt<0?Wt===-1?Wt=Mt-1:Wt-=1:dt>0&&(Wt+=1),Wt=(Wt+Mt)%Mt,vt[Wt]}var T=function(ut,Ut){var dt=new Set,vt=new Map,Mt=new Map;return ut.forEach(function(Wt){var sn=document.querySelector("[data-menu-id='".concat(O(Ut,Wt),"']"));sn&&(dt.add(sn),Mt.set(sn,Wt),vt.set(Wt,sn))}),{elements:dt,key2element:vt,element2key:Mt}};function ee(We,ut,Ut,dt,vt,Mt,Wt,sn,ln,gn){var ni=y.useRef(),An=y.useRef();An.current=ut;var Hn=function(){ke.Z.cancel(ni.current)};return y.useEffect(function(){return function(){Hn()}},[]),function(j){var G=j.which;if([].concat(Et,[Dt,Ve,Jt,ot]).includes(G)){var pe=Mt(),Ee=T(pe,dt),ze=Ee,$e=ze.elements,bt=ze.key2element,xt=ze.element2key,Gt=bt.get(ut),_t=Te(Gt,$e),Ce=xt.get(_t),et=qe(We,Wt(Ce,!0).length===1,Ut,G);if(!et&&G!==Jt&&G!==ot)return;(Et.includes(G)||[Jt,ot].includes(G))&&j.preventDefault();var Pt=function($t){if($t){var kn=$t,Ln=$t.querySelector("a");Ln!=null&&Ln.getAttribute("href")&&(kn=Ln);var Cn=xt.get($t);sn(Cn),Hn(),ni.current=(0,ke.Z)(function(){An.current===Cn&&kn.focus()})}};if([Jt,ot].includes(G)||et.sibling||!_t){var an;!_t||We==="inline"?an=vt.current:an=Kt(_t);var un,qt=F(an,$e);G===Jt?un=qt[0]:G===ot?un=qt[qt.length-1]:un=v(an,$e,_t,et.offset),Pt(un)}else if(et.inlineTrigger)ln(Ce);else if(et.offset>0)ln(Ce,!0),Hn(),ni.current=(0,ke.Z)(function(){Ee=T(pe,dt);var on=_t.getAttribute("aria-controls"),$t=document.getElementById(on),kn=v($t,Ee.elements);Pt(kn)},5);else if(et.offset<0){var tn=Wt(Ce,!0),mn=tn[tn.length-2],Tn=bt.get(mn);ln(mn,!1),Pt(Tn)}}gn==null||gn(j)}}function N(We){Promise.resolve().then(We)}var z="__RC_UTIL_PATH_SPLIT__",he=function(ut){return ut.join(z)},Fe=function(ut){return ut.split(z)},Ne="rc-menu-more";function rt(){var We=y.useState({}),ut=(0,Y.Z)(We,2),Ut=ut[1],dt=(0,y.useRef)(new Map),vt=(0,y.useRef)(new Map),Mt=y.useState([]),Wt=(0,Y.Z)(Mt,2),sn=Wt[0],ln=Wt[1],gn=(0,y.useRef)(0),ni=(0,y.useRef)(!1),An=function(){ni.current||Ut({})},Hn=(0,y.useCallback)(function(bt,xt){var Gt=he(xt);vt.current.set(Gt,bt),dt.current.set(bt,Gt),gn.current+=1;var _t=gn.current;N(function(){_t===gn.current&&An()})},[]),j=(0,y.useCallback)(function(bt,xt){var Gt=he(xt);vt.current.delete(Gt),dt.current.delete(bt)},[]),G=(0,y.useCallback)(function(bt){ln(bt)},[]),pe=(0,y.useCallback)(function(bt,xt){var Gt=dt.current.get(bt)||"",_t=Fe(Gt);return xt&&sn.includes(_t[0])&&_t.unshift(Ne),_t},[sn]),Ee=(0,y.useCallback)(function(bt,xt){return bt.filter(function(Gt){return Gt!==void 0}).some(function(Gt){var _t=pe(Gt,!0);return _t.includes(xt)})},[pe]),ze=function(){var xt=(0,ce.Z)(dt.current.keys());return sn.length&&xt.push(Ne),xt},$e=(0,y.useCallback)(function(bt){var xt="".concat(dt.current.get(bt)).concat(z),Gt=new Set;return(0,ce.Z)(vt.current.keys()).forEach(function(_t){_t.startsWith(xt)&&Gt.add(vt.current.get(_t))}),Gt},[]);return y.useEffect(function(){return function(){ni.current=!0}},[]),{registerPath:Hn,unregisterPath:j,refreshOverflowKeys:G,isSubPathKey:Ee,getKeyPath:pe,getKeys:ze,getSubPathKeys:$e}}function lt(We){var ut=y.useRef(We);ut.current=We;var Ut=y.useCallback(function(){for(var dt,vt=arguments.length,Mt=new Array(vt),Wt=0;Wt<vt;Wt++)Mt[Wt]=arguments[Wt];return(dt=ut.current)===null||dt===void 0?void 0:dt.call.apply(dt,[ut].concat(Mt))},[]);return We?Ut:void 0}var zt=Math.random().toFixed(5).toString().slice(2),Tt=0;function Ct(We){var ut=(0,X.Z)(We,{value:We}),Ut=(0,Y.Z)(ut,2),dt=Ut[0],vt=Ut[1];return y.useEffect(function(){Tt+=1;var Mt="".concat(zt,"-").concat(Tt);vt("rc-menu-uuid-".concat(Mt))},[]),dt}var At=w(67732),It=w(83652),st=w(42403),ct=w(158),Pe=w(2738),wt=w(8654);function Lt(We,ut,Ut,dt){var vt=y.useContext(R),Mt=vt.activeKey,Wt=vt.onActive,sn=vt.onInactive,ln={active:Mt===We};return ut||(ln.onMouseEnter=function(gn){Ut==null||Ut({key:We,domEvent:gn}),Wt(We)},ln.onMouseLeave=function(gn){dt==null||dt({key:We,domEvent:gn}),sn(We)}),ln}function St(We){var ut=y.useContext(R),Ut=ut.mode,dt=ut.rtl,vt=ut.inlineIndent;if(Ut!=="inline")return null;var Mt=We;return dt?{paddingRight:Mt*vt}:{paddingLeft:Mt*vt}}function en(We){var ut=We.icon,Ut=We.props,dt=We.children,vt;return ut===null||ut===!1?null:(typeof ut=="function"?vt=y.createElement(ut,(0,xe.Z)({},Ut)):typeof ut!="boolean"&&(vt=ut),vt||dt||null)}var Yt=["item"];function Ht(We){var ut=We.item,Ut=(0,m.Z)(We,Yt);return Object.defineProperty(Ut,"item",{get:function(){return(0,_.ZP)(!1,"`info.item` is deprecated since we will move to function component that not provides React Node instance in future."),ut}}),Ut}var In=["title","attribute","elementRef"],$n=["style","className","eventKey","warnKey","disabled","itemIcon","children","role","onMouseEnter","onMouseLeave","onClick","onKeyDown","onFocus"],Vt=["active"],vn=function(We){(0,st.Z)(Ut,We);var ut=(0,ct.Z)(Ut);function Ut(){return(0,At.Z)(this,Ut),ut.apply(this,arguments)}return(0,It.Z)(Ut,[{key:"render",value:function(){var vt=this.props,Mt=vt.title,Wt=vt.attribute,sn=vt.elementRef,ln=(0,m.Z)(vt,In),gn=(0,Pe.Z)(ln,["eventKey","popupClassName","popupOffset","onTitleClick"]);return(0,_.ZP)(!Wt,"`attribute` of Menu.Item is deprecated. Please pass attribute directly."),y.createElement(o.Z.Item,(0,p.Z)({},Wt,{title:typeof Mt=="string"?Mt:void 0},gn,{ref:sn}))}}]),Ut}(y.Component),He=y.forwardRef(function(We,ut){var Ut=We.style,dt=We.className,vt=We.eventKey,Mt=We.warnKey,Wt=We.disabled,sn=We.itemIcon,ln=We.children,gn=We.role,ni=We.onMouseEnter,An=We.onMouseLeave,Hn=We.onClick,j=We.onKeyDown,G=We.onFocus,pe=(0,m.Z)(We,$n),Ee=P(vt),ze=y.useContext(R),$e=ze.prefixCls,bt=ze.onItemClick,xt=ze.disabled,Gt=ze.overflowDisabled,_t=ze.itemIcon,Ce=ze.selectedKeys,et=ze.onActive,Pt=y.useContext(K),an=Pt._internalRenderMenuItem,un="".concat($e,"-item"),qt=y.useRef(),tn=y.useRef(),mn=xt||Wt,Tn=(0,wt.x1)(ut,tn),on=de(vt),$t=function(si){return{key:vt,keyPath:(0,ce.Z)(on).reverse(),item:qt.current,domEvent:si}},kn=sn||_t,Ln=Lt(vt,mn,ni,An),Cn=Ln.active,Pn=(0,m.Z)(Ln,Vt),En=Ce.includes(vt),ii=St(on.length),ri=function(si){if(!mn){var mi=$t(si);Hn==null||Hn(Ht(mi)),bt(mi)}},qn=function(si){if(j==null||j(si),si.which===fe.Z.ENTER){var mi=$t(si);Hn==null||Hn(Ht(mi)),bt(mi)}},Ti=function(si){et(vt),G==null||G(si)},Li={};We.role==="option"&&(Li["aria-selected"]=En);var Ei=y.createElement(vn,(0,p.Z)({ref:qt,elementRef:Tn,role:gn===null?"none":gn||"menuitem",tabIndex:Wt?null:-1,"data-menu-id":Gt&&Ee?null:Ee},(0,Pe.Z)(pe,["extra"]),Pn,Li,{component:"li","aria-disabled":Wt,style:(0,xe.Z)((0,xe.Z)({},ii),Ut),className:U()(un,(0,Ae.Z)((0,Ae.Z)((0,Ae.Z)({},"".concat(un,"-active"),Cn),"".concat(un,"-selected"),En),"".concat(un,"-disabled"),mn),dt),onClick:ri,onKeyDown:qn,onFocus:Ti}),ln,y.createElement(en,{props:(0,xe.Z)((0,xe.Z)({},We),{},{isSelected:En}),icon:kn}));return an&&(Ei=an(Ei,We,{selected:En})),Ei});function Le(We,ut){var Ut=We.eventKey,dt=se(),vt=de(Ut);return y.useEffect(function(){if(dt)return dt.registerPath(Ut,vt),function(){dt.unregisterPath(Ut,vt)}},[vt]),dt?null:y.createElement(He,(0,p.Z)({},We,{ref:ut}))}var De=y.forwardRef(Le),te=["className","children"],ue=function(ut,Ut){var dt=ut.className,vt=ut.children,Mt=(0,m.Z)(ut,te),Wt=y.useContext(R),sn=Wt.prefixCls,ln=Wt.mode,gn=Wt.rtl;return y.createElement("ul",(0,p.Z)({className:U()(sn,gn&&"".concat(sn,"-rtl"),"".concat(sn,"-sub"),"".concat(sn,"-").concat(ln==="inline"?"inline":"vertical"),dt),role:"menu"},Mt,{"data-menu-list":!0,ref:Ut}),vt)},Se=y.forwardRef(ue);Se.displayName="SubMenuList";var Ie=Se,Me=w(11592);function Ke(We,ut){return(0,Me.Z)(We).map(function(Ut,dt){if(y.isValidElement(Ut)){var vt,Mt,Wt=Ut.key,sn=(vt=(Mt=Ut.props)===null||Mt===void 0?void 0:Mt.eventKey)!==null&&vt!==void 0?vt:Wt,ln=sn==null;ln&&(sn="tmp_key-".concat([].concat((0,ce.Z)(ut),[dt]).join("-")));var gn={key:sn,eventKey:sn};return y.cloneElement(Ut,gn)}return Ut})}var Ye=w(65030),it={adjustX:1,adjustY:1},pt={topLeft:{points:["bl","tl"],overflow:it},topRight:{points:["br","tr"],overflow:it},bottomLeft:{points:["tl","bl"],overflow:it},bottomRight:{points:["tr","br"],overflow:it},leftTop:{points:["tr","tl"],overflow:it},leftBottom:{points:["br","bl"],overflow:it},rightTop:{points:["tl","tr"],overflow:it},rightBottom:{points:["bl","br"],overflow:it}},Xt={topLeft:{points:["bl","tl"],overflow:it},topRight:{points:["br","tr"],overflow:it},bottomLeft:{points:["tl","bl"],overflow:it},bottomRight:{points:["tr","br"],overflow:it},rightTop:{points:["tr","tl"],overflow:it},rightBottom:{points:["br","bl"],overflow:it},leftTop:{points:["tl","tr"],overflow:it},leftBottom:{points:["bl","br"],overflow:it}},hn=null;function kt(We,ut,Ut){if(ut)return ut;if(Ut)return Ut[We]||Ut.other}var Nt={horizontal:"bottomLeft",vertical:"rightTop","vertical-left":"rightTop","vertical-right":"leftTop"};function fn(We){var ut=We.prefixCls,Ut=We.visible,dt=We.children,vt=We.popup,Mt=We.popupStyle,Wt=We.popupClassName,sn=We.popupOffset,ln=We.disabled,gn=We.mode,ni=We.onVisibleChange,An=y.useContext(R),Hn=An.getPopupContainer,j=An.rtl,G=An.subMenuOpenDelay,pe=An.subMenuCloseDelay,Ee=An.builtinPlacements,ze=An.triggerSubMenuAction,$e=An.forceSubMenuRender,bt=An.rootClassName,xt=An.motion,Gt=An.defaultMotions,_t=y.useState(!1),Ce=(0,Y.Z)(_t,2),et=Ce[0],Pt=Ce[1],an=j?(0,xe.Z)((0,xe.Z)({},Xt),Ee):(0,xe.Z)((0,xe.Z)({},pt),Ee),un=Nt[gn],qt=kt(gn,xt,Gt),tn=y.useRef(qt);gn!=="inline"&&(tn.current=qt);var mn=(0,xe.Z)((0,xe.Z)({},tn.current),{},{leavedClassName:"".concat(ut,"-hidden"),removeOnLeave:!1,motionAppear:!0}),Tn=y.useRef();return y.useEffect(function(){return Tn.current=(0,ke.Z)(function(){Pt(Ut)}),function(){ke.Z.cancel(Tn.current)}},[Ut]),y.createElement(Ye.Z,{prefixCls:ut,popupClassName:U()("".concat(ut,"-popup"),(0,Ae.Z)({},"".concat(ut,"-rtl"),j),Wt,bt),stretch:gn==="horizontal"?"minWidth":null,getPopupContainer:Hn,builtinPlacements:an,popupPlacement:un,popupVisible:et,popup:vt,popupStyle:Mt,popupAlign:sn&&{offset:sn},action:ln?[]:[ze],mouseEnterDelay:G,mouseLeaveDelay:pe,onPopupVisibleChange:ni,forceRender:$e,popupMotion:mn,fresh:!0},dt)}var Fn=w(77900);function Re(We){var ut=We.id,Ut=We.open,dt=We.keyPath,vt=We.children,Mt="inline",Wt=y.useContext(R),sn=Wt.prefixCls,ln=Wt.forceSubMenuRender,gn=Wt.motion,ni=Wt.defaultMotions,An=Wt.mode,Hn=y.useRef(!1);Hn.current=An===Mt;var j=y.useState(!Hn.current),G=(0,Y.Z)(j,2),pe=G[0],Ee=G[1],ze=Hn.current?Ut:!1;y.useEffect(function(){Hn.current&&Ee(!1)},[An]);var $e=(0,xe.Z)({},kt(Mt,gn,ni));dt.length>1&&($e.motionAppear=!1);var bt=$e.onVisibleChanged;return $e.onVisibleChanged=function(xt){return!Hn.current&&!xt&&Ee(!0),bt==null?void 0:bt(xt)},pe?null:y.createElement(q,{mode:Mt,locked:!Hn.current},y.createElement(Fn.default,(0,p.Z)({visible:ze},$e,{forceRender:ln,removeOnLeave:!1,leavedClassName:"".concat(sn,"-hidden")}),function(xt){var Gt=xt.className,_t=xt.style;return y.createElement(Ie,{id:ut,className:Gt,style:_t},vt)}))}var Nn=["style","className","title","eventKey","warnKey","disabled","internalPopupClose","children","itemIcon","expandIcon","popupClassName","popupOffset","popupStyle","onClick","onMouseEnter","onMouseLeave","onTitleClick","onTitleMouseEnter","onTitleMouseLeave"],Rt=["active"],Ft=y.forwardRef(function(We,ut){var Ut=We.style,dt=We.className,vt=We.title,Mt=We.eventKey,Wt=We.warnKey,sn=We.disabled,ln=We.internalPopupClose,gn=We.children,ni=We.itemIcon,An=We.expandIcon,Hn=We.popupClassName,j=We.popupOffset,G=We.popupStyle,pe=We.onClick,Ee=We.onMouseEnter,ze=We.onMouseLeave,$e=We.onTitleClick,bt=We.onTitleMouseEnter,xt=We.onTitleMouseLeave,Gt=(0,m.Z)(We,Nn),_t=P(Mt),Ce=y.useContext(R),et=Ce.prefixCls,Pt=Ce.mode,an=Ce.openKeys,un=Ce.disabled,qt=Ce.overflowDisabled,tn=Ce.activeKey,mn=Ce.selectedKeys,Tn=Ce.itemIcon,on=Ce.expandIcon,$t=Ce.onItemClick,kn=Ce.onOpenChange,Ln=Ce.onActive,Cn=y.useContext(K),Pn=Cn._internalRenderSubMenuItem,En=y.useContext(ie),ii=En.isSubPathKey,ri=de(),qn="".concat(et,"-submenu"),Ti=un||sn,Li=y.useRef(),Ei=y.useRef(),_i=ni!=null?ni:Tn,si=An!=null?An:on,mi=an.includes(Mt),Ai=!qt&&mi,dr=ii(mn,Mt),Ii=Lt(Mt,Ti,bt,xt),Ni=Ii.active,Gi=(0,m.Z)(Ii,Rt),Ui=y.useState(!1),hi=(0,Y.Z)(Ui,2),nr=hi[0],Ji=hi[1],ir=function(_r){Ti||Ji(_r)},pr=function(_r){ir(!0),Ee==null||Ee({key:Mt,domEvent:_r})},Vn=function(_r){ir(!1),ze==null||ze({key:Mt,domEvent:_r})},gr=y.useMemo(function(){return Ni||(Pt!=="inline"?nr||ii([tn],Mt):!1)},[Pt,Ni,tn,nr,Mt,ii]),sr=St(ri.length),hr=function(_r){Ti||($e==null||$e({key:Mt,domEvent:_r}),Pt==="inline"&&kn(Mt,!mi))},Fr=lt(function(Xi){pe==null||pe(Ht(Xi)),$t(Xi)}),Nr=function(_r){Pt!=="inline"&&kn(Mt,_r)},Kr=function(){Ln(Mt)},Gr=_t&&"".concat(_t,"-popup"),bi=y.useMemo(function(){return y.createElement(en,{icon:Pt!=="horizontal"?si:void 0,props:(0,xe.Z)((0,xe.Z)({},We),{},{isOpen:Ai,isSubMenu:!0})},y.createElement("i",{className:"".concat(qn,"-arrow")}))},[Pt,si,We,Ai,qn]),Qi=y.createElement("div",(0,p.Z)({role:"menuitem",style:sr,className:"".concat(qn,"-title"),tabIndex:Ti?null:-1,ref:Li,title:typeof vt=="string"?vt:null,"data-menu-id":qt&&_t?null:_t,"aria-expanded":Ai,"aria-haspopup":!0,"aria-controls":Gr,"aria-disabled":Ti,onClick:hr,onFocus:Kr},Gi),vt,bi),mr=y.useRef(Pt);if(Pt!=="inline"&&ri.length>1?mr.current="vertical":mr.current=Pt,!qt){var Ur=mr.current;Qi=y.createElement(fn,{mode:Ur,prefixCls:qn,visible:!ln&&Ai&&Pt!=="inline",popupClassName:Hn,popupOffset:j,popupStyle:G,popup:y.createElement(q,{mode:Ur==="horizontal"?"vertical":Ur},y.createElement(Ie,{id:Gr,ref:Ei},gn)),disabled:Ti,onVisibleChange:Nr},Qi)}var ur=y.createElement(o.Z.Item,(0,p.Z)({ref:ut,role:"none"},Gt,{component:"li",style:Ut,className:U()(qn,"".concat(qn,"-").concat(Pt),dt,(0,Ae.Z)((0,Ae.Z)((0,Ae.Z)((0,Ae.Z)({},"".concat(qn,"-open"),Ai),"".concat(qn,"-active"),gr),"".concat(qn,"-selected"),dr),"".concat(qn,"-disabled"),Ti)),onMouseEnter:pr,onMouseLeave:Vn}),Qi,!qt&&y.createElement(Re,{id:Gr,open:Ai,keyPath:ri},gn));return Pn&&(ur=Pn(ur,We,{selected:dr,active:gr,open:Ai,disabled:Ti})),y.createElement(q,{onItemClick:Fr,mode:Pt==="horizontal"?"vertical":Pt,itemIcon:_i,expandIcon:si},ur)}),rn=y.forwardRef(function(We,ut){var Ut=We.eventKey,dt=We.children,vt=de(Ut),Mt=Ke(dt,vt),Wt=se();y.useEffect(function(){if(Wt)return Wt.registerPath(Ut,vt),function(){Wt.unregisterPath(Ut,vt)}},[vt]);var sn;return Wt?sn=Mt:sn=y.createElement(Ft,(0,p.Z)({ref:ut},We),Mt),y.createElement(we.Provider,{value:vt},sn)}),_n=rn,Mn=w(76190);function oi(We){var ut=We.className,Ut=We.style,dt=y.useContext(R),vt=dt.prefixCls,Mt=se();return Mt?null:y.createElement("li",{role:"separator",className:U()("".concat(vt,"-item-divider"),ut),style:Ut})}var Oi=["className","title","eventKey","children"],ki=y.forwardRef(function(We,ut){var Ut=We.className,dt=We.title,vt=We.eventKey,Mt=We.children,Wt=(0,m.Z)(We,Oi),sn=y.useContext(R),ln=sn.prefixCls,gn="".concat(ln,"-item-group");return y.createElement("li",(0,p.Z)({ref:ut,role:"presentation"},Wt,{onClick:function(An){return An.stopPropagation()},className:U()(gn,Ut)}),y.createElement("div",{role:"presentation",className:"".concat(gn,"-title"),title:typeof dt=="string"?dt:void 0},dt),y.createElement("ul",{role:"group",className:"".concat(gn,"-list")},Mt))}),vi=y.forwardRef(function(We,ut){var Ut=We.eventKey,dt=We.children,vt=de(Ut),Mt=Ke(dt,vt),Wt=se();return Wt?Mt:y.createElement(ki,(0,p.Z)({ref:ut},(0,Pe.Z)(We,["warnKey"])),Mt)}),ji=vi,ti=["label","children","key","type","extra"];function Si(We,ut,Ut){var dt=ut.item,vt=ut.group,Mt=ut.submenu,Wt=ut.divider;return(We||[]).map(function(sn,ln){if(sn&&(0,Mn.Z)(sn)==="object"){var gn=sn,ni=gn.label,An=gn.children,Hn=gn.key,j=gn.type,G=gn.extra,pe=(0,m.Z)(gn,ti),Ee=Hn!=null?Hn:"tmp-".concat(ln);return An||j==="group"?j==="group"?y.createElement(vt,(0,p.Z)({key:Ee},pe,{title:ni}),Si(An,ut,Ut)):y.createElement(Mt,(0,p.Z)({key:Ee},pe,{title:ni}),Si(An,ut,Ut)):j==="divider"?y.createElement(Wt,(0,p.Z)({key:Ee},pe)):y.createElement(dt,(0,p.Z)({key:Ee},pe,{extra:G}),ni,(!!G||G===0)&&y.createElement("span",{className:"".concat(Ut,"-item-extra")},G))}return null}).filter(function(sn){return sn})}function wi(We,ut,Ut,dt,vt){var Mt=We,Wt=(0,xe.Z)({divider:oi,item:De,group:ji,submenu:_n},dt);return ut&&(Mt=Si(ut,Wt,vt)),Ke(Mt,Ut)}var Yi=["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"],Qn=[],Xn=y.forwardRef(function(We,ut){var Ut,dt=We,vt=dt.prefixCls,Mt=vt===void 0?"rc-menu":vt,Wt=dt.rootClassName,sn=dt.style,ln=dt.className,gn=dt.tabIndex,ni=gn===void 0?0:gn,An=dt.items,Hn=dt.children,j=dt.direction,G=dt.id,pe=dt.mode,Ee=pe===void 0?"vertical":pe,ze=dt.inlineCollapsed,$e=dt.disabled,bt=dt.disabledOverflow,xt=dt.subMenuOpenDelay,Gt=xt===void 0?.1:xt,_t=dt.subMenuCloseDelay,Ce=_t===void 0?.1:_t,et=dt.forceSubMenuRender,Pt=dt.defaultOpenKeys,an=dt.openKeys,un=dt.activeKey,qt=dt.defaultActiveFirst,tn=dt.selectable,mn=tn===void 0?!0:tn,Tn=dt.multiple,on=Tn===void 0?!1:Tn,$t=dt.defaultSelectedKeys,kn=dt.selectedKeys,Ln=dt.onSelect,Cn=dt.onDeselect,Pn=dt.inlineIndent,En=Pn===void 0?24:Pn,ii=dt.motion,ri=dt.defaultMotions,qn=dt.triggerSubMenuAction,Ti=qn===void 0?"hover":qn,Li=dt.builtinPlacements,Ei=dt.itemIcon,_i=dt.expandIcon,si=dt.overflowedIndicator,mi=si===void 0?"...":si,Ai=dt.overflowedIndicatorPopupClassName,dr=dt.getPopupContainer,Ii=dt.onClick,Ni=dt.onOpenChange,Gi=dt.onKeyDown,Ui=dt.openAnimation,hi=dt.openTransitionName,nr=dt._internalRenderMenuItem,Ji=dt._internalRenderSubMenuItem,ir=dt._internalComponents,pr=(0,m.Z)(dt,Yi),Vn=y.useMemo(function(){return[wi(Hn,An,Qn,ir,Mt),wi(Hn,An,Qn,{},Mt)]},[Hn,An,ir]),gr=(0,Y.Z)(Vn,2),sr=gr[0],hr=gr[1],Fr=y.useState(!1),Nr=(0,Y.Z)(Fr,2),Kr=Nr[0],Gr=Nr[1],bi=y.useRef(),Qi=Ct(G),mr=j==="rtl",Ur=(0,X.Z)(Pt,{value:an,postState:function(Ki){return Ki||Qn}}),ur=(0,Y.Z)(Ur,2),Xi=ur[0],_r=ur[1],vr=function(Ki){var er=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;function Sr(){_r(Ki),Ni==null||Ni(Ki)}er?(0,E.flushSync)(Sr):Sr()},Dr=y.useState(Xi),Er=(0,Y.Z)(Dr,2),Ir=Er[0],is=Er[1],Hr=y.useRef(!1),Vr=y.useMemo(function(){return(Ee==="inline"||Ee==="vertical")&&ze?["vertical",ze]:[Ee,!1]},[Ee,ze]),Dn=(0,Y.Z)(Vr,2),Yn=Dn[0],Fi=Dn[1],li=Yn==="inline",pi=y.useState(Yn),kr=(0,Y.Z)(pi,2),xr=kr[0],Wr=kr[1],rs=y.useState(Fi),fs=(0,Y.Z)(rs,2),Gs=fs[0],Hs=fs[1];y.useEffect(function(){Wr(Yn),Hs(Fi),Hr.current&&(li?_r(Ir):vr(Qn))},[Yn,Fi]);var qr=y.useState(0),es=(0,Y.Z)(qr,2),Lr=es[0],Ts=es[1],os=Lr>=sr.length-1||xr!=="horizontal"||bt;y.useEffect(function(){li&&is(Xi)},[Xi]),y.useEffect(function(){return Hr.current=!0,function(){Hr.current=!1}},[]);var Br=rt(),Qe=Br.registerPath,dn=Br.unregisterPath,On=Br.refreshOverflowKeys,Wn=Br.isSubPathKey,xi=Br.getKeyPath,Kn=Br.getKeys,qi=Br.getSubPathKeys,Hi=y.useMemo(function(){return{registerPath:Qe,unregisterPath:dn}},[Qe,dn]),cr=y.useMemo(function(){return{isSubPathKey:Wn}},[Wn]);y.useEffect(function(){On(os?Qn:sr.slice(Lr+1).map(function(ar){return ar.key}))},[Lr,os]);var $i=(0,X.Z)(un||qt&&((Ut=sr[0])===null||Ut===void 0?void 0:Ut.key),{value:un}),Ar=(0,Y.Z)($i,2),Mr=Ar[0],Pr=Ar[1],Zr=lt(function(ar){Pr(ar)}),ls=lt(function(){Pr(void 0)});(0,y.useImperativeHandle)(ut,function(){return{list:bi.current,focus:function(Ki){var er,Sr=Kn(),fr=T(Sr,Qi),bs=fr.elements,Is=fr.key2element,ps=fr.element2key,Zs=F(bi.current,bs),Ps=Mr!=null?Mr:Zs[0]?ps.get(Zs[0]):(er=sr.find(function(Cs){return!Cs.props.disabled}))===null||er===void 0?void 0:er.key,gs=Is.get(Ps);if(Ps&&gs){var Os;gs==null||(Os=gs.focus)===null||Os===void 0||Os.call(gs,Ki)}}}});var yr=(0,X.Z)($t||[],{value:kn,postState:function(Ki){return Array.isArray(Ki)?Ki:Ki==null?Qn:[Ki]}}),wr=(0,Y.Z)(yr,2),ts=wr[0],ds=wr[1],Qr=function(Ki){if(mn){var er=Ki.key,Sr=ts.includes(er),fr;on?Sr?fr=ts.filter(function(Is){return Is!==er}):fr=[].concat((0,ce.Z)(ts),[er]):fr=[er],ds(fr);var bs=(0,xe.Z)((0,xe.Z)({},Ki),{},{selectedKeys:fr});Sr?Cn==null||Cn(bs):Ln==null||Ln(bs)}!on&&Xi.length&&xr!=="inline"&&vr(Qn)},Cr=lt(function(ar){Ii==null||Ii(Ht(ar)),Qr(ar)}),ss=lt(function(ar,Ki){var er=Xi.filter(function(fr){return fr!==ar});if(Ki)er.push(ar);else if(xr!=="inline"){var Sr=qi(ar);er=er.filter(function(fr){return!Sr.has(fr)})}(0,L.Z)(Xi,er,!0)||vr(er,!0)}),Ds=function(Ki,er){var Sr=er!=null?er:!Xi.includes(Ki);ss(Ki,Sr)},oa=ee(xr,Mr,mr,Qi,bi,Kn,xi,Pr,Ds,Gi);y.useEffect(function(){Gr(!0)},[]);var Vs=y.useMemo(function(){return{_internalRenderMenuItem:nr,_internalRenderSubMenuItem:Ji}},[nr,Ji]),Ws=xr!=="horizontal"||bt?sr:sr.map(function(ar,Ki){return y.createElement(q,{key:ar.key,overflowDisabled:Ki>Lr},ar)}),Ms=y.createElement(o.Z,(0,p.Z)({id:G,ref:bi,prefixCls:"".concat(Mt,"-overflow"),component:"ul",itemComponent:De,className:U()(Mt,"".concat(Mt,"-root"),"".concat(Mt,"-").concat(xr),ln,(0,Ae.Z)((0,Ae.Z)({},"".concat(Mt,"-inline-collapsed"),Gs),"".concat(Mt,"-rtl"),mr),Wt),dir:j,style:sn,role:"menu",tabIndex:ni,data:Ws,renderRawItem:function(Ki){return Ki},renderRawRest:function(Ki){var er=Ki.length,Sr=er?sr.slice(-er):null;return y.createElement(_n,{eventKey:Ne,title:mi,disabled:os,internalPopupClose:er===0,popupClassName:Ai},Sr)},maxCount:xr!=="horizontal"||bt?o.Z.INVALIDATE:o.Z.RESPONSIVE,ssr:"full","data-menu-list":!0,onVisibleChange:function(Ki){Ts(Ki)},onKeyDown:oa},pr));return y.createElement(K.Provider,{value:Vs},y.createElement(S.Provider,{value:Qi},y.createElement(q,{prefixCls:Mt,rootClassName:Wt,mode:xr,openKeys:Xi,rtl:mr,disabled:$e,motion:Kr?ii:null,defaultMotions:Kr?ri:null,activeKey:Mr,onActive:Zr,onInactive:ls,selectedKeys:ts,inlineIndent:En,subMenuOpenDelay:Gt,subMenuCloseDelay:Ce,forceSubMenuRender:et,builtinPlacements:Li,triggerSubMenuAction:Ti,getPopupContainer:dr,itemIcon:Ei,expandIcon:_i,onItemClick:Cr,onOpenChange:ss},y.createElement(ie.Provider,{value:cr},Ms),y.createElement("div",{style:{display:"none"},"aria-hidden":!0},y.createElement(_e.Provider,{value:Hi},hr)))))}),di=Xn,ai=di;ai.Item=De,ai.SubMenu=_n,ai.ItemGroup=ji,ai.Divider=oi;var wn=ai},83836:function(Xe,Ge,w){"use strict";w.d(Ge,{Z:function(){return re}});var p=w(54476),Ae=w(33885),xe=w(42978),ce=w(75931),Y=w(59301),m=w(92310),ve=w.n(m),U=w(29301),o=w(34280),X=["prefixCls","invalidate","item","renderItem","responsive","responsiveDisabled","registerSize","itemKey","className","style","children","display","order","component"],L=void 0;function _(x,b){var W=x.prefixCls,fe=x.invalidate,ke=x.item,je=x.renderItem,yt=x.responsive,ht=x.responsiveDisabled,Ot=x.registerSize,Dt=x.itemKey,Ve=x.className,Jt=x.style,ot=x.children,Et=x.display,qe=x.order,Kt=x.component,Te=Kt===void 0?"div":Kt,F=(0,ce.Z)(x,X),v=yt&&!Et;function T(Fe){Ot(Dt,Fe)}Y.useEffect(function(){return function(){T(null)}},[]);var ee=je&&ke!==L?je(ke,{index:qe}):ot,N;fe||(N={opacity:v?0:1,height:v?0:L,overflowY:v?"hidden":L,order:yt?qe:L,pointerEvents:v?"none":L,position:v?"absolute":L});var z={};v&&(z["aria-hidden"]=!0);var he=Y.createElement(Te,(0,p.Z)({className:ve()(!fe&&W,Ve),style:(0,Ae.Z)((0,Ae.Z)({},N),Jt)},z,F,{ref:b}),ee);return yt&&(he=Y.createElement(U.Z,{onResize:function(Ne){var rt=Ne.offsetWidth;T(rt)},disabled:ht},he)),he}var y=Y.forwardRef(_);y.displayName="Item";var E=y,S=w(6089),O=w(4676),P=w(16089);function H(x){if(typeof MessageChannel=="undefined")(0,P.Z)(x);else{var b=new MessageChannel;b.port1.onmessage=function(){return x()},b.port2.postMessage(void 0)}}function B(){var x=Y.useRef(null),b=function(fe){x.current||(x.current=[],H(function(){(0,O.unstable_batchedUpdates)(function(){x.current.forEach(function(ke){ke()}),x.current=null})})),x.current.push(fe)};return b}function R(x,b){var W=Y.useState(b),fe=(0,xe.Z)(W,2),ke=fe[0],je=fe[1],yt=(0,S.Z)(function(ht){x(function(){je(ht)})});return[ke,yt]}var J=Y.createContext(null),q=["component"],ge=["className"],_e=["className"],se=function(b,W){var fe=Y.useContext(J);if(!fe){var ke=b.component,je=ke===void 0?"div":ke,yt=(0,ce.Z)(b,q);return Y.createElement(je,(0,p.Z)({},yt,{ref:W}))}var ht=fe.className,Ot=(0,ce.Z)(fe,ge),Dt=b.className,Ve=(0,ce.Z)(b,_e);return Y.createElement(J.Provider,{value:null},Y.createElement(E,(0,p.Z)({ref:W,className:ve()(ht,Dt)},Ot,Ve)))},we=Y.forwardRef(se);we.displayName="RawItem";var de=we,ie=["prefixCls","data","renderItem","renderRawItem","itemKey","itemWidth","ssr","style","className","maxCount","renderRest","renderRawRest","prefix","suffix","component","itemComponent","onVisibleChange"],oe="responsive",K="invalidate";function k(x){return"+ ".concat(x.length," ...")}function V(x,b){var W=x.prefixCls,fe=W===void 0?"rc-overflow":W,ke=x.data,je=ke===void 0?[]:ke,yt=x.renderItem,ht=x.renderRawItem,Ot=x.itemKey,Dt=x.itemWidth,Ve=Dt===void 0?10:Dt,Jt=x.ssr,ot=x.style,Et=x.className,qe=x.maxCount,Kt=x.renderRest,Te=x.renderRawRest,F=x.prefix,v=x.suffix,T=x.component,ee=T===void 0?"div":T,N=x.itemComponent,z=x.onVisibleChange,he=(0,ce.Z)(x,ie),Fe=Jt==="full",Ne=B(),rt=R(Ne,null),lt=(0,xe.Z)(rt,2),zt=lt[0],Tt=lt[1],Ct=zt||0,At=R(Ne,new Map),It=(0,xe.Z)(At,2),st=It[0],ct=It[1],Pe=R(Ne,0),wt=(0,xe.Z)(Pe,2),Lt=wt[0],St=wt[1],en=R(Ne,0),Yt=(0,xe.Z)(en,2),Ht=Yt[0],In=Yt[1],$n=R(Ne,0),Vt=(0,xe.Z)($n,2),vn=Vt[0],He=Vt[1],Le=R(Ne,0),De=(0,xe.Z)(Le,2),te=De[0],ue=De[1],Se=(0,Y.useState)(null),Ie=(0,xe.Z)(Se,2),Me=Ie[0],Ke=Ie[1],Ye=(0,Y.useState)(null),it=(0,xe.Z)(Ye,2),pt=it[0],Xt=it[1],hn=Y.useMemo(function(){return pt===null&&Fe?Number.MAX_SAFE_INTEGER:pt||0},[pt,zt]),kt=(0,Y.useState)(!1),Nt=(0,xe.Z)(kt,2),fn=Nt[0],Fn=Nt[1],Re="".concat(fe,"-item"),Nn=Math.max(Lt,Ht),Rt=qe===oe,Ft=je.length&&Rt,rn=qe===K,_n=Ft||typeof qe=="number"&&je.length>qe,Mn=(0,Y.useMemo)(function(){var vt=je;return Ft?zt===null&&Fe?vt=je:vt=je.slice(0,Math.min(je.length,Ct/Ve)):typeof qe=="number"&&(vt=je.slice(0,qe)),vt},[je,Ve,zt,qe,Ft]),oi=(0,Y.useMemo)(function(){return Ft?je.slice(hn+1):je.slice(Mn.length)},[je,Mn,Ft,hn]),Oi=(0,Y.useCallback)(function(vt,Mt){var Wt;return typeof Ot=="function"?Ot(vt):(Wt=Ot&&(vt==null?void 0:vt[Ot]))!==null&&Wt!==void 0?Wt:Mt},[Ot]),ki=(0,Y.useCallback)(yt||function(vt){return vt},[yt]);function vi(vt,Mt,Wt){pt===vt&&(Mt===void 0||Mt===Me)||(Xt(vt),Wt||(Fn(vt<je.length-1),z==null||z(vt)),Mt!==void 0&&Ke(Mt))}function ji(vt,Mt){Tt(Mt.clientWidth)}function ti(vt,Mt){ct(function(Wt){var sn=new Map(Wt);return Mt===null?sn.delete(vt):sn.set(vt,Mt),sn})}function Si(vt,Mt){In(Mt),St(Ht)}function wi(vt,Mt){He(Mt)}function Yi(vt,Mt){ue(Mt)}function Qn(vt){return st.get(Oi(Mn[vt],vt))}(0,o.Z)(function(){if(Ct&&typeof Nn=="number"&&Mn){var vt=vn+te,Mt=Mn.length,Wt=Mt-1;if(!Mt){vi(0,null);return}for(var sn=0;sn<Mt;sn+=1){var ln=Qn(sn);if(Fe&&(ln=ln||0),ln===void 0){vi(sn-1,void 0,!0);break}if(vt+=ln,Wt===0&&vt<=Ct||sn===Wt-1&&vt+Qn(Wt)<=Ct){vi(Wt,null);break}else if(vt+Nn>Ct){vi(sn-1,vt-ln-te+Ht);break}}v&&Qn(0)+te>Ct&&Ke(null)}},[Ct,st,Ht,vn,te,Oi,Mn]);var Xn=fn&&!!oi.length,di={};Me!==null&&Ft&&(di={position:"absolute",left:Me,top:0});var ai={prefixCls:Re,responsive:Ft,component:N,invalidate:rn},wn=ht?function(vt,Mt){var Wt=Oi(vt,Mt);return Y.createElement(J.Provider,{key:Wt,value:(0,Ae.Z)((0,Ae.Z)({},ai),{},{order:Mt,item:vt,itemKey:Wt,registerSize:ti,display:Mt<=hn})},ht(vt,Mt))}:function(vt,Mt){var Wt=Oi(vt,Mt);return Y.createElement(E,(0,p.Z)({},ai,{order:Mt,key:Wt,item:vt,renderItem:ki,itemKey:Wt,registerSize:ti,display:Mt<=hn}))},We={order:Xn?hn:Number.MAX_SAFE_INTEGER,className:"".concat(Re,"-rest"),registerSize:Si,display:Xn},ut=Kt||k,Ut=Te?Y.createElement(J.Provider,{value:(0,Ae.Z)((0,Ae.Z)({},ai),We)},Te(oi)):Y.createElement(E,(0,p.Z)({},ai,We),typeof ut=="function"?ut(oi):ut),dt=Y.createElement(ee,(0,p.Z)({className:ve()(!rn&&fe,Et),style:ot,ref:b},he),F&&Y.createElement(E,(0,p.Z)({},ai,{responsive:Rt,responsiveDisabled:!Ft,order:-1,className:"".concat(Re,"-prefix"),registerSize:wi,display:!0}),F),Mn.map(wn),_n?Ut:null,v&&Y.createElement(E,(0,p.Z)({},ai,{responsive:Rt,responsiveDisabled:!Ft,order:hn,className:"".concat(Re,"-suffix"),registerSize:Yi,display:!0,style:di}),v));return Rt?Y.createElement(U.Z,{onResize:ji,disabled:!Ft},dt):dt}var $=Y.forwardRef(V);$.displayName="Overflow",$.Item=de,$.RESPONSIVE=oe,$.INVALIDATE=K;var ae=$,re=ae},29301:function(Xe,Ge,w){"use strict";w.d(Ge,{Z:function(){return K}});var p=w(54476),Ae=w(59301),xe=w(11592),ce=w(48736),Y=w(33885),m=w(76190),ve=w(76846),U=w(8654),o=Ae.createContext(null);function X(k){var V=k.children,$=k.onBatchResize,ae=Ae.useRef(0),re=Ae.useRef([]),x=Ae.useContext(o),b=Ae.useCallback(function(W,fe,ke){ae.current+=1;var je=ae.current;re.current.push({size:W,element:fe,data:ke}),Promise.resolve().then(function(){je===ae.current&&($==null||$(re.current),re.current=[])}),x==null||x(W,fe,ke)},[$,x]);return Ae.createElement(o.Provider,{value:b},V)}var L=w(76374),_=new Map;function y(k){k.forEach(function(V){var $,ae=V.target;($=_.get(ae))===null||$===void 0||$.forEach(function(re){return re(ae)})})}var E=new L.Z(y),S=null,O=null;function P(k,V){_.has(k)||(_.set(k,new Set),E.observe(k)),_.get(k).add(V)}function H(k,V){_.has(k)&&(_.get(k).delete(V),_.get(k).size||(E.unobserve(k),_.delete(k)))}var B=w(67732),R=w(83652),J=w(42403),q=w(158),ge=function(k){(0,J.Z)($,k);var V=(0,q.Z)($);function $(){return(0,B.Z)(this,$),V.apply(this,arguments)}return(0,R.Z)($,[{key:"render",value:function(){return this.props.children}}]),$}(Ae.Component);function _e(k,V){var $=k.children,ae=k.disabled,re=Ae.useRef(null),x=Ae.useRef(null),b=Ae.useContext(o),W=typeof $=="function",fe=W?$(re):$,ke=Ae.useRef({width:-1,height:-1,offsetWidth:-1,offsetHeight:-1}),je=!W&&Ae.isValidElement(fe)&&(0,U.Yr)(fe),yt=je?(0,U.C4)(fe):null,ht=(0,U.x1)(yt,re),Ot=function(){var ot;return(0,ve.ZP)(re.current)||(re.current&&(0,m.Z)(re.current)==="object"?(0,ve.ZP)((ot=re.current)===null||ot===void 0?void 0:ot.nativeElement):null)||(0,ve.ZP)(x.current)};Ae.useImperativeHandle(V,function(){return Ot()});var Dt=Ae.useRef(k);Dt.current=k;var Ve=Ae.useCallback(function(Jt){var ot=Dt.current,Et=ot.onResize,qe=ot.data,Kt=Jt.getBoundingClientRect(),Te=Kt.width,F=Kt.height,v=Jt.offsetWidth,T=Jt.offsetHeight,ee=Math.floor(Te),N=Math.floor(F);if(ke.current.width!==ee||ke.current.height!==N||ke.current.offsetWidth!==v||ke.current.offsetHeight!==T){var z={width:ee,height:N,offsetWidth:v,offsetHeight:T};ke.current=z;var he=v===Math.round(Te)?Te:v,Fe=T===Math.round(F)?F:T,Ne=(0,Y.Z)((0,Y.Z)({},z),{},{offsetWidth:he,offsetHeight:Fe});b==null||b(Ne,Jt,qe),Et&&Promise.resolve().then(function(){Et(Ne,Jt)})}},[]);return Ae.useEffect(function(){var Jt=Ot();return Jt&&!ae&&P(Jt,Ve),function(){return H(Jt,Ve)}},[re.current,ae]),Ae.createElement(ge,{ref:x},je?Ae.cloneElement(fe,{ref:ht}):fe)}var se=Ae.forwardRef(_e),we=se,de="rc-observer-key";function ie(k,V){var $=k.children,ae=typeof $=="function"?[$]:(0,xe.Z)($);return ae.map(function(re,x){var b=(re==null?void 0:re.key)||"".concat(de,"-").concat(x);return Ae.createElement(we,(0,p.Z)({},k,{key:b,ref:x===0?V:void 0}),re)})}var oe=Ae.forwardRef(ie);oe.Collection=X;var K=oe},29125:function(Xe,Ge,w){"use strict";w.d(Ge,{G:function(){return ce},Z:function(){return H}});var p=w(92310),Ae=w.n(p),xe=w(59301);function ce(B){var R=B.children,J=B.prefixCls,q=B.id,ge=B.overlayInnerStyle,_e=B.bodyClassName,se=B.className,we=B.style;return xe.createElement("div",{className:Ae()("".concat(J,"-content"),se),style:we},xe.createElement("div",{className:Ae()("".concat(J,"-inner"),_e),id:q,role:"tooltip",style:ge},typeof R=="function"?R():R))}var Y=w(54476),m=w(33885),ve=w(75931),U=w(65030),o={shiftX:64,adjustY:1},X={adjustX:1,shiftY:!0},L=[0,0],_={left:{points:["cr","cl"],overflow:X,offset:[-4,0],targetOffset:L},right:{points:["cl","cr"],overflow:X,offset:[4,0],targetOffset:L},top:{points:["bc","tc"],overflow:o,offset:[0,-4],targetOffset:L},bottom:{points:["tc","bc"],overflow:o,offset:[0,4],targetOffset:L},topLeft:{points:["bl","tl"],overflow:o,offset:[0,-4],targetOffset:L},leftTop:{points:["tr","tl"],overflow:X,offset:[-4,0],targetOffset:L},topRight:{points:["br","tr"],overflow:o,offset:[0,-4],targetOffset:L},rightTop:{points:["tl","tr"],overflow:X,offset:[4,0],targetOffset:L},bottomRight:{points:["tr","br"],overflow:o,offset:[0,4],targetOffset:L},rightBottom:{points:["bl","br"],overflow:X,offset:[4,0],targetOffset:L},bottomLeft:{points:["tl","bl"],overflow:o,offset:[0,4],targetOffset:L},leftBottom:{points:["br","bl"],overflow:X,offset:[-4,0],targetOffset:L}},y=null,E=w(80402),S=["overlayClassName","trigger","mouseEnterDelay","mouseLeaveDelay","overlayStyle","prefixCls","children","onVisibleChange","afterVisibleChange","transitionName","animation","motion","placement","align","destroyTooltipOnHide","defaultVisible","getTooltipContainer","overlayInnerStyle","arrowContent","overlay","id","showArrow","classNames","styles"],O=function(R,J){var q=R.overlayClassName,ge=R.trigger,_e=ge===void 0?["hover"]:ge,se=R.mouseEnterDelay,we=se===void 0?0:se,de=R.mouseLeaveDelay,ie=de===void 0?.1:de,oe=R.overlayStyle,K=R.prefixCls,k=K===void 0?"rc-tooltip":K,V=R.children,$=R.onVisibleChange,ae=R.afterVisibleChange,re=R.transitionName,x=R.animation,b=R.motion,W=R.placement,fe=W===void 0?"right":W,ke=R.align,je=ke===void 0?{}:ke,yt=R.destroyTooltipOnHide,ht=yt===void 0?!1:yt,Ot=R.defaultVisible,Dt=R.getTooltipContainer,Ve=R.overlayInnerStyle,Jt=R.arrowContent,ot=R.overlay,Et=R.id,qe=R.showArrow,Kt=qe===void 0?!0:qe,Te=R.classNames,F=R.styles,v=(0,ve.Z)(R,S),T=(0,E.Z)(Et),ee=(0,xe.useRef)(null);(0,xe.useImperativeHandle)(J,function(){return ee.current});var N=(0,m.Z)({},v);"visible"in R&&(N.popupVisible=R.visible);var z=function(){return xe.createElement(ce,{key:"content",prefixCls:k,id:T,bodyClassName:Te==null?void 0:Te.body,overlayInnerStyle:(0,m.Z)((0,m.Z)({},Ve),F==null?void 0:F.body)},ot)},he=function(){var Ne=xe.Children.only(V),rt=(Ne==null?void 0:Ne.props)||{},lt=(0,m.Z)((0,m.Z)({},rt),{},{"aria-describedby":ot?T:null});return xe.cloneElement(V,lt)};return xe.createElement(U.Z,(0,Y.Z)({popupClassName:Ae()(q,Te==null?void 0:Te.root),prefixCls:k,popup:z,action:_e,builtinPlacements:_,popupPlacement:fe,ref:ee,popupAlign:je,getPopupContainer:Dt,onPopupVisibleChange:$,afterPopupVisibleChange:ae,popupTransitionName:re,popupAnimation:x,popupMotion:b,defaultPopupVisible:Ot,autoDestroy:ht,mouseLeaveDelay:ie,popupStyle:(0,m.Z)((0,m.Z)({},oe),F==null?void 0:F.root),mouseEnterDelay:we,arrow:Kt},N),he())},P=(0,xe.forwardRef)(O),H=P},49658:function(Xe,Ge){"use strict";Ge.Z=function(){if(typeof navigator=="undefined"||typeof window=="undefined")return!1;var w=navigator.userAgent||navigator.vendor||window.opera;return/(android|bb\d+|meego).+mobile|avantgo|bada\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|iris|kindle|lge |maemo|midp|mmp|mobile.+firefox|netfront|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\/|plucker|pocket|psp|series(4|6)0|symbian|treo|up\.(browser|link)|vodafone|wap|windows ce|xda|xiino|android|ipad|playbook|silk/i.test(w)||/1207|6310|6590|3gso|4thp|50[1-6]i|770s|802s|a wa|abac|ac(er|oo|s-)|ai(ko|rn)|al(av|ca|co)|amoi|an(ex|ny|yw)|aptu|ar(ch|go)|as(te|us)|attw|au(di|-m|r |s )|avan|be(ck|ll|nq)|bi(lb|rd)|bl(ac|az)|br(e|v)w|bumb|bw-(n|u)|c55\/|capi|ccwa|cdm-|cell|chtm|cldc|cmd-|co(mp|nd)|craw|da(it|ll|ng)|dbte|dc-s|devi|dica|dmob|do(c|p)o|ds(12|-d)|el(49|ai)|em(l2|ul)|er(ic|k0)|esl8|ez([4-7]0|os|wa|ze)|fetc|fly(-|_)|g1 u|g560|gene|gf-5|g-mo|go(\.w|od)|gr(ad|un)|haie|hcit|hd-(m|p|t)|hei-|hi(pt|ta)|hp( i|ip)|hs-c|ht(c(-| |_|a|g|p|s|t)|tp)|hu(aw|tc)|i-(20|go|ma)|i230|iac( |-|\/)|ibro|idea|ig01|ikom|im1k|inno|ipaq|iris|ja(t|v)a|jbro|jemu|jigs|kddi|keji|kgt( |\/)|klon|kpt |kwc-|kyo(c|k)|le(no|xi)|lg( g|\/(k|l|u)|50|54|-[a-w])|libw|lynx|m1-w|m3ga|m50\/|ma(te|ui|xo)|mc(01|21|ca)|m-cr|me(rc|ri)|mi(o8|oa|ts)|mmef|mo(01|02|bi|de|do|t(-| |o|v)|zz)|mt(50|p1|v )|mwbp|mywa|n10[0-2]|n20[2-3]|n30(0|2)|n50(0|2|5)|n7(0(0|1)|10)|ne((c|m)-|on|tf|wf|wg|wt)|nok(6|i)|nzph|o2im|op(ti|wv)|oran|owg1|p800|pan(a|d|t)|pdxg|pg(13|-([1-8]|c))|phil|pire|pl(ay|uc)|pn-2|po(ck|rt|se)|prox|psio|pt-g|qa-a|qc(07|12|21|32|60|-[2-7]|i-)|qtek|r380|r600|raks|rim9|ro(ve|zo)|s55\/|sa(ge|ma|mm|ms|ny|va)|sc(01|h-|oo|p-)|sdk\/|se(c(-|0|1)|47|mc|nd|ri)|sgh-|shar|sie(-|m)|sk-0|sl(45|id)|sm(al|ar|b3|it|t5)|so(ft|ny)|sp(01|h-|v-|v )|sy(01|mb)|t2(18|50)|t6(00|10|18)|ta(gt|lk)|tcl-|tdg-|tel(i|m)|tim-|t-mo|to(pl|sh)|ts(70|m-|m3|m5)|tx-9|up(\.b|g1|si)|utst|v400|v750|veri|vi(rg|te)|vk(40|5[0-3]|-v)|vm40|voda|vulc|vx(52|53|60|61|70|80|81|83|85|98)|w3c(-| )|webc|whit|wi(g |nc|nw)|wmlb|wonu|x700|yas-|your|zeto|zte-/i.test(w==null?void 0:w.substr(0,4))}},83145:function(Xe,Ge,w){"use strict";Object.defineProperty(Ge,"__esModule",{value:!0}),Ge.CopyToClipboard=void 0;var p=xe(w(59301)),Ae=xe(w(25769));function xe(B){return B&&B.__esModule?B:{default:B}}function ce(B){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?ce=function(J){return typeof J}:ce=function(J){return J&&typeof Symbol=="function"&&J.constructor===Symbol&&J!==Symbol.prototype?"symbol":typeof J},ce(B)}function Y(B,R){var J=Object.keys(B);if(Object.getOwnPropertySymbols){var q=Object.getOwnPropertySymbols(B);R&&(q=q.filter(function(ge){return Object.getOwnPropertyDescriptor(B,ge).enumerable})),J.push.apply(J,q)}return J}function m(B){for(var R=1;R<arguments.length;R++){var J=arguments[R]!=null?arguments[R]:{};R%2?Y(J,!0).forEach(function(q){P(B,q,J[q])}):Object.getOwnPropertyDescriptors?Object.defineProperties(B,Object.getOwnPropertyDescriptors(J)):Y(J).forEach(function(q){Object.defineProperty(B,q,Object.getOwnPropertyDescriptor(J,q))})}return B}function ve(B,R){if(B==null)return{};var J=U(B,R),q,ge;if(Object.getOwnPropertySymbols){var _e=Object.getOwnPropertySymbols(B);for(ge=0;ge<_e.length;ge++)q=_e[ge],!(R.indexOf(q)>=0)&&Object.prototype.propertyIsEnumerable.call(B,q)&&(J[q]=B[q])}return J}function U(B,R){if(B==null)return{};var J={},q=Object.keys(B),ge,_e;for(_e=0;_e<q.length;_e++)ge=q[_e],!(R.indexOf(ge)>=0)&&(J[ge]=B[ge]);return J}function o(B,R){if(!(B instanceof R))throw new TypeError("Cannot call a class as a function")}function X(B,R){for(var J=0;J<R.length;J++){var q=R[J];q.enumerable=q.enumerable||!1,q.configurable=!0,"value"in q&&(q.writable=!0),Object.defineProperty(B,q.key,q)}}function L(B,R,J){return R&&X(B.prototype,R),J&&X(B,J),B}function _(B,R){return R&&(ce(R)==="object"||typeof R=="function")?R:E(B)}function y(B){return y=Object.setPrototypeOf?Object.getPrototypeOf:function(J){return J.__proto__||Object.getPrototypeOf(J)},y(B)}function E(B){if(B===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return B}function S(B,R){if(typeof R!="function"&&R!==null)throw new TypeError("Super expression must either be null or a function");B.prototype=Object.create(R&&R.prototype,{constructor:{value:B,writable:!0,configurable:!0}}),R&&O(B,R)}function O(B,R){return O=Object.setPrototypeOf||function(q,ge){return q.__proto__=ge,q},O(B,R)}function P(B,R,J){return R in B?Object.defineProperty(B,R,{value:J,enumerable:!0,configurable:!0,writable:!0}):B[R]=J,B}var H=function(B){S(R,B);function R(){var J,q;o(this,R);for(var ge=arguments.length,_e=new Array(ge),se=0;se<ge;se++)_e[se]=arguments[se];return q=_(this,(J=y(R)).call.apply(J,[this].concat(_e))),P(E(q),"onClick",function(we){var de=q.props,ie=de.text,oe=de.onCopy,K=de.children,k=de.options,V=p.default.Children.only(K),$=(0,Ae.default)(ie,k);oe&&oe(ie,$),V&&V.props&&typeof V.props.onClick=="function"&&V.props.onClick(we)}),q}return L(R,[{key:"render",value:function(){var q=this.props,ge=q.text,_e=q.onCopy,se=q.options,we=q.children,de=ve(q,["text","onCopy","options","children"]),ie=p.default.Children.only(we);return p.default.cloneElement(ie,m({},de,{onClick:this.onClick}))}}]),R}(p.default.PureComponent);Ge.CopyToClipboard=H,P(H,"defaultProps",{onCopy:void 0,options:void 0})},56102:function(Xe,Ge,w){"use strict";var p=w(83145),Ae=p.CopyToClipboard;Ae.CopyToClipboard=Ae,Xe.exports=Ae},76374:function(Xe,Ge,w){"use strict";var p=function(){if(typeof Map!="undefined")return Map;function K(k,V){var $=-1;return k.some(function(ae,re){return ae[0]===V?($=re,!0):!1}),$}return function(){function k(){this.__entries__=[]}return Object.defineProperty(k.prototype,"size",{get:function(){return this.__entries__.length},enumerable:!0,configurable:!0}),k.prototype.get=function(V){var $=K(this.__entries__,V),ae=this.__entries__[$];return ae&&ae[1]},k.prototype.set=function(V,$){var ae=K(this.__entries__,V);~ae?this.__entries__[ae][1]=$:this.__entries__.push([V,$])},k.prototype.delete=function(V){var $=this.__entries__,ae=K($,V);~ae&&$.splice(ae,1)},k.prototype.has=function(V){return!!~K(this.__entries__,V)},k.prototype.clear=function(){this.__entries__.splice(0)},k.prototype.forEach=function(V,$){$===void 0&&($=null);for(var ae=0,re=this.__entries__;ae<re.length;ae++){var x=re[ae];V.call($,x[1],x[0])}},k}()}(),Ae=typeof window!="undefined"&&typeof document!="undefined"&&window.document===document,xe=function(){return typeof w.g!="undefined"&&w.g.Math===Math?w.g:typeof self!="undefined"&&self.Math===Math?self:typeof window!="undefined"&&window.Math===Math?window:Function("return this")()}(),ce=function(){return typeof requestAnimationFrame=="function"?requestAnimationFrame.bind(xe):function(K){return setTimeout(function(){return K(Date.now())},1e3/60)}}(),Y=2;function m(K,k){var V=!1,$=!1,ae=0;function re(){V&&(V=!1,K()),$&&b()}function x(){ce(re)}function b(){var W=Date.now();if(V){if(W-ae<Y)return;$=!0}else V=!0,$=!1,setTimeout(x,k);ae=W}return b}var ve=20,U=["top","right","bottom","left","width","height","size","weight"],o=typeof MutationObserver!="undefined",X=function(){function K(){this.connected_=!1,this.mutationEventsAdded_=!1,this.mutationsObserver_=null,this.observers_=[],this.onTransitionEnd_=this.onTransitionEnd_.bind(this),this.refresh=m(this.refresh.bind(this),ve)}return K.prototype.addObserver=function(k){~this.observers_.indexOf(k)||this.observers_.push(k),this.connected_||this.connect_()},K.prototype.removeObserver=function(k){var V=this.observers_,$=V.indexOf(k);~$&&V.splice($,1),!V.length&&this.connected_&&this.disconnect_()},K.prototype.refresh=function(){var k=this.updateObservers_();k&&this.refresh()},K.prototype.updateObservers_=function(){var k=this.observers_.filter(function(V){return V.gatherActive(),V.hasActive()});return k.forEach(function(V){return V.broadcastActive()}),k.length>0},K.prototype.connect_=function(){!Ae||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)},K.prototype.disconnect_=function(){!Ae||!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)},K.prototype.onTransitionEnd_=function(k){var V=k.propertyName,$=V===void 0?"":V,ae=U.some(function(re){return!!~$.indexOf(re)});ae&&this.refresh()},K.getInstance=function(){return this.instance_||(this.instance_=new K),this.instance_},K.instance_=null,K}(),L=function(K,k){for(var V=0,$=Object.keys(k);V<$.length;V++){var ae=$[V];Object.defineProperty(K,ae,{value:k[ae],enumerable:!1,writable:!1,configurable:!0})}return K},_=function(K){var k=K&&K.ownerDocument&&K.ownerDocument.defaultView;return k||xe},y=ge(0,0,0,0);function E(K){return parseFloat(K)||0}function S(K){for(var k=[],V=1;V<arguments.length;V++)k[V-1]=arguments[V];return k.reduce(function($,ae){var re=K["border-"+ae+"-width"];return $+E(re)},0)}function O(K){for(var k=["top","right","bottom","left"],V={},$=0,ae=k;$<ae.length;$++){var re=ae[$],x=K["padding-"+re];V[re]=E(x)}return V}function P(K){var k=K.getBBox();return ge(0,0,k.width,k.height)}function H(K){var k=K.clientWidth,V=K.clientHeight;if(!k&&!V)return y;var $=_(K).getComputedStyle(K),ae=O($),re=ae.left+ae.right,x=ae.top+ae.bottom,b=E($.width),W=E($.height);if($.boxSizing==="border-box"&&(Math.round(b+re)!==k&&(b-=S($,"left","right")+re),Math.round(W+x)!==V&&(W-=S($,"top","bottom")+x)),!R(K)){var fe=Math.round(b+re)-k,ke=Math.round(W+x)-V;Math.abs(fe)!==1&&(b-=fe),Math.abs(ke)!==1&&(W-=ke)}return ge(ae.left,ae.top,b,W)}var B=function(){return typeof SVGGraphicsElement!="undefined"?function(K){return K instanceof _(K).SVGGraphicsElement}:function(K){return K instanceof _(K).SVGElement&&typeof K.getBBox=="function"}}();function R(K){return K===_(K).document.documentElement}function J(K){return Ae?B(K)?P(K):H(K):y}function q(K){var k=K.x,V=K.y,$=K.width,ae=K.height,re=typeof DOMRectReadOnly!="undefined"?DOMRectReadOnly:Object,x=Object.create(re.prototype);return L(x,{x:k,y:V,width:$,height:ae,top:V,right:k+$,bottom:ae+V,left:k}),x}function ge(K,k,V,$){return{x:K,y:k,width:V,height:$}}var _e=function(){function K(k){this.broadcastWidth=0,this.broadcastHeight=0,this.contentRect_=ge(0,0,0,0),this.target=k}return K.prototype.isActive=function(){var k=J(this.target);return this.contentRect_=k,k.width!==this.broadcastWidth||k.height!==this.broadcastHeight},K.prototype.broadcastRect=function(){var k=this.contentRect_;return this.broadcastWidth=k.width,this.broadcastHeight=k.height,k},K}(),se=function(){function K(k,V){var $=q(V);L(this,{target:k,contentRect:$})}return K}(),we=function(){function K(k,V,$){if(this.activeObservations_=[],this.observations_=new p,typeof k!="function")throw new TypeError("The callback provided as parameter 1 is not a function.");this.callback_=k,this.controller_=V,this.callbackCtx_=$}return K.prototype.observe=function(k){if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");if(!(typeof Element=="undefined"||!(Element instanceof Object))){if(!(k instanceof _(k).Element))throw new TypeError('parameter 1 is not of type "Element".');var V=this.observations_;V.has(k)||(V.set(k,new _e(k)),this.controller_.addObserver(this),this.controller_.refresh())}},K.prototype.unobserve=function(k){if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");if(!(typeof Element=="undefined"||!(Element instanceof Object))){if(!(k instanceof _(k).Element))throw new TypeError('parameter 1 is not of type "Element".');var V=this.observations_;V.has(k)&&(V.delete(k),V.size||this.controller_.removeObserver(this))}},K.prototype.disconnect=function(){this.clearActive(),this.observations_.clear(),this.controller_.removeObserver(this)},K.prototype.gatherActive=function(){var k=this;this.clearActive(),this.observations_.forEach(function(V){V.isActive()&&k.activeObservations_.push(V)})},K.prototype.broadcastActive=function(){if(this.hasActive()){var k=this.callbackCtx_,V=this.activeObservations_.map(function($){return new se($.target,$.broadcastRect())});this.callback_.call(k,V,k),this.clearActive()}},K.prototype.clearActive=function(){this.activeObservations_.splice(0)},K.prototype.hasActive=function(){return this.activeObservations_.length>0},K}(),de=typeof WeakMap!="undefined"?new WeakMap:new p,ie=function(){function K(k){if(!(this instanceof K))throw new TypeError("Cannot call a class as a function.");if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");var V=X.getInstance(),$=new we(k,V,this);de.set(this,$)}return K}();["observe","unobserve","disconnect"].forEach(function(K){ie.prototype[K]=function(){var k;return(k=de.get(this))[K].apply(k,arguments)}});var oe=function(){return typeof xe.ResizeObserver!="undefined"?xe.ResizeObserver:ie}();Ge.Z=oe},98040:function(Xe){Xe.exports=function(){var Ge=document.getSelection();if(!Ge.rangeCount)return function(){};for(var w=document.activeElement,p=[],Ae=0;Ae<Ge.rangeCount;Ae++)p.push(Ge.getRangeAt(Ae));switch(w.tagName.toUpperCase()){case"INPUT":case"TEXTAREA":w.blur();break;default:w=null;break}return Ge.removeAllRanges(),function(){Ge.type==="Caret"&&Ge.removeAllRanges(),Ge.rangeCount||p.forEach(function(xe){Ge.addRange(xe)}),w&&w.focus()}}},20441:function(Xe,Ge,w){var p={"./aac.svg":71454,"./amr.svg":3169,"./avi.svg":10090,"./bmp.svg":94472,"./default.svg":24547,"./doc.svg":20062,"./docx.svg":67421,"./flv.svg":43573,"./gif.svg":4276,"./jpeg.svg":90297,"./jpg.svg":91338,"./m4a.svg":88742,"./md.svg":37119,"./mkv.svg":46999,"./mov.svg":93383,"./mp3.svg":97104,"./mp4.svg":34657,"./mpeg.svg":8382,"./ogg.svg":91664,"./opus.svg":8796,"./pdf.svg":7794,"./png.svg":55463,"./ppt.svg":63675,"./pptx.svg":30457,"./txt.svg":22395,"./wav.svg":54408,"./webm.svg":72588,"./wma.svg":65872,"./wmv.svg":4272,"./wps.svg":89270,"./xls.svg":21919,"./xlsx.svg":72406};function Ae(ce){var Y=xe(ce);return w(Y)}function xe(ce){if(!w.o(p,ce)){var Y=new Error("Cannot find module '"+ce+"'");throw Y.code="MODULE_NOT_FOUND",Y}return p[ce]}Ae.keys=function(){return Object.keys(p)},Ae.resolve=xe,Xe.exports=Ae,Ae.id=20441},90034:function(Xe,Ge,w){var p={"./doc.png":63604,"./docx.png":30045,"./jpg.png":13740,"./md.png":58881,"./pdf.png":28982,"./png.png":2487,"./txt.png":3164,"./xls.png":88745,"./xlsx.png":49321};function Ae(ce){var Y=xe(ce);return w(Y)}function xe(ce){if(!w.o(p,ce)){var Y=new Error("Cannot find module '"+ce+"'");throw Y.code="MODULE_NOT_FOUND",Y}return p[ce]}Ae.keys=function(){return Object.keys(p)},Ae.resolve=xe,Xe.exports=Ae,Ae.id=90034},71454:function(Xe,Ge,w){"use strict";Xe.exports=w.p+"static/aac.b3e9a3ba.svg"},3169:function(Xe,Ge,w){"use strict";Xe.exports=w.p+"static/amr.ce411d51.svg"},10090:function(Xe,Ge,w){"use strict";Xe.exports=w.p+"static/avi.d7b8adf7.svg"},94472:function(Xe,Ge,w){"use strict";Xe.exports=w.p+"static/bmp.c62f88c4.svg"},24547:function(Xe,Ge,w){"use strict";Xe.exports=w.p+"static/default.f48aef2c.svg"},20062:function(Xe,Ge,w){"use strict";Xe.exports=w.p+"static/doc.e6c75d4c.svg"},67421:function(Xe,Ge,w){"use strict";Xe.exports=w.p+"static/docx.150535e3.svg"},43573:function(Xe,Ge,w){"use strict";Xe.exports=w.p+"static/flv.43967063.svg"},4276:function(Xe,Ge,w){"use strict";Xe.exports=w.p+"static/gif.b2122741.svg"},90297:function(Xe,Ge,w){"use strict";Xe.exports=w.p+"static/jpeg.fffee469.svg"},91338:function(Xe,Ge,w){"use strict";Xe.exports=w.p+"static/jpg.2fb4a360.svg"},88742:function(Xe,Ge,w){"use strict";Xe.exports=w.p+"static/m4a.7994dbc0.svg"},37119:function(Xe,Ge,w){"use strict";Xe.exports=w.p+"static/md.1f56aa84.svg"},46999:function(Xe,Ge,w){"use strict";Xe.exports=w.p+"static/mkv.f43ec502.svg"},93383:function(Xe,Ge,w){"use strict";Xe.exports=w.p+"static/mov.1e1eebb7.svg"},97104:function(Xe,Ge,w){"use strict";Xe.exports=w.p+"static/mp3.a7e45c91.svg"},34657:function(Xe,Ge,w){"use strict";Xe.exports=w.p+"static/mp4.31a2d9d7.svg"},8382:function(Xe,Ge,w){"use strict";Xe.exports=w.p+"static/mpeg.9a0dfa86.svg"},91664:function(Xe,Ge,w){"use strict";Xe.exports=w.p+"static/ogg.0394dc54.svg"},8796:function(Xe,Ge,w){"use strict";Xe.exports=w.p+"static/opus.faad335c.svg"},7794:function(Xe,Ge,w){"use strict";Xe.exports=w.p+"static/pdf.5d12b224.svg"},55463:function(Xe,Ge,w){"use strict";Xe.exports=w.p+"static/png.eacc8c1c.svg"},63675:function(Xe,Ge,w){"use strict";Xe.exports=w.p+"static/ppt.d710530e.svg"},30457:function(Xe,Ge,w){"use strict";Xe.exports=w.p+"static/pptx.d78add0d.svg"},22395:function(Xe,Ge,w){"use strict";Xe.exports=w.p+"static/txt.53f7213d.svg"},54408:function(Xe,Ge,w){"use strict";Xe.exports=w.p+"static/wav.a76e7dde.svg"},72588:function(Xe,Ge,w){"use strict";Xe.exports=w.p+"static/webm.3a7e6ebc.svg"},65872:function(Xe,Ge,w){"use strict";Xe.exports=w.p+"static/wma.a57b430b.svg"},4272:function(Xe,Ge,w){"use strict";Xe.exports=w.p+"static/wmv.f22ee4a1.svg"},89270:function(Xe,Ge,w){"use strict";Xe.exports=w.p+"static/wps.f48aef2c.svg"},21919:function(Xe,Ge,w){"use strict";Xe.exports=w.p+"static/xls.0db636e2.svg"},72406:function(Xe,Ge,w){"use strict";Xe.exports=w.p+"static/xlsx.5d09490a.svg"},93314:function(Xe){"use strict";Xe.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAMwAAACaCAYAAADl9acYAAAAAXNSR0IArs4c6QAAIABJREFUeF7tXQd4U1Ubfs/NaJtO9kzLahFQEJkiUBBFUFFkCCjiAAVFERT5FREQQQXBBcpysWRP2RtkKRsEOphNodCZdDfjnv85CU2TZt2bhABNDw9PmtzvrO+c957xLQIP0pkz1yrQIEmwwcDzHhTj91klEo7jpcG5zetWUJdmRjmPvTM9GI9JgSGvadOoLE9KJJ5kPp2YXLtZdO1kT8ooz2vigCNelvPYezPEG7z0CDAn4pJqPvJA5A3vdcl/S3LEy3Iee29OeIOX5YDx3nh4VFI5YDxin6DM5YARxKb7g6gcMHd+nMoBc+d57LKGhCQ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bx6ZItdHV5rF0bI96RwjJCzFmxnC3tjQQNqQfQwmaY808Zz8UXHIlnWpSWRbjv76t5vjbI5uo6OvpWICtLIRxFHqo8oYAPW2FiBXQ0YayppnjTOia6kgMrghTn22yubue5t9+eZSTs86r5N4we9hBASml2tq6+pnvzipsaNnaFXnxuGWWlOWzckKC2Nk1Jbh+au+K8/uk75BgR4l6SfnkljNmnkF/992kIK0hZv3z+8tdPeOvTTuaHBmAUFWCFgrjhPGLDB5MYFIWQg0gGKJq/kVC6AzfWTaqpmf+IdDNuRF66ra3r19fcf+2dnzeT9VWs9B4FINP89sSP3lz1UHtd16SVK9vZvDlNLGaQJ4p0cfzZJa9g6Wk8Q89nnHjYQC754dGYwTBVQ/vw3D83MG/hZmQmiekFsHOjLN+cwczvy6rD9sfOyaO0O8E+bz1NjimYNLIUy1FDb8bCwr6hS39298++tfHhXiKsePbm4CdrzP9csyp+3dat6f52xiKfPqRthzmr5hK3u5CeIJxjcPbUcZx07HcIRMKU9S1iyRsp1s0V1CXqWd6xgWGFVSxoa6cqL6BbO6VFebpNU5IfYvnqFFPLv1PXUb7qDoPOx25+7uZvf0B8e9bfdd5/5aza6E5vaU5evk/JyLHddlysaVrOmoZqDAJUlORy/eXHU1FaSCg3gkhFWT3bZM7y1azt3ki/gjJC0RysYIa059LeGaeqJJ94Ii6H9Kv8NNcovk+uKXvqF8un/N/+CcBu5N24Yb8H9pfF6XOW1M+bUtNYP6yoIGRccPphjBrZT7dBcosjtC2PsnRBnNUNDdiik5I+BeREQnpsMZm2VQt7vcR+PRoJPC1mtc2/mZv///ojj90punz2WfN/nntvQHFezmRXpPcdP3bIqIL8whGWF6xc+04oL7kqQ2Pfpu5omAZThNY6GWuV4waWOp6xcGg0UDPtuWn/lj/j+X+Lbso4jJUfOwAAAABJRU5ErkJggg=="},37166:function(Xe){"use strict";Xe.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAFAAAABQCAYAAACOEfKtAAAAAXNSR0IArs4c6QAAI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NmZmQ6ICS5PftLZoOq3B4EkK6CcgeAireBzay6JL4UgAMugIOKAschGA7lTM4oMTv0/wOup6hf9sCvqgAAAABJRU5ErkJggg=="},49321:function(Xe){"use strict";Xe.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAMgAAADICAYAAACtWK6eAAAAAXNSR0IArs4c6QAAFpdJREFUeF7tnQmQFEXWx1/NPQzMAQxyyyXHIDDDJQzqDHLNsrBruIahoCFfrLvfoi6frHjAeqzGqruirhofi/rthrKKq4ChAmEIouDFISKoXOIACowcPdDDDDPM2fXFa7Z1ju7OzKrKqszulxEEEVTmy//7v/zR3dVZ2QZ40Hy+ipGQCGPBhHzTNCcYYFzqgYyYm3Lvt99BRnpaWVJy0u5EML4YNrT/ophL0uWEDJfnA5/v7N/AMG8HgCS35471+RCQ5i09LbU8NTXlkRF5/Z+O9dxl5ecaID5fxWjTgHcNgE6ykon3uK0BCfnRoX277SOHDRwb7/5Yyd89QMorTCsCaQy/A5EAwQjt0tOOjckf3Is/GvVEB1wBxHe6YjGYsIAsl+tANEAIEmveSwfkZLn/pgQw/mVNHo0ScYAFCEEi4uaFvtIB8fkqloMBs8Sl0QhRB3gAIUjEXJUPSHnFXgAYIiaLeltxgBcQgoTfXamA+P3+7MYmw88vh3racUAEEIKEz2mpgPh8/mIwjI18UqiXXQdEASFI2I4TIGyPtOlhBRCCJHp5CRBtlj9bqFVACJLI3hIg7HWnTQ87gBAk4ctMgGiz/NlC7QJCkLT1mABhrzttejgBCEHSstwEiDbLny3UKUAIkp+8JkDY606bHk4CQpBcKDsBos3yZwt1GhCChABhrzqNesgAJN4hoVcQjQBgSZUFSDxDQoCwVp1G12UCEq+QECAaAcCSKhuQeISEAGGtOo2uuwFIvEFCgGgEAEuqW4DEEyQECGvVaXTdTUDiBRICRCMAWFLdBiQeICFAWKtOo+teABLrkBAgGgHAkuoVILEMCQHCWnUaXfcSkFiFhADRCACWVK8BiUVICBDWqtPougqAxBokBIhGALCkqgJILEFCgL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3Rpp2p6aFHji4VBgdaIwd0SsFN2YlE/tZAEfIAuB848lRxbQUq9Plo0ts3hxp7+HY3ti33ANi19fbUvsor0GFoRZHOvk1Y6FIC7q5dSPzcw4Gv8iZ4mnNtBQp0l9BlcHzFAAeu0h8B48V+JdQjQri2D57a/VyBBkMNanSOw1WNCt0bSUh82FZXHgD3cwM81VxbAT10yNWlQm+6vceupKuTQTJ7J7ZYGZE9AHZtHzy1XViBSn0B1Hpnr5jlziZh642WV7V6AOzCBniqurYCnWhDodZ2upGtliXA9l3Y9r75dx4Au7YHntourkChLhOdDjxzPV1wKl8oxpn/Fp0HwC5ugKe6ayvQbGhAuc75SwY5cB8lIfFeoVcPgF1bf09tl1fAgDxdut0wS+supIt2Y8v3zELxqSz7ajsnXZ6Sp4F/rRVoMFShRmf/yq3eK8JljcSE6dsxu9sD4H8trAzK2eqgQ54uDXohPdyJUXLgnkxC4sseADuxWJ4i7l+Ban0JGvW2U+9t9c4B7QZIJ3oA7P698fTgxAo0GepRobN/qaFlMxy4/f8E90wA8RE2tUgAAAAASUVORK5CYII="},80360:function(Xe,Ge,w){"use strict";w.d(Ge,{ZP:function(){return Ks}});const p=Number.isFinite||function(a){return typeof a=="number"&&isFinite(a)},Ae=Number.isSafeInteger||function(a){return typeof a=="number"&&Math.abs(a)<=xe},xe=Number.MAX_SAFE_INTEGER||9007199254740991;let ce=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}({}),Y=function(a){return a.KEY_SYSTEM_NO_KEYS="keySystemNoKeys",a.KEY_SYSTEM_NO_ACCESS="keySystemNoAccess",a.KEY_SYSTEM_NO_SESSION="keySystemNoSession",a.KEY_SYSTEM_NO_CONFIGURED_LICENSE="keySystemNoConfiguredLicense",a.KEY_SYSTEM_LICENSE_REQUEST_FAILED="keySystemLicenseRequestFailed",a.KEY_SYSTEM_SERVER_CERTIFICATE_REQUEST_FAILED="keySystemServerCertificateRequestFailed",a.KEY_SYSTEM_SERVER_CERTIFICATE_UPDATE_FAILED="keySystemServerCertificateUpdateFailed",a.KEY_SYSTEM_SESSION_UPDATE_FAILED="keySystemSessionUpdateFailed",a.KEY_SYSTEM_STATUS_OUTPUT_RESTRICTED="keySystemStatusOutputRestricted",a.KEY_SYSTEM_STATUS_INTERNAL_ERROR="keySystemStatusInternalError",a.KEY_SYSTEM_DESTROY_MEDIA_KEYS_ERROR="keySystemDestroyMediaKeysError",a.KEY_SYSTEM_DESTROY_CLOSE_SESSION_ERROR="keySystemDestroyCloseSessionError",a.KEY_SYSTEM_DESTROY_REMOVE_SESSION_ERROR="keySystemDestroyRemoveSessionError",a.MANIFEST_LOAD_ERROR="manifestLoadError",a.MANIFEST_LOAD_TIMEOUT="manifestLoadTimeOut",a.MANIFEST_PARSING_ERROR="manifestParsingError",a.MANIFEST_INCOMPATIBLE_CODECS_ERROR="manifestIncompatibleCodecsError",a.LEVEL_EMPTY_ERROR="levelEmptyError",a.LEVEL_LOAD_ERROR="levelLoadError",a.LEVEL_LOAD_TIMEOUT="levelLoadTimeOut",a.LEVEL_PARSING_ERROR="levelParsingError",a.LEVEL_SWITCH_ERROR="levelSwitchError",a.AUDIO_TRACK_LOAD_ERROR="audioTrackLoadError",a.AUDIO_TRACK_LOAD_TIMEOUT="audioTrackLoadTimeOut",a.SUBTITLE_LOAD_ERROR="subtitleTrackLoadError",a.SUBTITLE_TRACK_LOAD_TIMEOUT="subtitleTrackLoadTimeOut",a.FRAG_LOAD_ERROR="fragLoadError",a.FRAG_LOAD_TIMEOUT="fragLoadTimeOut",a.FRAG_DECRYPT_ERROR="fragDecryptError",a.FRAG_PARSING_ERROR="fragParsingError",a.FRAG_GAP="fragGap",a.REMUX_ALLOC_ERROR="remuxAllocError",a.KEY_LOAD_ERROR="keyLoadError",a.KEY_LOAD_TIMEOUT="keyLoadTimeOut",a.BUFFER_ADD_CODEC_ERROR="bufferAddCodecError",a.BUFFER_INCOMPATIBLE_CODECS_ERROR="bufferIncompatibleCodecsError",a.BUFFER_APPEND_ERROR="bufferAppendError",a.BUFFER_APPENDING_ERROR="bufferAppendingError",a.BUFFER_STALLED_ERROR="bufferStalledError",a.BUFFER_FULL_ERROR="bufferFullError",a.BUFFER_SEEK_OVER_HOLE="bufferSeekOverHole",a.BUFFER_NUDGE_ON_STALL="bufferNudgeOnStall",a.ASSET_LIST_LOAD_ERROR="assetListLoadError",a.ASSET_LIST_LOAD_TIMEOUT="assetListLoadTimeout",a.ASSET_LIST_PARSING_ERROR="assetListParsingError",a.INTERSTITIAL_ASSET_ITEM_ERROR="interstitialAssetItemError",a.INTERNAL_EXCEPTION="internalException",a.INTERNAL_ABORTED="aborted",a.ATTACH_MEDIA_ERROR="attachMediaError",a.UNKNOWN="unknown",a}({}),m=function(a){return a.MEDIA_ATTACHING="hlsMediaAttaching",a.MEDIA_ATTACHED="hlsMediaAttached",a.MEDIA_DETACHING="hlsMediaDetaching",a.MEDIA_DETACHED="hlsMediaDetached",a.MEDIA_ENDED="hlsMediaEnded",a.STALL_RESOLVED="hlsStallResolved",a.BUFFER_RESET="hlsBufferReset",a.BUFFER_CODECS="hlsBufferCodecs",a.BUFFER_CREATED="hlsBufferCreated",a.BUFFER_APPENDING="hlsBufferAppending",a.BUFFER_APPENDED="hlsBufferAppended",a.BUFFER_EOS="hlsBufferEos",a.BUFFERED_TO_END="hlsBufferedToEnd",a.BUFFER_FLUSHING="hlsBufferFlushing",a.BUFFER_FLUSHED="hlsBufferFlushed",a.MANIFEST_LOADING="hlsManifestLoading",a.MANIFEST_LOADED="hlsManifestLoaded",a.MANIFEST_PARSED="hlsManifestParsed",a.LEVEL_SWITCHING="hlsLevelSwitching",a.LEVEL_SWITCHED="hlsLevelSwitched",a.LEVEL_LOADING="hlsLevelLoading",a.LEVEL_LOADED="hlsLevelLoaded",a.LEVEL_UPDATED="hlsLevelUpdated",a.LEVEL_PTS_UPDATED="hlsLevelPtsUpdated",a.LEVELS_UPDATED="hlsLevelsUpdated",a.AUDIO_TRACKS_UPDATED="hlsAudioTracksUpdated",a.AUDIO_TRACK_SWITCHING="hlsAudioTrackSwitching",a.AUDIO_TRACK_SWITCHED="hlsAudioTrackSwitched",a.AUDIO_TRACK_LOADING="hlsAudioTrackLoading",a.AUDIO_TRACK_LOADED="hlsAudioTrackLoaded",a.AUDIO_TRACK_UPDATED="hlsAudioTrackUpdated",a.SUBTITLE_TRACKS_UPDATED="hlsSubtitleTracksUpdated",a.SUBTITLE_TRACKS_CLEARED="hlsSubtitleTracksCleared",a.SUBTITLE_TRACK_SWITCH="hlsSubtitleTrackSwitch",a.SUBTITLE_TRACK_LOADING="hlsSubtitleTrackLoading",a.SUBTITLE_TRACK_LOADED="hlsSubtitleTrackLoaded",a.SUBTITLE_TRACK_UPDATED="hlsSubtitleTrackUpdated",a.SUBTITLE_FRAG_PROCESSED="hlsSubtitleFragProcessed",a.CUES_PARSED="hlsCuesParsed",a.NON_NATIVE_TEXT_TRACKS_FOUND="hlsNonNativeTextTracksFound",a.INIT_PTS_FOUND="hlsInitPtsFound",a.FRAG_LOADING="hlsFragLoading",a.FRAG_LOAD_EMERGENCY_ABORTED="hlsFragLoadEmergencyAborted",a.FRAG_LOADED="hlsFragLoaded",a.FRAG_DECRYPTED="hlsFragDecrypted",a.FRAG_PARSING_INIT_SEGMENT="hlsFragParsingInitSegment",a.FRAG_PARSING_USERDATA="hlsFragParsingUserdata",a.FRAG_PARSING_METADATA="hlsFragParsingMetadata",a.FRAG_PARSED="hlsFragParsed",a.FRAG_BUFFERED="hlsFragBuffered",a.FRAG_CHANGED="hlsFragChanged",a.FPS_DROP="hlsFpsDrop",a.FPS_DROP_LEVEL_CAPPING="hlsFpsDropLevelCapping",a.MAX_AUTO_LEVEL_UPDATED="hlsMaxAutoLevelUpdated",a.ERROR="hlsError",a.DESTROYING="hlsDestroying",a.KEY_LOADING="hlsKeyLoading",a.KEY_LOADED="hlsKeyLoaded",a.LIVE_BACK_BUFFER_REACHED="hlsLiveBackBufferReached",a.BACK_BUFFER_REACHED="hlsBackBufferReached",a.STEERING_MANIFEST_LOADED="hlsSteeringManifestLoaded",a.ASSET_LIST_LOADING="hlsAssetListLoading",a.ASSET_LIST_LOADED="hlsAssetListLoaded",a.INTERSTITIALS_UPDATED="hlsInterstitialsUpdated",a.INTERSTITIALS_BUFFERED_TO_BOUNDARY="hlsInterstitialsBufferedToBoundary",a.INTERSTITIAL_ASSET_PLAYER_CREATED="hlsInterstitialAssetPlayerCreated",a.INTERSTITIAL_STARTED="hlsInterstitialStarted",a.INTERSTITIAL_ASSET_STARTED="hlsInterstitialAssetStarted",a.INTERSTITIAL_ASSET_ENDED="hlsInterstitialAssetEnded",a.INTERSTITIAL_ASSET_ERROR="hlsInterstitialAssetError",a.INTERSTITIAL_ENDED="hlsInterstitialEnded",a.INTERSTITIALS_PRIMARY_RESUMED="hlsInterstitialsPrimaryResumed",a.PLAYOUT_LIMIT_REACHED="hlsPlayoutLimitReached",a.EVENT_CUE_ENTER="hlsEventCueEnter",a}({});var ve={MANIFEST:"manifest",LEVEL:"level",AUDIO_TRACK:"audioTrack",SUBTITLE_TRACK:"subtitleTrack"},U={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 X{constructor(e,t,n,i=100){this.defaultEstimate_=void 0,this.minWeight_=void 0,this.minDelayMs_=void 0,this.slow_=void 0,this.fast_=void 0,this.defaultTTFB_=void 0,this.ttfb_=void 0,this.defaultEstimate_=n,this.minWeight_=.001,this.minDelayMs_=50,this.slow_=new o(e),this.fast_=new o(t),this.defaultTTFB_=i,this.ttfb_=new o(e)}update(e,t){const{slow_:n,fast_:i,ttfb_:r}=this;n.halfLife!==e&&(this.slow_=new o(e,n.getEstimate(),n.getTotalWeight())),i.halfLife!==t&&(this.fast_=new o(t,i.getEstimate(),i.getTotalWeight())),r.halfLife!==e&&(this.ttfb_=new o(e,r.getEstimate(),r.getTotalWeight()))}sample(e,t){e=Math.max(e,this.minDelayMs_);const n=8*t,i=e/1e3,r=n/i;this.fast_.sample(i,r),this.slow_.sample(i,r)}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 L(a,e,t){return(e=O(e))in a?Object.defineProperty(a,e,{value:t,enumerable:!0,configurable:!0,writable:!0}):a[e]=t,a}function _(){return _=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},_.apply(null,arguments)}function y(a,e){var t=Object.keys(a);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(a);e&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(a,i).enumerable})),t.push.apply(t,n)}return t}function E(a){for(var e=1;e<arguments.length;e++){var t=arguments[e]!=null?arguments[e]:{};e%2?y(Object(t),!0).forEach(function(n){L(a,n,t[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(a,Object.getOwnPropertyDescriptors(t)):y(Object(t)).forEach(function(n){Object.defineProperty(a,n,Object.getOwnPropertyDescriptor(t,n))})}return a}function S(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 O(a){var e=S(a,"string");return typeof e=="symbol"?e:e+""}class P{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=H,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 H=function(){},B={trace:H,debug:H,log:H,warn:H,info:H,error:H};function R(){return _({},B)}function J(a,e){const t=self.console[a];return t?t.bind(self.console,`${e?"["+e+"] ":""}[${a}] >`):H}function q(a,e,t){return e[a]?e[a].bind(e):J(a,t)}const ge=R();function _e(a,e,t){const n=R();if(typeof console=="object"&&a===!0||typeof a=="object"){const i=["debug","log","info","warn","error"];i.forEach(r=>{n[r]=q(r,a,t)});try{n.log(`Debug logs enabled for "${e}" in hls.js version 1.6.13`)}catch(r){return R()}i.forEach(r=>{ge[r]=q(r,a)})}else _(ge,n);return n}const se=ge;function we(a=!0){return typeof self=="undefined"?void 0:(a||!self.MediaSource)&&self.ManagedMediaSource||self.MediaSource||self.WebKitMediaSource}function de(a){return typeof self!="undefined"&&a===self.ManagedMediaSource}function ie(a,e){const t=Object.keys(a),n=Object.keys(e),i=t.length,r=n.length;return!i||!r||i===r&&!t.some(s=>n.indexOf(s)===-1)}function oe(a,e=!1){if(typeof TextDecoder!="undefined"){const c=new TextDecoder("utf-8").decode(a);if(e){const f=c.indexOf("\0");return f!==-1?c.substring(0,f):c}return c.replace(/\0/g,"")}const t=a.length;let n,i,r,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:i=a[l++],s+=String.fromCharCode((n&31)<<6|i&63);break;case 14:i=a[l++],r=a[l++],s+=String.fromCharCode((n&15)<<12|(i&63)<<6|(r&63)<<0);break}}return s}function K(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 k(a){return Uint8Array.from(a.replace(/^0x/,"").replace(/([\da-fA-F]{2}) ?/g,"0x$1 ").replace(/ +$/,"").split(" ")).buffer}function V(a){return a&&a.__esModule&&Object.prototype.hasOwnProperty.call(a,"default")?a.default:a}var $={exports:{}},ae;function re(){return ae||(ae=1,function(a,e){(function(t){var n=/^(?=((?:[a-zA-Z0-9+\-.]+:)?))\1(?=((?:\/\/[^\/?#]*)?))\2(?=((?:(?:[^?#\/]*\/)*[^;?#\/]*)?))\3((?:;[^?#]*)?)(\?[^#]*)?(#[^]*)?$/,i=/^(?=([^\/?#]*))\1([^]*)$/,r=/(?:\/|^)\.(?=\/)/g,s=/(?:\/|^)\.\.\/(?!\.\.\/)[^\/]*(?=\/)/g,l={buildAbsoluteURL:function(h,c,f){if(f=f||{},h=h.trim(),c=c.trim(),!c){if(!f.alwaysNormalize)return h;var g=l.parseURL(h);if(!g)throw new Error("Error trying to parse base URL.");return g.path=l.normalizePath(g.path),l.buildURLFromParts(g)}var A=l.parseURL(c);if(!A)throw new Error("Error trying to parse relative URL.");if(A.scheme)return f.alwaysNormalize?(A.path=l.normalizePath(A.path),l.buildURLFromParts(A)):c;var I=l.parseURL(h);if(!I)throw new Error("Error trying to parse base URL.");if(!I.netLoc&&I.path&&I.path[0]!=="/"){var C=i.exec(I.path);I.netLoc=C[1],I.path=C[2]}I.netLoc&&!I.path&&(I.path="/");var Q={scheme:I.scheme,netLoc:A.netLoc,path:null,params:A.params,query:A.query,fragment:A.fragment};if(!A.netLoc&&(Q.netLoc=I.netLoc,A.path[0]!=="/"))if(!A.path)Q.path=I.path,A.params||(Q.params=I.params,A.query||(Q.query=I.query));else{var Z=I.path,me=Z.substring(0,Z.lastIndexOf("/")+1)+A.path;Q.path=l.normalizePath(me)}return Q.path===null&&(Q.path=f.alwaysNormalize?l.normalizePath(A.path):A.path),l.buildURLFromParts(Q)},parseURL:function(h){var c=n.exec(h);return c?{scheme:c[1]||"",netLoc:c[2]||"",path:c[3]||"",params:c[4]||"",query:c[5]||"",fragment:c[6]||""}:null},normalizePath:function(h){for(h=h.split("").reverse().join("").replace(r,"");h.length!==(h=h.replace(s,"")).length;);return h.split("").reverse().join("")},buildURLFromParts:function(h){return h.scheme+h.netLoc+h.path+h.params+h.query+h.fragment}};a.exports=l})()}($)),$.exports}var x=re();class b{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 W={AUDIO:"audio",VIDEO:"video",AUDIOVIDEO:"audiovideo"};class fe{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,Ot(this,"stats")}setByteRange(e,t){const n=e.split("@",2);let i;n.length===1?i=(t==null?void 0:t.byteRangeEndOffset)||0:i=parseInt(n[1]),this._byteRange=[i,parseInt(n[0])+i]}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={[W.AUDIO]:null,[W.VIDEO]:null,[W.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 b),this._stats}set stats(e){this._stats=e}get url(){return!this._url&&this.baseurl&&this.relurl&&(this._url=x.buildAbsoluteURL(this.baseurl,this.relurl,{alwaysNormalize:!0})),this._url||""}set url(e){this._url=e}clearElementaryStreamInfo(){const{elementaryStreams:e}=this;e[W.AUDIO]=null,e[W.VIDEO]=null,e[W.AUDIOVIDEO]=null}}function ke(a){return a.sn!=="initSegment"}class je extends fe{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(p(e)&&p(t))return t-e}return null}get bitrate(){return this.byteLength?this.byteLength*8/this.duration:this._bitrate?this._bitrate:null}set bitrate(e){this._bitrate=e}get decryptdata(){var e;const{levelkeys:t}=this;if(!t||t.NONE)return null;if(t.identity)this._decryptdata||(this._decryptdata=t.identity.getDecryptData(this.sn));else if(!((e=this._decryptdata)!=null&&e.keyId)){const n=Object.keys(t);if(n.length===1){const i=this._decryptdata=t[n[0]]||null;i&&(this._decryptdata=i.getDecryptData(this.sn,t))}}return this._decryptdata}get end(){return this.start+this.duration}get endProgramDateTime(){if(this.programDateTime===null)return null;const e=p(this.duration)?this.duration:0;return this.programDateTime+e*1e3}get encrypted(){var e;if((e=this._decryptdata)!=null&&e.encrypted)return!0;if(this.levelkeys){var t;const n=Object.keys(this.levelkeys),i=n.length;if(i>1||i===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(!p(e)){this._programDateTime=this.rawProgramDateTime=null;return}this._programDateTime=e}get ref(){return ke(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){const t=this.levelkeys;if(t){var n;const i=t[e];i&&!((n=this._decryptdata)!=null&&n.keyId)&&(this._decryptdata=i.getDecryptData(this.sn,t))}}abortRequests(){var e,t;(e=this.loader)==null||e.abort(),(t=this.keyLoader)==null||t.abort()}setElementaryStreamInfo(e,t,n,i,r,s=!1){const{elementaryStreams:l}=this,h=l[e];if(!h){l[e]={startPTS:t,endPTS:n,startDTS:i,endDTS:r,partial:s};return}h.startPTS=Math.min(h.startPTS,t),h.endPTS=Math.max(h.endPTS,n),h.startDTS=Math.min(h.startDTS,i),h.endDTS=Math.max(h.endDTS,r)}}class yt extends fe{constructor(e,t,n,i,r){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=i;const s=e.enumeratedString("BYTERANGE");s&&this.setByteRange(s,r),r&&(this.fragOffset=r.fragOffset+r.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 ht(a,e){const t=Object.getPrototypeOf(a);if(t){const n=Object.getOwnPropertyDescriptor(t,e);return n||ht(t,e)}}function Ot(a,e){const t=ht(a,e);t&&(t.enumerable=!0,Object.defineProperty(a,e,t))}const Dt=Math.pow(2,32)-1,Ve=[].push,Jt={video:1,audio:2,id3:3,text:4};function ot(a){return String.fromCharCode.apply(null,a)}function Et(a,e){const t=a[e]<<8|a[e+1];return t<0?65536+t:t}function qe(a,e){const t=Te(a,e);return t<0?4294967296+t:t}function Kt(a,e){let t=qe(a,e);return t*=Math.pow(2,32),t+=qe(a,e+4),t}function Te(a,e){return a[e]<<24|a[e+1]<<16|a[e+2]<<8|a[e+3]}function F(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 i=0;i<n;){const r=qe(a,i),s=ot(a.subarray(i+4,i+8)),l=r>1?i+r:n;if(s===e[0])if(e.length===1)t.push(a.subarray(i+8,l));else{const h=v(a.subarray(i+8,l),e.slice(1));h.length&&Ve.apply(t,h)}i=l}return t}function T(a){const e=[],t=a[0];let n=8;const i=qe(a,n);n+=4;let r=0,s=0;t===0?(r=qe(a,n),s=qe(a,n+4),n+=8):(r=Kt(a,n),s=Kt(a,n+8),n+=16),n+=2;let l=a.length+s;const h=Et(a,n);n+=2;for(let c=0;c<h;c++){let f=n;const g=qe(a,f);f+=4;const A=g&2147483647;if((g&2147483648)>>>31===1)return se.warn("SIDX has hierarchical references (not supported)"),null;const C=qe(a,f);f+=4,e.push({referenceSize:A,subsegmentDuration:C,info:{duration:C/i,start:l,end:l+A-1}}),l+=A,f+=4,n=f}return{earliestPresentationTime:r,timescale:i,version:t,referencesCount:h,references:e}}function ee(a){const e=[],t=v(a,["moov","trak"]);for(let i=0;i<t.length;i++){const r=t[i],s=v(r,["tkhd"])[0];if(s){let l=s[0];const h=qe(s,l===0?12:20),c=v(r,["mdia","mdhd"])[0];if(c){l=c[0];const f=qe(c,l===0?12:20),g=v(r,["mdia","hdlr"])[0];if(g){const A=ot(g.subarray(8,12)),I={soun:W.AUDIO,vide:W.VIDEO}[A],C=v(r,["mdia","minf","stbl","stsd"])[0],Q=N(C);I?(e[h]={timescale:f,type:I,stsd:Q},e[I]=E({timescale:f,id:h},Q)):e[h]={timescale:f,type:A,stsd:Q}}}}}return v(a,["moov","mvex","trex"]).forEach(i=>{const r=qe(i,4),s=e[r];s&&(s.default={duration:qe(i,12),flags:qe(i,20)})}),e}function N(a){const e=a.subarray(8),t=e.subarray(86),n=ot(e.subarray(4,8));let i=n,r;const s=n==="enca"||n==="encv";if(s){const c=v(e,[n])[0].subarray(n==="enca"?28:78);v(c,["sinf"]).forEach(g=>{const A=v(g,["schm"])[0];if(A){const I=ot(A.subarray(4,8));if(I==="cbcs"||I==="cenc"){const C=v(g,["frma"])[0];C&&(i=ot(C))}}})}const l=i;switch(i){case"avc1":case"avc2":case"avc3":case"avc4":{const h=v(t,["avcC"])[0];h&&h.length>3&&(i+="."+Ne(h[1])+Ne(h[2])+Ne(h[3]),r=z(l==="avc1"?"dva1":"dvav",t));break}case"mp4a":{const h=v(e,[n])[0],c=v(h.subarray(28),["esds"])[0];if(c&&c.length>7){let f=4;if(c[f++]!==3)break;f=Fe(c,f),f+=2;const g=c[f++];if(g&128&&(f+=2),g&64&&(f+=c[f++]),c[f++]!==4)break;f=Fe(c,f);const A=c[f++];if(A===64)i+="."+Ne(A);else break;if(f+=12,c[f++]!==5)break;f=Fe(c,f);const I=c[f++];let C=(I&248)>>3;C===31&&(C+=1+((I&7)<<3)+((c[f]&224)>>5)),i+="."+C}break}case"hvc1":case"hev1":{const h=v(t,["hvcC"])[0];if(h&&h.length>12){const c=h[1],f=["","A","B","C"][c>>6],g=c&31,A=qe(h,2),I=(c&32)>>5?"H":"L",C=h[12],Q=h.subarray(6,12);i+="."+f+g,i+="."+he(A).toString(16).toUpperCase(),i+="."+I+C;let Z="";for(let me=Q.length;me--;){const ye=Q[me];(ye||Z)&&(Z="."+ye.toString(16).toUpperCase()+Z)}i+=Z}r=z(l=="hev1"?"dvhe":"dvh1",t);break}case"dvh1":case"dvhe":case"dvav":case"dva1":case"dav1":{i=z(i,t)||i;break}case"vp09":{const h=v(t,["vpcC"])[0];if(h&&h.length>6){const c=h[4],f=h[5],g=h[6]>>4&15;i+="."+rt(c)+"."+rt(f)+"."+rt(g)}break}case"av01":{const h=v(t,["av1C"])[0];if(h&&h.length>2){const c=h[1]>>>5,f=h[1]&31,g=h[2]>>>7?"H":"M",A=(h[2]&64)>>6,I=(h[2]&32)>>5,C=c===2&&A?I?12:10:A?10:8,Q=(h[2]&16)>>4,Z=(h[2]&8)>>3,me=(h[2]&4)>>2,ye=h[2]&3;i+="."+c+"."+rt(f)+g+"."+rt(C)+"."+Q+"."+Z+me+ye+"."+rt(1)+"."+rt(1)+"."+rt(1)+"."+0,r=z("dav1",t)}break}}return{codec:i,encrypted:s,supplemental:r}}function z(a,e){const t=v(e,["dvvC"]),n=t.length?t[0]:v(e,["dvcC"])[0];if(n){const i=n[2]>>1&127,r=n[2]<<5&32|n[3]>>3&31;return a+"."+rt(i)+"."+rt(r)}}function he(a){let e=0;for(let t=0;t<32;t++)e|=(a>>t&1)<<31-t;return e>>>0}function Fe(a,e){const t=e+5;for(;a[e++]&128&&e<t;);return e}function Ne(a){return("0"+a.toString(16).toUpperCase()).slice(-2)}function rt(a){return(a<10?"0":"")+a}function lt(a,e){if(!a||!e)return;const t=e.keyId;t&&e.isCommonEncryption&&Tt(a,(n,i)=>{const r=n.subarray(8,24);r.some(s=>s!==0)||(se.log(`[eme] Patching keyId in 'enc${i?"a":"v"}>sinf>>tenc' box: ${K(r)} -> ${K(t)}`),n.set(t,8))})}function zt(a){const e=[];return Tt(a,t=>e.push(t.subarray(8,24))),e}function Tt(a,e){v(a,["moov","trak"]).forEach(n=>{const i=v(n,["mdia","minf","stbl","stsd"])[0];if(!i)return;const r=i.subarray(8);let s=v(r,["enca"]);const l=s.length>0;l||(s=v(r,["encv"])),s.forEach(h=>{const c=l?h.subarray(28):h.subarray(78);v(c,["sinf"]).forEach(g=>{const A=Ct(g);A&&e(A,l)})})})}function Ct(a){const e=v(a,["schm"])[0];if(e){const t=ot(e.subarray(4,8));if(t==="cbcs"||t==="cenc"){const n=v(a,["schi","tenc"])[0];if(n)return n}}}function At(a,e,t){const n={},i=v(a,["moof","traf"]);for(let r=0;r<i.length;r++){const s=i[r],l=v(s,["tfhd"])[0],h=qe(l,4),c=e[h];if(!c)continue;n[h]||(n[h]={start:NaN,duration:0,sampleCount:0,timescale:c.timescale,type:c.type});const f=n[h],g=v(s,["tfdt"])[0];if(g){const be=g[0];let Ue=qe(g,4);be===1&&(Ue===Dt?t.warn("[mp4-demuxer]: Ignoring assumed invalid signed 64-bit track fragment decode time"):(Ue*=Dt+1,Ue+=qe(g,8))),p(Ue)&&(!p(f.start)||Ue<f.start)&&(f.start=Ue)}const A=c.default,I=qe(l,0)|(A==null?void 0:A.flags);let C=(A==null?void 0:A.duration)||0;I&8&&(I&2?C=qe(l,12):C=qe(l,8));const Q=v(s,["trun"]);let Z=f.start||0,me=0,ye=C;for(let be=0;be<Q.length;be++){const Ue=Q[be],Je=qe(Ue,4),Bt=f.sampleCount;f.sampleCount+=Je;const nt=Ue[3]&1,mt=Ue[3]&4,gt=Ue[2]&1,at=Ue[2]&2,Qt=Ue[2]&4,Sn=Ue[2]&8;let zn=8,Jn=Je;for(nt&&(zn+=4),mt&&Je&&(!(Ue[zn+1]&1)&&f.keyFrameIndex===void 0&&(f.keyFrameIndex=Bt),zn+=4,gt?(ye=qe(Ue,zn),zn+=4):ye=C,at&&(zn+=4),Sn&&(zn+=4),Z+=ye,me+=ye,Jn--);Jn--;)gt?(ye=qe(Ue,zn),zn+=4):ye=C,at&&(zn+=4),Qt&&(Ue[zn+1]&1||f.keyFrameIndex===void 0&&(f.keyFrameIndex=f.sampleCount-(Jn+1),f.keyFrameStart=Z),zn+=4),Sn&&(zn+=4),Z+=ye,me+=ye;!me&&C&&(me+=C*Je)}f.duration+=me}if(!Object.keys(n).some(r=>n[r].duration)){let r=1/0,s=0;const l=v(a,["sidx"]);for(let h=0;h<l.length;h++){const c=T(l[h]);if(c!=null&&c.references){r=Math.min(r,c.earliestPresentationTime/c.timescale);const f=c.references.reduce((g,A)=>g+A.info.duration||0,0);s=Math.max(s,f+c.earliestPresentationTime/c.timescale)}}s&&p(s)&&Object.keys(n).forEach(h=>{n[h].duration||(n[h].duration=s*n[h].timescale-n[h].start)})}return n}function It(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 st(a,e){const t=new Uint8Array(a.length+e.length);return t.set(a),t.set(e,a.length),t}function ct(a,e){const t=[],n=e.samples,i=e.timescale,r=e.id;let s=!1;return v(n,["moof"]).map(h=>{const c=h.byteOffset-8;v(h,["traf"]).map(g=>{const A=v(g,["tfdt"]).map(I=>{const C=I[0];let Q=qe(I,4);return C===1&&(Q*=Math.pow(2,32),Q+=qe(I,8)),Q/i})[0];return A!==void 0&&(a=A),v(g,["tfhd"]).map(I=>{const C=qe(I,4),Q=qe(I,0)&16777215,Z=(Q&1)!==0,me=(Q&2)!==0,ye=(Q&8)!==0;let be=0;const Ue=(Q&16)!==0;let Je=0;const Bt=(Q&32)!==0;let nt=8;C===r&&(Z&&(nt+=8),me&&(nt+=4),ye&&(be=qe(I,nt),nt+=4),Ue&&(Je=qe(I,nt),nt+=4),Bt&&(nt+=4),e.type==="video"&&(s=Pe(e.codec)),v(g,["trun"]).map(mt=>{const gt=mt[0],at=qe(mt,0)&16777215,Qt=(at&1)!==0;let Sn=0;const zn=(at&4)!==0,Jn=(at&256)!==0;let jn=0;const pn=(at&512)!==0;let Gn=0;const Rn=(at&1024)!==0,Zn=(at&2048)!==0;let ci=0;const bn=qe(mt,4);let xn=8;Qt&&(Sn=qe(mt,xn),xn+=4),zn&&(xn+=4);let Di=Sn+c;for(let tr=0;tr<bn;tr++){if(Jn?(jn=qe(mt,xn),xn+=4):jn=be,pn?(Gn=qe(mt,xn),xn+=4):Gn=Je,Rn&&(xn+=4),Zn&&(gt===0?ci=qe(mt,xn):ci=Te(mt,xn),xn+=4),e.type===W.VIDEO){let Ci=0;for(;Ci<Gn;){const zi=qe(n,Di);if(Di+=4,wt(s,n[Di])){const Jr=n.subarray(Di,Di+zi);Lt(Jr,s?2:1,a+ci/i,t)}Di+=zi,Ci+=zi+4}}a+=jn/i}}))})})}),t}function Pe(a){if(!a)return!1;const e=a.substring(0,4);return e==="hvc1"||e==="hev1"||e==="dvh1"||e==="dvhe"}function wt(a,e){if(a){const t=e>>1&63;return t===39||t===40}else return(e&31)===6}function Lt(a,e,t,n){const i=St(a);let r=0;r+=e;let s=0,l=0,h=0;for(;r<i.length;){s=0;do{if(r>=i.length)break;h=i[r++],s+=h}while(h===255);l=0;do{if(r>=i.length)break;h=i[r++],l+=h}while(h===255);const c=i.length-r;let f=r;if(l<c)r+=l;else if(l>c){se.error(`Malformed SEI payload. ${l} is too small, only ${c} bytes left to parse.`);break}if(s===4){if(i[f++]===181){const A=Et(i,f);if(f+=2,A===49){const I=qe(i,f);if(f+=4,I===1195456820){const C=i[f++];if(C===3){const Q=i[f++],Z=31&Q,me=64&Q,ye=me?2+Z*3:0,be=new Uint8Array(ye);if(me){be[0]=Q;for(let Ue=1;Ue<ye;Ue++)be[Ue]=i[f++]}n.push({type:C,payloadType:s,pts:t,bytes:be})}}}}}else if(s===5&&l>16){const g=[];for(let C=0;C<16;C++){const Q=i[f++].toString(16);g.push(Q.length==1?"0"+Q:Q),(C===3||C===5||C===7||C===9)&&g.push("-")}const A=l-16,I=new Uint8Array(A);for(let C=0;C<A;C++)I[C]=i[f++];n.push({payloadType:s,pts:t,uuid:g.join(""),userData:oe(I),userDataBytes:I})}}}function St(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 i=e-t.length,r=new Uint8Array(i);let s=0;for(n=0;n<i;s++,n++)s===t[0]&&(s++,t.shift()),r[n]=a[s];return r}function en(a){const e=a[0];let t="",n="",i=0,r=0,s=0,l=0,h=0,c=0;if(e===0){for(;ot(a.subarray(c,c+1))!=="\0";)t+=ot(a.subarray(c,c+1)),c+=1;for(t+=ot(a.subarray(c,c+1)),c+=1;ot(a.subarray(c,c+1))!=="\0";)n+=ot(a.subarray(c,c+1)),c+=1;n+=ot(a.subarray(c,c+1)),c+=1,i=qe(a,12),r=qe(a,16),l=qe(a,20),h=qe(a,24),c=28}else if(e===1){c+=4,i=qe(a,c),c+=4;const g=qe(a,c);c+=4;const A=qe(a,c);for(c+=4,s=ec(2,32)*g+A,Ae(s)||(s=Number.MAX_SAFE_INTEGER,se.warn("Presentation time exceeds safe integer limit and wrapped to max safe integer in parsing emsg box")),l=qe(a,c),c+=4,h=qe(a,c),c+=4;ot(a.subarray(c,c+1))!=="\0";)t+=ot(a.subarray(c,c+1)),c+=1;for(t+=ot(a.subarray(c,c+1)),c+=1;ot(a.subarray(c,c+1))!=="\0";)n+=ot(a.subarray(c,c+1)),c+=1;n+=ot(a.subarray(c,c+1)),c+=1}const f=a.subarray(c,a.byteLength);return{schemeIdUri:t,value:n,timeScale:i,presentationTime:s,presentationTimeDelta:r,eventDuration:l,id:h,payload:f}}function Yt(a,...e){const t=e.length;let n=8,i=t;for(;i--;)n+=e[i].byteLength;const r=new Uint8Array(n);for(r[0]=n>>24&255,r[1]=n>>16&255,r[2]=n>>8&255,r[3]=n&255,r.set(a,4),i=0,n=8;i<t;i++)r.set(e[i],n),n+=e[i].byteLength;return r}function Ht(a,e,t){if(a.byteLength!==16)throw new RangeError("Invalid system id");let n,i;n=0,i=new Uint8Array;let r;n>0?(r=new Uint8Array(4),e.length>0&&new DataView(r.buffer).setUint32(0,e.length,!1)):r=new Uint8Array;const s=new Uint8Array(4);return t.byteLength>0&&new DataView(s.buffer).setUint32(0,t.byteLength,!1),Yt([112,115,115,104],new Uint8Array([n,0,0,0]),a,r,i,s,t)}function In(a){const e=[];if(a instanceof ArrayBuffer){const t=a.byteLength;let n=0;for(;n+32<t;){const i=new DataView(a,n),r=$n(i);e.push(r),n+=r.size}}return e}function $n(a){const e=a.getUint32(0),t=a.byteOffset,n=a.byteLength;if(n<e)return{offset:t,size:n};if(a.getUint32(4)!==1886614376)return{offset:t,size:e};const r=a.getUint32(8)>>>24;if(r!==0&&r!==1)return{offset:t,size:e};const s=a.buffer,l=K(new Uint8Array(s,t+12,16));let h=null,c=null,f=0;if(r===0)f=28;else{const A=a.getUint32(28);if(!A||n<32+A*16)return{offset:t,size:e};h=[];for(let I=0;I<A;I++)h.push(new Uint8Array(s,t+32+I*16,16));f=32+A*16}if(!f)return{offset:t,size:e};const g=a.getUint32(f);return e-32<g?{offset:t,size:e}:(c=new Uint8Array(s,t+f+4,g),{version:r,systemId:l,kids:h,data:c,offset:t,size:e})}const Vt=()=>/\(Windows.+Firefox\//i.test(navigator.userAgent),vn={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 He(a,e){const t=vn[e];return!!t&&!!t[a.slice(0,4)]}function Le(a,e,t=!0){return!a.split(",").some(n=>!De(n,e,t))}function De(a,e,t=!0){var n;const i=we(t);return(n=i==null?void 0:i.isTypeSupported(te(a,e)))!=null?n:!1}function te(a,e){return`${e}/mp4;codecs=${a}`}function ue(a){if(a){const e=a.substring(0,4);return vn.video[e]}return 2}function Se(a){const e=Vt();return a.split(",").reduce((t,n)=>{const r=e&&Pe(n)?9:vn.video[n];return r?(r*2+t)/(t?3:2):(vn.audio[n]+t)/(t?2:1)},0)}const Ie={};function Me(a,e=!0){if(Ie[a])return Ie[a];const t={flac:["flac","fLaC","FLAC"],opus:["opus","Opus"],"mp4a.40.34":["mp3"]}[a];for(let i=0;i<t.length;i++){var n;if(De(t[i],"audio",e))return Ie[a]=t[i],t[i];if(t[i]==="mp3"&&(n=we(e))!=null&&n.isTypeSupported("audio/mpeg"))return""}return a}const Ke=/flac|opus|mp4a\.40\.34/i;function Ye(a,e=!0){return a.replace(Ke,t=>Me(t.toLowerCase(),e))}function it(a,e){const t=[];if(a){const n=a.split(",");for(let i=0;i<n.length;i++)He(n[i],"video")||t.push(n[i])}return e&&t.push(e),t.join(",")}function pt(a,e){if(a&&(a.length>4||["ac-3","ec-3","alac","fLaC","Opus"].indexOf(a)!==-1)&&(Xt(a,"audio")||Xt(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 Xt(a,e){return He(a,e)&&De(a,e)}function hn(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 kt(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=we(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 fn(a){return a.replace(/^.+codecs=["']?([^"']+).*$/,"$1")}const Fn={supported:!0,powerEfficient:!0,smooth:!0},Re={supported:!1,smooth:!1,powerEfficient:!1},Nn={supported:!0,configurations:[],decodingInfoResults:[Fn]};function Rt(a,e){return{supported:!1,configurations:e,decodingInfoResults:[Re],error:a}}function Ft(a,e,t,n,i,r){const s=a.videoCodec,l=a.audioCodec?a.audioGroups:null,h=r==null?void 0:r.audioCodec,c=r==null?void 0:r.channels,f=c?parseInt(c):h?1/0:2;let g=null;if(l!=null&&l.length)try{l.length===1&&l[0]?g=e.groups[l[0]].channels:g=l.reduce((A,I)=>{if(I){const C=e.groups[I];if(!C)throw new Error(`Audio track group ${I} not found`);Object.keys(C.channels).forEach(Q=>{A[Q]=(A[Q]||0)+C.channels[Q]})}return A},{2:0})}catch(A){return!0}return s!==void 0&&(s.split(",").some(A=>Pe(A))||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(i,8e6))||!!g&&p(f)&&Object.keys(g).some(A=>parseInt(A)>f)}function rn(a,e,t,n={}){const i=a.videoCodec;if(!i&&!a.audioCodec||!t)return Promise.resolve(Nn);const r=[],s=_n(a),l=s.length,h=Mn(a,e,l>0),c=h.length;for(let f=l||1*c||1;f--;){const g={type:"media-source"};if(l&&(g.video=s[f%l]),c){g.audio=h[f%c];const A=g.audio.bitrate;g.video&&A&&(g.video.bitrate-=A)}r.push(g)}if(i){const f=navigator.userAgent;if(i.split(",").some(g=>Pe(g))&&Vt())return Promise.resolve(Rt(new Error(`Overriding Windows Firefox HEVC MediaCapabilities result based on user-agent string: (${f})`),r))}return Promise.all(r.map(f=>{const g=ki(f);return n[g]||(n[g]=t.decodingInfo(f))})).then(f=>({supported:!f.some(g=>!g.supported),configurations:r,decodingInfoResults:f})).catch(f=>({supported:!1,configurations:r,decodingInfoResults:[],error:f}))}function _n(a){var e;const t=(e=a.videoCodec)==null?void 0:e.split(","),n=Oi(a),i=a.width||640,r=a.height||480,s=a.frameRate||30,l=a.videoRange.toLowerCase();return t?t.map(h=>{const c={contentType:te(kt(h),"video"),width:i,height:r,bitrate:n,framerate:s};return l!=="sdr"&&(c.transferFunction=l),c}):[]}function Mn(a,e,t){var n;const i=(n=a.audioCodec)==null?void 0:n.split(","),r=Oi(a);return i&&a.audioGroups?a.audioGroups.reduce((s,l)=>{var h;const c=l?(h=e.groups[l])==null?void 0:h.tracks:null;return c?c.reduce((f,g)=>{if(g.groupId===l){const A=parseFloat(g.channels||"");i.forEach(I=>{const C={contentType:te(I,"audio"),bitrate:t?oi(I,r):r};A&&(C.channels=""+A),f.push(C)})}return f},s):s},[]):[]}function oi(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 Oi(a){return Math.ceil(Math.max(a.bitrate*.9,a.averageBitrate)/1e3)*1e3||1}function ki(a){let e="";const{audio:t,video:n}=a;if(n){const i=fn(n.contentType);e+=`${i}_r${n.height}x${n.width}f${Math.ceil(n.framerate)}${n.transferFunction||"sd"}_${Math.ceil(n.bitrate/1e5)}`}if(t){const i=fn(t.contentType);e+=`${n?"_":""}${i}_c${t.channels}`}return e}const vi=["NONE","TYPE-0","TYPE-1",null];function ji(a){return vi.indexOf(a)>-1}const ti=["SDR","PQ","HLG"];function Si(a){return!!a&&ti.indexOf(a)>-1}var wi={No:"",Yes:"YES",v2:"v2"};function Yi(a){const{canSkipUntil:e,canSkipDateRanges:t,age:n}=a,i=n<e/2;return e&&i?t?wi.v2:wi.Yes:wi.No}class Qn{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 Xn{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 di(this._audioGroups,e)}hasSubtitleGroup(e){return di(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 di(a,e){return!e||!a?!1:a.indexOf(e)!==-1}function ai(){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 wn(a,e){let t=!1,n=[];if(a&&(t=a!=="SDR",n=[a]),e){n=e.allowedVideoRanges||ti.slice(0);const i=n.join("")!=="SDR"&&!e.videoCodec;t=e.preferHDR!==void 0?e.preferHDR:i&&ai(),t||(n=["SDR"])}return{preferHDR:t,allowedVideoRanges:n}}const We=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}},ut=(a,e)=>JSON.stringify(a,We(e));function Ut(a,e,t,n,i){const r=Object.keys(a),s=n==null?void 0:n.channels,l=n==null?void 0:n.audioCodec,h=i==null?void 0:i.videoCodec,c=s&&parseInt(s)===2;let f=!1,g=!1,A=1/0,I=1/0,C=1/0,Q=1/0,Z=0,me=[];const{preferHDR:ye,allowedVideoRanges:be}=wn(e,i);for(let mt=r.length;mt--;){const gt=a[r[mt]];f||(f=gt.channels[2]>0),A=Math.min(A,gt.minHeight),I=Math.min(I,gt.minFramerate),C=Math.min(C,gt.minBitrate),be.filter(Qt=>gt.videoRanges[Qt]>0).length>0&&(g=!0)}A=p(A)?A:0,I=p(I)?I:0;const Ue=Math.max(1080,A),Je=Math.max(30,I);C=p(C)?C:t,t=Math.max(C,t),g||(e=void 0);const Bt=r.length>1;return{codecSet:r.reduce((mt,gt)=>{const at=a[gt];if(gt===mt)return mt;if(me=g?be.filter(Qt=>at.videoRanges[Qt]>0):[],Bt){if(at.minBitrate>t)return dt(gt,`min bitrate of ${at.minBitrate} > current estimate of ${t}`),mt;if(!at.hasDefaultAudio)return dt(gt,"no renditions with default or auto-select sound found"),mt;if(l&&gt.indexOf(l.substring(0,4))%5!==0)return dt(gt,`audio codec preference "${l}" not found`),mt;if(s&&!c){if(!at.channels[s])return dt(gt,`no renditions with ${s} channel sound found (channels options: ${Object.keys(at.channels)})`),mt}else if((!l||c)&&f&&at.channels[2]===0)return dt(gt,"no renditions with stereo sound found"),mt;if(at.minHeight>Ue)return dt(gt,`min resolution of ${at.minHeight} > maximum of ${Ue}`),mt;if(at.minFramerate>Je)return dt(gt,`min framerate of ${at.minFramerate} > maximum of ${Je}`),mt;if(!me.some(Qt=>at.videoRanges[Qt]>0))return dt(gt,`no variants with VIDEO-RANGE of ${ut(me)} found`),mt;if(h&&gt.indexOf(h.substring(0,4))%5!==0)return dt(gt,`video codec preference "${h}" not found`),mt;if(at.maxScore<Z)return dt(gt,`max score of ${at.maxScore} < selected max of ${Z}`),mt}return mt&&(Se(gt)>=Se(mt)||at.fragmentError>a[mt].fragmentError)?mt:(Q=at.minIndex,Z=at.maxScore,gt)},void 0),videoRanges:me,preferHDR:ye,minFramerate:I,minBitrate:C,minIndex:Q}}function dt(a,e){se.log(`[abr] start candidates with "${a}" ignored because ${e}`)}function vt(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 i=t.channels||"2";return n.channels[i]=(n.channels[i]||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 Mt(a,e,t,n){return a.slice(t,n+1).reduce((i,r,s)=>{if(!r.codecSet)return i;const l=r.audioGroups;let h=i[r.codecSet];h||(i[r.codecSet]=h={minBitrate:1/0,minHeight:1/0,minFramerate:1/0,minIndex:s,maxScore:0,videoRanges:{SDR:0},channels:{2:0},hasDefaultAudio:!l,fragmentError:0}),h.minBitrate=Math.min(h.minBitrate,r.bitrate);const c=Math.min(r.height,r.width);return h.minHeight=Math.min(h.minHeight,c),h.minFramerate=Math.min(h.minFramerate,r.frameRate),h.minIndex=Math.min(h.minIndex,s),h.maxScore=Math.max(h.maxScore,r.score),h.fragmentError+=r.fragmentError,h.videoRanges[r.videoRange]=(h.videoRanges[r.videoRange]||0)+1,l&&l.forEach(f=>{if(!f)return;const g=e.groups[f];g&&(h.hasDefaultAudio=h.hasDefaultAudio||e.hasDefaultAudio?g.hasDefault:g.hasAutoSelect||!e.hasDefaultAudio&&!e.hasAutoSelectAudio,Object.keys(g.channels).forEach(A=>{h.channels[A]=(h.channels[A]||0)+g.channels[A]}))}),i},{})}function Wt(a){if(!a)return a;const{lang:e,assocLang:t,characteristics:n,channels:i,audioCodec:r}=a;return{lang:e,assocLang:t,characteristics:n,channels:i,audioCodec:r}}function sn(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 i=e[n];if(ln(a,i,t))return n}return-1}function ln(a,e,t){const{groupId:n,name:i,lang:r,assocLang:s,default:l}=a,h=a.forced;return(n===void 0||e.groupId===n)&&(i===void 0||e.name===i)&&(r===void 0||gn(r,e.lang))&&(r===void 0||e.assocLang===s)&&(l===void 0||e.default===l)&&(h===void 0||e.forced===h)&&(!("characteristics"in a)||ni(a.characteristics||"",e.characteristics))&&(t===void 0||t(a,e))}function gn(a,e="--"){return a.length===e.length?a===e:a.startsWith(e)||e.startsWith(a)}function ni(a,e=""){const t=a.split(","),n=e.split(",");return t.length===n.length&&!t.some(i=>n.indexOf(i)===-1)}function An(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 Hn(a,e,t,n,i){const r=e[n],l=e.reduce((A,I,C)=>{const Q=I.uri;return(A[Q]||(A[Q]=[])).push(C),A},{})[r.uri];l.length>1&&(n=Math.max.apply(Math,l));const h=r.videoRange,c=r.frameRate,f=r.codecSet.substring(0,4),g=j(e,n,A=>{if(A.videoRange!==h||A.frameRate!==c||A.codecSet.substring(0,4)!==f)return!1;const I=A.audioGroups,C=t.filter(Q=>!I||I.indexOf(Q.groupId)!==-1);return sn(a,C,i)>-1});return g>-1?g:j(e,n,A=>{const I=A.audioGroups,C=t.filter(Q=>!I||I.indexOf(Q.groupId)!==-1);return sn(a,C,i)>-1})}function j(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 G(a,e){var t;return!!a&&a!==((t=e.loadLevelObj)==null?void 0:t.uri)}class pe extends P{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:i,partCurrent:r,hls:s}=this,{autoLevelEnabled:l,media:h}=s;if(!i||!h)return;const c=performance.now(),f=r?r.stats:i.stats,g=r?r.duration:i.duration,A=c-f.loading.start,I=s.minAutoLevel,C=i.level,Q=this._nextAutoLevel;if(f.aborted||f.loaded&&f.loaded===f.total||C<=I){this.clearTimer(),this._nextAutoLevel=-1;return}if(!l)return;const Z=Q>-1&&Q!==C,me=!!t||Z;if(!me&&(h.paused||!h.playbackRate||!h.readyState))return;const ye=s.mainForwardBufferInfo;if(!me&&ye===null)return;const be=this.bwEstimator.getEstimateTTFB(),Ue=Math.abs(h.playbackRate);if(A<=Math.max(be,1e3*(g/(Ue*2))))return;const Je=ye?ye.len/Ue:0,Bt=f.loading.first?f.loading.first-f.loading.start:-1,nt=f.loaded&&Bt>-1,mt=this.getBwEstimate(),gt=s.levels,at=gt[C],Qt=Math.max(f.loaded,Math.round(g*(i.bitrate||at.averageBitrate)/8));let Sn=nt?A-Bt:A;Sn<1&&nt&&(Sn=Math.min(A,f.loaded*8/mt));const zn=nt?f.loaded*1e3/Sn:0,Jn=be/1e3,jn=zn?(Qt-f.loaded)/zn:Qt*8/mt+Jn;if(jn<=Je)return;const pn=zn?zn*8:mt,Gn=((n=(t==null?void 0:t.details)||this.hls.latestLevelDetails)==null?void 0:n.live)===!0,Rn=this.hls.config.abrBandWidthUpFactor;let Zn=Number.POSITIVE_INFINITY,ci;for(ci=C-1;ci>I;ci--){const tr=gt[ci].maxBitrate,Ci=!gt[ci].details||Gn;if(Zn=this.getTimeToLoadFrag(Jn,pn,g*tr,Ci),Zn<Math.min(Je,g+Jn))break}if(Zn>=jn||Zn>g*10)return;nt?this.bwEstimator.sample(A-Math.min(be,Bt),f.loaded):this.bwEstimator.sampleTTFB(A);const bn=gt[ci].maxBitrate;this.getBwEstimate()*Rn>bn&&this.resetEstimator(bn);const xn=this.findBestLevel(bn,I,ci,0,Je,1,1);xn>-1&&(ci=xn),this.warn(`Fragment ${i.sn}${r?" part "+r.index:""} of level ${C} is loading too slowly;
Fragment duration: ${i.duration.toFixed(3)}
Time to underbuffer: ${Je.toFixed(3)} s
Estimated load time for current fragment: ${jn.toFixed(3)} s
Estimated load time for down switch fragment: ${Zn.toFixed(3)} s
TTFB estimate: ${Bt|0} ms
Current BW estimate: ${p(mt)?mt|0:"Unknown"} bps
New BW estimate: ${this.getBwEstimate()|0} bps
Switching to level ${ci} @ ${bn|0} bps`),s.nextLoadLevel=s.nextAutoLevel=ci,this.clearTimer();const Di=()=>{if(this.clearTimer(),this.fragCurrent===i&&this.hls.loadLevel===ci&&ci>0){const tr=this.getStarvationDelay();if(this.warn(`Aborting inflight request ${ci>0?"and switching down":""}
Fragment duration: ${i.duration.toFixed(3)} s
Time to underbuffer: ${tr.toFixed(3)} s`),i.abortRequests(),this.fragCurrent=this.partCurrent=null,ci>I){let Ci=this.findBestLevel(this.hls.levels[I].bitrate,I,ci,0,tr,1,1);Ci===-1&&(Ci=I),this.hls.nextLoadLevel=this.hls.nextAutoLevel=Ci,this.resetEstimator(this.hls.levels[Ci].bitrate)}}};Z||jn>Zn*2?Di():this.timer=self.setInterval(Di,Zn*1e3),s.trigger(m.FRAG_LOAD_EMERGENCY_ABORTED,{frag:i,part:r,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 X(e.abrEwmaSlowVoD,e.abrEwmaFastVoD,e.abrEwmaDefaultEstimate)}registerListeners(){const{hls:e}=this;e.on(m.MANIFEST_LOADING,this.onManifestLoading,this),e.on(m.FRAG_LOADING,this.onFragLoading,this),e.on(m.FRAG_LOADED,this.onFragLoaded,this),e.on(m.FRAG_BUFFERED,this.onFragBuffered,this),e.on(m.LEVEL_SWITCHING,this.onLevelSwitching,this),e.on(m.LEVEL_LOADED,this.onLevelLoaded,this),e.on(m.LEVELS_UPDATED,this.onLevelsUpdated,this),e.on(m.MAX_AUTO_LEVEL_UPDATED,this.onMaxAutoLevelUpdated,this),e.on(m.ERROR,this.onError,this)}unregisterListeners(){const{hls:e}=this;e&&(e.off(m.MANIFEST_LOADING,this.onManifestLoading,this),e.off(m.FRAG_LOADING,this.onFragLoading,this),e.off(m.FRAG_LOADED,this.onFragLoaded,this),e.off(m.FRAG_BUFFERED,this.onFragBuffered,this),e.off(m.LEVEL_SWITCHING,this.onLevelSwitching,this),e.off(m.LEVEL_LOADED,this.onLevelLoaded,this),e.off(m.LEVELS_UPDATED,this.onLevelsUpdated,this),e.off(m.MAX_AUTO_LEVEL_UPDATED,this.onMaxAutoLevelUpdated,this),e.off(m.ERROR,this.onError,this))}destroy(){this.unregisterListeners(),this.clearTimer(),this.hls=this._abandonRulesCheck=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 i;this.fragCurrent=n,this.partCurrent=(i=t.part)!=null?i:null}this.clearTimer(),this.timer=self.setInterval(this._abandonRulesCheck,100)}}onLevelSwitching(e,t){this.clearTimer()}onError(e,t){if(!t.fatal)switch(t.details){case Y.BUFFER_ADD_CODEC_ERROR:case Y.BUFFER_APPEND_ERROR:this.lastLoadedFragLevel=-1,this.firstSelection=-1;break;case Y.FRAG_LOAD_TIMEOUT:{const n=t.frag,{fragCurrent:i,partCurrent:r}=this;if(n&&i&&n.sn===i.sn&&n.level===i.level){const s=performance.now(),l=r?r.stats:n.stats,h=s-l.loading.start,c=l.loading.first?l.loading.first-l.loading.start:-1;if(l.loaded&&c>-1){const g=this.bwEstimator.getEstimateTTFB();this.bwEstimator.sample(h-Math.min(g,c),l.loaded)}else this.bwEstimator.sampleTTFB(h)}break}}}getTimeToLoadFrag(e,t,n,i){const r=e+n/t,s=i?e+this.lastLevelLoadSec:0;return r+s}onLevelLoaded(e,t){const n=this.hls.config,{loading:i}=t.stats,r=i.end-i.first;p(r)&&(this.lastLevelLoadSec=r/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 i=n?n.stats:t.stats;if(t.type===U.MAIN&&this.bwEstimator.sampleTTFB(i.loading.first-i.loading.start),!this.ignoreFragment(t)){if(this.clearTimer(),t.level===this._nextAutoLevel&&(this._nextAutoLevel=-1),this.firstSelection=-1,this.hls.config.abrMaxWithRealBitrate){const r=n?n.duration:t.duration,s=this.hls.levels[t.level],l=(s.loaded?s.loaded.bytes:0)+i.loaded,h=(s.loaded?s.loaded.duration:0)+r;s.loaded={bytes:l,duration:h},s.realBitrate=Math.round(8*l/h)}if(t.bitrateTest){const r={stats:i,frag:t,part:n,id:t.type};this.onFragBuffered(m.FRAG_BUFFERED,r),t.bitrateTest=!1}else this.lastLoadedFragLevel=t.level}}onFragBuffered(e,t){const{frag:n,part:i}=t,r=i!=null&&i.stats.loaded?i.stats:n.stats;if(r.aborted||this.ignoreFragment(n))return;const s=r.parsing.end-r.loading.start-Math.min(r.loading.first-r.loading.start,this.bwEstimator.getEstimateTTFB());this.bwEstimator.sample(s,r.loaded),r.bwEstimate=this.getBwEstimate(),n.bitrateTest?this.bitrateTestDelay=s/1e3:this.bitrateTestDelay=0}ignoreFragment(e){return e.type!==U.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(),i=this.hls.config.maxStarvationDelay,r=this.findBestLevel(n,t,e,0,i,1,1);if(r>-1)return r;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(),i=this.lastLoadedFragLevel>-1;if(e!==-1&&(!n||!i||this.nextAutoLevelKey===this.getAutoLevelKey()))return e;const r=n&&i?this.getNextABRAutoLevel():this.firstAutoLevel;if(e!==-1){const s=this.hls.levels;if(s.length>Math.max(e,r)&&s[e].loadError<=s[r].loadError)return e}return this._nextAutoLevel=r,this.nextAutoLevelKey=this.getAutoLevelKey(),r}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:i,config:r,minAutoLevel:s}=n,l=t?t.duration:e?e.duration:0,h=this.getBwEstimate(),c=this.getStarvationDelay();let f=r.abrBandWidthFactor,g=r.abrBandWidthUpFactor;if(c){const Z=this.findBestLevel(h,s,i,c,0,f,g);if(Z>=0)return this.rebufferNotice=-1,Z}let A=l?Math.min(l,r.maxStarvationDelay):r.maxStarvationDelay;if(!c){const Z=this.bitrateTestDelay;Z&&(A=(l?Math.min(l,r.maxLoadingDelay):r.maxLoadingDelay)-Z,this.info(`bitrate test took ${Math.round(1e3*Z)}ms, set first fragment max fetchDuration to ${Math.round(1e3*A)} ms`),f=g=1)}const I=this.findBestLevel(h,s,i,c,A,f,g);if(this.rebufferNotice!==I&&(this.rebufferNotice=I,this.info(`${c?"rebuffering expected":"buffer is empty"}, optimal quality level ${I}`)),I>-1)return I;const C=n.levels[s],Q=n.loadLevelObj;return Q&&(C==null?void 0:C.bitrate)<Q.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,i=e.mainForwardBufferInfo;return(i?i.len:0)/n}getBwEstimate(){return this.bwEstimator.canEstimate()?this.bwEstimator.getEstimate():this.hls.config.abrEwmaDefaultEstimate}findBestLevel(e,t,n,i,r,s,l){var h;const c=i+r,f=this.lastLoadedFragLevel,g=f===-1?this.hls.firstLevel:f,{fragCurrent:A,partCurrent:I}=this,{levels:C,allAudioTracks:Q,loadLevel:Z,config:me}=this.hls;if(C.length===1)return 0;const ye=C[g],be=!!((h=this.hls.latestLevelDetails)!=null&&h.live),Ue=Z===-1||f===-1;let Je,Bt="SDR",nt=(ye==null?void 0:ye.frameRate)||0;const{audioPreference:mt,videoPreference:gt}=me,at=this.audioTracksByGroup||(this.audioTracksByGroup=vt(Q));let Qt=-1;if(Ue){if(this.firstSelection!==-1)return this.firstSelection;const pn=this.codecTiers||(this.codecTiers=Mt(C,at,t,n)),Gn=Ut(pn,Bt,e,mt,gt),{codecSet:Rn,videoRanges:Zn,minFramerate:ci,minBitrate:bn,minIndex:xn,preferHDR:Di}=Gn;Qt=xn,Je=Rn,Bt=Di?Zn[Zn.length-1]:Zn[0],nt=ci,e=Math.max(e,bn),this.log(`picked start tier ${ut(Gn)}`)}else Je=ye==null?void 0:ye.codecSet,Bt=ye==null?void 0:ye.videoRange;const Sn=I?I.duration:A?A.duration:0,zn=this.bwEstimator.getEstimateTTFB()/1e3,Jn=[];for(let pn=n;pn>=t;pn--){var jn;const Gn=C[pn],Rn=pn>g;if(!Gn)continue;if(me.useMediaCapabilities&&!Gn.supportedResult&&!Gn.supportedPromise){const Ci=navigator.mediaCapabilities;typeof(Ci==null?void 0:Ci.decodingInfo)=="function"&&Ft(Gn,at,Bt,nt,e,mt)?(Gn.supportedPromise=rn(Gn,at,Ci,this.supportedCache),Gn.supportedPromise.then(zi=>{if(!this.hls)return;Gn.supportedResult=zi;const Jr=this.hls.levels,jr=Jr.indexOf(Gn);zi.error?this.warn(`MediaCapabilities decodingInfo error: "${zi.error}" for level ${jr} ${ut(zi)}`):zi.supported?zi.decodingInfoResults.some(cs=>cs.smooth===!1||cs.powerEfficient===!1)&&this.log(`MediaCapabilities decodingInfo for level ${jr} not smooth or powerEfficient: ${ut(zi)}`):(this.warn(`Unsupported MediaCapabilities decodingInfo result for level ${jr} ${ut(zi)}`),jr>-1&&Jr.length>1&&(this.log(`Removing unsupported level ${jr}`),this.hls.removeLevel(jr),this.hls.loadLevel===-1&&(this.hls.nextLoadLevel=0)))}).catch(zi=>{this.warn(`Error handling MediaCapabilities decodingInfo: ${zi}`)})):Gn.supportedResult=Nn}if((Je&&Gn.codecSet!==Je||Bt&&Gn.videoRange!==Bt||Rn&&nt>Gn.frameRate||!Rn&&nt>0&&nt<Gn.frameRate||(jn=Gn.supportedResult)!=null&&(jn=jn.decodingInfoResults)!=null&&jn.some(Ci=>Ci.smooth===!1))&&(!Ue||pn!==Qt)){Jn.push(pn);continue}const Zn=Gn.details,ci=(I?Zn==null?void 0:Zn.partTarget:Zn==null?void 0:Zn.averagetargetduration)||Sn;let bn;Rn?bn=l*e:bn=s*e;const xn=Sn&&i>=Sn*2&&r===0?Gn.averageBitrate:Gn.maxBitrate,Di=this.getTimeToLoadFrag(zn,bn,xn*ci,Zn===void 0);if(bn>=xn&&(pn===f||Gn.loadError===0&&Gn.fragmentError===0)&&(Di<=zn||!p(Di)||be&&!this.bitrateTestDelay||Di<c)){const Ci=this.forcedAutoLevel;return pn!==Z&&(Ci===-1||Ci!==Z)&&(Jn.length&&this.trace(`Skipped level(s) ${Jn.join(",")} of ${n} max with CODECS and VIDEO-RANGE:"${C[Jn[0]].codecs}" ${C[Jn[0]].videoRange}; not compatible with "${Je}" ${Bt}`),this.info(`switch candidate:${g}->${pn} adjustedbw(${Math.round(bn)})-bitrate=${Math.round(bn-xn)} ttfb:${zn.toFixed(1)} avgDuration:${ci.toFixed(1)} maxFetchDuration:${c.toFixed(1)} fetchDuration:${Di.toFixed(1)} firstSelection:${Ue} codecSet:${Gn.codecSet} videoRange:${Gn.videoRange} hls.loadLevel:${Z}`)),Ue&&(this.firstSelection=pn),pn}}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 Ee={search:function(a,e){let t=0,n=a.length-1,i=null,r=null;for(;t<=n;){i=(t+n)/2|0,r=a[i];const s=e(r);if(s>0)t=i+1;else if(s<0)n=i-1;else return r}return null}};function ze(a,e,t){if(e===null||!Array.isArray(a)||!a.length||!p(e))return null;const n=a[0].programDateTime;if(e<(n||0))return null;const i=a[a.length-1].endProgramDateTime;if(e>=(i||0))return null;for(let r=0;r<a.length;++r){const s=a[r];if(Gt(e,t,s))return s}return null}function $e(a,e,t=0,n=0,i=.005){let r=null;if(a){r=e[1+a.sn-e[0].sn]||null;const l=a.endDTS-t;l>0&&l<15e-7&&(t+=15e-7),r&&a.level!==r.level&&r.end<=a.end&&(r=e[2+a.sn-e[0].sn]||null)}else t===0&&e[0].start===0&&(r=e[0]);if(r&&((!a||a.level===r.level)&&xt(t,n,r)===0||bt(r,a,Math.min(i,n))))return r;const s=Ee.search(e,xt.bind(null,t,n));return s&&(s!==a||!r)?s:r}function bt(a,e,t){if(e&&e.start===0&&e.level<a.level&&(e.endPTS||0)>0){const n=e.tagList.reduce((i,r)=>(r[0]==="INF"&&(i+=parseFloat(r[1])),i),t);return a.start<=n}return!1}function xt(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 Gt(a,e,t){const n=Math.min(e,t.duration+(t.deltaPTS?t.deltaPTS:0))*1e3;return(t.endProgramDateTime||0)-n>a}function _t(a,e,t){if(a&&a.startCC<=e&&a.endCC>=e){let n=a.fragments;const{fragmentHint:i}=a;i&&(n=n.concat(i));let r;return Ee.search(n,s=>s.cc<e?1:s.cc>e?-1:(r=s,s.end<=t?1:s.start>t?-1:0)),r||null}return null}function Ce(a){switch(a.details){case Y.FRAG_LOAD_TIMEOUT:case Y.KEY_LOAD_TIMEOUT:case Y.LEVEL_LOAD_TIMEOUT:case Y.MANIFEST_LOAD_TIMEOUT:return!0}return!1}function et(a){return a.details.startsWith("key")}function Pt(a){return et(a)&&!!a.frag&&!a.frag.decryptdata}function an(a,e){const t=Ce(e);return a.default[`${t?"timeout":"error"}Retry`]}function un(a,e){const t=a.backoff==="linear"?1:Math.pow(2,e);return Math.min(t*a.retryDelayMs,a.maxRetryDelayMs)}function qt(a){return E(E({},a),{errorRetry:null,timeoutRetry:null})}function tn(a,e,t,n){if(!a)return!1;const i=n==null?void 0:n.code,r=e<a.maxNumRetry&&(mn(i)||!!t);return a.shouldRetry?a.shouldRetry(a,e,t,n,r):r}function mn(a){return Tn(a)||!!a&&(a<400||a>499)}function Tn(a){return a===0&&navigator.onLine===!1}var on={DoNothing:0,SendEndCallback:1,SendAlternateToPenaltyBox:2,RemoveAlternatePermanently:3,InsertDiscontinuity:4,RetryRequest:5},$t={None:0,MoveAllAlternatesMatchingHost:1,MoveAllAlternatesMatchingHDCP:2,MoveAllAlternatesMatchingKey:4,SwitchToSDR:8};class kn extends P{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(m.ERROR,this.onError,this),e.on(m.MANIFEST_LOADING,this.onManifestLoading,this),e.on(m.LEVEL_UPDATED,this.onLevelUpdated,this)}unregisterListeners(){const e=this.hls;e&&(e.off(m.ERROR,this.onError,this),e.off(m.ERROR,this.onErrorOut,this),e.off(m.MANIFEST_LOADING,this.onManifestLoading,this),e.off(m.LEVEL_UPDATED,this.onLevelUpdated,this))}destroy(){this.unregisterListeners(),this.hls=null}startLoad(e){}stopLoad(){this.playlistError=0}getVariantLevelIndex(e){return(e==null?void 0:e.type)===U.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 i=e.audioGroups;if(i)return this.hls.allAudioTracks.filter(s=>i.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 i=this.hls,r=t.context;switch(t.details){case Y.FRAG_LOAD_ERROR:case Y.FRAG_LOAD_TIMEOUT:case Y.KEY_LOAD_ERROR:case Y.KEY_LOAD_TIMEOUT:t.errorAction=this.getFragRetryOrSwitchAction(t);return;case Y.FRAG_PARSING_ERROR:if((n=t.frag)!=null&&n.gap){t.errorAction=Ln();return}case Y.FRAG_GAP:case Y.FRAG_DECRYPT_ERROR:{t.errorAction=this.getFragRetryOrSwitchAction(t),t.errorAction.action=on.SendAlternateToPenaltyBox;return}case Y.LEVEL_EMPTY_ERROR:case Y.LEVEL_PARSING_ERROR:{var s;const h=t.parent===U.MAIN?t.level:i.loadLevel;t.details===Y.LEVEL_EMPTY_ERROR&&((s=t.context)!=null&&(s=s.levelDetails)!=null&&s.live)?t.errorAction=this.getPlaylistRetryOrSwitchAction(t,h):(t.levelRetry=!1,t.errorAction=this.getLevelSwitchAction(t,h))}return;case Y.LEVEL_LOAD_ERROR:case Y.LEVEL_LOAD_TIMEOUT:typeof(r==null?void 0:r.level)=="number"&&(t.errorAction=this.getPlaylistRetryOrSwitchAction(t,r.level));return;case Y.AUDIO_TRACK_LOAD_ERROR:case Y.AUDIO_TRACK_LOAD_TIMEOUT:case Y.SUBTITLE_LOAD_ERROR:case Y.SUBTITLE_TRACK_LOAD_TIMEOUT:if(r){const h=i.loadLevelObj;if(h&&(r.type===ve.AUDIO_TRACK&&h.hasAudioGroup(r.groupId)||r.type===ve.SUBTITLE_TRACK&&h.hasSubtitleGroup(r.groupId))){t.errorAction=this.getPlaylistRetryOrSwitchAction(t,i.loadLevel),t.errorAction.action=on.SendAlternateToPenaltyBox,t.errorAction.flags=$t.MoveAllAlternatesMatchingHost;return}}return;case Y.KEY_SYSTEM_STATUS_OUTPUT_RESTRICTED:t.errorAction={action:on.SendAlternateToPenaltyBox,flags:$t.MoveAllAlternatesMatchingHDCP};return;case Y.KEY_SYSTEM_SESSION_UPDATE_FAILED:case Y.KEY_SYSTEM_STATUS_INTERNAL_ERROR:case Y.KEY_SYSTEM_NO_SESSION:t.errorAction={action:on.SendAlternateToPenaltyBox,flags:$t.MoveAllAlternatesMatchingKey};return;case Y.BUFFER_ADD_CODEC_ERROR:case Y.REMUX_ALLOC_ERROR:case Y.BUFFER_APPEND_ERROR:if(!t.errorAction){var l;t.errorAction=this.getLevelSwitchAction(t,(l=t.level)!=null?l:i.loadLevel)}return;case Y.INTERNAL_EXCEPTION:case Y.BUFFER_APPENDING_ERROR:case Y.BUFFER_FULL_ERROR:case Y.LEVEL_SWITCH_ERROR:case Y.BUFFER_STALLED_ERROR:case Y.BUFFER_SEEK_OVER_HOLE:case Y.BUFFER_NUDGE_ON_STALL:t.errorAction=Ln();return}t.type===ce.KEY_SYSTEM_ERROR&&(t.levelRetry=!1,t.errorAction=Ln())}getPlaylistRetryOrSwitchAction(e,t){const n=this.hls,i=an(n.config.playlistLoadPolicy,e),r=this.playlistError++;if(tn(i,r,Ce(e),e.response))return{action:on.RetryRequest,flags:$t.None,retryConfig:i,retryCount:r};const l=this.getLevelSwitchAction(e,t);return i&&(l.retryConfig=i,l.retryCount=r),l}getFragRetryOrSwitchAction(e){const t=this.hls,n=this.getVariantLevelIndex(e.frag),i=t.levels[n],{fragLoadPolicy:r,keyLoadPolicy:s}=t.config,l=an(et(e)?s:r,e),h=t.levels.reduce((f,g)=>f+g.fragmentError,0);if(i&&(e.details!==Y.FRAG_GAP&&i.fragmentError++,!Pt(e)&&tn(l,h,Ce(e),e.response)))return{action:on.RetryRequest,flags:$t.None,retryConfig:l,retryCount:h};const c=this.getLevelSwitchAction(e,n);return l&&(c.retryConfig=l,c.retryCount=h),c}getLevelSwitchAction(e,t){const n=this.hls;t==null&&(t=n.loadLevel);const i=this.hls.levels[t];if(i){var r,s;const c=e.details;i.loadError++,c===Y.BUFFER_APPEND_ERROR&&i.fragmentError++;let f=-1;const{levels:g,loadLevel:A,minAutoLevel:I,maxAutoLevel:C}=n;!n.autoLevelEnabled&&!n.config.preserveManualLevelOnError&&(n.loadLevel=-1);const Q=(r=e.frag)==null?void 0:r.type,me=(Q===U.AUDIO&&c===Y.FRAG_PARSING_ERROR||e.sourceBufferName==="audio"&&(c===Y.BUFFER_ADD_CODEC_ERROR||c===Y.BUFFER_APPEND_ERROR))&&g.some(({audioCodec:Bt})=>i.audioCodec!==Bt),be=e.sourceBufferName==="video"&&(c===Y.BUFFER_ADD_CODEC_ERROR||c===Y.BUFFER_APPEND_ERROR)&&g.some(({codecSet:Bt,audioCodec:nt})=>i.codecSet!==Bt&&i.audioCodec===nt),{type:Ue,groupId:Je}=(s=e.context)!=null?s:{};for(let Bt=g.length;Bt--;){const nt=(Bt+A)%g.length;if(nt!==A&&nt>=I&&nt<=C&&g[nt].loadError===0){var l,h;const mt=g[nt];if(c===Y.FRAG_GAP&&Q===U.MAIN&&e.frag){const gt=g[nt].details;if(gt){const at=$e(e.frag,gt.fragments,e.frag.start);if(at!=null&&at.gap)continue}}else{if(Ue===ve.AUDIO_TRACK&&mt.hasAudioGroup(Je)||Ue===ve.SUBTITLE_TRACK&&mt.hasSubtitleGroup(Je))continue;if(Q===U.AUDIO&&(l=i.audioGroups)!=null&&l.some(gt=>mt.hasAudioGroup(gt))||Q===U.SUBTITLE&&(h=i.subtitleGroups)!=null&&h.some(gt=>mt.hasSubtitleGroup(gt))||me&&i.audioCodec===mt.audioCodec||be&&i.codecSet===mt.codecSet||!me&&i.codecSet!==mt.codecSet)continue}f=nt;break}}if(f>-1&&n.loadLevel!==f)return e.levelRetry=!0,this.playlistError=0,{action:on.SendAlternateToPenaltyBox,flags:$t.None,nextAutoLevel:f}}return{action:on.SendAlternateToPenaltyBox,flags:$t.MoveAllAlternatesMatchingHost}}onErrorOut(e,t){var n;switch((n=t.errorAction)==null?void 0:n.action){case on.DoNothing:break;case on.SendAlternateToPenaltyBox:this.sendAlternateToPenaltyBox(t),!t.errorAction.resolved&&t.details!==Y.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 on.RetryRequest:break}if(t.fatal){this.hls.stopLoad();return}}sendAlternateToPenaltyBox(e){const t=this.hls,n=e.errorAction;if(!n)return;const{flags:i}=n,r=n.nextAutoLevel;switch(i){case $t.None:this.switchLevel(e,r);break;case $t.MoveAllAlternatesMatchingHDCP:{const h=this.getVariantLevelIndex(e.frag),c=t.levels[h],f=c==null?void 0:c.attrs["HDCP-LEVEL"];if(n.hdcpLevel=f,f==="NONE")this.warn("HDCP policy resticted output with HDCP-LEVEL=NONE");else if(f){t.maxHdcpLevel=vi[vi.indexOf(f)-1],n.resolved=!0,this.warn(`Restricting playback to HDCP-LEVEL of "${t.maxHdcpLevel}" or lower`);break}}case $t.MoveAllAlternatesMatchingKey:{const h=e.decryptdata;if(h){const c=this.hls.levels,f=c.length;for(let A=f;A--;)if(this.variantHasKey(c[A],h)){var s,l;this.log(`Banned key found in level ${A} (${c[A].bitrate}bps) or audio group "${(s=c[A].audioGroups)==null?void 0:s.join(",")}" (${(l=e.frag)==null?void 0:l.type} fragment) ${K(h.keyId||[])}`),c[A].fragmentError++,c[A].loadError++,this.log(`Removing level ${A} with key error (${e.error})`),this.hls.removeLevel(A)}const g=e.frag;if(this.hls.levels.length<f)n.resolved=!0;else if(g&&g.type!==U.MAIN){const A=g.decryptdata;A&&!h.matches(A)&&(n.resolved=!0)}}break}}n.resolved||this.switchLevel(e,r)}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===Y.BUFFER_ADD_CODEC_ERROR&&e.mimeType&&e.sourceBufferName!=="audiovideo")){const n=fn(e.mimeType),i=this.hls.levels;for(let r=i.length;r--;)i[r][`${e.sourceBufferName}Codec`]===n&&(this.log(`Removing level ${r} for ${e.details} ("${n}" not supported)`),this.hls.removeLevel(r))}}}function Ln(a){const e={action:on.DoNothing,flags:$t.None};return a&&(e.resolved=!0),e}var Cn={NOT_LOADED:"NOT_LOADED",APPENDING:"APPENDING",PARTIAL:"PARTIAL",OK:"OK"};class Pn{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(m.MANIFEST_LOADING,this.onManifestLoading,this),e.on(m.BUFFER_APPENDED,this.onBufferAppended,this),e.on(m.FRAG_BUFFERED,this.onFragBuffered,this),e.on(m.FRAG_LOADED,this.onFragLoaded,this))}_unregisterListeners(){const{hls:e}=this;e&&(e.off(m.MANIFEST_LOADING,this.onManifestLoading,this),e.off(m.BUFFER_APPENDED,this.onBufferAppended,this),e.off(m.FRAG_BUFFERED,this.onFragBuffered,this),e.off(m.FRAG_LOADED,this.onFragLoaded,this))}destroy(){this._unregisterListeners(),this.hls=this.fragments=this.activePartLists=this.endListFragments=this.timeRanges=null}getAppendedFrag(e,t){const n=this.activePartLists[t];if(n)for(let i=n.length;i--;){const r=n[i];if(!r)break;if(r.start<=e&&e<=r.end&&r.loaded)return r}return this.getBufferedFrag(e,t)}getBufferedFrag(e,t){return this.getFragAtPos(e,t,!0)}getFragAtPos(e,t,n){const{fragments:i}=this,r=Object.keys(i);for(let s=r.length;s--;){const l=i[r[s]];if((l==null?void 0:l.body.type)===t&&(!n||l.buffered)){const h=l.body;if(h.start<=e&&e<=h.end)return h}}return null}detectEvictedFragments(e,t,n,i,r){this.timeRanges&&(this.timeRanges[e]=t);const s=(i==null?void 0:i.fragment.sn)||-1;Object.keys(this.fragments).forEach(l=>{const h=this.fragments[l];if(!h||s>=h.body.sn)return;if(!h.buffered&&(!h.loaded||r)){h.body.type===n&&this.removeFragment(h.body);return}const c=h.range[e];if(c){if(c.time.length===0){this.removeFragment(h.body);return}c.time.some(f=>{const g=!this.isTimeBuffered(f.startPTS,f.endPTS,t);return g&&this.removeFragment(h.body),g})}})}detectPartialFragments(e){const t=this.timeRanges;if(!t||e.frag.sn==="initSegment")return;const n=e.frag,i=ii(n),r=this.fragments[i];if(!r||r.buffered&&n.gap)return;const s=!n.relurl;Object.keys(t).forEach(l=>{const h=n.elementaryStreams[l];if(!h)return;const c=t[l],f=s||h.partial===!0;r.range[l]=this.getBufferedTimes(n,e.part,f,c)}),r.loaded=null,Object.keys(r.range).length?(r.buffered=!0,(r.body.endList=n.endList||r.body.endList)&&(this.endListFragments[r.body.type]=r),En(r)||this.removeParts(n.sn-1,n.type)):this.removeFragment(r.body)}removeParts(e,t){const n=this.activePartLists[t];n&&(this.activePartLists[t]=ri(n,i=>i.fragment.sn>=e))}fragBuffered(e,t){const n=ii(e);let i=this.fragments[n];!i&&t&&(i=this.fragments[n]={body:e,appendedPTS:null,loaded:null,buffered:!1,range:Object.create(null)},e.gap&&(this.hasGaps=!0)),i&&(i.loaded=null,i.buffered=!0)}getBufferedTimes(e,t,n,i){const r={time:[],partial:n},s=e.start,l=e.end,h=e.minEndPTS||l,c=e.maxStartPTS||s;for(let f=0;f<i.length;f++){const g=i.start(f)-this.bufferPadding,A=i.end(f)+this.bufferPadding;if(c>=g&&h<=A){r.time.push({startPTS:Math.max(s,i.start(f)),endPTS:Math.min(l,i.end(f))});break}else if(s<A&&l>g){const I=Math.max(s,i.start(f)),C=Math.min(l,i.end(f));C>I&&(r.partial=!0,r.time.push({startPTS:I,endPTS:C}))}else if(l<=g)break}return r}getPartialFragment(e){let t=null,n,i,r,s=0;const{bufferPadding:l,fragments:h}=this;return Object.keys(h).forEach(c=>{const f=h[c];f&&En(f)&&(i=f.body.start-l,r=f.body.end+l,e>=i&&e<=r&&(n=Math.min(e-i,r-e),s<=n&&(t=f.body,s=n)))}),t}isEndListAppended(e){const t=this.endListFragments[e];return t!==void 0&&(t.buffered||En(t))}getState(e){const t=ii(e),n=this.fragments[t];return n?n.buffered?En(n)?Cn.PARTIAL:Cn.OK:Cn.APPENDING:Cn.NOT_LOADED}isTimeBuffered(e,t,n){let i,r;for(let s=0;s<n.length;s++){if(i=n.start(s)-this.bufferPadding,r=n.end(s)+this.bufferPadding,e>=i&&t<=r)return!0;if(t<=i)return!1}return!1}onManifestLoading(){this.removeAllFragments()}onFragLoaded(e,t){if(t.frag.sn==="initSegment"||t.frag.bitrateTest)return;const n=t.frag,i=t.part?null:t,r=ii(n);this.fragments[r]={body:n,appendedPTS:null,loaded:i,buffered:!1,range:Object.create(null)}}onBufferAppended(e,t){const{frag:n,part:i,timeRanges:r,type:s}=t;if(n.sn==="initSegment")return;const l=n.type;if(i){let c=this.activePartLists[l];c||(this.activePartLists[l]=c=[]),c.push(i)}this.timeRanges=r;const h=r[s];this.detectEvictedFragments(s,h,l,i)}onFragBuffered(e,t){this.detectPartialFragments(t)}hasFragment(e){const t=ii(e);return!!this.fragments[t]}hasFragments(e){const{fragments:t}=this,n=Object.keys(t);if(!e)return n.length>0;for(let i=n.length;i--;){const r=t[n[i]];if((r==null?void 0:r.body.type)===e)return!0}return!1}hasParts(e){var t;return!!((t=this.activePartLists[e])!=null&&t.length)}removeFragmentsInRange(e,t,n,i,r){i&&!this.hasGaps||Object.keys(this.fragments).forEach(s=>{const l=this.fragments[s];if(!l)return;const h=l.body;h.type!==n||i&&!h.gap||h.start<t&&h.end>e&&(l.buffered||r)&&this.removeFragment(h)})}removeFragment(e){const t=ii(e);e.clearElementaryStreamInfo();const n=this.activePartLists[e.type];if(n){const i=e.sn;this.activePartLists[e.type]=ri(n,r=>r.fragment.sn!==i)}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 En(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 ii(a){return`${a.type}_${a.level}_${a.sn}`}function ri(a,e){return a.filter(t=>{const n=e(t);return n||t.clearElementaryStreamInfo(),n})}var qn={cbc:0,ctr:1};class Ti{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 qn.cbc:return this.subtle.decrypt({name:"AES-CBC",iv:this.aesIV},t,e);case qn.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 Li(a){const e=a.byteLength,t=e&&new DataView(a.buffer).getUint8(e-1);return t?a.slice(0,e-t):a}class Ei{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 i=0;i<4;i++)n[i]=t.getUint32(i*4);return n}initTable(){const e=this.sBox,t=this.invSBox,n=this.subMix,i=n[0],r=n[1],s=n[2],l=n[3],h=this.invSubMix,c=h[0],f=h[1],g=h[2],A=h[3],I=new Uint32Array(256);let C=0,Q=0,Z=0;for(Z=0;Z<256;Z++)Z<128?I[Z]=Z<<1:I[Z]=Z<<1^283;for(Z=0;Z<256;Z++){let me=Q^Q<<1^Q<<2^Q<<3^Q<<4;me=me>>>8^me&255^99,e[C]=me,t[me]=C;const ye=I[C],be=I[ye],Ue=I[be];let Je=I[me]*257^me*16843008;i[C]=Je<<24|Je>>>8,r[C]=Je<<16|Je>>>16,s[C]=Je<<8|Je>>>24,l[C]=Je,Je=Ue*16843009^be*65537^ye*257^C*16843008,c[me]=Je<<24|Je>>>8,f[me]=Je<<16|Je>>>16,g[me]=Je<<8|Je>>>24,A[me]=Je,C?(C=ye^I[I[I[Ue^ye]]],Q^=I[I[Q]]):C=Q=1}}expandKey(e){const t=this.uint8ArrayToUint32Array_(e);let n=!0,i=0;for(;i<t.length&&n;)n=t[i]===this.key[i],i++;if(n)return;this.key=t;const r=this.keySize=t.length;if(r!==4&&r!==6&&r!==8)throw new Error("Invalid aes key size="+r);const s=this.ksRows=(r+6+1)*4;let l,h;const c=this.keySchedule=new Uint32Array(s),f=this.invKeySchedule=new Uint32Array(s),g=this.sBox,A=this.rcon,I=this.invSubMix,C=I[0],Q=I[1],Z=I[2],me=I[3];let ye,be;for(l=0;l<s;l++){if(l<r){ye=c[l]=t[l];continue}be=ye,l%r===0?(be=be<<8|be>>>24,be=g[be>>>24]<<24|g[be>>>16&255]<<16|g[be>>>8&255]<<8|g[be&255],be^=A[l/r|0]<<24):r>6&&l%r===4&&(be=g[be>>>24]<<24|g[be>>>16&255]<<16|g[be>>>8&255]<<8|g[be&255]),c[l]=ye=(c[l-r]^be)>>>0}for(h=0;h<s;h++)l=s-h,h&3?be=c[l]:be=c[l-4],h<4||l<=4?f[h]=be:f[h]=C[g[be>>>24]]^Q[g[be>>>16&255]]^Z[g[be>>>8&255]]^me[g[be&255]],f[h]=f[h]>>>0}networkToHostOrderSwap(e){return e<<24|(e&65280)<<8|(e&16711680)>>8|e>>>24}decrypt(e,t,n){const i=this.keySize+6,r=this.invKeySchedule,s=this.invSBox,l=this.invSubMix,h=l[0],c=l[1],f=l[2],g=l[3],A=this.uint8ArrayToUint32Array_(n);let I=A[0],C=A[1],Q=A[2],Z=A[3];const me=new Int32Array(e),ye=new Int32Array(me.length);let be,Ue,Je,Bt,nt,mt,gt,at,Qt,Sn,zn,Jn,jn,pn;const Gn=this.networkToHostOrderSwap;for(;t<me.length;){for(Qt=Gn(me[t]),Sn=Gn(me[t+1]),zn=Gn(me[t+2]),Jn=Gn(me[t+3]),nt=Qt^r[0],mt=Jn^r[1],gt=zn^r[2],at=Sn^r[3],jn=4,pn=1;pn<i;pn++)be=h[nt>>>24]^c[mt>>16&255]^f[gt>>8&255]^g[at&255]^r[jn],Ue=h[mt>>>24]^c[gt>>16&255]^f[at>>8&255]^g[nt&255]^r[jn+1],Je=h[gt>>>24]^c[at>>16&255]^f[nt>>8&255]^g[mt&255]^r[jn+2],Bt=h[at>>>24]^c[nt>>16&255]^f[mt>>8&255]^g[gt&255]^r[jn+3],nt=be,mt=Ue,gt=Je,at=Bt,jn=jn+4;be=s[nt>>>24]<<24^s[mt>>16&255]<<16^s[gt>>8&255]<<8^s[at&255]^r[jn],Ue=s[mt>>>24]<<24^s[gt>>16&255]<<16^s[at>>8&255]<<8^s[nt&255]^r[jn+1],Je=s[gt>>>24]<<24^s[at>>16&255]<<16^s[nt>>8&255]<<8^s[mt&255]^r[jn+2],Bt=s[at>>>24]<<24^s[nt>>16&255]<<16^s[mt>>8&255]<<8^s[gt&255]^r[jn+3],ye[t]=Gn(be^I),ye[t+1]=Gn(Bt^C),ye[t+2]=Gn(Je^Q),ye[t+3]=Gn(Ue^Z),I=Qt,C=Sn,Q=zn,Z=Jn,t=t+4}return ye.buffer}}class _i{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=si(this.aesMode);return this.subtle.importKey("raw",this.key,{name:e},!1,["encrypt","decrypt"])}}function si(a){switch(a){case qn.cbc:return"AES-CBC";case qn.ctr:return"AES-CTR";default:throw new Error(`[FastAESKey] invalid aes mode ${a}`)}}const mi=16;class Ai{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?Li(n):n}reset(){this.currentResult=null,this.currentIV=null,this.remainderData=null,this.softwareDecrypter&&(this.softwareDecrypter=null)}decrypt(e,t,n,i){return this.useSoftware?new Promise((r,s)=>{const l=ArrayBuffer.isView(e)?e:new Uint8Array(e);this.softwareDecrypt(l,t,n,i);const h=this.flush();h?r(h.buffer):s(new Error("[softwareDecrypt] Failed to decrypt data"))}):this.webCryptoDecrypt(new Uint8Array(e),t,n,i)}softwareDecrypt(e,t,n,i){const{currentIV:r,currentResult:s,remainderData:l}=this;if(i!==qn.cbc||t.byteLength!==16)return se.warn("SoftwareDecrypt: can only handle AES-128-CBC"),null;this.logOnce("JS AES decrypt"),l&&(e=st(l,e),this.remainderData=null);const h=this.getValidChunk(e);if(!h.length)return null;r&&(n=r);let c=this.softwareDecrypter;c||(c=this.softwareDecrypter=new Ei),c.expandKey(t);const f=s;return this.currentResult=c.decrypt(h.buffer,0,n),this.currentIV=h.slice(-16).buffer,f||null}webCryptoDecrypt(e,t,n,i){if(this.key!==t||!this.fastAesKey){if(!this.subtle)return Promise.resolve(this.onWebCryptoError(e,t,n,i));this.key=t,this.fastAesKey=new _i(this.subtle,t,i)}return this.fastAesKey.expandKey().then(r=>this.subtle?(this.logOnce("WebCrypto AES decrypt"),new Ti(this.subtle,new Uint8Array(n),i).decrypt(e.buffer,r)):Promise.reject(new Error("web crypto not initialized"))).catch(r=>(se.warn(`[decrypter]: WebCrypto Error, disable WebCrypto API, ${r.name}: ${r.message}`),this.onWebCryptoError(e,t,n,i)))}onWebCryptoError(e,t,n,i){const r=this.enableSoftwareAES;if(r){this.useSoftware=!0,this.logEnabled=!0,this.softwareDecrypt(e,t,n,i);const s=this.flush();if(s)return s.buffer}throw new Error("WebCrypto"+(r?" and softwareDecrypt":"")+": failed to decrypt data")}getValidChunk(e){let t=e;const n=e.length-e.length%mi;return n!==e.length&&(t=e.slice(0,n),this.remainderData=e.slice(n)),t}logOnce(e){this.logEnabled&&(se.log(`[decrypter]: ${e}`),this.logEnabled=!1)}}const dr=Math.pow(2,17);class Ii{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 hi({type:ce.NETWORK_ERROR,details:Y.FRAG_LOAD_ERROR,fatal:!1,frag:e,error:new Error(`Fragment does not have a ${n?"part list":"url"}`),networkDetails:null}));this.abort();const i=this.config,r=i.fLoader,s=i.loader;return new Promise((l,h)=>{if(this.loader&&this.loader.destroy(),e.gap)if(e.tagList.some(C=>C[0]==="GAP")){h(Gi(e));return}else e.gap=!1;const c=this.loader=r?new r(i):new s(i),f=Ni(e);e.loader=c;const g=qt(i.fragLoadPolicy.default),A={loadPolicy:g,timeout:g.maxLoadTimeMs,maxRetry:0,retryDelay:0,maxRetryDelay:0,highWaterMark:e.sn==="initSegment"?1/0:dr};e.stats=c.stats;const I={onSuccess:(C,Q,Z,me)=>{this.resetLoader(e,c);let ye=C.data;Z.resetIV&&e.decryptdata&&(e.decryptdata.iv=new Uint8Array(ye.slice(0,16)),ye=ye.slice(16)),l({frag:e,part:null,payload:ye,networkDetails:me})},onError:(C,Q,Z,me)=>{this.resetLoader(e,c),h(new hi({type:ce.NETWORK_ERROR,details:Y.FRAG_LOAD_ERROR,fatal:!1,frag:e,response:E({url:n,data:void 0},C),error:new Error(`HTTP Error ${C.code} ${C.text}`),networkDetails:Z,stats:me}))},onAbort:(C,Q,Z)=>{this.resetLoader(e,c),h(new hi({type:ce.NETWORK_ERROR,details:Y.INTERNAL_ABORTED,fatal:!1,frag:e,error:new Error("Aborted"),networkDetails:Z,stats:C}))},onTimeout:(C,Q,Z)=>{this.resetLoader(e,c),h(new hi({type:ce.NETWORK_ERROR,details:Y.FRAG_LOAD_TIMEOUT,fatal:!1,frag:e,error:new Error(`Timeout after ${A.timeout}ms`),networkDetails:Z,stats:C}))}};t&&(I.onProgress=(C,Q,Z,me)=>t({frag:e,part:null,payload:Z,networkDetails:me})),c.load(f,A,I)})}loadPart(e,t,n){this.abort();const i=this.config,r=i.fLoader,s=i.loader;return new Promise((l,h)=>{if(this.loader&&this.loader.destroy(),e.gap||t.gap){h(Gi(e,t));return}const c=this.loader=r?new r(i):new s(i),f=Ni(e,t);e.loader=c;const g=qt(i.fragLoadPolicy.default),A={loadPolicy:g,timeout:g.maxLoadTimeMs,maxRetry:0,retryDelay:0,maxRetryDelay:0,highWaterMark:dr};t.stats=c.stats,c.load(f,A,{onSuccess:(I,C,Q,Z)=>{this.resetLoader(e,c),this.updateStatsFromPart(e,t);const me={frag:e,part:t,payload:I.data,networkDetails:Z};n(me),l(me)},onError:(I,C,Q,Z)=>{this.resetLoader(e,c),h(new hi({type:ce.NETWORK_ERROR,details:Y.FRAG_LOAD_ERROR,fatal:!1,frag:e,part:t,response:E({url:f.url,data:void 0},I),error:new Error(`HTTP Error ${I.code} ${I.text}`),networkDetails:Q,stats:Z}))},onAbort:(I,C,Q)=>{e.stats.aborted=t.stats.aborted,this.resetLoader(e,c),h(new hi({type:ce.NETWORK_ERROR,details:Y.INTERNAL_ABORTED,fatal:!1,frag:e,part:t,error:new Error("Aborted"),networkDetails:Q,stats:I}))},onTimeout:(I,C,Q)=>{this.resetLoader(e,c),h(new hi({type:ce.NETWORK_ERROR,details:Y.FRAG_LOAD_TIMEOUT,fatal:!1,frag:e,part:t,error:new Error(`Timeout after ${A.timeout}ms`),networkDetails:Q,stats:I}))}})})}updateStatsFromPart(e,t){const n=e.stats,i=t.stats,r=i.total;if(n.loaded+=i.loaded,r){const h=Math.round(e.duration/t.duration),c=Math.min(Math.round(n.loaded/r),h),g=(h-c)*Math.round(n.loaded/c);n.total=n.loaded+g}else n.total=Math.max(n.loaded,n.total);const s=n.loading,l=i.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 Ni(a,e=null){const t=e||a,n={frag:a,part:e,responseType:"arraybuffer",url:t.url,headers:{},rangeStart:0,rangeEnd:0},i=t.byteRangeStartOffset,r=t.byteRangeEndOffset;if(p(i)&&p(r)){var s;let l=i,h=r;if(a.sn==="initSegment"&&Ui((s=a.decryptdata)==null?void 0:s.method)){const c=r-i;c%16&&(h=r+(16-c%16)),i!==0&&(n.resetIV=!0,l=i-16)}n.rangeStart=l,n.rangeEnd=h}return n}function Gi(a,e){const t=new Error(`GAP ${a.gap?"tag":"attribute"} found`),n={type:ce.MEDIA_ERROR,details:Y.FRAG_GAP,fatal:!1,frag:a,error:t,networkDetails:null};return e&&(n.part=e),(e||a).stats.aborted=!0,new hi(n)}function Ui(a){return a==="AES-128"||a==="AES-256"}class hi extends Error{constructor(e){super(e.error.message),this.data=void 0,this.data=e}}class nr extends P{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 Ji{constructor(e,t,n,i=0,r=-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=ir(),this.buffering={audio:ir(),video:ir(),audiovideo:ir()},this.level=e,this.sn=t,this.id=n,this.size=i,this.part=r,this.partial=s}}function ir(){return{start:0,executeStart:0,executeEnd:0,end:0}}const pr={length:0,start:()=>0,end:()=>0};class Vn{static isBuffered(e,t){if(e){const n=Vn.getBuffered(e);for(let i=n.length;i--;)if(t>=n.start(i)&&t<=n.end(i))return!0}return!1}static bufferedRanges(e){if(e){const t=Vn.getBuffered(e);return Vn.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 i=Vn.bufferedRanges(e);if(i.length)return Vn.bufferedInfo(i,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,g)=>f.start-g.start||g.end-f.end);let i=-1,r=[];if(n)for(let f=0;f<e.length;f++){t>=e[f].start&&t<=e[f].end&&(i=f);const g=r.length;if(g){const A=r[g-1].end;e[f].start-A<n?e[f].end>A&&(r[g-1].end=e[f].end):r.push(e[f])}else r.push(e[f])}else r=e;let s=0,l,h=t,c=t;for(let f=0;f<r.length;f++){const g=r[f].start,A=r[f].end;if(i===-1&&t>=g&&t<=A&&(i=f),t+n>=g&&t<A)h=g,c=A,s=c-t;else if(t+n<g){l=g;break}}return{len:s,start:h||0,end:c||0,nextStart:l,buffered:e,bufferedIndex:i}}static getBuffered(e){try{return e.buffered||pr}catch(t){return se.log("failed to get media.buffered",t),pr}}}const gr=/\{\$([a-zA-Z0-9-_]+)\}/g;function sr(a){return gr.test(a)}function hr(a,e){if(a.variableList!==null||a.hasVariableRefs){const t=a.variableList;return e.replace(gr,n=>{const i=n.substring(2,n.length-1),r=t==null?void 0:t[i];return r===void 0?(a.playlistParsingError||(a.playlistParsingError=new Error(`Missing preceding EXT-X-DEFINE tag for Variable Reference: "${i}"`)),n):r})}return e}function Fr(a,e,t){let n=a.variableList;n||(a.variableList=n={});let i,r;if("QUERYPARAM"in e){i=e.QUERYPARAM;try{const s=new self.URL(t).searchParams;if(s.has(i))r=s.get(i);else throw new Error(`"${i}" does not match any query parameter in URI: "${t}"`)}catch(s){a.playlistParsingError||(a.playlistParsingError=new Error(`EXT-X-DEFINE QUERYPARAM: ${s.message}`))}}else i=e.NAME,r=e.VALUE;i in n?a.playlistParsingError||(a.playlistParsingError=new Error(`EXT-X-DEFINE duplicate Variable Name declarations: "${i}"`)):n[i]=r||""}function Nr(a,e,t){const n=e.IMPORT;if(t&&n in t){let i=a.variableList;i||(a.variableList=i={}),i[n]=t[n]}else a.playlistParsingError||(a.playlistParsingError=new Error(`EXT-X-DEFINE IMPORT attribute not found in Multivariant Playlist: "${n}"`))}const Kr=/^(\d+)x(\d+)$/,Gr=/(.+?)=(".*?"|.*?)(?:,|$)/g;class bi{constructor(e,t){typeof e=="string"&&(e=bi.parseAttrList(e,t)),_(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 i=0;i<t.length/2;i++)n[i]=parseInt(t.slice(i*2,i*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((i,r)=>(i[r.toLowerCase()]=!0,i),t)}bool(e){return this[e]==="YES"}decimalResolution(e){const t=Kr.exec(this[e]);if(t!==null)return{width:parseInt(t[1],10),height:parseInt(t[2],10)}}static parseAttrList(e,t){let n;const i={},r='"';for(Gr.lastIndex=0;(n=Gr.exec(e))!==null;){const s=n[1].trim();let l=n[2];const h=l.indexOf(r)===0&&l.lastIndexOf(r)===l.length-1;let c=!1;if(h)l=l.slice(1,-1);else switch(s){case"IV":case"SCTE35-CMD":case"SCTE35-IN":case"SCTE35-OUT":c=!0}if(t&&(h||c))l=hr(t,l);else if(!c&&!h)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":se.warn(`${e}: attribute ${s} is missing quotes`)}i[s]=l}return i}}const Qi="com.apple.hls.interstitial";function mr(a){return a!=="ID"&&a!=="CLASS"&&a!=="CUE"&&a!=="START-DATE"&&a!=="DURATION"&&a!=="END-DATE"&&a!=="END-ON-NEXT"}function Ur(a){return a==="SCTE35-OUT"||a==="SCTE35-IN"||a==="SCTE35-CMD"}class ur{constructor(e,t,n=0){var i;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=(i=t==null?void 0:t.tagOrder)!=null?i:n,t){const r=t.attr;for(const s in r)if(Object.prototype.hasOwnProperty.call(e,s)&&e[s]!==r[s]){se.warn(`DATERANGE tag attribute: "${s}" does not match for tags with ID: "${e.ID}"`),this._badValueForSameId=s;break}e=_(new bi({}),r,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 r=(t==null?void 0:t.endDate)||new Date(this.attr["END-DATE"]);p(r.getTime())&&(this._endDate=r)}}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?(se.warn(`Expected tagAnchor Fragment with PDT set for DateRange "${this.id}": ${e}`),NaN):e.start+(this.startDate.getTime()-e.programDateTime)/1e3}get startDate(){return this._startDate}get endDate(){const e=this._endDate||this._dateAtEnd;if(e)return e;const t=this.duration;return t!==null?this._dateAtEnd=new Date(this._startDate.getTime()+t*1e3):null}get duration(){if("DURATION"in this.attr){const e=this.attr.decimalFloatingPoint("DURATION");if(p(e))return e}else if(this._endDate)return(this._endDate.getTime()-this._startDate.getTime())/1e3;return null}get plannedDuration(){return"PLANNED-DURATION"in this.attr?this.attr.decimalFloatingPoint("PLANNED-DURATION"):null}get endOnNext(){return this.attr.bool("END-ON-NEXT")}get isInterstitial(){return this.class===Qi}get isValid(){return!!this.id&&!this._badValueForSameId&&p(this.startDate.getTime())&&(this.duration===null||this.duration>=0)&&(!this.endOnNext||!!this.class)&&(!this.attr.CUE||!this.cue.pre&&!this.cue.post||this.cue.pre!==this.cue.post)&&(!this.isInterstitial||"X-ASSET-URI"in this.attr||"X-ASSET-LIST"in this.attr)}}const Xi=10;class _r{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?p(this.fragments[this.fragments.length-1].programDateTime):!1}get levelTargetDuration(){return this.averagetargetduration||this.targetduration||Xi}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 vr(a,e){return a.length===e.length?!a.some((t,n)=>t!==e[n]):!1}function Dr(a,e){return!a&&!e?!0:!a||!e?!1:vr(a,e)}function Er(a){return a==="AES-128"||a==="AES-256"||a==="AES-256-CTR"}function Ir(a){switch(a){case"AES-128":case"AES-256":return qn.cbc;case"AES-256-CTR":return qn.ctr;default:throw new Error(`invalid full segment method ${a}`)}}function is(a){return Uint8Array.from(atob(a),e=>e.charCodeAt(0))}function Hr(a){return Uint8Array.from(unescape(encodeURIComponent(a)),e=>e.charCodeAt(0))}function Vr(a){const e=Hr(a).subarray(0,16),t=new Uint8Array(16);return t.set(e,16-e.length),t}function Dn(a){const e=function(n,i,r){const s=n[i];n[i]=n[r],n[r]=s};e(a,0,3),e(a,1,2),e(a,4,5),e(a,6,7)}function Yn(a){const e=a.split(":");let t=null;if(e[0]==="data"&&e.length===2){const n=e[1].split(";"),i=n[n.length-1].split(",");if(i.length===2){const r=i[0]==="base64",s=i[1];r?(n.splice(-1,1),t=is(s)):t=Vr(s)}}return t}const Fi=typeof self!="undefined"?self:void 0;var li={CLEARKEY:"org.w3.clearkey",FAIRPLAY:"com.apple.fps",PLAYREADY:"com.microsoft.playready",WIDEVINE:"com.widevine.alpha"},pi={CLEARKEY:"org.w3.clearkey",FAIRPLAY:"com.apple.streamingkeydelivery",PLAYREADY:"com.microsoft.playready",WIDEVINE:"urn:uuid:edef8ba9-79d6-4ace-a3c8-27dcd51d21ed"};function kr(a){switch(a){case pi.FAIRPLAY:return li.FAIRPLAY;case pi.PLAYREADY:return li.PLAYREADY;case pi.WIDEVINE:return li.WIDEVINE;case pi.CLEARKEY:return li.CLEARKEY}}function xr(a){switch(a){case li.FAIRPLAY:return pi.FAIRPLAY;case li.PLAYREADY:return pi.PLAYREADY;case li.WIDEVINE:return pi.WIDEVINE;case li.CLEARKEY:return pi.CLEARKEY}}function Wr(a){const{drmSystems:e,widevineLicenseUrl:t}=a,n=e?[li.FAIRPLAY,li.WIDEVINE,li.PLAYREADY,li.CLEARKEY].filter(i=>!!e[i]):[];return!n[li.WIDEVINE]&&t&&n.push(li.WIDEVINE),n}const rs=function(a){return Fi!=null&&(a=Fi.navigator)!=null&&a.requestMediaKeySystemAccess?self.navigator.requestMediaKeySystemAccess.bind(self.navigator):null}();function fs(a,e,t,n){let i;switch(a){case li.FAIRPLAY:i=["cenc","sinf"];break;case li.WIDEVINE:case li.PLAYREADY:i=["cenc"];break;case li.CLEARKEY:i=["cenc","keyids"];break;default:throw new Error(`Unknown key-system: ${a}`)}return Gs(i,e,t,n)}function Gs(a,e,t,n){return[{initDataTypes:a,persistentState:n.persistentState||"optional",distinctiveIdentifier:n.distinctiveIdentifier||"optional",sessionTypes:n.sessionTypes||[n.sessionType||"temporary"],audioCapabilities:e.map(r=>({contentType:`audio/mp4; codecs=${r}`,robustness:n.audioRobustness||"",encryptionScheme:n.audioEncryptionScheme||null})),videoCapabilities:t.map(r=>({contentType:`video/mp4; codecs=${r}`,robustness:n.videoRobustness||"",encryptionScheme:n.videoEncryptionScheme||null}))}]}function Hs(a){var e;return!!a&&(a.sessionType==="persistent-license"||!!((e=a.sessionTypes)!=null&&e.some(t=>t==="persistent-license")))}function qr(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 h=is(l).subarray(0,16);return Dn(h),h}}return null}let es={};class Lr{static clearKeyUriToKeyIdMap(){es={}}static setKeyIdForUri(e,t){es[e]=t}constructor(e,t,n,i=[1],r=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=i,this.iv=r,this.encrypted=e?e!=="NONE":!1,this.isCommonEncryption=this.encrypted&&!Er(e),s!=null&&s.startsWith("0x")&&(this.keyId=new Uint8Array(k(s)))}matches(e){return e.uri===this.uri&&e.method===this.method&&e.encrypted===this.encrypted&&e.keyFormat===this.keyFormat&&vr(e.keyFormatVersions,this.keyFormatVersions)&&Dr(e.iv,this.iv)&&Dr(e.keyId,this.keyId)}isSupported(){if(this.method){if(Er(this.method)||this.method==="NONE")return!0;if(this.keyFormat==="identity")return this.method==="SAMPLE-AES";switch(this.keyFormat){case pi.FAIRPLAY:case pi.WIDEVINE:case pi.PLAYREADY:case pi.CLEARKEY:return["SAMPLE-AES","SAMPLE-AES-CENC","SAMPLE-AES-CTR"].indexOf(this.method)!==-1}}return!1}getDecryptData(e,t){if(!this.encrypted||!this.uri)return null;if(Er(this.method)){let r=this.iv;return r||(typeof e!="number"&&(se.warn(`missing IV for initialization segment with method="${this.method}" - compliance issue`),e=0),r=Br(e)),new Lr(this.method,this.uri,"identity",this.keyFormatVersions,r)}if(this.keyId){const r=es[this.uri];if(r&&!vr(this.keyId,r)&&Lr.setKeyIdForUri(this.uri,this.keyId),this.pssh)return this}const n=Yn(this.uri);if(n)switch(this.keyFormat){case pi.WIDEVINE:if(this.pssh=n,!this.keyId){const r=In(n.buffer);if(r.length){var i;const s=r[0];this.keyId=(i=s.kids)!=null&&i.length?s.kids[0]:null}}this.keyId||(this.keyId=os(t));break;case pi.PLAYREADY:{const r=new Uint8Array([154,4,240,121,152,64,66,134,171,146,230,91,224,136,95,149]);this.pssh=Ht(r,null,n),this.keyId=qr(n);break}default:{let r=n.subarray(0,16);if(r.length!==16){const s=new Uint8Array(16);s.set(r,16-r.length),r=s}this.keyId=r;break}}if(!this.keyId||this.keyId.byteLength!==16){let r;r=Ts(t),r||(r=os(t),r||(r=es[this.uri])),r&&(this.keyId=r,Lr.setKeyIdForUri(this.uri,r))}return this}}function Ts(a){const e=a==null?void 0:a[pi.WIDEVINE];return e?e.keyId:null}function os(a){const e=a==null?void 0:a[pi.PLAYREADY];if(e){const t=Yn(e.uri);if(t)return qr(t)}return null}function Br(a){const e=new Uint8Array(16);for(let t=12;t<16;t++)e[t]=a>>8*(15-t)&255;return e}const Qe=/#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,dn=/#EXT-X-MEDIA:(.*)/g,On=/^#EXT(?:INF|-X-TARGETDURATION):/m,Wn=new RegExp([/#EXTINF:\s*(\d*(?:\.\d+)?)(?:,(.*)\s+)?/.source,/(?!#) *(\S[^\r\n]*)/.source,/#.*/.source].join("|"),"g"),xi=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 Kn{static findGroup(e,t){for(let n=0;n<e.length;n++){const i=e[n];if(i.id===t)return i}}static resolve(e,t){return x.buildAbsoluteURL(t,e,{alwaysNormalize:!0})}static isMediaPlaylist(e){return On.test(e)}static parseMasterPlaylist(e,t){const n=sr(e),i={contentSteering:null,levels:[],playlistParsingError:null,sessionData:null,sessionKeys:null,startTimeOffset:null,variableList:null,hasVariableRefs:n},r=[];if(Qe.lastIndex=0,!e.startsWith("#EXTM3U"))return i.playlistParsingError=new Error("no EXTM3U delimiter"),i;let s;for(;(s=Qe.exec(e))!=null;)if(s[1]){var l;const c=new bi(s[1],i),f=hr(i,s[2]),g={attrs:c,bitrate:c.decimalInteger("BANDWIDTH")||c.decimalInteger("AVERAGE-BANDWIDTH"),name:c.NAME,url:Kn.resolve(f,t)},A=c.decimalResolution("RESOLUTION");A&&(g.width=A.width,g.height=A.height),Ar(c.CODECS,g);const I=c["SUPPLEMENTAL-CODECS"];I&&(g.supplemental={},Ar(I,g.supplemental)),(l=g.unknownCodecs)!=null&&l.length||r.push(g),i.levels.push(g)}else if(s[3]){const c=s[3],f=s[4];switch(c){case"SESSION-DATA":{const g=new bi(f,i),A=g["DATA-ID"];A&&(i.sessionData===null&&(i.sessionData={}),i.sessionData[A]=g);break}case"SESSION-KEY":{const g=cr(f,t,i);g.encrypted&&g.isSupported()?(i.sessionKeys===null&&(i.sessionKeys=[]),i.sessionKeys.push(g)):se.warn(`[Keys] Ignoring invalid EXT-X-SESSION-KEY tag: "${f}"`);break}case"DEFINE":{{const g=new bi(f,i);Fr(i,g,t)}break}case"CONTENT-STEERING":{const g=new bi(f,i);i.contentSteering={uri:Kn.resolve(g["SERVER-URI"],t),pathwayId:g["PATHWAY-ID"]||"."};break}case"START":{i.startTimeOffset=$i(f);break}}}const h=r.length>0&&r.length<i.levels.length;return i.levels=h?r:i.levels,i.levels.length===0&&(i.playlistParsingError=new Error("no levels found in manifest")),i}static parseMasterPlaylistMedia(e,t,n){let i;const r={},s=n.levels,l={AUDIO:s.map(c=>({id:c.attrs.AUDIO,audioCodec:c.audioCodec})),SUBTITLES:s.map(c=>({id:c.attrs.SUBTITLES,textCodec:c.textCodec})),"CLOSED-CAPTIONS":[]};let h=0;for(dn.lastIndex=0;(i=dn.exec(e))!==null;){const c=new bi(i[1],n),f=c.TYPE;if(f){const g=l[f],A=r[f]||[];r[f]=A;const I=c.LANGUAGE,C=c["ASSOC-LANGUAGE"],Q=c.CHANNELS,Z=c.CHARACTERISTICS,me=c["INSTREAM-ID"],ye={attrs:c,bitrate:0,id:h++,groupId:c["GROUP-ID"]||"",name:c.NAME||I||"",type:f,default:c.bool("DEFAULT"),autoselect:c.bool("AUTOSELECT"),forced:c.bool("FORCED"),lang:I,url:c.URI?Kn.resolve(c.URI,t):""};if(C&&(ye.assocLang=C),Q&&(ye.channels=Q),Z&&(ye.characteristics=Z),me&&(ye.instreamId=me),g!=null&&g.length){const be=Kn.findGroup(g,ye.groupId)||g[0];Mr(ye,be,"audioCodec"),Mr(ye,be,"textCodec")}A.push(ye)}}return r}static parseLevelPlaylist(e,t,n,i,r,s){var l;const h={url:t},c=new _r(t),f=c.fragments,g=[];let A=null,I=0,C=0,Q=0,Z=0,me=0,ye=null,be=new je(i,h),Ue,Je,Bt,nt=-1,mt=!1,gt=null,at;if(Wn.lastIndex=0,c.m3u8=e,c.hasVariableRefs=sr(e),((l=Wn.exec(e))==null?void 0:l[0])!=="#EXTM3U")return c.playlistParsingError=new Error("Missing format identifier #EXTM3U"),c;for(;(Ue=Wn.exec(e))!==null;){mt&&(mt=!1,be=new je(i,h),be.playlistOffset=Q,be.setStart(Q),be.sn=I,be.cc=Z,me&&(be.bitrate=me),be.level=n,A&&(be.initSegment=A,A.rawProgramDateTime&&(be.rawProgramDateTime=A.rawProgramDateTime,A.rawProgramDateTime=null),gt&&(be.setByteRange(gt),gt=null)));const Jn=Ue[1];if(Jn){be.duration=parseFloat(Jn);const jn=(" "+Ue[2]).slice(1);be.title=jn||null,be.tagList.push(jn?["INF",Jn,jn]:["INF",Jn])}else if(Ue[3]){if(p(be.duration)){be.playlistOffset=Q,be.setStart(Q),Bt&&yr(be,Bt,c),be.sn=I,be.level=n,be.cc=Z,f.push(be);const jn=(" "+Ue[3]).slice(1);be.relurl=hr(c,jn),Zr(be,ye,g),ye=be,Q+=be.duration,I++,C=0,mt=!0}}else{if(Ue=Ue[0].match(xi),!Ue){se.warn("No matches on slow regex match for level playlist!");continue}for(Je=1;Je<Ue.length&&Ue[Je]===void 0;Je++);const jn=(" "+Ue[Je]).slice(1),pn=(" "+Ue[Je+1]).slice(1),Gn=Ue[Je+2]?(" "+Ue[Je+2]).slice(1):null;switch(jn){case"BYTERANGE":ye?be.setByteRange(pn,ye):be.setByteRange(pn);break;case"PROGRAM-DATE-TIME":be.rawProgramDateTime=pn,be.tagList.push(["PROGRAM-DATE-TIME",pn]),nt===-1&&(nt=f.length);break;case"PLAYLIST-TYPE":c.type&&wr(c,jn,Ue),c.type=pn.toUpperCase();break;case"MEDIA-SEQUENCE":c.startSN!==0?wr(c,jn,Ue):f.length>0&&ts(c,jn,Ue),I=c.startSN=parseInt(pn);break;case"SKIP":{c.skippedSegments&&wr(c,jn,Ue);const Rn=new bi(pn,c),Zn=Rn.decimalInteger("SKIPPED-SEGMENTS");if(p(Zn)){c.skippedSegments+=Zn;for(let bn=Zn;bn--;)f.push(null);I+=Zn}const ci=Rn.enumeratedString("RECENTLY-REMOVED-DATERANGES");ci&&(c.recentlyRemovedDateranges=(c.recentlyRemovedDateranges||[]).concat(ci.split(" ")));break}case"TARGETDURATION":c.targetduration!==0&&wr(c,jn,Ue),c.targetduration=Math.max(parseInt(pn),1);break;case"VERSION":c.version!==null&&wr(c,jn,Ue),c.version=parseInt(pn);break;case"INDEPENDENT-SEGMENTS":break;case"ENDLIST":c.live||wr(c,jn,Ue),c.live=!1;break;case"#":(pn||Gn)&&be.tagList.push(Gn?[pn,Gn]:[pn]);break;case"DISCONTINUITY":Z++,be.tagList.push(["DIS"]);break;case"GAP":be.gap=!0,be.tagList.push([jn]);break;case"BITRATE":be.tagList.push([jn,pn]),me=parseInt(pn)*1e3,p(me)?be.bitrate=me:me=0;break;case"DATERANGE":{const Rn=new bi(pn,c),Zn=new ur(Rn,c.dateRanges[Rn.ID],c.dateRangeTagCount);c.dateRangeTagCount++,Zn.isValid||c.skippedSegments?c.dateRanges[Zn.id]=Zn:se.warn(`Ignoring invalid DATERANGE tag: "${pn}"`),be.tagList.push(["EXT-X-DATERANGE",pn]);break}case"DEFINE":{{const Rn=new bi(pn,c);"IMPORT"in Rn?Nr(c,Rn,s):Fr(c,Rn,t)}break}case"DISCONTINUITY-SEQUENCE":c.startCC!==0?wr(c,jn,Ue):f.length>0&&ts(c,jn,Ue),c.startCC=Z=parseInt(pn);break;case"KEY":{const Rn=cr(pn,t,c);if(Rn.isSupported()){if(Rn.method==="NONE"){Bt=void 0;break}Bt||(Bt={});const Zn=Bt[Rn.keyFormat];Zn!=null&&Zn.matches(Rn)||(Zn&&(Bt=_({},Bt)),Bt[Rn.keyFormat]=Rn)}else se.warn(`[Keys] Ignoring unsupported EXT-X-KEY tag: "${pn}"`);break}case"START":c.startTimeOffset=$i(pn);break;case"MAP":{const Rn=new bi(pn,c);if(be.duration){const Zn=new je(i,h);ls(Zn,Rn,n,Bt),A=Zn,be.initSegment=A,A.rawProgramDateTime&&!be.rawProgramDateTime&&(be.rawProgramDateTime=A.rawProgramDateTime)}else{const Zn=be.byteRangeEndOffset;if(Zn){const ci=be.byteRangeStartOffset;gt=`${Zn-ci}@${ci}`}else gt=null;ls(be,Rn,n,Bt),A=be,mt=!0}A.cc=Z;break}case"SERVER-CONTROL":{at&&wr(c,jn,Ue),at=new bi(pn),c.canBlockReload=at.bool("CAN-BLOCK-RELOAD"),c.canSkipUntil=at.optionalFloat("CAN-SKIP-UNTIL",0),c.canSkipDateRanges=c.canSkipUntil>0&&at.bool("CAN-SKIP-DATERANGES"),c.partHoldBack=at.optionalFloat("PART-HOLD-BACK",0),c.holdBack=at.optionalFloat("HOLD-BACK",0);break}case"PART-INF":{c.partTarget&&wr(c,jn,Ue);const Rn=new bi(pn);c.partTarget=Rn.decimalFloatingPoint("PART-TARGET");break}case"PART":{let Rn=c.partList;Rn||(Rn=c.partList=[]);const Zn=C>0?Rn[Rn.length-1]:void 0,ci=C++,bn=new bi(pn,c),xn=new yt(bn,be,h,ci,Zn);Rn.push(xn),be.duration+=xn.duration;break}case"PRELOAD-HINT":{const Rn=new bi(pn,c);c.preloadHint=Rn;break}case"RENDITION-REPORT":{const Rn=new bi(pn,c);c.renditionReports=c.renditionReports||[],c.renditionReports.push(Rn);break}default:se.warn(`line parsed but not handled: ${Ue}`);break}}}ye&&!ye.relurl?(f.pop(),Q-=ye.duration,c.partList&&(c.fragmentHint=ye)):c.partList&&(Zr(be,ye,g),be.cc=Z,c.fragmentHint=be,Bt&&yr(be,Bt,c)),c.targetduration||(c.playlistParsingError=new Error("Missing Target Duration"));const Qt=f.length,Sn=f[0],zn=f[Qt-1];if(Q+=c.skippedSegments*c.targetduration,Q>0&&Qt&&zn){c.averagetargetduration=Q/Qt;const Jn=zn.sn;c.endSN=Jn!=="initSegment"?Jn:0,c.live||(zn.endList=!0),nt>0&&(Pr(f,nt),Sn&&g.unshift(Sn))}return c.fragmentHint&&(Q+=c.fragmentHint.duration),c.totalduration=Q,g.length&&c.dateRangeTagCount&&Sn&&qi(g,c),c.endCC=Z,c}}function qi(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],i=e.live?1/0:e.totalduration,r=Object.keys(e.dateRanges);for(let l=r.length;l--;){const h=e.dateRanges[r[l]],c=h.startDate.getTime();h.tagAnchor=n.ref;for(let f=t;f--;){var s;if(((s=a[f])==null?void 0:s.sn)<e.startSN)break;const g=Hi(e,c,a,f,i);if(g!==-1){h.tagAnchor=e.fragments[g].ref;break}}}}function Hi(a,e,t,n,i){const r=t[n];if(r){const l=r.programDateTime;if(e>=l||n===0){var s;const h=(((s=t[n+1])==null?void 0:s.start)||i)-r.start;if(e<=l+h*1e3){const c=t[n].sn-a.startSN;if(c<0)return-1;const f=a.fragments;if(f.length>t.length){const A=(t[n+1]||f[f.length-1]).sn-a.startSN;for(let I=A;I>c;I--){const C=f[I].programDateTime;if(e>=C&&e<C+f[I].duration*1e3)return I}}return c}}}return-1}function cr(a,e,t){var n,i;const r=new bi(a,t),s=(n=r.METHOD)!=null?n:"",l=r.URI,h=r.hexadecimalInteger("IV"),c=r.KEYFORMATVERSIONS,f=(i=r.KEYFORMAT)!=null?i:"identity";l&&r.IV&&!h&&se.error(`Invalid IV: ${r.IV}`);const g=l?Kn.resolve(l,e):"",A=(c||"1").split("/").map(Number).filter(Number.isFinite);return new Lr(s,g,f,A,h,r.KEYID)}function $i(a){const t=new bi(a).decimalFloatingPoint("TIME-OFFSET");return p(t)?t:null}function Ar(a,e){let t=(a||"").split(/[ ,]+/).filter(n=>n);["video","audio","text"].forEach(n=>{const i=t.filter(r=>He(r,n));i.length&&(e[`${n}Codec`]=i.map(r=>r.split("/")[0]).join(","),t=t.filter(r=>i.indexOf(r)===-1))}),e.unknownCodecs=t}function Mr(a,e,t){const n=e[t];n&&(a[t]=n)}function Pr(a,e){let t=a[e];for(let n=e;n--;){const i=a[n];if(!i)return;i.programDateTime=t.programDateTime-i.duration*1e3,t=i}}function Zr(a,e,t){a.rawProgramDateTime?t.push(a):e!=null&&e.programDateTime&&(a.programDateTime=e.endProgramDateTime)}function ls(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 yr(a,e,t){a.levelkeys=e;const{encryptedFragments:n}=t;(!n.length||n[n.length-1].levelkeys!==e)&&Object.keys(e).some(i=>e[i].isCommonEncryption)&&n.push(a)}function wr(a,e,t){a.playlistParsingError=new Error(`#EXT-X-${e} must not appear more than once (${t[0]})`)}function ts(a,e,t){a.playlistParsingError=new Error(`#EXT-X-${e} must appear before the first Media Segment (${t[0]})`)}function ds(a,e){const t=e.startPTS;if(p(t)){let n=0,i;e.sn>a.sn?(n=t-a.start,i=a):(n=a.start-t,i=e),i.duration!==n&&i.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 Qr(a,e,t,n,i,r,s){n-t<=0&&(s.warn("Fragment should have a positive duration",e),n=t+e.duration,r=i+e.duration);let h=t,c=n;const f=e.startPTS,g=e.endPTS;if(p(f)){const me=Math.abs(f-t);a&&me>a.totalduration?s.warn(`media timestamps and playlist times differ by ${me}s for level ${e.level} ${a.url}`):p(e.deltaPTS)?e.deltaPTS=Math.max(me,e.deltaPTS):e.deltaPTS=me,h=Math.max(t,f),t=Math.min(t,f),i=e.startDTS!==void 0?Math.min(i,e.startDTS):i,c=Math.min(n,g),n=Math.max(n,g),r=e.endDTS!==void 0?Math.max(r,e.endDTS):r}const A=t-e.start;e.start!==0&&e.setStart(t),e.setDuration(n-e.start),e.startPTS=t,e.maxStartPTS=h,e.startDTS=i,e.endPTS=n,e.minEndPTS=c,e.endDTS=r;const I=e.sn;if(!a||I<a.startSN||I>a.endSN)return 0;let C;const Q=I-a.startSN,Z=a.fragments;for(Z[Q]=e,C=Q;C>0;C--)ds(Z[C],Z[C-1]);for(C=Q;C<Z.length-1;C++)ds(Z[C],Z[C+1]);return a.fragmentHint&&ds(Z[Z.length-1],a.fragmentHint),a.PTSKnown=a.alignedSliding=!0,A}function Cr(a,e,t){if(a===e)return;let n=null;const i=a.fragments;for(let f=i.length-1;f>=0;f--){const g=i[f].initSegment;if(g){n=g;break}}a.fragmentHint&&delete a.fragmentHint.endPTS;let r;oa(a,e,(f,g,A,I)=>{if((!e.startCC||e.skippedSegments)&&g.cc!==f.cc){const C=f.cc-g.cc;for(let Q=A;Q<I.length;Q++)I[Q].cc+=C;e.endCC=I[I.length-1].cc}p(f.startPTS)&&p(f.endPTS)&&(g.setStart(g.startPTS=f.startPTS),g.startDTS=f.startDTS,g.maxStartPTS=f.maxStartPTS,g.endPTS=f.endPTS,g.endDTS=f.endDTS,g.minEndPTS=f.minEndPTS,g.setDuration(f.endPTS-f.startPTS),g.duration&&(r=g),e.PTSKnown=e.alignedSliding=!0),f.hasStreams&&(g.elementaryStreams=f.elementaryStreams),g.loader=f.loader,f.hasStats&&(g.stats=f.stats),f.initSegment&&(g.initSegment=f.initSegment,n=f.initSegment)});const s=e.fragments,l=e.fragmentHint?s.concat(e.fragmentHint):s;if(n&&l.forEach(f=>{var g;f&&(!f.initSegment||f.initSegment.relurl===((g=n)==null?void 0:g.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=ss(a.dateRanges,e,t));const f=a.fragments.filter(g=>g.rawProgramDateTime);if(a.hasProgramDateTime&&!e.hasProgramDateTime)for(let g=1;g<l.length;g++)l[g].programDateTime===null&&Zr(l[g],l[g-1],f);qi(f,e)}e.endCC=s[s.length-1].cc}if(!e.startCC){var h;const f=Ki(a,e.startSN-1);e.startCC=(h=f==null?void 0:f.cc)!=null?h:s[0].cc}Ds(a.partList,e.partList,(f,g)=>{g.elementaryStreams=f.elementaryStreams,g.stats=f.stats}),r?Qr(e,r,r.startPTS,r.endPTS,r.startDTS,r.endDTS,t):Ws(a,e),s.length&&(e.totalduration=e.edge-s[0].start),e.driftStartTime=a.driftStartTime,e.driftStart=a.driftStart;const c=e.advancedDateTime;if(e.advanced&&c){const f=e.edge;e.driftStart||(e.driftStartTime=c,e.driftStart=f),e.driftEndTime=c,e.driftEnd=f}else e.driftEndTime=a.driftEndTime,e.driftEnd=a.driftEnd,e.advancedDateTime=a.advancedDateTime;e.requestScheduled===-1&&(e.requestScheduled=a.requestScheduled)}function ss(a,e,t){const{dateRanges:n,recentlyRemovedDateranges:i}=e,r=_({},a);i&&i.forEach(h=>{delete r[h]});const l=Object.keys(r).length;return l?(Object.keys(n).forEach(h=>{const c=r[h],f=new ur(n[h].attr,c);f.isValid?(r[h]=f,c||(f.tagOrder+=l)):t.warn(`Ignoring invalid Playlist Delta Update DATERANGE tag: "${ut(n[h].attr)}"`)}),r):n}function Ds(a,e,t){if(a&&e){let n=0;for(let i=0,r=a.length;i<=r;i++){const s=a[i],l=e[i+n];s&&l&&s.index===l.index&&s.fragment.sn===l.fragment.sn?t(s,l):n--}}}function oa(a,e,t){const n=e.skippedSegments,i=Math.max(a.startSN,e.startSN)-e.startSN,r=(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,h=a.fragmentHint?a.fragments.concat(a.fragmentHint):a.fragments;for(let c=i;c<=r;c++){const f=h[s+c];let g=l[c];if(n&&!g&&f&&(g=e.fragments[c]=f),f&&g){t(f,g,c,l);const A=f.relurl,I=g.relurl;if(A&&bs(A,I)){e.playlistParsingError=Vs(`media sequence mismatch ${g.sn}:`,a,e,f,g);return}else if(f.cc!==g.cc){e.playlistParsingError=Vs(`discontinuity sequence mismatch (${f.cc}!=${g.cc})`,a,e,f,g);return}}}}function Vs(a,e,t,n,i){return new Error(`${a} ${i.url}
Playlist starting @${e.startSN}
${e.m3u8}
Playlist starting @${t.startSN}
${t.m3u8}`)}function Ws(a,e,t=!0){const n=e.startSN+e.skippedSegments-a.startSN,i=a.fragments,r=n>=0;let s=0;if(r&&n<i.length)s=i[n].start;else if(r&&e.startSN===a.endSN+1)s=a.fragmentEnd;else if(r&&t)s=a.fragmentStart+n*e.levelTargetDuration;else if(!e.skippedSegments&&e.fragmentStart===0)s=a.fragmentStart;else return;Ms(e,s)}function Ms(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 ar(a,e=1/0){let t=1e3*a.targetduration;if(a.updated){const n=a.fragments;if(n.length&&t*4>e){const r=n[n.length-1].duration*1e3;r<t&&(t=r)}}else t/=2;return Math.round(t)}function Ki(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 er(a,e,t){return a?Sr(a.partList,e,t):null}function Sr(a,e,t){if(a)for(let n=a.length;n--;){const i=a[n];if(i.index===t&&i.fragment.sn===e)return i}return null}function fr(a){a.forEach((e,t)=>{var n;(n=e.details)==null||n.fragments.forEach(i=>{i.level=t,i.initSegment&&(i.initSegment.level=t)})})}function bs(a,e){return a!==e&&e?Is(a)!==Is(e):!1}function Is(a){return a.replace(/\?[^?]*$/,"")}function ps(a,e){for(let n=0,i=a.length;n<i;n++){var t;if(((t=a[n])==null?void 0:t.cc)===e)return a[n]}return null}function Zs(a,e){return!!(a&&e.startCC<a.endCC&&e.endCC>a.startCC)}function Ps(a,e){const t=a.start+e;a.startPTS=t,a.setStart(t),a.endPTS=t+a.duration}function gs(a,e){const t=e.fragments;for(let n=0,i=t.length;n<i;n++)Ps(t[n],a);e.fragmentHint&&Ps(e.fragmentHint,a),e.alignedSliding=!0}function Os(a,e){a&&(Cs(e,a),e.alignedSliding||ks(e,a),!e.alignedSliding&&!e.skippedSegments&&Ws(a,e,!1))}function Cs(a,e){if(!Zs(e,a))return;const t=Math.min(e.endCC,a.endCC),n=ps(e.fragments,t),i=ps(a.fragments,t);if(!n||!i)return;se.log(`Aligning playlist at start of dicontinuity sequence ${t}`);const r=n.start-i.start;gs(r,a)}function ks(a,e){if(!a.hasProgramDateTime||!e.hasProgramDateTime)return;const t=a.fragments,n=e.fragments;if(!t.length||!n.length)return;let i,r;const s=Math.min(e.endCC,a.endCC);e.startCC<s&&a.startCC<s&&(i=ps(n,s),r=ps(t,s)),(!i||!r)&&(i=n[Math.floor(n.length/2)],r=ps(t,i.cc)||t[Math.floor(t.length/2)]);const l=i.programDateTime,h=r.programDateTime;if(!l||!h)return;const c=(h-l)/1e3-(r.start-i.start);gs(c,a)}function Or(a,e,t){zr(a,e,t),a.addEventListener(e,t)}function zr(a,e,t){a.removeEventListener(e,t)}const Ja={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}},jt={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 la extends nr{constructor(e,t,n,i,r){super(i,e.logger),this.hls=void 0,this.fragPrevious=null,this.fragCurrent=null,this.fragmentTracker=void 0,this.transmuxer=null,this._state=jt.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:h,mediaBuffer:c,state:f}=this,g=h?h.currentTime:0,A=Vn.bufferInfo(c||h,g,s.maxBufferHole),I=!A.len;if(this.log(`Media seeking to ${p(g)?g.toFixed(3):g}, state: ${f}, ${I?"out of":"in"} buffer`),this.state===jt.ENDED)this.resetLoadingState();else if(l){const C=s.maxFragLookUpTolerance,Q=l.start-C,Z=l.start+l.duration+C;if(I||Z<A.start||Q>A.end){const me=g>Z;(g<Q||me)&&(me&&l.loader&&(this.log(`Cancelling fragment load for seek (sn: ${l.sn})`),l.abortRequests(),this.resetLoadingState()),this.fragPrevious=null)}}if(h){this.fragmentTracker.removeFragmentsInRange(g,1/0,this.playlistType,!0);const C=this.lastCurrentTime;if(g>C&&(this.lastCurrentTime=g),!this.loadingParts){const Q=Math.max(A.end,g),Z=this.shouldLoadParts(this.getLevelDetails(),Q);Z&&(this.log(`LL-Part loading ON after seeking to ${g.toFixed(2)} with buffer @${Q.toFixed(2)}`),this.loadingParts=Z)}}this.hls.hasEnoughToStart||(this.log(`Setting ${I?"startPosition":"nextLoadPosition"} to ${g} for seek without enough to start`),this.nextLoadPosition=g,I&&(this.startPosition=g)),I&&this.state===jt.IDLE&&this.tickImmediate()},this.onMediaEnded=()=>{this.log("setting startPosition to 0 because media ended"),this.startPosition=this.lastCurrentTime=0},this.playlistType=r,this.hls=e,this.fragmentLoader=new Ii(e.config),this.keyLoader=n,this.fragmentTracker=t,this.config=e.config,this.decrypter=new Ai(e.config)}registerListeners(){const{hls:e}=this;e.on(m.MEDIA_ATTACHED,this.onMediaAttached,this),e.on(m.MEDIA_DETACHING,this.onMediaDetaching,this),e.on(m.MANIFEST_LOADING,this.onManifestLoading,this),e.on(m.MANIFEST_LOADED,this.onManifestLoaded,this),e.on(m.ERROR,this.onError,this)}unregisterListeners(){const{hls:e}=this;e.off(m.MEDIA_ATTACHED,this.onMediaAttached,this),e.off(m.MEDIA_DETACHING,this.onMediaDetaching,this),e.off(m.MANIFEST_LOADING,this.onManifestLoading,this),e.off(m.MANIFEST_LOADED,this.onManifestLoaded,this),e.off(m.ERROR,this.onError,this)}doTick(){this.onTickEnd()}onTickEnd(){}startLoad(e){}stopLoad(){if(this.state===jt.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=jt.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,i=this.config.timelineOffset||0;if(n<=i)return!1;const r=e.buffered;this.config.maxBufferHole&&r&&r.length>1&&(e=Vn.bufferedInfo(r,e.start,0));const s=e.nextStart;if(s&&s>i&&s<t.edge||this.media.currentTime<e.start)return!1;const h=t.partList;if(h!=null&&h.length){const f=h[h.length-1];return Vn.isBuffered(this.media,f.start+f.duration/2)}const c=t.fragments[t.fragments.length-1].type;return this.fragmentTracker.isEndListAppended(c)}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;Or(n,"seeking",this.onMediaSeeking),Or(n,"ended",this.onMediaEnded);const i=this.config;this.levels&&i.autoStartLoad&&this.state===jt.STOPPED&&this.startLoad(i.startPosition)}onMediaDetaching(e,t){const n=!!t.transferMedia,i=this.media;if(i!==null){if(i.ended&&(this.log("MSE detaching and video ended, reset startPosition"),this.startPosition=this.lastCurrentTime=0),zr(i,"seeking",this.onMediaSeeking),zr(i,"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=jt.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 i=r=>{const s=r.frag;if(this.fragContextChanged(s)){this.warn(`${s.type} sn: ${s.sn}${r.part?" part: "+r.part.index:""} of ${this.fragInfo(s,!1,r.part)}) was dropped during download.`),this.fragmentTracker.removeFragment(s);return}s.stats.chunkCount++,this._handleFragmentLoadProgress(r)};this._doFragLoad(e,t,n,i).then(r=>{if(!r)return;const s=this.state,l=r.frag;if(this.fragContextChanged(l)){(s===jt.FRAG_LOADING||!this.fragCurrent&&s===jt.PARSING)&&(this.fragmentTracker.removeFragment(l),this.state=jt.IDLE);return}"payload"in r&&(this.log(`Loaded ${l.type} sn: ${l.sn} of ${this.playlistLabel()} ${l.level}`),this.hls.trigger(m.FRAG_LOADED,r)),this._handleFragmentLoadComplete(r)}).catch(r=>{this.state===jt.STOPPED||this.state===jt.ERROR||(this.warn(`Frag error: ${(r==null?void 0:r.message)||r}`),this.resetFragmentLoading(e))})}clearTrackerIfNeeded(e){var t;const{fragmentTracker:n}=this;if(n.getState(e)===Cn.APPENDING){const r=e.type,s=this.getFwdBufferInfo(this.mediaBuffer,r),l=Math.max(e.duration,s?s.len:this.config.maxBufferLength),h=this.backtrackFragment;((h?e.sn-h.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)===Cn.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 i={startOffset:e,endOffset:t,type:n};this.hls.trigger(m.BUFFER_FLUSHING,i)}_loadInitSegment(e,t){this._doFragLoad(e,t).then(n=>{const i=n==null?void 0:n.frag;if(!i||this.fragContextChanged(i)||!this.levels)throw new Error("init load aborted");return n}).then(n=>{const{hls:i}=this,{frag:r,payload:s}=n,l=r.decryptdata;if(s&&s.byteLength>0&&l!=null&&l.key&&l.iv&&Er(l.method)){const h=self.performance.now();return this.decrypter.decrypt(new Uint8Array(s),l.key.buffer,l.iv.buffer,Ir(l.method)).catch(c=>{throw i.trigger(m.ERROR,{type:ce.MEDIA_ERROR,details:Y.FRAG_DECRYPT_ERROR,fatal:!1,error:c,reason:c.message,frag:r}),c}).then(c=>{const f=self.performance.now();return i.trigger(m.FRAG_DECRYPTED,{frag:r,payload:c,stats:{tstart:h,tdecrypt:f}}),n.payload=c,this.completeInitSegmentLoad(n)})}return this.completeInitSegmentLoad(n)}).catch(n=>{this.state===jt.STOPPED||this.state===jt.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!==jt.STOPPED&&(this.state=jt.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,i;const r=e.tracks;if(r&&!t.encrypted&&((n=r.audio)!=null&&n.encrypted||(i=r.video)!=null&&i.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(m.ERROR,{type:ce.KEY_SYSTEM_ERROR,details:Y.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?Ja.toString(Vn.getBuffered(n)):"(detached)"})`),ke(e)){var i;if(e.type!==U.SUBTITLE){const s=e.elementaryStreams;if(!Object.keys(s).some(l=>!!s[l])){this.state=jt.IDLE;return}}const r=(i=this.levels)==null?void 0:i[e.level];r!=null&&r.fragmentError&&(this.log(`Resetting level fragment error count of ${r.fragmentError} on frag buffered`),r.fragmentError=0)}this.state=jt.IDLE}_handleFragmentLoadComplete(e){const{transmuxer:t}=this;if(!t)return;const{frag:n,part:i,partsLoaded:r}=e,s=!r||r.length===0||r.some(h=>!h),l=new Ji(n.level,n.sn,n.stats.chunkCount+1,0,i?i.index:-1,!s);t.flush(l)}_handleFragmentLoadProgress(e){}_doFragLoad(e,t,n=null,i){var r;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&&!((r=e.decryptdata)!=null&&r.key)){if(this.log(`Loading key for ${e.sn} of [${s.startSN}-${s.endSN}], ${this.playlistLabel()} ${e.level}`),this.state=jt.KEY_LOADING,this.fragCurrent=e,l=this.keyLoader.load(e).then(A=>{if(!this.fragContextChanged(A.frag))return this.hls.trigger(m.KEY_LOADED,A),this.state===jt.KEY_LOADING&&(this.state=jt.IDLE),A}),this.hls.trigger(m.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 h=this.fragPrevious;if(ke(e)&&(!h||e.sn!==h.sn)){const A=this.shouldLoadParts(t.details,e.end);A!==this.loadingParts&&(this.log(`LL-Part loading ${A?"ON":"OFF"} loading sn ${h==null?void 0:h.sn}->${e.sn}`),this.loadingParts=A)}if(n=Math.max(e.start,n||0),this.loadingParts&&ke(e)){const A=s.partList;if(A&&i){n>s.fragmentEnd&&s.fragmentHint&&(e=s.fragmentHint);const I=this.getNextPart(A,e,n);if(I>-1){const C=A[I];e=this.fragCurrent=C.fragment,this.log(`Loading ${e.type} sn: ${e.sn} part: ${C.index} (${I}/${A.length-1}) of ${this.fragInfo(e,!1,C)}) cc: ${e.cc} [${s.startSN}-${s.endSN}], target: ${parseFloat(n.toFixed(3))}`),this.nextLoadPosition=C.start+C.duration,this.state=jt.FRAG_LOADING;let Q;return l?Q=l.then(Z=>!Z||this.fragContextChanged(Z.frag)?null:this.doFragPartsLoad(e,C,t,i)).catch(Z=>this.handleFragLoadError(Z)):Q=this.doFragPartsLoad(e,C,t,i).catch(Z=>this.handleFragLoadError(Z)),this.hls.trigger(m.FRAG_LOADING,{frag:e,part:C,targetBufferTime:n}),this.fragCurrent===null?Promise.reject(new Error("frag load aborted, context changed in FRAG_LOADING parts")):Q}else if(!e.url||this.loadedEndOfParts(A,n))return Promise.resolve(null)}}if(ke(e)&&this.loadingParts){var c;this.log(`LL-Part loading OFF after next part miss @${n.toFixed(2)} Check buffer at sn: ${e.sn} loaded parts: ${(c=s.partList)==null?void 0:c.filter(A=>A.loaded).map(A=>`[${A.start}-${A.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))}`),p(e.sn)&&!this.bitrateTest&&(this.nextLoadPosition=e.start+e.duration),this.state=jt.FRAG_LOADING;const f=this.config.progressive;let g;return f&&l?g=l.then(A=>!A||this.fragContextChanged(A.frag)?null:this.fragmentLoader.load(e,i)).catch(A=>this.handleFragLoadError(A)):g=Promise.all([this.fragmentLoader.load(e,f?i:void 0),l]).then(([A])=>(!f&&i&&i(A),A)).catch(A=>this.handleFragLoadError(A)),this.hls.trigger(m.FRAG_LOADING,{frag:e,targetBufferTime:n}),this.fragCurrent===null?Promise.reject(new Error("frag load aborted, context changed in FRAG_LOADING")):g}doFragPartsLoad(e,t,n,i){return new Promise((r,s)=>{var l;const h=[],c=(l=n.details)==null?void 0:l.partList,f=g=>{this.fragmentLoader.loadPart(e,g,i).then(A=>{h[g.index]=A;const I=A.part;this.hls.trigger(m.FRAG_LOADED,A);const C=er(n.details,e.sn,g.index+1)||Sr(c,e.sn,g.index+1);if(C)f(C);else return r({frag:e,part:I,partsLoaded:h})}).catch(s)};f(t)})}handleFragLoadError(e){if("data"in e){const t=e.data;t.frag&&t.details===Y.INTERNAL_ABORTED?this.handleFragLoadAborted(t.frag,t.part):t.frag&&t.type===ce.KEY_SYSTEM_ERROR?(t.frag.abortRequests(),this.resetStartWhenNotLoaded(),this.resetFragmentLoading(t.frag)):this.hls.trigger(m.ERROR,t)}else this.hls.trigger(m.ERROR,{type:ce.OTHER_ERROR,details:Y.INTERNAL_EXCEPTION,err:e,error:e,fatal:!0});return null}_handleTransmuxerFlush(e){const t=this.getCurrentContext(e);if(!t||this.state!==jt.PARSING){!this.fragCurrent&&this.state!==jt.STOPPED&&this.state!==jt.ERROR&&(this.state=jt.IDLE);return}const{frag:n,part:i,level:r}=t,s=self.performance.now();n.stats.parsing.end=s,i&&(i.stats.parsing.end=s);const l=this.getLevelDetails(),c=l&&n.sn>l.endSN||this.shouldLoadParts(l,n.end);c!==this.loadingParts&&(this.log(`LL-Part loading ${c?"ON":"OFF"} after parsing segment ending @${n.end.toFixed(2)}`),this.loadingParts=c),this.updateLevelTiming(n,i,r,e.partial)}shouldLoadParts(e,t){if(this.config.lowLatencyMode){if(!e)return this.loadingParts;if(e.partList){var n;const r=e.partList[0];if(r.fragment.type===U.SUBTITLE)return!1;const s=r.end+(((n=e.fragmentHint)==null?void 0:n.duration)||0);if(t>=s){var i;if((this.hls.hasEnoughToStart?((i=this.media)==null?void 0:i.currentTime)||this.lastCurrentTime:this.getLoadPosition())>r.start-r.fragment.duration)return!0}}}return!1}getCurrentContext(e){const{levels:t,fragCurrent:n}=this,{level:i,sn:r,part:s}=e;if(!(t!=null&&t[i]))return this.warn(`Levels object was unset while buffering fragment ${r} of ${this.playlistLabel()} ${i}. The current chunk will not be buffered.`),null;const l=t[i],h=l.details,c=s>-1?er(h,r,s):null,f=c?c.fragment:Ki(h,r,n);return f?(n&&n!==f&&(f.stats=n.stats),{frag:f,part:c,level:l}):null}bufferFragmentData(e,t,n,i,r){if(this.state!==jt.PARSING)return;const{data1:s,data2:l}=e;let h=s;if(l&&(h=st(s,l)),!h.length)return;const c=this.initPTS[t.cc],f=c?-c.baseTime/c.timescale:void 0,g={type:e.type,frag:t,part:n,chunkMeta:i,offset:f,parent:t.type,data:h};if(this.hls.trigger(m.BUFFER_APPENDING,g),e.dropped&&e.independent&&!n){if(r)return;this.flushBufferGap(t)}}flushBufferGap(e){const t=this.media;if(!t)return;if(!Vn.isBuffered(t,t.currentTime)){this.flushMainBuffer(0,e.start);return}const n=t.currentTime,i=Vn.bufferInfo(t,n,0),r=e.duration,s=Math.min(this.config.maxFragLookUpTolerance*2,r*.25),l=Math.max(Math.min(e.start-s,i.end-s),n+s);e.start-l>s&&this.flushMainBuffer(l,e.start)}getFwdBufferInfo(e,t){var n;const i=this.getLoadPosition();if(!p(i))return null;const s=this.lastCurrentTime>i||(n=this.media)!=null&&n.paused?0:this.config.maxBufferHole;return this.getFwdBufferInfoAtPos(e,i,t,s)}getFwdBufferInfoAtPos(e,t,n,i){const r=Vn.bufferInfo(e,t,i);if(r.len===0&&r.nextStart!==void 0){const s=this.fragmentTracker.getBufferedFrag(t,n);if(s&&(r.nextStart<=s.end||s.gap)){const l=Math.max(Math.min(r.nextStart,s.end)-t,i);return Vn.bufferInfo(e,t,l)}}return r}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,i=Math.max(Math.min(e-t,n.maxBufferLength),t),r=Math.max(e-t*3,n.maxMaxBufferLength/2,i);return r>=i?(n.maxMaxBufferLength=r,this.warn(`Reduce max buffer length to ${r}s`),!0):!1}getAppendedFrag(e,t=U.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,i=n.length;if(!i)return null;const{config:r}=this,s=n[0].start,l=r.lowLatencyMode&&!!t.partList;let h=null;if(t.live){const g=r.initialLiveManifestSize;if(i<g)return this.warn(`Not enough fragments to start playback (have: ${i}, need: ${g})`),null;if(!t.PTSKnown&&!this.startFragRequested&&this.startPosition===-1||e<s){var c;l&&!this.loadingParts&&(this.log("LL-Part loading ON for initial live fragment"),this.loadingParts=!0),h=this.getInitialLiveFragment(t);const A=this.hls.startPosition,I=this.hls.liveSyncPosition,C=h?(A!==-1&&A>=s?A:I)||h.start:e;this.log(`Setting startPosition to ${C} to match start frag at live edge. mainStart: ${A} liveSyncPosition: ${I} frag.start: ${(c=h)==null?void 0:c.start}`),this.startPosition=this.nextLoadPosition=C}}else e<=s&&(h=n[0]);if(!h){const g=this.loadingParts?t.partEnd:t.fragmentEnd;h=this.getFragmentAtPosition(e,g,t)}let f=this.filterReplacedPrimary(h,t);if(!f&&h){const g=h.sn-t.startSN;f=this.filterReplacedPrimary(n[g+1]||null,t)}return this.mapToInitFragWhenRequired(f)}isLoopLoading(e,t){const n=this.fragmentTracker.getState(e);return(n===Cn.OK||n===Cn.PARTIAL&&!!e.gap)&&this.nextLoadPosition>t}getNextFragmentLoopLoading(e,t,n,i,r){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,i,0);if(l!==null&&n.len+l.len>=r){const h=s.sn;return this.loopSn!==h&&(this.log(`buffer full after gaps in "${i}" playlist starting at sn: ${h}`),this.loopSn=h),null}}return this.loopSn=void 0,s}get primaryPrefetch(){if(ua(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(ua(this.config)&&e.type!==U.SUBTITLE){const n=this.hls.interstitialsManager,i=n==null?void 0:n.bufferingItem;if(i){const s=i.event;if(s){if(s.appendInPlace||Math.abs(e.start-i.start)>1||i.start===0)return null}else if(e.end<=i.start&&(t==null?void 0:t.live)===!1||e.start>i.end&&i.nextEvent&&(i.nextEvent.appendInPlace||e.start-i.end>1))return null}const r=n==null?void 0:n.playerQueue;if(r)for(let s=r.length;s--;){const l=r[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 i=-1,r=!1,s=!0;for(let l=0,h=e.length;l<h;l++){const c=e[l];if(s=s&&!c.independent,i>-1&&n<c.start)break;const f=c.loaded;f?i=-1:(r||(c.independent||s)&&c.fragment===t)&&(c.fragment!==t&&this.warn(`Need buffer at ${n} but next unloaded part starts at ${c.start}`),i=l),r=f}return i}loadedEndOfParts(e,t){let n;for(let i=e.length;i--;){if(n=e[i],!n.loaded)return!1;if(t>n.start)return!0}return!1}getInitialLiveFragment(e){const t=e.fragments,n=this.fragPrevious;let i=null;if(n){if(e.hasProgramDateTime&&(this.log(`Live playlist, switching playlist, load frag with same PDT: ${n.programDateTime}`),i=ze(t,n.endProgramDateTime,this.config.maxFragLookUpTolerance)),!i){const r=n.sn+1;if(r>=e.startSN&&r<=e.endSN){const s=t[r-e.startSN];n.cc===s.cc&&(i=s,this.log(`Live playlist, switching playlist, load frag with next SN: ${i.sn}`))}i||(i=_t(e,n.cc,n.end),i&&this.log(`Live playlist, switching playlist, load frag with same CC: ${i.sn}`))}}else{const r=this.hls.liveSyncPosition;r!==null&&(i=this.getFragmentAtPosition(r,this.bitrateTest?e.fragmentEnd:e.edge,e))}return i}getFragmentAtPosition(e,t,n){const{config:i}=this;let{fragPrevious:r}=this,{fragments:s,endSN:l}=n;const{fragmentHint:h}=n,{maxFragLookUpTolerance:c}=i,f=n.partList,g=!!(this.loadingParts&&f!=null&&f.length&&h);g&&!this.bitrateTest&&f[f.length-1].fragment.sn===h.sn&&(s=s.concat(h),l=h.sn);let A;if(e<t){var I;const Q=e<this.lastCurrentTime||e>t-c||(I=this.media)!=null&&I.paused||!this.startFragRequested?0:c;A=$e(r,s,e,Q)}else A=s[s.length-1];if(A){const C=A.sn-n.startSN,Q=this.fragmentTracker.getState(A);if((Q===Cn.OK||Q===Cn.PARTIAL&&A.gap)&&(r=A),r&&A.sn===r.sn&&(!g||f[0].fragment.sn>A.sn||!n.live)&&A.level===r.level){const me=s[C+1];A.sn<l&&this.fragmentTracker.getState(me)!==Cn.OK?A=me:A=null}}return A}alignPlaylists(e,t,n){const i=e.fragments.length;if(!i)return this.warn("No fragments in live playlist"),0;const r=e.fragmentStart,s=!t,l=e.alignedSliding&&p(r);if(s||!l&&!r){Os(n,e);const h=e.fragmentStart;return this.log(`Live playlist sliding: ${h.toFixed(2)} start-sn: ${t?t.startSN:"na"}->${e.startSN} fragments: ${i}`),h}return r}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 i=this.timelineOffset;if(n===-1){const r=this.startTimeOffset!==null,s=r?this.startTimeOffset:e.startTimeOffset;s!==null&&p(s)?(n=t+s,s<0&&(n+=e.edge),n=Math.min(Math.max(t,n),t+e.totalduration),this.log(`Setting startPosition to ${n} for start time offset ${s} found in ${r?"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+i}this.nextLoadPosition=n+i}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&&ke(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!==jt.FRAG_LOADING_WAITING_RETRY)&&(this.state=jt.IDLE)}onFragmentOrKeyLoadError(e,t){var n;if(t.chunkMeta&&!t.frag){const me=this.getCurrentContext(t.chunkMeta);me&&(t.frag=me.frag)}const i=t.frag;if(!i||i.type!==e||!this.levels)return;if(this.fragContextChanged(i)){var r;this.warn(`Frag load error must match current frag to retry ${i.url} > ${(r=this.fragCurrent)==null?void 0:r.url}`);return}const s=t.details===Y.FRAG_GAP;s&&this.fragmentTracker.fragBuffered(i,!0);const l=t.errorAction;if(!l){this.state=jt.ERROR;return}const{action:h,flags:c,retryCount:f=0,retryConfig:g}=l,A=!!g,I=A&&h===on.RetryRequest,C=A&&!l.resolved&&c===$t.MoveAllAlternatesMatchingHost,Q=(n=this.hls.latestLevelDetails)==null?void 0:n.live;if(!I&&C&&ke(i)&&!i.endList&&Q&&!Pt(t))this.resetFragmentErrors(e),this.treatAsGap(i),l.resolved=!0;else if((I||C)&&f<g.maxNumRetry){var Z;const me=Tn((Z=t.response)==null?void 0:Z.code),ye=un(g,f);if(this.resetStartWhenNotLoaded(),this.retryDate=self.performance.now()+ye,this.state=jt.FRAG_LOADING_WAITING_RETRY,l.resolved=!0,me){this.log("Waiting for connection (offline)"),this.retryDate=1/0,t.reason="offline";return}this.warn(`Fragment ${i.sn} of ${e} ${i.level} errored with ${t.details}, retrying loading ${f+1}/${g.maxNumRetry} in ${ye}ms`)}else if(g)if(this.resetFragmentErrors(e),f<g.maxNumRetry)!s&&h!==on.RemoveAlternatePermanently&&(l.resolved=!0);else{this.warn(`${t.details} reached or exceeded max retry (${f})`);return}else h===on.SendAlternateToPenaltyBox?this.state=jt.WAITING_LEVEL:this.state=jt.ERROR;this.tickImmediate()}checkRetryDate(){const e=self.performance.now(),t=this.retryDate,n=t===1/0;(!t||e>=t||n&&!Tn(0))&&(n&&this.log("Connection restored (online)"),this.resetStartWhenNotLoaded(),this.state=jt.IDLE)}reduceLengthAndFlushBuffer(e){if(this.state===jt.PARSING||this.state===jt.PARSED){const t=e.frag,n=e.parent,i=this.getFwdBufferInfo(this.mediaBuffer,n),r=i&&i.len>.5;r&&this.reduceMaxBufferLength(i.len,(t==null?void 0:t.duration)||10);const s=!r;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===U.AUDIO&&(this.fragCurrent=null),this.hls.hasEnoughToStart||(this.startFragRequested=!1),this.state!==jt.STOPPED&&(this.state=jt.IDLE)}afterBufferFlushed(e,t,n){if(!e)return;const i=Vn.getBuffered(e);this.fragmentTracker.detectEvictedFragments(t,i,n),this.state===jt.ENDED&&this.resetLoadingState()}resetLoadingState(){this.log("Reset loading state"),this.fragCurrent=null,this.fragPrevious=null,this.state!==jt.STOPPED&&(this.state=jt.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,i){const r=n.details;if(!r){this.warn("level.details undefined");return}if(!Object.keys(e.elementaryStreams).reduce((h,c)=>{const f=e.elementaryStreams[c];if(f){const g=f.endPTS-f.startPTS;if(g<=0)return this.warn(`Could not parse fragment ${e.sn} ${c} duration reliably (${g})`),h||!1;const A=i?0:Qr(r,e,f.startPTS,f.endPTS,f.startDTS,f.endDTS,this);return this.hls.trigger(m.LEVEL_PTS_UPDATED,{details:r,level:n,drift:A,type:c,frag:e,start:f.startPTS,end:f.endPTS}),!0}return h},!1)){var l;if(n.fragmentError===0&&this.treatAsGap(e,n),((l=this.transmuxer)==null?void 0:l.error)===null){const h=new Error(`Found no media in fragment ${e.sn} of ${this.playlistLabel()} ${e.level} resetting transmuxer to fallback to playlist timing`);if(this.warn(h.message),this.hls.trigger(m.ERROR,{type:ce.MEDIA_ERROR,details:Y.FRAG_PARSING_ERROR,fatal:!1,error:h,frag:e,reason:`Found no media in msn ${e.sn} of ${this.playlistLabel()} "${n.url}"`}),!this.hls)return;this.resetTransmuxer()}}this.state=jt.PARSED,this.log(`Parsed ${e.type} sn: ${e.sn}${t?" part: "+t.index:""} of ${this.fragInfo(e,!1,t)})`),this.hls.trigger(m.FRAG_PARSED,{frag:e,part:t})}playlistLabel(){return this.playlistType===U.MAIN?"level":"track"}fragInfo(e,t=!0,n){var i,r;return`${this.playlistLabel()} ${e.level} (${n?"part":"frag"}:[${((i=t&&!n?e.startPTS:(n||e).start)!=null?i:NaN).toFixed(3)}-${((r=t&&!n?e.endPTS:(n||e).end)!=null?r: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 ua(a){return!!a.interstitialsController&&a.enableInterstitialPlayback!==!1}class Ba{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=Xa(e,t);else return new Uint8Array(0);return this.reset(),n}reset(){this.chunks.length=0,this.dataLength=0}}function Xa(a,e){const t=new Uint8Array(e);let n=0;for(let i=0;i<a.length;i++){const r=a[i];t.set(r,n),n+=r.length}return t}var or={exports:{}},Ma;function qa(){return Ma||(Ma=1,function(a){var e=Object.prototype.hasOwnProperty,t="~";function n(){}Object.create&&(n.prototype=Object.create(null),new n().__proto__||(t=!1));function i(h,c,f){this.fn=h,this.context=c,this.once=f||!1}function r(h,c,f,g,A){if(typeof f!="function")throw new TypeError("The listener must be a function");var I=new i(f,g||h,A),C=t?t+c:c;return h._events[C]?h._events[C].fn?h._events[C]=[h._events[C],I]:h._events[C].push(I):(h._events[C]=I,h._eventsCount++),h}function s(h,c){--h._eventsCount===0?h._events=new n:delete h._events[c]}function l(){this._events=new n,this._eventsCount=0}l.prototype.eventNames=function(){var c=[],f,g;if(this._eventsCount===0)return c;for(g in f=this._events)e.call(f,g)&&c.push(t?g.slice(1):g);return Object.getOwnPropertySymbols?c.concat(Object.getOwnPropertySymbols(f)):c},l.prototype.listeners=function(c){var f=t?t+c:c,g=this._events[f];if(!g)return[];if(g.fn)return[g.fn];for(var A=0,I=g.length,C=new Array(I);A<I;A++)C[A]=g[A].fn;return C},l.prototype.listenerCount=function(c){var f=t?t+c:c,g=this._events[f];return g?g.fn?1:g.length:0},l.prototype.emit=function(c,f,g,A,I,C){var Q=t?t+c:c;if(!this._events[Q])return!1;var Z=this._events[Q],me=arguments.length,ye,be;if(Z.fn){switch(Z.once&&this.removeListener(c,Z.fn,void 0,!0),me){case 1:return Z.fn.call(Z.context),!0;case 2:return Z.fn.call(Z.context,f),!0;case 3:return Z.fn.call(Z.context,f,g),!0;case 4:return Z.fn.call(Z.context,f,g,A),!0;case 5:return Z.fn.call(Z.context,f,g,A,I),!0;case 6:return Z.fn.call(Z.context,f,g,A,I,C),!0}for(be=1,ye=new Array(me-1);be<me;be++)ye[be-1]=arguments[be];Z.fn.apply(Z.context,ye)}else{var Ue=Z.length,Je;for(be=0;be<Ue;be++)switch(Z[be].once&&this.removeListener(c,Z[be].fn,void 0,!0),me){case 1:Z[be].fn.call(Z[be].context);break;case 2:Z[be].fn.call(Z[be].context,f);break;case 3:Z[be].fn.call(Z[be].context,f,g);break;case 4:Z[be].fn.call(Z[be].context,f,g,A);break;default:if(!ye)for(Je=1,ye=new Array(me-1);Je<me;Je++)ye[Je-1]=arguments[Je];Z[be].fn.apply(Z[be].context,ye)}}return!0},l.prototype.on=function(c,f,g){return r(this,c,f,g,!1)},l.prototype.once=function(c,f,g){return r(this,c,f,g,!0)},l.prototype.removeListener=function(c,f,g,A){var I=t?t+c:c;if(!this._events[I])return this;if(!f)return s(this,I),this;var C=this._events[I];if(C.fn)C.fn===f&&(!A||C.once)&&(!g||C.context===g)&&s(this,I);else{for(var Q=0,Z=[],me=C.length;Q<me;Q++)(C[Q].fn!==f||A&&!C[Q].once||g&&C[Q].context!==g)&&Z.push(C[Q]);Z.length?this._events[I]=Z.length===1?Z[0]:Z:s(this,I)}return this},l.prototype.removeAllListeners=function(c){var f;return c?(f=t?t+c:c,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}(or)),or.exports}var Yo=qa(),Pa=V(Yo);const ca="1.6.13",Ns={};function $a(){return typeof __HLS_WORKER_BUNDLE__=="function"}function Jo(){const a=Ns[ca];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),i={worker:new self.Worker(t),objectURL:t,clientCount:1};return Ns[ca]=i,i}function Ls(a){const e=Ns[a];if(e)return e.clientCount++,e;const t=new self.URL(a,self.location.href).href,i={worker:new self.Worker(t),scriptURL:t,clientCount:1};return Ns[a]=i,i}function eo(a){const e=Ns[a||ca];if(e&&e.clientCount--===1){const{worker:n,objectURL:i}=e;delete Ns[a||ca],i&&self.URL.revokeObjectURL(i),n.terminate()}}function Oa(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 ha(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 Qs(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 Ys(a,e){const t=e;let n=0;for(;ha(a,e);){n+=10;const i=Qs(a,e+6);n+=i,Oa(a,e+10)&&(n+=10),e+=n}if(n>0)return a.subarray(t,t+n)}function to(a,e,t,n){const i=[96e3,88200,64e3,48e3,44100,32e3,24e3,22050,16e3,12e3,11025,8e3,7350],r=e[t+2],s=r>>2&15;if(s>12){const I=new Error(`invalid ADTS sampling index:${s}`);a.emit(m.ERROR,m.ERROR,{type:ce.MEDIA_ERROR,details:Y.FRAG_PARSING_ERROR,fatal:!0,error:I,reason:I.message});return}const l=(r>>6&3)+1,h=e[t+3]>>6&3|(r&1)<<2,c="mp4a.40."+l,f=i[s];let g=s;(l===5||l===29)&&(g-=3);const A=[l<<3|(g&14)>>1,(g&1)<<7|h<<3];return se.log(`manifest codec:${n}, parsed codec:${c}, channels:${h}, rate:${f} (ADTS object type:${l} sampling index:${s})`),{config:A,samplerate:f,channelCount:h,codec:c,parsedCodec:c,manifestCodec:n}}function fa(a,e){return a[e]===255&&(a[e+1]&246)===240}function da(a,e){return a[e+1]&1?7:9}function Na(a,e){return(a[e+3]&3)<<11|a[e+4]<<3|(a[e+5]&224)>>>5}function no(a,e){return e+5<a.length}function pa(a,e){return e+1<a.length&&fa(a,e)}function Xo(a,e){return no(a,e)&&fa(a,e)&&Na(a,e)<=a.length-e}function qo(a,e){if(pa(a,e)){const t=da(a,e);if(e+t>=a.length)return!1;const n=Na(a,e);if(n<=t)return!1;const i=e+n;return i===a.length||pa(a,i)}return!1}function io(a,e,t,n,i){if(!a.samplerate){const r=to(e,t,n,i);if(!r)return;_(a,r)}}function ro(a){return 1024*9e4/a}function $o(a,e){const t=da(a,e);if(e+t<=a.length){const n=Na(a,e)-t;if(n>0)return{headerLength:t,frameLength:n}}}function so(a,e,t,n,i){const r=ro(a.samplerate),s=n+i*r,l=$o(e,t);let h;if(l){const{frameLength:g,headerLength:A}=l,I=A+g,C=Math.max(0,t+I-e.length);C?(h=new Uint8Array(I-A),h.set(e.subarray(t+A,e.length),0)):h=e.subarray(t+A,t+I);const Q={unit:h,pts:s};return C||a.samples.push(Q),{sample:Q,length:I,missing:C}}const c=e.length-t;return h=new Uint8Array(c),h.set(e.subarray(t,e.length),0),{sample:{unit:h,pts:s},length:c,missing:-1}}function el(a,e){return ha(a,e)&&Qs(a,e+6)+10<=a.length-e}function tl(a){return a instanceof ArrayBuffer?a:a.byteOffset==0&&a.byteLength==a.buffer.byteLength?a.buffer:new Uint8Array(a).buffer}function Ua(a,e=0,t=1/0){return nl(a,e,t,Uint8Array)}function nl(a,e,t,n){const i=il(a);let r=1;"BYTES_PER_ELEMENT"in n&&(r=n.BYTES_PER_ELEMENT);const s=rl(a)?a.byteOffset:0,l=(s+a.byteLength)/r,h=(s+e)/r,c=Math.floor(Math.max(0,Math.min(h,l))),f=Math.floor(Math.min(c+Math.max(t,0),l));return new n(i,c,f-c)}function il(a){return a instanceof ArrayBuffer?a:a.buffer}function rl(a){return a&&a.buffer instanceof ArrayBuffer&&a.byteLength!==void 0&&a.byteOffset!==void 0}function sl(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 i=oe(Ua(a.data,1,n)),r=a.data[2+n],s=a.data.subarray(3+n).indexOf(0);if(s===-1)return;const l=oe(Ua(a.data,3+n,s));let h;return i==="-->"?h=oe(Ua(a.data,4+n+s)):h=tl(a.data.subarray(4+n+s)),e.mimeType=i,e.pictureType=r,e.description=l,e.data=h,e}function ms(a){if(a.size<2)return;const e=oe(a.data,!0),t=new Uint8Array(a.data.subarray(e.length+1));return{key:a.type,info:e,data:t.buffer}}function al(a){if(a.size<2)return;if(a.type==="TXXX"){let t=1;const n=oe(a.data.subarray(t),!0);t+=n.length+1;const i=oe(a.data.subarray(t));return{key:a.type,info:n,data:i}}const e=oe(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=oe(a.data.subarray(t),!0);t+=n.length+1;const i=oe(a.data.subarray(t));return{key:a.type,info:n,data:i}}const e=oe(a.data);return{key:a.type,info:"",data:e}}function ao(a){return a.type==="PRIV"?ms(a):a.type[0]==="W"?ol(a):a.type==="APIC"?sl(a):al(a)}function ll(a){const e=String.fromCharCode(a[0],a[1],a[2],a[3]),t=Qs(a,4),n=10;return{type:e,size:t,data:a.subarray(n,n+t)}}const ga=10,Js=10;function ma(a){let e=0;const t=[];for(;ha(a,e);){const n=Qs(a,e+6);a[e+5]>>6&1&&(e+=ga),e+=ga;const i=e+n;for(;e+Js<i;){const r=ll(a.subarray(e)),s=ao(r);s&&t.push(s),e+=r.size+ga}Oa(a,e)&&(e+=ga)}return t}function va(a){return a&&a.key==="PRIV"&&a.info==="com.apple.streaming.transportStreamTimestamp"}function ul(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 _a(a){const e=ma(a);for(let t=0;t<e.length;t++){const n=e[t];if(va(n))return ul(n)}}let $r=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 Yr(a="",e=9e4){return{type:a,id:-1,pid:-1,inputTimeScale:e,sequenceNumber:-1,samples:[],dropped:0}}class Xs{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,i){this._id3Track={type:"id3",id:3,pid:-1,inputTimeScale:9e4,sequenceNumber:0,samples:[],dropped:0}}resetTimeStamp(e){this.initPTS=e,this.resetContiguity()}resetContiguity(){this.basePTS=null,this.lastPTS=null,this.frameIndex=0}canParse(e,t){return!1}appendFrame(e,t,n){}demux(e,t){this.cachedData&&(e=st(this.cachedData,e),this.cachedData=null);let n=Ys(e,0),i=n?n.length:0,r;const s=this._audioTrack,l=this._id3Track,h=n?_a(n):void 0,c=e.length;for((this.basePTS===null||this.frameIndex===0&&p(h))&&(this.basePTS=cl(h,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:$r.audioId3,duration:Number.POSITIVE_INFINITY});i<c;){if(this.canParse(e,i)){const f=this.appendFrame(s,e,i);f?(this.frameIndex++,this.lastPTS=f.sample.pts,i+=f.length,r=i):i=c}else el(e,i)?(n=Ys(e,i),l.samples.push({pts:this.lastPTS,dts:this.lastPTS,data:n,type:$r.audioId3,duration:Number.POSITIVE_INFINITY}),i+=n.length,r=i):i++;if(i===c&&r!==c){const f=e.slice(r);this.cachedData?this.cachedData=st(this.cachedData,f):this.cachedData=f}}return{audioTrack:s,videoTrack:Yr(),id3Track:l,textTrack:Yr()}}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:Yr(),id3Track:this._id3Track,textTrack:Yr()}}destroy(){this.cachedData=null,this._audioTrack=this._id3Track=void 0}}const cl=(a,e,t)=>{if(p(a))return a*90;const n=t?t.baseTime*9e4/t.timescale:0;return e*9e4+n};let ya=null;const hl=[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],fl=[44100,48e3,32e3,22050,24e3,16e3,11025,12e3,8e3],dl=[[0,72,144,12],[0,0,0,0],[0,72,144,12],[0,144,144,12]],pl=[0,1,1,4];function oo(a,e,t,n,i){if(t+24>e.length)return;const r=lo(e,t);if(r&&t+r.frameLength<=e.length){const s=r.samplesPerFrame*9e4/r.sampleRate,l=n+i*s,h={unit:e.subarray(t,t+r.frameLength),pts:l,dts:l};return a.config=[],a.channelCount=r.channelCount,a.samplerate=r.sampleRate,a.samples.push(h),{sample:h,length:r.frameLength,missing:0}}}function lo(a,e){const t=a[e+1]>>3&3,n=a[e+1]>>1&3,i=a[e+2]>>4&15,r=a[e+2]>>2&3;if(t!==1&&i!==0&&i!==15&&r!==3){const s=a[e+2]>>1&1,l=a[e+3]>>6,h=t===3?3-n:n===3?3:4,c=hl[h*14+i-1]*1e3,g=fl[(t===3?0:t===2?1:2)*3+r],A=l===3?1:2,I=dl[t][n],C=pl[n],Q=I*8*C,Z=Math.floor(I*c/g+s)*C;if(ya===null){const be=(navigator.userAgent||"").match(/Chrome\/(\d+)/i);ya=be?parseInt(be[1]):0}return!!ya&&ya<=87&&n===2&&c>=224e3&&l===0&&(a[e+3]=a[e+3]|128),{sampleRate:g,channelCount:A,frameLength:Z,samplesPerFrame:Q}}}function za(a,e){return a[e]===255&&(a[e+1]&224)===224&&(a[e+1]&6)!==0}function uo(a,e){return e+1<a.length&&za(a,e)}function gl(a,e){return za(a,e)&&4<=a.length-e}function co(a,e){if(e+1<a.length&&za(a,e)){const n=lo(a,e);let i=4;n!=null&&n.frameLength&&(i=n.frameLength);const r=e+i;return r===a.length||uo(a,r)}return!1}class ml extends Xs{constructor(e,t){super(),this.observer=void 0,this.config=void 0,this.observer=e,this.config=t}resetInitSegment(e,t,n,i){super.resetInitSegment(e,t,n,i),this._audioTrack={container:"audio/adts",type:"audio",id:2,pid:-1,sequenceNumber:0,segmentCodec:"aac",samples:[],manifestCodec:t,duration:i,inputTimeScale:9e4,dropped:0}}static probe(e,t){if(!e)return!1;const n=Ys(e,0);let i=(n==null?void 0:n.length)||0;if(co(e,i))return!1;for(let r=e.length;i<r;i++)if(qo(e,i))return t.log("ADTS sync word found !"),!0;return!1}canParse(e,t){return Xo(e,t)}appendFrame(e,t,n){io(e,this.observer,t,n,e.manifestCodec);const i=so(e,t,n,this.basePTS,this.frameIndex);if(i&&i.missing===0)return i}}const ho=(a,e)=>{let t=0,n=5;e+=n;const i=new Uint32Array(1),r=new Uint32Array(1),s=new Uint8Array(1);for(;n>0;){s[0]=a[e];const l=Math.min(n,8),h=8-l;r[0]=4278190080>>>24+h<<h,i[0]=(s[0]&r[0])>>h,t=t?t<<l|i[0]:i[0],e+=1,n-=l}return t};class vl extends Xs{constructor(e){super(),this.observer=void 0,this.observer=e}resetInitSegment(e,t,n,i){super.resetInitSegment(e,t,n,i),this._audioTrack={container:"audio/ac-3",type:"audio",id:2,pid:-1,sequenceNumber:0,segmentCodec:"ac3",samples:[],manifestCodec:t,duration:i,inputTimeScale:9e4,dropped:0}}canParse(e,t){return t+64<e.length}appendFrame(e,t,n){const i=fo(e,t,n,this.basePTS,this.frameIndex);if(i!==-1)return{sample:e.samples[e.samples.length-1],length:i,missing:0}}static probe(e){if(!e)return!1;const t=Ys(e,0);if(!t)return!1;const n=t.length;return e[n]===11&&e[n+1]===119&&_a(t)!==void 0&&ho(e,n)<16}}function fo(a,e,t,n,i){if(t+8>e.length||e[t]!==11||e[t+1]!==119)return-1;const r=e[t+4]>>6;if(r>=3)return-1;const l=[48e3,44100,32e3][r],h=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][h*3+r]*2;if(t+f>e.length)return-1;const g=e[t+6]>>5;let A=0;g===2?A+=2:(g&1&&g!==1&&(A+=2),g&4&&(A+=2));const I=(e[t+6]<<8|e[t+7])>>12-A&1,Q=[2,1,2,3,3,4,4,5][g]+I,Z=e[t+5]>>3,me=e[t+5]&7,ye=new Uint8Array([r<<6|Z<<1|me>>2,(me&3)<<6|g<<3|I<<2|h>>4,h<<4&224]),be=1536/l*9e4,Ue=n+i*be,Je=e.subarray(t,t+f);return a.config=ye,a.channelCount=Q,a.samplerate=l,a.samples.push({unit:Je,pts:Ue}),f}class _l extends Xs{resetInitSegment(e,t,n,i){super.resetInitSegment(e,t,n,i),this._audioTrack={container:"audio/mpeg",type:"audio",id:2,pid:-1,sequenceNumber:0,segmentCodec:"mp3",samples:[],manifestCodec:t,duration:i,inputTimeScale:9e4,dropped:0}}static probe(e){if(!e)return!1;const t=Ys(e,0);let n=(t==null?void 0:t.length)||0;if(t&&e[n]===11&&e[n+1]===119&&_a(t)!==void 0&&ho(e,n)<=16)return!1;for(let i=e.length;n<i;n++)if(co(e,n))return se.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 oo(e,t,n,this.basePTS,this.frameIndex)}}const yl=/\/emsg[-/]ID3/i;class El{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,i){const r=this.videoTrack=Yr("video",1),s=this.audioTrack=Yr("audio",1),l=this.txtTrack=Yr("text",1);if(this.id3Track=Yr("id3",1),this.timeOffset=0,!(e!=null&&e.byteLength))return;const h=ee(e);if(h.video){const{id:c,timescale:f,codec:g,supplemental:A}=h.video;r.id=c,r.timescale=l.timescale=f,r.codec=g,r.supplemental=A}if(h.audio){const{id:c,timescale:f,codec:g}=h.audio;s.id=c,s.timescale=f,s.codec=g}l.id=Jt.text,r.sampleDuration=0,r.duration=s.duration=i}resetContiguity(){this.remainderData=null}static probe(e){return F(e)}demux(e,t){this.timeOffset=t;let n=e;const i=this.videoTrack,r=this.txtTrack;if(this.config.progressive){this.remainderData&&(n=st(this.remainderData,e));const l=It(n);this.remainderData=l.remainder,i.samples=l.valid||new Uint8Array}else i.samples=n;const s=this.extractID3Track(i,t);return r.samples=ct(t,i),{videoTrack:i,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 i=this.extractID3Track(t,this.timeOffset);return n.samples=ct(e,t),{videoTrack:t,audioTrack:Yr(),id3Track:i,textTrack:Yr()}}extractID3Track(e,t){const n=this.id3Track;if(e.samples.length){const i=v(e.samples,["emsg"]);i&&i.forEach(r=>{const s=en(r);if(yl.test(s.schemeIdUri)){const l=Ea(s,t);let h=s.eventDuration===4294967295?Number.POSITIVE_INFINITY:s.eventDuration/s.timeScale;h<=.001&&(h=Number.POSITIVE_INFINITY);const c=s.payload;n.samples.push({data:c,len:c.byteLength,dts:l,pts:l,type:$r.emsg,duration:h})}else if(this.config.enableEmsgKLVMetadata&&s.schemeIdUri.startsWith("urn:misb:KLV:bin:1910.1")){const l=Ea(s,t);n.samples.push({data:s.payload,len:s.payload.byteLength,dts:l,pts:l,type:$r.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 Ea(a,e){return p(a.presentationTime)?a.presentationTime/a.timeScale:e+a.presentationTimeDelta/a.timeScale}class po{constructor(e,t,n){this.keyData=void 0,this.decrypter=void 0,this.keyData=n,this.decrypter=new Ai(t,{removePKCS7Padding:!1})}decryptBuffer(e){return this.decrypter.decrypt(e,this.keyData.key.buffer,this.keyData.iv.buffer,qn.cbc)}decryptAacSample(e,t,n){const i=e[t].unit;if(i.length<=16)return;const r=i.subarray(16,i.length-i.length%16),s=r.buffer.slice(r.byteOffset,r.byteOffset+r.length);this.decryptBuffer(s).then(l=>{const h=new Uint8Array(l);i.set(h,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 i=0;for(let r=32;r<e.length-16;r+=160,i+=16)n.set(e.subarray(r,r+16),i);return n}getAvcDecryptedUnit(e,t){const n=new Uint8Array(t);let i=0;for(let r=32;r<e.length-16;r+=160,i+=16)e.set(n.subarray(i,i+16),r);return e}decryptAvcSample(e,t,n,i,r){const s=St(r.data),l=this.getAvcEncryptedData(s);this.decryptBuffer(l.buffer).then(h=>{r.data=this.getAvcDecryptedUnit(s,h),this.decrypter.isSync()||this.decryptAvcSamples(e,t,n+1,i)}).catch(i)}decryptAvcSamples(e,t,n,i){if(e instanceof Uint8Array)throw new Error("Cannot decrypt samples of type Uint8Array");for(;;t++,n=0){if(t>=e.length){i();return}const r=e[t].units;for(;!(n>=r.length);n++){const s=r[n];if(!(s.data.length<=48||s.type!==1&&s.type!==5)&&(this.decryptAvcSample(e,t,n,i,s),!this.decrypter.isSync()))return}}}}class go{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,i;if((!n||n.units.length===0)&&(n=e[e.length-1]),(t=n)!=null&&t.units){const r=n.units;i=r[r.length-1]}return i}pushAccessUnit(e,t){if(e.units.length&&e.frame){if(e.pts===void 0){const n=t.samples,i=n.length;if(i){const r=n[i-1];e.pts=r.pts,e.dts=r.dts}else{t.dropped++;return}}t.samples.push(e)}}parseNALu(e,t,n){const i=t.byteLength;let r=e.naluState||0;const s=r,l=[];let h=0,c,f,g,A=-1,I=0;for(r===-1&&(A=0,I=this.getNALuType(t,0),r=0,h=1);h<i;){if(c=t[h++],!r){r=c?0:1;continue}if(r===1){r=c?0:2;continue}if(!c)r=3;else if(c===1){if(f=h-r-1,A>=0){const C={data:t.subarray(A,f),type:I};l.push(C)}else{const C=this.getLastNalUnit(e.samples);C&&(s&&h<=4-s&&C.state&&(C.data=C.data.subarray(0,C.data.byteLength-s)),f>0&&(C.data=st(C.data,t.subarray(0,f)),C.state=0))}h<i?(g=this.getNALuType(t,h),A=h,I=g,r=0):r=-1}else r=0}if(A>=0&&r>=0){const C={data:t.subarray(A,i),type:I,state:r};l.push(C)}if(l.length===0){const C=this.getLastNalUnit(e.samples);C&&(C.data=st(C.data,t))}return e.naluState=r,l}}class qs{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,i=new Uint8Array(4),r=Math.min(4,t);if(r===0)throw new Error("no bytes available");i.set(e.subarray(n,n+r)),this.word=new DataView(i.buffer).getUint32(0),this.bitsAvailable=r*8,this.bytesAvailable-=r}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&&se.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 Al extends go{parsePES(e,t,n,i){const r=this.parseNALu(e,n.data,i);let s=this.VideoSample,l,h=!1;n.data=null,s&&r.length&&!e.audFound&&(this.pushAccessUnit(s,e),s=this.VideoSample=this.createVideoSample(!1,n.pts,n.dts)),r.forEach(c=>{var f,g;switch(c.type){case 1:{let Q=!1;l=!0;const Z=c.data;if(h&&Z.length>4){const me=this.readSliceType(Z);(me===2||me===4||me===7||me===9)&&(Q=!0)}if(Q){var A;(A=s)!=null&&A.frame&&!s.key&&(this.pushAccessUnit(s,e),s=this.VideoSample=null)}s||(s=this.VideoSample=this.createVideoSample(!0,n.pts,n.dts)),s.frame=!0,s.key=Q;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,Lt(c.data,1,n.pts,t.samples);break}case 7:{var I,C;l=!0,h=!0;const Q=c.data,Z=this.readSPS(Q);if(!e.sps||e.width!==Z.width||e.height!==Z.height||((I=e.pixelRatio)==null?void 0:I[0])!==Z.pixelRatio[0]||((C=e.pixelRatio)==null?void 0:C[1])!==Z.pixelRatio[1]){e.width=Z.width,e.height=Z.height,e.pixelRatio=Z.pixelRatio,e.sps=[Q];const me=Q.subarray(1,4);let ye="avc1.";for(let be=0;be<3;be++){let Ue=me[be].toString(16);Ue.length<2&&(Ue="0"+Ue),ye+=Ue}e.codec=ye}break}case 8:l=!0,e.pps=[c.data];break;case 9:l=!0,e.audFound=!0,(g=s)!=null&&g.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(c)}),i&&s&&(this.pushAccessUnit(s,e),this.VideoSample=null)}getNALuType(e,t){return e[t]&31}readSliceType(e){const t=new qs(e);return t.readUByte(),t.readUEG(),t.readUEG()}skipScalingList(e,t){let n=8,i=8,r;for(let s=0;s<e;s++)i!==0&&(r=t.readEG(),i=(n+r+256)%256),n=i===0?n:i}readSPS(e){const t=new qs(e);let n=0,i=0,r=0,s=0,l,h,c;const f=t.readUByte.bind(t),g=t.readBits.bind(t),A=t.readUEG.bind(t),I=t.readBoolean.bind(t),C=t.skipBits.bind(t),Q=t.skipEG.bind(t),Z=t.skipUEG.bind(t),me=this.skipScalingList.bind(this);f();const ye=f();if(g(5),C(3),f(),Z(),ye===100||ye===110||ye===122||ye===244||ye===44||ye===83||ye===86||ye===118||ye===128){const mt=A();if(mt===3&&C(1),Z(),Z(),C(1),I())for(h=mt!==3?8:12,c=0;c<h;c++)I()&&(c<6?me(16,t):me(64,t))}Z();const be=A();if(be===0)A();else if(be===1)for(C(1),Q(),Q(),l=A(),c=0;c<l;c++)Q();Z(),C(1);const Ue=A(),Je=A(),Bt=g(1);Bt===0&&C(1),C(1),I()&&(n=A(),i=A(),r=A(),s=A());let nt=[1,1];if(I()&&I())switch(f()){case 1:nt=[1,1];break;case 2:nt=[12,11];break;case 3:nt=[10,11];break;case 4:nt=[16,11];break;case 5:nt=[40,33];break;case 6:nt=[24,11];break;case 7:nt=[20,11];break;case 8:nt=[32,11];break;case 9:nt=[80,33];break;case 10:nt=[18,11];break;case 11:nt=[15,11];break;case 12:nt=[64,33];break;case 13:nt=[160,99];break;case 14:nt=[4,3];break;case 15:nt=[3,2];break;case 16:nt=[2,1];break;case 255:{nt=[f()<<8|f(),f()<<8|f()];break}}return{width:Math.ceil((Ue+1)*16-n*2-i*2),height:(2-Bt)*(Je+1)*16-(Bt?2:4)*(r+s),pixelRatio:nt}}}class ru extends go{constructor(...e){super(...e),this.initVPS=null}parsePES(e,t,n,i){const r=this.parseNALu(e,n.data,i);let s=this.VideoSample,l,h=!1;n.data=null,s&&r.length&&!e.audFound&&(this.pushAccessUnit(s,e),s=this.VideoSample=this.createVideoSample(!1,n.pts,n.dts)),r.forEach(c=>{var f,g;switch(c.type){case 0:case 1:case 2:case 3:case 4:case 5:case 6:case 7:case 8:case 9:s||(s=this.VideoSample=this.createVideoSample(!1,n.pts,n.dts)),s.frame=!0,l=!0;break;case 16:case 17:case 18:case 21:if(l=!0,h){var A;(A=s)!=null&&A.frame&&!s.key&&(this.pushAccessUnit(s,e),s=this.VideoSample=null)}s||(s=this.VideoSample=this.createVideoSample(!0,n.pts,n.dts)),s.key=!0,s.frame=!0;break;case 19:case 20:l=!0,(f=s)!=null&&f.frame&&!s.key&&(this.pushAccessUnit(s,e),s=this.VideoSample=null),s||(s=this.VideoSample=this.createVideoSample(!0,n.pts,n.dts)),s.key=!0,s.frame=!0;break;case 39:l=!0,Lt(c.data,2,n.pts,t.samples);break;case 32:l=!0,e.vps||(typeof e.params!="object"&&(e.params={}),e.params=_(e.params,this.readVPS(c.data)),this.initVPS=c.data),e.vps=[c.data];break;case 33:if(l=!0,h=!0,e.vps!==void 0&&e.vps[0]!==this.initVPS&&e.sps!==void 0&&!this.matchSPS(e.sps[0],c.data)&&(this.initVPS=e.vps[0],e.sps=e.pps=void 0),!e.sps){const I=this.readSPS(c.data);e.width=I.width,e.height=I.height,e.pixelRatio=I.pixelRatio,e.codec=I.codecString,e.sps=[],typeof e.params!="object"&&(e.params={});for(const C in I.params)e.params[C]=I.params[C]}this.pushParameterSet(e.sps,c.data,e.vps),s||(s=this.VideoSample=this.createVideoSample(!0,n.pts,n.dts)),s.key=!0;break;case 34:if(l=!0,typeof e.params=="object"){if(!e.pps){e.pps=[];const I=this.readPPS(c.data);for(const C in I)e.params[C]=I[C]}this.pushParameterSet(e.pps,c.data,e.vps)}break;case 35:l=!0,e.audFound=!0,(g=s)!=null&&g.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(c)}),i&&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 i=0;i<e.byteLength;i++)i>=2&&e[i]===3&&e[i-1]===0&&e[i-2]===0||(t[n]=e[i],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 qs(e);t.readUByte(),t.readUByte(),t.readBits(4),t.skipBits(2),t.readBits(6);const n=t.readBits(3),i=t.readBoolean();return{numTemporalLayers:n+1,temporalIdNested:i}}readSPS(e){const t=new qs(this.ebsp2rbsp(e));t.readUByte(),t.readUByte(),t.readBits(4);const n=t.readBits(3);t.readBoolean();const i=t.readBits(2),r=t.readBoolean(),s=t.readBits(5),l=t.readUByte(),h=t.readUByte(),c=t.readUByte(),f=t.readUByte(),g=t.readUByte(),A=t.readUByte(),I=t.readUByte(),C=t.readUByte(),Q=t.readUByte(),Z=t.readUByte(),me=t.readUByte(),ye=[],be=[];for(let Zi=0;Zi<n;Zi++)ye.push(t.readBoolean()),be.push(t.readBoolean());if(n>0)for(let Zi=n;Zi<8;Zi++)t.readBits(2);for(let Zi=0;Zi<n;Zi++)ye[Zi]&&(t.readUByte(),t.readUByte(),t.readUByte(),t.readUByte(),t.readUByte(),t.readUByte(),t.readUByte(),t.readUByte(),t.readUByte(),t.readUByte(),t.readUByte()),be[Zi]&&t.readUByte();t.readUEG();const Ue=t.readUEG();Ue==3&&t.skipBits(1);const Je=t.readUEG(),Bt=t.readUEG(),nt=t.readBoolean();let mt=0,gt=0,at=0,Qt=0;nt&&(mt+=t.readUEG(),gt+=t.readUEG(),at+=t.readUEG(),Qt+=t.readUEG());const Sn=t.readUEG(),zn=t.readUEG(),Jn=t.readUEG(),jn=t.readBoolean();for(let Zi=jn?0:n;Zi<=n;Zi++)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 Xr=0;Xr<4;Xr++)for(let hs=0;hs<(Xr===3?2:6);hs++)if(!t.readBoolean())t.readUEG();else{const As=Math.min(64,1<<4+(Xr<<1));Xr>1&&t.readEG();for(let Fa=0;Fa<As;Fa++)t.readEG()}t.readBoolean(),t.readBoolean(),t.readBoolean()&&(t.readUByte(),t.skipUEG(),t.skipUEG(),t.readBoolean());const Rn=t.readUEG();let Zn=0;for(let Zi=0;Zi<Rn;Zi++){let Xr=!1;if(Zi!==0&&(Xr=t.readBoolean()),Xr){Zi===Rn&&t.readUEG(),t.readBoolean(),t.readUEG();let hs=0;for(let sa=0;sa<=Zn;sa++){const As=t.readBoolean();let Fa=!1;As||(Fa=t.readBoolean()),(As||Fa)&&hs++}Zn=hs}else{const hs=t.readUEG(),sa=t.readUEG();Zn=hs+sa;for(let As=0;As<hs;As++)t.readUEG(),t.readBoolean();for(let As=0;As<sa;As++)t.readUEG(),t.readBoolean()}}if(t.readBoolean()){const Zi=t.readUEG();for(let Xr=0;Xr<Zi;Xr++){for(let hs=0;hs<Jn+4;hs++)t.readBits(1);t.readBits(1)}}let bn=0,xn=1,Di=1,tr=!0,Ci=1,zi=0;t.readBoolean(),t.readBoolean();let Jr=!1;if(t.readBoolean()){if(t.readBoolean()){const aa=t.readUByte(),Qu=[1,12,10,16,40,24,20,32,80,18,15,64,160,4,3,2],Qo=[1,11,11,11,33,11,11,11,33,11,11,33,99,3,2,1];aa>0&&aa<16?(xn=Qu[aa-1],Di=Qo[aa-1]):aa===255&&(xn=t.readBits(16),Di=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(),Jr=t.readBoolean(),Jr&&(t.skipUEG(),t.skipUEG(),t.skipUEG(),t.skipUEG()),t.readBoolean()&&(Ci=t.readBits(32),zi=t.readBits(32),t.readBoolean()&&t.readUEG(),t.readBoolean())){const Qo=t.readBoolean(),Yu=t.readBoolean();let Qa=!1;(Qo||Yu)&&(Qa=t.readBoolean(),Qa&&(t.readUByte(),t.readBits(5),t.readBoolean(),t.readBits(5)),t.readBits(4),t.readBits(4),Qa&&t.readBits(4),t.readBits(5),t.readBits(5),t.readBits(5));for(let Ju=0;Ju<=n;Ju++){tr=t.readBoolean();const Jh=tr||t.readBoolean();let Xu=!1;Jh?t.readEG():Xu=t.readBoolean();const qu=Xu?1:t.readUEG()+1;if(Qo)for(let Ya=0;Ya<qu;Ya++)t.readUEG(),t.readUEG(),Qa&&(t.readUEG(),t.readUEG()),t.skipBits(1);if(Yu)for(let Ya=0;Ya<qu;Ya++)t.readUEG(),t.readUEG(),Qa&&(t.readUEG(),t.readUEG()),t.skipBits(1)}}t.readBoolean()&&(t.readBoolean(),t.readBoolean(),t.readBoolean(),bn=t.readUEG())}let cs=Je,Ss=Bt;if(nt){let Zi=1,Xr=1;Ue===1?Zi=Xr=2:Ue==2&&(Zi=2),cs=Je-Zi*gt-Zi*mt,Ss=Bt-Xr*Qt-Xr*at}const ra=i?["A","B","C"][i]:"",Yh=l<<24|h<<16|c<<8|f;let eu=0;for(let Zi=0;Zi<32;Zi++)eu=(eu|(Yh>>Zi&1)<<31-Zi)>>>0;let tu=eu.toString(16);return s===1&&tu==="2"&&(tu="6"),{codecString:`hvc1.${ra}${s}.${tu}.${r?"H":"L"}${me}.B0`,params:{general_tier_flag:r,general_profile_idc:s,general_profile_space:i,general_profile_compatibility_flags:[l,h,c,f],general_constraint_indicator_flags:[g,A,I,C,Q,Z],general_level_idc:me,bit_depth:Sn+8,bit_depth_luma_minus8:Sn,bit_depth_chroma_minus8:zn,min_spatial_segmentation_idc:bn,chroma_format_idc:Ue,frame_rate:{fixed:tr,fps:zi/Ci}},width:cs,height:Ss,pixelRatio:[xn,Di]}}readPPS(e){const t=new qs(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 i=t.readBoolean(),r=t.readBoolean();let s=1;return r&&i?s=0:r?s=3:i&&(s=2),{parallelismType:s}}matchSPS(e,t){return String.fromCharCode.apply(null,e).substr(3)===String.fromCharCode.apply(null,t).substr(3)}}const Tr=188;class vs{constructor(e,t,n,i){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=i,this.videoParser=null}static probe(e,t){const n=vs.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(Tr*5,t-Tr)+1,i=0;for(;i<n;){let r=!1,s=-1,l=0;for(let h=i;h<t;h+=Tr)if(e[h]===71&&(t-h===Tr||e[h+Tr]===71)){if(l++,s===-1&&(s=h,s!==0&&(n=Math.min(s+Tr*99,e.length-Tr)+1)),r||(r=ja(e,h)===0),r&&l>1&&(s===0&&l>2||h+Tr>n))return s}else{if(l)return-1;break}i++}return-1}static createTrack(e,t){return{container:e==="video"||e==="audio"?"video/mp2t":void 0,type:e,id:Jt[e],pid:-1,inputTimeScale:9e4,sequenceNumber:0,samples:[],dropped:0,duration:e==="audio"?t:void 0}}resetInitSegment(e,t,n,i){this.pmtParsed=!1,this._pmtId=-1,this._videoTrack=vs.createTrack("video"),this._videoTrack.duration=i,this._audioTrack=vs.createTrack("audio",i),this._id3Track=vs.createTrack("id3"),this._txtTrack=vs.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,i=!1){n||(this.sampleAes=null);let r;const s=this._videoTrack,l=this._audioTrack,h=this._id3Track,c=this._txtTrack;let f=s.pid,g=s.pesData,A=l.pid,I=h.pid,C=l.pesData,Q=h.pesData,Z=null,me=this.pmtParsed,ye=this._pmtId,be=e.length;if(this.remainderData&&(e=st(this.remainderData,e),be=e.length,this.remainderData=null),be<Tr&&!i)return this.remainderData=e,{audioTrack:l,videoTrack:s,id3Track:h,textTrack:c};const Ue=Math.max(0,vs.syncOffset(e));be-=(be-Ue)%Tr,be<e.byteLength&&!i&&(this.remainderData=new Uint8Array(e.buffer,be,e.buffer.byteLength-be));let Je=0;for(let nt=Ue;nt<be;nt+=Tr)if(e[nt]===71){const mt=!!(e[nt+1]&64),gt=ja(e,nt),at=(e[nt+3]&48)>>4;let Qt;if(at>1){if(Qt=nt+5+e[nt+4],Qt===nt+Tr)continue}else Qt=nt+4;switch(gt){case f:mt&&(g&&(r=Rs(g,this.logger))&&(this.readyVideoParser(s.segmentCodec),this.videoParser!==null&&this.videoParser.parsePES(s,c,r,!1)),g={data:[],size:0}),g&&(g.data.push(e.subarray(Qt,nt+Tr)),g.size+=nt+Tr-Qt);break;case A:if(mt){if(C&&(r=Rs(C,this.logger)))switch(l.segmentCodec){case"aac":this.parseAACPES(l,r);break;case"mp3":this.parseMPEGPES(l,r);break;case"ac3":this.parseAC3PES(l,r);break}C={data:[],size:0}}C&&(C.data.push(e.subarray(Qt,nt+Tr)),C.size+=nt+Tr-Qt);break;case I:mt&&(Q&&(r=Rs(Q,this.logger))&&this.parseID3PES(h,r),Q={data:[],size:0}),Q&&(Q.data.push(e.subarray(Qt,nt+Tr)),Q.size+=nt+Tr-Qt);break;case 0:mt&&(Qt+=e[Qt]+1),ye=this._pmtId=mo(e,Qt);break;case ye:{mt&&(Qt+=e[Qt]+1);const Sn=vo(e,Qt,this.typeSupported,n,this.observer,this.logger);f=Sn.videoPid,f>0&&(s.pid=f,s.segmentCodec=Sn.segmentVideoCodec),A=Sn.audioPid,A>0&&(l.pid=A,l.segmentCodec=Sn.segmentAudioCodec),I=Sn.id3Pid,I>0&&(h.pid=I),Z!==null&&!me&&(this.logger.warn(`MPEG-TS PMT found at ${nt} after unknown PID '${Z}'. Backtracking to sync byte @${Ue} to parse all TS packets.`),Z=null,nt=Ue-188),me=this.pmtParsed=!0;break}case 17:case 8191:break;default:Z=gt;break}}else Je++;Je>0&&_o(this.observer,new Error(`Found ${Je} TS packet/s that do not start with 0x47`),void 0,this.logger),s.pesData=g,l.pesData=C,h.pesData=Q;const Bt={audioTrack:l,videoTrack:s,id3Track:h,textTrack:c};return i&&this.extractRemainingSamples(Bt),Bt}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:i,textTrack:r}=e,s=n.pesData,l=t.pesData,h=i.pesData;let c;if(s&&(c=Rs(s,this.logger))?(this.readyVideoParser(n.segmentCodec),this.videoParser!==null&&(this.videoParser.parsePES(n,r,c,!0),n.pesData=null)):n.pesData=s,l&&(c=Rs(l,this.logger))){switch(t.segmentCodec){case"aac":this.parseAACPES(t,c);break;case"mp3":this.parseMPEGPES(t,c);break;case"ac3":this.parseAC3PES(t,c);break}t.pesData=null}else l!=null&&l.size&&this.logger.log("last AAC PES packet truncated,might overlap between fragments"),t.pesData=l;h&&(c=Rs(h,this.logger))?(this.parseID3PES(i,c),i.pesData=null):i.pesData=h}demuxSampleAes(e,t,n){const i=this.demux(e,n,!0,!this.config.progressive),r=this.sampleAes=new po(this.observer,this.config,t);return this.decrypt(i,r)}readyVideoParser(e){this.videoParser===null&&(e==="avc"?this.videoParser=new Al:e==="hevc"&&(this.videoParser=new ru))}decrypt(e,t){return new Promise(n=>{const{audioTrack:i,videoTrack:r}=e;i.samples&&i.segmentCodec==="aac"?t.decryptAacSamples(i.samples,0,()=>{r.samples?t.decryptAvcSamples(r.samples,0,0,()=>{n(e)}):n(e)}):r.samples&&t.decryptAvcSamples(r.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 i=this.aacOverFlow;let r=t.data;if(i){this.aacOverFlow=null;const g=i.missing,A=i.sample.unit.byteLength;if(g===-1)r=st(i.sample.unit,r);else{const I=A-g;i.sample.unit.set(r.subarray(0,g),I),e.samples.push(i.sample),n=i.missing}}let s,l;for(s=n,l=r.length;s<l-1&&!pa(r,s);s++);if(s!==n){let g;const A=s<l-1;if(A?g=`AAC PES did not start with ADTS header,offset:${s}`:g="No ADTS header found in AAC PES",_o(this.observer,new Error(g),A,this.logger),!A)return}io(e,this.observer,r,s,this.audioCodec);let h;if(t.pts!==void 0)h=t.pts;else if(i){const g=ro(e.samplerate);h=i.sample.pts+g}else{this.logger.warn("[tsdemuxer]: AAC PES unknown PTS");return}let c=0,f;for(;s<l;)if(f=so(e,r,s,h,c),s+=f.length,f.missing){this.aacOverFlow=f;break}else for(c++;s<l-1&&!pa(r,s);s++);}parseMPEGPES(e,t){const n=t.data,i=n.length;let r=0,s=0;const l=t.pts;if(l===void 0){this.logger.warn("[tsdemuxer]: MPEG PES unknown PTS");return}for(;s<i;)if(uo(n,s)){const h=oo(e,n,s,l,r);if(h)s+=h.length,r++;else break}else s++}parseAC3PES(e,t){{const n=t.data,i=t.pts;if(i===void 0){this.logger.warn("[tsdemuxer]: AC3 PES unknown PTS");return}const r=n.length;let s=0,l=0,h;for(;l<r&&(h=fo(e,n,l,i,s++))>0;)l+=h}}parseID3PES(e,t){if(t.pts===void 0){this.logger.warn("[tsdemuxer]: ID3 PES unknown PTS");return}const n=_({},t,{type:this._videoTrack?$r.emsg:$r.audioId3,duration:Number.POSITIVE_INFINITY});e.samples.push(n)}}function ja(a,e){return((a[e+1]&31)<<8)+a[e+2]}function mo(a,e){return(a[e+10]&31)<<8|a[e+11]}function vo(a,e,t,n,i,r){const s={audioPid:-1,videoPid:-1,id3Pid:-1,segmentVideoCodec:"avc",segmentAudioCodec:"aac"},l=(a[e+1]&15)<<8|a[e+2],h=e+3+l-4,c=(a[e+10]&15)<<8|a[e+11];for(e+=12+c;e<h;){const f=ja(a,e),g=(a[e+3]&15)<<8|a[e+4];switch(a[e]){case 207:if(!n){Aa("ADTS AAC",r);break}case 15:s.audioPid===-1&&(s.audioPid=f);break;case 21:s.id3Pid===-1&&(s.id3Pid=f);break;case 219:if(!n){Aa("H.264",r);break}case 27:s.videoPid===-1&&(s.videoPid=f);break;case 3:case 4:!t.mpeg&&!t.mp3?r.log("MPEG audio found, not supported in this browser"):s.audioPid===-1&&(s.audioPid=f,s.segmentAudioCodec="mp3");break;case 193:if(!n){Aa("AC-3",r);break}case 129:t.ac3?s.audioPid===-1&&(s.audioPid=f,s.segmentAudioCodec="ac3"):r.log("AC-3 audio found, not supported in this browser");break;case 6:if(s.audioPid===-1&&g>0){let A=e+5,I=g;for(;I>2;){switch(a[A]){case 106:t.ac3!==!0?r.log("AC-3 audio found, not supported in this browser for now"):(s.audioPid=f,s.segmentAudioCodec="ac3");break}const Q=a[A+1]+2;A+=Q,I-=Q}}break;case 194:case 135:return _o(i,new Error("Unsupported EC-3 in M2TS found"),void 0,r),s;case 36:s.videoPid===-1&&(s.videoPid=f,s.segmentVideoCodec="hevc",r.log("HEVC in M2TS found"));break}e+=g+5}return s}function _o(a,e,t,n){n.warn(`parsing error: ${e.message}`),a.emit(m.ERROR,m.ERROR,{type:ce.MEDIA_ERROR,details:Y.FRAG_PARSING_ERROR,fatal:!1,levelRetry:t,error:e,reason:e.message})}function Aa(a,e){e.log(`${a} with AES-128-CBC encryption found in unencrypted stream`)}function Rs(a,e){let t=0,n,i,r,s,l;const h=a.data;if(!a||a.size===0)return null;for(;h[0].length<19&&h.length>1;)h[0]=st(h[0],h[1]),h.splice(1,1);if(n=h[0],(n[0]<<16)+(n[1]<<8)+n[2]===1){if(i=(n[4]<<8)+n[5],i&&i>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),r=n[8];let g=r+9;if(a.size<=g)return null;a.size-=g;const A=new Uint8Array(a.size);for(let I=0,C=h.length;I<C;I++){n=h[I];let Q=n.byteLength;if(g)if(g>Q){g-=Q;continue}else n=n.subarray(g),Q-=g,g=0;A.set(n,t),t+=Q}return i&&(i-=r+3),{data:A,pts:s,dts:l,len:i}}return null}class yo{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 _s=Math.pow(2,32)-1;class ft{static init(){ft.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 ft.types)ft.types.hasOwnProperty(e)&&(ft.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]);ft.HDLR_TYPES={video:t,audio:n};const i=new Uint8Array([0,0,0,0,0,0,0,1,0,0,0,12,117,114,108,32,0,0,0,1]),r=new Uint8Array([0,0,0,0,0,0,0,0]);ft.STTS=ft.STSC=ft.STCO=r,ft.STSZ=new Uint8Array([0,0,0,0,0,0,0,0,0,0,0,0]),ft.VMHD=new Uint8Array([0,0,0,1,0,0,0,0,0,0,0,0]),ft.SMHD=new Uint8Array([0,0,0,0,0,0,0,0]),ft.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]),h=new Uint8Array([0,0,0,1]);ft.FTYP=ft.box(ft.types.ftyp,s,h,s,l),ft.DINF=ft.box(ft.types.dinf,ft.box(ft.types.dref,i))}static box(e,...t){let n=8,i=t.length;const r=i;for(;i--;)n+=t[i].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),i=0,n=8;i<r;i++)s.set(t[i],n),n+=t[i].byteLength;return s}static hdlr(e){return ft.box(ft.types.hdlr,ft.HDLR_TYPES[e])}static mdat(e){return ft.box(ft.types.mdat,e)}static mdhd(e,t){t*=e;const n=Math.floor(t/(_s+1)),i=Math.floor(t%(_s+1));return ft.box(ft.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,i>>24,i>>16&255,i>>8&255,i&255,85,196,0,0]))}static mdia(e){return ft.box(ft.types.mdia,ft.mdhd(e.timescale||0,e.duration||0),ft.hdlr(e.type),ft.minf(e))}static mfhd(e){return ft.box(ft.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"?ft.box(ft.types.minf,ft.box(ft.types.smhd,ft.SMHD),ft.DINF,ft.stbl(e)):ft.box(ft.types.minf,ft.box(ft.types.vmhd,ft.VMHD),ft.DINF,ft.stbl(e))}static moof(e,t,n){return ft.box(ft.types.moof,ft.mfhd(e),ft.traf(n,t))}static moov(e){let t=e.length;const n=[];for(;t--;)n[t]=ft.trak(e[t]);return ft.box.apply(null,[ft.types.moov,ft.mvhd(e[0].timescale||0,e[0].duration||0)].concat(n).concat(ft.mvex(e)))}static mvex(e){let t=e.length;const n=[];for(;t--;)n[t]=ft.trex(e[t]);return ft.box.apply(null,[ft.types.mvex,...n])}static mvhd(e,t){t*=e;const n=Math.floor(t/(_s+1)),i=Math.floor(t%(_s+1)),r=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,i>>24,i>>16&255,i>>8&255,i&255,0,1,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,64,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,255]);return ft.box(ft.types.mvhd,r)}static sdtp(e){const t=e.samples||[],n=new Uint8Array(4+t.length);let i,r;for(i=0;i<t.length;i++)r=t[i].flags,n[i+4]=r.dependsOn<<4|r.isDependedOn<<2|r.hasRedundancy;return ft.box(ft.types.sdtp,n)}static stbl(e){return ft.box(ft.types.stbl,ft.stsd(e),ft.box(ft.types.stts,ft.STTS),ft.box(ft.types.stsc,ft.STSC),ft.box(ft.types.stsz,ft.STSZ),ft.box(ft.types.stco,ft.STCO))}static avc1(e){let t=[],n=[],i,r,s;for(i=0;i<e.sps.length;i++)r=e.sps[i],s=r.byteLength,t.push(s>>>8&255),t.push(s&255),t=t.concat(Array.prototype.slice.call(r));for(i=0;i<e.pps.length;i++)r=e.pps[i],s=r.byteLength,n.push(s>>>8&255),n.push(s&255),n=n.concat(Array.prototype.slice.call(r));const l=ft.box(ft.types.avcC,new Uint8Array([1,t[3],t[4],t[5],255,224|e.sps.length].concat(t).concat([e.pps.length]).concat(n))),h=e.width,c=e.height,f=e.pixelRatio[0],g=e.pixelRatio[1];return ft.box(ft.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,h>>8&255,h&255,c>>8&255,c&255,0,72,0,0,0,72,0,0,0,0,0,0,0,1,18,100,97,105,108,121,109,111,116,105,111,110,47,104,108,115,46,106,115,0,0,0,0,0,0,0,0,0,0,0,0,0,0,24,17,17]),l,ft.box(ft.types.btrt,new Uint8Array([0,28,156,128,0,45,198,192,0,45,198,192])),ft.box(ft.types.pasp,new Uint8Array([f>>24,f>>16&255,f>>8&255,f&255,g>>24,g>>16&255,g>>8&255,g&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 ft.box(ft.types.mp4a,ft.audioStsd(e),ft.box(ft.types.esds,ft.esds(e)))}static mp3(e){return ft.box(ft.types[".mp3"],ft.audioStsd(e))}static ac3(e){return ft.box(ft.types["ac-3"],ft.audioStsd(e),ft.box(ft.types.dac3,e.config))}static stsd(e){const{segmentCodec:t}=e;if(e.type==="audio"){if(t==="aac")return ft.box(ft.types.stsd,ft.STSD,ft.mp4a(e));if(t==="ac3"&&e.config)return ft.box(ft.types.stsd,ft.STSD,ft.ac3(e));if(t==="mp3"&&e.codec==="mp3")return ft.box(ft.types.stsd,ft.STSD,ft.mp3(e))}else if(e.pps&&e.sps){if(t==="avc")return ft.box(ft.types.stsd,ft.STSD,ft.avc1(e));if(t==="hevc"&&e.vps)return ft.box(ft.types.stsd,ft.STSD,ft.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),i=e.width||0,r=e.height||0,s=Math.floor(n/(_s+1)),l=Math.floor(n%(_s+1));return ft.box(ft.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,i>>8&255,i&255,0,0,r>>8&255,r&255,0,0]))}static traf(e,t){const n=ft.sdtp(e),i=e.id,r=Math.floor(t/(_s+1)),s=Math.floor(t%(_s+1));return ft.box(ft.types.traf,ft.box(ft.types.tfhd,new Uint8Array([0,0,0,0,i>>24,i>>16&255,i>>8&255,i&255])),ft.box(ft.types.tfdt,new Uint8Array([1,0,0,0,r>>24,r>>16&255,r>>8&255,r&255,s>>24,s>>16&255,s>>8&255,s&255])),ft.trun(e,n.length+16+20+8+16+8+8),n)}static trak(e){return e.duration=e.duration||4294967295,ft.box(ft.types.trak,ft.tkhd(e),ft.mdia(e))}static trex(e){const t=e.id;return ft.box(ft.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||[],i=n.length,r=12+16*i,s=new Uint8Array(r);let l,h,c,f,g,A;for(t+=8+r,s.set([e.type==="video"?1:0,0,15,1,i>>>24&255,i>>>16&255,i>>>8&255,i&255,t>>>24&255,t>>>16&255,t>>>8&255,t&255],0),l=0;l<i;l++)h=n[l],c=h.duration,f=h.size,g=h.flags,A=h.cts,s.set([c>>>24&255,c>>>16&255,c>>>8&255,c&255,f>>>24&255,f>>>16&255,f>>>8&255,f&255,g.isLeading<<2|g.dependsOn,g.isDependedOn<<6|g.hasRedundancy<<4|g.paddingValue<<1|g.isNonSync,g.degradPrio&61440,g.degradPrio&15,A>>>24&255,A>>>16&255,A>>>8&255,A&255],12+16*l);return ft.box(ft.types.trun,s)}static initSegment(e){ft.types||ft.init();const t=ft.moov(e);return st(ft.FTYP,t)}static hvc1(e){const t=e.params,n=[e.vps,e.sps,e.pps],i=4,r=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),i-1|t.temporal_id_nested<<2|t.num_temporal_layers<<3|(t.frame_rate.fixed?64:0),n.length]);let s=r.length;for(let C=0;C<n.length;C+=1){s+=3;for(let Q=0;Q<n[C].length;Q+=1)s+=2+n[C][Q].length}const l=new Uint8Array(s);l.set(r,0),s=r.length;const h=n.length-1;for(let C=0;C<n.length;C+=1){l.set(new Uint8Array([32+C|(C===h?128:0),0,n[C].length]),s),s+=3;for(let Q=0;Q<n[C].length;Q+=1)l.set(new Uint8Array([n[C][Q].length>>8,n[C][Q].length&255]),s),s+=2,l.set(n[C][Q],s),s+=n[C][Q].length}const c=ft.box(ft.types.hvcC,l),f=e.width,g=e.height,A=e.pixelRatio[0],I=e.pixelRatio[1];return ft.box(ft.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,g>>8&255,g&255,0,72,0,0,0,72,0,0,0,0,0,0,0,1,18,100,97,105,108,121,109,111,116,105,111,110,47,104,108,115,46,106,115,0,0,0,0,0,0,0,0,0,0,0,0,0,0,24,17,17]),c,ft.box(ft.types.btrt,new Uint8Array([0,28,156,128,0,45,198,192,0,45,198,192])),ft.box(ft.types.pasp,new Uint8Array([A>>24,A>>16&255,A>>8&255,A&255,I>>24,I>>16&255,I>>8&255,I&255])))}}ft.types=void 0,ft.HDLR_TYPES=void 0,ft.STTS=void 0,ft.STSC=void 0,ft.STCO=void 0,ft.STSZ=void 0,ft.VMHD=void 0,ft.SMHD=void 0,ft.STSD=void 0,ft.FTYP=void 0,ft.DINF=void 0;const Eo=9e4;function Ka(a,e,t=1,n=!1){const i=a*e*t;return n?Math.round(i):i}function bl(a,e,t=1,n=!1){return Ka(a,e,1/t,n)}function ba(a,e=!1){return Ka(a,1e3,1/Eo,e)}function xl(a,e=1){return Ka(a,Eo,1/e)}function Ao(a){const{baseTime:e,timescale:t,trackId:n}=a;return`${e/t} (${e}/${t}) trackId: ${n}`}const wl=10*1e3,Sl=1024,su=1152,Tl=1536;let Us=null,xa=null;function bo(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 xs extends P{constructor(e,t,n,i){if(super("mp4-remuxer",i),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,Us===null){const s=(navigator.userAgent||"").match(/Chrome\/(\d+)/i);Us=s?parseInt(s[1]):0}if(xa===null){const r=navigator.userAgent.match(/Safari\/(\d+)/i);xa=r?parseInt(r[1]):0}}destroy(){this.config=this.videoTrackConfig=this._initPTS=this._initDTS=null}resetTimeStamp(e){const t=this._initPTS;(!t||!e||e.trackId!==t.trackId||e.baseTime!==t.baseTime||e.timescale!==t.timescale)&&this.log(`Reset initPTS: ${t&&Ao(t)} > ${e&&Ao(e)}`),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,i=e.reduce((r,s)=>{let l=s.pts,h=l-r;return h<-4294967296&&(t=!0,l=ns(l,n),h=l-r),h>0?r:l},n);return t&&this.debug("PTS rollover detected"),i}remux(e,t,n,i,r,s,l,h){let c,f,g,A,I,C,Q=r,Z=r;const me=e.pid>-1,ye=t.pid>-1,be=t.samples.length,Ue=e.samples.length>0,Je=l&&be>0||be>1;if((!me||Ue)&&(!ye||Je)||this.ISGenerated||l){if(this.ISGenerated){var nt,mt,gt,at;const Jn=this.videoTrackConfig;(Jn&&(t.width!==Jn.width||t.height!==Jn.height||((nt=t.pixelRatio)==null?void 0:nt[0])!==((mt=Jn.pixelRatio)==null?void 0:mt[0])||((gt=t.pixelRatio)==null?void 0:gt[1])!==((at=Jn.pixelRatio)==null?void 0:at[1]))||!Jn&&Je||this.nextAudioTs===null&&Ue)&&this.resetInitSegment()}this.ISGenerated||(g=this.generateIS(e,t,r,s));const Qt=this.isVideoContiguous;let Sn=-1,zn;if(Je&&(Sn=xo(t.samples),!Qt&&this.config.forceKeyFrameOnDiscontinuity))if(C=!0,Sn>0){this.warn(`Dropped ${Sn} out of ${be} video samples due to a missing keyframe`);const Jn=this.getVideoStartPts(t.samples);t.samples=t.samples.slice(Sn),t.dropped+=Sn,Z+=(t.samples[0].pts-Jn)/t.inputTimeScale,zn=Z}else Sn===-1&&(this.warn(`No keyframe found out of ${be} video samples`),C=!1);if(this.ISGenerated){if(Ue&&Je){const Jn=this.getVideoStartPts(t.samples),pn=(ns(e.samples[0].pts,Jn)-Jn)/t.inputTimeScale;Q+=Math.max(0,pn),Z+=Math.max(0,-pn)}if(Ue){if(e.samplerate||(this.warn("regenerate InitSegment as audio detected"),g=this.generateIS(e,t,r,s)),f=this.remuxAudio(e,Q,this.isAudioContiguous,s,ye||Je||h===U.AUDIO?Z:void 0),Je){const Jn=f?f.endPTS-f.startPTS:0;t.inputTimeScale||(this.warn("regenerate InitSegment as video detected"),g=this.generateIS(e,t,r,s)),c=this.remuxVideo(t,Z,Qt,Jn)}}else Je&&(c=this.remuxVideo(t,Z,Qt,0));c&&(c.firstKeyFrame=Sn,c.independent=Sn!==-1,c.firstKeyFramePTS=zn)}}return this.ISGenerated&&this._initPTS&&this._initDTS&&(n.samples.length&&(I=wo(n,r,this._initPTS,this._initDTS)),i.samples.length&&(A=Ga(i,r,this._initPTS))),{audio:f,video:c,initSegment:g,independent:C,text:A,id3:I}}computeInitPts(e,t,n,i){const r=Math.round(n*t);let s=ns(e,r);if(s<r+t)for(this.log(`Adjusting PTS for rollover in timeline near ${(r-s)/t} ${i}`);s<r+t;)s+=8589934592;return s-r}generateIS(e,t,n,i){const r=e.samples,s=t.samples,l=this.typeSupported,h={},c=this._initPTS;let f=!c||i,g="audio/mp4",A,I,C,Q=-1;if(f&&(A=I=1/0),e.config&&r.length){switch(e.timescale=e.samplerate,e.segmentCodec){case"mp3":l.mpeg?(g="audio/mpeg",e.codec=""):l.mp3&&(e.codec="mp3");break;case"ac3":e.codec="ac-3";break}h.audio={id:"audio",container:g,codec:e.codec,initSegment:e.segmentCodec==="mp3"&&l.mpeg?new Uint8Array(0):ft.initSegment([e]),metadata:{channelCount:e.channelCount}},f&&(Q=e.id,C=e.inputTimeScale,!c||C!==c.timescale?A=I=this.computeInitPts(r[0].pts,C,n,"audio"):f=!1)}if(t.sps&&t.pps&&s.length){if(t.timescale=t.inputTimeScale,h.video={id:"main",container:"video/mp4",codec:t.codec,initSegment:ft.initSegment([t]),metadata:{width:t.width,height:t.height}},f)if(Q=t.id,C=t.inputTimeScale,!c||C!==c.timescale){const Z=this.getVideoStartPts(s),me=ns(s[0].dts,Z),ye=this.computeInitPts(me,C,n,"video"),be=this.computeInitPts(Z,C,n,"video");I=Math.min(I,ye),A=Math.min(A,be)}else f=!1;this.videoTrackConfig={width:t.width,height:t.height,pixelRatio:t.pixelRatio}}if(Object.keys(h).length)return this.ISGenerated=!0,f?(c&&this.warn(`Timestamps at playlist time: ${i?"":"~"}${n} ${A/C} != initPTS: ${c.baseTime/c.timescale} (${c.baseTime}/${c.timescale}) trackId: ${c.trackId}`),this.log(`Found initPTS at playlist time: ${n} offset: ${A/C} (${A}/${C}) trackId: ${Q}`),this._initPTS={baseTime:A,timescale:C,trackId:Q},this._initDTS={baseTime:I,timescale:C,trackId:Q}):A=C=void 0,{tracks:h,initPTS:A,timescale:C,trackId:Q}}remuxVideo(e,t,n,i){const r=e.inputTimeScale,s=e.samples,l=[],h=s.length,c=this._initPTS,f=c.baseTime*r/c.timescale;let g=this.nextVideoTs,A=8,I=this.videoSampleDuration,C,Q,Z=Number.POSITIVE_INFINITY,me=Number.NEGATIVE_INFINITY,ye=!1;if(!n||g===null){const bn=f+t*r,xn=s[0].pts-ns(s[0].dts,s[0].pts);Us&&g!==null&&Math.abs(bn-xn-(g+f))<15e3?n=!0:g=bn-xn-f}const be=g+f;for(let bn=0;bn<h;bn++){const xn=s[bn];xn.pts=ns(xn.pts,be),xn.dts=ns(xn.dts,be),xn.dts<s[bn>0?bn-1:bn].dts&&(ye=!0)}ye&&s.sort(function(bn,xn){const Di=bn.dts-xn.dts,tr=bn.pts-xn.pts;return Di||tr}),C=s[0].dts,Q=s[s.length-1].dts;const Ue=Q-C,Je=Ue?Math.round(Ue/(h-1)):I||e.inputTimeScale/30;if(n){const bn=C-be,xn=bn>Je,Di=bn<-1;if((xn||Di)&&(xn?this.warn(`${(e.segmentCodec||"").toUpperCase()}: ${ba(bn,!0)} ms (${bn}dts) hole between fragments detected at ${t.toFixed(3)}`):this.warn(`${(e.segmentCodec||"").toUpperCase()}: ${ba(-bn,!0)} ms (${bn}dts) overlapping between fragments detected at ${t.toFixed(3)}`),!Di||be>=s[0].pts||Us)){C=be;const tr=s[0].pts-bn;if(xn)s[0].dts=C,s[0].pts=tr;else{let Ci=!0;for(let zi=0;zi<s.length&&!(s[zi].dts>tr&&Ci);zi++){const Jr=s[zi].pts;if(s[zi].dts-=bn,s[zi].pts-=bn,zi<s.length-1){const jr=s[zi+1].pts,cs=s[zi].pts,Ss=jr<=cs,ra=jr<=Jr;Ci=Ss==ra}}}this.log(`Video: Initial PTS/DTS adjusted: ${ba(tr,!0)}/${ba(C,!0)}, delta: ${ba(bn,!0)} ms`)}}C=Math.max(0,C);let Bt=0,nt=0,mt=C;for(let bn=0;bn<h;bn++){const xn=s[bn],Di=xn.units,tr=Di.length;let Ci=0;for(let zi=0;zi<tr;zi++)Ci+=Di[zi].data.length;nt+=Ci,Bt+=tr,xn.length=Ci,xn.dts<mt?(xn.dts=mt,mt+=Je/4|0||1):mt=xn.dts,Z=Math.min(xn.pts,Z),me=Math.max(xn.pts,me)}Q=s[h-1].dts;const gt=nt+4*Bt+8;let at;try{at=new Uint8Array(gt)}catch(bn){this.observer.emit(m.ERROR,m.ERROR,{type:ce.MUX_ERROR,details:Y.REMUX_ALLOC_ERROR,fatal:!1,error:bn,bytes:gt,reason:`fail allocating video mdat ${gt}`});return}const Qt=new DataView(at.buffer);Qt.setUint32(0,gt),at.set(ft.types.mdat,4);let Sn=!1,zn=Number.POSITIVE_INFINITY,Jn=Number.POSITIVE_INFINITY,jn=Number.NEGATIVE_INFINITY,pn=Number.NEGATIVE_INFINITY;for(let bn=0;bn<h;bn++){const xn=s[bn],Di=xn.units;let tr=0;for(let Jr=0,jr=Di.length;Jr<jr;Jr++){const cs=Di[Jr],Ss=cs.data,ra=cs.data.byteLength;Qt.setUint32(A,ra),A+=4,at.set(Ss,A),A+=ra,tr+=4+ra}let Ci;if(bn<h-1)I=s[bn+1].dts-xn.dts,Ci=s[bn+1].pts-xn.pts;else{const Jr=this.config,jr=bn>0?xn.dts-s[bn-1].dts:Je;if(Ci=bn>0?xn.pts-s[bn-1].pts:Je,Jr.stretchShortVideoTrack&&this.nextAudioTs!==null){const cs=Math.floor(Jr.maxBufferHole*r),Ss=(i?Z+i*r:this.nextAudioTs+f)-xn.pts;Ss>cs?(I=Ss-jr,I<0?I=jr:Sn=!0,this.log(`It is approximately ${Ss/90} ms to the next segment; using duration ${I/90} ms for the last video frame.`)):I=jr}else I=jr}const zi=Math.round(xn.pts-xn.dts);zn=Math.min(zn,I),jn=Math.max(jn,I),Jn=Math.min(Jn,Ci),pn=Math.max(pn,Ci),l.push(bo(xn.key,I,tr,zi))}if(l.length){if(Us){if(Us<70){const bn=l[0].flags;bn.dependsOn=2,bn.isNonSync=0}}else if(xa&&pn-Jn<jn-zn&&Je/jn<.025&&l[0].cts===0){this.warn("Found irregular gaps in sample duration. Using PTS instead of DTS to determine MP4 sample duration.");let bn=C;for(let xn=0,Di=l.length;xn<Di;xn++){const tr=bn+l[xn].duration,Ci=bn+l[xn].cts;if(xn<Di-1){const zi=tr+l[xn+1].cts;l[xn].duration=zi-Ci}else l[xn].duration=xn?l[xn-1].duration:Je;l[xn].cts=0,bn=tr}}}I=Sn||!I?Je:I;const Gn=Q+I;this.nextVideoTs=g=Gn-f,this.videoSampleDuration=I,this.isVideoContiguous=!0;const ci={data1:ft.moof(e.sequenceNumber++,C,_(e,{samples:l})),data2:at,startPTS:(Z-f)/r,endPTS:(me+I-f)/r,startDTS:(C-f)/r,endDTS:g/r,type:"video",hasAudio:!1,hasVideo:!0,nb:l.length,dropped:e.dropped};return e.samples=[],e.dropped=0,ci}getSamplesPerFrame(e){switch(e.segmentCodec){case"mp3":return su;case"ac3":return Tl;default:return Sl}}remuxAudio(e,t,n,i,r){const s=e.inputTimeScale,l=e.samplerate?e.samplerate:s,h=s/l,c=this.getSamplesPerFrame(e),f=c*h,g=this._initPTS,A=e.segmentCodec==="mp3"&&this.typeSupported.mpeg,I=[],C=r!==void 0;let Q=e.samples,Z=A?0:8,me=this.nextAudioTs||-1;const ye=g.baseTime*s/g.timescale,be=ye+t*s;if(this.isAudioContiguous=n=n||Q.length&&me>0&&(i&&Math.abs(be-(me+ye))<9e3||Math.abs(ns(Q[0].pts,be)-(me+ye))<20*f),Q.forEach(function(pn){pn.pts=ns(pn.pts,be)}),!n||me<0){const pn=Q.length;if(Q=Q.filter(Gn=>Gn.pts>=0),pn!==Q.length&&this.warn(`Removed ${Q.length-pn} of ${pn} samples (initPTS ${ye} / ${s})`),!Q.length)return;r===0?me=0:i&&!C?me=Math.max(0,be-ye):me=Q[0].pts-ye}if(e.segmentCodec==="aac"){const pn=this.config.maxAudioFramesDrift;for(let Gn=0,Rn=me+ye;Gn<Q.length;Gn++){const Zn=Q[Gn],ci=Zn.pts,bn=ci-Rn,xn=Math.abs(1e3*bn/s);if(bn<=-pn*f&&C)Gn===0&&(this.warn(`Audio frame @ ${(ci/s).toFixed(3)}s overlaps marker by ${Math.round(1e3*bn/s)} ms.`),this.nextAudioTs=me=ci-ye,Rn=ci);else if(bn>=pn*f&&xn<wl&&C){let Di=Math.round(bn/f);for(Rn=ci-Di*f;Rn<0&&Di&&f;)Di--,Rn+=f;Gn===0&&(this.nextAudioTs=me=Rn-ye),this.warn(`Injecting ${Di} audio frames @ ${((Rn-ye)/s).toFixed(3)}s due to ${Math.round(1e3*bn/s)} ms gap.`);for(let tr=0;tr<Di;tr++){let Ci=yo.getSilentFrame(e.parsedCodec||e.manifestCodec||e.codec,e.channelCount);Ci||(this.log("Unable to get silent frame for given audio codec; duplicating last frame instead."),Ci=Zn.unit.subarray()),Q.splice(Gn,0,{unit:Ci,pts:Rn}),Rn+=f,Gn++}}Zn.pts=Rn,Rn+=f}}let Ue=null,Je=null,Bt,nt=0,mt=Q.length;for(;mt--;)nt+=Q[mt].unit.byteLength;for(let pn=0,Gn=Q.length;pn<Gn;pn++){const Rn=Q[pn],Zn=Rn.unit;let ci=Rn.pts;if(Je!==null){const xn=I[pn-1];xn.duration=Math.round((ci-Je)/h)}else if(n&&e.segmentCodec==="aac"&&(ci=me+ye),Ue=ci,nt>0){nt+=Z;try{Bt=new Uint8Array(nt)}catch(xn){this.observer.emit(m.ERROR,m.ERROR,{type:ce.MUX_ERROR,details:Y.REMUX_ALLOC_ERROR,fatal:!1,error:xn,bytes:nt,reason:`fail allocating audio mdat ${nt}`});return}A||(new DataView(Bt.buffer).setUint32(0,nt),Bt.set(ft.types.mdat,4))}else return;Bt.set(Zn,Z);const bn=Zn.byteLength;Z+=bn,I.push(bo(!0,c,bn,0)),Je=ci}const gt=I.length;if(!gt)return;const at=I[I.length-1];me=Je-ye,this.nextAudioTs=me+h*at.duration;const Qt=A?new Uint8Array(0):ft.moof(e.sequenceNumber++,Ue/h,_({},e,{samples:I}));e.samples=[];const Sn=(Ue-ye)/s,zn=me/s,jn={data1:Qt,data2:Bt,startPTS:Sn,endPTS:zn,startDTS:Sn,endDTS:zn,type:"audio",hasAudio:!0,hasVideo:!1,nb:gt};return this.isAudioContiguous=!0,jn}}function ns(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 xo(a){for(let e=0;e<a.length;e++)if(a[e].key)return e;return-1}function wo(a,e,t,n){const i=a.samples.length;if(!i)return;const r=a.inputTimeScale;for(let l=0;l<i;l++){const h=a.samples[l];h.pts=ns(h.pts-t.baseTime*r/t.timescale,e*r)/r,h.dts=ns(h.dts-n.baseTime*r/n.timescale,e*r)/r}const s=a.samples;return a.samples=[],{samples:s}}function Ga(a,e,t){const n=a.samples.length;if(!n)return;const i=a.inputTimeScale;for(let s=0;s<n;s++){const l=a.samples[s];l.pts=ns(l.pts-t.baseTime*i/t.timescale,e*i)/i}a.samples.sort((s,l)=>s.pts-l.pts);const r=a.samples;return a.samples=[],{samples:r}}class So extends P{constructor(e,t,n,i){super("passthrough-remuxer",i),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,i){this.audioCodec=t,this.videoCodec=n,this.generateInitSegment(e,i),this.emitInitSegment=!0}generateInitSegment(e,t){let{audioCodec:n,videoCodec:i}=this;if(!(e!=null&&e.byteLength)){this.initTracks=void 0,this.initData=void 0;return}const{audio:r,video:s}=this.initData=ee(e);if(t)lt(e,t);else{const h=r||s;h!=null&&h.encrypted&&this.warn(`Init segment with encrypted track with has no key ("${h.codec}")!`)}r&&(n=Do(r,W.AUDIO,this)),s&&(i=Do(s,W.VIDEO,this));const l={};r&&s?l.audiovideo={container:"video/mp4",codec:n+","+i,supplemental:s.supplemental,encrypted:s.encrypted,initSegment:e,id:"main"}:r?l.audio={container:"audio/mp4",codec:n,encrypted:r.encrypted,initSegment:e,id:"audio"}:s?l.video={container:"video/mp4",codec:i,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,i,r,s){var l,h;let{initPTS:c,lastEndTime:f}=this;const g={audio:void 0,video:void 0,text:i,id3:n,initSegment:void 0};p(f)||(f=this.lastEndTime=r||0);const A=t.samples;if(!A.length)return g;const I={initPTS:void 0,timescale:void 0,trackId:void 0};let C=this.initData;if((l=C)!=null&&l.length||(this.generateInitSegment(A),C=this.initData),!((h=C)!=null&&h.length))return this.warn("Failed to generate initSegment."),g;this.emitInitSegment&&(I.tracks=this.initTracks,this.emitInitSegment=!1);const Q=At(A,C,this),Z=C.audio?Q[C.audio.id]:null,me=C.video?Q[C.video.id]:null,ye=$s(me,1/0),be=$s(Z,1/0),Ue=$s(me,0,!0),Je=$s(Z,0,!0);let Bt=r,nt=0;const mt=Z&&(!me||!c&&be<ye||c&&c.trackId===C.audio.id),gt=mt?Z:me;if(gt){const Rn=gt.timescale,Zn=gt.start-r*Rn,ci=mt?C.audio.id:C.video.id;Bt=gt.start/Rn,nt=mt?Je-be:Ue-ye,(s||!c)&&(To(c,Bt,r,nt)||Rn!==c.timescale)&&(c&&this.warn(`Timestamps at playlist time: ${s?"":"~"}${r} ${Zn/Rn} != initPTS: ${c.baseTime/c.timescale} (${c.baseTime}/${c.timescale}) trackId: ${c.trackId}`),this.log(`Found initPTS at playlist time: ${r} offset: ${Bt-r} (${Zn}/${Rn}) trackId: ${ci}`),c=null,I.initPTS=Zn,I.timescale=Rn,I.trackId=ci)}else this.warn(`No audio or video samples found for initPTS at playlist time: ${r}`);c?(I.initPTS=c.baseTime,I.timescale=c.timescale,I.trackId=c.trackId):((!I.timescale||I.trackId===void 0||I.initPTS===void 0)&&(this.warn("Could not set initPTS"),I.initPTS=Bt,I.timescale=1,I.trackId=-1),this.initPTS=c={baseTime:I.initPTS,timescale:I.timescale,trackId:I.trackId});const at=Bt-c.baseTime/c.timescale,Qt=at+nt;nt>0?this.lastEndTime=Qt:(this.warn("Duration parsed from mp4 should be greater than zero"),this.resetNextTimestamp());const Sn=!!C.audio,zn=!!C.video;let Jn="";Sn&&(Jn+="audio"),zn&&(Jn+="video");const jn=(C.audio?C.audio.encrypted:!1)||(C.video?C.video.encrypted:!1),pn={data1:A,startPTS:at,startDTS:at,endPTS:Qt,endDTS:Qt,type:Jn,hasAudio:Sn,hasVideo:zn,nb:1,dropped:0,encrypted:jn};g.audio=Sn&&!zn?pn:void 0,g.video=zn?pn:void 0;const Gn=me==null?void 0:me.sampleCount;if(Gn){const Rn=me.keyFrameIndex,Zn=Rn!==-1;pn.nb=Gn,pn.dropped=Rn===0||this.isVideoContiguous?0:Zn?Rn:Gn,pn.independent=Zn,pn.firstKeyFrame=Rn,Zn&&me.keyFrameStart&&(pn.firstKeyFramePTS=(me.keyFrameStart-c.baseTime)/c.timescale),this.isVideoContiguous||(g.independent=Zn),this.isVideoContiguous||(this.isVideoContiguous=Zn),pn.dropped&&this.warn(`fmp4 does not start with IDR: firstIDR ${Rn}/${Gn} dropped: ${pn.dropped} start: ${pn.firstKeyFramePTS||"NA"}`)}return g.initSegment=I,g.id3=wo(n,r,c,c),i.samples.length&&(g.text=Ga(i,r,c)),g}}function $s(a,e,t=!1){return(a==null?void 0:a.start)!==void 0?(a.start+(t?a.duration:0))/a.timescale:e}function To(a,e,t,n){if(a===null)return!0;const i=Math.max(n,1),r=e-a.baseTime/a.timescale;return Math.abs(r-t)>i}function Do(a,e,t){const n=a.codec;return n&&n.length>4?n:e===W.AUDIO?n==="ec-3"||n==="ac-3"||n==="alac"?n:n==="fLaC"||n==="Opus"?Ye(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 wa=[{demux:El,remux:So},{demux:vs,remux:xs},{demux:ml,remux:xs},{demux:_l,remux:xs}];wa.splice(2,0,{demux:vl,remux:xs});class Dl{constructor(e,t,n,i,r,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=r,this.logger=s}configure(e){this.transmuxConfig=e,this.decrypter&&this.decrypter.reset()}push(e,t,n,i){const r=n.transmuxing;r.executeStart=us();let s=new Uint8Array(e);const{currentTransmuxState:l,transmuxConfig:h}=this;i&&(this.currentTransmuxState=i);const{contiguous:c,discontinuity:f,trackSwitch:g,accurateTimeOffset:A,timeOffset:I,initSegmentChange:C}=i||l,{audioCodec:Q,videoCodec:Z,defaultInitPts:me,duration:ye,initSegmentData:be}=h,Ue=Io(s,t);if(Ue&&Er(Ue.method)){const mt=this.getDecrypter(),gt=Ir(Ue.method);if(mt.isSync()){let at=mt.softwareDecrypt(s,Ue.key.buffer,Ue.iv.buffer,gt);if(n.part>-1){const Sn=mt.flush();at=Sn&&Sn.buffer}if(!at)return r.executeEnd=us(),Ha(n);s=new Uint8Array(at)}else return this.asyncResult=!0,this.decryptionPromise=mt.webCryptoDecrypt(s,Ue.key.buffer,Ue.iv.buffer,gt).then(at=>{const Qt=this.push(at,null,n);return this.decryptionPromise=null,Qt}),this.decryptionPromise}const Je=this.needsProbing(f,g);if(Je){const mt=this.configureTransmuxer(s);if(mt)return this.logger.warn(`[transmuxer] ${mt.message}`),this.observer.emit(m.ERROR,m.ERROR,{type:ce.MEDIA_ERROR,details:Y.FRAG_PARSING_ERROR,fatal:!1,error:mt,reason:mt.message}),r.executeEnd=us(),Ha(n)}(f||g||C||Je)&&this.resetInitSegment(be,Q,Z,ye,t),(f||C||Je)&&this.resetInitialTimestamp(me),c||this.resetContiguity();const Bt=this.transmux(s,Ue,I,A,n);this.asyncResult=Rr(Bt);const nt=this.currentTransmuxState;return nt.contiguous=!0,nt.discontinuity=!1,nt.trackSwitch=!1,r.executeEnd=us(),Bt}flush(e){const t=e.transmuxing;t.executeStart=us();const{decrypter:n,currentTransmuxState:i,decryptionPromise:r}=this;if(r)return this.asyncResult=!0,r.then(()=>this.flush(e));const s=[],{timeOffset:l}=i;if(n){const g=n.flush();g&&s.push(this.push(g.buffer,null,e))}const{demuxer:h,remuxer:c}=this;if(!h||!c){t.executeEnd=us();const g=[Ha(e)];return this.asyncResult?Promise.resolve(g):g}const f=h.flush(l);return Rr(f)?(this.asyncResult=!0,f.then(g=>(this.flushRemux(s,g,e),s))):(this.flushRemux(s,f,e),this.asyncResult?Promise.resolve(s):s)}flushRemux(e,t,n){const{audioTrack:i,videoTrack:r,id3Track:s,textTrack:l}=t,{accurateTimeOffset:h,timeOffset:c}=this.currentTransmuxState;this.logger.log(`[transmuxer.ts]: Flushed ${this.id} sn: ${n.sn}${n.part>-1?" part: "+n.part:""} of ${this.id===U.MAIN?"level":"track"} ${n.level}`);const f=this.remuxer.remux(i,r,s,l,c,h,!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,i,r){const{demuxer:s,remuxer:l}=this;!s||!l||(s.resetInitSegment(e,t,n,i),l.resetInitSegment(e,t,n,r))}destroy(){this.demuxer&&(this.demuxer.destroy(),this.demuxer=void 0),this.remuxer&&(this.remuxer.destroy(),this.remuxer=void 0)}transmux(e,t,n,i,r){let s;return t&&t.method==="SAMPLE-AES"?s=this.transmuxSampleAes(e,t,n,i,r):s=this.transmuxUnencrypted(e,n,i,r),s}transmuxUnencrypted(e,t,n,i){const{audioTrack:r,videoTrack:s,id3Track:l,textTrack:h}=this.demuxer.demux(e,t,!1,!this.config.progressive);return{remuxResult:this.remuxer.remux(r,s,l,h,t,n,!1,this.id),chunkMeta:i}}transmuxSampleAes(e,t,n,i,r){return this.demuxer.demuxSampleAes(e,t,n).then(s=>({remuxResult:this.remuxer.remux(s.audioTrack,s.videoTrack,s.id3Track,s.textTrack,n,i,!1,this.id),chunkMeta:r}))}configureTransmuxer(e){const{config:t,observer:n,typeSupported:i}=this;let r;for(let g=0,A=wa.length;g<A;g++){var s;if((s=wa[g].demux)!=null&&s.probe(e,this.logger)){r=wa[g];break}}if(!r)return new Error("Failed to find demuxer by probing fragment data");const l=this.demuxer,h=this.remuxer,c=r.remux,f=r.demux;(!h||!(h instanceof c))&&(this.remuxer=new c(n,t,i,this.logger)),(!l||!(l instanceof f))&&(this.demuxer=new f(n,t,i,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 Ai(this.config)),e}}function Io(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 Ha=a=>({remuxResult:{},chunkMeta:a});function Rr(a){return"then"in a&&a.then instanceof Function}class Va{constructor(e,t,n,i,r){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=i,this.defaultInitPts=r||null}}class Co{constructor(e,t,n,i,r,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=i,this.timeOffset=r,this.initSegmentChange=s}}let Sa=0;class ea{constructor(e,t,n,i){this.error=null,this.hls=void 0,this.id=void 0,this.instanceNo=Sa++,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=h=>{const c=h.data,f=this.hls;if(!(!f||!(c!=null&&c.event)||c.instanceNo!==this.instanceNo))switch(c.event){case"init":{var g;const A=(g=this.workerContext)==null?void 0:g.objectURL;A&&self.URL.revokeObjectURL(A);break}case"transmuxComplete":{this.handleTransmuxComplete(c.data);break}case"flush":{this.onFlush(c.data);break}case"workerLog":{f.logger[c.data.logType]&&f.logger[c.data.logType](c.data.message);break}default:{c.data=c.data||{},c.data.frag=this.frag,c.data.part=this.part,c.data.id=this.id,f.trigger(c.event,c.data);break}}},this.onWorkerError=h=>{if(!this.hls)return;const c=new Error(`${h.message} (${h.filename}:${h.lineno})`);this.hls.config.enableWorker=!1,this.hls.logger.warn(`Error in "${this.id}" Web Worker, fallback to inline`),this.hls.trigger(m.ERROR,{type:ce.OTHER_ERROR,details:Y.INTERNAL_EXCEPTION,fatal:!1,event:"demuxerWorker",error:c})};const r=e.config;this.hls=e,this.id=t,this.useWorker=!!r.enableWorker,this.onTransmuxComplete=n,this.onFlush=i;const s=(h,c)=>{c=c||{},c.frag=this.frag||void 0,h===m.ERROR&&(c=c,c.parent=this.id,c.part=this.part,this.error=c.error),this.hls.trigger(h,c)};this.observer=new Pa,this.observer.on(m.FRAG_DECRYPTED,s),this.observer.on(m.ERROR,s);const l=Nt(r.preferManagedMediaSource);if(this.useWorker&&typeof Worker!="undefined"){const h=this.hls.logger;if(r.workerPath||$a()){try{r.workerPath?(h.log(`loading Web Worker ${r.workerPath} for "${t}"`),this.workerContext=Ls(r.workerPath)):(h.log(`injecting Web Worker for "${t}"`),this.workerContext=Jo());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:ut(r)})}catch(f){h.warn(`Error setting up "${t}" Web Worker, fallback to inline`,f),this.terminateWorker(),this.error=null,this.transmuxer=new Dl(this.observer,l,r,"",t,e.logger)}return}}this.transmuxer=new Dl(this.observer,l,r,"",t,e.logger)}reset(){if(this.frag=null,this.part=null,this.workerContext){const e=this.instanceNo;this.instanceNo=Sa++;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:ut(t)})}}terminateWorker(){if(this.workerContext){const{worker:e}=this.workerContext;this.workerContext=null,e.removeEventListener("message",this.onWorkerMessage),e.removeEventListener("error",this.onWorkerError),eo(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,i,r,s,l,h,c,f){var g,A;c.transmuxing.start=self.performance.now();const{instanceNo:I,transmuxer:C}=this,Q=s?s.start:r.start,Z=r.decryptdata,me=this.frag,ye=!(me&&r.cc===me.cc),be=!(me&&c.level===me.level),Ue=me?c.sn-me.sn:-1,Je=this.part?c.part-this.part.index:-1,Bt=Ue===0&&c.id>1&&c.id===(me==null?void 0:me.stats.chunkCount),nt=!be&&(Ue===1||Ue===0&&(Je===1||Bt&&Je<=0)),mt=self.performance.now();(be||Ue||r.stats.parsing.start===0)&&(r.stats.parsing.start=mt),s&&(Je||!nt)&&(s.stats.parsing.start=mt);const gt=!(me&&((g=r.initSegment)==null?void 0:g.url)===((A=me.initSegment)==null?void 0:A.url)),at=new Co(ye,nt,h,be,Q,gt);if(!nt||ye||gt){this.hls.logger.log(`[transmuxer-interface]: Starting new transmux session for ${r.type} sn: ${c.sn}${c.part>-1?" part: "+c.part:""} ${this.id===U.MAIN?"level":"track"}: ${c.level} id: ${c.id}
discontinuity: ${ye}
trackSwitch: ${be}
contiguous: ${nt}
accurateTimeOffset: ${h}
timeOffset: ${Q}
initSegmentChange: ${gt}`);const Qt=new Va(n,i,t,l,f);this.configureTransmuxer(Qt)}if(this.frag=r,this.part=s,this.workerContext)this.workerContext.worker.postMessage({instanceNo:I,cmd:"demux",data:e,decryptdata:Z,chunkMeta:c,state:at},e instanceof ArrayBuffer?[e]:[]);else if(C){const Qt=C.push(e,Z,c,at);Rr(Qt)?Qt.then(Sn=>{this.handleTransmuxComplete(Sn)}).catch(Sn=>{this.transmuxerError(Sn,c,"transmuxer-interface push error")}):this.handleTransmuxComplete(Qt)}}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 i=n.flush(e);Rr(i)?i.then(r=>{this.handleFlushResult(r,e)}).catch(r=>{this.transmuxerError(r,e,"transmuxer-interface flush error")}):this.handleFlushResult(i,e)}}transmuxerError(e,t,n){this.hls&&(this.error=e,this.hls.trigger(m.ERROR,{type:ce.MEDIA_ERROR,details:Y.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 Ta=100;class Il extends la{constructor(e,t,n){super(e,t,n,"audio-stream-controller",U.AUDIO),this.mainAnchor=null,this.mainFragLoading=null,this.audioOnly=!1,this.bufferedTrack=null,this.switchingTrack=null,this.trackId=-1,this.waitingData=null,this.mainDetails=null,this.flushing=!1,this.bufferFlushed=!1,this.cachedTrackLoadedData=null,this.registerListeners()}onHandlerDestroying(){this.unregisterListeners(),super.onHandlerDestroying(),this.resetItem()}resetItem(){this.mainDetails=this.mainAnchor=this.mainFragLoading=this.bufferedTrack=this.switchingTrack=this.waitingData=this.cachedTrackLoadedData=null}registerListeners(){super.registerListeners();const{hls:e}=this;e.on(m.LEVEL_LOADED,this.onLevelLoaded,this),e.on(m.AUDIO_TRACKS_UPDATED,this.onAudioTracksUpdated,this),e.on(m.AUDIO_TRACK_SWITCHING,this.onAudioTrackSwitching,this),e.on(m.AUDIO_TRACK_LOADED,this.onAudioTrackLoaded,this),e.on(m.BUFFER_RESET,this.onBufferReset,this),e.on(m.BUFFER_CREATED,this.onBufferCreated,this),e.on(m.BUFFER_FLUSHING,this.onBufferFlushing,this),e.on(m.BUFFER_FLUSHED,this.onBufferFlushed,this),e.on(m.INIT_PTS_FOUND,this.onInitPtsFound,this),e.on(m.FRAG_LOADING,this.onFragLoading,this),e.on(m.FRAG_BUFFERED,this.onFragBuffered,this)}unregisterListeners(){const{hls:e}=this;e&&(super.unregisterListeners(),e.off(m.LEVEL_LOADED,this.onLevelLoaded,this),e.off(m.AUDIO_TRACKS_UPDATED,this.onAudioTracksUpdated,this),e.off(m.AUDIO_TRACK_SWITCHING,this.onAudioTrackSwitching,this),e.off(m.AUDIO_TRACK_LOADED,this.onAudioTrackLoaded,this),e.off(m.BUFFER_RESET,this.onBufferReset,this),e.off(m.BUFFER_CREATED,this.onBufferCreated,this),e.off(m.BUFFER_FLUSHING,this.onBufferFlushing,this),e.off(m.BUFFER_FLUSHED,this.onBufferFlushed,this),e.off(m.INIT_PTS_FOUND,this.onInitPtsFound,this),e.off(m.FRAG_LOADING,this.onFragLoading,this),e.off(m.FRAG_BUFFERED,this.onFragBuffered,this))}onInitPtsFound(e,{frag:t,id:n,initPTS:i,timescale:r,trackId:s}){if(n===U.MAIN){const l=t.cc,h=this.fragCurrent;if(this.initPTS[l]={baseTime:i,timescale:r,trackId:s},this.log(`InitPTS for cc: ${l} found from main: ${i/r} (${i}/${r}) trackId: ${s}`),this.mainAnchor=t,this.state===jt.WAITING_INIT_PTS){const c=this.waitingData;(!c&&!this.loadingParts||c&&c.frag.cc!==l)&&this.syncWithAnchor(t,c==null?void 0:c.frag)}else!this.hls.hasEnoughToStart&&h&&h.cc!==l?(h.abortRequests(),this.syncWithAnchor(t,h)):this.state===jt.IDLE&&this.tick()}}getLoadPosition(){return!this.startFragRequested&&this.nextLoadPosition>=0?this.nextLoadPosition:super.getLoadPosition()}syncWithAnchor(e,t){var n;const i=((n=this.mainFragLoading)==null?void 0:n.frag)||null;if(t&&(i==null?void 0:i.cc)===t.cc)return;const r=(i||e).cc,s=this.getLevelDetails(),l=this.getLoadPosition(),h=_t(s,r,l);h&&(this.log(`Syncing with main frag at ${h.start} cc ${h.cc}`),this.startFragRequested=!1,this.nextLoadPosition=h.start,this.resetLoadingState(),this.state===jt.IDLE&&this.doTickIdle())}startLoad(e,t){if(!this.levels){this.startPosition=e,this.state=jt.STOPPED;return}const n=this.lastCurrentTime;this.stopLoad(),this.setInterval(Ta),n>0&&e===-1?(this.log(`Override startPosition with lastCurrentTime @${n.toFixed(3)}`),e=n,this.state=jt.IDLE):this.state=jt.WAITING_TRACK,this.nextLoadPosition=this.lastCurrentTime=e+this.timelineOffset,this.startPosition=t?-1:e,this.tick()}doTick(){switch(this.state){case jt.IDLE:this.doTickIdle();break;case jt.WAITING_TRACK:{const{levels:e,trackId:t}=this,n=e==null?void 0:e[t],i=n==null?void 0:n.details;if(i&&!this.waitForLive(n)){if(this.waitForCdnTuneIn(i))break;this.state=jt.WAITING_INIT_PTS}break}case jt.FRAG_LOADING_WAITING_RETRY:{this.checkRetryDate();break}case jt.WAITING_INIT_PTS:{const e=this.waitingData;if(e){const{frag:t,part:n,cache:i,complete:r}=e,s=this.mainAnchor;if(this.initPTS[t.cc]!==void 0){this.waitingData=null,this.state=jt.FRAG_LOADING;const l=i.flush().buffer,h={frag:t,part:n,payload:l,networkDetails:null};this._handleFragmentLoadProgress(h),r&&super._handleFragmentLoadComplete(h)}else s&&s.cc!==e.frag.cc&&this.syncWithAnchor(s,e.frag)}else this.state=jt.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:i,trackId:r}=this,s=t.config;if(!this.buffering||!i&&!this.primaryPrefetch&&(this.startFragRequested||!s.startFragPrefetch)||!(n!=null&&n[r]))return;const l=n[r],h=l.details;if(!h||this.waitForLive(l)||this.waitForCdnTuneIn(h)){this.state=jt.WAITING_TRACK,this.startFragRequested=!1;return}const c=this.mediaBuffer?this.mediaBuffer:this.media;this.bufferFlushed&&c&&(this.bufferFlushed=!1,this.afterBufferFlushed(c,W.AUDIO,U.AUDIO));const f=this.getFwdBufferInfo(c,U.AUDIO);if(f===null)return;if(!this.switchingTrack&&this._streamEnded(f,h)){t.trigger(m.BUFFER_EOS,{type:"audio"}),this.state=jt.ENDED;return}const g=f.len,A=t.maxBufferLength,I=h.fragments,C=I[0].start,Q=this.getLoadPosition(),Z=this.flushing?Q:f.end;if(this.switchingTrack&&i){const be=Q;h.PTSKnown&&be<C&&(f.end>C||f.nextStart)&&(this.log("Alt audio track ahead of main track, seek to start of alt audio track"),i.currentTime=C+.05)}if(g>=A&&!this.switchingTrack&&Z<I[I.length-1].start)return;let me=this.getNextFragment(Z,h);if(me&&this.isLoopLoading(me,Z)&&(me=this.getNextFragmentLoopLoading(me,h,f,U.MAIN,A)),!me){this.bufferFlushed=!0;return}let ye=((e=this.mainFragLoading)==null?void 0:e.frag)||null;if(!this.audioOnly&&this.startFragRequested&&ye&&ke(me)&&!me.endList&&(!h.live||!this.loadingParts&&Z<this.hls.liveSyncPosition)&&(this.fragmentTracker.getState(ye)===Cn.OK&&(this.mainFragLoading=ye=null),ye&&ke(ye))){if(me.start>ye.end){const Ue=this.fragmentTracker.getFragAtPos(Z,U.MAIN);Ue&&Ue.end>ye.end&&(ye=Ue,this.mainFragLoading={frag:Ue,targetBufferTime:null})}if(me.start>ye.end)return}this.loadFragment(me,l,Z)}onMediaDetaching(e,t){this.bufferFlushed=this.flushing=!1,super.onMediaDetaching(e,t)}onAudioTracksUpdated(e,{audioTracks:t}){this.resetTransmuxer(),this.levels=t.map(n=>new Xn(n))}onAudioTrackSwitching(e,t){const n=!!t.url;this.trackId=t.id;const{fragCurrent:i}=this;i&&(i.abortRequests(),this.removeUnbufferedFrags(i.start)),this.resetLoadingState(),n?(this.switchingTrack=t,this.flushAudioIfNeeded(t),this.state!==jt.STOPPED&&(this.setInterval(Ta),this.state=jt.IDLE,this.tick())):(this.resetTransmuxer(),this.switchingTrack=null,this.bufferedTrack=t,this.clearInterval())}onManifestLoading(){super.onManifestLoading(),this.bufferFlushed=this.flushing=this.audioOnly=!1,this.resetItem(),this.trackId=-1}onLevelLoaded(e,t){this.mainDetails=t.details;const n=this.cachedTrackLoadedData;n&&(this.cachedTrackLoadedData=null,this.onAudioTrackLoaded(m.AUDIO_TRACK_LOADED,n))}onAudioTrackLoaded(e,t){var n;const{levels:i}=this,{details:r,id:s,groupId:l,track:h}=t;if(!i){this.warn(`Audio tracks reset while loading track ${s} "${h.name}" of "${l}"`);return}const c=this.mainDetails;if(!c||r.endCC>c.endCC||c.expired){this.cachedTrackLoadedData=t,this.state!==jt.STOPPED&&(this.state=jt.WAITING_TRACK);return}this.cachedTrackLoadedData=null,this.log(`Audio track ${s} "${h.name}" of "${l}" loaded [${r.startSN},${r.endSN}]${r.lastPartSn?`[part-${r.lastPartSn}-${r.lastPartIndex}]`:""},duration:${r.totalduration}`);const f=i[s];let g=0;if(r.live||(n=f.details)!=null&&n.live){if(this.checkLiveUpdate(r),r.deltaUpdateFailed)return;if(f.details){var A;g=this.alignPlaylists(r,f.details,(A=this.levelLastLoaded)==null?void 0:A.details)}r.alignedSliding||(Cs(r,c),r.alignedSliding||ks(r,c),g=r.fragmentStart)}f.details=r,this.levelLastLoaded=f,this.startFragRequested||this.setStartPosition(c,g),this.hls.trigger(m.AUDIO_TRACK_UPDATED,{details:r,id:s,groupId:t.groupId}),this.state===jt.WAITING_TRACK&&!this.waitForCdnTuneIn(r)&&(this.state=jt.IDLE),this.tick()}_handleFragmentLoadProgress(e){var t;const n=e.frag,{part:i,payload:r}=e,{config:s,trackId:l,levels:h}=this;if(!h){this.warn(`Audio tracks were reset while fragment load was in progress. Fragment ${n.sn} of level ${n.level} will not be buffered`);return}const c=h[l];if(!c){this.warn("Audio track is undefined on fragment load progress");return}const f=c.details;if(!f){this.warn("Audio track details undefined on fragment load progress"),this.removeUnbufferedFrags(n.start);return}const g=s.defaultAudioCodec||c.audioCodec||"mp4a.40.2";let A=this.transmuxer;A||(A=this.transmuxer=new ea(this.hls,U.AUDIO,this._handleTransmuxComplete.bind(this),this._handleTransmuxerFlush.bind(this)));const I=this.initPTS[n.cc],C=(t=n.initSegment)==null?void 0:t.data;if(I!==void 0){const Z=i?i.index:-1,me=Z!==-1,ye=new Ji(n.level,n.sn,n.stats.chunkCount,r.byteLength,Z,me);A.push(r,C,g,"",n,i,f.totalduration,!1,ye,I)}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:Q}=this.waitingData=this.waitingData||{frag:n,part:i,cache:new Ba,complete:!1};Q.push(new Uint8Array(r)),this.state!==jt.STOPPED&&(this.state=jt.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===U.MAIN&&ke(t.frag)&&(this.mainFragLoading=t,this.state===jt.IDLE&&this.tick())}onFragBuffered(e,t){const{frag:n,part:i}=t;if(n.type!==U.AUDIO){!this.audioOnly&&n.type===U.MAIN&&!n.elementaryStreams.video&&!n.elementaryStreams.audiovideo&&(this.audioOnly=!0,this.mainFragLoading=null);return}if(this.fragContextChanged(n)){this.warn(`Fragment ${n.sn}${i?" p: "+i.index:""} of level ${n.level} finished buffering, but was aborted. state: ${this.state}, audioSwitch: ${this.switchingTrack?this.switchingTrack.name:"false"}`);return}if(ke(n)){this.fragPrevious=n;const r=this.switchingTrack;r&&(this.bufferedTrack=r,this.switchingTrack=null,this.hls.trigger(m.AUDIO_TRACK_SWITCHED,E({},r)))}this.fragBufferedComplete(n,i),this.media&&this.tick()}onError(e,t){var n;if(t.fatal){this.state=jt.ERROR;return}switch(t.details){case Y.FRAG_GAP:case Y.FRAG_PARSING_ERROR:case Y.FRAG_DECRYPT_ERROR:case Y.FRAG_LOAD_ERROR:case Y.FRAG_LOAD_TIMEOUT:case Y.KEY_LOAD_ERROR:case Y.KEY_LOAD_TIMEOUT:this.onFragmentOrKeyLoadError(U.AUDIO,t);break;case Y.AUDIO_TRACK_LOAD_ERROR:case Y.AUDIO_TRACK_LOAD_TIMEOUT:case Y.LEVEL_PARSING_ERROR:!t.levelRetry&&this.state===jt.WAITING_TRACK&&((n=t.context)==null?void 0:n.type)===ve.AUDIO_TRACK&&(this.state=jt.IDLE);break;case Y.BUFFER_ADD_CODEC_ERROR:case Y.BUFFER_APPEND_ERROR:if(t.parent!=="audio")return;this.reduceLengthAndFlushBuffer(t)||this.resetLoadingState();break;case Y.BUFFER_FULL_ERROR:if(t.parent!=="audio")return;this.reduceLengthAndFlushBuffer(t)&&(this.bufferedTrack=null,super.flushMainBuffer(0,Number.POSITIVE_INFINITY,"audio"));break;case Y.INTERNAL_EXCEPTION:this.recoverWorkerError(t);break}}onBufferFlushing(e,{type:t}){t!==W.VIDEO&&(this.flushing=!0)}onBufferFlushed(e,{type:t}){if(t!==W.VIDEO){this.flushing=!1,this.bufferFlushed=!0,this.state===jt.ENDED&&(this.state=jt.IDLE);const n=this.mediaBuffer||this.media;n&&(this.afterBufferFlushed(n,t,U.AUDIO),this.tick())}}_handleTransmuxComplete(e){var t;const n="audio",{hls:i}=this,{remuxResult:r,chunkMeta:s}=e,l=this.getCurrentContext(s);if(!l){this.resetWhenMissingContext(s);return}const{frag:h,part:c,level:f}=l,{details:g}=f,{audio:A,text:I,id3:C,initSegment:Q}=r;if(this.fragContextChanged(h)||!g){this.fragmentTracker.removeFragment(h);return}if(this.state=jt.PARSING,this.switchingTrack&&A&&this.completeAudioSwitch(this.switchingTrack),Q!=null&&Q.tracks){const Z=h.initSegment||h;if(this.unhandledEncryptionError(Q,h))return;this._bufferInitSegment(f,Q.tracks,Z,s),i.trigger(m.FRAG_PARSING_INIT_SEGMENT,{frag:Z,id:n,tracks:Q.tracks})}if(A){const{startPTS:Z,endPTS:me,startDTS:ye,endDTS:be}=A;c&&(c.elementaryStreams[W.AUDIO]={startPTS:Z,endPTS:me,startDTS:ye,endDTS:be}),h.setElementaryStreamInfo(W.AUDIO,Z,me,ye,be),this.bufferFragmentData(A,h,c,s)}if(C!=null&&(t=C.samples)!=null&&t.length){const Z=_({id:n,frag:h,details:g},C);i.trigger(m.FRAG_PARSING_METADATA,Z)}if(I){const Z=_({id:n,frag:h,details:g},I);i.trigger(m.FRAG_PARSING_USERDATA,Z)}}_bufferInitSegment(e,t,n,i){if(this.state!==jt.PARSING||(t.video&&delete t.video,t.audiovideo&&delete t.audiovideo,!t.audio))return;const r=t.audio;r.id=U.AUDIO;const s=e.audioCodec;this.log(`Init audio buffer, container:${r.container}, codecs[level/parsed]=[${s}/${r.codec}]`),s&&s.split(",").length===1&&(r.levelCodec=s),this.hls.trigger(m.BUFFER_CODECS,t);const l=r.initSegment;if(l!=null&&l.byteLength){const h={type:"audio",frag:n,part:null,chunkMeta:i,parent:n.type,data:l};this.hls.trigger(m.BUFFER_APPENDING,h)}this.tickImmediate()}loadFragment(e,t,n){const i=this.fragmentTracker.getState(e);if(this.switchingTrack||i===Cn.NOT_LOADED||i===Cn.PARTIAL){var r;if(!ke(e))this._loadInitSegment(e,t);else if((r=t.details)!=null&&r.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=jt.WAITING_INIT_PTS;const s=this.mainDetails;s&&s.fragmentStart!==t.details.fragmentStart&&ks(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:i,characteristics:r,audioCodec:s,channels:l}=this.bufferedTrack;ln({name:t,lang:n,assocLang:i,characteristics:r,audioCodec:s,channels:l},e,An)||(G(e.url,this.hls)?(this.log("Switching audio track : flushing all audio"),super.flushMainBuffer(0,Number.POSITIVE_INFINITY,"audio"),this.bufferedTrack=null):this.bufferedTrack=e)}}completeAudioSwitch(e){const{hls:t}=this;this.flushAudioIfNeeded(e),this.bufferedTrack=e,this.switchingTrack=null,t.trigger(m.AUDIO_TRACK_SWITCHED,E({},e))}}class Wa extends P{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 i=t==null?void 0:t.renditionReports;if(i){let r=-1;for(let s=0;s<i.length;s++){const l=i[s];let h;try{h=new self.URL(l.URI,t.url).href}catch(c){this.warn(`Could not construct new URL for Rendition Report: ${c}`),h=l.URI||""}if(h===e){r=s;break}else h===e.substring(0,h.length)&&(r=s)}if(r!==-1){const s=i[r],l=parseInt(s["LAST-MSN"])||t.lastPartSn;let h=parseInt(s["LAST-PART"])||t.lastPartIndex;if(this.hls.config.lowLatencyMode){const f=Math.min(t.age-t.partTarget,t.targetduration);h>=0&&f>t.partTarget&&(h+=1)}const c=n&&Yi(n);return new Qn(l,h>=0?h:void 0,c)}}}loadPlaylist(e){this.clearTimer()}loadingPlaylist(e,t){this.clearTimer()}shouldLoadPlaylist(e){return this.canLoad&&!!e&&!!e.url&&(!e.details||e.details.live)}getUrlWithDirectives(e,t){if(t)try{return t.addDirectives(e)}catch(n){this.warn(`Could not construct new URL with HLS Delivery Directives: ${n}`)}return e}playlistLoaded(e,t,n){const{details:i,stats:r}=t,s=self.performance.now(),l=r.loading.first?Math.max(0,s-r.loading.first):0;i.advancedDateTime=Date.now()-l;const h=this.hls.config.timelineOffset;if(h!==i.appliedTimelineOffset){const f=Math.max(h||0,0);i.appliedTimelineOffset=f,i.fragments.forEach(g=>{g.setStart(g.playlistOffset+f)})}if(i.live||n!=null&&n.live){const f="levelInfo"in t?t.levelInfo:t.track;if(i.reloaded(n),n&&i.fragments.length>0){Cr(n,i,this);const ye=i.playlistParsingError;if(ye){this.warn(ye);const be=this.hls;if(!be.config.ignorePlaylistParsingErrors){var c;const{networkDetails:Ue}=t;be.trigger(m.ERROR,{type:ce.NETWORK_ERROR,details:Y.LEVEL_PARSING_ERROR,fatal:!1,url:i.url,error:ye,reason:ye.message,level:t.level||void 0,parent:(c=i.fragments[0])==null?void 0:c.type,networkDetails:Ue,stats:r});return}i.playlistParsingError=null}}i.requestScheduled===-1&&(i.requestScheduled=r.loading.start);const g=this.hls.mainForwardBufferInfo,A=g?g.end-g.len:0,I=(i.edge-A)*1e3,C=ar(i,I);if(i.requestScheduled+C<s?i.requestScheduled=s:i.requestScheduled+=C,this.log(`live playlist ${e} ${i.advanced?"REFRESHED "+i.lastPartSn+"-"+i.lastPartIndex:i.updated?"UPDATED":"MISSED"}`),!this.canLoad||!i.live)return;let Q,Z,me;if(i.canBlockReload&&i.endSN&&i.advanced){const ye=this.hls.config.lowLatencyMode,be=i.lastPartSn,Ue=i.endSN,Je=i.lastPartIndex,Bt=Je!==-1,nt=be===Ue;Bt?nt?(Z=Ue+1,me=ye?0:Je):(Z=be,me=ye?Je+1:i.maxPartIndex):Z=Ue+1;const mt=i.age,gt=mt+i.ageHeader;let at=Math.min(gt-i.partTarget,i.targetduration*1.5);if(at>0){if(gt>i.targetduration*3)this.log(`Playlist last advanced ${mt.toFixed(2)}s ago. Omitting segment and part directives.`),Z=void 0,me=void 0;else if(n!=null&&n.tuneInGoal&&gt-i.partTarget>n.tuneInGoal)this.warn(`CDN Tune-in goal increased from: ${n.tuneInGoal} to: ${at} with playlist age: ${i.age}`),at=0;else{const Qt=Math.floor(at/i.targetduration);if(Z+=Qt,me!==void 0){const Sn=Math.round(at%i.targetduration/i.partTarget);me+=Sn}this.log(`CDN Tune-in age: ${i.ageHeader}s last advanced ${mt.toFixed(2)}s goal: ${at} skip sn ${Qt} to part ${me}`)}i.tuneInGoal=at}if(Q=this.getDeliveryDirectives(i,t.deliveryDirectives,Z,me),ye||!nt){i.requestScheduled=s,this.loadingPlaylist(f,Q);return}}else(i.canBlockReload||i.canSkipUntil)&&(Q=this.getDeliveryDirectives(i,t.deliveryDirectives,Z,me));Q&&Z!==void 0&&i.canBlockReload&&(i.requestScheduled=r.loading.first+Math.max(C-l*2,C/2)),this.scheduleLoading(f,Q,i)}else this.clearTimer()}scheduleLoading(e,t,n){const i=n||e.details;if(!i){this.loadingPlaylist(e,t);return}const r=self.performance.now(),s=i.requestScheduled;if(r>=s){this.loadingPlaylist(e,t);return}const l=s-r;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,i){let r=Yi(e);return t!=null&&t.skip&&e.deltaUpdateFailed&&(n=t.msn,i=t.part,r=wi.No),new Qn(n,i,r)}checkRetry(e){const t=e.details,n=Ce(e),i=e.errorAction,{action:r,retryCount:s=0,retryConfig:l}=i||{},h=!!i&&!!l&&(r===on.RetryRequest||!i.resolved&&r===on.SendAlternateToPenaltyBox);if(h){var c;if(s>=l.maxNumRetry)return!1;if(n&&(c=e.context)!=null&&c.deliveryDirectives)this.warn(`Retrying playlist loading ${s+1}/${l.maxNumRetry} after "${t}" without delivery-directives`),this.loadPlaylist();else{const f=un(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,i.resolved=!0}return h}}function ko(a,e){if(a.length!==e.length)return!1;for(let t=0;t<a.length;t++)if(!Da(a[t].attrs,e[t].attrs))return!1;return!0}function Da(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(i=>a[i]!==e[i])}function Ia(a,e){return e.label.toLowerCase()===a.name.toLowerCase()&&(!e.language||e.language.toLowerCase()===(a.lang||"").toLowerCase())}class Cl extends Wa{constructor(e){super(e,"audio-track-controller"),this.tracks=[],this.groupIds=null,this.tracksInGroup=[],this.trackId=-1,this.currentTrack=null,this.selectDefaultTrack=!0,this.registerListeners()}registerListeners(){const{hls:e}=this;e.on(m.MANIFEST_LOADING,this.onManifestLoading,this),e.on(m.MANIFEST_PARSED,this.onManifestParsed,this),e.on(m.LEVEL_LOADING,this.onLevelLoading,this),e.on(m.LEVEL_SWITCHING,this.onLevelSwitching,this),e.on(m.AUDIO_TRACK_LOADED,this.onAudioTrackLoaded,this),e.on(m.ERROR,this.onError,this)}unregisterListeners(){const{hls:e}=this;e.off(m.MANIFEST_LOADING,this.onManifestLoading,this),e.off(m.MANIFEST_PARSED,this.onManifestParsed,this),e.off(m.LEVEL_LOADING,this.onLevelLoading,this),e.off(m.LEVEL_SWITCHING,this.onLevelSwitching,this),e.off(m.AUDIO_TRACK_LOADED,this.onAudioTrackLoaded,this),e.off(m.ERROR,this.onError,this)}destroy(){this.unregisterListeners(),this.tracks.length=0,this.tracksInGroup.length=0,this.currentTrack=null,super.destroy()}onManifestLoading(){this.tracks=[],this.tracksInGroup=[],this.groupIds=null,this.currentTrack=null,this.trackId=-1,this.selectDefaultTrack=!0}onManifestParsed(e,t){this.tracks=t.audioTracks||[]}onAudioTrackLoaded(e,t){const{id:n,groupId:i,details:r}=t,s=this.tracksInGroup[n];if(!s||s.groupId!==i){this.warn(`Audio track with id:${n} and group:${i} 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:${i} loaded [${r.startSN}-${r.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,i=this.groupIds;let r=this.currentTrack;if(!n||(i==null?void 0:i.length)!==(n==null?void 0:n.length)||n!=null&&n.some(l=>(i==null?void 0:i.indexOf(l))===-1)){this.groupIds=n,this.trackId=-1,this.currentTrack=null;const l=this.tracks.filter(A=>!n||n.indexOf(A.groupId)!==-1);if(l.length)this.selectDefaultTrack&&!l.some(A=>A.default)&&(this.selectDefaultTrack=!1),l.forEach((A,I)=>{A.id=I});else if(!r&&!this.tracksInGroup.length)return;this.tracksInGroup=l;const h=this.hls.config.audioPreference;if(!r&&h){const A=sn(h,l,An);if(A>-1)r=l[A];else{const I=sn(h,this.tracks);r=this.tracks[I]}}let c=this.findTrackId(r);c===-1&&r&&(c=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(m.AUDIO_TRACKS_UPDATED,f);const g=this.trackId;if(c!==-1&&g===-1)this.setAudioTrack(c);else if(l.length&&g===-1){var s;const A=new Error(`No audio track selected for current audio group-ID(s): ${(s=this.groupIds)==null?void 0:s.join(",")} track count: ${l.length}`);this.warn(A.message),this.hls.trigger(m.ERROR,{type:ce.MEDIA_ERROR,details:Y.AUDIO_TRACK_LOAD_ERROR,fatal:!0,error:A})}}}onError(e,t){t.fatal||!t.context||t.context.type===ve.AUDIO_TRACK&&t.context.id===this.trackId&&(!this.groupIds||this.groupIds.indexOf(t.context.groupId)!==-1)&&this.checkRetry(t)}get allAudioTracks(){return this.tracks}get audioTracks(){return this.tracksInGroup}get audioTrack(){return this.trackId}set audioTrack(e){this.selectDefaultTrack=!1,this.setAudioTrack(e)}setAudioOption(e){const t=this.hls;if(t.config.audioPreference=e,e){const n=this.allAudioTracks;if(this.selectDefaultTrack=!1,n.length){const i=this.currentTrack;if(i&&ln(e,i,An))return i;const r=sn(e,this.tracksInGroup,An);if(r>-1){const s=this.tracksInGroup[r];return this.setAudioTrack(r),s}else if(i){let s=t.loadLevel;s===-1&&(s=t.firstAutoLevel);const l=Hn(e,t.levels,n,s,An);if(l===-1)return null;t.nextLoadLevel=l}if(e.channels||e.audioCodec){const s=sn(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,i=t[e],r=i.details&&!i.details.live;if(e===this.trackId&&i===n&&r||(this.log(`Switching to audio-track ${e} "${i.name}" lang:${i.lang} group:${i.groupId} channels:${i.channels}`),this.trackId=e,this.currentTrack=i,this.hls.trigger(m.AUDIO_TRACK_SWITCHING,E({},i)),r))return;const s=this.switchParams(i.url,n==null?void 0:n.details,i.details);this.loadPlaylist(s)}findTrackId(e){const t=this.tracksInGroup;for(let n=0;n<t.length;n++){const i=t[n];if(!(this.selectDefaultTrack&&!i.default)&&(!e||ln(e,i,An)))return n}if(e){const{name:n,lang:i,assocLang:r,characteristics:s,audioCodec:l,channels:h}=e;for(let c=0;c<t.length;c++){const f=t[c];if(ln({name:n,lang:i,assocLang:r,characteristics:s,audioCodec:l,channels:h},f,An))return c}for(let c=0;c<t.length;c++){const f=t[c];if(Da(e.attrs,f.attrs,["LANGUAGE","ASSOC-LANGUAGE","CHARACTERISTICS"]))return c}for(let c=0;c<t.length;c++){const f=t[c];if(Da(e.attrs,f.attrs,["LANGUAGE"]))return c}}return-1}loadPlaylist(e){super.loadPlaylist();const t=this.currentTrack;this.shouldLoadPlaylist(t)&&G(t.url,this.hls)&&this.scheduleLoading(t,e)}loadingPlaylist(e,t){super.loadingPlaylist(e,t);const n=e.id,i=e.groupId,r=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:${i}${(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:""):""} ${r}`),this.hls.trigger(m.AUDIO_TRACK_LOADING,{url:r,id:n,groupId:i,deliveryDirectives:t||null,track:e})}}class kl{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 i=this.queues[t];i.push(e),i.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 i=t[0];try{i.execute()}catch(r){var n;if(i.onError(r),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],i=n==null?void 0:n.buffer;return i?`SourceBuffer${i.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 Lo=/(avc[1234]|hvc1|hev1|dvh[1e]|vp09|av01)(?:\.[^.,]+)+/,Ro="HlsJsTrackRemovedError";class Fo extends Error{constructor(e){super(e),this.name=Ro}}class Ll extends P{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 i;this.hls&&((i=this.mediaSource)==null?void 0:i.readyState)==="open"&&this.hls.pauseBuffering()},this._onStartStreaming=n=>{this.hls&&this.hls.resumeBuffering()},this._onMediaSourceOpen=n=>{const{media:i,mediaSource:r}=this;n&&this.log("Media source opened"),!(!i||!r)&&(r.removeEventListener("sourceopen",this._onMediaSourceOpen),i.removeEventListener("emptied",this._onMediaEmptied),this.updateDuration(),this.hls.trigger(m.MEDIA_ATTACHED,{media:i,mediaSource:r}),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:i}=this;n!==i&&this.error(`Media element src was set while attaching MediaSource (${i} > ${n})`)},this.hls=e,this.fragmentTracker=t,this.appendSource=de(we(e.config.preferManagedMediaSource)),this.initTracks(),this.registerListeners()}hasSourceTypes(){return Object.keys(this.tracks).length>0}destroy(){this.unregisterListeners(),this.details=null,this.lastMpegAudioChunk=this.blockedAudioAppend=null,this.transferData=this.overrides=void 0,this.operationQueue&&(this.operationQueue.destroy(),this.operationQueue=null),this.hls=this.fragmentTracker=null,this._onMediaSourceOpen=this._onMediaSourceClose=null,this._onMediaSourceEnded=null,this._onStartStreaming=this._onEndStreaming=null}registerListeners(){const{hls:e}=this;e.on(m.MEDIA_ATTACHING,this.onMediaAttaching,this),e.on(m.MEDIA_DETACHING,this.onMediaDetaching,this),e.on(m.MANIFEST_LOADING,this.onManifestLoading,this),e.on(m.MANIFEST_PARSED,this.onManifestParsed,this),e.on(m.BUFFER_RESET,this.onBufferReset,this),e.on(m.BUFFER_APPENDING,this.onBufferAppending,this),e.on(m.BUFFER_CODECS,this.onBufferCodecs,this),e.on(m.BUFFER_EOS,this.onBufferEos,this),e.on(m.BUFFER_FLUSHING,this.onBufferFlushing,this),e.on(m.LEVEL_UPDATED,this.onLevelUpdated,this),e.on(m.FRAG_PARSED,this.onFragParsed,this),e.on(m.FRAG_CHANGED,this.onFragChanged,this),e.on(m.ERROR,this.onError,this)}unregisterListeners(){const{hls:e}=this;e.off(m.MEDIA_ATTACHING,this.onMediaAttaching,this),e.off(m.MEDIA_DETACHING,this.onMediaDetaching,this),e.off(m.MANIFEST_LOADING,this.onManifestLoading,this),e.off(m.MANIFEST_PARSED,this.onManifestParsed,this),e.off(m.BUFFER_RESET,this.onBufferReset,this),e.off(m.BUFFER_APPENDING,this.onBufferAppending,this),e.off(m.BUFFER_CODECS,this.onBufferCodecs,this),e.off(m.BUFFER_EOS,this.onBufferEos,this),e.off(m.BUFFER_FLUSHING,this.onBufferFlushing,this),e.off(m.LEVEL_UPDATED,this.onLevelUpdated,this),e.off(m.FRAG_PARSED,this.onFragParsed,this),e.off(m.FRAG_CHANGED,this.onFragChanged,this),e.off(m.ERROR,this.onError,this)}transferMedia(){const{media:e,mediaSource:t}=this;if(!e)return null;const n={};if(this.operationQueue){const r=this.isUpdating();r||this.operationQueue.removeBlockers();const s=this.isQueued();(r||s)&&this.warn(`Transfering MediaSource with${s?" operations in queue":""}${r?" updating SourceBuffer(s)":""} ${this.operationQueue}`),this.operationQueue.destroy()}const i=this.transferData;return!this.sourceBufferCount&&i&&i.mediaSource===t?_(n,i.tracks):this.sourceBuffers.forEach(r=>{const[s]=r;s&&(n[s]=_({},this.tracks[s]),this.removeBuffer(s)),r[0]=r[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 i=2;(t.audio&&!t.video||!t.altAudio)&&(i=1),this.bufferCodecEventsTotal=i,this.log(`${i} bufferCodec event(s) expected.`),(n=this.transferData)!=null&&n.mediaSource&&this.sourceBufferCount&&i&&this.bufferCreated()}onMediaAttaching(e,t){const n=this.media=t.media;this.transferData=this.overrides=void 0;const i=we(this.appendSource);if(i){const r=!!t.mediaSource;(r||t.overrides)&&(this.transferData=t,this.overrides=t.overrides);const s=this.mediaSource=t.mediaSource||new i;if(this.assignMediaSource(s),r)this._objectUrl=n.src,this.attachTransferred();else{const l=this._objectUrl=self.URL.createObjectURL(s);if(this.appendSource)try{n.removeAttribute("src");const h=self.ManagedMediaSource;n.disableRemotePlayback=n.disableRemotePlayback||h&&s instanceof h,Rl(n),au(n,l),n.load()}catch(h){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,i=t.tracks,r=i?Object.keys(i):null,s=r?r.length:0,l=()=>{Promise.resolve().then(()=>{this.media&&this.mediaSourceOpenOrEnded&&this._onMediaSourceOpen()})};if(i&&r&&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: ${ut(n,(h,c)=>h==="initSegment"?void 0:c)};
transfer tracks: ${ut(i,(h,c)=>h==="initSegment"?void 0:c)}}`),!ie(i,n)){t.mediaSource=null,t.tracks=void 0;const h=e.currentTime,c=this.details,f=Math.max(h,(c==null?void 0:c.fragments[0].start)||0);if(f-h>1){this.log(`attachTransferred: waiting for playback to reach new tracks start time ${h} -> ${f}`);return}this.warn(`attachTransferred: resetting MediaSource for incompatible tracks ("${Object.keys(i)}"->"${Object.keys(n)}") start time: ${f} currentTime: ${h}`),this.onMediaDetaching(m.MEDIA_DETACHING,{}),this.onMediaAttaching(m.MEDIA_ATTACHING,t),e.currentTime=f;return}this.transferData=void 0,r.forEach(h=>{const c=h,f=i[c];if(f){const g=f.buffer;if(g){const A=this.fragmentTracker,I=f.id;if(A.hasFragments(I)||A.hasParts(I)){const Z=Vn.getBuffered(g);A.detectEvictedFragments(c,Z,I,null,!0)}const C=u(c),Q=[c,g];this.sourceBuffers[C]=Q,g.updating&&this.operationQueue&&this.operationQueue.prependBlocker(c),this.trackSourceBuffer(c,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:i,mediaSource:r,_objectUrl:s}=this;if(r){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=r.readyState==="open";try{const h=r.sourceBuffers;for(let c=h.length;c--;)l&&h[c].abort(),r.removeSourceBuffer(h[c]);l&&r.endOfStream()}catch(h){this.warn(`onMediaDetaching: ${h.message} while calling endOfStream`)}}this.sourceBufferCount&&this.onBufferReset()}r.removeEventListener("sourceopen",this._onMediaSourceOpen),r.removeEventListener("sourceended",this._onMediaSourceEnded),r.removeEventListener("sourceclose",this._onMediaSourceClose),this.appendSource&&(r.removeEventListener("startstreaming",this._onStartStreaming),r.removeEventListener("endstreaming",this._onEndStreaming)),this.mediaSource=null,this._objectUrl=null}i&&(i.removeEventListener("emptied",this._onMediaEmptied),n||(s&&self.URL.revokeObjectURL(s),this.mediaSrc===s?(i.removeAttribute("src"),this.appendSource&&Rl(i),i.load()):this.warn("media|source.src was changed by a third party - skip cleanup")),this.media=null),this.hls.trigger(m.MEDIA_DETACHED,t)}onBufferReset(){this.sourceBuffers.forEach(([e])=>{e&&this.resetBuffer(e)}),this.initTracks()}resetBuffer(e){var t;const n=(t=this.tracks[e])==null?void 0:t.buffer;if(this.removeBuffer(e),n)try{var i;(i=this.mediaSource)!=null&&i.sourceBuffers.length&&this.mediaSource.removeSourceBuffer(n)}catch(r){this.warn(`onBufferReset ${e}`,r)}delete this.tracks[e]}removeBuffer(e){this.removeBufferListeners(e),this.sourceBuffers[u(e)]=[null,null];const t=this.tracks[e];t&&(t.buffer=void 0)}resetQueue(){this.operationQueue&&this.operationQueue.destroy(),this.operationQueue=new kl(this.tracks)}onBufferCodecs(e,t){var n;const i=this.tracks,r=Object.keys(t);this.log(`BUFFER_CODECS: "${r}" (current SB count ${this.sourceBufferCount})`);const s="audiovideo"in t&&(i.audio||i.video)||i.audiovideo&&("audio"in t||"video"in t),l=!s&&this.sourceBufferCount&&this.media&&r.some(h=>!i[h]);if(s||l){this.warn(`Unsupported transition between "${Object.keys(i)}" and "${r}" SourceBuffers`);return}r.forEach(h=>{var c,f;const g=t[h],{id:A,codec:I,levelCodec:C,container:Q,metadata:Z,supplemental:me}=g;let ye=i[h];const be=(c=this.transferData)==null||(c=c.tracks)==null?void 0:c[h],Ue=be!=null&&be.buffer?be:ye,Je=(Ue==null?void 0:Ue.pendingCodec)||(Ue==null?void 0:Ue.codec),Bt=Ue==null?void 0:Ue.levelCodec;ye||(ye=i[h]={buffer:void 0,listeners:[],codec:I,supplemental:me,container:Q,levelCodec:C,metadata:Z,id:A});const nt=pt(Je,Bt),mt=nt==null?void 0:nt.replace(Lo,"$1");let gt=pt(I,C);const at=(f=gt)==null?void 0:f.replace(Lo,"$1");gt&&nt&&mt!==at&&(h.slice(0,5)==="audio"&&(gt=Ye(gt,this.appendSource)),this.log(`switching codec ${Je} to ${gt}`),gt!==(ye.pendingCodec||ye.codec)&&(ye.pendingCodec=gt),ye.container=Q,this.appendChangeType(h,Q,gt))}),(this.tracksReady||this.sourceBufferCount)&&(t.tracks=this.sourceBufferTracks),!this.sourceBufferCount&&(this.bufferCodecEventsTotal>1&&!this.tracks.video&&!t.video&&((n=t.audio)==null?void 0:n.id)==="main"&&(this.log("Main audio-only"),this.bufferCodecEventsTotal=1),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 i=`${t};codecs=${n}`,r={label:`change-type=${i}`,execute:()=>{const s=this.tracks[e];if(s){const l=s.buffer;l!=null&&l.changeType&&(this.log(`changing ${e} sourceBuffer type to ${i}`),l.changeType(i),s.codec=n,s.container=t)}this.shiftAndExecuteNext(e)},onStart:()=>{},onComplete:()=>{},onError:s=>{this.warn(`Failed to change ${e} SourceBuffer type`,s)}};this.append(r,e,this.isPending(this.tracks[e]))}blockAudio(e){var t;const n=e.start,i=n+e.duration*.05;if(((t=this.fragmentTracker.getAppendedFrag(n,U.MAIN))==null?void 0:t.gap)===!0)return;const s={label:"block-audio",execute:()=>{var l;const h=this.tracks.video;(this.lastVideoAppendEnd>i||h!=null&&h.buffer&&Vn.isBuffered(h.buffer,i)||((l=this.fragmentTracker.getAppendedFrag(i,U.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:i,type:r,parent:s,frag:l,part:h,chunkMeta:c,offset:f}=t,g=c.buffering[r],{sn:A,cc:I}=l,C=self.performance.now();g.start=C;const Q=l.stats.buffering,Z=h?h.stats.buffering:null;Q.start===0&&(Q.start=C),Z&&Z.start===0&&(Z.start=C);const me=n.audio;let ye=!1;r==="audio"&&(me==null?void 0:me.container)==="audio/mpeg"&&(ye=!this.lastMpegAudioChunk||c.id===1||this.lastMpegAudioChunk.sn!==c.sn,this.lastMpegAudioChunk=c);const be=n.video,Ue=be==null?void 0:be.buffer;if(Ue&&A!=="initSegment"){const nt=h||l,mt=this.blockedAudioAppend;if(r==="audio"&&s!=="main"&&!this.blockedAudioAppend&&!(be.ending||be.ended)){const at=nt.start+nt.duration*.05,Qt=Ue.buffered,Sn=this.currentOp("video");!Qt.length&&!Sn?this.blockAudio(nt):!Sn&&!Vn.isBuffered(Ue,at)&&this.lastVideoAppendEnd<at&&this.blockAudio(nt)}else if(r==="video"){const gt=nt.end;if(mt){const at=mt.frag.start;(gt>at||gt<this.lastVideoAppendEnd||Vn.isBuffered(Ue,at))&&this.unblockAudio()}this.lastVideoAppendEnd=gt}}const Je=(h||l).start,Bt={label:`append-${r}`,execute:()=>{var nt;g.executeStart=self.performance.now();const mt=(nt=this.tracks[r])==null?void 0:nt.buffer;mt&&(ye?this.updateTimestampOffset(mt,Je,.1,r,A,I):f!==void 0&&p(f)&&this.updateTimestampOffset(mt,f,1e-6,r,A,I)),this.appendExecutor(i,r)},onStart:()=>{},onComplete:()=>{const nt=self.performance.now();g.executeEnd=g.end=nt,Q.first===0&&(Q.first=nt),Z&&Z.first===0&&(Z.first=nt);const mt={};this.sourceBuffers.forEach(([gt,at])=>{gt&&(mt[gt]=Vn.getBuffered(at))}),this.appendErrors[r]=0,r==="audio"||r==="video"?this.appendErrors.audiovideo=0:(this.appendErrors.audio=0,this.appendErrors.video=0),this.hls.trigger(m.BUFFER_APPENDED,{type:r,frag:l,part:h,chunkMeta:c,parent:l.type,timeRanges:mt})},onError:nt=>{var mt;const gt={type:ce.MEDIA_ERROR,parent:l.type,details:Y.BUFFER_APPEND_ERROR,sourceBufferName:r,frag:l,part:h,chunkMeta:c,error:nt,err:nt,fatal:!1},at=(mt=this.media)==null?void 0:mt.error;if(nt.code===DOMException.QUOTA_EXCEEDED_ERR||nt.name=="QuotaExceededError"||"quota"in nt)gt.details=Y.BUFFER_FULL_ERROR;else if(nt.code===DOMException.INVALID_STATE_ERR&&this.mediaSourceOpenOrEnded&&!at)gt.errorAction=Ln(!0);else if(nt.name===Ro&&this.sourceBufferCount===0)gt.errorAction=Ln(!0);else{const Qt=++this.appendErrors[r];this.warn(`Failed ${Qt}/${this.hls.config.appendErrorMaxRetry} times to append segment in "${r}" sourceBuffer (${at||"no media error"})`),(Qt>=this.hls.config.appendErrorMaxRetry||at)&&(gt.fatal=!0)}this.hls.trigger(m.ERROR,gt)}};this.log(`queuing "${r}" append sn: ${A}${h?" p: "+h.index:""} of ${l.type===U.MAIN?"level":"track"} ${l.level} cc: ${I}`),this.append(Bt,r,this.isPending(this.tracks[r]))}getFlushOp(e,t,n){return this.log(`queuing "${e}" remove ${t}-${n}`),{label:"remove",execute:()=>{this.removeExecutor(e,t,n)},onStart:()=>{},onComplete:()=>{this.hls.trigger(m.BUFFER_FLUSHED,{type:e})},onError:i=>{this.warn(`Failed to remove ${t}-${n} from "${e}" SourceBuffer`,i)}}}onBufferFlushing(e,t){const{type:n,startOffset:i,endOffset:r}=t;n?this.append(this.getFlushOp(n,i,r),n):this.sourceBuffers.forEach(([s])=>{s&&this.append(this.getFlushOp(s,i,r),s)})}onFragParsed(e,t){const{frag:n,part:i}=t,r=[],s=i?i.elementaryStreams:n.elementaryStreams;s[W.AUDIOVIDEO]?r.push("audiovideo"):(s[W.AUDIO]&&r.push("audio"),s[W.VIDEO]&&r.push("video"));const l=()=>{const h=self.performance.now();n.stats.buffering.end=h,i&&(i.stats.buffering.end=h);const c=i?i.stats:n.stats;this.hls.trigger(m.FRAG_BUFFERED,{frag:n,part:i,stats:c,id:n.type})};r.length===0&&this.warn(`Fragments must have at least one ElementaryStreamType set. type: ${n.type} level: ${n.level} sn: ${n.sn}`),this.blockBuffers(l,r).catch(h=>{this.warn(`Fragment buffered callback ${h}`),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 i=((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)})?i?(this.log("Queueing EOS"),this.blockUntilOpen(()=>{this.tracksEnded();const{mediaSource:s}=this;if(!s||s.readyState!=="open"){s&&this.log(`Could not call mediaSource.endOfStream(). mediaSource.readyState: ${s.readyState}`);return}this.log("Calling mediaSource.endOfStream()"),s.endOfStream(),this.hls.trigger(m.BUFFERED_TO_END,void 0)})):(this.tracksEnded(),this.hls.trigger(m.BUFFERED_TO_END,void 0)):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===Y.BUFFER_APPEND_ERROR&&t.frag){var n;const i=(n=t.errorAction)==null?void 0:n.nextAutoLevel;p(i)&&i!==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 i=e.config,r=n.currentTime,s=t.levelTargetDuration,l=t.live&&i.liveBackBufferLength!==null?i.liveBackBufferLength:i.backBufferLength;if(p(l)&&l>=0){const c=Math.max(l,s),f=Math.floor(r/s)*s-c;this.flushBackBuffer(r,s,f)}const h=i.frontBufferFlushThreshold;if(p(h)&&h>0){const c=Math.max(i.maxBufferLength,h),f=Math.max(c,s),g=Math.floor(r/s)*s+f;this.flushFrontBuffer(r,s,g)}}flushBackBuffer(e,t,n){this.sourceBuffers.forEach(([i,r])=>{if(r){const l=Vn.getBuffered(r);if(l.length>0&&n>l.start(0)){var s;this.hls.trigger(m.BACK_BUFFER_REACHED,{bufferEnd:n});const h=this.tracks[i];if((s=this.details)!=null&&s.live)this.hls.trigger(m.LIVE_BACK_BUFFER_REACHED,{bufferEnd:n});else if(h!=null&&h.ended){this.log(`Cannot flush ${i} back buffer while SourceBuffer is in ended state`);return}this.hls.trigger(m.BUFFER_FLUSHING,{startOffset:0,endOffset:n,type:i})}}})}flushFrontBuffer(e,t,n){this.sourceBuffers.forEach(([i,r])=>{if(r){const s=Vn.getBuffered(r),l=s.length;if(l<2)return;const h=s.start(l-1),c=s.end(l-1);if(n>h||e>=h&&e<=c)return;this.hls.trigger(m.BUFFER_FLUSHING,{startOffset:h,endOffset:1/0,type:i})}})}getDurationAndRange(){var e;const{details:t,mediaSource:n}=this;if(!t||!this.media||(n==null?void 0:n.readyState)!=="open")return null;const i=t.edge;if(t.live&&this.hls.config.liveDurationInfinity){if(t.fragments.length&&n.setLiveSeekableRange){const c=Math.max(0,t.fragmentStart),f=Math.max(c,i);return{duration:1/0,start:c,end:f}}return{duration:1/0}}const r=(e=this.overrides)==null?void 0:e.duration;if(r)return p(r)?{duration:r}:null;const s=this.media.duration,l=p(n.duration)?n.duration:0;return i>l&&i>s||!p(s)?{duration:i}:null}updateMediaSource({duration:e,start:t,end:n}){const i=this.mediaSource;!this.media||!i||i.readyState!=="open"||(i.duration!==e&&(p(e)&&this.log(`Updating MediaSource duration to ${e.toFixed(3)}`),i.duration=e),t!==void 0&&n!==void 0&&(this.log(`MediaSource duration is set to ${i.duration}. Setting seekable range to ${t}-${n}.`),i.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}) ${ut(n)}`),this.tracksReady){var i;const r=(i=this.transferData)==null?void 0:i.tracks;r&&Object.keys(r).length?this.attachTransferred():this.createSourceBuffers()}}bufferCreated(){if(this.sourceBufferCount){const e={};this.sourceBuffers.forEach(([t,n])=>{if(t){const i=this.tracks[t];e[t]={buffer:n,container:i.container,codec:i.codec,supplemental:i.supplemental,levelCodec:i.levelCodec,id:i.id,metadata:i.metadata}}}),this.hls.trigger(m.BUFFER_CREATED,{tracks:e}),this.log(`SourceBuffers created. Running queue: ${this.operationQueue}`),this.sourceBuffers.forEach(([t])=>{this.executeNext(t)})}else{const e=new Error("could not create source buffer for media codec(s)");this.hls.trigger(m.ERROR,{type:ce.MEDIA_ERROR,details:Y.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 r in e){const s=r,l=e[s];if(this.isPending(l)){const h=this.getTrackCodec(l,s),c=`${l.container};codecs=${h}`;l.codec=h,this.log(`creating sourceBuffer(${c})${this.currentOp(s)?" Queued":""} ${ut(l)}`);try{const f=n.addSourceBuffer(c),g=u(s),A=[s,f];t[g]=A,l.buffer=f}catch(f){var i;this.error(`error while trying to add sourceBuffer: ${f.message}`),this.shiftAndExecuteNext(s),(i=this.operationQueue)==null||i.removeBlockers(),delete this.tracks[s],this.hls.trigger(m.ERROR,{type:ce.MEDIA_ERROR,details:Y.BUFFER_ADD_CODEC_ERROR,fatal:!1,error:f,sourceBufferName:s,mimeType:c,parent:l.id});return}this.trackSourceBuffer(s,l)}}this.bufferCreated()}getTrackCodec(e,t){const n=e.supplemental;let i=e.codec;n&&(t==="video"||t==="audiovideo")&&Le(n,"video")&&(i=it(i,n));const r=pt(i,e.levelCodec);return r?t.slice(0,5)==="audio"?Ye(r,this.appendSource):r:""}trackSourceBuffer(e,t){const n=t.buffer;if(!n)return;const i=this.getTrackCodec(t,e);this.tracks[e]={buffer:n,codec:i,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",(r,s)=>{const l=s.removedRanges;l!=null&&l.length&&this.hls.trigger(m.BUFFER_FLUSHED,{type:r})})}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 i=new Error(`${e} SourceBuffer error. MediaSource readyState: ${(n=this.mediaSource)==null?void 0:n.readyState}`);this.error(`${i}`,t),this.hls.trigger(m.ERROR,{type:ce.MEDIA_ERROR,details:Y.BUFFER_APPENDING_ERROR,sourceBufferName:e,error:i,fatal:!1});const r=this.currentOp(e);r&&r.onError(i)}updateTimestampOffset(e,t,n,i,r,s){const l=t-e.timestampOffset;Math.abs(l)>=n&&(this.log(`Updating ${i} SourceBuffer timestampOffset to ${t} (sn: ${r} cc: ${s})`),e.timestampOffset=t)}removeExecutor(e,t,n){const{media:i,mediaSource:r}=this,s=this.tracks[e],l=s==null?void 0:s.buffer;if(!i||!r||!l){this.warn(`Attempting to remove from the ${e} SourceBuffer, but it does not exist`),this.shiftAndExecuteNext(e);return}const h=p(i.duration)?i.duration:1/0,c=p(r.duration)?r.duration:1/0,f=Math.max(0,t),g=Math.min(n,h,c);g>f&&(!s.ending||s.ended)?(s.ended=!1,this.log(`Removing [${f},${g}] from the ${e} SourceBuffer`),l.remove(f,g)):this.shiftAndExecuteNext(e)}appendExecutor(e,t){const n=this.tracks[t],i=n==null?void 0:n.buffer;if(!i)throw new Fo(`Attempting to append to the ${t} SourceBuffer, but it does not exist`);n.ending=!1,n.ended=!1,i.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,i=t.map(s=>this.appendBlocker(s));return t.length>1&&!!this.blockedAudioAppend&&this.unblockAudio(),Promise.all(i).then(s=>{n===this.operationQueue&&(e(),this.stepOperationQueue(this.sourceBufferTypes))})}stepOperationQueue(e){e.forEach(t=>{var n;const i=(n=this.tracks[t])==null?void 0:n.buffer;!i||i.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 i=this.tracks[e];if(!i)return;const r=i.buffer;if(!r)return;const s=n.bind(this,e);i.listeners.push({event:t,listener:s}),r.addEventListener(t,s)}removeBufferListeners(e){const t=this.tracks[e];if(!t)return;const n=t.buffer;n&&(t.listeners.forEach(i=>{n.removeEventListener(i.event,i.listener)}),t.listeners.length=0)}}function Rl(a){const e=a.querySelectorAll("source");[].slice.call(e).forEach(t=>{a.removeChild(t)})}function au(a,e){const t=self.document.createElement("source");t.type="video/mp4",t.src=e,a.appendChild(t)}function u(a){return a==="audio"?1:0}class D{constructor(e){this.hls=void 0,this.autoLevelCapping=void 0,this.firstLevel=void 0,this.media=void 0,this.restrictedLevels=void 0,this.timer=void 0,this.clientRect=void 0,this.streamController=void 0,this.hls=e,this.autoLevelCapping=Number.POSITIVE_INFINITY,this.firstLevel=-1,this.media=null,this.restrictedLevels=[],this.timer=void 0,this.clientRect=null,this.registerListeners()}setStreamController(e){this.streamController=e}destroy(){this.hls&&this.unregisterListener(),this.timer&&this.stopCapping(),this.media=null,this.clientRect=null,this.hls=this.streamController=null}registerListeners(){const{hls:e}=this;e.on(m.FPS_DROP_LEVEL_CAPPING,this.onFpsDropLevelCapping,this),e.on(m.MEDIA_ATTACHING,this.onMediaAttaching,this),e.on(m.MANIFEST_PARSED,this.onManifestParsed,this),e.on(m.LEVELS_UPDATED,this.onLevelsUpdated,this),e.on(m.BUFFER_CODECS,this.onBufferCodecs,this),e.on(m.MEDIA_DETACHING,this.onMediaDetaching,this)}unregisterListener(){const{hls:e}=this;e.off(m.FPS_DROP_LEVEL_CAPPING,this.onFpsDropLevelCapping,this),e.off(m.MEDIA_ATTACHING,this.onMediaAttaching,this),e.off(m.MANIFEST_PARSED,this.onManifestParsed,this),e.off(m.LEVELS_UPDATED,this.onLevelsUpdated,this),e.off(m.BUFFER_CODECS,this.onBufferCodecs,this),e.off(m.MEDIA_DETACHING,this.onMediaDetaching,this)}onFpsDropLevelCapping(e,t){const n=this.hls.levels[t.droppedLevel];this.isLevelAllowed(n)&&this.restrictedLevels.push({bitrate:n.bitrate,height:n.height,width:n.width})}onMediaAttaching(e,t){this.media=t.media instanceof HTMLVideoElement?t.media:null,this.clientRect=null,this.timer&&this.hls.levels.length&&this.detectPlayerSize()}onManifestParsed(e,t){const n=this.hls;this.restrictedLevels=[],this.firstLevel=t.firstLevel,n.config.capLevelToPlayerSize&&t.video&&this.startCapping()}onLevelsUpdated(e,t){this.timer&&p(this.autoLevelCapping)&&this.detectPlayerSize()}onBufferCodecs(e,t){this.hls.config.capLevelToPlayerSize&&t.video&&this.startCapping()}onMediaDetaching(){this.stopCapping(),this.media=null}detectPlayerSize(){if(this.media){if(this.mediaHeight<=0||this.mediaWidth<=0){this.clientRect=null;return}const e=this.hls.levels;if(e.length){const t=this.hls,n=this.getMaxLevel(e.length-1);n!==this.autoLevelCapping&&t.logger.log(`Setting autoLevelCapping to ${n}: ${e[n].height}p@${e[n].bitrate} for media ${this.mediaWidth}x${this.mediaHeight}`),t.autoLevelCapping=n,t.autoLevelEnabled&&t.autoLevelCapping>this.autoLevelCapping&&this.streamController&&this.streamController.nextLevelSwitch(),this.autoLevelCapping=t.autoLevelCapping}}}getMaxLevel(e){const t=this.hls.levels;if(!t.length)return-1;const n=t.filter((i,r)=>this.isLevelAllowed(i)&&r<=e);return this.clientRect=null,D.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 i=(l,h)=>h?l.width!==h.width||l.height!==h.height:!0;let r=e.length-1;const s=Math.max(t,n);for(let l=0;l<e.length;l+=1){const h=e[l];if((h.width>=s||h.height>=s)&&i(h,e[l+1])){r=l;break}}return r}}const M={MANIFEST:"m",AUDIO:"a",VIDEO:"v",MUXED:"av",INIT:"i",CAPTION:"c",TIMED_TEXT:"tt",KEY:"k",OTHER:"o"},le={HLS:"h"};class Ze{constructor(e,t){Array.isArray(e)&&(e=e.map(n=>n instanceof Ze?n:new Ze(n))),this.value=e,this.params=t}}const Oe="Dict";function nn(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 Be(a,e,t,n){return new Error(`failed to ${a} "${nn(e)}" as ${t}`,{cause:n})}function tt(a,e,t){return Be("serialize",a,e,t)}class Bn{constructor(e){this.description=e}}const cn="Bare Item",Zt="Boolean";function Un(a){if(typeof a!="boolean")throw tt(a,Zt);return a?"?1":"?0"}function Wi(a){return btoa(String.fromCharCode(...a))}const yi="Byte Sequence";function fi(a){if(ArrayBuffer.isView(a)===!1)throw tt(a,yi);return`:${Wi(a)}:`}const Mi="Integer";function ui(a){return a<-999999999999999||999999999999999<a}function yn(a){if(ui(a))throw tt(a,Mi);return a.toString()}function Ri(a){return`@${yn(a.getTime()/1e3)}`}function lr(a,e){if(a<0)return-lr(-a,e);const t=Math.pow(10,e);if(Math.abs(a*t%1-.5)<Number.EPSILON){const i=Math.floor(a*t);return(i%2===0?i:i+1)/t}else return Math.round(a*t)/t}const ei="Decimal";function rr(a){const e=lr(a,3);if(Math.floor(Math.abs(e)).toString().length>12)throw tt(a,ei);const t=e.toString();return t.includes(".")?t:`${t}.0`}const Pi="String",gi=/[\x00-\x1f\x7f]+/;function Bi(a){if(gi.test(a))throw tt(a,Pi);return`"${a.replace(/\\/g,"\\\\").replace(/"/g,'\\"')}"`}function Fs(a){return a.description||a.toString().slice(7,-1)}const Bo="Token";function ta(a){const e=Fs(a);if(/^([a-zA-Z*])([!#$%&'*+\-.^_`|~\w:/]*)$/.test(e)===!1)throw tt(e,Bo);return e}function zs(a){switch(typeof a){case"number":if(!p(a))throw tt(a,cn);return Number.isInteger(a)?yn(a):rr(a);case"string":return Bi(a);case"symbol":return ta(a);case"boolean":return Un(a);case"object":if(a instanceof Date)return Ri(a);if(a instanceof Uint8Array)return fi(a);if(a instanceof Bn)return ta(a);default:throw tt(a,cn)}}const ic="Key";function Fl(a){if(/^[a-z*][a-z0-9\-_.*]*$/.test(a)===!1)throw tt(a,ic);return a}function Bl(a){return a==null?"":Object.entries(a).map(([e,t])=>t===!0?`;${Fl(e)}`:`;${Fl(e)}=${zs(t)}`).join("")}function ou(a){return a instanceof Ze?`${zs(a.value)}${Bl(a.params)}`:zs(a)}function rc(a){return`(${a.value.map(ou).join(" ")})${Bl(a.params)}`}function sc(a,e={whitespace:!0}){if(typeof a!="object"||a==null)throw tt(a,Oe);const t=a instanceof Map?a.entries():Object.entries(a),n=e!=null&&e.whitespace?" ":"";return Array.from(t).map(([i,r])=>{r instanceof Ze||(r=new Ze(r));let s=Fl(i);return r.value===!0?s+=Bl(r.params):(s+="=",Array.isArray(r.value)?s+=rc(r):s+=ou(r)),s}).join(`,${n}`)}function lu(a,e){return sc(a,e)}const ws="CMCD-Object",br="CMCD-Request",na="CMCD-Session",js="CMCD-Status",ac={br:ws,ab:ws,d:ws,ot:ws,tb:ws,tpb:ws,lb:ws,tab:ws,lab:ws,url:ws,pb:br,bl:br,tbl:br,dl:br,ltc:br,mtp:br,nor:br,nrr:br,rc:br,sn:br,sta:br,su:br,ttfb:br,ttfbb:br,ttlb:br,cmsdd:br,cmsds:br,smrt:br,df:br,cs:br,ts:br,cid:na,pr:na,sf:na,sid:na,st:na,v:na,msd:na,bs:js,bsd:js,cdn:js,rtp:js,bg:js,pt:js,ec:js,e:js},oc={REQUEST:br};function lc(a){return Object.keys(a).reduce((e,t)=>{var n;return(n=a[t])===null||n===void 0||n.forEach(i=>e[i]=t),e},{})}function uc(a,e){const t={};if(!a)return t;const n=Object.keys(a),i=e?lc(e):{};return n.reduce((r,s)=>{var l;const h=ac[s]||i[s]||oc.REQUEST,c=(l=r[h])!==null&&l!==void 0?l:r[h]={};return c[s]=a[s],r},t)}function cc(a){return["ot","sf","st","e","sta"].includes(a)}function hc(a){return typeof a=="number"?p(a):a!=null&&a!==""&&a!==!1}const uu="event";function fc(a,e){const t=new URL(a),n=new URL(e);if(t.origin!==n.origin)return a;const i=t.pathname.split("/").slice(1),r=n.pathname.split("/").slice(1,-1);for(;i[0]===r[0];)i.shift(),r.shift();for(;r.length;)r.shift(),i.unshift("..");return i.join("/")+t.search+t.hash}const Mo=a=>Math.round(a),Ml=(a,e)=>Array.isArray(a)?a.map(t=>Ml(t,e)):a instanceof Ze&&typeof a.value=="string"?new Ze(Ml(a.value,e),a.params):(e.baseUrl&&(a=fc(a,e.baseUrl)),e.version===1?encodeURIComponent(a):a),Po=a=>Mo(a/100)*100,dc={br:Mo,d:Mo,bl:Po,dl:Po,mtp:Po,nor:(a,e)=>{let t=a;return e.version>=2&&(a instanceof Ze&&typeof a.value=="string"?t=new Ze([a]):typeof a=="string"&&(t=[a])),Ml(t,e)},rtp:Po,tb:Mo},cu="request",hu="response",Pl=["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"],pc=["e"],gc=/^[a-zA-Z0-9-.]+-[a-zA-Z0-9-.]+$/;function Oo(a){return gc.test(a)}function mc(a){return Pl.includes(a)||pc.includes(a)||Oo(a)}const fu=["d","dl","nor","ot","rtp","su"];function vc(a){return Pl.includes(a)||fu.includes(a)||Oo(a)}const _c=["cmsdd","cmsds","rc","smrt","ttfb","ttfbb","ttlb","url"];function yc(a){return Pl.includes(a)||fu.includes(a)||_c.includes(a)||Oo(a)}const Ec=["bl","br","bs","cid","d","dl","mtp","nor","nrr","ot","pr","rtp","sf","sid","st","su","tb","v"];function Ac(a){return Ec.includes(a)||Oo(a)}const bc={[hu]:yc,[uu]:mc,[cu]:vc};function du(a,e={}){const t={};if(a==null||typeof a!="object")return t;const n=e.version||a.v||1,i=e.reportingMode||cu,r=n===1?Ac:bc[i];let s=Object.keys(a).filter(r);const l=e.filter;typeof l=="function"&&(s=s.filter(l));const h=i===hu||i===uu;h&&!s.includes("ts")&&s.push("ts"),n>1&&!s.includes("v")&&s.push("v");const c=_({},dc,e.formatters),f={version:n,reportingMode:i,baseUrl:e.baseUrl};return s.sort().forEach(g=>{let A=a[g];const I=c[g];if(typeof I=="function"&&(A=I(A,f)),g==="v"){if(n===1)return;A=n}g=="pr"&&A===1||(h&&g==="ts"&&!p(A)&&(A=Date.now()),hc(A)&&(cc(g)&&typeof A=="string"&&(A=new Bn(A)),t[g]=A))}),t}function xc(a,e={}){const t={};if(!a)return t;const n=du(a,e),i=uc(n,e==null?void 0:e.customHeaderMap);return Object.entries(i).reduce((r,[s,l])=>{const h=lu(l,{whitespace:!1});return h&&(r[s]=h),r},t)}function wc(a,e,t){return _(a,xc(e,t))}const Sc="CMCD";function Tc(a,e={}){return a?lu(du(a,e),{whitespace:!1}):""}function Dc(a,e={}){if(!a)return"";const t=Tc(a,e);return encodeURIComponent(t)}function Ic(a,e={}){if(!a)return"";const t=Dc(a,e);return`${Sc}=${t}`}const pu=/CMCD=[^&#]+/;function Cc(a,e,t){const n=Ic(e,t);if(!n)return a;if(pu.test(a))return a.replace(pu,n);const i=a.includes("?")?"&":"?";return`${a}${i}${n}`}class kc{constructor(e){this.hls=void 0,this.config=void 0,this.media=void 0,this.sid=void 0,this.cid=void 0,this.useHeaders=!1,this.includeKeys=void 0,this.initialized=!1,this.starved=!1,this.buffering=!0,this.audioBuffer=void 0,this.videoBuffer=void 0,this.onWaiting=()=>{this.initialized&&(this.starved=!0),this.buffering=!0},this.onPlaying=()=>{this.initialized||(this.initialized=!0),this.buffering=!1},this.applyPlaylistData=i=>{try{this.apply(i,{ot:M.MANIFEST,su:!this.initialized})}catch(r){this.hls.logger.warn("Could not generate manifest CMCD data.",r)}},this.applyFragmentData=i=>{try{const{frag:r,part:s}=i,l=this.hls.levels[r.level],h=this.getObjectType(r),c={d:(s||r).duration*1e3,ot:h};(h===M.VIDEO||h===M.AUDIO||h==M.MUXED)&&(c.br=l.bitrate/1e3,c.tb=this.getTopBandwidth(h)/1e3,c.bl=this.getBufferLength(h));const f=s?this.getNextPart(s):this.getNextFrag(r);f!=null&&f.url&&f.url!==r.url&&(c.nor=f.url),this.apply(i,c)}catch(r){this.hls.logger.warn("Could not generate segment CMCD data.",r)}},this.hls=e;const t=this.config=e.config,{cmcd:n}=t;n!=null&&(t.pLoader=this.createPlaylistLoader(),t.fLoader=this.createFragmentLoader(),this.sid=n.sessionId||e.sessionId,this.cid=n.contentId,this.useHeaders=n.useHeaders===!0,this.includeKeys=n.includeKeys,this.registerListeners())}registerListeners(){const e=this.hls;e.on(m.MEDIA_ATTACHED,this.onMediaAttached,this),e.on(m.MEDIA_DETACHED,this.onMediaDetached,this),e.on(m.BUFFER_CREATED,this.onBufferCreated,this)}unregisterListeners(){const e=this.hls;e.off(m.MEDIA_ATTACHED,this.onMediaAttached,this),e.off(m.MEDIA_DETACHED,this.onMediaDetached,this),e.off(m.BUFFER_CREATED,this.onBufferCreated,this)}destroy(){this.unregisterListeners(),this.onMediaDetached(),this.hls=this.config=this.audioBuffer=this.videoBuffer=null,this.onWaiting=this.onPlaying=this.media=null}onMediaAttached(e,t){this.media=t.media,this.media.addEventListener("waiting",this.onWaiting),this.media.addEventListener("playing",this.onPlaying)}onMediaDetached(){this.media&&(this.media.removeEventListener("waiting",this.onWaiting),this.media.removeEventListener("playing",this.onPlaying),this.media=null)}onBufferCreated(e,t){var n,i;this.audioBuffer=(n=t.tracks.audio)==null?void 0:n.buffer,this.videoBuffer=(i=t.tracks.video)==null?void 0:i.buffer}createData(){var e;return{v:1,sf:le.HLS,sid:this.sid,cid:this.cid,pr:(e=this.media)==null?void 0:e.playbackRate,mtp:this.hls.bandwidthEstimate/1e3}}apply(e,t={}){_(t,this.createData());const n=t.ot===M.INIT||t.ot===M.VIDEO||t.ot===M.MUXED;this.starved&&n&&(t.bs=!0,t.su=!0,this.starved=!1),t.su==null&&(t.su=this.buffering);const{includeKeys:i}=this;i&&(t=Object.keys(t).reduce((s,l)=>(i.includes(l)&&(s[l]=t[l]),s),{}));const r={baseUrl:e.url};this.useHeaders?(e.headers||(e.headers={}),wc(e.headers,t,r)):e.url=Cc(e.url,t,r)}getNextFrag(e){var t;const n=(t=this.hls.levels[e.level])==null?void 0:t.details;if(n){const i=e.sn-n.startSN;return n.fragments[i+1]}}getNextPart(e){var t;const{index:n,fragment:i}=e,r=(t=this.hls.levels[i.level])==null||(t=t.details)==null?void 0:t.partList;if(r){const{sn:s}=i;for(let l=r.length-1;l>=0;l--){const h=r[l];if(h.index===n&&h.fragment.sn===s)return r[l+1]}}}getObjectType(e){const{type:t}=e;if(t==="subtitle")return M.TIMED_TEXT;if(e.sn==="initSegment")return M.INIT;if(t==="audio")return M.AUDIO;if(t==="main")return this.hls.audioTracks.length?M.VIDEO:M.MUXED}getTopBandwidth(e){let t=0,n;const i=this.hls;if(e===M.AUDIO)n=i.audioTracks;else{const r=i.maxAutoLevel,s=r>-1?r+1:i.levels.length;n=i.levels.slice(0,s)}return n.forEach(r=>{r.bitrate>t&&(t=r.bitrate)}),t>0?t:NaN}getBufferLength(e){const t=this.media,n=e===M.AUDIO?this.audioBuffer:this.videoBuffer;return!n||!t?NaN:Vn.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(r){this.loader=void 0,this.loader=new n(r)}get stats(){return this.loader.stats}get context(){return this.loader.context}destroy(){this.loader.destroy()}abort(){this.loader.abort()}load(r,s,l){t(r),this.loader.load(r,s,l)}}}createFragmentLoader(){const{fLoader:e}=this.config,t=this.applyFragmentData,n=e||this.config.loader;return class{constructor(r){this.loader=void 0,this.loader=new n(r)}get stats(){return this.loader.stats}get context(){return this.loader.context}destroy(){this.loader.destroy()}abort(){this.loader.abort()}load(r,s,l){t(r),this.loader.load(r,s,l)}}}}const Lc=3e5;class Rc extends P{constructor(e){super("content-steering",e.logger),this.hls=void 0,this.loader=null,this.uri=null,this.pathwayId=".",this._pathwayPriority=null,this.timeToLoad=300,this.reloadTimer=-1,this.updated=0,this.started=!1,this.enabled=!0,this.levels=null,this.audioTracks=null,this.subtitleTracks=null,this.penalizedPathways={},this.hls=e,this.registerListeners()}registerListeners(){const e=this.hls;e.on(m.MANIFEST_LOADING,this.onManifestLoading,this),e.on(m.MANIFEST_LOADED,this.onManifestLoaded,this),e.on(m.MANIFEST_PARSED,this.onManifestParsed,this),e.on(m.ERROR,this.onError,this)}unregisterListeners(){const e=this.hls;e&&(e.off(m.MANIFEST_LOADING,this.onManifestLoading,this),e.off(m.MANIFEST_LOADED,this.onManifestLoaded,this),e.off(m.MANIFEST_PARSED,this.onManifestParsed,this),e.off(m.ERROR,this.onError,this))}pathways(){return(this.levels||[]).reduce((e,t)=>(e.indexOf(t.pathwayId)===-1&&e.push(t.pathwayId),e),[])}get pathwayPriority(){return this._pathwayPriority}set pathwayPriority(e){this.updatePathwayPriority(e)}startLoad(){if(this.started=!0,this.clearTimeout(),this.enabled&&this.uri){if(this.updated){const e=this.timeToLoad*1e3-(performance.now()-this.updated);if(e>0){this.scheduleRefresh(this.uri,e);return}}this.loadSteeringManifest(this.uri)}}stopLoad(){this.started=!1,this.loader&&(this.loader.destroy(),this.loader=null),this.clearTimeout()}clearTimeout(){this.reloadTimer!==-1&&(self.clearTimeout(this.reloadTimer),this.reloadTimer=-1)}destroy(){this.unregisterListeners(),this.stopLoad(),this.hls=null,this.levels=this.audioTracks=this.subtitleTracks=null}removeLevel(e){const t=this.levels;t&&(this.levels=t.filter(n=>n!==e))}onManifestLoading(){this.stopLoad(),this.enabled=!0,this.timeToLoad=300,this.updated=0,this.uri=null,this.pathwayId=".",this.levels=this.audioTracks=this.subtitleTracks=null}onManifestLoaded(e,t){const{contentSteering:n}=t;n!==null&&(this.pathwayId=n.pathwayId,this.uri=n.uri,this.started&&this.startLoad())}onManifestParsed(e,t){this.audioTracks=t.audioTracks,this.subtitleTracks=t.subtitleTracks}onError(e,t){const{errorAction:n}=t;if((n==null?void 0:n.action)===on.SendAlternateToPenaltyBox&&n.flags===$t.MoveAllAlternatesMatchingHost){const i=this.levels;let r=this._pathwayPriority,s=this.pathwayId;if(t.context){const{groupId:l,pathwayId:h,type:c}=t.context;l&&i?s=this.getPathwayForGroupId(l,c,s):h&&(s=h)}s in this.penalizedPathways||(this.penalizedPathways[s]=performance.now()),!r&&i&&(r=this.pathways()),r&&r.length>1&&(this.updatePathwayPriority(r),n.resolved=this.pathwayId!==s),t.details===Y.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: ${i&&i.length} priorities: ${ut(r)} penalized: ${ut(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,i=performance.now();Object.keys(n).forEach(r=>{i-n[r]>Lc&&delete n[r]});for(let r=0;r<e.length;r++){const s=e[r];if(s in n)continue;if(s===this.pathwayId)return;const l=this.hls.nextLoadLevel,h=this.hls.levels[l];if(t=this.getLevelsForPathway(s),t.length>0){this.log(`Setting Pathway to "${s}"`),this.pathwayId=s,fr(t),this.hls.trigger(m.LEVELS_UPDATED,{levels:t});const c=this.hls.levels[l];h&&c&&this.levels&&(c.attrs["STABLE-VARIANT-ID"]!==h.attrs["STABLE-VARIANT-ID"]&&c.bitrate!==h.bitrate&&this.log(`Unstable Pathways change from bitrate ${h.bitrate} to ${c.bitrate}`),this.hls.nextLoadLevel=l);break}}}getPathwayForGroupId(e,t,n){const i=this.getLevelsForPathway(n).concat(this.levels||[]);for(let r=0;r<i.length;r++)if(t===ve.AUDIO_TRACK&&i[r].hasAudioGroup(e)||t===ve.SUBTITLE_TRACK&&i[r].hasSubtitleGroup(e))return i[r].pathwayId;return n}clonePathways(e){const t=this.levels;if(!t)return;const n={},i={};e.forEach(r=>{const{ID:s,"BASE-ID":l,"URI-REPLACEMENT":h}=r;if(t.some(f=>f.pathwayId===s))return;const c=this.getLevelsForPathway(l).map(f=>{const g=new bi(f.attrs);g["PATHWAY-ID"]=s;const A=g.AUDIO&&`${g.AUDIO}_clone_${s}`,I=g.SUBTITLES&&`${g.SUBTITLES}_clone_${s}`;A&&(n[g.AUDIO]=A,g.AUDIO=A),I&&(i[g.SUBTITLES]=I,g.SUBTITLES=I);const C=mu(f.uri,g["STABLE-VARIANT-ID"],"PER-VARIANT-URIS",h),Q=new Xn({attrs:g,audioCodec:f.audioCodec,bitrate:f.bitrate,height:f.height,name:f.name,url:C,videoCodec:f.videoCodec,width:f.width});if(f.audioGroups)for(let Z=1;Z<f.audioGroups.length;Z++)Q.addGroupId("audio",`${f.audioGroups[Z]}_clone_${s}`);if(f.subtitleGroups)for(let Z=1;Z<f.subtitleGroups.length;Z++)Q.addGroupId("text",`${f.subtitleGroups[Z]}_clone_${s}`);return Q});t.push(...c),gu(this.audioTracks,n,h,s),gu(this.subtitleTracks,i,h,s)})}loadSteeringManifest(e){const t=this.hls.config,n=t.loader;this.loader&&this.loader.destroy(),this.loader=new n(t);let i;try{i=new self.URL(e)}catch(f){this.enabled=!1,this.log(`Failed to parse Steering Manifest URI: ${e}`);return}if(i.protocol!=="data:"){const f=(this.hls.bandwidthEstimate||t.abrEwmaDefaultEstimate)|0;i.searchParams.set("_HLS_pathway",this.pathwayId),i.searchParams.set("_HLS_throughput",""+f)}const r={responseType:"json",url:i.href},s=t.steeringManifestLoadPolicy.default,l=s.errorRetry||s.timeoutRetry||{},h={loadPolicy:s,timeout:s.maxLoadTimeMs,maxRetry:l.maxNumRetry||0,retryDelay:l.retryDelayMs||0,maxRetryDelay:l.maxRetryDelayMs||0},c={onSuccess:(f,g,A,I)=>{this.log(`Loaded steering manifest: "${i}"`);const C=f.data;if((C==null?void 0:C.VERSION)!==1){this.log(`Steering VERSION ${C.VERSION} not supported!`);return}this.updated=performance.now(),this.timeToLoad=C.TTL;const{"RELOAD-URI":Q,"PATHWAY-CLONES":Z,"PATHWAY-PRIORITY":me}=C;if(Q)try{this.uri=new self.URL(Q,i).href}catch(be){this.enabled=!1,this.log(`Failed to parse Steering Manifest RELOAD-URI: ${Q}`);return}this.scheduleRefresh(this.uri||A.url),Z&&this.clonePathways(Z);const ye={steeringManifest:C,url:i.toString()};this.hls.trigger(m.STEERING_MANIFEST_LOADED,ye),me&&this.updatePathwayPriority(me)},onError:(f,g,A,I)=>{if(this.log(`Error loading steering manifest: ${f.code} ${f.text} (${g.url})`),this.stopLoad(),f.code===410){this.enabled=!1,this.log(`Steering manifest ${g.url} no longer available`);return}let C=this.timeToLoad*1e3;if(f.code===429){const Q=this.loader;if(typeof(Q==null?void 0:Q.getResponseHeader)=="function"){const Z=Q.getResponseHeader("Retry-After");Z&&(C=parseFloat(Z)*1e3)}this.log(`Steering manifest ${g.url} rate limited`);return}this.scheduleRefresh(this.uri||g.url,C)},onTimeout:(f,g,A)=>{this.log(`Timeout loading steering manifest (${g.url})`),this.scheduleRefresh(this.uri||g.url)}};this.log(`Requesting steering manifest: ${i}`),this.loader.load(r,h,c)}scheduleRefresh(e,t=this.timeToLoad*1e3){this.clearTimeout(),this.reloadTimer=self.setTimeout(()=>{var n;const i=(n=this.hls)==null?void 0:n.media;if(i&&!i.ended){this.loadSteeringManifest(e);return}this.scheduleRefresh(e,this.timeToLoad*1e3)},t)}}function gu(a,e,t,n){a&&Object.keys(e).forEach(i=>{const r=a.filter(s=>s.groupId===i).map(s=>{const l=_({},s);return l.details=void 0,l.attrs=new bi(l.attrs),l.url=l.attrs.URI=mu(s.url,s.attrs["STABLE-RENDITION-ID"],"PER-RENDITION-URIS",t),l.groupId=l.attrs["GROUP-ID"]=e[i],l.attrs["PATHWAY-ID"]=n,l});a.push(...r)})}function mu(a,e,t,n){const{HOST:i,PARAMS:r,[t]:s}=n;let l;e&&(l=s==null?void 0:s[e],l&&(a=l));const h=new self.URL(a);return i&&!l&&(h.host=i),r&&Object.keys(r).sort().forEach(c=>{c&&h.searchParams.set(c,r[c])}),h.href}class Ca extends P{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=Ca.CDMCleanupPromise?[Ca.CDMCleanupPromise]:[],this.bannedKeyIds={},this.onMediaEncrypted=t=>{const{initDataType:n,initData:i}=t,r=`"${t.type}" event: init data type: "${n}"`;if(this.debug(r),i!==null){if(!this.keyFormatPromise){let s=Object.keys(this.keySystemAccessPromises);s.length||(s=Wr(this.config));const l=s.map(xr).filter(h=>!!h);this.keyFormatPromise=this.getKeyFormatPromise(l)}this.keyFormatPromise.then(s=>{const l=kr(s);if(n!=="sinf"||l!==li.FAIRPLAY){this.log(`Ignoring "${t.type}" event with init data type: "${n}" for selected key-system ${l}`);return}let h;try{const I=ot(new Uint8Array(i)),C=is(JSON.parse(I).sinf),Q=Ct(C);if(!Q)throw new Error("'schm' box missing or not cbcs/cenc with schi > tenc");h=new Uint8Array(Q.subarray(8,24))}catch(I){this.warn(`${r} Failed to parse sinf: ${I}`);return}const c=K(h),{keyIdToKeySessionPromise:f,mediaKeySessions:g}=this;let A=f[c];for(let I=0;I<g.length;I++){const C=g[I],Q=C.decryptdata;if(!Q.keyId)continue;const Z=K(Q.keyId);if(vr(h,Q.keyId)||Q.uri.replace(/-/g,"").indexOf(c)!==-1){if(A=f[Z],!A)continue;if(Q.pssh)break;delete f[Z],Q.pssh=new Uint8Array(i),Q.keyId=h,A=f[c]=A.then(()=>this.generateRequestWithPreferredKeySession(C,n,i,"encrypted-event-key-match")),A.catch(me=>this.handleError(me));break}}A||this.handleError(new Error(`Key ID ${c} not encountered in playlist. Key-system sessions ${g.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(m.MEDIA_ATTACHED,this.onMediaAttached,this),this.hls.on(m.MEDIA_DETACHED,this.onMediaDetached,this),this.hls.on(m.MANIFEST_LOADING,this.onManifestLoading,this),this.hls.on(m.MANIFEST_LOADED,this.onManifestLoaded,this),this.hls.on(m.DESTROYING,this.onDestroying,this)}unregisterListeners(){this.hls.off(m.MEDIA_ATTACHED,this.onMediaAttached,this),this.hls.off(m.MEDIA_DETACHED,this.onMediaDetached,this),this.hls.off(m.MANIFEST_LOADING,this.onManifestLoading,this),this.hls.off(m.MANIFEST_LOADED,this.onManifestLoaded,this),this.hls.off(m.DESTROYING,this.onDestroying,this)}getLicenseServerUrl(e){const{drmSystems:t,widevineLicenseUrl:n}=this.config,i=t==null?void 0:t[e];if(i)return i.licenseUrl;if(e===li.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,h)=>!!s&&h.indexOf(s)===l,i=t.map(s=>s.audioCodec).filter(n),r=t.map(s=>s.videoCodec).filter(n);return i.length+r.length===0&&r.push("avc1.42e01e"),new Promise((s,l)=>{const h=c=>{const f=c.shift();this.getMediaKeysPromise(f,i,r).then(g=>s({keySystem:f,mediaKeys:g})).catch(g=>{c.length?h(c):g instanceof as?l(g):l(new as({type:ce.KEY_SYSTEM_ERROR,details:Y.KEY_SYSTEM_NO_ACCESS,error:g,fatal:!0},g.message))})};h(e)})}requestMediaKeySystemAccess(e,t){const{requestMediaKeySystemAccessFunc:n}=this.config;if(typeof n!="function"){let i=`Configured requestMediaKeySystemAccess is not a function ${n}`;return rs===null&&self.location.protocol==="http:"&&(i=`navigator.requestMediaKeySystemAccess is not available over insecure protocol ${location.protocol}`),Promise.reject(new Error(i))}return n(e,t)}getMediaKeysPromise(e,t,n){var i;const r=fs(e,t,n,this.config.drmSystemOptions||{});let s=this.keySystemAccessPromises[e],l=(i=s)==null?void 0:i.keySystemAccess;if(!l){this.log(`Requesting encrypted media "${e}" key-system access with config: ${ut(r)}`),l=this.requestMediaKeySystemAccess(e,r);const h=s=this.keySystemAccessPromises[e]={keySystemAccess:l};return l.catch(c=>{this.log(`Failed to obtain access to key-system "${e}": ${c}`)}),l.then(c=>{this.log(`Access for key-system "${c.keySystem}" obtained`);const f=this.fetchServerCertificate(e);this.log(`Create media-keys for "${e}"`);const g=h.mediaKeys=c.createMediaKeys().then(A=>(this.log(`Media-keys created for "${e}"`),h.hasMediaKeys=!0,f.then(I=>I?this.setMediaKeysServerCertificate(A,e,I):A)));return g.catch(A=>{this.error(`Failed to create media-keys for "${e}"}: ${A}`)}),g})}return l.then(()=>s.mediaKeys)}createMediaKeySessionContext({decryptdata:e,keySystem:t,mediaKeys:n}){this.log(`Creating key-system session "${t}" keyId: ${K(e.keyId||[])} keyUri: ${e.uri}`);const i=n.createSession(),r={decryptdata:e,keySystem:t,mediaKeys:n,mediaKeysSession:i,keyStatus:"status-pending"};return this.mediaKeySessions.push(r),r}renewKeySession(e){const t=e.decryptdata;if(t.pssh){const n=this.createMediaKeySessionContext(e),i=No(t),r="cenc";this.keyIdToKeySessionPromise[i]=this.generateRequestWithPreferredKeySession(n,r,t.pssh.buffer,"expired")}else this.warn("Could not renew expired session. Missing pssh initData.");this.removeSession(e)}updateKeySession(e,t){const n=e.mediaKeysSession;return this.log(`Updating key-session "${n.sessionId}" for keyId ${K(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})=>xr(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:i})=>{const r=xr(i);r?t(r):n(new Error(`Unable to find format for key-system "${i}"`))}).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=Wr(this.config),n=e.map(kr).filter(i=>!!i&&t.indexOf(i)!==-1);return this.selectKeySystem(n)}getKeyStatus(e){const{mediaKeySessions:t}=this;for(let n=0;n<t.length;n++){const i=Fc(e,t[n]);if(i)return i}}loadKey(e){const t=e.keyInfo.decryptdata,n=No(t),i=this.bannedKeyIds[n];if(i||this.getKeyStatus(t)==="internal-error"){const l=vu(i||"internal-error",t);return this.handleError(l,e.frag),Promise.reject(l)}const r=`(keyId: ${n} format: "${t.keyFormat}" method: ${t.method} uri: ${t.uri})`;this.log(`Starting session for key ${r}`);const s=this.keyIdToKeySessionPromise[n];if(!s){const l=this.getKeySystemForKeyPromise(t).then(({keySystem:h,mediaKeys:c})=>(this.throwIfDestroyed(),this.log(`Handle encrypted media sn: ${e.frag.sn} ${e.frag.type}: ${e.frag.level} using key ${r}`),this.attemptSetMediaKeys(h,c).then(()=>(this.throwIfDestroyed(),this.createMediaKeySessionContext({keySystem:h,mediaKeys:c,decryptdata:t}))))).then(h=>{const c="cenc",f=t.pssh?t.pssh.buffer:null;return this.generateRequestWithPreferredKeySession(h,c,f,"playlist-key")});return l.catch(h=>this.handleError(h,e.frag)),this.keyIdToKeySessionPromise[n]=l,l}return s.catch(l=>{if(l instanceof as){const h=E({},l.data);this.getKeyStatus(t)==="internal-error"&&(h.decryptdata=t);const c=new as(h,l.message);this.handleError(c,e.frag)}}),s}throwIfDestroyed(e="Invalid state"){if(!this.hls)throw new Error("invalid state")}handleError(e,t){if(this.hls)if(e instanceof as){t&&(e.data.frag=t);const n=e.data.decryptdata;this.error(`${e.message}${n?` (${K(n.keyId||[])})`:""}`),this.hls.trigger(m.ERROR,e.data)}else this.error(e.message),this.hls.trigger(m.ERROR,{type:ce.KEY_SYSTEM_ERROR,details:Y.KEY_SYSTEM_NO_KEYS,error:e,fatal:!0})}getKeySystemForKeyPromise(e){const t=No(e),n=this.keyIdToKeySessionPromise[t];if(!n){const i=kr(e.keyFormat),r=i?[i]:Wr(this.config);return this.attemptKeySystemAccess(r)}return n}getKeySystemSelectionPromise(e){if(e.length||(e=Wr(this.config)),e.length===0)throw new as({type:ce.KEY_SYSTEM_ERROR,details:Y.KEY_SYSTEM_NO_CONFIGURED_LICENSE,fatal:!0},`Missing key-system license configuration options ${ut({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 i=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(i),i.then(()=>{this.log(`Media-keys set for "${e}"`),n.push(i),this.setMediaKeysQueue=this.setMediaKeysQueue.filter(r=>n.indexOf(r)===-1)})}generateRequestWithPreferredKeySession(e,t,n,i){var r;const s=(r=this.config.drmSystems)==null||(r=r[e.keySystem])==null?void 0:r.generateRequest;if(s)try{const C=s.call(this.hls,t,n,e);if(!C)throw new Error("Invalid response from configured generateRequest filter");t=C.initDataType,n=C.initData?C.initData:null,e.decryptdata.pssh=n?new Uint8Array(n):null}catch(C){if(this.warn(C.message),this.hls&&this.hls.config.debug)throw C}if(n===null)return this.log(`Skipping key-session request for "${i}" (no initData)`),Promise.resolve(e);const l=No(e.decryptdata),h=e.decryptdata.uri;this.log(`Generating key-session request for "${i}" keyId: ${l} URI: ${h} (init data type: ${t} length: ${n.byteLength})`);const c=new Pa,f=e._onmessage=C=>{const Q=e.mediaKeysSession;if(!Q){c.emit("error",new Error("invalid state"));return}const{messageType:Z,message:me}=C;this.log(`"${Z}" message event for session "${Q.sessionId}" message size: ${me.byteLength}`),Z==="license-request"||Z==="license-renewal"?this.renewLicense(e,me).catch(ye=>{c.eventNames().length?c.emit("error",ye):this.handleError(ye)}):Z==="license-release"?e.keySystem===li.FAIRPLAY&&this.updateKeySession(e,Hr("acknowledged")).then(()=>this.removeSession(e)).catch(ye=>this.handleError(ye)):this.warn(`unhandled media key message type "${Z}"`)},g=(C,Q)=>{Q.keyStatus=C;let Z;C.startsWith("usable")?c.emit("resolved"):C==="internal-error"||C==="output-restricted"||C==="output-downscaled"?Z=vu(C,Q.decryptdata):C==="expired"?Z=new Error(`key expired (keyId: ${l})`):C==="released"?Z=new Error("key released"):C==="status-pending"||this.warn(`unhandled key status change "${C}" (keyId: ${l})`),Z&&(c.eventNames().length?c.emit("error",Z):this.handleError(Z))},A=e._onkeystatuseschange=C=>{if(!e.mediaKeysSession){c.emit("error",new Error("invalid state"));return}const Z=this.getKeyStatuses(e);if(!Object.keys(Z).some(Ue=>Z[Ue]!=="status-pending"))return;if(Z[l]==="expired"){this.log(`Expired key ${ut(Z)} in key-session "${e.mediaKeysSession.sessionId}"`),this.renewKeySession(e);return}let ye=Z[l];if(ye)g(ye,e);else{var be;e.keyStatusTimeouts||(e.keyStatusTimeouts={}),(be=e.keyStatusTimeouts)[l]||(be[l]=self.setTimeout(()=>{if(!e.mediaKeysSession||!this.mediaKeys)return;const Je=this.getKeyStatus(e.decryptdata);if(Je&&Je!=="status-pending")return this.log(`No status for keyId ${l} in key-session "${e.mediaKeysSession.sessionId}". Using session key-status ${Je} from other session.`),g(Je,e);this.log(`key status for ${l} in key-session "${e.mediaKeysSession.sessionId}" timed out after 1000ms`),ye="internal-error",g(ye,e)},1e3)),this.log(`No status for keyId ${l} (${ut(Z)}).`)}};Or(e.mediaKeysSession,"message",f),Or(e.mediaKeysSession,"keystatuseschange",A);const I=new Promise((C,Q)=>{c.on("error",Q),c.on("resolved",C)});return e.mediaKeysSession.generateRequest(t,n).then(()=>{this.log(`Request generated for key-session "${e.mediaKeysSession.sessionId}" keyId: ${l} URI: ${h}`)}).catch(C=>{throw new as({type:ce.KEY_SYSTEM_ERROR,details:Y.KEY_SYSTEM_NO_SESSION,error:C,decryptdata:e.decryptdata,fatal:!1},`Error generating key-session request: ${C}`)}).then(()=>I).catch(C=>(c.removeAllListeners(),this.removeSession(e).then(()=>{throw C}))).then(()=>(c.removeAllListeners(),e))}getKeyStatuses(e){const t={};return e.mediaKeysSession.keyStatuses.forEach((n,i)=>{if(typeof i=="string"&&typeof n=="object"){const l=i;i=n,n=l}const r="buffer"in i?new Uint8Array(i.buffer,i.byteOffset,i.byteLength):new Uint8Array(i);e.keySystem===li.PLAYREADY&&r.length===16&&Dn(r);const s=K(r);n==="internal-error"&&(this.bannedKeyIds[s]=n),this.log(`key status change "${n}" for keyStatuses keyId: ${s} key-session "${e.mediaKeysSession.sessionId}"`),t[s]=n}),t}fetchServerCertificate(e){const t=this.config,n=t.loader,i=new n(t),r=this.getServerCertificateUrl(e);return r?(this.log(`Fetching server certificate for "${e}"`),new Promise((s,l)=>{const h={responseType:"arraybuffer",url:r},c=t.certLoadPolicy.default,f={loadPolicy:c,timeout:c.maxLoadTimeMs,maxRetry:0,retryDelay:0,maxRetryDelay:0},g={onSuccess:(A,I,C,Q)=>{s(A.data)},onError:(A,I,C,Q)=>{l(new as({type:ce.KEY_SYSTEM_ERROR,details:Y.KEY_SYSTEM_SERVER_CERTIFICATE_REQUEST_FAILED,fatal:!0,networkDetails:C,response:E({url:h.url,data:void 0},A)},`"${e}" certificate request failed (${r}). Status: ${A.code} (${A.text})`))},onTimeout:(A,I,C)=>{l(new as({type:ce.KEY_SYSTEM_ERROR,details:Y.KEY_SYSTEM_SERVER_CERTIFICATE_REQUEST_FAILED,fatal:!0,networkDetails:C,response:{url:h.url,data:void 0}},`"${e}" certificate request timed out (${r})`))},onAbort:(A,I,C)=>{l(new Error("aborted"))}};i.load(h,f,g)})):Promise.resolve()}setMediaKeysServerCertificate(e,t,n){return new Promise((i,r)=>{e.setServerCertificate(n).then(s=>{this.log(`setServerCertificate ${s?"success":"not supported by CDM"} (${n.byteLength}) on "${t}"`),i(e)}).catch(s=>{r(new as({type:ce.KEY_SYSTEM_ERROR,details:Y.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(i=>{throw new as({type:ce.KEY_SYSTEM_ERROR,details:Y.KEY_SYSTEM_SESSION_UPDATE_FAILED,decryptdata:e.decryptdata,error:i,fatal:!1},i.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 i=new DOMParser().parseFromString(n,"application/xml"),r=i.querySelectorAll("HttpHeader");if(r.length>0){let f;for(let g=0,A=r.length;g<A;g++){var s,l;f=r[g];const I=(s=f.querySelector("name"))==null?void 0:s.textContent,C=(l=f.querySelector("value"))==null?void 0:l.textContent;I&&C&&e.setRequestHeader(I,C)}}const h=i.querySelector("Challenge"),c=h==null?void 0:h.textContent;if(!c)throw new Error("Cannot find <Challenge> in key message");return Hr(atob(c))}setupLicenseXHR(e,t,n,i){const r=this.config.licenseXhrSetup;return r?Promise.resolve().then(()=>{if(!n.decryptdata)throw new Error("Key removed");return r.call(this.hls,e,t,n,i)}).catch(s=>{if(!n.decryptdata)throw s;return e.open("POST",t,!0),r.call(this.hls,e,t,n,i)}).then(s=>(e.readyState||e.open("POST",t,!0),{xhr:e,licenseChallenge:s||i})):(e.open("POST",t,!0),Promise.resolve({xhr:e,licenseChallenge:i}))}requestLicense(e,t){const n=this.config.keyLoadPolicy.default;return new Promise((i,r)=>{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 r(new Error("invalid state"));if(l.readyState===4)if(l.status===200){this._requestLicenseFailureCount=0;let h=l.response;this.log(`License received ${h instanceof ArrayBuffer?h.byteLength:h}`);const c=this.config.licenseResponseCallback;if(c)try{h=c.call(this.hls,l,s,e)}catch(f){this.error(f)}i(h)}else{const h=n.errorRetry,c=h?h.maxNumRetry:0;if(this._requestLicenseFailureCount++,this._requestLicenseFailureCount>c||l.status>=400&&l.status<500)r(new as({type:ce.KEY_SYSTEM_ERROR,details:Y.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=c-this._requestLicenseFailureCount+1;this.warn(`Retrying license request, ${f} attempts left`),this.requestLicense(e,t).then(i,r)}}},e.licenseXhr&&e.licenseXhr.readyState!==XMLHttpRequest.DONE&&e.licenseXhr.abort(),e.licenseXhr=l,this.setupLicenseXHR(l,s,e,t).then(({xhr:h,licenseChallenge:c})=>{e.keySystem==li.PLAYREADY&&(c=this.unpackPlayReadyKeyMessage(h,c)),h.send(c)}).catch(r)})}onDestroying(){this.unregisterListeners(),this._clear()}onMediaAttached(e,t){if(!this.config.emeEnabled)return;const n=t.media;this.media=n,Or(n,"encrypted",this.onMediaEncrypted),Or(n,"waitingforkey",this.onWaitingForKey)}onMediaDetached(){const e=this.media;e&&(zr(e,"encrypted",this.onMediaEncrypted),zr(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,Lr.clearKeyUriToKeyIdMap();const i=n.length;Ca.CDMCleanupPromise=Promise.all(n.map(r=>this.removeSession(r)).concat((t==null||(e=t.setMediaKeys(null))==null?void 0:e.catch(r=>{this.log(`Could not clear media keys: ${r}`),this.hls&&this.hls.trigger(m.ERROR,{type:ce.OTHER_ERROR,details:Y.KEY_SYSTEM_DESTROY_MEDIA_KEYS_ERROR,fatal:!1,error:new Error(`Could not clear media keys: ${r}`)})}))||Promise.resolve())).catch(r=>{this.log(`Could not close sessions and clear media keys: ${r}`),this.hls&&this.hls.trigger(m.ERROR,{type:ce.OTHER_ERROR,details:Y.KEY_SYSTEM_DESTROY_CLOSE_SESSION_ERROR,fatal:!1,error:new Error(`Could not close sessions and clear media keys: ${r}`)})}).then(()=>{i&&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((i,r)=>(i.indexOf(r.keyFormat)===-1&&i.push(r.keyFormat),i),[]);this.log(`Selecting key-system from session-keys ${n.join(", ")}`),this.keyFormatPromise=this.getKeyFormatPromise(n)}}removeSession(e){const{mediaKeysSession:t,licenseXhr:n,decryptdata:i}=e;if(t){this.log(`Remove licenses and keys and close session "${t.sessionId}" keyId: ${K((i==null?void 0:i.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 r=this.mediaKeySessions.indexOf(e);r>-1&&this.mediaKeySessions.splice(r,1);const{keyStatusTimeouts:s}=e;s&&Object.keys(s).forEach(c=>self.clearTimeout(s[c]));const{drmSystemOptions:l}=this.config;return(Hs(l)?new Promise((c,f)=>{self.setTimeout(()=>f(new Error("MediaKeySession.remove() timeout")),8e3),t.remove().then(c).catch(f)}):Promise.resolve()).catch(c=>{this.log(`Could not remove session: ${c}`),this.hls&&this.hls.trigger(m.ERROR,{type:ce.OTHER_ERROR,details:Y.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(m.ERROR,{type:ce.OTHER_ERROR,details:Y.KEY_SYSTEM_DESTROY_CLOSE_SESSION_ERROR,fatal:!1,error:new Error(`Could not close session: ${c}`)})})}return Promise.resolve()}}Ca.CDMCleanupPromise=void 0;function No(a){if(!a)throw new Error("Could not read keyId of undefined decryptdata");if(a.keyId===null)throw new Error("keyId is null");return K(a.keyId)}function Fc(a,e){if(a.keyId&&e.mediaKeysSession.keyStatuses.has(a.keyId))return e.mediaKeysSession.keyStatuses.get(a.keyId);if(a.matches(e.decryptdata))return e.keyStatus}class as 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 vu(a,e){const t=a==="output-restricted",n=t?Y.KEY_SYSTEM_STATUS_OUTPUT_RESTRICTED:Y.KEY_SYSTEM_STATUS_INTERNAL_ERROR;return new as({type:ce.KEY_SYSTEM_ERROR,details:n,fatal:!1,decryptdata:e},t?"HDCP level output restricted":`key status changed to "${a}"`)}class Bc{constructor(e){this.hls=void 0,this.isVideoPlaybackQualityAvailable=!1,this.timer=void 0,this.media=null,this.lastTime=void 0,this.lastDroppedFrames=0,this.lastDecodedFrames=0,this.streamController=void 0,this.hls=e,this.registerListeners()}setStreamController(e){this.streamController=e}registerListeners(){this.hls.on(m.MEDIA_ATTACHING,this.onMediaAttaching,this),this.hls.on(m.MEDIA_DETACHING,this.onMediaDetaching,this)}unregisterListeners(){this.hls.off(m.MEDIA_ATTACHING,this.onMediaAttaching,this),this.hls.off(m.MEDIA_DETACHING,this.onMediaDetaching,this)}destroy(){this.timer&&clearInterval(this.timer),this.unregisterListeners(),this.isVideoPlaybackQualityAvailable=!1,this.media=null}onMediaAttaching(e,t){const n=this.hls.config;if(n.capLevelOnFPSDrop){const i=t.media instanceof self.HTMLVideoElement?t.media:null;this.media=i,i&&typeof i.getVideoPlaybackQuality=="function"&&(this.isVideoPlaybackQualityAvailable=!0),self.clearInterval(this.timer),this.timer=self.setInterval(this.checkFPSInterval.bind(this),n.fpsDroppedMonitoringPeriod)}}onMediaDetaching(){this.media=null}checkFPS(e,t,n){const i=performance.now();if(t){if(this.lastTime){const r=i-this.lastTime,s=n-this.lastDroppedFrames,l=t-this.lastDecodedFrames,h=1e3*s/r,c=this.hls;if(c.trigger(m.FPS_DROP,{currentDropped:s,currentDecoded:l,totalDroppedFrames:n}),h>0&&s>c.config.fpsDroppedMonitoringThreshold*l){let f=c.currentLevel;c.logger.warn("drop FPS ratio greater than max allowed value for currentLevel: "+f),f>0&&(c.autoLevelCapping===-1||c.autoLevelCapping>=f)&&(f=f-1,c.trigger(m.FPS_DROP_LEVEL_CAPPING,{level:f,droppedLevel:c.currentLevel}),c.autoLevelCapping=f,this.streamController.nextLevelSwitch())}}this.lastTime=i,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 _u(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 yu(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){se.debug(`[texttrack-utils]: ${n}`);try{const i=new self.TextTrackCue(e.startTime,e.endTime,e.text);i.id=e.id,a.addCue(i)}catch(i){se.debug(`[texttrack-utils]: Legacy TextTrackCue fallback failed: ${i}`)}}t==="disabled"&&(a.mode=t)}function ka(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 Ol(a,e,t,n){const i=a.mode;if(i==="disabled"&&(a.mode="hidden"),a.cues&&a.cues.length>0){const r=Pc(a.cues,e,t);for(let s=0;s<r.length;s++)(!n||n(r[s]))&&a.removeCue(r[s])}i==="disabled"&&(a.mode=i)}function Mc(a,e){if(e<=a[0].startTime)return 0;const t=a.length-1;if(e>a[t].endTime)return-1;let n=0,i=t,r;for(;n<=i;)if(r=Math.floor((i+n)/2),e<a[r].startTime)i=r-1;else if(e>a[r].startTime&&n<t)n=r+1;else return r;return a[n].startTime-e<e-a[i].startTime?n:i}function Pc(a,e,t){const n=[],i=Mc(a,e);if(i>-1)for(let r=i,s=a.length;r<s;r++){const l=a[r];if(l.startTime>=e&&l.endTime<=t)n.push(l);else if(l.startTime>t)return n}return n}function Uo(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 Oc extends Wa{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=Uo(this.media.textTracks);for(let r=0;r<n.length;r++)if(n[r].mode==="hidden")t=n[r];else if(n[r].mode==="showing"){t=n[r];break}const i=this.findTrackForTextTrack(t);this.subtitleTrack!==i&&this.setSubtitleTrack(i)},this.registerListeners()}destroy(){this.unregisterListeners(),this.tracks.length=0,this.tracksInGroup.length=0,this.currentTrack=null,this.onTextTracksChanged=this.asyncPollTrackChange=null,super.destroy()}get subtitleDisplay(){return this._subtitleDisplay}set subtitleDisplay(e){this._subtitleDisplay=e,this.trackId>-1&&this.toggleTrackModes()}registerListeners(){const{hls:e}=this;e.on(m.MEDIA_ATTACHED,this.onMediaAttached,this),e.on(m.MEDIA_DETACHING,this.onMediaDetaching,this),e.on(m.MANIFEST_LOADING,this.onManifestLoading,this),e.on(m.MANIFEST_PARSED,this.onManifestParsed,this),e.on(m.LEVEL_LOADING,this.onLevelLoading,this),e.on(m.LEVEL_SWITCHING,this.onLevelSwitching,this),e.on(m.SUBTITLE_TRACK_LOADED,this.onSubtitleTrackLoaded,this),e.on(m.ERROR,this.onError,this)}unregisterListeners(){const{hls:e}=this;e.off(m.MEDIA_ATTACHED,this.onMediaAttached,this),e.off(m.MEDIA_DETACHING,this.onMediaDetaching,this),e.off(m.MANIFEST_LOADING,this.onManifestLoading,this),e.off(m.MANIFEST_PARSED,this.onManifestParsed,this),e.off(m.LEVEL_LOADING,this.onLevelLoading,this),e.off(m.LEVEL_SWITCHING,this.onLevelSwitching,this),e.off(m.SUBTITLE_TRACK_LOADED,this.onSubtitleTrackLoaded,this),e.off(m.ERROR,this.onError,this)}onMediaAttached(e,t){this.media=t.media,this.media&&(this.queuedDefaultTrack>-1&&(this.subtitleTrack=this.queuedDefaultTrack,this.queuedDefaultTrack=-1),this.useTextTrackPolling=!(this.media.textTracks&&"onchange"in this.media.textTracks),this.useTextTrackPolling?this.pollTrackChange(500):this.media.textTracks.addEventListener("change",this.asyncPollTrackChange))}pollTrackChange(e){self.clearInterval(this.subtitlePollingInterval),this.subtitlePollingInterval=self.setInterval(this.onTextTracksChanged,e)}onMediaDetaching(e,t){const n=this.media;if(!n)return;const i=!!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,i)return;Uo(n.textTracks).forEach(s=>{ka(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:i,details:r}=t,s=this.tracksInGroup[n];if(!s||s.groupId!==i){this.warn(`Subtitle track with id:${n} and group:${i} 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:${i} loaded [${r.startSN}-${r.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,i=this.groupIds;let r=this.currentTrack;if(!n||(i==null?void 0:i.length)!==(n==null?void 0:n.length)||n!=null&&n.some(s=>(i==null?void 0:i.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,g)=>{f.id=g});else if(!r&&!this.tracksInGroup.length)return;this.tracksInGroup=s;const l=this.hls.config.subtitlePreference;if(!r&&l){this.selectDefaultTrack=!1;const f=sn(l,s);if(f>-1)r=s[f];else{const g=sn(l,this.tracks);r=this.tracks[g]}}let h=this.findTrackId(r);h===-1&&r&&(h=this.findTrackId(null));const c={subtitleTracks:s};this.log(`Updating subtitle tracks, ${s.length} track(s) found in "${n==null?void 0:n.join(",")}" group-id`),this.hls.trigger(m.SUBTITLE_TRACKS_UPDATED,c),h!==-1&&this.trackId===-1&&this.setSubtitleTrack(h)}}findTrackId(e){const t=this.tracksInGroup,n=this.selectDefaultTrack;for(let i=0;i<t.length;i++){const r=t[i];if(!(n&&!r.default||!n&&!e)&&(!e||ln(r,e)))return i}if(e){for(let i=0;i<t.length;i++){const r=t[i];if(Da(e.attrs,r.attrs,["LANGUAGE","ASSOC-LANGUAGE","CHARACTERISTICS"]))return i}for(let i=0;i<t.length;i++){const r=t[i];if(Da(e.attrs,r.attrs,["LANGUAGE"]))return i}}return-1}findTrackForTextTrack(e){if(e){const t=this.tracksInGroup;for(let n=0;n<t.length;n++){const i=t[n];if(Ia(i,e))return n}}return-1}onError(e,t){t.fatal||!t.context||t.context.type===ve.SUBTITLE_TRACK&&t.context.id===this.trackId&&(!this.groupIds||this.groupIds.indexOf(t.context.groupId)!==-1)&&this.checkRetry(t)}get allSubtitleTracks(){return this.tracks}get subtitleTracks(){return this.tracksInGroup}get subtitleTrack(){return this.trackId}set subtitleTrack(e){this.selectDefaultTrack=!1,this.setSubtitleTrack(e)}setSubtitleOption(e){if(this.hls.config.subtitlePreference=e,e){if(e.id===-1)return this.setSubtitleTrack(-1),null;const t=this.allSubtitleTracks;if(this.selectDefaultTrack=!1,t.length){const n=this.currentTrack;if(n&&ln(e,n))return n;const i=sn(e,this.tracksInGroup);if(i>-1){const r=this.tracksInGroup[i];return this.setSubtitleTrack(i),r}else{if(n)return null;{const r=sn(e,t);if(r>-1)return t[r]}}}}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,i=e.groupId,r=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:${i}${(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:""):""} ${r}`),this.hls.trigger(m.SUBTITLE_TRACK_LOADING,{url:r,id:n,groupId:i,deliveryDirectives:t||null,track:e})}toggleTrackModes(){const{media:e}=this;if(!e)return;const t=Uo(e.textTracks),n=this.currentTrack;let i;if(n&&(i=t.filter(r=>Ia(n,r))[0],i||this.warn(`Unable to find subtitle TextTrack with name "${n.name}" and language "${n.lang}"`)),[].slice.call(t).forEach(r=>{r.mode!=="disabled"&&r!==i&&(r.mode="disabled")}),i){const r=this.subtitleDisplay?"showing":"hidden";i.mode!==r&&(i.mode=r)}}setSubtitleTrack(e){const t=this.tracksInGroup;if(!this.media){this.queuedDefaultTrack=e;return}if(e<-1||e>=t.length||!p(e)){this.warn(`Invalid subtitle track id: ${e}`);return}this.selectDefaultTrack=!1;const n=this.currentTrack,i=t[e]||null;if(this.trackId=e,this.currentTrack=i,this.toggleTrackModes(),!i){this.hls.trigger(m.SUBTITLE_TRACK_SWITCH,{id:e});return}const r=!!i.details&&!i.details.live;if(e===this.trackId&&i===n&&r)return;this.log(`Switching to subtitle-track ${e}`+(i?` "${i.name}" lang:${i.lang} group:${i.groupId}`:""));const{id:s,groupId:l="",name:h,type:c,url:f}=i;this.hls.trigger(m.SUBTITLE_TRACK_SWITCH,{id:s,groupId:l,name:h,type:c,url:f});const g=this.switchParams(i.url,n==null?void 0:n.details,i.details);this.loadPlaylist(g)}}function Nc(){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,i=>{const r=(t+Math.random()*16)%16|0;return t=Math.floor(t/16),(i=="x"?r:r&3|8).toString(16)})}}}function Za(a){let e=5381,t=a.length;for(;t;)e=e*33^a.charCodeAt(--t);return(e>>>0).toString()}const La=.025;let zo=function(a){return a[a.Point=0]="Point",a[a.Range=1]="Range",a}({});function Uc(a,e,t){return`${a.identifier}-${t+1}-${Za(e)}`}class zc{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 Nl(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=Nl(t,e);return t-n<.1}return!1}get resumptionOffset(){const e=this.resumeOffset,t=p(e)?e:this.duration;return this.cumulativeDuration+t}get resumeTime(){const e=this.startOffset+this.resumptionOffset;if(this.snapOptions.in){const t=this.resumeAnchor;if(t)return Nl(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)<La))}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"?zo.Range:zo.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 jc(this)}}function Nl(a,e){return a-e.start<e.duration/2&&!(Math.abs(a-(e.start+e.duration))<La)?e.start:e.start+e.duration}function Eu(a,e,t){const n=new self.URL(a,t);return n.protocol!=="data:"&&n.searchParams.set("_HLS_primary_id",e),n}function Ul(a,e){for(;(t=a.assetList[++e])!=null&&t.error;)var t;return e}function jc(a){return`["${a.identifier}" ${a.cue.pre?"<pre>":a.cue.post?"<post>":""}${a.timelineStart.toFixed(2)}-${a.resumeTime.toFixed(2)}]`}function Ra(a){const e=a.timelineStart,t=a.duration||0;return`["${a.identifier}" ${e.toFixed(2)}-${(e+t).toFixed(2)}]`}class Kc{constructor(e,t,n,i){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(m.PLAYOUT_LIMIT_REACHED,{})};const r=this.hls=new e(t);this.interstitial=n,this.assetItem=i;const s=()=>{this.hasDetails=!0};r.once(m.LEVEL_LOADED,s),r.once(m.AUDIO_TRACK_LOADED,s),r.once(m.SUBTITLE_TRACK_LOADED,s),r.on(m.MEDIA_ATTACHING,(l,{media:h})=>{this.removeMediaListeners(),this.mediaAttached=h,this.interstitial.playoutLimit&&(h.addEventListener("timeupdate",this.checkPlayout),this.appendInPlace&&r.on(m.BUFFER_APPENDED,()=>{const f=this.bufferedEnd;this.reachedPlayout(f)&&(this._bufferedEosTime=f,r.trigger(m.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=Eu(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),i=this.timelineOffset,r=Vn.bufferInfo(e,i,0);return this.getAssetTime(r.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=Vn.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 i;(i=this.hls)==null||i.on(e,t)}once(e,t,n){var i;(i=this.hls)==null||i.once(e,t)}off(e,t,n){var i;(i=this.hls)==null||i.off(e,t)}toString(){var e;return`HlsAssetPlayer: ${Ra(this.assetItem)} ${(e=this.hls)==null?void 0:e.sessionId} ${this.appendInPlace?"append-in-place":""}`}}const Au=.033;class Gc extends P{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,i)=>e<=i.startOffset&&t>i.startOffset?(delete i.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 i=this.items;if(i)for(i[n]||(t===void 0&&(t=e.start),n=this.findItemIndexAtTime(t));n>=0&&(r=i[n])!=null&&r.event;){var r;n--}return n}findItemIndexAtTime(e,t){const n=this.items;if(n)for(let i=0;i<n.length;i++){let r=n[i];if(t&&t!=="primary"&&(r=r[t]),e===r.start||e>r.start&&e<r.end)return i}return-1}findJumpRestrictedIndex(e,t){const n=this.items;if(n)for(let i=e;i<=t&&n[i];i++){const r=n[i].event;if(r!=null&&r.restrictions.jump&&!r.appendInPlace)return i}return-1}findEventIndex(e){const t=this.items;if(t)for(let i=t.length;i--;){var n;if(((n=t[i].event)==null?void 0:n.identifier)===e)return i}return-1}findAssetIndex(e,t){const n=e.assetList,i=n.length;if(i>1)for(let r=0;r<i;r++){const s=n[r];if(!s.error){const l=s.timelineStart;if(t===l||t>l&&(t<l+(s.duration||0)||r===i-1))return r}}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,i=n[n.length-1];if(i)return i.identifier}return null}parseInterstitialDateRanges(e,t){const n=e.main.details,{dateRanges:i}=n,r=this.events,s=this.parseDateRanges(i,{url:n.url},t),l=Object.keys(i),h=r?r.filter(c=>!l.includes(c.identifier)):[];s.length&&s.sort((c,f)=>{const g=c.cue.pre,A=c.cue.post,I=f.cue.pre,C=f.cue.post;if(g&&!I)return-1;if(I&&!g||A&&!C)return 1;if(C&&!A)return-1;if(!g&&!I&&!A&&!C){const Q=c.startTime,Z=f.startTime;if(Q!==Z)return Q-Z}return c.dateRange.tagOrder-f.dateRange.tagOrder}),this.events=s,h.forEach(c=>{this.removeEvent(c)}),this.updateSchedule(e,h)}updateSchedule(e,t=[],n=!1){const i=this.events||[];if(i.length||t.length||this.length<2){const r=this.items,s=this.parseSchedule(i,e);(n||t.length||(r==null?void 0:r.length)!==s.length||s.some((h,c)=>Math.abs(h.playout.start-r[c].playout.start)>.005||Math.abs(h.playout.end-r[c].playout.end)>.005))&&(this.items=s,this.onScheduleUpdate(t,r))}}parseDateRanges(e,t,n){const i=[],r=Object.keys(e);for(let s=0;s<r.length;s++){const l=r[s],h=e[l];if(h.isInterstitial){let c=this.eventMap[l];c?c.setDateRange(h):(c=new zc(h,t),this.eventMap[l]=c,n===!1&&(c.appendInPlace=n)),i.push(c)}}return i}parseSchedule(e,t){const n=[],i=t.main.details,r=i.live?1/0:i.edge;let s=0;if(e=e.filter(h=>!h.error&&!(h.cue.once&&h.hasPlayed)),e.length){this.resolveOffsets(e,t);let h=0,c=0;if(e.forEach((f,g)=>{const A=f.cue.pre,I=f.cue.post,C=e[g-1]||null,Q=f.appendInPlace,Z=I?r:f.startOffset,me=f.duration,ye=f.timelineOccupancy===zo.Range?me:0,be=f.resumptionOffset,Ue=(C==null?void 0:C.startTime)===Z,Je=Z+f.cumulativeDuration;let Bt=Q?Je+me:Z+be;if(A||!I&&Z<=0){const mt=c;c+=ye,f.timelineStart=Je;const gt=s;s+=me,n.push({event:f,start:Je,end:Bt,playout:{start:gt,end:s},integrated:{start:mt,end:c}})}else if(Z<=r){if(!Ue){const at=Z-h;if(at>Au){const Qt=h,Sn=c;c+=at;const zn=s;s+=at;const Jn={previousEvent:e[g-1]||null,nextEvent:f,start:Qt,end:Qt+at,playout:{start:zn,end:s},integrated:{start:Sn,end:c}};n.push(Jn)}else at>0&&C&&(C.cumulativeDuration+=at,n[n.length-1].end=Z)}I&&(Bt=Je),f.timelineStart=Je;const mt=c;c+=ye;const gt=s;s+=me,n.push({event:f,start:Je,end:Bt,playout:{start:gt,end:s},integrated:{start:mt,end:c}})}else return;const nt=f.resumeTime;I||nt>r?h=r:h=nt}),h<r){var l;const f=h,g=c,A=r-h;c+=A;const I=s;s+=A,n.push({previousEvent:((l=n[n.length-1])==null?void 0:l.event)||null,nextEvent:null,start:h,end:f+A,playout:{start:I,end:s},integrated:{start:g,end:c}})}this.setDurations(r,s,c)}else n.push({previousEvent:null,nextEvent:null,start:0,end:r,playout:{start:0,end:r},integrated:{start:0,end:r}}),this.setDurations(r,r,r);return n}setDurations(e,t,n){this.durations={primary:e,playout:t,integrated:n}}resolveOffsets(e,t){const n=t.main.details,i=n.live?1/0:n.edge;let r=0,s=-1;e.forEach((l,h)=>{const c=l.cue.pre,f=l.cue.post,g=c?0:f?i:l.startTime;this.updateAssetDurations(l),s===g?l.cumulativeDuration=r:(r=0,s=g),!f&&l.snapOptions.in&&(l.resumeAnchor=$e(null,n.fragments,l.startOffset+l.resumptionOffset,0,0)||void 0),l.appendInPlace&&!l.appendInPlaceStarted&&(this.primaryCanResumeInPlaceAt(l,t)||(l.appendInPlace=!1)),!l.appendInPlace&&h+1<e.length&&e[h+1].startTime-e[h].resumeTime<Au&&(e[h+1].appendInPlace=!1,e[h+1].appendInPlace&&this.warn(`Could not change append strategy for abutting event ${l}`));const I=p(l.resumeOffset)?l.resumeOffset:l.duration;r+=I})}primaryCanResumeInPlaceAt(e,t){const n=e.resumeTime,i=e.startTime+e.resumptionOffset;return Math.abs(n-i)>La?(this.log(`"${e.identifier}" resumption ${n} not aligned with estimated timeline end ${i}`),!1):!Object.keys(t).some(s=>{const l=t[s].details,h=l.edge;if(n>=h)return this.log(`"${e.identifier}" resumption ${n} past ${s} playlist end ${h}`),!1;const c=$e(null,l.fragments,n);if(!c)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(c.start-n)<La+f||Math.abs(c.end-n)<La+f?!1:(this.log(`"${e.identifier}" resumption ${n} not aligned with ${s} fragment bounds (${c.start}-${c.end} sn: ${c.sn} cc: ${c.cc})`),!0)})}updateAssetDurations(e){if(!e.assetListLoaded)return;const t=e.timelineStart;let n=0,i=!1,r=!1;for(let s=0;s<e.assetList.length;s++){const l=e.assetList[s],h=t+n;l.startOffset=n,l.timelineStart=h,i||(i=l.duration===null),r||(r=!!l.error);const c=l.error?0:l.duration||0;n+=c}i&&!r?e.duration=Math.max(n,e.duration):e.duration=n}removeEvent(e){e.reset(),delete this.eventMap[e.identifier]}}function ys(a){return`[${a.event?'"'+a.event.identifier+'"':"primary"}: ${a.start.toFixed(2)}-${a.end.toFixed(2)}]`}class Hc{constructor(e){this.hls=void 0,this.hls=e}destroy(){this.hls=null}loadAssetList(e,t){const n=e.assetListUrl;let i;try{i=Eu(n,this.hls.sessionId,e.baseUrl)}catch(A){const I=this.assignAssetListError(e,Y.ASSET_LIST_LOAD_ERROR,A,n);this.hls.trigger(m.ERROR,I);return}t&&i.protocol!=="data:"&&i.searchParams.set("_HLS_start_offset",""+t);const r=this.hls.config,s=r.loader,l=new s(r),h={responseType:"json",url:i.href},c=r.interstitialAssetListLoadPolicy.default,f={loadPolicy:c,timeout:c.maxLoadTimeMs,maxRetry:0,retryDelay:0,maxRetryDelay:0},g={onSuccess:(A,I,C,Q)=>{const Z=A.data,me=Z==null?void 0:Z.ASSETS;if(!Array.isArray(me)){const ye=this.assignAssetListError(e,Y.ASSET_LIST_PARSING_ERROR,new Error("Invalid interstitial asset list"),C.url,I,Q);this.hls.trigger(m.ERROR,ye);return}e.assetListResponse=Z,this.hls.trigger(m.ASSET_LIST_LOADED,{event:e,assetListResponse:Z,networkDetails:Q})},onError:(A,I,C,Q)=>{const Z=this.assignAssetListError(e,Y.ASSET_LIST_LOAD_ERROR,new Error(`Error loading X-ASSET-LIST: HTTP status ${A.code} ${A.text} (${I.url})`),I.url,Q,C);this.hls.trigger(m.ERROR,Z)},onTimeout:(A,I,C)=>{const Q=this.assignAssetListError(e,Y.ASSET_LIST_LOAD_TIMEOUT,new Error(`Timeout loading X-ASSET-LIST (${I.url})`),I.url,A,C);this.hls.trigger(m.ERROR,Q)}};return l.load(h,f,g),this.hls.trigger(m.ASSET_LIST_LOADING,{event:e}),l}assignAssetListError(e,t,n,i,r,s){return e.error=n,{type:ce.NETWORK_ERROR,details:t,fatal:!1,interstitial:e,url:i,error:n,networkDetails:s,stats:r}}}function bu(a){a==null||a.play().catch(()=>{})}function jo(a,e){return`[${a}] Advancing timeline position to ${e}`}class Vc extends P{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 i=n-this.timelinePos;if(Math.abs(i)<1/7056e5)return;const s=i<=-.01;this.timelinePos=n,this.bufferedPos=n;const l=this.playingItem;if(!l){this.checkBuffer();return}if(s&&this.schedule.resetErrorsInRange(n,n-i)&&this.updateSchedule(!0),this.checkBuffer(),s&&n<l.start||n>=l.end){var h;const I=this.findItemIndex(l);let C=this.schedule.findItemIndexAtTime(n);if(C===-1&&(C=I+(s?-1:1),this.log(`seeked ${s?"back ":""}to position not covered by schedule ${n} (resolving from ${I} to ${C})`)),!this.isInterstitial(l)&&(h=this.media)!=null&&h.paused&&(this.shouldPlay=!1),!s&&C>I){const Q=this.schedule.findJumpRestrictedIndex(I+1,C);if(Q>I){this.setSchedulePosition(Q);return}}this.setSchedulePosition(C);return}const c=this.playingAsset;if(!c){if(this.playingLastItem&&this.isInterstitial(l)){const I=l.event.assetList[0];I&&(this.endedItem=this.playingItem,this.playingItem=null,this.setScheduleToAssetAtTime(n,I))}return}const f=c.timelineStart,g=c.duration||0;if(s&&n<f||n>=f+g){var A;(A=l.event)!=null&&A.appendInPlace&&(this.clearInterstitial(l.event,l),this.flushFrontBuffer(n)),this.setScheduleToAssetAtTime(n,c)}},this.onTimeupdate=()=>{const n=this.currentTime;if(n===void 0||this.playbackDisabled)return;if(n>this.timelinePos)this.timelinePos=n,n>this.bufferedPos&&this.checkBuffer();else return;const i=this.playingItem;if(!i||this.playingLastItem)return;if(n>=i.end){this.timelinePos=i.end;const l=this.findItemIndex(i);this.setSchedulePosition(l+1)}const r=this.playingAsset;if(!r)return;const s=r.timelineStart+(r.duration||0);n>=s&&this.setScheduleToAssetAtTime(n,r)},this.onScheduleUpdate=(n,i)=>{const r=this.schedule;if(!r)return;const s=this.playingItem,l=r.events||[],h=r.items||[],c=r.durations,f=n.map(Q=>Q.identifier),g=!!(l.length||f.length);(g||i)&&this.log(`INTERSTITIALS_UPDATED (${l.length}): ${l}
Schedule: ${h.map(Q=>ys(Q))} pos: ${this.timelinePos}`),f.length&&this.log(`Removed events ${f}`);let A=null,I=null;s&&(A=this.updateItem(s,this.timelinePos),this.itemsMatch(s,A)?this.playingItem=A:this.waitingItem=this.endedItem=null),this.waitingItem=this.updateItem(this.waitingItem),this.endedItem=this.updateItem(this.endedItem);const C=this.bufferingItem;if(C&&(I=this.updateItem(C,this.bufferedPos),this.itemsMatch(C,I)?this.bufferingItem=I:C.event&&(this.bufferingItem=this.playingItem,this.clearInterstitial(C.event,null))),n.forEach(Q=>{Q.assetList.forEach(Z=>{this.clearAssetPlayer(Z.identifier,null)})}),this.playerQueue.forEach(Q=>{if(Q.interstitial.appendInPlace){const Z=Q.assetItem.timelineStart,me=Q.timelineOffset-Z;if(me)try{Q.timelineOffset=Z}catch(ye){Math.abs(me)>La&&this.warn(`${ye} ("${Q.assetId}" ${Q.timelineOffset}->${Z})`)}}}),g||i){if(this.hls.trigger(m.INTERSTITIALS_UPDATED,{events:l.slice(0),schedule:h.slice(0),durations:c,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(A,s),C&&I!==A&&this.trimInPlace(I,C),this.checkBuffer()}},this.hls=e,this.HlsPlayerClass=t,this.assetListLoader=new Hc(e),this.schedule=new Gc(this.onScheduleUpdate,e.logger),this.registerListeners()}registerListeners(){const e=this.hls;e&&(e.on(m.MEDIA_ATTACHING,this.onMediaAttaching,this),e.on(m.MEDIA_ATTACHED,this.onMediaAttached,this),e.on(m.MEDIA_DETACHING,this.onMediaDetaching,this),e.on(m.MANIFEST_LOADING,this.onManifestLoading,this),e.on(m.LEVEL_UPDATED,this.onLevelUpdated,this),e.on(m.AUDIO_TRACK_SWITCHING,this.onAudioTrackSwitching,this),e.on(m.AUDIO_TRACK_UPDATED,this.onAudioTrackUpdated,this),e.on(m.SUBTITLE_TRACK_SWITCH,this.onSubtitleTrackSwitch,this),e.on(m.SUBTITLE_TRACK_UPDATED,this.onSubtitleTrackUpdated,this),e.on(m.EVENT_CUE_ENTER,this.onInterstitialCueEnter,this),e.on(m.ASSET_LIST_LOADED,this.onAssetListLoaded,this),e.on(m.BUFFER_APPENDED,this.onBufferAppended,this),e.on(m.BUFFER_FLUSHED,this.onBufferFlushed,this),e.on(m.BUFFERED_TO_END,this.onBufferedToEnd,this),e.on(m.MEDIA_ENDED,this.onMediaEnded,this),e.on(m.ERROR,this.onError,this),e.on(m.DESTROYING,this.onDestroying,this))}unregisterListeners(){const e=this.hls;e&&(e.off(m.MEDIA_ATTACHING,this.onMediaAttaching,this),e.off(m.MEDIA_ATTACHED,this.onMediaAttached,this),e.off(m.MEDIA_DETACHING,this.onMediaDetaching,this),e.off(m.MANIFEST_LOADING,this.onManifestLoading,this),e.off(m.LEVEL_UPDATED,this.onLevelUpdated,this),e.off(m.AUDIO_TRACK_SWITCHING,this.onAudioTrackSwitching,this),e.off(m.AUDIO_TRACK_UPDATED,this.onAudioTrackUpdated,this),e.off(m.SUBTITLE_TRACK_SWITCH,this.onSubtitleTrackSwitch,this),e.off(m.SUBTITLE_TRACK_UPDATED,this.onSubtitleTrackUpdated,this),e.off(m.EVENT_CUE_ENTER,this.onInterstitialCueEnter,this),e.off(m.ASSET_LIST_LOADED,this.onAssetListLoaded,this),e.off(m.BUFFER_CODECS,this.onBufferCodecs,this),e.off(m.BUFFER_APPENDED,this.onBufferAppended,this),e.off(m.BUFFER_FLUSHED,this.onBufferFlushed,this),e.off(m.BUFFERED_TO_END,this.onBufferedToEnd,this),e.off(m.MEDIA_ENDED,this.onMediaEnded,this),e.off(m.ERROR,this.onError,this),e.off(m.DESTROYING,this.onDestroying,this))}startLoad(){this.resumeBuffering()}stopLoad(){this.pauseBuffering()}resumeBuffering(){var e;(e=this.getBufferingPlayer())==null||e.resumeBuffering()}pauseBuffering(){var e;(e=this.getBufferingPlayer())==null||e.pauseBuffering()}destroy(){this.unregisterListeners(),this.stopLoad(),this.assetListLoader&&this.assetListLoader.destroy(),this.emptyPlayerQueue(),this.clearScheduleState(),this.schedule&&this.schedule.destroy(),this.media=this.detachedData=this.mediaSelection=this.requiredTracks=this.altSelection=this.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){zr(e,"play",this.onPlay),zr(e,"pause",this.onPause),zr(e,"seeking",this.onSeeking),zr(e,"timeupdate",this.onTimeupdate)}onMediaAttaching(e,t){const n=this.media=t.media;Or(n,"seeking",this.onSeeking),Or(n,"timeupdate",this.onTimeupdate),Or(n,"play",this.onPlay),Or(n,"pause",this.onPause)}onMediaAttached(e,t){const n=this.effectivePlayingItem,i=this.detachedData;if(this.detachedData=null,n===null)this.checkStart();else if(!i){this.clearScheduleState();const r=this.findItemIndex(n);this.setSchedulePosition(r)}}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,i=this.media;if(this.media=null,!n&&(i&&this.removeMediaListeners(i),this.detachedData)){const r=this.getBufferingPlayer();r&&(this.log(`Removing schedule state for detachedData and ${r}`),this.playingAsset=this.endedAsset=this.bufferingAsset=this.bufferingItem=this.waitingItem=this.detachedData=null,r.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=g=>g&&e.getAssetPlayer(g.identifier),i=(g,A,I,C,Q)=>{if(g){let Z=g[A].start;const me=g.event;if(me){if(A==="playout"||me.timelineOccupancy!==zo.Point){const ye=n(I);(ye==null?void 0:ye.interstitial)===me&&(Z+=ye.assetItem.startOffset+ye[Q])}}else{const ye=C==="bufferedPos"?s():e[C];Z+=ye-g.start}return Z}return 0},r=(g,A)=>{var I;if(g!==0&&A!=="primary"&&(I=e.schedule)!=null&&I.length){var C;const Q=e.schedule.findItemIndexAtTime(g),Z=(C=e.schedule.items)==null?void 0:C[Q];if(Z){const me=Z[A].start-Z.start;return g+me}}return g},s=()=>{const g=e.bufferedPos;return g===Number.MAX_VALUE?l("primary"):Math.max(g,0)},l=g=>{var A,I;return(A=e.primaryDetails)!=null&&A.live?e.primaryDetails.edge:((I=e.schedule)==null?void 0:I.durations[g])||0},h=(g,A)=>{var I,C;const Q=e.effectivePlayingItem;if(Q!=null&&(I=Q.event)!=null&&I.restrictions.skip||!e.schedule)return;e.log(`seek to ${g} "${A}"`);const Z=e.effectivePlayingItem,me=e.schedule.findItemIndexAtTime(g,A),ye=(C=e.schedule.items)==null?void 0:C[me],be=e.getBufferingPlayer(),Ue=be==null?void 0:be.interstitial,Je=Ue==null?void 0:Ue.appendInPlace,Bt=Z&&e.itemsMatch(Z,ye);if(Z&&(Je||Bt)){const nt=n(e.playingAsset),mt=(nt==null?void 0:nt.media)||e.primaryMedia;if(mt){const gt=A==="primary"?mt.currentTime:i(Z,A,e.playingAsset,"timelinePos","currentTime"),at=g-gt,Qt=(Je?gt:mt.currentTime)+at;if(Qt>=0&&(!nt||Je||Qt<=nt.duration)){mt.currentTime=Qt;return}}}if(ye){let nt=g;if(A!=="primary"){const gt=ye[A].start,at=g-gt;nt=ye.start+at}const mt=!e.isInterstitial(ye);if((!e.isInterstitial(Z)||Z.event.appendInPlace)&&(mt||ye.event.appendInPlace)){const gt=e.media||(Je?be==null?void 0:be.media:null);gt&&(gt.currentTime=nt)}else if(Z){const gt=e.findItemIndex(Z);if(me>gt){const Qt=e.schedule.findJumpRestrictedIndex(gt+1,me);if(Qt>gt){e.setSchedulePosition(Qt);return}}let at=0;if(mt)e.timelinePos=nt,e.checkBuffer();else{const Qt=ye.event.assetList,Sn=g-(ye[A]||ye).start;for(let zn=Qt.length;zn--;){const Jn=Qt[zn];if(Jn.duration&&Sn>=Jn.startOffset&&Sn<Jn.startOffset+Jn.duration){at=zn;break}}}e.setSchedulePosition(me,at)}}},c=()=>{const g=e.effectivePlayingItem;if(e.isInterstitial(g))return g;const A=t();return e.isInterstitial(A)?A:null},f={get bufferedEnd(){const g=t(),A=e.bufferingItem;if(A&&A===g){var I;return i(A,"playout",e.bufferingAsset,"bufferedPos","bufferedEnd")-A.playout.start||((I=e.bufferingAsset)==null?void 0:I.startOffset)||0}return 0},get currentTime(){const g=c(),A=e.effectivePlayingItem;return A&&A===g?i(A,"playout",e.effectivePlayingAsset,"timelinePos","currentTime")-A.playout.start:0},set currentTime(g){const A=c(),I=e.effectivePlayingItem;I&&I===A&&h(g+I.playout.start,"playout")},get duration(){const g=c();return g?g.playout.end-g.playout.start:0},get assetPlayers(){var g;const A=(g=c())==null?void 0:g.event.assetList;return A?A.map(I=>e.getAssetPlayer(I.identifier)):[]},get playingIndex(){var g;const A=(g=c())==null?void 0:g.event;return A&&e.effectivePlayingAsset?A.findAssetIndex(e.effectivePlayingAsset):-1},get scheduleItem(){return c()}};return this.manager={get events(){var g;return((g=e.schedule)==null||(g=g.events)==null?void 0:g.slice(0))||[]},get schedule(){var g;return((g=e.schedule)==null||(g=g.items)==null?void 0:g.slice(0))||[]},get interstitialPlayer(){return c()?f:null},get playerQueue(){return e.playerQueue.slice(0)},get bufferingAsset(){return e.bufferingAsset},get bufferingItem(){return t()},get bufferingIndex(){const g=t();return e.findItemIndex(g)},get playingAsset(){return e.effectivePlayingAsset},get playingItem(){return e.effectivePlayingItem},get playingIndex(){const g=e.effectivePlayingItem;return e.findItemIndex(g)},primary:{get bufferedEnd(){return s()},get currentTime(){const g=e.timelinePos;return g>0?g:0},set currentTime(g){h(g,"primary")},get duration(){return l("primary")},get seekableStart(){var g;return((g=e.primaryDetails)==null?void 0:g.fragmentStart)||0}},integrated:{get bufferedEnd(){return i(t(),"integrated",e.bufferingAsset,"bufferedPos","bufferedEnd")},get currentTime(){return i(e.effectivePlayingItem,"integrated",e.effectivePlayingAsset,"timelinePos","currentTime")},set currentTime(g){h(g,"integrated")},get duration(){return l("integrated")},get seekableStart(){var g;return r(((g=e.primaryDetails)==null?void 0:g.fragmentStart)||0,"integrated")}},skip:()=>{const g=e.effectivePlayingItem,A=g==null?void 0:g.event;if(A&&!A.restrictions.skip){const I=e.findItemIndex(g);if(A.appendInPlace){const C=g.playout.start+g.event.duration;h(C+.001,"playout")}else e.advanceAfterAssetEnded(A,I,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 i=this.media;!i&&(e=this.bufferingItem)!=null&&(e=e.event)!=null&&e.appendInPlace&&(i=this.primaryMedia);const r=(t=i)==null?void 0:t.currentTime;if(!(r===void 0||!p(r)))return r}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,i=e.media;if(n&&i===this.primaryMedia){if(this.bufferingAsset=null,(!t||this.isInterstitial(t)&&!t.event.appendInPlace)&&t&&i){this.detachedData={media:i};return}const r=e.transferMedia();this.log(`transfer MediaSource from ${e} ${ut(r)}`),this.detachedData=r}else t&&i&&(this.shouldPlay||(this.shouldPlay=!i.paused))}transferMediaTo(e,t){var n,i;if(e.media===t)return;let r=null;const s=this.hls,l=e!==s,h=l&&e.interstitial.appendInPlace,c=(n=this.detachedData)==null?void 0:n.mediaSource;let f;if(s.media)h&&(r=s.transferMedia(),this.detachedData=r),f="Primary";else if(c){const C=this.getBufferingPlayer();C?(r=C.transferMedia(),f=`${C}`):f="detached MediaSource"}else f="detached media";if(!r){if(c)r=this.detachedData,this.log(`using detachedData: MediaSource ${ut(r)}`);else if(!this.detachedData||s.media===t){const C=this.playerQueue;C.length>1&&C.forEach(Q=>{if(l&&Q.interstitial.appendInPlace!==h){const Z=Q.interstitial;this.clearInterstitial(Q.interstitial,null),Z.appendInPlace=!1,Z.appendInPlace&&this.warn(`Could not change append strategy for queued assets ${Z}`)}}),this.hls.detachMedia(),this.detachedData={media:t}}}const g=r&&"mediaSource"in r&&((i=r.mediaSource)==null?void 0:i.readyState)!=="closed",A=g&&r?r:t;this.log(`${g?"transfering MediaSource":"attaching media"} to ${l?e:"Primary"} from ${f} (media.currentTime: ${t.currentTime})`);const I=this.schedule;if(A===r&&I){const C=l&&e.assetId===I.assetIdAtEnd;A.overrides={duration:I.duration,endOfStream:!l||C,cueRemoval:!l}}e.attachMedia(A)}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,i=this.effectivePlayingItem;if(n===-1){const r=this.hls.startPosition;if(this.log(jo("checkStart",r)),this.timelinePos=r,t.length&&t[0].cue.pre){const s=e.findEventIndex(t[0].identifier);this.setSchedulePosition(s)}else if(r>=0||!this.primaryLive){const s=this.timelinePos=r>0?r:0,l=e.findItemIndexAtTime(s);this.setSchedulePosition(l)}}else if(i&&!this.playingItem){const r=e.findItemIndex(i);this.setSchedulePosition(r)}}advanceAssetBuffering(e,t){const n=e.event,i=n.findAssetIndex(t),r=Ul(n,i);if(!n.isAssetPastPlayoutLimit(r))this.bufferedToEvent(e,r);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 i=Ul(e,n);if(e.isAssetPastPlayoutLimit(i)){if(this.schedule){const r=this.schedule.items;if(r){const s=t+1,l=r.length;if(s>=l){this.setSchedulePosition(-1);return}const h=e.resumeTime;this.timelinePos<h&&(this.log(jo("advanceAfterAssetEnded",h)),this.timelinePos=h,e.appendInPlace&&this.advanceInPlace(h),this.checkBuffer(this.bufferedPos<h)),this.setSchedulePosition(s)}}}else{if(e.appendInPlace){const r=e.assetList[i];r&&this.advanceInPlace(r.timelineStart)}this.setSchedulePosition(t,i)}}setScheduleToAssetAtTime(e,t){const n=this.schedule;if(!n)return;const i=t.parentIdentifier,r=n.getEvent(i);if(r){const s=n.findEventIndex(i),l=n.findAssetIndex(r,e);this.advanceAfterAssetEnded(r,s,l-1)}}setSchedulePosition(e,t){var n;const i=(n=this.schedule)==null?void 0:n.items;if(!i||this.playbackDisabled)return;const r=e>=0?i[e]:null;this.log(`setSchedulePosition ${e}, ${t} (${r&&ys(r)}) pos: ${this.timelinePos}`);const s=this.waitingItem||this.playingItem,l=this.playingLastItem;if(this.isInterstitial(s)){const f=s.event,g=this.playingAsset,A=g==null?void 0:g.identifier,I=A?this.getAssetPlayer(A):null;if(I&&A&&(!this.eventItemsMatch(s,r)||t!==void 0&&A!==f.assetList[t].identifier)){var h;const C=f.findAssetIndex(g);if(this.log(`INTERSTITIAL_ASSET_ENDED ${C+1}/${f.assetList.length} ${Ra(g)}`),this.endedAsset=g,this.playingAsset=null,this.hls.trigger(m.INTERSTITIAL_ASSET_ENDED,{asset:g,assetListIndex:C,event:f,schedule:i.slice(0),scheduleIndex:e,player:I}),s!==this.playingItem){this.itemsMatch(s,this.playingItem)&&!this.playingAsset&&this.advanceAfterAssetEnded(f,this.findItemIndex(this.playingItem),C);return}this.retreiveMediaSource(A,r),I.media&&!((h=this.detachedData)!=null&&h.mediaSource)&&I.detachMedia()}if(!this.eventItemsMatch(s,r)&&(this.endedItem=s,this.playingItem=null,this.log(`INTERSTITIAL_ENDED ${f} ${ys(s)}`),f.hasPlayed=!0,this.hls.trigger(m.INTERSTITIAL_ENDED,{event:f,schedule:i.slice(0),scheduleIndex:e}),f.cue.once)){var c;this.updateSchedule();const C=(c=this.schedule)==null?void 0:c.items;if(r&&C){const Q=this.findItemIndex(r);this.advanceSchedule(Q,C,t,s,l)}return}}this.advanceSchedule(e,i,t,s,l)}advanceSchedule(e,t,n,i,r){const s=this.schedule;if(!s)return;const l=t[e]||null,h=this.primaryMedia,c=this.playerQueue;if(c.length&&c.forEach(f=>{const g=f.interstitial,A=s.findEventIndex(g.identifier);(A<e||A>e+1)&&this.clearInterstitial(g,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 C=Ul(f,n-1);if(f.isAssetPastPlayoutLimit(C)||f.appendInPlace&&this.timelinePos===l.end){this.advanceAfterAssetEnded(f,e,n);return}n=C}const g=this.waitingItem;this.assetsBuffered(l,h)||this.setBufferingItem(l);let A=this.preloadAssets(f,n);if(this.eventItemsMatch(l,g||i)||(this.waitingItem=l,this.log(`INTERSTITIAL_STARTED ${ys(l)} ${f.appendInPlace?"append in place":""}`),this.hls.trigger(m.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),!h){this.log(`Waiting for attachMedia to start Interstitial ${f}`);return}this.waitingItem=this.endedItem=null,this.playingItem=l;const I=f.assetList[n];if(!I){this.advanceAfterAssetEnded(f,e,n||0);return}if(A||(A=this.getAssetPlayer(I.identifier)),A===null||A.destroyed){const C=f.assetList.length;this.warn(`asset ${n+1}/${C} player destroyed ${f}`),A=this.createAssetPlayer(f,I,n),A.loadSource()}if(!this.eventItemsMatch(l,this.bufferingItem)&&f.appendInPlace&&this.isAssetBuffered(I))return;this.startAssetPlayer(A,n,t,e,h),this.shouldPlay&&bu(A.media)}else l?(this.resumePrimary(l,e,i),this.shouldPlay&&bu(this.hls.media)):r&&this.isInterstitial(i)&&(this.endedItem=null,this.playingItem=i,i.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 i,r;if(this.playingItem=e,this.playingAsset=this.endedAsset=null,this.waitingItem=this.endedItem=null,this.bufferedToItem(e),this.log(`resuming ${ys(e)}`),!((i=this.detachedData)!=null&&i.mediaSource)){let l=this.timelinePos;(l<e.start||l>=e.end)&&(l=this.getPrimaryResumption(e,t),this.log(jo("resumePrimary",l)),this.timelinePos=l),this.attachPrimary(l,e)}if(!n)return;const s=(r=this.schedule)==null?void 0:r.items;s&&(this.log(`INTERSTITIALS_PRIMARY_RESUMED ${ys(e)}`),this.hls.trigger(m.INTERSTITIALS_PRIMARY_RESUMED,{schedule:s.slice(0),scheduleIndex:t}),this.checkBuffer())}getPrimaryResumption(e,t){const n=e.start;if(this.primaryLive){const i=this.primaryDetails;if(t===0)return this.hls.startPosition;if(i&&(n<i.fragmentStart||n>i.edge))return this.hls.liveSyncPosition||-1}return n}isAssetBuffered(e){const t=this.getAssetPlayer(e.identifier);return t!=null&&t.hls?t.hls.bufferedToEnd:Vn.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 i=this.primaryMedia;if(!i)return;const r=this.hls;r.media?this.checkBuffer():(this.transferMediaTo(r,i),n&&this.startLoadingPrimaryAt(e,n)),n||(this.log(jo("attachPrimary",e)),this.timelinePos=e,this.startLoadingPrimaryAt(e,n))}startLoadingPrimaryAt(e,t){var n;const i=this.hls;!i.loadingEnabled||!i.media||Math.abs((((n=i.mainForwardBufferInfo)==null?void 0:n.start)||i.media.currentTime)-e)>.5?i.startLoad(e,t):i.bufferingEnabled||i.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(m.BUFFER_CODECS,this.onBufferCodecs,this),this.hls.on(m.BUFFER_CODECS,this.onBufferCodecs,this)}onLevelUpdated(e,t){if(t.level===-1||!this.schedule)return;const n=this.hls.levels[t.level];if(!n.details)return;const i=E(E({},this.mediaSelection||this.altSelection),{},{main:n});this.mediaSelection=i,this.schedule.parseInterstitialDateRanges(i,this.hls.config.interstitialAppendInPlace),!this.effectivePlayingItem&&this.schedule.items&&this.checkStart()}onAudioTrackUpdated(e,t){const n=this.hls.audioTracks[t.id],i=this.mediaSelection;if(!i){this.altSelection=E(E({},this.altSelection),{},{audio:n});return}const r=E(E({},i),{},{audio:n});this.mediaSelection=r}onSubtitleTrackUpdated(e,t){const n=this.hls.subtitleTracks[t.id],i=this.mediaSelection;if(!i){this.altSelection=E(E({},this.altSelection),{},{subtitles:n});return}const r=E(E({},i),{},{subtitles:n});this.mediaSelection=r}onAudioTrackSwitching(e,t){const n=Wt(t);this.playerQueue.forEach(({hls:i})=>i&&(i.setAudioOption(t)||i.setAudioOption(n)))}onSubtitleTrackSwitch(e,t){const n=Wt(t);this.playerQueue.forEach(({hls:i})=>i&&(i.setSubtitleOption(t)||t.id!==-1&&i.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 i=this.timelinePos;this.bufferedPos=i,this.checkBuffer()}}onBufferedToEnd(e){if(!this.schedule)return;const t=this.schedule.events;if(this.bufferedPos<Number.MAX_VALUE&&t){for(let i=0;i<t.length;i++){const r=t[i];if(r.cue.post){var n;const s=this.schedule.findEventIndex(r.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 i=(n=this.schedule)==null?void 0:n.items;if(e&&i){const r=this.findItemIndex(e,t);return i[r]||null}return null}trimInPlace(e,t){if(this.isInterstitial(e)&&e.event.appendInPlace&&t.end-e.end>.25){e.event.assetList.forEach((r,s)=>{e.event.isAssetPastPlayoutLimit(s)&&this.clearAssetPlayer(r.identifier,null)});const n=e.end+.25,i=Vn.bufferInfo(this.primaryMedia,n,0);(i.end>n||(i.nextStart||0)>n)&&(this.log(`trim buffered interstitial ${ys(e)} (was ${ys(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 i=Vn.bufferInfo(this.primaryMedia,this.timelinePos,0);e&&(this.bufferedPos=this.timelinePos),e||(e=i.len<1),this.updateBufferedPos(i.end,n,e)}updateBufferedPos(e,t,n){const i=this.schedule,r=this.bufferingItem;if(this.bufferedPos>e||!i)return;if(t.length===1&&this.itemsMatch(t[0],r)){this.bufferedPos=e;return}const s=this.playingItem,l=this.findItemIndex(s);let h=i.findItemIndexAtTime(e);if(this.bufferedPos<e){var c;const f=this.findItemIndex(r),g=Math.min(f+1,t.length-1),A=t[g];if((h===-1&&r&&e>=r.end||(c=A.event)!=null&&c.appendInPlace&&e+.01>=A.start)&&(h=g),this.isInterstitial(r)){const I=r.event;if(g-l>1&&I.appendInPlace===!1||I.assetList.length===0&&I.assetListLoader)return}if(this.bufferedPos=e,h>f&&h>l)this.bufferedToItem(A);else{const I=this.primaryDetails;this.primaryLive&&I&&e>I.edge-I.targetduration&&A.start<I.edge+this.hls.config.interstitialLiveLookAhead&&this.isInterstitial(A)&&this.preloadAssets(A.event,0)}}else n&&s&&!this.itemsMatch(s,r)&&(h===l?this.bufferedToItem(s):h===l+1&&this.bufferedToItem(t[h]))}assetsBuffered(e,t){return e.event.assetList.length===0?!1:!e.event.assetList.some(i=>{const r=this.getAssetPlayer(i.identifier);return!(r!=null&&r.bufferedInPlaceToEnd(t))})}setBufferingItem(e){const t=this.bufferingItem,n=this.schedule;if(!this.itemsMatch(e,t)&&n){const{items:i,events:r}=n;if(!i||!r)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 h=l?l.remaining:t?t.end-this.timelinePos:0;if(this.log(`INTERSTITIALS_BUFFERED_TO_BOUNDARY ${ys(e)}`+(t?` (${h.toFixed(2)} remaining)`:"")),!this.playbackDisabled)if(s){const c=n.findAssetIndex(e.event,this.bufferedPos);e.event.assetList.forEach((f,g)=>{const A=this.getAssetPlayer(f.identifier);A&&(g===c&&A.loadSource(),A.resumeBuffering())})}else this.hls.resumeBuffering(),this.playerQueue.forEach(c=>c.pauseBuffering());this.hls.trigger(m.INTERSTITIALS_BUFFERED_TO_BOUNDARY,{events:r.slice(0),schedule:i.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 i=this.detachedData;i?i.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,i=n.assetList.length===0&&!n.assetListLoader,r=n.cue.once;if(i||!r){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,i=e.assetList.length,r=i===0&&!e.assetListLoader,s=e.cue.once;if(r){const h=e.timelineStart;if(e.appendInPlace){var l;const A=this.playingItem;!this.isInterstitial(A)&&(A==null||(l=A.nextEvent)==null?void 0:l.identifier)===e.identifier&&this.flushFrontBuffer(h+.25)}let c,f=0;if(!this.playingItem&&this.primaryLive&&(f=this.hls.startPosition,f===-1&&(f=this.hls.liveSyncPosition||0)),f&&!(e.cue.pre||e.cue.post)){const A=f-h;A>0&&(c=Math.round(A*1e3)/1e3)}if(this.log(`Load interstitial asset ${t+1}/${n?1:i} ${e}${c?` live-start: ${f} start-offset: ${c}`:""}`),n)return this.createAsset(e,0,0,h,e.duration,n);const g=this.assetListLoader.loadAssetList(e,c);g&&(e.assetListLoader=g)}else if(!s&&i){for(let c=t;c<i;c++){const f=e.assetList[c],g=this.getAssetPlayerQueueIndex(f.identifier);(g===-1||this.playerQueue[g].destroyed)&&!f.error&&this.createAssetPlayer(e,f,c)}const h=e.assetList[t];if(h){const c=this.getAssetPlayer(h.identifier);return c&&c.loadSource(),c}}return null}flushFrontBuffer(e){const t=this.requiredTracks;if(!t)return;this.log(`Removing front buffer starting at ${e}`),Object.keys(t).forEach(i=>{this.hls.trigger(m.BUFFER_FLUSHING,{startOffset:e,endOffset:1/0,type:i})})}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,i,r,s){const l={parentIdentifier:e.identifier,identifier:Uc(e,s,t),duration:r,startOffset:n,timelineStart:i,uri:s};return this.createAssetPlayer(e,l,t)}createAssetPlayer(e,t,n){const i=this.hls,r=i.userConfig;let s=r.videoPreference;const l=i.loadLevelObj||i.levels[i.currentLevel];(s||l)&&(s=_({},s),l.videoCodec&&(s.videoCodec=l.videoCodec),l.videoRange&&(s.allowedVideoRanges=[l.videoRange]));const h=i.audioTracks[i.audioTrack],c=i.subtitleTracks[i.subtitleTrack];let f=0;if(this.primaryLive||e.appendInPlace){const Ue=this.timelinePos-t.timelineStart;if(Ue>1){const Je=t.duration;Je&&Ue<Je&&(f=Ue)}}const g=t.identifier,A=E(E({},r),{},{maxMaxBufferLength:Math.min(180,i.config.maxMaxBufferLength),autoStartLoad:!0,startFragPrefetch:!0,primarySessionId:i.sessionId,assetPlayerId:g,abrEwmaDefaultEstimate:i.bandwidthEstimate,interstitialsController:void 0,startPosition:f,liveDurationInfinity:!1,testBandwidth:!1,videoPreference:s,audioPreference:h||r.audioPreference,subtitlePreference:c||r.subtitlePreference});e.appendInPlace&&(e.appendInPlaceStarted=!0,t.timelineStart&&(A.timelineOffset=t.timelineStart));const I=A.cmcd;I!=null&&I.sessionId&&I.contentId&&(A.cmcd=_({},I,{contentId:Za(t.uri)})),this.getAssetPlayer(g)&&this.warn(`Duplicate date range identifier ${e} and asset ${g}`);const C=new Kc(this.HlsPlayerClass,A,e,t);this.playerQueue.push(C),e.assetList[n]=t;let Q=!0;const Z=Ue=>{if(Ue.live){var Je;const mt=new Error(`Interstitials MUST be VOD assets ${e}`),gt={fatal:!0,type:ce.OTHER_ERROR,details:Y.INTERSTITIAL_ASSET_ITEM_ERROR,error:mt},at=((Je=this.schedule)==null?void 0:Je.findEventIndex(e.identifier))||-1;this.handleAssetItemError(gt,e,at,n,mt.message);return}const Bt=Ue.edge-Ue.fragmentStart,nt=t.duration;(Q||nt===null||Bt>nt)&&(Q=!1,this.log(`Interstitial asset "${g}" duration change ${nt} > ${Bt}`),t.duration=Bt,this.updateSchedule())};C.on(m.LEVEL_UPDATED,(Ue,{details:Je})=>Z(Je)),C.on(m.LEVEL_PTS_UPDATED,(Ue,{details:Je})=>Z(Je)),C.on(m.EVENT_CUE_ENTER,()=>this.onInterstitialCueEnter());const me=(Ue,Je)=>{const Bt=this.getAssetPlayer(g);if(Bt&&Je.tracks){Bt.off(m.BUFFER_CODECS,me),Bt.tracks=Je.tracks;const nt=this.primaryMedia;this.bufferingAsset===Bt.assetItem&&nt&&!Bt.media&&this.bufferAssetPlayer(Bt,nt)}};C.on(m.BUFFER_CODECS,me);const ye=()=>{var Ue;const Je=this.getAssetPlayer(g);if(this.log(`buffered to end of asset ${Je}`),!Je||!this.schedule)return;const Bt=this.schedule.findEventIndex(e.identifier),nt=(Ue=this.schedule.items)==null?void 0:Ue[Bt];this.isInterstitial(nt)&&this.advanceAssetBuffering(nt,t)};C.on(m.BUFFERED_TO_END,ye);const be=Ue=>()=>{if(!this.getAssetPlayer(g)||!this.schedule)return;this.shouldPlay=!0;const Bt=this.schedule.findEventIndex(e.identifier);this.advanceAfterAssetEnded(e,Bt,Ue)};return C.once(m.MEDIA_ENDED,be(n)),C.once(m.PLAYOUT_LIMIT_REACHED,be(1/0)),C.on(m.ERROR,(Ue,Je)=>{if(!this.schedule)return;const Bt=this.getAssetPlayer(g);if(Je.details===Y.BUFFER_STALLED_ERROR){if(Bt!=null&&Bt.appendInPlace){this.handleInPlaceStall(e);return}this.onTimeupdate(),this.checkBuffer(!0);return}this.handleAssetItemError(Je,e,this.schedule.findEventIndex(e.identifier),n,`Asset player error ${Je.error} ${e}`)}),C.on(m.DESTROYING,()=>{if(!this.getAssetPlayer(g)||!this.schedule)return;const Je=new Error(`Asset player destroyed unexpectedly ${g}`),Bt={fatal:!0,type:ce.OTHER_ERROR,details:Y.INTERSTITIAL_ASSET_ITEM_ERROR,error:Je};this.handleAssetItemError(Bt,e,this.schedule.findEventIndex(e.identifier),n,Je.message)}),this.log(`INTERSTITIAL_ASSET_PLAYER_CREATED ${Ra(t)}`),this.hls.trigger(m.INTERSTITIAL_ASSET_PLAYER_CREATED,{asset:t,assetListIndex:n,event:e,player:C}),C}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 i=this.playerQueue[n];this.log(`clear ${i} toSegment: ${t&&ys(t)}`),this.transferMediaFromPlayer(i,t),this.playerQueue.splice(n,1),i.destroy()}}emptyPlayerQueue(){let e;for(;e=this.playerQueue.pop();)e.destroy();this.playerQueue=[]}startAssetPlayer(e,t,n,i,r){const{interstitial:s,assetItem:l,assetId:h}=e,c=s.assetList.length,f=this.playingAsset;this.endedAsset=null,this.playingAsset=l,(!f||f.identifier!==h)&&(f&&(this.clearAssetPlayer(f.identifier,n[i]),delete f.error),this.log(`INTERSTITIAL_ASSET_STARTED ${t+1}/${c} ${Ra(l)}`),this.hls.trigger(m.INTERSTITIAL_ASSET_STARTED,{asset:l,assetListIndex:t,event:s,schedule:n.slice(0),scheduleIndex:i,player:e})),this.bufferAssetPlayer(e,r)}bufferAssetPlayer(e,t){var n,i;if(!this.schedule)return;const{interstitial:r,assetItem:s}=e,l=this.schedule.findEventIndex(r.identifier),h=(n=this.schedule.items)==null?void 0:n[l];if(!h)return;e.loadSource(),this.setBufferingItem(h),this.bufferingAsset=s;const c=this.getBufferingPlayer();if(c===e)return;const f=r.appendInPlace;if(f&&(c==null?void 0:c.interstitial.appendInPlace)===!1)return;const g=(c==null?void 0:c.tracks)||((i=this.detachedData)==null?void 0:i.tracks)||this.requiredTracks;if(f&&s!==this.playingAsset){if(!e.tracks){this.log(`Waiting for track info before buffering ${e}`);return}if(g&&!ie(g,e.tracks)){const A=new Error(`Asset ${Ra(s)} SourceBuffer tracks ('${Object.keys(e.tracks)}') are not compatible with primary content tracks ('${Object.keys(g)}')`),I={fatal:!0,type:ce.OTHER_ERROR,details:Y.INTERSTITIAL_ASSET_ITEM_ERROR,error:A},C=r.findAssetIndex(s);this.handleAssetItemError(I,r,l,C,A.message);return}}this.transferMediaTo(e,t)}handleInPlaceStall(e){const t=this.schedule,n=this.primaryMedia;if(!t||!n)return;const i=n.currentTime,r=t.findAssetIndex(e,i),s=e.assetList[r];if(s){const l=this.getAssetPlayer(s.identifier);if(l){const h=l.currentTime||i-s.timelineStart,c=l.duration-h;if(this.warn(`Stalled at ${h} of ${h+c} in ${l} ${e} (media.currentTime: ${i})`),h&&(c/n.playbackRate<.5||l.bufferedInPlaceToEnd(n))&&l.hls){const f=t.findEventIndex(e.identifier);this.advanceAfterAssetEnded(e,f,r)}}}}advanceInPlace(e){const t=this.primaryMedia;t&&t.currentTime<e&&(t.currentTime=e)}handleAssetItemError(e,t,n,i,r){if(e.details===Y.BUFFER_STALLED_ERROR)return;const s=t.assetList[i]||null;if(this.warn(`INTERSTITIAL_ASSET_ERROR ${s&&Ra(s)} ${e.error}`),!this.schedule)return;const l=(s==null?void 0:s.identifier)||"",h=this.getAssetPlayerQueueIndex(l),c=this.playerQueue[h]||null,f=this.schedule.items,g=_({},e,{fatal:!1,errorAction:Ln(!0),asset:s,assetListIndex:i,event:t,schedule:f,scheduleIndex:n,player:c});if(this.hls.trigger(m.INTERSTITIAL_ASSET_ERROR,g),!e.fatal)return;const A=this.playingAsset,I=this.bufferingAsset,C=new Error(r);if(s&&(this.clearAssetPlayer(l,null),s.error=C),!t.assetList.some(Q=>!Q.error))t.error=C;else for(let Q=i;Q<t.assetList.length;Q++)this.resetAssetPlayer(t.assetList[Q].identifier);this.updateSchedule(!0),t.error?this.primaryFallback(t):A&&A.identifier===l?this.advanceAfterAssetEnded(t,n,i):I&&I.identifier===l&&this.isInterstitial(this.bufferingItem)&&this.advanceAssetBuffering(this.bufferingItem,I)}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: ${ys(n)} error: ${e.error}`);let i=this.timelinePos;i===-1&&(i=this.hls.startPosition);const r=this.updateItem(n,i);if(this.itemsMatch(n,r)&&this.clearInterstitial(e,null),e.appendInPlace&&(this.attachPrimary(t,null),this.flushFrontBuffer(t)),!this.schedule)return;const s=this.schedule.findItemIndexAtTime(i);this.setSchedulePosition(s)}else this.checkStart()}onAssetListLoaded(e,t){var n,i;const r=t.event,s=r.identifier,l=t.assetListResponse.ASSETS;if(!((n=this.schedule)!=null&&n.hasEvent(s)))return;const h=r.timelineStart,c=r.duration;let f=0;l.forEach((Q,Z)=>{const me=parseFloat(Q.DURATION);this.createAsset(r,Z,f,h+f,me,Q.URI),f+=me}),r.duration=f,this.log(`Loaded asset-list with duration: ${f} (was: ${c}) ${r}`);const g=this.waitingItem,A=(g==null?void 0:g.event.identifier)===s;this.updateSchedule();const I=(i=this.bufferingItem)==null?void 0:i.event;if(A){var C;const Q=this.schedule.findEventIndex(s),Z=(C=this.schedule.items)==null?void 0:C[Q];if(Z){if(!this.playingItem&&this.timelinePos>Z.end&&this.schedule.findItemIndexAtTime(this.timelinePos)!==Q){r.error=new Error(`Interstitial no longer within playback range ${this.timelinePos} ${r}`),this.updateSchedule(!0),this.primaryFallback(r);return}this.setBufferingItem(Z)}this.setSchedulePosition(Q)}else if((I==null?void 0:I.identifier)===s){const Q=r.assetList[0];if(Q){const Z=this.getAssetPlayer(Q.identifier);if(I.appendInPlace){const me=this.primaryMedia;Z&&me&&this.bufferAssetPlayer(Z,me)}else Z&&Z.loadSource()}}}onError(e,t){if(this.schedule)switch(t.details){case Y.ASSET_LIST_PARSING_ERROR:case Y.ASSET_LIST_LOAD_ERROR:case Y.ASSET_LIST_LOAD_TIMEOUT:{const n=t.interstitial;n&&(this.updateSchedule(!0),this.primaryFallback(n));break}case Y.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 xu=500;class Wc extends la{constructor(e,t,n){super(e,t,n,"subtitle-stream-controller",U.SUBTITLE),this.currentTrackId=-1,this.tracksBuffered=[],this.mainDetails=null,this.registerListeners()}onHandlerDestroying(){this.unregisterListeners(),super.onHandlerDestroying(),this.mainDetails=null}registerListeners(){super.registerListeners();const{hls:e}=this;e.on(m.LEVEL_LOADED,this.onLevelLoaded,this),e.on(m.SUBTITLE_TRACKS_UPDATED,this.onSubtitleTracksUpdated,this),e.on(m.SUBTITLE_TRACK_SWITCH,this.onSubtitleTrackSwitch,this),e.on(m.SUBTITLE_TRACK_LOADED,this.onSubtitleTrackLoaded,this),e.on(m.SUBTITLE_FRAG_PROCESSED,this.onSubtitleFragProcessed,this),e.on(m.BUFFER_FLUSHING,this.onBufferFlushing,this)}unregisterListeners(){super.unregisterListeners();const{hls:e}=this;e.off(m.LEVEL_LOADED,this.onLevelLoaded,this),e.off(m.SUBTITLE_TRACKS_UPDATED,this.onSubtitleTracksUpdated,this),e.off(m.SUBTITLE_TRACK_SWITCH,this.onSubtitleTrackSwitch,this),e.off(m.SUBTITLE_TRACK_LOADED,this.onSubtitleTrackLoaded,this),e.off(m.SUBTITLE_FRAG_PROCESSED,this.onSubtitleFragProcessed,this),e.off(m.BUFFER_FLUSHING,this.onBufferFlushing,this)}startLoad(e,t){this.stopLoad(),this.state=jt.IDLE,this.setInterval(xu),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:i}=t;if(this.fragContextChanged(n)||(ke(n)&&(this.fragPrevious=n),this.state=jt.IDLE),!i)return;const r=this.tracksBuffered[this.currentTrackId];if(!r)return;let s;const l=n.start;for(let c=0;c<r.length;c++)if(l>=r[c].start&&l<=r[c].end){s=r[c];break}const h=n.start+n.duration;s?s.end=h:(s={start:l,end:h},r.push(s)),this.fragmentTracker.fragBuffered(n),this.fragBufferedComplete(n,null),this.media&&this.tick()}onBufferFlushing(e,t){const{startOffset:n,endOffset:i}=t;if(n===0&&i!==Number.POSITIVE_INFINITY){const r=i-1;if(r<=0)return;t.endOffsetSubtitles=Math.max(0,r),this.tracksBuffered.forEach(s=>{for(let l=0;l<s.length;){if(s[l].end<=r){s.shift();continue}else if(s[l].start<r)s[l].start=r;else break;l++}}),this.fragmentTracker.removeFragmentsInRange(n,r,U.SUBTITLE)}}onError(e,t){const n=t.frag;(n==null?void 0:n.type)===U.SUBTITLE&&(t.details===Y.FRAG_GAP&&this.fragmentTracker.fragBuffered(n,!0),this.fragCurrent&&this.fragCurrent.abortRequests(),this.state!==jt.STOPPED&&(this.state=jt.IDLE))}onSubtitleTracksUpdated(e,{subtitleTracks:t}){if(this.levels&&ko(this.levels,t)){this.levels=t.map(n=>new Xn(n));return}this.tracksBuffered=[],this.levels=t.map(n=>{const i=new Xn(n);return this.tracksBuffered[i.id]=[],i}),this.fragmentTracker.removeFragmentsInRange(0,Number.POSITIVE_INFINITY,U.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 i=this.levels[this.currentTrackId];i!=null&&i.details?this.mediaBuffer=this.mediaBufferTimeRanges:this.mediaBuffer=null,i&&this.state!==jt.STOPPED&&this.setInterval(xu)}onSubtitleTrackLoaded(e,t){var n;const{currentTrackId:i,levels:r}=this,{details:s,id:l}=t;if(!r){this.warn(`Subtitle tracks were reset while loading level ${l}`);return}const h=r[l];if(l>=r.length||!h)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 c=0;if(s.live||(n=h.details)!=null&&n.live){if(s.deltaUpdateFailed)return;const g=this.mainDetails;if(!g){this.startFragRequested=!1;return}const A=g.fragments[0];if(!h.details)s.hasProgramDateTime&&g.hasProgramDateTime?(ks(s,g),c=s.fragmentStart):A&&(c=A.start,Ms(s,c));else{var f;c=this.alignPlaylists(s,h.details,(f=this.levelLastLoaded)==null?void 0:f.details),c===0&&A&&(c=A.start,Ms(s,c))}g&&!this.startFragRequested&&this.setStartPosition(g,c)}h.details=s,this.levelLastLoaded=h,l===i&&(this.hls.trigger(m.SUBTITLE_TRACK_UPDATED,{details:s,id:l,groupId:t.groupId}),this.tick(),s.live&&!this.fragCurrent&&this.media&&this.state===jt.IDLE&&($e(null,s.fragments,this.media.currentTime,0)||(this.warn("Subtitle playlist not aligned with playback"),h.details=void 0)))}_handleFragmentLoadComplete(e){const{frag:t,payload:n}=e,i=t.decryptdata,r=this.hls;if(!this.fragContextChanged(t)&&n&&n.byteLength>0&&i!=null&&i.key&&i.iv&&Er(i.method)){const s=performance.now();this.decrypter.decrypt(new Uint8Array(n),i.key.buffer,i.iv.buffer,Ir(i.method)).catch(l=>{throw r.trigger(m.ERROR,{type:ce.MEDIA_ERROR,details:Y.FRAG_DECRYPT_ERROR,fatal:!1,error:l,reason:l.message,frag:t}),l}).then(l=>{const h=performance.now();r.trigger(m.FRAG_DECRYPTED,{frag:t,payload:l,stats:{tstart:s,tdecrypt:h}})}).catch(l=>{this.warn(`${l.name}: ${l.message}`),this.state=jt.IDLE})}}doTick(){if(!this.media){this.state=jt.IDLE;return}if(this.state===jt.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:i}=this,r=this.getLoadPosition(),s=Vn.bufferedInfo(this.tracksBuffered[this.currentTrackId]||[],r,i.maxBufferHole),{end:l,len:h}=s,c=n.details,f=this.hls.maxBufferLength+c.levelTargetDuration;if(h>f)return;const g=c.fragments,A=g.length,I=c.edge;let C=null;const Q=this.fragPrevious;if(l<I){const ye=i.maxFragLookUpTolerance,be=l>I-ye?0:ye;C=$e(Q,g,Math.max(g[0].start,l),be),!C&&Q&&Q.start<g[0].start&&(C=g[0])}else C=g[A-1];if(C=this.filterReplacedPrimary(C,n.details),!C)return;const Z=C.sn-c.startSN,me=g[Z-1];if(me&&me.cc===C.cc&&this.fragmentTracker.getState(me)===Cn.NOT_LOADED&&(C=me),this.fragmentTracker.getState(C)===Cn.NOT_LOADED){const ye=this.mapToInitFragWhenRequired(C);ye&&this.loadFragment(ye,n,l)}}}loadFragment(e,t,n){ke(e)?super.loadFragment(e,t,n):this._loadInitSegment(e,t)}get mediaBufferTimeRanges(){return new Zc(this.tracksBuffered[this.currentTrackId]||[])}}class Zc{constructor(e){this.buffered=void 0;const t=(n,i,r)=>{if(i=i>>>0,i>r-1)throw new DOMException(`Failed to execute '${n}' on 'TimeRanges': The index provided (${i}) is greater than the maximum bound (${r})`);return e[i][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 Qc={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},wu=a=>String.fromCharCode(Qc[a]||a),Es=15,Bs=100,Yc={17:1,18:3,21:5,22:7,23:9,16:11,19:12,20:14},Jc={17:2,18:4,21:6,22:8,23:10,19:13,20:15},Xc={25:1,26:3,29:5,30:7,31:9,24:11,27:12,28:14},qc={25:2,26:4,29:6,30:8,31:10,27:13,28:15},$c=["white","green","blue","cyan","red","yellow","magenta","black","transparent"];class eh{constructor(){this.time=null,this.verboseLevel=0}log(e,t){if(this.verboseLevel>=e){const n=typeof t=="function"?t():t;se.log(`${this.time} [${e}] ${n}`)}}}const ia=function(e){const t=[];for(let n=0;n<e.length;n++)t.push(e[n].toString(16));return t};class Su{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 i=t[n];e.hasOwnProperty(i)&&(this[i]=e[i])}}isDefault(){return this.foreground==="white"&&!this.underline&&!this.italics&&this.background==="black"&&!this.flash}equals(e){return this.foreground===e.foreground&&this.underline===e.underline&&this.italics===e.italics&&this.background===e.background&&this.flash===e.flash}copy(e){this.foreground=e.foreground,this.underline=e.underline,this.italics=e.italics,this.background=e.background,this.flash=e.flash}toString(){return"color="+this.foreground+", underline="+this.underline+", italics="+this.italics+", background="+this.background+", flash="+this.flash}}class th{constructor(){this.uchar=" ",this.penState=new Su}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 nh{constructor(e){this.chars=[],this.pos=0,this.currPenState=new Su,this.cueStartTime=null,this.logger=void 0;for(let t=0;t<Bs;t++)this.chars.push(new th);this.logger=e}equals(e){for(let t=0;t<Bs;t++)if(!this.chars[t].equals(e.chars[t]))return!1;return!0}copy(e){for(let t=0;t<Bs;t++)this.chars[t].copy(e.chars[t])}isEmpty(){let e=!0;for(let t=0;t<Bs;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>Bs&&(this.logger.log(3,"Too large cursor position "+this.pos),this.pos=Bs)}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=wu(e);if(this.pos>=Bs){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<Bs;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<Bs;n++){const i=this.chars[n].uchar;i!==" "&&(t=!1),e.push(i)}return t?"":e.join("")}setPenStyles(e){this.currPenState.setStyles(e),this.chars[this.pos].setPenState(this.currPenState)}}class zl{constructor(e){this.rows=[],this.currRow=Es-1,this.nrRollUpRows=null,this.lastOutputScreen=null,this.logger=void 0;for(let t=0;t<Es;t++)this.rows.push(new nh(e));this.logger=e}reset(){for(let e=0;e<Es;e++)this.rows[e].clear();this.currRow=Es-1}equals(e){let t=!0;for(let n=0;n<Es;n++)if(!this.rows[n].equals(e.rows[n])){t=!1;break}return t}copy(e){for(let t=0;t<Es;t++)this.rows[t].copy(e.rows[t])}isEmpty(){let e=!0;for(let t=0;t<Es;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 = "+ut(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<Es;l++)this.rows[l].clear();const r=this.currRow+1-this.nrRollUpRows,s=this.lastOutputScreen;if(s){const l=s.rows[r].cueStartTime,h=this.logger.time;if(l!==null&&h!==null&&l<h)for(let c=0;c<this.nrRollUpRows;c++)this.rows[t-this.nrRollUpRows+c+1].copy(s.rows[r+c])}}this.currRow=t;const n=this.rows[this.currRow];if(e.indent!==null){const r=e.indent,s=Math.max(r-1,0);n.setCursor(e.indent),e.color=n.chars[s].penState.foreground}const i={foreground:e.color,underline:e.underline,italics:e.italics,background:"black",flash:!1};this.setPen(i)}setBkgData(e){this.logger.log(2,()=>"bkgData = "+ut(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="",i=-1;for(let r=0;r<Es;r++){const s=this.rows[r].getTextString();s&&(i=r+1,e?t.push("Row "+i+": '"+s+"'"):t.push(s.trim()))}return t.length>0&&(e?n="["+t.join(" | ")+"]":n=t.join(`
`)),n}getTextAndFormat(){return this.rows}}class Tu{constructor(e,t,n){this.chNr=void 0,this.outputFilter=void 0,this.mode=void 0,this.verbose=void 0,this.displayedMemory=void 0,this.nonDisplayedMemory=void 0,this.lastOutputScreen=void 0,this.currRollUpRow=void 0,this.writeScreen=void 0,this.cueStartTime=void 0,this.logger=void 0,this.chNr=e,this.outputFilter=t,this.mode=null,this.verbose=0,this.displayedMemory=new zl(n),this.nonDisplayedMemory=new zl(n),this.lastOutputScreen=new zl(n),this.currRollUpRow=this.displayedMemory.rows[Es-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[Es-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,i=["white","green","blue","cyan","red","yellow","magenta"];t.foreground=i[n]}this.logger.log(2,"MIDROW: "+ut(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 Du{constructor(e,t,n){this.channels=void 0,this.currentChannel=0,this.cmdHistory=rh(),this.logger=void 0;const i=this.logger=new eh;this.channels=[null,new Tu(e,t,i),new Tu(e+1,n,i)]}getHandler(e){return this.channels[e].getHandler()}setHandler(e,t){this.channels[e].setHandler(t)}addData(e,t){this.logger.time=e;for(let n=0;n<t.length;n+=2){const i=t[n]&127,r=t[n+1]&127;let s=!1,l=null;if(i===0&&r===0)continue;this.logger.log(3,()=>"["+ia([t[n],t[n+1]])+"] -> ("+ia([i,r])+")");const h=this.cmdHistory;if(i>=16&&i<=31){if(ih(i,r,h)){Ko(null,null,h),this.logger.log(3,()=>"Repeated command ("+ia([i,r])+") is dropped");continue}Ko(i,r,this.cmdHistory),s=this.parseCmd(i,r),s||(s=this.parseMidrow(i,r)),s||(s=this.parsePAC(i,r)),s||(s=this.parseBackgroundAttributes(i,r))}else Ko(null,null,h);if(!s&&(l=this.parseChars(i,r),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 "+ia([i,r])+" orig: "+ia([t[n],t[n+1]]))}}parseCmd(e,t){const n=(e===20||e===28||e===21||e===29)&&t>=32&&t<=47,i=(e===23||e===31)&&t>=33&&t<=35;if(!(n||i))return!1;const r=e===20||e===21||e===23?1:2,s=this.channels[r];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=r,!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 i=this.channels[n];return i?(i.ccMIDROW(t),this.logger.log(3,()=>"MIDROW ("+ia([e,t])+")"),!0):!1}return!1}parsePAC(e,t){let n;const i=(e>=17&&e<=23||e>=25&&e<=31)&&t>=64&&t<=127,r=(e===16||e===24)&&t>=64&&t<=95;if(!(i||r))return!1;const s=e<=23?1:2;t>=64&&t<=95?n=s===1?Yc[e]:Xc[e]:n=s===1?Jc[e]:qc[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 i={color:null,italics:!1,indent:null,underline:!1,row:e};return t>95?n=t-96:n=t-64,i.underline=(n&1)===1,n<=13?i.color=["white","green","blue","cyan","red","yellow","magenta","white"][Math.floor(n/2)]:n<=15?(i.italics=!0,i.color="white"):i.indent=Math.floor((n-16)/2)*4,i}parseChars(e,t){let n,i=null,r=null;if(e>=25?(n=2,r=e-8):(n=1,r=e),r>=17&&r<=19){let s;r===17?s=t+80:r===18?s=t+112:s=t+144,this.logger.log(2,()=>"Special char '"+wu(s)+"' in channel "+n),i=[s]}else e>=32&&e<=127&&(i=t===0?[e]:[e,t]);return i&&this.logger.log(3,()=>"Char codes = "+ia(i).join(",")),i}parseBackgroundAttributes(e,t){const n=(e===16||e===24)&&t>=32&&t<=47,i=(e===23||e===31)&&t>=45&&t<=47;if(!(n||i))return!1;let r;const s={};e===16||e===24?(r=Math.floor((t-32)/2),s.background=$c[r],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()}Ko(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 Ko(a,e,t){t.a=a,t.b=e}function ih(a,e,t){return t.a===a&&t.b===e}function rh(){return{a:null,b:null}}var jl=function(){if(Fi!=null&&Fi.VTTCue)return self.VTTCue;const a=["","lr","rl"],e=["start","middle","end","left","right"];function t(l,h){if(typeof h!="string"||!Array.isArray(l))return!1;const c=h.toLowerCase();return~l.indexOf(c)?c:!1}function n(l){return t(a,l)}function i(l){return t(e,l)}function r(l,...h){let c=1;for(;c<arguments.length;c++){const f=arguments[c];for(const g in f)l[g]=f[g]}return l}function s(l,h,c){const f=this,g={enumerable:!0};f.hasBeenReset=!1;let A="",I=!1,C=l,Q=h,Z=c,me=null,ye="",be=!0,Ue="auto",Je="start",Bt=50,nt="middle",mt=50,gt="middle";Object.defineProperty(f,"id",r({},g,{get:function(){return A},set:function(at){A=""+at}})),Object.defineProperty(f,"pauseOnExit",r({},g,{get:function(){return I},set:function(at){I=!!at}})),Object.defineProperty(f,"startTime",r({},g,{get:function(){return C},set:function(at){if(typeof at!="number")throw new TypeError("Start time must be set to a number.");C=at,this.hasBeenReset=!0}})),Object.defineProperty(f,"endTime",r({},g,{get:function(){return Q},set:function(at){if(typeof at!="number")throw new TypeError("End time must be set to a number.");Q=at,this.hasBeenReset=!0}})),Object.defineProperty(f,"text",r({},g,{get:function(){return Z},set:function(at){Z=""+at,this.hasBeenReset=!0}})),Object.defineProperty(f,"region",r({},g,{get:function(){return me},set:function(at){me=at,this.hasBeenReset=!0}})),Object.defineProperty(f,"vertical",r({},g,{get:function(){return ye},set:function(at){const Qt=n(at);if(Qt===!1)throw new SyntaxError("An invalid or illegal string was specified.");ye=Qt,this.hasBeenReset=!0}})),Object.defineProperty(f,"snapToLines",r({},g,{get:function(){return be},set:function(at){be=!!at,this.hasBeenReset=!0}})),Object.defineProperty(f,"line",r({},g,{get:function(){return Ue},set:function(at){if(typeof at!="number"&&at!=="auto")throw new SyntaxError("An invalid number or illegal string was specified.");Ue=at,this.hasBeenReset=!0}})),Object.defineProperty(f,"lineAlign",r({},g,{get:function(){return Je},set:function(at){const Qt=i(at);if(!Qt)throw new SyntaxError("An invalid or illegal string was specified.");Je=Qt,this.hasBeenReset=!0}})),Object.defineProperty(f,"position",r({},g,{get:function(){return Bt},set:function(at){if(at<0||at>100)throw new Error("Position must be between 0 and 100.");Bt=at,this.hasBeenReset=!0}})),Object.defineProperty(f,"positionAlign",r({},g,{get:function(){return nt},set:function(at){const Qt=i(at);if(!Qt)throw new SyntaxError("An invalid or illegal string was specified.");nt=Qt,this.hasBeenReset=!0}})),Object.defineProperty(f,"size",r({},g,{get:function(){return mt},set:function(at){if(at<0||at>100)throw new Error("Size must be between 0 and 100.");mt=at,this.hasBeenReset=!0}})),Object.defineProperty(f,"align",r({},g,{get:function(){return gt},set:function(at){const Qt=i(at);if(!Qt)throw new SyntaxError("An invalid or illegal string was specified.");gt=Qt,this.hasBeenReset=!0}})),f.displayState=void 0}return s.prototype.getCueAsHTML=function(){return self.WebVTT.convertCueToDOMTree(self,this.text)},s}();class sh{decode(e,t){if(!e)return"";if(typeof e!="string")throw new Error("Error - expected string data.");return decodeURIComponent(encodeURIComponent(e))}}function Iu(a){function e(n,i,r,s){return(n|0)*3600+(i|0)*60+(r|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 ah{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 i=0;i<n.length;++i)if(t===n[i]){this.set(e,t);break}}integer(e,t){/^-?\d+$/.test(t)&&this.set(e,parseInt(t,10))}percent(e,t){if(/^([\d]{1,3})(\.[\d]*)?%$/.test(t)){const n=parseFloat(t);if(n>=0&&n<=100)return this.set(e,n),!0}return!1}}function Cu(a,e,t,n){const i=n?a.split(n):[a];for(const r in i){if(typeof i[r]!="string")continue;const s=i[r].split(t);if(s.length!==2)continue;const l=s[0],h=s[1];e(l,h)}}const Kl=new jl(0,0,""),Go=Kl.align==="middle"?"middle":"center";function oh(a,e,t){const n=a;function i(){const l=Iu(a);if(l===null)throw new Error("Malformed timestamp: "+n);return a=a.replace(/^[^\sa-zA-Z-]+/,""),l}function r(l,h){const c=new ah;Cu(l,function(A,I){let C;switch(A){case"region":for(let Q=t.length-1;Q>=0;Q--)if(t[Q].id===I){c.set(A,t[Q].region);break}break;case"vertical":c.alt(A,I,["rl","lr"]);break;case"line":C=I.split(","),c.integer(A,C[0]),c.percent(A,C[0])&&c.set("snapToLines",!1),c.alt(A,C[0],["auto"]),C.length===2&&c.alt("lineAlign",C[1],["start",Go,"end"]);break;case"position":C=I.split(","),c.percent(A,C[0]),C.length===2&&c.alt("positionAlign",C[1],["start",Go,"end","line-left","line-right","auto"]);break;case"size":c.percent(A,I);break;case"align":c.alt(A,I,["start",Go,"end","left","right"]);break}},/:/,/\s/),h.region=c.get("region",null),h.vertical=c.get("vertical","");let f=c.get("line","auto");f==="auto"&&Kl.line===-1&&(f=-1),h.line=f,h.lineAlign=c.get("lineAlign","start"),h.snapToLines=c.get("snapToLines",!0),h.size=c.get("size",100),h.align=c.get("align",Go);let g=c.get("position","auto");g==="auto"&&Kl.position===50&&(g=h.align==="start"||h.align==="left"?0:h.align==="end"||h.align==="right"?100:50),h.position=g}function s(){a=a.replace(/^\s+/,"")}if(s(),e.startTime=i(),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=i(),s(),r(a,e)}function ku(a){return a.replace(/<br(?: \/)?>/gi,`
`)}class lh{constructor(){this.state="INITIAL",this.buffer="",this.decoder=new sh,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 r=t.buffer,s=0;for(r=ku(r);s<r.length&&r[s]!=="\r"&&r[s]!==`
`;)++s;const l=r.slice(0,s);return r[s]==="\r"&&++s,r[s]===`
`&&++s,t.buffer=r.slice(s),l}function i(r){Cu(r,function(s,l){},/:/)}try{let r="";if(t.state==="INITIAL"){if(!/\r\n|\n/.test(t.buffer))return this;r=n();const l=r.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:r=n(),t.state){case"HEADER":/:/.test(r)?i(r):r||(t.state="ID");continue;case"NOTE":r||(t.state="ID");continue;case"ID":if(/^NOTE($|[ \t])/.test(r)){t.state="NOTE";break}if(!r)continue;if(t.cue=new jl(0,0,""),t.state="CUE",r.indexOf("-->")===-1){t.cue.id=r;continue}case"CUE":if(!t.cue){t.state="BADCUE";continue}try{oh(r,t.cue,t.regionList)}catch(l){t.cue=null,t.state="BADCUE";continue}t.state="CUETEXT";continue;case"CUETEXT":{const l=r.indexOf("-->")!==-1;if(!r||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+=r}continue;case"BADCUE":r||(t.state="ID")}}}catch(r){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 uh=/\r\n|\n\r|\n|\r/g,Gl=function(e,t,n=0){return e.slice(n,n+t.length)===t},ch=function(e){let t=parseInt(e.slice(-3));const n=parseInt(e.slice(-6,-4)),i=parseInt(e.slice(-9,-7)),r=e.length>9?parseInt(e.substring(0,e.indexOf(":"))):0;if(!p(t)||!p(n)||!p(i)||!p(r))throw Error(`Malformed X-TIMESTAMP-MAP: Local:${e}`);return t+=1e3*n,t+=60*1e3*i,t+=60*60*1e3*r,t};function Hl(a,e,t){return Za(a.toString())+Za(e.toString())+Za(t)}const hh=function(e,t,n){let i=e[t],r=e[i.prevCC];if(!r||!r.new&&i.new){e.ccOffset=e.presentationOffset=i.start,i.new=!1;return}for(;(s=r)!=null&&s.new;){var s;e.ccOffset+=i.start-r.start,i.new=!1,i=r,r=e[i.prevCC]}e.presentationOffset=n};function fh(a,e,t,n,i,r,s){const l=new lh,h=oe(new Uint8Array(a)).trim().replace(uh,`
`).split(`
`),c=[],f=e?xl(e.baseTime,e.timescale):0;let g="00:00.000",A=0,I=0,C,Q=!0;l.oncue=function(Z){const me=t[n];let ye=t.ccOffset;const be=(A-f)/9e4;if(me!=null&&me.new&&(I!==void 0?ye=t.ccOffset=me.start:hh(t,n,be)),be){if(!e){C=new Error("Missing initPTS for VTT MPEGTS");return}ye=be-t.presentationOffset}const Ue=Z.endTime-Z.startTime,Je=ns((Z.startTime+ye-I)*9e4,i*9e4)/9e4;Z.startTime=Math.max(Je,0),Z.endTime=Math.max(Je+Ue,0);const Bt=Z.text.trim();Z.text=decodeURIComponent(encodeURIComponent(Bt)),Z.id||(Z.id=Hl(Z.startTime,Z.endTime,Bt)),Z.endTime>0&&c.push(Z)},l.onparsingerror=function(Z){C=Z},l.onflush=function(){if(C){s(C);return}r(c)},h.forEach(Z=>{if(Q)if(Gl(Z,"X-TIMESTAMP-MAP=")){Q=!1,Z.slice(16).split(",").forEach(me=>{Gl(me,"LOCAL:")?g=me.slice(6):Gl(me,"MPEGTS:")&&(A=parseInt(me.slice(7)))});try{I=ch(g)/1e3}catch(me){C=me}return}else Z===""&&(Q=!1);l.parse(Z+`
`)}),l.flush()}const Vl="stpp.ttml.im1t",Lu=/^(\d{2,}):(\d{2}):(\d{2}):(\d{2})\.?(\d+)?$/,Ru=/^(\d*(?:\.\d*)?)(h|m|s|ms|f|t)$/,dh={left:"start",center:"center",right:"end",start:"start",end:"end"};function Fu(a,e,t,n){const i=v(new Uint8Array(a),["mdat"]);if(i.length===0){n(new Error("Could not parse IMSC1 mdat"));return}const r=i.map(l=>oe(l)),s=bl(e.baseTime,1,e.timescale);try{r.forEach(l=>t(ph(l,s)))}catch(l){n(l)}}function ph(a,e){const i=new DOMParser().parseFromString(a,"text/xml").getElementsByTagName("tt")[0];if(!i)throw new Error("Invalid ttml");const r={frameRate:30,subFrameRate:1,frameRateMultiplier:0,tickRate:0},s=Object.keys(r).reduce((g,A)=>(g[A]=i.getAttribute(`ttp:${A}`)||r[A],g),{}),l=i.getAttribute("xml:space")!=="preserve",h=Bu(Wl(i,"styling","style")),c=Bu(Wl(i,"layout","region")),f=Wl(i,"body","[begin]");return[].map.call(f,g=>{const A=Mu(g,l);if(!A||!g.hasAttribute("begin"))return null;const I=Ql(g.getAttribute("begin"),s),C=Ql(g.getAttribute("dur"),s);let Q=Ql(g.getAttribute("end"),s);if(I===null)throw Pu(g);if(Q===null){if(C===null)throw Pu(g);Q=I+C}const Z=new jl(I-e,Q-e,A);Z.id=Hl(Z.startTime,Z.endTime,Z.text);const me=c[g.getAttribute("region")],ye=h[g.getAttribute("style")],be=gh(me,ye,h),{textAlign:Ue}=be;if(Ue){const Je=dh[Ue];Je&&(Z.lineAlign=Je),Z.align=Ue}return _(Z,be),Z}).filter(g=>g!==null)}function Wl(a,e,t){const n=a.getElementsByTagName(e)[0];return n?[].slice.call(n.querySelectorAll(t)):[]}function Bu(a){return a.reduce((e,t)=>{const n=t.getAttribute("xml:id");return n&&(e[n]=t),e},{})}function Mu(a,e){return[].slice.call(a.childNodes).reduce((t,n,i)=>{var r;return n.nodeName==="br"&&i?t+`
`:(r=n.childNodes)!=null&&r.length?Mu(n,e):e?t+n.textContent.trim().replace(/\s+/g," "):t+n.textContent},"")}function gh(a,e,t){const n="http://www.w3.org/ns/ttml#styling";let i=null;const r=["displayAlign","textAlign","color","backgroundColor","fontSize","fontFamily"],s=a!=null&&a.hasAttribute("style")?a.getAttribute("style"):null;return s&&t.hasOwnProperty(s)&&(i=t[s]),r.reduce((l,h)=>{const c=Zl(e,n,h)||Zl(a,n,h)||Zl(i,n,h);return c&&(l[h]=c),l},{})}function Zl(a,e,t){return a&&a.hasAttributeNS(e,t)?a.getAttributeNS(e,t):null}function Pu(a){return new Error(`Could not parse ttml timestamp ${a}`)}function Ql(a,e){if(!a)return null;let t=Iu(a);return t===null&&(Lu.test(a)?t=mh(a,e):Ru.test(a)&&(t=vh(a,e))),t}function mh(a,e){const t=Lu.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 vh(a,e){const t=Ru.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 Ho{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 _h{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=Uu(),this.captionsProperties=void 0,this.hls=e,this.config=e.config,this.Cues=e.config.cueHandler,this.captionsProperties={textTrack1:{label:this.config.captionsTextTrack1Label,languageCode:this.config.captionsTextTrack1LanguageCode},textTrack2:{label:this.config.captionsTextTrack2Label,languageCode:this.config.captionsTextTrack2LanguageCode},textTrack3:{label:this.config.captionsTextTrack3Label,languageCode:this.config.captionsTextTrack3LanguageCode},textTrack4:{label:this.config.captionsTextTrack4Label,languageCode:this.config.captionsTextTrack4LanguageCode}},e.on(m.MEDIA_ATTACHING,this.onMediaAttaching,this),e.on(m.MEDIA_DETACHING,this.onMediaDetaching,this),e.on(m.MANIFEST_LOADING,this.onManifestLoading,this),e.on(m.MANIFEST_LOADED,this.onManifestLoaded,this),e.on(m.SUBTITLE_TRACKS_UPDATED,this.onSubtitleTracksUpdated,this),e.on(m.FRAG_LOADING,this.onFragLoading,this),e.on(m.FRAG_LOADED,this.onFragLoaded,this),e.on(m.FRAG_PARSING_USERDATA,this.onFragParsingUserdata,this),e.on(m.FRAG_DECRYPTED,this.onFragDecrypted,this),e.on(m.INIT_PTS_FOUND,this.onInitPtsFound,this),e.on(m.SUBTITLE_TRACKS_CLEARED,this.onSubtitleTracksCleared,this),e.on(m.BUFFER_FLUSHING,this.onBufferFlushing,this)}destroy(){const{hls:e}=this;e.off(m.MEDIA_ATTACHING,this.onMediaAttaching,this),e.off(m.MEDIA_DETACHING,this.onMediaDetaching,this),e.off(m.MANIFEST_LOADING,this.onManifestLoading,this),e.off(m.MANIFEST_LOADED,this.onManifestLoaded,this),e.off(m.SUBTITLE_TRACKS_UPDATED,this.onSubtitleTracksUpdated,this),e.off(m.FRAG_LOADING,this.onFragLoading,this),e.off(m.FRAG_LOADED,this.onFragLoaded,this),e.off(m.FRAG_PARSING_USERDATA,this.onFragParsingUserdata,this),e.off(m.FRAG_DECRYPTED,this.onFragDecrypted,this),e.off(m.INIT_PTS_FOUND,this.onInitPtsFound,this),e.off(m.SUBTITLE_TRACKS_CLEARED,this.onSubtitleTracksCleared,this),e.off(m.BUFFER_FLUSHING,this.onBufferFlushing,this),this.hls=this.config=this.media=null,this.cea608Parser1=this.cea608Parser2=void 0}initCea608Parsers(){const e=new Ho(this,"textTrack1"),t=new Ho(this,"textTrack2"),n=new Ho(this,"textTrack3"),i=new Ho(this,"textTrack4");this.cea608Parser1=new Du(1,e,t),this.cea608Parser2=new Du(3,n,i)}addCues(e,t,n,i,r){let s=!1;for(let l=r.length;l--;){const h=r[l],c=yh(h[0],h[1],t,n);if(c>=0&&(h[0]=Math.min(h[0],t),h[1]=Math.max(h[1],n),s=!0,c/(n-t)>.5))return}if(s||r.push([t,n]),this.config.renderTextTracksNatively){const l=this.captionsTracks[e];this.Cues.newCue(l,t,n,i)}else{const l=this.Cues.newCue(null,t,n,i);this.hls.trigger(m.CUES_PARSED,{type:"captions",cues:l,track:e})}}onInitPtsFound(e,{frag:t,id:n,initPTS:i,timescale:r,trackId:s}){const{unparsedVttFrags:l}=this;n===U.MAIN&&(this.initPTS[t.cc]={baseTime:i,timescale:r,trackId:s}),l.length&&(this.unparsedVttFrags=[],l.forEach(h=>{this.initPTS[h.frag.cc]?this.onFragLoaded(m.FRAG_LOADED,h):this.hls.trigger(m.SUBTITLE_FRAG_PROCESSED,{success:!1,frag:h.frag,error:new Error("Subtitle discontinuity domain does not match main")})}))}getExistingTrack(e,t){const{media:n}=this;if(n)for(let i=0;i<n.textTracks.length;i++){const r=n.textTracks[i];if(Nu(r,{name:e,lang:t,characteristics:"transcribes-spoken-dialog,describes-music-and-sound"}))return r}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:i}=this,{label:r,languageCode:s}=t[e],l=this.getExistingTrack(r,s);if(l)n[e]=l,ka(n[e]),_u(n[e],i);else{const h=this.createTextTrack("captions",r,s);h&&(h[e]=!0,n[e]=h)}}createNonNativeTrack(e){if(this.nonNativeCaptionsTracks[e])return;const t=this.captionsProperties[e];if(!t)return;const n=t.label,i={_id:e,label:n,kind:"captions",default:t.media?!!t.media.default:!1,closedCaptions:t.media};this.nonNativeCaptionsTracks[e]=i,this.hls.trigger(m.NON_NATIVE_TEXT_TRACKS_FOUND,{tracks:[i]})}createTextTrack(e,t,n){const i=this.media;if(i)return i.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:i}=this;Object.keys(i).forEach(r=>{ka(i[r]),delete i[r]}),this.nonNativeCaptionsTracks={}}onManifestLoading(){this.lastCc=-1,this.lastSn=-1,this.lastPartIndex=-1,this.prevCC=-1,this.vttCCs=Uu(),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++)ka(t[n])}onSubtitleTracksUpdated(e,t){const n=t.subtitleTracks||[],i=n.some(r=>r.textCodec===Vl);if(this.config.enableWebVTT||i&&this.config.enableIMSC1){if(ko(this.tracks,n)){this.tracks=n;return}if(this.textTracks=[],this.tracks=n,this.config.renderTextTracksNatively){const s=this.media,l=s?Uo(s.textTracks):null;if(this.tracks.forEach((h,c)=>{let f;if(l){let g=null;for(let A=0;A<l.length;A++)if(l[A]&&Nu(l[A],h)){g=l[A],l[A]=null;break}g&&(f=g)}if(f)ka(f);else{const g=Ou(h);f=this.createTextTrack(g,h.name,h.lang),f&&(f.mode="disabled")}f&&this.textTracks.push(f)}),l!=null&&l.length){const h=l.filter(c=>c!==null).map(c=>c.label);h.length&&this.hls.logger.warn(`Media element contains unused subtitle tracks: ${h.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(m.NON_NATIVE_TEXT_TRACKS_FOUND,{tracks:s})}}}onManifestLoaded(e,t){this.config.enableCEA708Captions&&t.captions&&t.captions.forEach(n=>{const i=/(?:CC|SERVICE)([1-4])/.exec(n.instreamId);if(!i)return;const r=`textTrack${i[1]}`,s=this.captionsProperties[r];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===U.MAIN){var n,i;const{cea608Parser1:r,cea608Parser2:s,lastSn:l}=this,{cc:h,sn:c}=t.frag,f=(n=(i=t.part)==null?void 0:i.index)!=null?n:-1;r&&s&&(c!==l+1||c===l&&f!==this.lastPartIndex+1||h!==this.lastCc)&&(r.reset(),s.reset()),this.lastCc=h,this.lastSn=c,this.lastPartIndex=f}}onFragLoaded(e,t){const{frag:n,payload:i}=t;if(n.type===U.SUBTITLE)if(i.byteLength){const r=n.decryptdata,s="stats"in t;if(r==null||!r.encrypted||s){const l=this.tracks[n.level],h=this.vttCCs;h[n.cc]||(h[n.cc]={start:n.start,prevCC:this.prevCC,new:!0},this.prevCC=n.cc),l&&l.textCodec===Vl?this._parseIMSC1(n,i):this._parseVTTs(t)}}else this.hls.trigger(m.SUBTITLE_FRAG_PROCESSED,{success:!1,frag:n,error:new Error("Empty subtitle payload")})}_parseIMSC1(e,t){const n=this.hls;Fu(t,this.initPTS[e.cc],i=>{this._appendCues(i,e.level),n.trigger(m.SUBTITLE_FRAG_PROCESSED,{success:!0,frag:e})},i=>{n.logger.log(`Failed to parse IMSC1: ${i}`),n.trigger(m.SUBTITLE_FRAG_PROCESSED,{success:!1,frag:e,error:i})})}_parseVTTs(e){var t;const{frag:n,payload:i}=e,{initPTS:r,unparsedVttFrags:s}=this,l=r.length-1;if(!r[n.cc]&&l===-1){s.push(e);return}const h=this.hls,c=(t=n.initSegment)!=null&&t.data?st(n.initSegment.data,new Uint8Array(i)).buffer:i;fh(c,this.initPTS[n.cc],this.vttCCs,n.cc,n.start,f=>{this._appendCues(f,n.level),h.trigger(m.SUBTITLE_FRAG_PROCESSED,{success:!0,frag:n})},f=>{const g=f.message==="Missing initPTS for VTT MPEGTS";g?s.push(e):this._fallbackToIMSC1(n,i),h.logger.log(`Failed to parse VTT cue: ${f}`),!(g&&l>n.cc)&&h.trigger(m.SUBTITLE_FRAG_PROCESSED,{success:!1,frag:n,error:f})})}_fallbackToIMSC1(e,t){const n=this.tracks[e.level];n.textCodec||Fu(t,this.initPTS[e.cc],()=>{n.textCodec=Vl,this._parseIMSC1(e,t)},()=>{n.textCodec="wvtt"})}_appendCues(e,t){const n=this.hls;if(this.config.renderTextTracksNatively){const i=this.textTracks[t];if(!i||i.mode==="disabled")return;e.forEach(r=>yu(i,r))}else{const i=this.tracks[t];if(!i)return;const r=i.default?"default":"subtitles"+t;n.trigger(m.CUES_PARSED,{type:"subtitles",cues:e,track:r})}}onFragDecrypted(e,t){const{frag:n}=t;n.type===U.SUBTITLE&&this.onFragLoaded(m.FRAG_LOADED,t)}onSubtitleTracksCleared(){this.tracks=[],this.captionsTracks={}}onFragParsingUserdata(e,t){if(!this.enabled||!this.config.enableCEA708Captions)return;const{frag:n,samples:i}=t;if(!(n.type===U.MAIN&&this.closedCaptionsForLevel(n)==="NONE"))for(let r=0;r<i.length;r++){const s=i[r].bytes;if(s){this.cea608Parser1||this.initCea608Parsers();const l=this.extractCea608Data(s);this.cea608Parser1.addData(i[r].pts,l[0]),this.cea608Parser2.addData(i[r].pts,l[1])}}}onBufferFlushing(e,{startOffset:t,endOffset:n,endOffsetSubtitles:i,type:r}){const{media:s}=this;if(!(!s||s.currentTime<n)){if(!r||r==="video"){const{captionsTracks:l}=this;Object.keys(l).forEach(h=>Ol(l[h],t,n))}if(this.config.renderTextTracksNatively&&t===0&&i!==void 0){const{textTracks:l}=this;Object.keys(l).forEach(h=>Ol(l[h],t,i))}}}extractCea608Data(e){const t=[[],[]],n=e[0]&31;let i=2;for(let r=0;r<n;r++){const s=e[i++],l=127&e[i++],h=127&e[i++];if(l===0&&h===0)continue;if((4&s)!==0){const f=3&s;(f===0||f===1)&&(t[f].push(l),t[f].push(h))}}return t}}function Ou(a){return a.characteristics&&/transcribes-spoken-dialog/gi.test(a.characteristics)&&/describes-music-and-sound/gi.test(a.characteristics)?"captions":"subtitles"}function Nu(a,e){return!!a&&a.kind===Ou(e)&&Ia(e,a)}function yh(a,e,t,n){return Math.min(e,n)-Math.max(a,t)}function Uu(){return{ccOffset:0,presentationOffset:0,0:{start:0,prevCC:-1,new:!0}}}const Eh=/\s/,Ah={newCue(a,e,t,n){const i=[];let r,s,l,h,c;const f=self.VTTCue||self.TextTrackCue;for(let A=0;A<n.rows.length;A++)if(r=n.rows[A],l=!0,h=0,c="",!r.isEmpty()){var g;for(let Q=0;Q<r.chars.length;Q++)Eh.test(r.chars[Q].uchar)&&l?h++:(c+=r.chars[Q].uchar,l=!1);r.cueStartTime=e,e===t&&(t+=1e-4),h>=16?h--:h++;const I=ku(c.trim()),C=Hl(e,t,I);a!=null&&(g=a.cues)!=null&&g.getCueById(C)||(s=new f(e,t,I),s.id=C,s.line=A+1,s.align="left",s.position=10+Math.min(80,Math.floor(h*8/32)*10),i.push(s))}return a&&i.length&&(i.sort((A,I)=>A.line==="auto"||I.line==="auto"?0:A.line>8&&I.line>8?I.line-A.line:A.line-I.line),i.forEach(A=>yu(a,A))),i}};function bh(){if(self.fetch&&self.AbortController&&self.ReadableStream&&self.Request)try{return new self.ReadableStream({}),!0}catch(a){}return!1}const xh=/(\d+)-(\d+)\/(\d+)/;class zu{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||Dh,this.controller=new self.AbortController,this.stats=new b}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 i=this.stats;if(i.loading.start)throw new Error("Loader can only be used once.");i.loading.start=self.performance.now();const r=wh(e,this.controller.signal),s=e.responseType==="arraybuffer",l=s?"byteLength":"length",{maxTimeToFirstByteMs:h,maxLoadTimeMs:c}=t.loadPolicy;this.context=e,this.config=t,this.callbacks=n,this.request=this.fetchSetup(e,r),self.clearTimeout(this.requestTimeout),t.timeout=h&&p(h)?h:c,this.requestTimeout=self.setTimeout(()=>{this.callbacks&&(this.abortInternal(),this.callbacks.onTimeout(i,e,this.response))},t.timeout),(Rr(this.request)?this.request.then(self.fetch):self.fetch(this.request)).then(g=>{var A;this.response=this.loader=g;const I=Math.max(self.performance.now(),i.loading.start);if(self.clearTimeout(this.requestTimeout),t.timeout=c,this.requestTimeout=self.setTimeout(()=>{this.callbacks&&(this.abortInternal(),this.callbacks.onTimeout(i,e,this.response))},c-(I-i.loading.start)),!g.ok){const{status:Q,statusText:Z}=g;throw new Ih(Z||"fetch, bad network response",Q,g)}i.loading.first=I,i.total=Th(g.headers)||i.total;const C=(A=this.callbacks)==null?void 0:A.onProgress;return C&&p(t.highWaterMark)?this.loadProgressively(g,i,e,t.highWaterMark,C):s?g.arrayBuffer():e.responseType==="json"?g.json():g.text()}).then(g=>{var A,I;const C=this.response;if(!C)throw new Error("loader destroyed");self.clearTimeout(this.requestTimeout),i.loading.end=Math.max(self.performance.now(),i.loading.first);const Q=g[l];Q&&(i.loaded=i.total=Q);const Z={url:C.url,data:g,code:C.status},me=(A=this.callbacks)==null?void 0:A.onProgress;me&&!p(t.highWaterMark)&&me(i,e,g,C),(I=this.callbacks)==null||I.onSuccess(Z,i,e,C)}).catch(g=>{var A;if(self.clearTimeout(this.requestTimeout),i.aborted)return;const I=g&&g.code||0,C=g?g.message:null;(A=this.callbacks)==null||A.onError({code:I,text:C},e,g?g.details:null,i)})}getCacheAge(){let e=null;if(this.response){const t=this.response.headers.get("age");e=t?parseFloat(t):null}return e}getResponseHeader(e){return this.response?this.response.headers.get(e):null}loadProgressively(e,t,n,i=0,r){const s=new Ba,l=e.body.getReader(),h=()=>l.read().then(c=>{if(c.done)return s.dataLength&&r(t,n,s.flush().buffer,e),Promise.resolve(new ArrayBuffer(0));const f=c.value,g=f.length;return t.loaded+=g,g<i||s.dataLength?(s.push(f),s.dataLength>=i&&r(t,n,s.flush().buffer,e)):r(t,n,f.buffer,e),h()}).catch(()=>Promise.reject());return h()}}function wh(a,e){const t={method:"GET",mode:"cors",credentials:"same-origin",signal:e,headers:new self.Headers(_({},a.headers))};return a.rangeEnd&&t.headers.set("Range","bytes="+a.rangeStart+"-"+String(a.rangeEnd-1)),t}function Sh(a){const e=xh.exec(a);if(e)return parseInt(e[2])-parseInt(e[1])+1}function Th(a){const e=a.get("Content-Range");if(e){const n=Sh(e);if(p(n))return n}const t=a.get("Content-Length");if(t)return parseInt(t)}function Dh(a,e){return new self.Request(a.url,e)}class Ih extends Error{constructor(e,t,n){super(e),this.code=void 0,this.details=void 0,this.code=t,this.details=n}}const Ch=/^age:\s*[\d.]+\s*$/im;class ju{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 b,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,i=this.stats;i.loading.first=0,i.loaded=0,i.aborted=!1;const r=this.xhrSetup;r?Promise.resolve().then(()=>{if(!(this.loader!==n||this.stats.aborted))return r(n,t.url)}).catch(s=>{if(!(this.loader!==n||this.stats.aborted))return n.open("GET",t.url,!0),r(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,i)}):this.openAndSendXhr(n,t,e)}openAndSendXhr(e,t,n){e.readyState||e.open("GET",t.url,!0);const i=t.headers,{maxTimeToFirstByteMs:r,maxLoadTimeMs:s}=n.loadPolicy;if(i)for(const l in i)e.setRequestHeader(l,i[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=r&&p(r)?r: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 i=t.readyState,r=this.config;if(!n.aborted&&i>=2&&(n.loading.first===0&&(n.loading.first=Math.max(self.performance.now(),n.loading.start),r.timeout!==r.loadPolicy.maxLoadTimeMs&&(self.clearTimeout(this.requestTimeout),r.timeout=r.loadPolicy.maxLoadTimeMs,this.requestTimeout=self.setTimeout(this.loadtimeout.bind(this),r.loadPolicy.maxLoadTimeMs-(n.loading.first-n.loading.start)))),i===4)){self.clearTimeout(this.requestTimeout),t.onreadystatechange=null,t.onprogress=null;const c=t.status,f=t.responseType==="text"?t.responseText:null;if(c>=200&&c<300){const C=f!=null?f:t.response;if(C!=null){var s,l;n.loading.end=Math.max(self.performance.now(),n.loading.first);const Q=t.responseType==="arraybuffer"?C.byteLength:C.length;n.loaded=n.total=Q,n.bwEstimate=n.total*8e3/(n.loading.end-n.loading.first);const Z=(s=this.callbacks)==null?void 0:s.onProgress;Z&&Z(n,e,C,t);const me={url:t.responseURL,data:C,code:c};(l=this.callbacks)==null||l.onSuccess(me,n,e,t);return}}const g=r.loadPolicy.errorRetry,A=n.retry,I={url:e.url,data:void 0,code:c};if(tn(g,A,!1,I))this.retry(g);else{var h;se.error(`${c} while loading ${e.url}`),(h=this.callbacks)==null||h.onError({code:c,text:t.statusText},e,t,n)}}}loadtimeout(){if(!this.config)return;const e=this.config.loadPolicy.timeoutRetry,t=this.stats.retry;if(tn(e,t,!0))this.retry(e);else{var n;se.warn(`timeout while loading ${(n=this.context)==null?void 0:n.url}`);const i=this.callbacks;i&&(this.abortInternal(),i.onTimeout(this.stats,this.context,this.loader))}}retry(e){const{context:t,stats:n}=this;this.retryDelay=un(e,n.retry),n.retry++,se.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&&Ch.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 kh={maxTimeToFirstByteMs:8e3,maxLoadTimeMs:2e4,timeoutRetry:null,errorRetry:null},Lh=E(E({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:ju,fLoader:void 0,pLoader:void 0,xhrSetup:void 0,licenseXhrSetup:void 0,licenseResponseCallback:void 0,abrController:pe,bufferController:Ll,capLevelController:D,errorController:kn,fpsController:Bc,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:rs,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:kh},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},Rh()),{},{subtitleStreamController:Wc,subtitleTrackController:Oc,timelineController:_h,audioStreamController:Il,audioTrackController:Cl,emeController:Ca,cmcdController:kc,contentSteeringController:Rc,interstitialsController:Vc});function Rh(){return{cueHandler:Ah,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 Fh(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=Yl(a),i=["manifest","level","frag"],r=["TimeOut","MaxRetry","RetryDelay","MaxRetryTimeout"];return i.forEach(s=>{const l=`${s==="level"?"playlist":s}LoadPolicy`,h=e[l]===void 0,c=[];r.forEach(f=>{const g=`${s}Loading${f}`,A=e[g];if(A!==void 0&&h){c.push(g);const I=n[l].default;switch(e[l]={default:I},f){case"TimeOut":I.maxLoadTimeMs=A,I.maxTimeToFirstByteMs=A;break;case"MaxRetry":I.errorRetry.maxNumRetry=A,I.timeoutRetry.maxNumRetry=A;break;case"RetryDelay":I.errorRetry.retryDelayMs=A,I.timeoutRetry.retryDelayMs=A;break;case"MaxRetryTimeout":I.errorRetry.maxRetryDelayMs=A,I.timeoutRetry.maxRetryDelayMs=A;break}}}),c.length&&t.warn(`hls.js config: "${c.join('", "')}" setting(s) are deprecated, use "${l}": ${ut(e[l])}`)}),E(E({},n),e)}function Yl(a){return a&&typeof a=="object"?Array.isArray(a)?a.map(Yl):Object.keys(a).reduce((e,t)=>(e[t]=Yl(a[t]),e),{}):a}function Bh(a,e){const t=a.loader;t!==zu&&t!==ju?(e.log("[config]: Custom loader detected, cannot enable progressive streaming"),a.progressive=!1):bh()&&(a.loader=zu,a.progressive=!0,a.enableSoftwareAES=!0,e.log("[config]: Progressive streaming enabled, using FetchLoader"))}const Vo=2,Mh=.1,Ph=.05,Oh=100;class Nh extends nr{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(m.MEDIA_ENDED,{stalled:!1})}},this.hls=e,this.fragmentTracker=t,this.registerListeners()}registerListeners(){const{hls:e}=this;e&&(e.on(m.MEDIA_ATTACHED,this.onMediaAttached,this),e.on(m.MEDIA_DETACHING,this.onMediaDetaching,this),e.on(m.BUFFER_APPENDED,this.onBufferAppended,this))}unregisterListeners(){const{hls:e}=this;e&&(e.off(m.MEDIA_ATTACHED,this.onMediaAttached,this),e.off(m.MEDIA_DETACHING,this.onMediaDetaching,this),e.off(m.BUFFER_APPENDED,this.onBufferAppended,this))}destroy(){super.destroy(),this.unregisterListeners(),this.media=this.hls=this.fragmentTracker=null,this.mediaSource=void 0}onMediaAttached(e,t){this.setInterval(Oh),this.mediaSource=t.mediaSource;const n=this.media=t.media;Or(n,"playing",this.onMediaPlaying),Or(n,"waiting",this.onMediaWaiting),Or(n,"ended",this.onMediaEnded)}onMediaDetaching(e,t){this.clearInterval();const{media:n}=this;n&&(zr(n,"playing",this.onMediaPlaying),zr(n,"waiting",this.onMediaWaiting),zr(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,i;const r=(n=this.hls)==null?void 0:n.config;if(!r)return;const s=this.media;if(!s)return;const{seeking:l}=s,h=this.seeking&&!l,c=!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,r.nudgeOnVideoHole&&!f&&e>t&&this.nudgeOnVideoHole(e,t)),this.waiting===0&&this.stallResolved(e);return}if(c||h){h&&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(m.MEDIA_ENDED,{stalled:!1}));return}if(!Vn.getBuffered(s).length){this.nudgeRetry=0;return}const g=Vn.bufferInfo(s,e,0),A=g.nextStart||0,I=this.fragmentTracker;if(l&&I&&this.hls){const Bt=Ku(this.hls.inFlightFragments,e),nt=g.len>Vo,mt=!A||Bt||A-e>Vo&&!I.getPartialFragment(e);if(nt||mt)return;this.moved=!1}const C=(i=this.hls)==null?void 0:i.latestLevelDetails;if(!this.moved&&this.stalled!==null&&I){if(!(g.len>0)&&!A)return;const nt=Math.max(A,g.start||0)-e,gt=!!(C!=null&&C.live)?C.targetduration*2:Vo,at=Wo(e,I);if(nt>0&&(nt<=gt||at)){s.paused||this._trySkipBufferHole(at);return}}const Q=r.detectStallWithCurrentTimeMs,Z=self.performance.now(),me=this.waiting;let ye=this.stalled;if(ye===null)if(me>0&&Z-me<Q)ye=this.stalled=me;else{this.stalled=Z;return}const be=Z-ye;if(!l&&(be>=Q||me)&&this.hls){var Ue;if(((Ue=this.mediaSource)==null?void 0:Ue.readyState)==="ended"&&!(C!=null&&C.live)&&Math.abs(e-((C==null?void 0:C.edge)||0))<1){if(this.ended)return;this.ended=e||1,this.hls.trigger(m.MEDIA_ENDED,{stalled:!0});return}if(this._reportStall(g),!this.media||!this.hls)return}const Je=Vn.bufferInfo(s,e,r.maxBufferHole);this._tryFixBufferStall(Je,be,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(m.STALL_RESOLVED,{})}}nudgeOnVideoHole(e,t){var n;const i=this.buffered.video;if(this.hls&&this.media&&this.fragmentTracker&&(n=this.buffered.audio)!=null&&n.length&&i&&i.length>1&&e>i.end(0)){const r=Vn.bufferedInfo(Vn.timeRangesToArray(this.buffered.audio),e,0);if(r.len>1&&t>=r.start){const s=Vn.timeRangesToArray(i),l=Vn.bufferedInfo(s,t,0).bufferedIndex;if(l>-1&&l<s.length-1){const h=Vn.bufferedInfo(s,e,0).bufferedIndex,c=s[l].end,f=s[l+1].start;if((h===-1||h>l)&&f-c<1&&e-c<2){const g=new Error(`nudging playhead to flush pipeline after video hole. currentTime: ${e} hole: ${c} -> ${f} buffered index: ${h}`);this.warn(g.message),this.media.currentTime+=1e-6;let A=Wo(e,this.fragmentTracker);A&&"fragment"in A?A=A.fragment:A||(A=void 0);const I=Vn.bufferInfo(this.media,e,0);this.hls.trigger(m.ERROR,{type:ce.MEDIA_ERROR,details:Y.BUFFER_SEEK_OVER_HOLE,fatal:!1,error:g,reason:g.message,frag:A,buffer:I.len,bufferInfo:I})}}}}}_tryFixBufferStall(e,t,n){var i,r;const{fragmentTracker:s,media:l}=this,h=(i=this.hls)==null?void 0:i.config;if(!l||!s||!h)return;const c=(r=this.hls)==null?void 0:r.latestLevelDetails,f=Wo(n,s);if((f||c!=null&&c.live&&n<c.fragmentStart)&&(this._trySkipBufferHole(f)||!this.media))return;const g=e.buffered,A=this.adjacentTraversal(e,n);(g&&g.length>1&&e.len>h.maxBufferHole||e.nextStart&&(e.nextStart-n<h.maxBufferHole||A))&&(t>h.highBufferWatchdogPeriod*1e3||this.waiting)&&(this.warn("Trying to nudge playhead over buffer-hole"),this._tryNudgeBuffer(e))}adjacentTraversal(e,t){const n=this.fragmentTracker,i=e.nextStart;if(n&&i){const r=n.getFragAtPos(t,U.MAIN),s=n.getFragAtPos(i,U.MAIN);if(r&&s)return s.sn-r.sn<2}return!1}_reportStall(e){const{hls:t,media:n,stallReported:i,stalled:r}=this;if(!i&&r!==null&&n&&t){this.stallReported=!0;const s=new Error(`Playback stalling at @${n.currentTime} due to low buffer (${ut(e)})`);this.warn(s.message),t.trigger(m.ERROR,{type:ce.MEDIA_ERROR,details:Y.BUFFER_STALLED_ERROR,fatal:!1,error:s,buffer:e.len,bufferInfo:e,stalled:{start:r}})}}_trySkipBufferHole(e){var t;const{fragmentTracker:n,media:i}=this,r=(t=this.hls)==null?void 0:t.config;if(!i||!n||!r)return 0;const s=i.currentTime,l=Vn.bufferInfo(i,s,0),h=s<l.start?l.start:l.nextStart;if(h&&this.hls){const f=l.len<=r.maxBufferHole,g=l.len>0&&l.len<1&&i.readyState<3,A=h-s;if(A>0&&(f||g)){if(A>r.maxBufferHole){let C=!1;if(s===0){const Q=n.getAppendedFrag(0,U.MAIN);Q&&h<Q.end&&(C=!0)}if(!C&&e){var c;if(!((c=this.hls.loadLevelObj)!=null&&c.details)||Ku(this.hls.inFlightFragments,h))return 0;let Z=!1,me=e.end;for(;me<h;){const ye=Wo(me,n);if(ye)me+=ye.duration;else{Z=!0;break}}if(Z)return 0}}const I=Math.max(h+Ph,s+Mh);if(this.warn(`skipping hole, adjusting currentTime from ${s} to ${I}`),this.moved=!0,i.currentTime=I,!(e!=null&&e.gap)){const C=new Error(`fragment loaded with buffer holes, seeking from ${s} to ${I}`),Q={type:ce.MEDIA_ERROR,details:Y.BUFFER_SEEK_OVER_HOLE,fatal:!1,error:C,reason:C.message,buffer:l.len,bufferInfo:l};e&&("fragment"in e?Q.part=e:Q.frag=e),this.hls.trigger(m.ERROR,Q)}return I}}return 0}_tryNudgeBuffer(e){const{hls:t,media:n,nudgeRetry:i}=this,r=t==null?void 0:t.config;if(!n||!r)return 0;const s=n.currentTime;if(this.nudgeRetry++,i<r.nudgeMaxRetry){const l=s+(i+1)*r.nudgeOffset,h=new Error(`Nudging 'currentTime' from ${s} to ${l}`);this.warn(h.message),n.currentTime=l,t.trigger(m.ERROR,{type:ce.MEDIA_ERROR,details:Y.BUFFER_NUDGE_ON_STALL,error:h,fatal:!1,buffer:e.len,bufferInfo:e})}else{const l=new Error(`Playhead still not moving while enough data buffered @${s} after ${r.nudgeMaxRetry} nudges`);this.error(l.message),t.trigger(m.ERROR,{type:ce.MEDIA_ERROR,details:Y.BUFFER_STALLED_ERROR,error:l,fatal:!0,buffer:e.len,bufferInfo:e})}}}function Ku(a,e){const t=Gu(a.main);if(t&&t.start<=e)return t;const n=Gu(a.audio);return n&&n.start<=e?n:null}function Gu(a){if(!a)return null;switch(a.state){case jt.IDLE:case jt.STOPPED:case jt.ENDED:case jt.ERROR:return null}return a.frag}function Wo(a,e){return e.getAppendedFrag(a,U.MAIN)||e.getPartialFragment(a)}const Uh=.25;function Jl(){if(typeof self!="undefined")return self.VTTCue||self.TextTrackCue}function Xl(a,e,t,n,i){let r=new a(e,t,"");try{r.value=n,i&&(r.type=i)}catch(s){r=new a(e,t,ut(i?E({type:i},n):n))}return r}const Zo=(()=>{const a=Jl();try{a&&new a(0,Number.POSITIVE_INFINITY,"")}catch(e){return Number.MAX_VALUE}return Number.POSITIVE_INFINITY})();class zh{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(m.EVENT_CUE_ENTER,{})},this.hls=e,this._registerListeners()}destroy(){this._unregisterListeners(),this.id3Track=null,this.media=null,this.dateRangeCuesAppended={},this.hls=this.onEventCueEnter=null}_registerListeners(){const{hls:e}=this;e&&(e.on(m.MEDIA_ATTACHING,this.onMediaAttaching,this),e.on(m.MEDIA_ATTACHED,this.onMediaAttached,this),e.on(m.MEDIA_DETACHING,this.onMediaDetaching,this),e.on(m.MANIFEST_LOADING,this.onManifestLoading,this),e.on(m.FRAG_PARSING_METADATA,this.onFragParsingMetadata,this),e.on(m.BUFFER_FLUSHING,this.onBufferFlushing,this),e.on(m.LEVEL_UPDATED,this.onLevelUpdated,this),e.on(m.LEVEL_PTS_UPDATED,this.onLevelPtsUpdated,this))}_unregisterListeners(){const{hls:e}=this;e&&(e.off(m.MEDIA_ATTACHING,this.onMediaAttaching,this),e.off(m.MEDIA_ATTACHED,this.onMediaAttached,this),e.off(m.MEDIA_DETACHING,this.onMediaDetaching,this),e.off(m.MANIFEST_LOADING,this.onManifestLoading,this),e.off(m.FRAG_PARSING_METADATA,this.onFragParsingMetadata,this),e.off(m.BUFFER_FLUSHING,this.onBufferFlushing,this),e.off(m.LEVEL_UPDATED,this.onLevelUpdated,this),e.off(m.LEVEL_PTS_UPDATED,this.onLevelPtsUpdated,this))}onMediaAttaching(e,t){var n;this.media=t.media,((n=t.overrides)==null?void 0:n.cueRemoval)===!1&&(this.removeCues=!1)}onMediaAttached(){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&&ka(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 _u(n,this.media),n}return this.media.addTextTrack("metadata","id3")}}onFragParsingMetadata(e,t){if(!this.media||!this.hls)return;const{enableEmsgMetadataCues:n,enableID3MetadataCues:i}=this.hls.config;if(!n&&!i)return;const{samples:r}=t;this.id3Track||(this.id3Track=this.createTrack(this.media));const s=Jl();if(s)for(let l=0;l<r.length;l++){const h=r[l].type;if(h===$r.emsg&&!n||!i)continue;const c=ma(r[l].data),f=r[l].pts;let g=f+r[l].duration;g>Zo&&(g=Zo),g-f<=0&&(g=f+Uh);for(let I=0;I<c.length;I++){const C=c[I];if(!va(C)){this.updateId3CueEnds(f,h);const Q=Xl(s,f,g,C,h);Q&&this.id3Track.addCue(Q)}}}}updateId3CueEnds(e,t){var n;const i=(n=this.id3Track)==null?void 0:n.cues;if(i)for(let r=i.length;r--;){const s=i[r];s.type===t&&s.startTime<e&&s.endTime===Zo&&(s.endTime=e)}}onBufferFlushing(e,{startOffset:t,endOffset:n,type:i}){const{id3Track:r,hls:s}=this;if(!s)return;const{config:{enableEmsgMetadataCues:l,enableID3MetadataCues:h}}=s;if(r&&(l||h)){let c;i==="audio"?c=f=>f.type===$r.audioId3&&h:i==="video"?c=f=>f.type===$r.emsg&&l:c=f=>f.type===$r.audioId3&&h||f.type===$r.emsg&&l,Ol(r,t,n,c)}}onLevelUpdated(e,{details:t}){this.updateDateRangeCues(t,!0)}onLevelPtsUpdated(e,t){Math.abs(t.drift)>.01&&this.updateDateRangeCues(t.details)}updateDateRangeCues(e,t){if(!this.hls||!this.media)return;const{assetPlayerId:n,timelineOffset:i,enableDateRangeMetadataCues:r,interstitialsController:s}=this.hls.config;if(!r)return;const l=Jl();if(n&&i&&!s){const{fragmentStart:Q,fragmentEnd:Z}=e;let me=this.assetCue;me?(me.startTime=Q,me.endTime=Z):l&&(me=this.assetCue=Xl(l,Q,Z,{assetPlayerId:this.hls.config.assetPlayerId},"hlsjs.interstitial.asset"),me&&(me.id=n,this.id3Track||(this.id3Track=this.createTrack(this.media)),this.id3Track.addCue(me),me.addEventListener("enter",this.onEventCueEnter)))}if(!e.hasProgramDateTime)return;const{id3Track:h}=this,{dateRanges:c}=e,f=Object.keys(c);let g=this.dateRangeCuesAppended;if(h&&t){var A;if((A=h.cues)!=null&&A.length){const Q=Object.keys(g).filter(Z=>!f.includes(Z));for(let Z=Q.length;Z--;){var I;const me=Q[Z],ye=(I=g[me])==null?void 0:I.cues;delete g[me],ye&&Object.keys(ye).forEach(be=>{const Ue=ye[be];if(Ue){Ue.removeEventListener("enter",this.onEventCueEnter);try{h.removeCue(Ue)}catch(Je){}}})}}else g=this.dateRangeCuesAppended={}}const C=e.fragments[e.fragments.length-1];if(!(f.length===0||!p(C==null?void 0:C.programDateTime))){this.id3Track||(this.id3Track=this.createTrack(this.media));for(let Q=0;Q<f.length;Q++){const Z=f[Q],me=c[Z],ye=me.startTime,be=g[Z],Ue=(be==null?void 0:be.cues)||{};let Je=(be==null?void 0:be.durationKnown)||!1,Bt=Zo;const{duration:nt,endDate:mt}=me;if(mt&&nt!==null)Bt=ye+nt,Je=!0;else if(me.endOnNext&&!Je){const at=f.reduce((Qt,Sn)=>{if(Sn!==me.id){const zn=c[Sn];if(zn.class===me.class&&zn.startDate>me.startDate&&(!Qt||me.startDate<Qt.startDate))return zn}return Qt},null);at&&(Bt=at.startTime,Je=!0)}const gt=Object.keys(me.attr);for(let at=0;at<gt.length;at++){const Qt=gt[at];if(!mr(Qt))continue;const Sn=Ue[Qt];if(Sn)Je&&!(be!=null&&be.durationKnown)?Sn.endTime=Bt:Math.abs(Sn.startTime-ye)>.01&&(Sn.startTime=ye,Sn.endTime=Bt);else if(l){let zn=me.attr[Qt];Ur(Qt)&&(zn=k(zn));const jn=Xl(l,ye,Bt,{key:Qt,data:zn},$r.dateRange);jn&&(jn.id=Z,this.id3Track.addCue(jn),Ue[Qt]=jn,s&&(Qt==="X-ASSET-LIST"||Qt==="X-ASSET-URL")&&jn.addEventListener("enter",this.onEventCueEnter))}}g[Z]={cues:Ue,dateRange:me,durationKnown:Je}}}}}class jh{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 i=this.computeLatency();if(i===null)return;this._latency=i;const{lowLatencyMode:r,maxLiveSyncPlaybackRate:s}=this.config;if(!r||s===1||!n.live)return;const l=this.targetLatency;if(l===null)return;const h=i-l,c=Math.min(this.maxLatency,l+n.targetduration);if(h<c&&h>.05&&this.forwardBufferLength>1){const g=Math.min(2,Math.max(1,s)),A=Math.round(2/(1+Math.exp(-.75*h-this.edgeStalled))*20)/20,I=Math.min(g,Math.max(1,A));this.changeMediaPlaybackRate(t,I)}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:i}=e,{liveSyncDuration:r,liveSyncDurationCount:s,lowLatencyMode:l}=this.config,h=this.hls.userConfig;let c=l&&n||t;(this._targetLatencyUpdated||h.liveSyncDuration||h.liveSyncDurationCount||c===0)&&(c=r!==void 0?r:s*i);const f=i;return c+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 i=n.edge,r=e-t-this.edgeStalled,s=i-n.totalduration,l=i-(this.config.lowLatencyMode&&n.partTarget||n.targetduration);return Math.min(Math.max(s,r),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(m.MEDIA_ATTACHED,this.onMediaAttached,this),e.on(m.MEDIA_DETACHING,this.onMediaDetaching,this),e.on(m.MANIFEST_LOADING,this.onManifestLoading,this),e.on(m.LEVEL_UPDATED,this.onLevelUpdated,this),e.on(m.ERROR,this.onError,this))}unregisterListeners(){const{hls:e}=this;e&&(e.off(m.MEDIA_ATTACHED,this.onMediaAttached,this),e.off(m.MEDIA_DETACHING,this.onMediaDetaching,this),e.off(m.MANIFEST_LOADING,this.onManifestLoading,this),e.off(m.LEVEL_UPDATED,this.onLevelUpdated,this),e.off(m.ERROR,this.onError,this))}onMediaAttached(e,t){this.media=t.media,this.media.addEventListener("timeupdate",this.onTimeupdate)}onMediaDetaching(){this.media&&(this.media.removeEventListener("timeupdate",this.onTimeupdate),this.media=null)}onManifestLoading(){this._latency=null,this.stallCount=0}onLevelUpdated(e,{details:t}){t.advanced&&this.onTimeupdate(),!t.live&&this.media&&this.media.removeEventListener("timeupdate",this.onTimeupdate)}onError(e,t){var n;t.details===Y.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,i;e.playbackRate!==t&&((n=this.hls)==null||n.logger.debug(`[latency-controller]: latency=${this.latency.toFixed(3)}, targetLatency=${(i=this.targetLatency)==null?void 0:i.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 Kh extends Wa{constructor(e,t){super(e,"level-controller"),this._levels=[],this._firstLevel=-1,this._maxAutoLevel=-1,this._startLevel=void 0,this.currentLevel=null,this.currentLevelIndex=-1,this.manualLevelIndex=-1,this.steering=void 0,this.onParsedComplete=void 0,this.steering=t,this._registerListeners()}_registerListeners(){const{hls:e}=this;e.on(m.MANIFEST_LOADING,this.onManifestLoading,this),e.on(m.MANIFEST_LOADED,this.onManifestLoaded,this),e.on(m.LEVEL_LOADED,this.onLevelLoaded,this),e.on(m.LEVELS_UPDATED,this.onLevelsUpdated,this),e.on(m.FRAG_BUFFERED,this.onFragBuffered,this),e.on(m.ERROR,this.onError,this)}_unregisterListeners(){const{hls:e}=this;e.off(m.MANIFEST_LOADING,this.onManifestLoading,this),e.off(m.MANIFEST_LOADED,this.onManifestLoaded,this),e.off(m.LEVEL_LOADED,this.onLevelLoaded,this),e.off(m.LEVELS_UPDATED,this.onLevelsUpdated,this),e.off(m.FRAG_BUFFERED,this.onFragBuffered,this),e.off(m.ERROR,this.onError,this)}destroy(){this._unregisterListeners(),this.steering=null,this.resetLevels(),super.destroy()}stopLoad(){this._levels.forEach(t=>{t.loadError=0,t.fragmentError=0}),super.stopLoad()}resetLevels(){this._startLevel=void 0,this.manualLevelIndex=-1,this.currentLevelIndex=-1,this.currentLevel=null,this._levels=[],this._maxAutoLevel=-1}onManifestLoading(e,t){this.resetLevels()}onManifestLoaded(e,t){const n=this.hls.config.preferManagedMediaSource,i=[],r={},s={};let l=!1,h=!1,c=!1;t.levels.forEach(f=>{const g=f.attrs;let{audioCodec:A,videoCodec:I}=f;A&&(f.audioCodec=A=Ye(A,n)||void 0),I&&(I=f.videoCodec=hn(I));const{width:C,height:Q,unknownCodecs:Z}=f,me=(Z==null?void 0:Z.length)||0;if(l||(l=!!(C&&Q)),h||(h=!!I),c||(c=!!A),me||A&&!this.isAudioSupported(A)||I&&!this.isVideoSupported(I)){this.log(`Some or all CODECS not supported "${g.CODECS}"`);return}const{CODECS:ye,"FRAME-RATE":be,"HDCP-LEVEL":Ue,"PATHWAY-ID":Je,RESOLUTION:Bt,"VIDEO-RANGE":nt}=g,gt=`${`${Je||"."}-`}${f.bitrate}-${Bt}-${be}-${ye}-${nt}-${Ue}`;if(r[gt])if(r[gt].uri!==f.url&&!f.attrs["PATHWAY-ID"]){const at=s[gt]+=1;f.attrs["PATHWAY-ID"]=new Array(at+1).join(".");const Qt=this.createLevel(f);r[gt]=Qt,i.push(Qt)}else r[gt].addGroupId("audio",g.AUDIO),r[gt].addGroupId("text",g.SUBTITLES);else{const at=this.createLevel(f);r[gt]=at,s[gt]=1,i.push(at)}}),this.filterAndSortMediaOptions(i,t,l,h,c)}createLevel(e){const t=new Xn(e),n=e.supplemental;if(n!=null&&n.videoCodec&&!this.isVideoSupported(n.videoCodec)){const i=new Error(`SUPPLEMENTAL-CODECS not supported "${n.videoCodec}"`);this.log(i.message),t.supportedResult=Rt(i,[])}return t}isAudioSupported(e){return Le(e,"audio",this.hls.config.preferManagedMediaSource)}isVideoSupported(e){return Le(e,"video",this.hls.config.preferManagedMediaSource)}filterAndSortMediaOptions(e,t,n,i,r){var s;let l=[],h=[],c=e;const f=((s=t.stats)==null?void 0:s.parsing)||{};if((n||i)&&r&&(c=c.filter(({videoCodec:ye,videoRange:be,width:Ue,height:Je})=>(!!ye||!!(Ue&&Je))&&Si(be))),c.length===0){Promise.resolve().then(()=>{if(this.hls){let ye="no level with compatible codecs found in manifest",be=ye;t.levels.length&&(be=`one or more CODECS in variant not supported: ${ut(t.levels.map(Je=>Je.attrs.CODECS).filter((Je,Bt,nt)=>nt.indexOf(Je)===Bt))}`,this.warn(be),ye+=` (${be})`);const Ue=new Error(ye);this.hls.trigger(m.ERROR,{type:ce.MEDIA_ERROR,details:Y.MANIFEST_INCOMPATIBLE_CODECS_ERROR,fatal:!0,url:t.url,error:Ue,reason:be})}}),f.end=performance.now();return}t.audioTracks&&(l=t.audioTracks.filter(ye=>!ye.audioCodec||this.isAudioSupported(ye.audioCodec)),Hu(l)),t.subtitles&&(h=t.subtitles,Hu(h));const g=c.slice(0);c.sort((ye,be)=>{if(ye.attrs["HDCP-LEVEL"]!==be.attrs["HDCP-LEVEL"])return(ye.attrs["HDCP-LEVEL"]||"")>(be.attrs["HDCP-LEVEL"]||"")?1:-1;if(n&&ye.height!==be.height)return ye.height-be.height;if(ye.frameRate!==be.frameRate)return ye.frameRate-be.frameRate;if(ye.videoRange!==be.videoRange)return ti.indexOf(ye.videoRange)-ti.indexOf(be.videoRange);if(ye.videoCodec!==be.videoCodec){const Ue=ue(ye.videoCodec),Je=ue(be.videoCodec);if(Ue!==Je)return Je-Ue}if(ye.uri===be.uri&&ye.codecSet!==be.codecSet){const Ue=Se(ye.codecSet),Je=Se(be.codecSet);if(Ue!==Je)return Je-Ue}return ye.averageBitrate!==be.averageBitrate?ye.averageBitrate-be.averageBitrate:0});let A=g[0];if(this.steering&&(c=this.steering.filterParsedLevels(c),c.length!==g.length)){for(let ye=0;ye<g.length;ye++)if(g[ye].pathwayId===c[0].pathwayId){A=g[ye];break}}this._levels=c;for(let ye=0;ye<c.length;ye++)if(c[ye]===A){var I;this._firstLevel=ye;const be=A.bitrate,Ue=this.hls.bandwidthEstimate;if(this.log(`manifest loaded, ${c.length} level(s) found, first bitrate: ${be}`),((I=this.hls.userConfig)==null?void 0:I.abrEwmaDefaultEstimate)===void 0){const Je=Math.min(be,this.hls.config.abrEwmaDefaultEstimateMax);Je>Ue&&Ue===this.hls.abrEwmaDefaultEstimate&&(this.hls.bandwidthEstimate=Je)}break}const C=r&&!i,Q=this.hls.config,Z=!!(Q.audioStreamController&&Q.audioTrackController),me={levels:c,audioTracks:l,subtitleTracks:h,sessionData:t.sessionData,sessionKeys:t.sessionKeys,firstLevel:this._firstLevel,stats:t.stats,audio:r,video:i,altAudio:Z&&!C&&l.some(ye=>!!ye.url)};f.end=performance.now(),this.hls.trigger(m.MANIFEST_PARSED,me)}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"),g=e<0;if(this.hls.trigger(m.ERROR,{type:ce.OTHER_ERROR,details:Y.LEVEL_SWITCH_ERROR,level:e,fatal:g,error:f,reason:f.message}),g)return;e=Math.min(e,t.length-1)}const n=this.currentLevelIndex,i=this.currentLevel,r=i?i.attrs["PATHWAY-ID"]:void 0,s=t[e],l=s.attrs["PATHWAY-ID"];if(this.currentLevelIndex=e,this.currentLevel=s,n===e&&i&&r===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}${r?" with Pathway "+r:""}`);const h={level:e,attrs:s.attrs,details:s.details,bitrate:s.bitrate,averageBitrate:s.averageBitrate,maxBitrate:s.maxBitrate,realBitrate:s.realBitrate,width:s.width,height:s.height,codecSet:s.codecSet,audioCodec:s.audioCodec,videoCodec:s.videoCodec,audioGroups:s.audioGroups,subtitleGroups:s.subtitleGroups,loaded:s.loaded,loadError:s.loadError,fragmentError:s.fragmentError,name:s.name,id:s.id,uri:s.uri,url:s.url,urlId:0,audioGroupIds:s.audioGroupIds,textGroupIds:s.textGroupIds};this.hls.trigger(m.LEVEL_SWITCHING,h);const c=s.details;if(!c||c.live){const f=this.switchParams(s.uri,i==null?void 0:i.details,c);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(i=>t.indexOf(i)!==-1);if(e.length<1){this.warn(`pathwayPriority ${e} should contain at least one pathway from list: ${t}`);return}this.steering.pathwayPriority=n}}onError(e,t){t.fatal||!t.context||t.context.type===ve.LEVEL&&t.context.level===this.level&&this.checkRetry(t)}onFragBuffered(e,{frag:t}){if(t!==void 0&&t.type===U.MAIN){const n=t.elementaryStreams;if(!Object.keys(n).some(r=>!!n[r]))return;const i=this._levels[t.level];i!=null&&i.loadError&&(this.log(`Resetting level error count of ${i.loadError} on frag buffered`),i.loadError=0)}}onLevelLoaded(e,t){var n;const{level:i,details:r}=t,s=t.levelInfo;if(!s){var l;this.warn(`Invalid level index ${i}`),(l=t.deliveryDirectives)!=null&&l.skip&&(r.deltaUpdateFailed=!0);return}if(s===this.currentLevel||t.withoutMultiVariant){s.fragmentError===0&&(s.loadError=0);let h=s.details;h===t.details&&h.advanced&&(h=void 0),this.playlistLoaded(i,t,h)}else(n=t.deliveryDirectives)!=null&&n.skip&&(r.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),i=this.currentLevelIndex,r=e.attrs["PATHWAY-ID"],s=e.details,l=s==null?void 0:s.age;this.log(`Loading level index ${i}${(t==null?void 0:t.msn)!==void 0?" at sn "+t.msn+" part "+t.part:""}${r?" Pathway "+r:""}${l&&s.live?" age "+l.toFixed(1)+(s.type?" "+s.type||0:""):""} ${n}`),this.hls.trigger(m.LEVEL_LOADING,{url:n,level:i,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((r,s)=>s!==e?!0:(this.steering&&this.steering.removeLevel(r),r===this.currentLevel&&(this.currentLevel=null,this.currentLevelIndex=-1,r.details&&r.details.fragments.forEach(l=>l.level=-1)),!1));fr(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 i=n.length-1;this._firstLevel=Math.min(this._firstLevel,i),this._startLevel&&(this._startLevel=Math.min(this._startLevel,i)),this.hls.trigger(m.LEVELS_UPDATED,{levels:n})}onLevelsUpdated(e,{levels:t}){this._levels=t}checkMaxAutoUpdated(){const{autoLevelCapping:e,maxAutoLevel:t,maxHdcpLevel:n}=this.hls;this._maxAutoLevel!==t&&(this._maxAutoLevel=t,this.hls.trigger(m.MAX_AUTO_LEVEL_UPDATED,{autoLevelCapping:e,levels:this.levels,maxAutoLevel:t,minAutoLevel:this.hls.minAutoLevel,maxHdcpLevel:n}))}}function Hu(a){const e={};a.forEach(t=>{const n=t.groupId||"";t.id=e[n]=e[n]||0,e[n]++})}function Vu(){return self.SourceBuffer||self.WebKitSourceBuffer}function Wu(){if(!we())return!1;const e=Vu();return!e||e.prototype&&typeof e.prototype.appendBuffer=="function"&&typeof e.prototype.remove=="function"}function Gh(){if(!Wu())return!1;const a=we();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(te(e,"video")))||["mp4a.40.2","fLaC"].some(e=>a.isTypeSupported(te(e,"audio"))))}function Hh(){var a;const e=Vu();return typeof(e==null||(a=e.prototype)==null?void 0:a.changeType)=="function"}const Vh=100;class Wh extends la{constructor(e,t,n){super(e,t,n,"stream-controller",U.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 i=this.media,r=i?i.currentTime:null;if(r===null||!p(r)||(this.log(`Media seeked to ${r.toFixed(3)}`),!this.getBufferedFrag(r)))return;const s=this.getFwdBufferInfoAtPos(i,r,U.MAIN,0);if(s===null||s.len===0){this.warn(`Main forward buffer length at ${r} on "seeked" event ${s?s.len:"empty"})`);return}this.tick()},this.registerListeners()}registerListeners(){super.registerListeners();const{hls:e}=this;e.on(m.MANIFEST_PARSED,this.onManifestParsed,this),e.on(m.LEVEL_LOADING,this.onLevelLoading,this),e.on(m.LEVEL_LOADED,this.onLevelLoaded,this),e.on(m.FRAG_LOAD_EMERGENCY_ABORTED,this.onFragLoadEmergencyAborted,this),e.on(m.AUDIO_TRACK_SWITCHING,this.onAudioTrackSwitching,this),e.on(m.AUDIO_TRACK_SWITCHED,this.onAudioTrackSwitched,this),e.on(m.BUFFER_CREATED,this.onBufferCreated,this),e.on(m.BUFFER_FLUSHED,this.onBufferFlushed,this),e.on(m.LEVELS_UPDATED,this.onLevelsUpdated,this),e.on(m.FRAG_BUFFERED,this.onFragBuffered,this)}unregisterListeners(){super.unregisterListeners();const{hls:e}=this;e.off(m.MANIFEST_PARSED,this.onManifestParsed,this),e.off(m.LEVEL_LOADED,this.onLevelLoaded,this),e.off(m.FRAG_LOAD_EMERGENCY_ABORTED,this.onFragLoadEmergencyAborted,this),e.off(m.AUDIO_TRACK_SWITCHING,this.onAudioTrackSwitching,this),e.off(m.AUDIO_TRACK_SWITCHED,this.onAudioTrackSwitched,this),e.off(m.BUFFER_CREATED,this.onBufferCreated,this),e.off(m.BUFFER_FLUSHED,this.onBufferFlushed,this),e.off(m.LEVELS_UPDATED,this.onLevelsUpdated,this),e.off(m.FRAG_BUFFERED,this.onFragBuffered,this)}onHandlerDestroying(){this.onMediaPlaying=this.onMediaSeeked=null,this.unregisterListeners(),super.onHandlerDestroying()}startLoad(e,t){if(this.levels){const{lastCurrentTime:n,hls:i}=this;if(this.stopLoad(),this.setInterval(Vh),this.level=-1,!this.startFragRequested){let r=i.startLevel;r===-1&&(i.config.testBandwidth&&this.levels.length>1?(r=0,this.bitrateTest=!0):r=i.firstAutoLevel),i.nextLoadLevel=r,this.level=i.loadLevel,this._hasEnoughToStart=!!t}n>0&&e===-1&&!t&&(this.log(`Override startPosition with lastCurrentTime @${n.toFixed(3)}`),e=n),this.state=jt.IDLE,this.nextLoadPosition=this.lastCurrentTime=e+this.timelineOffset,this.startPosition=t?-1:e,this.tick()}else this._forceStartLoad=!0,this.state=jt.STOPPED}stopLoad(){this._forceStartLoad=!1,super.stopLoad()}doTick(){switch(this.state){case jt.WAITING_LEVEL:{const{levels:e,level:t}=this,n=e==null?void 0:e[t],i=n==null?void 0:n.details;if(i&&(!i.live||this.levelLastLoaded===n&&!this.waitForLive(n))){if(this.waitForCdnTuneIn(i))break;this.state=jt.IDLE;break}else if(this.hls.nextLoadLevel!==this.level){this.state=jt.IDLE;break}break}case jt.FRAG_LOADING_WAITING_RETRY:this.checkRetryDate();break}this.state===jt.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:i}=this;if(t===null||!i&&!this.primaryPrefetch&&(this.startFragRequested||!e.config.startFragPrefetch)||this.altAudio&&this.audioOnly)return;const r=this.buffering?e.nextLoadLevel:e.loadLevel;if(!(n!=null&&n[r]))return;const s=n[r],l=this.getMainFwdBufferInfo();if(l===null)return;const h=this.getLevelDetails();if(h&&this._streamEnded(l,h)){const Q={};this.altAudio===2&&(Q.type="video"),this.hls.trigger(m.BUFFER_EOS,Q),this.state=jt.ENDED;return}if(!this.buffering)return;e.loadLevel!==r&&e.manualLevel===-1&&this.log(`Adapting to level ${r} from level ${this.level}`),this.level=e.nextLoadLevel=r;const c=s.details;if(!c||this.state===jt.WAITING_LEVEL||this.waitForLive(s)){this.level=r,this.state=jt.WAITING_LEVEL,this.startFragRequested=!1;return}const f=l.len,g=this.getMaxBufferLength(s.maxBitrate);if(f>=g)return;this.backtrackFragment&&this.backtrackFragment.start>l.end&&(this.backtrackFragment=null);const A=this.backtrackFragment?this.backtrackFragment.start:l.end;let I=this.getNextFragment(A,c);if(this.couldBacktrack&&!this.fragPrevious&&I&&ke(I)&&this.fragmentTracker.getState(I)!==Cn.OK){var C;const Z=((C=this.backtrackFragment)!=null?C:I).sn-c.startSN,me=c.fragments[Z-1];me&&I.cc===me.cc&&(I=me,this.fragmentTracker.removeFragment(me))}else this.backtrackFragment&&l.len&&(this.backtrackFragment=null);if(I&&this.isLoopLoading(I,A)){if(!I.gap){const Z=this.audioOnly&&!this.altAudio?W.AUDIO:W.VIDEO,me=(Z===W.VIDEO?this.videoBuffer:this.mediaBuffer)||this.media;me&&this.afterBufferFlushed(me,Z,U.MAIN)}I=this.getNextFragmentLoopLoading(I,c,l,U.MAIN,g)}I&&(I.initSegment&&!I.initSegment.data&&!this.bitrateTest&&(I=I.initSegment),this.loadFragment(I,s,A))}loadFragment(e,t,n){const i=this.fragmentTracker.getState(e);i===Cn.NOT_LOADED||i===Cn.PARTIAL?ke(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,U.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 i=this.getAppendedFrag(t.currentTime);i&&i.start>1&&this.flushMainBuffer(0,i.start-1);const r=this.getLevelDetails();if(r!=null&&r.live){const l=this.getMainFwdBufferInfo();if(!l||l.len<r.targetduration*2)return}if(!t.paused&&e){const l=this.hls.nextLoadLevel,h=e[l],c=this.fragLastKbps;c&&this.fragCurrent?n=this.fragCurrent.duration*h.maxBitrate/(1e3*c)+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 h=l.maxStartPTS?l.maxStartPTS:l.start,c=l.duration,f=Math.max(s.end,h+Math.min(Math.max(c-this.config.maxFragLookUpTolerance,c*(this.couldBacktrack?.5:.125)),c*(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 jt.KEY_LOADING:case jt.FRAG_LOADING:case jt.FRAG_LOADING_WAITING_RETRY:case jt.PARSING:case jt.PARSED:this.state=jt.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;Or(n,"playing",this.onMediaPlaying),Or(n,"seeked",this.onMediaSeeked)}onMediaDetaching(e,t){const{media:n}=this;n&&(zr(n,"playing",this.onMediaPlaying),zr(n,"seeked",this.onMediaSeeked)),this.videoBuffer=null,this.fragPlaying=null,super.onMediaDetaching(e,t),!t.transferMedia&&(this._hasEnoughToStart=!1)}onManifestLoading(){super.onManifestLoading(),this.log("Trigger BUFFER_RESET"),this.hls.trigger(m.BUFFER_RESET,void 0),this.couldBacktrack=!1,this.fragLastKbps=0,this.fragPlaying=this.backtrackFragment=null,this.altAudio=0,this.audioOnly=!1}onManifestParsed(e,t){let n=!1,i=!1;for(let r=0;r<t.levels.length;r++){const s=t.levels[r].audioCodec;s&&(n=n||s.indexOf("mp4a.40.2")!==-1,i=i||s.indexOf("mp4a.40.5")!==-1)}this.audioCodecSwitch=n&&i&&!Hh(),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!==jt.IDLE)return;const i=t.levelInfo;(!i.details||i.details.live&&(this.levelLastLoaded!==i||i.details.expired)||this.waitForCdnTuneIn(i.details))&&(this.state=jt.WAITING_LEVEL)}onLevelLoaded(e,t){var n;const{levels:i,startFragRequested:r}=this,s=t.level,l=t.details,h=l.totalduration;if(!i){this.warn(`Levels were reset while loading level ${s}`);return}this.log(`Level ${s} loaded [${l.startSN},${l.endSN}]${l.lastPartSn?`[part-${l.lastPartSn}-${l.lastPartIndex}]`:""}, cc [${l.startCC}, ${l.endCC}] duration:${h}`);const c=t.levelInfo,f=this.fragCurrent;f&&(this.state===jt.FRAG_LOADING||this.state===jt.FRAG_LOADING_WAITING_RETRY)&&f.level!==t.level&&f.loader&&this.abortCurrentFrag();let g=0;if(l.live||(n=c.details)!=null&&n.live){var A;if(this.checkLiveUpdate(l),l.deltaUpdateFailed)return;g=this.alignPlaylists(l,c.details,(A=this.levelLastLoaded)==null?void 0:A.details)}if(c.details=l,this.levelLastLoaded=c,r||this.setStartPosition(l,g),this.hls.trigger(m.LEVEL_UPDATED,{details:l,level:s}),this.state===jt.WAITING_LEVEL){if(this.waitForCdnTuneIn(l))return;this.state=jt.IDLE}r&&l.live&&this.synchronizeToLiveEdge(l),this.tick()}synchronizeToLiveEdge(e){const{config:t,media:n}=this;if(!n)return;const i=this.hls.liveSyncPosition,r=this.getLoadPosition(),s=e.fragmentStart,l=e.edge,h=r>=s-t.maxFragLookUpTolerance&&r<=l;if(i!==null&&n.duration>i&&(r<i||!h)){const f=t.liveMaxLatencyDuration!==void 0?t.liveMaxLatencyDuration:t.liveMaxLatencyDurationCount*e.targetduration;if((!h&&n.readyState<4||r<l-f)&&(this._hasEnoughToStart||(this.nextLoadPosition=i),n.readyState))if(this.warn(`Playback: ${r.toFixed(3)} is located too far from the end of live sliding playlist: ${l}, reset currentTime to : ${i.toFixed(3)}`),this.config.liveSyncMode==="buffered"){var c;const g=Vn.bufferInfo(n,i,0);if(!((c=g.buffered)!=null&&c.length)){n.currentTime=i;return}if(g.start<=r){n.currentTime=i;return}const{nextStart:I}=Vn.bufferedInfo(g.buffered,r,0);I&&(n.currentTime=I)}else n.currentTime=i}}_handleFragmentLoadProgress(e){var t;const n=e.frag,{part:i,payload:r}=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 h=l.details;if(!h){this.warn(`Dropping fragment ${n.sn} of level ${n.level} after level details were reset`),this.fragmentTracker.removeFragment(n);return}const c=l.videoCodec,f=h.PTSKnown||!h.live,g=(t=n.initSegment)==null?void 0:t.data,A=this._getAudioCodec(l),I=this.transmuxer=this.transmuxer||new ea(this.hls,U.MAIN,this._handleTransmuxComplete.bind(this),this._handleTransmuxerFlush.bind(this)),C=i?i.index:-1,Q=C!==-1,Z=new Ji(n.level,n.sn,n.stats.chunkCount,r.byteLength,C,Q),me=this.initPTS[n.cc];I.push(r,g,A,c,n,i,h.totalduration,f,Z,me)}onAudioTrackSwitching(e,t){const n=this.hls,i=this.altAudio===2;if(G(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(i){this.fragmentTracker.removeAllFragments(),n.once(m.BUFFER_FLUSHED,()=>{this.hls&&this.hls.trigger(m.AUDIO_TRACK_SWITCHED,t)}),n.trigger(m.BUFFER_FLUSHING,{startOffset:0,endOffset:Number.POSITIVE_INFINITY,type:null});return}n.trigger(m.AUDIO_TRACK_SWITCHED,t)}}onAudioTrackSwitched(e,t){const n=G(t.url,this.hls);if(n){const i=this.videoBuffer;i&&this.mediaBuffer!==i&&(this.log("Switching on alternate audio, use video.buffered to schedule main fragment loading"),this.mediaBuffer=i)}this.altAudio=n?2:0,this.tick()}onBufferCreated(e,t){const n=t.tracks;let i,r,s=!1;for(const l in n){const h=n[l];if(h.id==="main"){if(r=l,i=h,l==="video"){const c=n[l];c&&(this.videoBuffer=c.buffer)}}else s=!0}s&&i?(this.log(`Alternate track found, use ${r}.buffered to schedule main fragment loading`),this.mediaBuffer=i.buffer):this.mediaBuffer=this.media}onFragBuffered(e,t){const{frag:n,part:i}=t,r=n.type===U.MAIN;if(r){if(this.fragContextChanged(n)){this.warn(`Fragment ${n.sn}${i?" p: "+i.index:""} of level ${n.level} finished buffering, but was aborted. state: ${this.state}`),this.state===jt.PARSED&&(this.state=jt.IDLE);return}const l=i?i.stats:n.stats;this.fragLastKbps=Math.round(8*l.total/(l.buffering.end-l.loading.first)),ke(n)&&(this.fragPrevious=n),this.fragBufferedComplete(n,i)}const s=this.media;s&&(!this._hasEnoughToStart&&Vn.getBuffered(s).length&&(this._hasEnoughToStart=!0,this.seekToStartPos()),r&&this.tick())}get hasEnoughToStart(){return this._hasEnoughToStart}onError(e,t){var n;if(t.fatal){this.state=jt.ERROR;return}switch(t.details){case Y.FRAG_GAP:case Y.FRAG_PARSING_ERROR:case Y.FRAG_DECRYPT_ERROR:case Y.FRAG_LOAD_ERROR:case Y.FRAG_LOAD_TIMEOUT:case Y.KEY_LOAD_ERROR:case Y.KEY_LOAD_TIMEOUT:this.onFragmentOrKeyLoadError(U.MAIN,t);break;case Y.LEVEL_LOAD_ERROR:case Y.LEVEL_LOAD_TIMEOUT:case Y.LEVEL_PARSING_ERROR:!t.levelRetry&&this.state===jt.WAITING_LEVEL&&((n=t.context)==null?void 0:n.type)===ve.LEVEL&&(this.state=jt.IDLE);break;case Y.BUFFER_ADD_CODEC_ERROR:case Y.BUFFER_APPEND_ERROR:if(t.parent!=="main")return;this.reduceLengthAndFlushBuffer(t)&&this.resetLoadingState();break;case Y.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 Y.INTERNAL_EXCEPTION:this.recoverWorkerError(t);break}}onFragLoadEmergencyAborted(){this.state=jt.IDLE,this._hasEnoughToStart||(this.startFragRequested=!1,this.nextLoadPosition=this.lastCurrentTime),this.tickImmediate()}onBufferFlushed(e,{type:t}){if(t!==W.AUDIO||!this.altAudio){const n=(t===W.VIDEO?this.videoBuffer:this.mediaBuffer)||this.media;n&&(this.afterBufferFlushed(n,t,U.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 i=this.timelineOffset;i&&n&&(n+=i);const r=this.getLevelDetails(),s=Vn.getBuffered(e),l=s.length?s.start(0):0,h=l-n,c=Math.max(this.config.maxBufferHole,this.config.maxFragLookUpTolerance);(this.config.startOnSegmentBoundary||h>0&&(h<c||this.loadingParts&&h<2*((r==null?void 0:r.partTarget)||0)))&&(this.log(`adjusting start position by ${h} to match buffer start`),n+=h,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:i}=this,r=n==null?void 0:n.frag;if(!r||this.fragContextChanged(r))return;t.fragmentError=0,this.state=jt.IDLE,this.startFragRequested=!1,this.bitrateTest=!1;const s=r.stats;s.parsing.start=s.parsing.end=s.buffering.start=s.buffering.end=self.performance.now(),i.trigger(m.FRAG_LOADED,n),r.bitrateTest=!1}).catch(n=>{this.state===jt.STOPPED||this.state===jt.ERROR||(this.warn(n),this.resetFragmentLoading(e))})}_handleTransmuxComplete(e){const t=this.playlistType,{hls:n}=this,{remuxResult:i,chunkMeta:r}=e,s=this.getCurrentContext(r);if(!s){this.resetWhenMissingContext(r);return}const{frag:l,part:h,level:c}=s,{video:f,text:g,id3:A,initSegment:I}=i,{details:C}=c,Q=this.altAudio?void 0:i.audio;if(this.fragContextChanged(l)){this.fragmentTracker.removeFragment(l);return}if(this.state=jt.PARSING,I){const Z=I.tracks;if(Z){const Ue=l.initSegment||l;if(this.unhandledEncryptionError(I,l))return;this._bufferInitSegment(c,Z,Ue,r),n.trigger(m.FRAG_PARSING_INIT_SEGMENT,{frag:Ue,id:t,tracks:Z})}const me=I.initPTS,ye=I.timescale,be=this.initPTS[l.cc];if(p(me)&&(!be||be.baseTime!==me||be.timescale!==ye)){const Ue=I.trackId;this.initPTS[l.cc]={baseTime:me,timescale:ye,trackId:Ue},n.trigger(m.INIT_PTS_FOUND,{frag:l,id:t,initPTS:me,timescale:ye,trackId:Ue})}}if(f&&C){Q&&f.type==="audiovideo"&&this.logMuxedErr(l);const Z=C.fragments[l.sn-1-C.startSN],me=l.sn===C.startSN,ye=!Z||l.cc>Z.cc;if(i.independent!==!1){const{startPTS:be,endPTS:Ue,startDTS:Je,endDTS:Bt}=f;if(h)h.elementaryStreams[f.type]={startPTS:be,endPTS:Ue,startDTS:Je,endDTS:Bt};else if(f.firstKeyFrame&&f.independent&&r.id===1&&!ye&&(this.couldBacktrack=!0),f.dropped&&f.independent){const nt=this.getMainFwdBufferInfo(),mt=(nt?nt.end:this.getLoadPosition())+this.config.maxBufferHole,gt=f.firstKeyFramePTS?f.firstKeyFramePTS:be;if(!me&&mt<gt-this.config.maxBufferHole&&!ye){this.backtrack(l);return}else ye&&(l.gap=!0);l.setElementaryStreamInfo(f.type,l.start,Ue,l.start,Bt,!0)}else me&&be-(C.appliedTimelineOffset||0)>Vo&&(l.gap=!0);l.setElementaryStreamInfo(f.type,be,Ue,Je,Bt),this.backtrackFragment&&(this.backtrackFragment=l),this.bufferFragmentData(f,l,h,r,me||ye)}else if(me||ye)l.gap=!0;else{this.backtrack(l);return}}if(Q){const{startPTS:Z,endPTS:me,startDTS:ye,endDTS:be}=Q;h&&(h.elementaryStreams[W.AUDIO]={startPTS:Z,endPTS:me,startDTS:ye,endDTS:be}),l.setElementaryStreamInfo(W.AUDIO,Z,me,ye,be),this.bufferFragmentData(Q,l,h,r)}if(C&&A!=null&&A.samples.length){const Z={id:t,frag:l,details:C,samples:A.samples};n.trigger(m.FRAG_PARSING_METADATA,Z)}if(C&&g){const Z={id:t,frag:l,details:C,samples:g.samples};n.trigger(m.FRAG_PARSING_USERDATA,Z)}}logMuxedErr(e){this.warn(`${ke(e)?"Media":"Init"} segment with muxed audiovideo where only video expected: ${e.url}`)}_bufferInitSegment(e,t,n,i){if(this.state!==jt.PARSING)return;this.audioOnly=!!t.audio&&!t.video,this.altAudio&&!this.audioOnly&&(delete t.audio,t.audiovideo&&this.logMuxedErr(n));const{audio:r,video:s,audiovideo:l}=t;if(r){const c=e.audioCodec;let f=pt(r.codec,c);f==="mp4a"&&(f="mp4a.40.5");const g=navigator.userAgent.toLowerCase();if(this.audioCodecSwitch){f&&(f.indexOf("mp4a.40.5")!==-1?f="mp4a.40.2":f="mp4a.40.5");const A=r.metadata;A&&"channelCount"in A&&(A.channelCount||1)!==1&&g.indexOf("firefox")===-1&&(f="mp4a.40.5")}f&&f.indexOf("mp4a.40.5")!==-1&&g.indexOf("android")!==-1&&r.container!=="audio/mpeg"&&(f="mp4a.40.2",this.log(`Android: force audio codec to ${f}`)),c&&c!==f&&this.log(`Swapping manifest audio codec "${c}" for "${f}"`),r.levelCodec=f,r.id=U.MAIN,this.log(`Init audio buffer, container:${r.container}, codecs[selected/level/parsed]=[${f||""}/${c||""}/${r.codec}]`),delete t.audiovideo}if(s){s.levelCodec=e.videoCodec,s.id=U.MAIN;const c=s.codec;if((c==null?void 0:c.length)===4)switch(c){case"hvc1":case"hev1":s.codec="hvc1.1.6.L120.90";break;case"av01":s.codec="av01.0.04M.08";break;case"avc1":s.codec="avc1.42e01e";break}this.log(`Init video buffer, container:${s.container}, codecs[level/parsed]=[${e.videoCodec||""}/${c}]${s.codec!==c?" parsed-corrected="+s.codec:""}${s.supplemental?" supplemental="+s.supplemental:""}`),delete t.audiovideo}l&&(this.log(`Init audiovideo buffer, container:${l.container}, codecs[level/parsed]=[${e.codecs}/${l.codec}]`),delete t.video,delete t.audio);const h=Object.keys(t);if(h.length){if(this.hls.trigger(m.BUFFER_CODECS,t),!this.hls)return;h.forEach(c=>{const g=t[c].initSegment;g!=null&&g.byteLength&&this.hls.trigger(m.BUFFER_APPENDING,{type:c,data:g,frag:n,part:null,chunkMeta:i,parent:n.type})})}this.tickImmediate()}getMainFwdBufferInfo(){const e=this.mediaBuffer&&this.altAudio===2?this.mediaBuffer:this.media;return this.getFwdBufferInfo(e,U.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=jt.IDLE}checkFragmentChanged(){const e=this.media;let t=null;if(e&&e.readyState>1&&e.seeking===!1){const n=e.currentTime;if(Vn.isBuffered(e,n)?t=this.getAppendedFrag(n):Vn.isBuffered(e,n+.1)&&(t=this.getAppendedFrag(n+.1)),t){this.backtrackFragment=null;const i=this.fragPlaying,r=t.level;(!i||t.sn!==i.sn||i.level!==r)&&(this.fragPlaying=t,this.hls.trigger(m.FRAG_CHANGED,{frag:t}),(!i||i.level!==r)&&this.hls.trigger(m.LEVEL_SWITCHED,{level:r}))}}}get nextLevel(){const e=this.nextBufferedFrag;return e?e.level:-1}get currentFrag(){var e;if(this.fragPlaying)return this.fragPlaying;const t=((e=this.media)==null?void 0:e.currentTime)||this.lastCurrentTime;return p(t)?this.getAppendedFrag(t):null}get currentProgramDateTime(){var e;const t=((e=this.media)==null?void 0:e.currentTime)||this.lastCurrentTime;if(p(t)){const n=this.getLevelDetails(),i=this.currentFrag||(n?$e(null,n.fragments,t):null);if(i){const r=i.programDateTime;if(r!==null){const s=r+(t-i.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 Zh extends P{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 i=this.keyIdToKeyInfo[n].loader;if(i){var t;if(e&&e!==((t=i.context)==null?void 0:t.frag.type))return;i.abort()}}}detach(){for(const e in this.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=Y.KEY_LOAD_ERROR,n,i,r){return new hi({type:ce.NETWORK_ERROR,details:t,fatal:!1,frag:e,response:r,error:n,networkDetails:i})}loadClear(e,t,n){if(this.emeController&&this.config.emeEnabled&&!this.emeController.getSelectedKeySystemFormats().length){if(t.length)for(let i=0,r=t.length;i<r;i++){const s=t[i];if(e.cc<=s.cc&&(!ke(e)||!ke(s)||e.sn<s.sn)||!n&&i==r-1)return this.emeController.selectKeySystemFormat(s).then(l=>{if(!this.emeController)return;s.setKeyFormat(l);const h=kr(l);if(h)return this.emeController.getKeySystemAccess([h])})}if(this.config.requireKeySystemAccessOnStart){const i=Wr(this.config);if(i.length)return this.emeController.getKeySystemAccess(i)}}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,i;t&&e.setKeyFormat(t);const r=e.decryptdata;if(!r){const c=new Error(t?`Expected frag.decryptdata to be defined after setting format ${t}`:`Missing decryption data on fragment in onKeyLoading (emeEnabled with controller: ${this.emeController&&this.config.emeEnabled})`);return Promise.reject(this.createKeyLoadError(e,Y.KEY_LOAD_ERROR,c))}const s=r.uri;if(!s)return Promise.reject(this.createKeyLoadError(e,Y.KEY_LOAD_ERROR,new Error(`Invalid key URI: "${s}"`)));const l=ql(r);let h=this.keyIdToKeyInfo[l];if((n=h)!=null&&n.decryptdata.key)return r.key=h.decryptdata.key,Promise.resolve({frag:e,keyInfo:h});if(this.emeController&&(i=h)!=null&&i.keyLoadPromise)switch(this.emeController.getKeyStatus(h.decryptdata)){case"usable":case"usable-in-future":return h.keyLoadPromise.then(f=>{const{keyInfo:g}=f;return r.key=g.decryptdata.key,{frag:e,keyInfo:g}})}switch(this.log(`${this.keyIdToKeyInfo[l]?"Rel":"L"}oading${r.keyId?" keyId: "+K(r.keyId):""} URI: ${r.uri} from ${e.type} ${e.level}`),h=this.keyIdToKeyInfo[l]={decryptdata:r,keyLoadPromise:null,loader:null,mediaKeySessionContext:null},r.method){case"SAMPLE-AES":case"SAMPLE-AES-CENC":case"SAMPLE-AES-CTR":return r.keyFormat==="identity"?this.loadKeyHTTP(h,e):this.loadKeyEME(h,e);case"AES-128":case"AES-256":case"AES-256-CTR":return this.loadKeyHTTP(h,e);default:return Promise.reject(this.createKeyLoadError(e,Y.KEY_LOAD_ERROR,new Error(`Key supplied with unsupported METHOD: "${r.method}"`)))}}loadKeyEME(e,t){const n={frag:t,keyInfo:e};if(this.emeController&&this.config.emeEnabled){var i;if(!e.decryptdata.keyId&&(i=t.initSegment)!=null&&i.data){const s=zt(t.initSegment.data);if(s.length){const l=s[0];l.some(h=>h!==0)&&(this.log(`Using keyId found in init segment ${K(l)}`),e.decryptdata.keyId=l,Lr.setKeyIdForUri(e.decryptdata.uri,l))}}const r=this.emeController.loadKey(n);return(e.keyLoadPromise=r.then(s=>(e.mediaKeySessionContext=s,n))).catch(s=>{throw e.keyLoadPromise=null,"data"in s&&(s.data.frag=t),s})}return Promise.resolve(n)}loadKeyHTTP(e,t){const n=this.config,i=n.loader,r=new i(n);return t.keyLoader=e.loader=r,e.keyLoadPromise=new Promise((s,l)=>{const h={keyInfo:e,frag:t,responseType:"arraybuffer",url:e.decryptdata.uri},c=n.keyLoadPolicy.default,f={loadPolicy:c,timeout:c.maxLoadTimeMs,maxRetry:0,retryDelay:0,maxRetryDelay:0},g={onSuccess:(A,I,C,Q)=>{const{frag:Z,keyInfo:me}=C,ye=ql(me.decryptdata);if(!Z.decryptdata||me!==this.keyIdToKeyInfo[ye])return l(this.createKeyLoadError(Z,Y.KEY_LOAD_ERROR,new Error("after key load, decryptdata unset or changed"),Q));me.decryptdata.key=Z.decryptdata.key=new Uint8Array(A.data),Z.keyLoader=null,me.loader=null,s({frag:Z,keyInfo:me})},onError:(A,I,C,Q)=>{this.resetLoader(I),l(this.createKeyLoadError(t,Y.KEY_LOAD_ERROR,new Error(`HTTP Error ${A.code} loading key ${A.text}`),C,E({url:h.url,data:void 0},A)))},onTimeout:(A,I,C)=>{this.resetLoader(I),l(this.createKeyLoadError(t,Y.KEY_LOAD_TIMEOUT,new Error("key loading timed out"),C))},onAbort:(A,I,C)=>{this.resetLoader(I),l(this.createKeyLoadError(t,Y.INTERNAL_ABORTED,new Error("key loading aborted"),C))}};r.load(h,f,g)})}resetLoader(e){const{frag:t,keyInfo:n,url:i}=e,r=n.loader;t.keyLoader===r&&(t.keyLoader=null,n.loader=null);const s=ql(n.decryptdata)||i;delete this.keyIdToKeyInfo[s],r&&r.destroy()}}function ql(a){if(a.keyFormat!==pi.FAIRPLAY){const e=a.keyId;if(e)return K(e)}return a.uri}function Zu(a){const{type:e}=a;switch(e){case ve.AUDIO_TRACK:return U.AUDIO;case ve.SUBTITLE_TRACK:return U.SUBTITLE;default:return U.MAIN}}function $l(a,e){let t=a.url;return(t===void 0||t.indexOf("data:")===0)&&(t=e.url),t}class Qh{constructor(e){this.hls=void 0,this.loaders=Object.create(null),this.variableList=null,this.onManifestLoaded=this.checkAutostartLoad,this.hls=e,this.registerListeners()}startLoad(e){}stopLoad(){this.destroyInternalLoaders()}registerListeners(){const{hls:e}=this;e.on(m.MANIFEST_LOADING,this.onManifestLoading,this),e.on(m.LEVEL_LOADING,this.onLevelLoading,this),e.on(m.AUDIO_TRACK_LOADING,this.onAudioTrackLoading,this),e.on(m.SUBTITLE_TRACK_LOADING,this.onSubtitleTrackLoading,this),e.on(m.LEVELS_UPDATED,this.onLevelsUpdated,this)}unregisterListeners(){const{hls:e}=this;e.off(m.MANIFEST_LOADING,this.onManifestLoading,this),e.off(m.LEVEL_LOADING,this.onLevelLoading,this),e.off(m.AUDIO_TRACK_LOADING,this.onAudioTrackLoading,this),e.off(m.SUBTITLE_TRACK_LOADING,this.onSubtitleTrackLoading,this),e.off(m.LEVELS_UPDATED,this.onLevelsUpdated,this)}createInternalLoader(e){const t=this.hls.config,n=t.pLoader,i=t.loader,r=n||i,s=new r(t);return this.loaders[e.type]=s,s}getInternalLoader(e){return this.loaders[e.type]}resetInternalLoader(e){this.loaders[e]&&delete this.loaders[e]}destroyInternalLoaders(){for(const e in this.loaders){const t=this.loaders[e];t&&t.destroy(),this.resetInternalLoader(e)}}destroy(){this.variableList=null,this.unregisterListeners(),this.destroyInternalLoaders()}onManifestLoading(e,t){const{url:n}=t;this.variableList=null,this.load({id:null,level:0,responseType:"text",type:ve.MANIFEST,url:n,deliveryDirectives:null,levelOrTrack:null})}onLevelLoading(e,t){const{id:n,level:i,pathwayId:r,url:s,deliveryDirectives:l,levelInfo:h}=t;this.load({id:n,level:i,pathwayId:r,responseType:"text",type:ve.LEVEL,url:s,deliveryDirectives:l,levelOrTrack:h})}onAudioTrackLoading(e,t){const{id:n,groupId:i,url:r,deliveryDirectives:s,track:l}=t;this.load({id:n,groupId:i,level:null,responseType:"text",type:ve.AUDIO_TRACK,url:r,deliveryDirectives:s,levelOrTrack:l})}onSubtitleTrackLoading(e,t){const{id:n,groupId:i,url:r,deliveryDirectives:s,track:l}=t;this.load({id:n,groupId:i,level:null,responseType:"text",type:ve.SUBTITLE_TRACK,url:r,deliveryDirectives:s,levelOrTrack:l})}onLevelsUpdated(e,t){const n=this.loaders[ve.LEVEL];if(n){const i=n.context;i&&!t.levels.some(r=>r===i.levelOrTrack)&&(n.abort(),delete this.loaders[ve.LEVEL])}}load(e){var t;const n=this.hls.config;let i=this.getInternalLoader(e);if(i){const c=this.hls.logger,f=i.context;if(f&&f.levelOrTrack===e.levelOrTrack&&(f.url===e.url||f.deliveryDirectives&&!e.deliveryDirectives)){f.url===e.url?c.log(`[playlist-loader]: ignore ${e.url} ongoing request`):c.log(`[playlist-loader]: ignore ${e.url} in favor of ${f.url}`);return}c.log(`[playlist-loader]: aborting previous loader for type: ${e.type}`),i.abort()}let r;if(e.type===ve.MANIFEST?r=n.manifestLoadPolicy.default:r=_({},n.playlistLoadPolicy.default,{timeoutRetry:null,errorRetry:null}),i=this.createInternalLoader(e),p((t=e.deliveryDirectives)==null?void 0:t.part)){let c;if(e.type===ve.LEVEL&&e.level!==null?c=this.hls.levels[e.level].details:e.type===ve.AUDIO_TRACK&&e.id!==null?c=this.hls.audioTracks[e.id].details:e.type===ve.SUBTITLE_TRACK&&e.id!==null&&(c=this.hls.subtitleTracks[e.id].details),c){const f=c.partTarget,g=c.targetduration;if(f&&g){const A=Math.max(f*3,g*.8)*1e3;r=_({},r,{maxTimeToFirstByteMs:Math.min(A,r.maxTimeToFirstByteMs),maxLoadTimeMs:Math.min(A,r.maxTimeToFirstByteMs)})}}}const s=r.errorRetry||r.timeoutRetry||{},l={loadPolicy:r,timeout:r.maxLoadTimeMs,maxRetry:s.maxNumRetry||0,retryDelay:s.retryDelayMs||0,maxRetryDelay:s.maxRetryDelayMs||0},h={onSuccess:(c,f,g,A)=>{const I=this.getInternalLoader(g);this.resetInternalLoader(g.type);const C=c.data;f.parsing.start=performance.now(),Kn.isMediaPlaylist(C)||g.type!==ve.MANIFEST?this.handleTrackOrLevelPlaylist(c,f,g,A||null,I):this.handleMasterPlaylist(c,f,g,A)},onError:(c,f,g,A)=>{this.handleNetworkError(f,g,!1,c,A)},onTimeout:(c,f,g)=>{this.handleNetworkError(f,g,!0,void 0,c)}};i.load(e,l,h)}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,i){const r=this.hls,s=e.data,l=$l(e,n),h=Kn.parseMasterPlaylist(s,l);if(h.playlistParsingError){t.parsing.end=performance.now(),this.handleManifestParsingError(e,n,h.playlistParsingError,i,t);return}const{contentSteering:c,levels:f,sessionData:g,sessionKeys:A,startTimeOffset:I,variableList:C}=h;this.variableList=C,f.forEach(ye=>{const{unknownCodecs:be}=ye;if(be){const{preferManagedMediaSource:Ue}=this.hls.config;let{audioCodec:Je,videoCodec:Bt}=ye;for(let nt=be.length;nt--;){const mt=be[nt];Le(mt,"audio",Ue)?(ye.audioCodec=Je=Je?`${Je},${mt}`:mt,vn.audio[Je.substring(0,4)]=2,be.splice(nt,1)):Le(mt,"video",Ue)&&(ye.videoCodec=Bt=Bt?`${Bt},${mt}`:mt,vn.video[Bt.substring(0,4)]=2,be.splice(nt,1))}}});const{AUDIO:Q=[],SUBTITLES:Z,"CLOSED-CAPTIONS":me}=Kn.parseMasterPlaylistMedia(s,l,h);Q.length&&!Q.some(be=>!be.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"),Q.unshift({type:"main",name:"main",groupId:"main",default:!1,autoselect:!1,forced:!1,id:-1,attrs:new bi({}),bitrate:0,url:""})),r.trigger(m.MANIFEST_LOADED,{levels:f,audioTracks:Q,subtitles:Z,captions:me,contentSteering:c,url:l,stats:t,networkDetails:i,sessionData:g,sessionKeys:A,startTimeOffset:I,variableList:C})}handleTrackOrLevelPlaylist(e,t,n,i,r){const s=this.hls,{id:l,level:h,type:c}=n,f=$l(e,n),g=p(h)?h:p(l)?l:0,A=Zu(n),I=Kn.parseLevelPlaylist(e.data,f,g,A,0,this.variableList);if(c===ve.MANIFEST){const C={attrs:new bi({}),bitrate:0,details:I,name:"",url:f};I.requestScheduled=t.loading.start+ar(I,0),s.trigger(m.MANIFEST_LOADED,{levels:[C],audioTracks:[],url:f,stats:t,networkDetails:i,sessionData:null,sessionKeys:null,contentSteering:null,startTimeOffset:null,variableList:null})}t.parsing.end=performance.now(),n.levelDetails=I,this.handlePlaylistLoaded(I,e,t,n,i,r)}handleManifestParsingError(e,t,n,i,r){this.hls.trigger(m.ERROR,{type:ce.NETWORK_ERROR,details:Y.MANIFEST_PARSING_ERROR,fatal:t.type===ve.MANIFEST,url:e.url,err:n,error:n,reason:n.message,response:e,context:t,networkDetails:i,stats:r})}handleNetworkError(e,t,n=!1,i,r){let s=`A network ${n?"timeout":"error"+(i?" (status "+i.code+")":"")} occurred while loading ${e.type}`;e.type===ve.LEVEL?s+=`: ${e.level} id: ${e.id}`:(e.type===ve.AUDIO_TRACK||e.type===ve.SUBTITLE_TRACK)&&(s+=` id: ${e.id} group-id: "${e.groupId}"`);const l=new Error(s);this.hls.logger.warn(`[playlist-loader]: ${s}`);let h=Y.UNKNOWN,c=!1;const f=this.getInternalLoader(e);switch(e.type){case ve.MANIFEST:h=n?Y.MANIFEST_LOAD_TIMEOUT:Y.MANIFEST_LOAD_ERROR,c=!0;break;case ve.LEVEL:h=n?Y.LEVEL_LOAD_TIMEOUT:Y.LEVEL_LOAD_ERROR,c=!1;break;case ve.AUDIO_TRACK:h=n?Y.AUDIO_TRACK_LOAD_TIMEOUT:Y.AUDIO_TRACK_LOAD_ERROR,c=!1;break;case ve.SUBTITLE_TRACK:h=n?Y.SUBTITLE_TRACK_LOAD_TIMEOUT:Y.SUBTITLE_LOAD_ERROR,c=!1;break}f&&this.resetInternalLoader(e.type);const g={type:ce.NETWORK_ERROR,details:h,fatal:c,url:e.url,loader:f,context:e,error:l,networkDetails:t,stats:r};if(i){const A=(t==null?void 0:t.url)||e.url;g.response=E({url:A,data:void 0},i)}this.hls.trigger(m.ERROR,g)}handlePlaylistLoaded(e,t,n,i,r,s){const l=this.hls,{type:h,level:c,levelOrTrack:f,id:g,groupId:A,deliveryDirectives:I}=i,C=$l(t,i),Q=Zu(i);let Z=typeof i.level=="number"&&Q===U.MAIN?c:void 0;const me=e.playlistParsingError;if(me){if(this.hls.logger.warn(`${me} ${e.url}`),!l.config.ignorePlaylistParsingErrors){l.trigger(m.ERROR,{type:ce.NETWORK_ERROR,details:Y.LEVEL_PARSING_ERROR,fatal:!1,url:C,error:me,reason:me.message,response:t,context:i,level:Z,parent:Q,networkDetails:r,stats:n});return}e.playlistParsingError=null}if(!e.fragments.length){const ye=e.playlistParsingError=new Error("No Segments found in Playlist");l.trigger(m.ERROR,{type:ce.NETWORK_ERROR,details:Y.LEVEL_EMPTY_ERROR,fatal:!1,url:C,error:ye,reason:ye.message,response:t,context:i,level:Z,parent:Q,networkDetails:r,stats:n});return}switch(e.live&&s&&(s.getCacheAge&&(e.ageHeader=s.getCacheAge()||0),(!s.getCacheAge||isNaN(e.ageHeader))&&(e.ageHeader=0)),h){case ve.MANIFEST:case ve.LEVEL:if(Z){if(!f)Z=0;else if(f!==l.levels[Z]){const ye=l.levels.indexOf(f);ye>-1&&(Z=ye)}}l.trigger(m.LEVEL_LOADED,{details:e,levelInfo:f||l.levels[0],level:Z||0,id:g||0,stats:n,networkDetails:r,deliveryDirectives:I,withoutMultiVariant:h===ve.MANIFEST});break;case ve.AUDIO_TRACK:l.trigger(m.AUDIO_TRACK_LOADED,{details:e,track:f,id:g||0,groupId:A||"",stats:n,networkDetails:r,deliveryDirectives:I});break;case ve.SUBTITLE_TRACK:l.trigger(m.SUBTITLE_TRACK_LOADED,{details:e,track:f,id:g||0,groupId:A||"",stats:n,networkDetails:r,deliveryDirectives:I});break}}}class Ks{static get version(){return ca}static isMSESupported(){return Wu()}static isSupported(){return Gh()}static getMediaSource(){return we()}static get Events(){return m}static get MetadataSchema(){return $r}static get ErrorTypes(){return ce}static get ErrorDetails(){return Y}static get DefaultConfig(){return Ks.defaultConfig?Ks.defaultConfig:Lh}static set DefaultConfig(e){Ks.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 Pa,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=_e(e.debug||!1,"Hls instance",e.assetPlayerId),n=this.config=Fh(Ks.DefaultConfig,e,t);this.userConfig=e,n.progressive&&Bh(n,t);const{abrController:i,bufferController:r,capLevelController:s,errorController:l,fpsController:h}=n,c=new l(this),f=this.abrController=new i(this),g=new Pn(this),A=n.interstitialsController,I=A?this.interstitialsController=new A(this,Ks):null,C=this.bufferController=new r(this,g),Q=this.capLevelController=new s(this),Z=new h(this),me=new Qh(this),ye=n.contentSteeringController,be=ye?new ye(this):null,Ue=this.levelController=new Kh(this,be),Je=new zh(this),Bt=new Zh(this.config,this.logger),nt=this.streamController=new Wh(this,g,Bt),mt=this.gapController=new Nh(this,g);Q.setStreamController(nt),Z.setStreamController(nt);const gt=[me,Ue,nt];I&&gt.splice(1,0,I),be&&gt.splice(1,0,be),this.networkControllers=gt;const at=[f,C,mt,Q,Z,Je,g];this.audioTrackController=this.createController(n.audioTrackController,gt);const Qt=n.audioStreamController;Qt&&gt.push(this.audioStreamController=new Qt(this,g,Bt)),this.subtitleTrackController=this.createController(n.subtitleTrackController,gt);const Sn=n.subtitleStreamController;Sn&&gt.push(this.subtititleStreamController=new Sn(this,g,Bt)),this.createController(n.timelineController,at),Bt.emeController=this.emeController=this.createController(n.emeController,at),this.cmcdController=this.createController(n.cmcdController,at),this.latencyController=this.createController(jh,at),this.coreComponents=at,gt.push(c);const zn=c.onErrorOut;typeof zn=="function"&&this.on(m.ERROR,zn,c),this.on(m.MANIFEST_LOADED,me.onManifestLoaded,me)}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,i){this._emitter.off(e,t,n,i)}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 i=e===m.ERROR;this.trigger(m.ERROR,{type:ce.OTHER_ERROR,details:Y.INTERNAL_EXCEPTION,fatal:i,event:e,error:n}),this.triggeringException=!1}}return!1}listenerCount(e){return this._emitter.listenerCount(e)}destroy(){this.logger.log("destroy"),this.trigger(m.DESTROYING,void 0),this.detachMedia(),this.removeAllListeners(),this._autoLevelCapping=-1,this._url=null,this.networkControllers.forEach(t=>t.destroy()),this.networkControllers.length=0,this.coreComponents.forEach(t=>t.destroy()),this.coreComponents.length=0;const e=this.config;e.xhrSetup=e.fetchSetup=void 0,this.userConfig=null}attachMedia(e){if(!e||"media"in e&&!e.media){const r=new Error(`attachMedia failed: invalid argument (${e})`);this.trigger(m.ERROR,{type:ce.OTHER_ERROR,details:Y.ATTACH_MEDIA_ERROR,fatal:!0,error:r});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,i=t?e:{media:n};this._media=n,this.trigger(m.MEDIA_ATTACHING,i)}detachMedia(){this.logger.log("detachMedia"),this.trigger(m.MEDIA_DETACHING,{}),this._media=null}transferMedia(){this._media=null;const e=this.bufferController.transferMedia();return this.trigger(m.MEDIA_DETACHING,{transferMedia:e}),e}loadSource(e){this.stopLoad();const t=this.media,n=this._url,i=this._url=x.buildAbsoluteURL(self.location.href,e,{alwaysNormalize:!0});this._autoLevelCapping=-1,this._maxHdcpLevel=null,this.logger.log(`loadSource:${i}`),t&&n&&(n!==i||this.bufferController.hasSourceTypes())&&(this.detachMedia(),this.attachMedia(t)),this.trigger(m.MANIFEST_LOADING,{url:e})}get url(){return this._url}get hasEnoughToStart(){return this.streamController.hasEnoughToStart}get startPosition(){return this.streamController.startPositionValue}startLoad(e=-1,t){this.logger.log(`startLoad(${e+(t?", <skip seek to start>":"")})`),this.started=!0,this.resumeBuffering();for(let n=0;n<this.networkControllers.length&&(this.networkControllers[n].startLoad(e,t),!(!this.started||!this.networkControllers));n++);}stopLoad(){this.logger.log("stopLoad"),this.started=!1;for(let e=0;e<this.networkControllers.length&&(this.networkControllers[e].stopLoad(),!(this.started||!this.networkControllers));e++);}get loadingEnabled(){return this.started}get bufferingEnabled(){return this.streamController.bufferingEnabled}resumeBuffering(){this.bufferingEnabled||(this.logger.log("resume buffering"),this.networkControllers.forEach(e=>{e.resumeBuffering&&e.resumeBuffering()}))}pauseBuffering(){this.bufferingEnabled&&(this.logger.log("pause buffering"),this.networkControllers.forEach(e=>{e.pauseBuffering&&e.pauseBuffering()}))}get inFlightFragments(){const e={[U.MAIN]:this.streamController.inFlightFrag};return this.audioStreamController&&(e[U.AUDIO]=this.audioStreamController.inFlightFrag),this.subtititleStreamController&&(e[U.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=Nc()),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){ji(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 i=0;i<n;i++)if(e[i].maxBitrate>=t)return i;return 0}get maxAutoLevel(){const{levels:e,autoLevelCapping:t,maxHdcpLevel:n}=this;let i;if(t===-1&&e!=null&&e.length?i=e.length-1:i=t,n)for(let r=i;r--;){const s=e[r].attrs["HDCP-LEVEL"];if(s&&s<=n)return r}return i}get firstAutoLevel(){return this.abrController.firstAutoLevel}get nextAutoLevel(){return this.abrController.nextAutoLevel}set nextAutoLevel(e){this.abrController.nextAutoLevel=e}get playingDate(){return this.streamController.currentProgramDateTime}get mainForwardBufferInfo(){return this.streamController.getMainFwdBufferInfo()}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=vt(t);return rn(e,n,navigator.mediaCapabilities)}}Ks.defaultConfig=void 0}}]);
}());