|
|
!(function(){var Mm=Object.defineProperty;var Xg=Object.getOwnPropertySymbols;var Qm=Object.prototype.hasOwnProperty,Hm=Object.prototype.propertyIsEnumerable;var Jg=Math.pow,hg=(wn,Sr,je)=>Sr in wn?Mm(wn,Sr,{enumerable:!0,configurable:!0,writable:!0,value:je}):wn[Sr]=je,fg=(wn,Sr)=>{for(var je in Sr||(Sr={}))Qm.call(Sr,je)&&hg(wn,je,Sr[je]);if(Xg)for(var je of Xg(Sr))Hm.call(Sr,je)&&hg(wn,je,Sr[je]);return wn};var js=(wn,Sr,je)=>hg(wn,typeof Sr!="symbol"?Sr+"":Sr,je);(self.webpackChunk=self.webpackChunk||[]).push([[7884],{70557:function(wn,Sr,je){"use strict";je.d(Sr,{Z:function(){return R}});var Ie=je(54476),mt=je(59301),Fe={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M862 465.3h-81c-4.6 0-9 2-12.1 5.5L550 723.1V160c0-4.4-3.6-8-8-8h-60c-4.4 0-8 3.6-8 8v563.1L255.1 470.8c-3-3.5-7.4-5.5-12.1-5.5h-81c-6.8 0-10.5 8.1-6 13.2L487.9 861a31.96 31.96 0 0048.3 0L868 478.5c4.5-5.2.8-13.2-6-13.2z"}}]},name:"arrow-down",theme:"outlined"},Me=Fe,de=je(7657),I=function(C,H){return mt.createElement(de.Z,(0,Ie.Z)({},C,{ref:H,icon:Me}))},Be=mt.forwardRef(I),R=Be},65030:function(wn,Sr,je){"use strict";je.d(Sr,{Z:function(){return ve}});var Ie=je(33885),mt=je(42978),Fe=je(75931),Me=je(43403),de=je(92310),I=je.n(de),Be=je(29301),R=je(76846),u=je(96452),C=je(6089),H=je(80402),w=je(34280),L=je(49658),B=je(59301),k=je(54476),K=je(77900),V=je(8654);function P(At){var le=At.prefixCls,_=At.align,D=At.arrow,ae=At.arrowPos,We=D||{},ge=We.className,Se=We.content,gt=ae.x,xt=gt===void 0?0:gt,Et=ae.y,nr=Et===void 0?0:Et,xr=B.useRef();if(!_||!_.points)return null;var Tr={position:"absolute"};if(_.autoArrow!==!1){var Bt=_.points[0],Mt=_.points[1],Wt=Bt[0],cr=Bt[1],qt=Mt[0],kt=Mt[1];Wt===qt||!["t","b"].includes(Wt)?Tr.top=nr:Wt==="t"?Tr.top=0:Tr.bottom=0,cr===kt||!["l","r"].includes(cr)?Tr.left=xt:cr==="l"?Tr.left=0:Tr.right=0}return B.createElement("div",{ref:xr,className:I()("".concat(le,"-arrow"),ge),style:Tr},Se)}function G(At){var le=At.prefixCls,_=At.open,D=At.zIndex,ae=At.mask,We=At.motion;return ae?B.createElement(K.default,(0,k.Z)({},We,{motionAppear:!0,visible:_,removeOnLeave:!0}),function(ge){var Se=ge.className;return B.createElement("div",{style:{zIndex:D},className:I()("".concat(le,"-mask"),Se)})}):null}var Z=B.memo(function(At){var le=At.children;return le},function(At,le){return le.cache}),se=Z,oe=B.forwardRef(function(At,le){var _=At.popup,D=At.className,ae=At.prefixCls,We=At.style,ge=At.target,Se=At.onVisibleChanged,gt=At.open,xt=At.keepDom,Et=At.fresh,nr=At.onClick,xr=At.mask,Tr=At.arrow,Bt=At.arrowPos,Mt=At.align,Wt=At.motion,cr=At.maskMotion,qt=At.forceRender,kt=At.getPopupContainer,Pr=At.autoDestroy,$t=At.portal,yr=At.zIndex,An=At.onMouseEnter,Y=At.onMouseLeave,ie=At.onPointerEnter,Ot=At.onPointerDownCapture,fe=At.ready,Ke=At.offsetX,Wr=At.offsetY,ct=At.offsetR,Dt=At.offsetB,Kt=At.onAlign,Oe=At.onPrepare,Ve=At.stretch,at=At.targetWidth,Pt=At.targetHeight,Le=typeof _=="function"?_():_,Kr=gt||xt,ht=(kt==null?void 0:kt.length)>0,Sn=B.useState(!kt||!ht),Bn=(0,mt.Z)(Sn,2),ri=Bn[0],ws=Bn[1];if((0,w.Z)(function(){!ri&&ht&&ge&&ws(!0)},[ri,ht,ge]),!ri)return null;var Ci="auto",Kn={left:"-1000vw",top:"-1000vh",right:Ci,bottom:Ci};if(fe||!gt){var Is,Aa=Mt.points,$i=Mt.dynamicInset||((Is=Mt._experimental)===null||Is===void 0?void 0:Is.dynamicInset),Ui=$i&&Aa[0][1]==="r",mn=$i&&Aa[0][0]==="b";Ui?(Kn.right=ct,Kn.left=Ci):(Kn.left=Ke,Kn.right=Ci),mn?(Kn.bottom=Dt,Kn.top=Ci):(Kn.top=Wr,Kn.bottom=Ci)}var ln={};return Ve&&(Ve.includes("height")&&Pt?ln.height=Pt:Ve.includes("minHeight")&&Pt&&(ln.minHeight=Pt),Ve.includes("width")&&at?ln.width=at:Ve.includes("minWidth")&&at&&(ln.minWidth=at)),gt||(ln.pointerEvents="none"),B.createElement($t,{open:qt||Kr,getContainer:kt&&function(){return kt(ge)},autoDestroy:Pr},B.createElement(G,{prefixCls:ae,open:gt,zIndex:yr,mask:xr,motion:cr}),B.createElement(Be.Z,{onResize:Kt,disabled:!gt},function(fn){return B.createElement(K.default,(0,k.Z)({motionAppear:!0,motionEnter:!0,motionLeave:!0,removeOnLeave:!1,forceRender:qt,leavedClassName:"".concat(ae,"-hidden")},Wt,{onAppearPrepare:Oe,onEnterPrepare:Oe,visible:gt,onVisibleChanged:function(Ei){var Gi;Wt==null||(Gi=Wt.onVisibleChanged)===null||Gi===void 0||Gi.call(Wt,Ei),Se(Ei)}}),function(ni,Ei){var Gi=ni.className,ks=ni.style,Js=I()(ae,Gi,D);return B.createElement("div",{ref:(0,V.sQ)(fn,le,Ei),className:Js,style:(0,Ie.Z)((0,Ie.Z)((0,Ie.Z)((0,Ie.Z)({"--arrow-x":"".concat(Bt.x||0,"px"),"--arrow-y":"".concat(Bt.y||0,"px")},Kn),ln),ks),{},{boxSizing:"border-box",zIndex:yr},We),onMouseEnter:An,onMouseLeave:Y,onPointerEnter:ie,onClick:nr,onPointerDownCapture:Ot},Tr&&B.createElement(P,{prefixCls:ae,arrow:Tr,arrowPos:Bt,align:Mt}),B.createElement(se,{cache:!gt&&!Et},Le))})}))}),De=oe,He=B.forwardRef(function(At,le){var _=At.children,D=At.getTriggerDOMNode,ae=(0,V.Yr)(_),We=B.useCallback(function(Se){(0,V.mH)(le,D?D(Se):Se)},[D]),ge=(0,V.x1)(We,(0,V.C4)(_));return ae?B.cloneElement(_,{ref:ge}):_}),Qe=He,Ue=B.createContext(null),qe=Ue;function st(At){return At?Array.isArray(At)?At:[At]:[]}function Pe(At,le,_,D){return B.useMemo(function(){var ae=st(_!=null?_:le),We=st(D!=null?D:le),ge=new Set(ae),Se=new Set(We);return At&&(ge.has("hover")&&(ge.delete("hover"),ge.add("click")),Se.has("hover")&&(Se.delete("hover"),Se.add("click"))),[ge,Se]},[At,le,_,D])}var pe=je(29194);function M(){var At=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],le=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],_=arguments.length>2?arguments[2]:void 0;return _?At[0]===le[0]:At[0]===le[0]&&At[1]===le[1]}function ye(At,le,_,D){for(var ae=_.points,We=Object.keys(At),ge=0;ge<We.length;ge+=1){var Se,gt=We[ge];if(M((Se=At[gt])===null||Se===void 0?void 0:Se.points,ae,D))return"".concat(le,"-placement-").concat(gt)}return""}function Te(At,le,_,D){return le||(_?{motionName:"".concat(At,"-").concat(_)}:D?{motionName:D}:null)}function me(At){return At.ownerDocument.defaultView}function xe(At){for(var le=[],_=At==null?void 0:At.parentElement,D=["hidden","scroll","clip","auto"];_;){var ae=me(_).getComputedStyle(_),We=ae.overflowX,ge=ae.overflowY,Se=ae.overflow;[We,ge,Se].some(function(gt){return D.includes(gt)})&&le.push(_),_=_.parentElement}return le}function z(At){var le=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1;return Number.isNaN(At)?le:At}function j(At){return z(parseFloat(At),0)}function ee(At,le){var _=(0,Ie.Z)({},At);return(le||[]).forEach(function(D){if(!(D instanceof HTMLBodyElement||D instanceof HTMLHtmlElement)){var ae=me(D).getComputedStyle(D),We=ae.overflow,ge=ae.overflowClipMargin,Se=ae.borderTopWidth,gt=ae.borderBottomWidth,xt=ae.borderLeftWidth,Et=ae.borderRightWidth,nr=D.getBoundingClientRect(),xr=D.offsetHeight,Tr=D.clientHeight,Bt=D.offsetWidth,Mt=D.clientWidth,Wt=j(Se),cr=j(gt),qt=j(xt),kt=j(Et),Pr=z(Math.round(nr.width/Bt*1e3)/1e3),$t=z(Math.round(nr.height/xr*1e3)/1e3),yr=(Bt-Mt-qt-kt)*Pr,An=(xr-Tr-Wt-cr)*$t,Y=Wt*$t,ie=cr*$t,Ot=qt*Pr,fe=kt*Pr,Ke=0,Wr=0;if(We==="clip"){var ct=j(ge);Ke=ct*Pr,Wr=ct*$t}var Dt=nr.x+Ot-Ke,Kt=nr.y+Y-Wr,Oe=Dt+nr.width+2*Ke-Ot-fe-yr,Ve=Kt+nr.height+2*Wr-Y-ie-An;_.left=Math.max(_.left,Dt),_.top=Math.max(_.top,Kt),_.right=Math.min(_.right,Oe),_.bottom=Math.min(_.bottom,Ve)}}),_}function _e(At){var le=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,_="".concat(le),D=_.match(/^(.*)\%$/);return D?At*(parseFloat(D[1])/100):parseFloat(_)}function ut(At,le){var _=le||[],D=(0,mt.Z)(_,2),ae=D[0],We=D[1];return[_e(At.width,ae),_e(At.height,We)]}function Ft(){var At=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"";return[At[0],At[1]]}function Vt(At,le){var _=le[0],D=le[1],ae,We;return _==="t"?We=At.y:_==="b"?We=At.y+At.height:We=At.y+At.height/2,D==="l"?ae=At.x:D==="r"?ae=At.x+At.width:ae=At.x+At.width/2,{x:ae,y:We}}function vr(At,le){var _={t:"b",b:"t",l:"r",r:"l"};return At.map(function(D,ae){return ae===le?_[D]||"c":D}).join("")}function Yr(At,le,_,D,ae,We,ge){var Se=B.useState({ready:!1,offsetX:0,offsetY:0,offsetR:0,offsetB:0,arrowX:0,arrowY:0,scaleX:1,scaleY:1,align:ae[D]||{}}),gt=(0,mt.Z)(Se,2),xt=gt[0],Et=gt[1],nr=B.useRef(0),xr=B.useMemo(function(){return le?xe(le):[]},[le]),Tr=B.useRef({}),Bt=function(){Tr.current={}};At||Bt();var Mt=(0,C.Z)(function(){if(le&&_&&At){let qa=function(Ul,bo){var Eo=arguments.length>2&&arguments[2]!==void 0?arguments[2]:sa,Po=Kr.x+Ul,ZA=Kr.y+bo,FA=Po+mn,dA=ZA+Ui,Ki=Math.max(Po,Eo.left),Nn=Math.max(ZA,Eo.top),Ai=Math.min(FA,Eo.right),Bs=Math.min(dA,Eo.bottom);return Math.max(0,(Ai-Ki)*(Bs-Nn))},pl=function(){uA=Kr.y+Es,Ao=uA+Ui,pi=Kr.x+bs,ms=pi+mn};var qt,kt,Pr,$t,yr=le,An=yr.ownerDocument,Y=me(yr),ie=Y.getComputedStyle(yr),Ot=ie.position,fe=yr.style.left,Ke=yr.style.top,Wr=yr.style.right,ct=yr.style.bottom,Dt=yr.style.overflow,Kt=(0,Ie.Z)((0,Ie.Z)({},ae[D]),We),Oe=An.createElement("div");(qt=yr.parentElement)===null||qt===void 0||qt.appendChild(Oe),Oe.style.left="".concat(yr.offsetLeft,"px"),Oe.style.top="".concat(yr.offsetTop,"px"),Oe.style.position=Ot,Oe.style.height="".concat(yr.offsetHeight,"px"),Oe.style.width="".concat(yr.offsetWidth,"px"),yr.style.left="0",yr.style.top="0",yr.style.right="auto",yr.style.bottom="auto",yr.style.overflow="hidden";var Ve;if(Array.isArray(_))Ve={x:_[0],y:_[1],width:0,height:0};else{var at,Pt,Le=_.getBoundingClientRect();Le.x=(at=Le.x)!==null&&at!==void 0?at:Le.left,Le.y=(Pt=Le.y)!==null&&Pt!==void 0?Pt:Le.top,Ve={x:Le.x,y:Le.y,width:Le.width,height:Le.height}}var Kr=yr.getBoundingClientRect(),ht=Y.getComputedStyle(yr),Sn=ht.height,Bn=ht.width;Kr.x=(kt=Kr.x)!==null&&kt!==void 0?kt:Kr.left,Kr.y=(Pr=Kr.y)!==null&&Pr!==void 0?Pr:Kr.top;var ri=An.documentElement,ws=ri.clientWidth,Ci=ri.clientHeight,Kn=ri.scrollWidth,Is=ri.scrollHeight,Aa=ri.scrollTop,$i=ri.scrollLeft,Ui=Kr.height,mn=Kr.width,ln=Ve.height,fn=Ve.width,ni={left:0,top:0,right:ws,bottom:Ci},Ei={left:-$i,top:-Aa,right:Kn-$i,bottom:Is-Aa},Gi=Kt.htmlRegion,ks="visible",Js="visibleFirst";Gi!=="scroll"&&Gi!==Js&&(Gi=ks);var ia=Gi===Js,Ea=ee(Ei,xr),Mi=ee(ni,xr),sa=Gi===ks?Mi:Ea,ds=ia?Mi:sa;yr.style.left="auto",yr.style.top="auto",yr.style.right="0",yr.style.bottom="0";var Do=yr.getBoundingClientRect();yr.style.left=fe,yr.style.top=Ke,yr.style.right=Wr,yr.style.bottom=ct,yr.style.overflow=Dt,($t=yr.parentElement)===null||$t===void 0||$t.removeChild(Oe);var Va=z(Math.round(mn/parseFloat(Bn)*1e3)/1e3),Qi=z(Math.round(Ui/parseFloat(Sn)*1e3)/1e3);if(Va===0||Qi===0||(0,R.Sh)(_)&&!(0,pe.Z)(_))return;var Yi=Kt.offset,Xi=Kt.targetOffset,ps=ut(Kr,Yi),ji=(0,mt.Z)(ps,2),Vn=ji[0],vo=ji[1],Ks=ut(Ve,Xi),yo=(0,mt.Z)(Ks,2),cl=yo[0],Ju=yo[1];Ve.x-=cl,Ve.y-=Ju;var Zo=Kt.points||[],xA=(0,mt.Z)(Zo,2),Bc=xA[0],Dl=xA[1],la=Ft(Dl),Ts=Ft(Bc),Ra=Vt(Ve,la),VA=Vt(Kr,Ts),oo=(0,Ie.Z)({},Kt),bs=Ra.x-VA.x+Vn,Es=Ra.y-VA.y+vo,Ua=qa(bs,Es),hl=qa(bs,Es,Mi),Wa=Vt(Ve,["t","l"]),_o=Vt(Kr,["t","l"]),fl=Vt(Ve,["b","r"]),ko=Vt(Kr,["b","r"]),CA=Kt.overflow||{},Rr=CA.adjustX,hi=CA.adjustY,Ws=CA.shiftX,Pa=CA.shiftY,WA=function(bo){return typeof bo=="boolean"?bo:bo>=0},uA,Ao,pi,ms;pl();var Ka=WA(hi),Ns=Ts[0]===la[0];if(Ka&&Ts[0]==="t"&&(Ao>ds.bottom||Tr.current.bt)){var Cs=Es;Ns?Cs-=Ui-ln:Cs=Wa.y-ko.y-vo;var dl=qa(bs,Cs),$a=qa(bs,Cs,Mi);dl>Ua||dl===Ua&&(!ia||$a>=hl)?(Tr.current.bt=!0,Es=Cs,vo=-vo,oo.points=[vr(Ts,0),vr(la,0)]):Tr.current.bt=!1}if(Ka&&Ts[0]==="b"&&(uA<ds.top||Tr.current.tb)){var Oa=Es;Ns?Oa+=Ui-ln:Oa=fl.y-_o.y-vo;var In=qa(bs,Oa),Ba=qa(bs,Oa,Mi);In>Ua||In===Ua&&(!ia||Ba>=hl)?(Tr.current.tb=!0,Es=Oa,vo=-vo,oo.points=[vr(Ts,0),vr(la,0)]):Tr.current.tb=!1}var Rs=WA(Rr),Ro=Ts[1]===la[1];if(Rs&&Ts[1]==="l"&&(ms>ds.right||Tr.current.rl)){var $A=bs;Ro?$A-=mn-fn:$A=Wa.x-ko.x-Vn;var SA=qa($A,Es),YA=qa($A,Es,Mi);SA>Ua||SA===Ua&&(!ia||YA>=hl)?(Tr.current.rl=!0,bs=$A,Vn=-Vn,oo.points=[vr(Ts,1),vr(la,1)]):Tr.current.rl=!1}if(Rs&&Ts[1]==="r"&&(pi<ds.left||Tr.current.lr)){var cA=bs;Ro?cA+=mn-fn:cA=fl.x-_o.x-Vn;var Ms=qa(cA,Es),IA=qa(cA,Es,Mi);Ms>Ua||Ms===Ua&&(!ia||IA>=hl)?(Tr.current.lr=!0,bs=cA,Vn=-Vn,oo.points=[vr(Ts,1),vr(la,1)]):Tr.current.lr=!1}pl();var ua=Ws===!0?0:Ws;typeof ua=="number"&&(pi<Mi.left&&(bs-=pi-Mi.left-Vn,Ve.x+fn<Mi.left+ua&&(bs+=Ve.x-Mi.left+fn-ua)),ms>Mi.right&&(bs-=ms-Mi.right-Vn,Ve.x>Mi.right-ua&&(bs+=Ve.x-Mi.right+ua)));var ca=Pa===!0?0:Pa;typeof ca=="number"&&(uA<Mi.top&&(Es-=uA-Mi.top-vo,Ve.y+ln<Mi.top+ca&&(Es+=Ve.y-Mi.top+ln-ca)),Ao>Mi.bottom&&(Es-=Ao-Mi.bottom-vo,Ve.y>Mi.bottom-ca&&(Es+=Ve.y-Mi.bottom+ca)));var xa=Kr.x+bs,Ca=xa+mn,Si=Kr.y+Es,hA=Si+Ui,fA=Ve.x,TA=fA+fn,Na=Ve.y,oi=Na+ln,kl=Math.max(xa,fA),gn=Math.min(Ca,TA),ha=(kl+gn)/2,ga=ha-xa,Ya=Math.max(Si,Na),Za=Math.min(hA,oi),wo=(Ya+Za)/2,gi=wo-Si;ge==null||ge(le,oo);var Uo=Do.right-Kr.x-(bs+Kr.width),Rl=Do.bottom-Kr.y-(Es+Kr.height);Va===1&&(bs=Math.round(bs),Uo=Math.round(Uo)),Qi===1&&(Es=Math.round(Es),Rl=Math.round(Rl));var Jl={ready:!0,offsetX:bs/Va,offsetY:Es/Qi,offsetR:Uo/Va,offsetB:Rl/Qi,arrowX:ga/Va,arrowY:gi/Qi,scaleX:Va,scaleY:Qi,align:oo};Et(Jl)}}),Wt=function(){nr.current+=1;var kt=nr.current;Promise.resolve().then(function(){nr.current===kt&&Mt()})},cr=function(){Et(function(kt){return(0,Ie.Z)((0,Ie.Z)({},kt),{},{ready:!1})})};return(0,w.Z)(cr,[D]),(0,w.Z)(function(){At||cr()},[At]),[xt.ready,xt.offsetX,xt.offsetY,xt.offsetR,xt.offsetB,xt.arrowX,xt.arrowY,xt.scaleX,xt.scaleY,xt.align,Wt]}var wr=je(94480);function fr(At,le,_,D,ae){(0,w.Z)(function(){if(At&&le&&_){let nr=function(){D(),ae()};var We=le,ge=_,Se=xe(We),gt=xe(ge),xt=me(ge),Et=new Set([xt].concat((0,wr.Z)(Se),(0,wr.Z)(gt)));return Et.forEach(function(xr){xr.addEventListener("scroll",nr,{passive:!0})}),xt.addEventListener("resize",nr,{passive:!0}),D(),function(){Et.forEach(function(xr){xr.removeEventListener("scroll",nr),xt.removeEventListener("resize",nr)})}}},[At,le,_])}var dn=je(48736);function ar(At,le,_,D,ae,We,ge,Se){var gt=B.useRef(At);gt.current=At;var xt=B.useRef(!1);B.useEffect(function(){if(le&&D&&(!ae||We)){var nr=function(){xt.current=!1},xr=function(Pr){var $t;gt.current&&!ge((($t=Pr.composedPath)===null||$t===void 0||($t=$t.call(Pr))===null||$t===void 0?void 0:$t[0])||Pr.target)&&!xt.current&&Se(!1)},Tr=me(D);Tr.addEventListener("pointerdown",nr,!0),Tr.addEventListener("mousedown",xr,!0),Tr.addEventListener("contextmenu",xr,!0);var Bt=(0,u.A)(_);if(Bt&&(Bt.addEventListener("mousedown",xr,!0),Bt.addEventListener("contextmenu",xr,!0)),0)var Mt,Wt,cr,qt;return function(){Tr.removeEventListener("pointerdown",nr,!0),Tr.removeEventListener("mousedown",xr,!0),Tr.removeEventListener("contextmenu",xr,!0),Bt&&(Bt.removeEventListener("mousedown",xr,!0),Bt.removeEventListener("contextmenu",xr,!0))}}},[le,_,D,ae,We]);function Et(){xt.current=!0}return Et}var Vr=["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 ur(){var At=arguments.length>0&&arguments[0]!==void 0?arguments[0]:Me.Z,le=B.forwardRef(function(_,D){var ae=_.prefixCls,We=ae===void 0?"rc-trigger-popup":ae,ge=_.children,Se=_.action,gt=Se===void 0?"hover":Se,xt=_.showAction,Et=_.hideAction,nr=_.popupVisible,xr=_.defaultPopupVisible,Tr=_.onPopupVisibleChange,Bt=_.afterPopupVisibleChange,Mt=_.mouseEnterDelay,Wt=_.mouseLeaveDelay,cr=Wt===void 0?.1:Wt,qt=_.focusDelay,kt=_.blurDelay,Pr=_.mask,$t=_.maskClosable,yr=$t===void 0?!0:$t,An=_.getPopupContainer,Y=_.forceRender,ie=_.autoDestroy,Ot=_.destroyPopupOnHide,fe=_.popup,Ke=_.popupClassName,Wr=_.popupStyle,ct=_.popupPlacement,Dt=_.builtinPlacements,Kt=Dt===void 0?{}:Dt,Oe=_.popupAlign,Ve=_.zIndex,at=_.stretch,Pt=_.getPopupClassNameFromAlign,Le=_.fresh,Kr=_.alignPoint,ht=_.onPopupClick,Sn=_.onPopupAlign,Bn=_.arrow,ri=_.popupMotion,ws=_.maskMotion,Ci=_.popupTransitionName,Kn=_.popupAnimation,Is=_.maskTransitionName,Aa=_.maskAnimation,$i=_.className,Ui=_.getTriggerDOMNode,mn=(0,Fe.Z)(_,Vr),ln=ie||Ot||!1,fn=B.useState(!1),ni=(0,mt.Z)(fn,2),Ei=ni[0],Gi=ni[1];(0,w.Z)(function(){Gi((0,L.Z)())},[]);var ks=B.useRef({}),Js=B.useContext(qe),ia=B.useMemo(function(){return{registerSubPopup:function(Ai,Bs){ks.current[Ai]=Bs,Js==null||Js.registerSubPopup(Ai,Bs)}}},[Js]),Ea=(0,H.Z)(),Mi=B.useState(null),sa=(0,mt.Z)(Mi,2),ds=sa[0],Do=sa[1],Va=B.useRef(null),Qi=(0,C.Z)(function(Nn){Va.current=Nn,(0,R.Sh)(Nn)&&ds!==Nn&&Do(Nn),Js==null||Js.registerSubPopup(Ea,Nn)}),Yi=B.useState(null),Xi=(0,mt.Z)(Yi,2),ps=Xi[0],ji=Xi[1],Vn=B.useRef(null),vo=(0,C.Z)(function(Nn){(0,R.Sh)(Nn)&&ps!==Nn&&(ji(Nn),Vn.current=Nn)}),Ks=B.Children.only(ge),yo=(Ks==null?void 0:Ks.props)||{},cl={},Ju=(0,C.Z)(function(Nn){var Ai,Bs,fi=ps;return(fi==null?void 0:fi.contains(Nn))||((Ai=(0,u.A)(fi))===null||Ai===void 0?void 0:Ai.host)===Nn||Nn===fi||(ds==null?void 0:ds.contains(Nn))||((Bs=(0,u.A)(ds))===null||Bs===void 0?void 0:Bs.host)===Nn||Nn===ds||Object.values(ks.current).some(function(mi){return(mi==null?void 0:mi.contains(Nn))||Nn===mi})}),Zo=Te(We,ri,Kn,Ci),xA=Te(We,ws,Aa,Is),Bc=B.useState(xr||!1),Dl=(0,mt.Z)(Bc,2),la=Dl[0],Ts=Dl[1],Ra=nr!=null?nr:la,VA=(0,C.Z)(function(Nn){nr===void 0&&Ts(Nn)});(0,w.Z)(function(){Ts(nr||!1)},[nr]);var oo=B.useRef(Ra);oo.current=Ra;var bs=B.useRef([]);bs.current=[];var Es=(0,C.Z)(function(Nn){var Ai;VA(Nn),((Ai=bs.current[bs.current.length-1])!==null&&Ai!==void 0?Ai:Ra)!==Nn&&(bs.current.push(Nn),Tr==null||Tr(Nn))}),Ua=B.useRef(),hl=function(){clearTimeout(Ua.current)},Wa=function(Ai){var Bs=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;hl(),Bs===0?Es(Ai):Ua.current=setTimeout(function(){Es(Ai)},Bs*1e3)};B.useEffect(function(){return hl},[]);var _o=B.useState(!1),fl=(0,mt.Z)(_o,2),ko=fl[0],CA=fl[1];(0,w.Z)(function(Nn){(!Nn||Ra)&&CA(!0)},[Ra]);var Rr=B.useState(null),hi=(0,mt.Z)(Rr,2),Ws=hi[0],Pa=hi[1],WA=B.useState(null),uA=(0,mt.Z)(WA,2),Ao=uA[0],pi=uA[1],ms=function(Ai){pi([Ai.clientX,Ai.clientY])},Ka=Yr(Ra,ds,Kr&&Ao!==null?Ao:ps,ct,Kt,Oe,Sn),Ns=(0,mt.Z)(Ka,11),Cs=Ns[0],dl=Ns[1],$a=Ns[2],Oa=Ns[3],In=Ns[4],Ba=Ns[5],Rs=Ns[6],Ro=Ns[7],$A=Ns[8],SA=Ns[9],YA=Ns[10],cA=Pe(Ei,gt,xt,Et),Ms=(0,mt.Z)(cA,2),IA=Ms[0],ua=Ms[1],ca=IA.has("click"),xa=ua.has("click")||ua.has("contextMenu"),Ca=(0,C.Z)(function(){ko||YA()}),Si=function(){oo.current&&Kr&&xa&&Wa(!1)};fr(Ra,ps,ds,Ca,Si),(0,w.Z)(function(){Ca()},[Ao,ct]),(0,w.Z)(function(){Ra&&!(Kt!=null&&Kt[ct])&&Ca()},[JSON.stringify(Oe)]);var hA=B.useMemo(function(){var Nn=ye(Kt,We,SA,Kr);return I()(Nn,Pt==null?void 0:Pt(SA))},[SA,Pt,Kt,We,Kr]);B.useImperativeHandle(D,function(){return{nativeElement:Vn.current,popupElement:Va.current,forceAlign:Ca}});var fA=B.useState(0),TA=(0,mt.Z)(fA,2),Na=TA[0],oi=TA[1],kl=B.useState(0),gn=(0,mt.Z)(kl,2),ha=gn[0],ga=gn[1],Ya=function(){if(at&&ps){var Ai=ps.getBoundingClientRect();oi(Ai.width),ga(Ai.height)}},Za=function(){Ya(),Ca()},wo=function(Ai){CA(!1),YA(),Bt==null||Bt(Ai)},gi=function(){return new Promise(function(Ai){Ya(),Pa(function(){return Ai})})};(0,w.Z)(function(){Ws&&(YA(),Ws(),Pa(null))},[Ws]);function Uo(Nn,Ai,Bs,fi){cl[Nn]=function(mi){var qA;fi==null||fi(mi),Wa(Ai,Bs);for(var za=arguments.length,Fs=new Array(za>1?za-1:0),gl=1;gl<za;gl++)Fs[gl-1]=arguments[gl];(qA=yo[Nn])===null||qA===void 0||qA.call.apply(qA,[yo,mi].concat(Fs))}}(ca||xa)&&(cl.onClick=function(Nn){var Ai;oo.current&&xa?Wa(!1):!oo.current&&ca&&(ms(Nn),Wa(!0));for(var Bs=arguments.length,fi=new Array(Bs>1?Bs-1:0),mi=1;mi<Bs;mi++)fi[mi-1]=arguments[mi];(Ai=yo.onClick)===null||Ai===void 0||Ai.call.apply(Ai,[yo,Nn].concat(fi))});var Rl=ar(Ra,xa,ps,ds,Pr,yr,Ju,Wa),Jl=IA.has("hover"),qa=ua.has("hover"),pl,Ul;Jl&&(Uo("onMouseEnter",!0,Mt,function(Nn){ms(Nn)}),Uo("onPointerEnter",!0,Mt,function(Nn){ms(Nn)}),pl=function(Ai){(Ra||ko)&&ds!==null&&ds!==void 0&&ds.contains(Ai.target)&&Wa(!0,Mt)},Kr&&(cl.onMouseMove=function(Nn){var Ai;(Ai=yo.onMouseMove)===null||Ai===void 0||Ai.call(yo,Nn)})),qa&&(Uo("onMouseLeave",!1,cr),Uo("onPointerLeave",!1,cr),Ul=function(){Wa(!1,cr)}),IA.has("focus")&&Uo("onFocus",!0,qt),ua.has("focus")&&Uo("onBlur",!1,kt),IA.has("contextMenu")&&(cl.onContextMenu=function(Nn){var Ai;oo.current&&ua.has("contextMenu")?Wa(!1):(ms(Nn),Wa(!0)),Nn.preventDefault();for(var Bs=arguments.length,fi=new Array(Bs>1?Bs-1:0),mi=1;mi<Bs;mi++)fi[mi-1]=arguments[mi];(Ai=yo.onContextMenu)===null||Ai===void 0||Ai.call.apply(Ai,[yo,Nn].concat(fi))}),$i&&(cl.className=I()(yo.className,$i));var bo=B.useRef(!1);bo.current||(bo.current=Y||Ra||ko);var Eo=(0,Ie.Z)((0,Ie.Z)({},yo),cl),Po={},ZA=["onContextMenu","onClick","onMouseDown","onTouchStart","onMouseEnter","onMouseLeave","onFocus","onBlur"];ZA.forEach(function(Nn){mn[Nn]&&(Po[Nn]=function(){for(var Ai,Bs=arguments.length,fi=new Array(Bs),mi=0;mi<Bs;mi++)fi[mi]=arguments[mi];(Ai=Eo[Nn])===null||Ai===void 0||Ai.call.apply(Ai,[Eo].concat(fi)),mn[Nn].apply(mn,fi)})});var FA=B.cloneElement(Ks,(0,Ie.Z)((0,Ie.Z)({},Eo),Po)),dA={x:Ba,y:Rs},Ki=Bn?(0,Ie.Z)({},Bn!==!0?Bn:{}):null;return B.createElement(B.Fragment,null,B.createElement(Be.Z,{disabled:!Ra,ref:vo,onResize:Za},B.createElement(Qe,{getTriggerDOMNode:Ui},FA)),bo.current&&B.createElement(qe.Provider,{value:ia},B.createElement(De,{portal:At,ref:Qi,prefixCls:We,popup:fe,className:I()(Ke,hA),style:Wr,target:ps,onMouseEnter:pl,onMouseLeave:Ul,onPointerEnter:pl,zIndex:Ve,open:Ra,keepDom:ko,fresh:Le,onClick:ht,onPointerDownCapture:Rl,mask:Pr,motion:Zo,maskMotion:xA,onVisibleChanged:wo,onPrepare:gi,forceRender:Y,autoDestroy:ln,getPopupContainer:An,align:SA,arrow:Ki,arrowPos:dA,ready:Cs,offsetX:dl,offsetY:$a,offsetR:Oa,offsetB:In,onAlign:Ca,stretch:at,targetWidth:Na/Ro,targetHeight:ha/$A})))});return le}var ve=ur(Me.Z)},48850:function(){"use strict"},2524:function(wn,Sr,je){"use strict";var Ie=je(59301),mt=je(93314),Fe=je(7939),Me=Object.defineProperty,de=Object.defineProperties,I=Object.getOwnPropertyDescriptors,Be=Object.getOwnPropertySymbols,R=Object.prototype.hasOwnProperty,u=Object.prototype.propertyIsEnumerable,C=(B,k,K)=>k in B?Me(B,k,{enumerable:!0,configurable:!0,writable:!0,value:K}):B[k]=K,H=(B,k)=>{for(var K in k||(k={}))R.call(k,K)&&C(B,K,k[K]);if(Be)for(var K of Be(k))u.call(k,K)&&C(B,K,k[K]);return B},w=(B,k)=>de(B,I(k));const L=({img:B,buttonProps:k={},styles:K={},customText:V,ButtonText:P,ButtonClick:G,Buttonclass:Z,ButtonTwo:se,imgStyles:oe,loading:De=!1,className:He=""})=>Ie.createElement("section",{className:`tc animated fadeIn ${He}`,style:H({color:"#999",margin:"100px auto",visibility:De?"hidden":"visible"},K)},Ie.createElement("img",{src:B||mt,style:w(H({},oe),{pointerEvents:"none",userSelect:"none"})}),Ie.createElement("p",{className:"mt20 font14"},V||"\u6682\u65F6\u8FD8\u6CA1\u6709\u76F8\u5173\u6570\u636E\u54E6!"),P&&Ie.createElement(Fe.ZP,H({className:Z,onClick:G},k),P),se&&se);Sr.Z=L},52918:function(wn,Sr,je){"use strict";je.d(Sr,{Z:function(){return Z}});var Ie=je(59301),mt={wrp:"wrp___dq7YK",bgBlack:"bgBlack___ARIUV",monaco:"monaco___VnZC3",darkBlue:"darkBlue___UprA9",close:"close___LKoWu",embed:"embed___hvpEJ"},Fe=je(7939),Me=je(70557),de=je(50258),I=je(25399),Be=je(65862),R=je(87513),u=je(2524),C=je(74128),H=je(7310),w=je(59301),L=Object.defineProperty,B=Object.getOwnPropertySymbols,k=Object.prototype.hasOwnProperty,K=Object.prototype.propertyIsEnumerable,V=(se,oe,De)=>oe in se?L(se,oe,{enumerable:!0,configurable:!0,writable:!0,value:De}):se[oe]=De,P=(se,oe)=>{for(var De in oe||(oe={}))k.call(oe,De)&&V(se,De,oe[De]);if(B)for(var De of B(oe))K.call(oe,De)&&V(se,De,oe[De]);return se},G=(se,oe,De)=>new Promise((He,Qe)=>{var Ue=Pe=>{try{st(De.next(Pe))}catch(pe){Qe(pe)}},qe=Pe=>{try{st(De.throw(Pe))}catch(pe){Qe(pe)}},st=Pe=>Pe.done?He(Pe.value):Promise.resolve(Pe.value).then(Ue,qe);st((De=De.apply(se,oe)).next())}),Z=({editOffice:se="view",data:oe,issaver:De,onSaver:He,theme:Qe,type:Ue,filename:qe,monacoEditor:st,className:Pe,style:pe,close:M,onClose:ye,hasMask:Te,disabledDownload:me,onImgDimensions:xe,showNodata:z,recordInfo:j})=>{const[ee,_e]=(0,Ie.useState)("https://view.officeapps.live.com/op/view.aspx?src=http://testgs.educoder.net//rails/active_storage/blobs/eyJfcmFpbHMiOnsibWVzc2FnZSI6IkJBaHBCZz09IiwiZXhwIjpudWxsLCJwdXIiOiJibG9iX2lkIn19--03541f6234b93d7ac3b2d84e7eb0e6594a952945/1.ppt"),[ut,Ft]=(0,Ie.useState)(""),[Vt,vr]=(0,Ie.useState)(),Yr=window.ENV==="build"?"/react/build":"",wr=location.host.startsWith("localhost")?C.Z.PROXY_SERVER:C.Z.API_SERVER,dn=10*(1024*1024),ar=(0,Ie.useRef)();oe!=null&&oe.startsWith("/api")&&Ue!=="txt"&&(oe=C.Z.API_SERVER+oe);const Vr=_=>_.substring(_.lastIndexOf("/")+1).split(".").pop();qe&&st&&(st.filename=qe),(0,Ie.useEffect)(()=>{var _,D;const ae=(D=(_=document.cookie)==null?void 0:_.replace(/\s/g,""))==null?void 0:D.split(";");ae==null||ae.map(We=>{let ge=We.split("=");ge[0]==="_educoder_session"&&Ft(ge[1])})},[]),(0,Ie.useEffect)(()=>{Ue==="office"&&(oe.indexOf("bigfilescdn.")>-1||oe.indexOf("bigfiles1")>-1?vr({url:oe,fileType:Vr(oe),model:oe.indexOf("model=edit")?"edit":"view"}):ve())},[Ue,oe]);function ur(_){return G(this,null,function*(){_.data.type==="pdfdata"&&(He(_.data.data),window.removeEventListener("message",ur,!1)),console.log("mess---:",_.data)})}const ve=()=>G(void 0,null,function*(){console.log("data:",oe);let _=oe;oe.startsWith("http")||(_=location.origin+_);let D=new URL(_).pathname.split("/").pop();const ae=yield(0,R.gJ)({attachment_id:D});ae.url=wr+ae.url,vr(ae)}),At=()=>{if(oe.startsWith("http")||oe.startsWith("blob:")){le();return}(0,Be.Sv)(qe||"educoder",oe,qe)},le=()=>{j&&(0,H.fc)({id:j==null?void 0:j.id,watch_type:1,course_id:j==null?void 0:j.course_id}),(0,Be.Nd)(qe||"educoder",decodeURIComponent(oe))};return w.createElement("div",{style:P({},pe||{}),className:`${Te&&mt.bgBlack} ${Ue?mt.wrp:"hide"}`},M&&w.createElement("div",{className:mt.close,ref:ar},!!xe&&w.createElement(I.Z,{title:"\u70B9\u51FB\u5BF9\u56FE\u7247\u8FDB\u884C\u6279\u6CE8",getPopupContainer:()=>ar.current},w.createElement("span",{onClick:()=>{ye(),xe()}},w.createElement("i",{className:"icon-yulanpizhu"}))),!me&&w.createElement(I.Z,{title:"\u70B9\u51FB\u4E0B\u8F7D\u6B64\u6587\u4EF6",getPopupContainer:()=>ar.current},w.createElement("span",{onClick:le},w.createElement("i",{className:"icon-quxiaozhiding"}))),De&&w.createElement(I.Z,{title:"\u4FDD\u5B58pdf\u5E76\u9000\u51FA",getPopupContainer:()=>ar.current},w.createElement("span",{className:"",onClick:()=>{const _=document.getElementById("pdfiframe");window.addEventListener("message",ur,!1),setTimeout(()=>{_.contentWindow.postMessage("getData","*")},300)}},w.createElement("i",{className:"icon-baocun"}))),w.createElement(I.Z,{title:"\u5173\u95ED",getPopupContainer:()=>ar.current},w.createElement("span",{className:"",onClick:()=>{ye()}},w.createElement("i",{className:"icon-guanbi1"})))),w.createElement("div",{className:`${mt[Pe]} ${Pe} ${mt.monaco} ${Ue==="txt"?"show":"hide"}`},Ue==="txt"&&w.createElement(w.Fragment,null,w.createElement(de.ZP,P({},st)))),Ue==="audio"&&w.createElement("audio",{src:`${(oe==null?void 0:oe.indexOf("http://"))>-1||(oe==null?void 0:oe.indexOf("https://"))>-1?"":"data:audio/mp3;base64,"}${oe}`,autoPlay:!0}),Ue==="video"&&w.createElement(w.Fragment,null,(oe==null?void 0:oe.indexOf("http"))>-1?w.createElement("video",{controls:!0,src:`${oe}`,autoPlay:!0}):w.createElement("video",{controls:!0,src:`data:video/mp4;base64,${oe}`,autoPlay:!0})),Ue==="office"&&Vt&&w.createElement("iframe",{src:`${Yr}/office.html?key=${Vt.key}&url=${btoa(Vt.url)}&callbackUrl=${wr+(Vt.callbackUrl||"")}&fileType=${Vt.fileType}&title=${Vt.title||""}&model=${se}&officeServer=${C.Z.ONLYOFFICE}&disabledDownload=${!!me}`}),Ue==="html"&&w.createElement("iframe",{src:oe+"&disposition=inline"}),Ue==="pdf"&&w.createElement("iframe",{id:"pdfiframe",src:`${Yr}/js/pdf/index.html?filename=${qe||"educoder.pdf"}&url=${encodeURIComponent(oe)}&disabledDownload=${!!me}&model=${se}`}),Ue==="image"&&w.createElement("img",{src:`${(oe==null?void 0:oe.indexOf("http://"))>-1||(oe==null?void 0:oe.indexOf("https://"))>-1?"":"data:image/png;base64,"}${oe}`}),(Ue==="other"||Ue==="download")&&w.createElement(w.Fragment,null,z?w.createElement(u.Z,{customText:"\u5F53\u524D\u6587\u4EF6\u4E0D\u652F\u6301\u9884\u89C8\uFF0C\u53EF\u70B9\u51FB\u4E0B\u8F7D\u67E5\u770B",ButtonTwo:w.createElement(Fe.ZP,{icon:w.createElement("i",{className:"iconfont icon-xiazai4 font14"}),type:"primary",size:"middle",onClick:At,disabled:me},"\u4E0B\u8F7D")}):w.createElement(Fe.ZP,{type:"primary",size:"middle",onClick:At,disabled:me},w.createElement(Me.Z,null),"\u70B9\u51FB\u4E0B\u8F7D")),Ue==="flowChart"&&w.createElement("div",{className:"embed"},w.createElement("iframe",{src:`/drawio/src/main/webapp/viewer.html?id=${oe||""}&gapi=0&od=0&db=0&gh=0&gl=0`,width:"100%",height:"100%",frameBorder:"0"})))}},95097:function(wn,Sr,je){"use strict";je.d(Sr,{z:function(){return st},Z:function(){return Pe}});var Ie=je(59301),mt=je(48850),Fe=je(49142),Me=je(64018),de=je(17030),I=je(74128),Be=je(65862),R=je(15342),u=je(44104),C=je(7939),H=je(1012),w=je(52918),L=je(59301),k=({html:pe})=>{const M=(0,Ie.useRef)(null),ye=(0,Ie.useRef)(null),Te=`.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,Ie.useEffect)(()=>{const me=M.current.attachShadow({mode:"open"});ye.current=document.createElement("div"),ye.current.className="markdown-body",ye.current.innerHTML=pe,me.appendChild(ye.current);const xe=document.createElement("style");return xe.textContent=Te,me.appendChild(xe),()=>{me.innerHTML=""}},[]),(0,Ie.useEffect)(()=>{ye.current&&(ye.current.innerHTML=pe)},[pe]),L.createElement("div",{ref:M})};function K(pe){const M=["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"],ye=new RegExp(`\\b(${M.join("|")})\\s*=\\s*(?:"[^"]*"|'[^']*'|[^\\s>]*)`,"gi");return pe.replace(ye,"").trim()}var V={mdBody:"mdBody___raKXb",button:"button___Ch5Pc",previewFlowChart:"previewFlowChart___vY1dq"},P=Object.defineProperty,G=Object.getOwnPropertySymbols,Z=Object.prototype.hasOwnProperty,se=Object.prototype.propertyIsEnumerable,oe=(pe,M,ye)=>M in pe?P(pe,M,{enumerable:!0,configurable:!0,writable:!0,value:ye}):pe[M]=ye,De=(pe,M)=>{for(var ye in M||(M={}))Z.call(M,ye)&&oe(pe,ye,M[ye]);if(G)for(var ye of G(M))se.call(M,ye)&&oe(pe,ye,M[ye]);return pe};const He="@\u2581\u2581@",Qe="@\u2581@",Ue=/<pre[^>]*>/g;function qe(pe){let M=document.createElement("div");return M.innerHTML=pe,M.childNodes.length===0?"":M.childNodes[0].nodeValue}const st=(pe,M)=>{pe=pe||"";const ye=/(?:https?:\/\/[^\/]+)?\/api\/attachments\/([A-Za-z0-9+/=]+)(\?.*?)?\)|(?:https?:\/\/[^\/]+)?\/api\/attachments\/([A-Za-z0-9+/=]+)(\?.*?)?|(?:https?:\/\/[^\/]+)?\/attachments\/download\/([A-Za-z0-9+/=]+)(\?.*?)?\//g,Te=/\"(?:https?:\/\/[^\/]+)?\/api\/attachments\/([A-Za-z0-9+/=]+)(\?.*?)?|\"(?:https?:\/\/[^\/]+)?\/attachments\/download\/([A-Za-z0-9+/=]+)(\?.*?)?\//g,me=/\(\s+(?:https?:\/\/[^\/]+)?\/files\/uploads\/([A-Za-z0-9+/=]+)(\?.*?)?|\"(?:https?:\/\/[^\/]+)?\/files\/uploads\/([A-Za-z0-9+/=]+)(\?.*?)?\//g,xe=/(?:https?:\/\/[^\/]+)?\/attachments\/download\/([A-Za-z0-9+/=]+)(\?.*?)?\//g;return M?pe.replaceAll("https://www.educoder.net","").replaceAll("https://www-cdn.educoder.net","").replaceAll("//api/attachments","/api/attachments").replace(ye,(z,j,ee,_e,ut,Ft,Vt)=>{const vr=j||_e||Ft,Yr=ee||ut||Vt||"?";return I.Z.API_SERVER+"/api/attachments/"+vr+Yr+"&t="+(0,Be.Jn)(vr,Date.now())+(z.indexOf(")")>-1?")":"&")}).replaceAll('src="(','src="').replaceAll("src='(",'src="'):(pe=pe.replace(xe,(z,j,ee,_e,ut,Ft,Vt)=>{const vr=j||_e||Ft,Yr=ee||ut||Vt||"?";return I.Z.API_SERVER+"/attachments/download/"+vr+Yr+"&t="+(0,Be.Jn)(vr,Date.now())+(z.indexOf(")")>-1?")":"&")}).replace(ye,(z,j,ee,_e,ut,Ft,Vt)=>{const vr=j||_e||Ft,Yr=ee||ut||Vt||"?";return I.Z.API_SERVER+"/api/attachments/"+vr+Yr+"&t="+(0,Be.Jn)(vr,Date.now())+(z.indexOf(")")>-1?")":"&")}).replace(Te,(z,j,ee,_e,ut)=>{const Ft=j||_e,Vt=ee||ut||"";return'"'+I.Z.API_SERVER+"/api/attachments/"+Ft+Vt+Ft+Vt+"&t="+(0,Be.Jn)(Ft,Date.now())}).replace(me,(z,j,ee,_e,ut)=>{const Ft=j||_e,Vt=ee||ut||"";return"("+I.Z.API_SERVER+"/files/uploads/"+Ft+Vt+Ft+Vt+"&t="+(0,Be.Jn)(Ft,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,`
|
|
|
`),pe)};var Pe=({value:pe="",edit:M=!1,className:ye,showTextOnly:Te,showLines:me,style:xe={},stylesPrev:z={},highlightKeywords:j,showProgramFill:ee,isProgramFill:_e,disabledFill:ut=!1,programFillValue:Ft,openEditor:Vt=()=>{},onFillChange:vr=fr=>{},onFillBlur:Yr=()=>{},onFillFocus:wr=()=>{}})=>{let fr=K(String(pe||""));const dn=(0,Ie.useRef)(),ar=(0,Ie.useRef)(),[Vr,ur]=(0,Ie.useState)(""),[ve,At]=(0,Ie.useState)("office"),[le,_]=(0,Ie.useState)([]),D=(0,Ie.useRef)("a"+(0,H.Z)()),ae={},We=kt=>/<style[\s\S]*?>/i.test(kt||""),ge=(kt,Pr,$t)=>{const yr=document.createElement(kt===Qe?"input":"textarea");yr.style.width="100%",yr.style.height=kt===Qe?"40px":"151px",yr.rows=5,yr.spellcheck=!1,yr.name="edu-program-fill",yr.placeholder="\u8BF7\u8F93\u5165",yr.dataset.id=Pr;const An=Object.keys(ae).length;return ae[An]=yr,`<span class="edu-program-fill-wrap ${kt===Qe?"":"show"}" style="width:${kt===Qe?"600px":"100%"}" title=${$t||""}><span>${yr.outerHTML}<span class="edu-program-fill-score" style="margin:0 6px"></span></span></span>`};function Se(kt){return kt=kt.replace(/!\[.*?\]\(.*?\)/g,""),kt=kt.replace(/\[.*?\]\(.*?\)/g,""),kt=kt.replace(new RegExp("<iframe.*?<\\/iframe>","gs"),""),kt=kt.replace(/<embed.*?>/g,""),kt=kt.replace(/<img.*?>/g,""),kt=kt.replace(new RegExp("<video.*?>.*?<\\/video>","gs"),""),kt=kt.replace(new RegExp("<audio.*?>.*?<\\/audio>","gs"),""),kt=kt.replace(new RegExp("<style.*?>.*?<\\/style>","gs"),""),kt=kt.replace(new RegExp("<script.*?>.*?<\\/script>","gs"),""),kt}const gt=kt=>!Te&&We(fr)?kt:kt.replace(/<style.*?>([\s\S]+?)<\/style>/gim,function(Pr,$t){let yr=$t.replace(/(\n|\r)/g,"").split("}"),An=[];return yr.map(Y=>{Y!=""&&An.push(`.${D.current} ${Y}`)}),`<style>${An.join("}")}</style>`}),xt=(0,Ie.useMemo)(()=>{try{const yr=/\(\s+\/api\/attachments\/|\(\/api\/attachments\//g,An=/\"\/api\/attachments\/|\"\/attachments\/download\//g,Y=/\(\s+\/files\/uploads\/|\"\/files\/uploads\//g,ie=/\(\/attachments\/download\//g;fr=fr.replace(ie,"("+I.Z.API_SERVER+"/attachments/download/").replace(yr,"("+I.Z.API_SERVER+"/api/attachments/").replace(An,'"'+I.Z.API_SERVER+"/api/attachments/").replace(Y,'"'+I.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,`
|
|
|
`),dn.current.style.display="none"}catch(yr){}if(ee){let yr=-1;return fr=fr.replaceAll("<","<").replaceAll(">",">").replace(/(@▁▁@|@▁@)/g,function(An,Y,ie){var Ot;return++yr,ge(An,yr,(Ot=Ft==null?void 0:Ft[yr])==null?void 0:Ot.value.replaceAll("<","<").replaceAll(">",">"))}),`<pre style="background:#fff;padding:4px">${gt(fr||"")}</pre>`}let kt=gt(fr);kt=(0,Fe.ZP)(kt);const Pr=(0,Fe.ez)();fr.match(/\[TOC\]/)&&(kt=kt.replace("<p>[TOC]</p>",(0,Fe.Qv)()),(0,Fe.Iy)()),kt=kt.replace(/(__special_katext_id_\d+__)/g,(yr,An)=>{const{type:Y,expression:ie}=Pr[An];return(0,R.renderToString)(qe(ie)||"",{displayMode:Y==="block",throwOnError:!1,output:"html"})}),kt=kt.replace(/▁/g,"\u2581\u2581\u2581\u2581\u2581"),(0,Fe.AL)();const $t=document.createElement("div");if($t.innerHTML=kt,Te)return $t.innerText;if(j){const yr=j.replace(/[.*+?^${}()|[\]\\]/g,"\\$&");return Tr($t,yr),$t.innerHTML}return setTimeout(()=>Wt(),500),$t.innerHTML},[fr,j]);(0,Ie.useEffect)(()=>{Bt.current&&Bt.current.querySelectorAll(["input","textarea"]).forEach(Pr=>{Pr.oninput=Et,Pr.onblur=nr,Pr.onfocus=xr})},[le]),(0,Ie.useEffect)(()=>{var kt,Pr,$t,yr,An;if(Ft!=null&&Ft.length)try{const Y=Bt.current.querySelectorAll(".edu-program-fill-score"),ie=Bt.current.querySelectorAll('[name="edu-program-fill"]');for(const[Ot,fe]of ie.entries())fe.value=((kt=Ft==null?void 0:Ft[Ot])==null?void 0:kt.value)||"",((Pr=Ft==null?void 0:Ft[Ot])==null?void 0:Pr.type)==="warning"?fe.className="program-fill-warning":(($t=Ft==null?void 0:Ft[Ot])==null?void 0:$t.type)==="success"?fe.className="program-fill-success":fe.className="";for(const[Ot,fe]of Y.entries())fe.innerHTML=(yr=Ft==null?void 0:Ft[Ot])!=null&&yr.score?`${(An=Ft==null?void 0:Ft[Ot])==null?void 0:An.score}\u5206`:"";_(Ft)}catch(Y){console.log(Y,"error")}},[Ft]);const Et=kt=>{le[kt.target.dataset.id]=le[kt.target.dataset.id]||{},le[kt.target.dataset.id].value=kt.target.value,_([...le]),vr(le,kt.target.dataset.id)},nr=kt=>{le[kt.target.dataset.id]=le[kt.target.dataset.id]||{},le[kt.target.dataset.id].value=kt.target.value,_([...le]),Yr(le,kt.target.dataset.id)},xr=kt=>{le[kt.target.dataset.id]=le[kt.target.dataset.id]||{},le[kt.target.dataset.id].value=kt.target.value,_([...le]),wr(le,kt.target.dataset.id)};function Tr(kt,Pr){return kt.childNodes.forEach($t=>{var yr;if($t.childNodes.length>0)Tr($t,Pr);else if($t.nodeName!=="IMG")if($t.innerHTML)$t.innerHTML=(yr=$t.innerHTML)==null?void 0:yr.replace(new RegExp(Pr,"gi"),'<span style="color:#0152d9;background-color:#1890ff33">$&</span>');else{const An=document.createElement("span");An.innerHTML=$t.textContent.replace(new RegExp(Pr,"gi"),'<span style="color:#0152d9;background-color:#1890ff33">$&</span>'),$t.replaceWith(An)}})}const Bt=(0,Ie.useRef)();Fe.jb.WebkitLineClamp=me,me&&(xe=De(De({},xe),Fe.jb));function Mt(kt){let Pr=kt.target;if(Pr.tagName.toUpperCase()==="A"){let $t=Pr.getAttribute("href");if($t.indexOf("office")>-1)kt.preventDefault(),ur($t),At("office");else if($t.indexOf("application/pdf")>-1)kt.preventDefault(),ur($t),At("pdf");else if($t.indexOf("text/html")>-1)kt.preventDefault(),ur($t),At("html");else if($t.startsWith("#")){kt.preventDefault();let yr=document.getElementById($t.replace("#",""));yr&&yr.scrollIntoView(!0)}}}const Wt=()=>{var kt;const Pr=(kt=Bt.current)==null?void 0:kt.querySelectorAll("video");Pr==null||Pr.forEach($t=>{if($t.oncontextmenu=()=>!1,$t.src.indexOf(".m3u8")>-1&&!$t.canPlayType("application/vnd.apple.mpegurl")){if(de.ZP.isSupported()){var yr=new de.ZP;yr.loadSource($t.src),yr.attachMedia($t)}}})};(0,Ie.useEffect)(()=>{if(Bt.current&&xt&&xt.match(Ue)&&window.PR.prettyPrint(),Bt.current)return Bt.current.addEventListener("click",Mt),()=>{var kt;(kt=Bt.current)==null||kt.removeEventListener("click",Mt),(0,Fe.AL)(),(0,Fe.Iy)()}},[xt,Bt.current,Mt]);const cr=kt=>{kt.target.nodeName==="IMG"&&kt.target.className.indexOf("draw-flowchart")>-1?(dn.current.style.zIndex=1,dn.current.style.display="flex",dn.current.style.width=kt.target.clientWidth+"px",dn.current.style.height=kt.target.clientHeight+"px",dn.current.style.top=kt.target.offsetTop+"px",dn.current.style.left=kt.target.offsetLeft+"px",kt.target.id&&(ar.current=kt.target.id)):dn.current.style.display="none"},qt=()=>{dn.current.style.display="none"};return(0,Ie.useEffect)(()=>{var kt;const Pr=$t=>{$t.preventDefault(),$t.clipboardData.setData("text",window.getSelection().toString())};return(kt=Bt.current)==null||kt.addEventListener("copy",Pr),()=>{var $t;($t=Bt.current)==null||$t.removeEventListener("copy",Pr)}},[Bt.current]),Ie.createElement("div",{style:{position:"relative"},onMouseLeave:qt},Te&&Ie.createElement("div",{ref:Bt,className:`${V.mdBody} `},xt),!Te&&!We(xt)&&Ie.createElement("div",{ref:Bt,style:De({},xe),onMouseOver:cr,className:`${ye||""} ${ut?"disabled-fill":""} markdown-body ${V.mdBody} ${D.current}`,dangerouslySetInnerHTML:{__html:xt}}),!Te&&We(xt)&&Ie.createElement(k,{html:xt}),Ie.createElement("div",{ref:dn,className:`${V.button} ${M?"":V.previewFlowChart}`},Ie.createElement(u.Z,null,Ie.createElement(C.ZP,{onClick:()=>{M?Vt(ar.current):(ur(ar.current),At("flowChart"))}},M?"\u7F16\u8F91":"\u9884\u89C8"))),Ie.createElement(w.Z,{close:!0,data:Vr,type:Vr!=null&&Vr.length?ve:"",style:De({},z),onClose:()=>ur("")}))}},50258:function(wn,Sr,je){"use strict";je.d(Sr,{SV:function(){return dn},ZP:function(){return fr}});var Ie=je(59301),mt=je(76374);const Fe={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"]},Me={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"]},de={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(`
|
|
|
`)}]},I={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(`
|
|
|
`)}]},Be={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 R=je(53184),u=je.n(R),C=(ar,Vr,ur)=>new Promise((ve,At)=>{var le=ae=>{try{D(ur.next(ae))}catch(We){At(We)}},_=ae=>{try{D(ur.throw(ae))}catch(We){At(We)}},D=ae=>ae.done?ve(ae.value):Promise.resolve(ae.value).then(le,_);D((ur=ur.apply(ar,Vr)).next())});const H={languages:["c","abap","apex","azcli","bat","cameligo","clojure","coffee","cpp","csharp","csp","css","dockerfile","fsharp","go","graphql","handlebars","html","ini","java","javascript","json","kotlin","less","lua","markdown","mips","msdax","mysql","objective-c","pascal","pascaligo","perl","pgsql","php","postiats","powerquery","powershell","pug","python","r","razor","redis","redshift","restructuredtext","ruby","rust","sb","scheme","scss","shell","solidity","sophia","sql","st","swift","tcl","twig","vb","xml","yaml'"],tables:{users:["name","id","email","phone","password"],roles:["id","name","order","created_at","updated_at","deleted_at"]}},w=(ar,Vr,ur,ve)=>{const At=Vr.getValueInRange({startLineNumber:1,startColumn:1,endLineNumber:ur.lineNumber,endColumn:ur.column});return Array.from(new Set(At.match(/\b\w{2,}\b/g)||[])).map(_=>({label:_,kind:ar.languages.CompletionItemKind.Text,insertText:_,range:ve}))},L=(ar,Vr,ur,ve)=>{ar.languages.registerCompletionItemProvider(Vr,{provideCompletionItems(At,le){const _=At.getWordUntilPosition(le),D={startLineNumber:le.lineNumber,endLineNumber:le.lineNumber,startColumn:_.startColumn,endColumn:_.endColumn},ae=At.getLineContent(le.lineNumber).substring(_.startColumn-2,_.endColumn);return{suggestions:[...w(ar,At,le,D),...ur.map(ge=>({label:ge,kind:ar.languages.CompletionItemKind.Keyword,documentation:ge,insertText:ge,insertTextRules:ar.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:D})),...ve.map(ge=>({label:ge.label,kind:ar.languages.CompletionItemKind.Snippet,documentation:ge.content,insertText:ae.startsWith("#")?ge.content.replace(/#/,""):ge.content,insertTextRules:ar.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:D}))]}}})};var B=ar=>{H.languages.forEach(Vr=>{ar.languages.registerDocumentFormattingEditProvider(Vr,{provideDocumentFormattingEdits(ur){return C(this,null,function*(){const ve=u()(ur.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:ur.getFullModelRange(),text:ve}]})}})}),L(ar,"java",Me.keywords,Me.quickKey),L(ar,"cpp",de.keywords,de.quickKey),L(ar,"c",Fe.keywords,[]),L(ar,"python",I.keywords,I.quickKey),L(ar,"scala",Be.keywords,Be.quickKey)};const k="\u8BE5\u4EFB\u52A1\u5173\u5361\u8BBE\u7F6E\u4E86\u7981\u6B62\u590D\u5236\u7C98\u8D34\uFF0C\u8BF7\u624B\u52A8\u8F93\u5165\u4EE3\u7801\u3002";var K=Object.defineProperty,V=(ar,Vr,ur)=>Vr in ar?K(ar,Vr,{enumerable:!0,configurable:!0,writable:!0,value:ur}):ar[Vr]=ur,P=(ar,Vr,ur)=>V(ar,typeof Vr!="symbol"?Vr+"":Vr,ur);const G=class em{constructor(Vr,ur,ve){this.placeholder=Vr,this.editor=ur,this.monaco=ve,ur.onDidChangeModelContent(()=>this.onDidChangeModelContent()),this.onDidChangeModelContent()}onDidChangeModelContent(){this.editor.getValue()===""?this.editor.addContentWidget(this):this.editor.removeContentWidget(this)}getId(){return em.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)}};P(G,"ID","editor.widget.placeholderHint");var se=G,oe=je(96236),De=je(6767),He=je(25399),Qe=je(89392),Ue=je(77254),qe=je(56102),st=Object.defineProperty,Pe=Object.defineProperties,pe=Object.getOwnPropertyDescriptors,M=Object.getOwnPropertySymbols,ye=Object.prototype.hasOwnProperty,Te=Object.prototype.propertyIsEnumerable,me=(ar,Vr,ur)=>Vr in ar?st(ar,Vr,{enumerable:!0,configurable:!0,writable:!0,value:ur}):ar[Vr]=ur,xe=(ar,Vr)=>{for(var ur in Vr||(Vr={}))ye.call(Vr,ur)&&me(ar,ur,Vr[ur]);if(M)for(var ur of M(Vr))Te.call(Vr,ur)&&me(ar,ur,Vr[ur]);return ar},z=(ar,Vr)=>Pe(ar,pe(Vr)),j=(ar,Vr)=>{var ur={};for(var ve in ar)ye.call(ar,ve)&&Vr.indexOf(ve)<0&&(ur[ve]=ar[ve]);if(ar!=null&&M)for(var ve of M(ar))Vr.indexOf(ve)<0&&Te.call(ar,ve)&&(ur[ve]=ar[ve]);return ur},ee=(ar,Vr,ur)=>new Promise((ve,At)=>{var le=ae=>{try{D(ur.next(ae))}catch(We){At(We)}},_=ae=>{try{D(ur.throw(ae))}catch(We){At(We)}},D=ae=>ae.done?ve(ae.value):Promise.resolve(ae.value).then(le,_);D((ur=ur.apply(ar,Vr)).next())});function _e(ar){return/^\d+$/.test(ar)?`${ar}px`:ar}function ut(){}let Ft=!1;const Vt={"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 vr(ar=[]){let Vr=ar;if(Array.isArray(ar)){for(let ur=0;ur<ar.length;ur++){let ve=Vt[ar[ur]];if(ve)return ve}return Vr[0]}return Vt[Vr]||Vr}let Yr=null;const wr=()=>ee(void 0,null,function*(){try{yield navigator.clipboard.writeText(" "),console.log("\u5185\u5BB9\u5DF2\u81EA\u52A8\u590D\u5236\u5230\u526A\u8D34\u677F:")}catch(ar){console.error("\u81EA\u52A8\u590D\u5236\u5931\u8D25:",ar)}});var fr=ar=>{var Vr=ar,{width:ur="100%",height:ve="100%",value:At,language:le="javascript",style:_={},options:D={},overrideServices:ae={},theme:We="vs-dark",onEditBlur:ge,isCopy:Se=!1,onSave:gt,autoHeight:xt=!1,forbidCopy:Et=!1,forbidCopyTips:nr,onChange:xr=ut,editorDidMount:Tr=ut,onFocus:Bt=ut,onBreakPoint:Mt=ut,breakPointValue:Wt=[],filename:cr="educoder.txt",errorLine:qt,errorContent:kt="",highlightLine:Pr,openBreakPoint:$t=!1,placeholder:yr="",showMiniMap:An=!0}=Vr,Y=j(Vr,["width","height","value","language","style","options","overrideServices","theme","onEditBlur","isCopy","onSave","autoHeight","forbidCopy","forbidCopyTips","onChange","editorDidMount","onFocus","onBreakPoint","breakPointValue","filename","errorLine","errorContent","highlightLine","openBreakPoint","placeholder","showMiniMap"]);const ie=(0,Ie.useRef)(),Ot=(0,Ie.useRef)({}),fe=(0,Ie.useRef)(),Ke=(0,Ie.useRef)(),Wr=(0,Ie.useRef)([]),ct=(0,Ie.useRef)(!1),Dt=(0,Ie.useRef)(),Kt=(0,Ie.useRef)(),Oe=(0,Ie.useRef)(!1),[Ve,at]=(0,Ie.useState)(!1);function Pt(){let ln;return ie.current&&(ln=new mt.Z(fn=>{for(let ni of fn)(ni.target.offsetHeight>0||ni.target.offsetWidth>0)&&Ot.current.instance.layout()}),ln.observe(ie.current)),ln}function Le(){De.ZP.warning({content:decodeURIComponent(nr||k),key:"monaco-editor-tip"})}const Kr=()=>{let ln=Ot.current.instance;if(At!=null&&ln&&Ve){const fn=ln.getModel();fn&&At!==fn.getValue()&&(Ft=!0,fn.setValue(At),ln.layout(),Ft=!1)}};(0,Ie.useEffect)(()=>{const ln=Ue.Z.subscribe("formatDocument",fn=>{var ni;let Ei=Ot.current.instance;(ni=Ei==null?void 0:Ei.getAction)==null||ni.call(Ei,"editor.action.formatDocument").run()});return window.updateMonacoValue=fn=>{xr(fn)},ln},[]),(0,Ie.useEffect)(()=>{var ln;let fn=Ot.current.instance;Ke.current&&clearTimeout(Ke.current),Ke.current=setTimeout(()=>{Kr()},500),At&&(At!=null&&At.length)&&((ln=fn==null?void 0:fn.updateOptions)==null||ln.call(fn,{lineNumbersMinChars:Math.max(Math.floor(Math.log10(At.split(/\r\n|\r|\n/g).length))+3,5)}))},[At,Ve,Ot.current]),(0,Ie.useEffect)(()=>{if(qt&&Ot.current&&Ot.current.instance){let fn=Ot.current.instance;fn.changeViewZones(function(ni){var Ei=document.createElement("div");Ei.style.padding="10px 20px",Ei.style.width="calc(100% - 20px)",Ei.className="my-error-line-wrp",Ei.innerHTML=kt,ni.addZone({afterLineNumber:qt||11,heightInLines:3,domNode:Ei})});var ln={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}};fn.addOverlayWidget(ln),fn.revealPositionInCenter({lineNumber:20,column:1})}},[qt,Ot.current,Ve]);const ht=(ln="",fn)=>{if(!ln||ln.trim()==="")return!0;const Ei=Ot.current.instance.getModel().getLineTokens(fn);let Gi=!1;for(let ks=0;ks<2;ks++)Ei.getStandardTokenType(ks)===1&&(Gi=!0);return Gi};(0,Ie.useEffect)(()=>{var ln;const fn=(ln=Ot.current)==null?void 0:ln.instance;if(fn&&Ve&&Et){const ni=fn.onDidBlurEditorWidget(()=>{Oe.current=!1}),Ei=fn.onDidFocusEditorText(()=>{Oe.current=!0});return()=>{ni.dispose(),Ei.dispose()}}},[Ot.current,Ve,Et]),(0,Ie.useEffect)(()=>{var ln;if((ln=Ot.current)!=null&&ln.instance&&Ve&&$t){let fn=Ot.current.instance,ni=fn.getModel();if(!ni)return;(()=>{var Qi;let Yi=[],Xi=[];const ps=ni.getAllDecorations();for(let Vn of ps)Vn.options.className==="highlighted-line"&&(Yi.push((Qi=Vn==null?void 0:Vn.range)==null?void 0:Qi.startLineNumber),Xi.push(Vn==null?void 0:Vn.id));if(Pr===Yi[0])return;ni.deltaDecorations(Xi,[]);const ji=ni.getLineCount();Pr&&Pr<=ji&&(fn.deltaDecorations([],[{range:new Yr.Range(Pr,1,Pr,ni.getLineMaxColumn(Pr)),options:{isWholeLine:!0,className:"highlighted-line"}}]),fn.revealLineInCenter(Pr))})();const Gi=(Qi=!1)=>{var Yi;let Xi=[],ps=[];const ji=ni.getAllDecorations();for(let Vn of ji)Vn.options.linesDecorationsClassName==="breakpoints-select"&&(Xi.push((Yi=Vn==null?void 0:Vn.range)==null?void 0:Yi.startLineNumber),ps.push(Vn==null?void 0:Vn.id));if(Qi)return{lines:Xi,ids:ps};Mt(Xi)},ks=Qi=>ee(void 0,null,function*(){let Yi={range:new Yr.Range(Qi,1,Qi,1),options:{isWholeLine:!1,linesDecorationsClassName:"breakpoints-select"}};yield ni.deltaDecorations([],[Yi]),Gi()}),Js=Qi=>ee(void 0,null,function*(){let Yi=[];const Xi=fn.getLineDecorations(Qi);for(let ps of Xi)ps.options.linesDecorationsClassName==="breakpoints-select"&&Yi.push(ps.id);yield ni.deltaDecorations(Yi,[]),Gi()}),ia=Qi=>{let Yi=fn.getLineDecorations(Qi);for(let Xi of Yi)if(Xi.options.linesDecorationsClassName==="breakpoints-select")return!0;return!1};if(!(0,Qe.isEqual)(Wt,Gi(!0).lines)){ni.deltaDecorations(Gi(!0).ids,[]);const Qi=Wt.map(Yi=>({range:new Yr.Range(Yi,1,Yi,1),options:{isWholeLine:!1,linesDecorationsClassName:"breakpoints-select"}}));ni.deltaDecorations([],Qi)}const Ea=fn.onDidChangeModelContent(Qi=>{let Yi=fn.getPosition();if(Yi){let Xi=Yi.lineNumber;clearTimeout(Kt.current),Kt.current=setTimeout(()=>{ht(ni.getLineContent(Xi),Xi)?Js(Xi):ia(Xi)?(Js(Xi),ks(Xi)):Gi()},100)}}),Mi=fn.onMouseDown(Qi=>{var Yi,Xi,ps;if(Qi.target.detail&&((ps=(Xi=(Yi=Qi.target)==null?void 0:Yi.element)==null?void 0:Xi.className)!=null&&ps.includes("line-numbers"))){let ji=Qi.target.position.lineNumber;if(ht(ni.getLineContent(ji),ji))return;ia(ji)?Js(ji):ks(ji)}}),sa=Qi=>{let Yi={range:new Yr.Range(Qi,1,Qi,1),options:{isWholeLine:!1,linesDecorationsClassName:"breakpoints-fake"}};Wr.current=fn.deltaDecorations(Wr.current,[Yi])},ds=()=>{Wr.current=fn.deltaDecorations(Wr.current,[])},Do=fn.onMouseMove(Qi=>{var Yi,Xi,ps;if(ds(),Qi.target.detail&&((ps=(Xi=(Yi=Qi.target)==null?void 0:Yi.element)==null?void 0:Xi.className)!=null&&ps.includes("line-numbers"))){let ji=Qi.target.position.lineNumber;if(ht(ni.getLineContent(ji),ji))return;sa(ji)}}),Va=fn.onMouseLeave(()=>{ds()});return()=>{Ea.dispose(),Mi.dispose(),Do.dispose(),Va.dispose()}}},[Ot.current,Ve,Wt,Pr,$t,le]),(0,Ie.useEffect)(()=>{var ln;(ln=Ot.current)!=null&&ln.instance&&$t&&Ot.current.instance.setPosition({lineNumber:0,column:0})},[Pr]);function Sn(){let ln=Ot.current.instance;if(ln){const fn=ln.getSelection(),ni=Ot.current.pastePos||{},Ei=new Yr.Range(ni.startLineNumber||fn.endLineNumber,ni.startColumn||fn.endColumn,ni.endLineNumber||fn.endLineNumber,ni.endColumn||fn.endColumn);setTimeout(()=>{ln.executeEdits("",[{range:Ei,text:""}])},300)}}function Bn(ln){(window.navigator.platform.match("Mac")?ln.metaKey:ln.ctrlKey)&&ln.keyCode==83&&(ln.preventDefault(),gt())}const ri=()=>{if(xt&&Ot.current.instance){const ln=Ot.current.instance.getContentHeight();Ui(ln<ve?ve:ln)}else Ui(ve)};function ws(ln){var fn=document.createEvent("MouseEvents");fn.initMouseEvent("click",!0,!1,window,0,0,0,0,0,!1,!1,!1,!1,0,null),ln.dispatchEvent(fn)}const Ci=ln=>{if(!Oe.current)return;const{keyCode:fn,ctrlKey:ni,metaKey:Ei,target:Gi,type:ks}=ln;return(ks==="paste"||(fn===67||fn===86)&&(Ei||ni))&&Gi.nodeName==="TEXTAREA"&&(Le(),ln.preventDefault()),!1};function Kn(ln,fn){var ni=window.URL||window.webkitURL||window,Ei=new Blob([fn]),Gi=document.createElementNS("http://www.w3.org/1999/xhtml","a");Gi.href=ni.createObjectURL(Ei),Gi.download=ln,ws(Gi)}(0,Ie.useEffect)(()=>{ri()},[ri]),(0,Ie.useEffect)(()=>{ie.current&&!Ve&&Promise.all([je.e(8909),je.e(2460)]).then(je.bind(je,71448)).then(ln=>{try{Yr=ln,Ot.current.instance=Yr.editor.create(ie.current,{value:At,language:vr(le),theme:We,requireConfig:{"vs/nls":{availableLanguages:{"*":"zh-cn"}}},wordWrap:!0,autoIndent:!0,contextmenu:!0,formatOnType:!0,minimap:{enabled:An||!1}},ae);const fn=Ot.current.instance;let Gi=[...oe.BH._menuItems].find(Ea=>Ea[0]._debugName=="EditorContext")[1],ks=["editor.action.clipboardCopyWithSyntaxHighlightingAction","editor.action.quickCommand","editor.action.clipboardCopyAction","editor.action.clipboardPasteAction","editor.action.clipboardCutAction"],Js=(Ea,Mi)=>{var sa,ds;let Do=Ea._first;do Mi.includes((ds=(sa=Do.element)==null?void 0:sa.command)==null?void 0:ds.id)&&Ea._remove(Do);while(Do=Do.next)};if(Tr(fn,Yr),setTimeout(()=>{ri(),Ot.current.instance.addAction({id:"d123123",label:"Download File",contextMenuGroupId:"9_cutcopypaste",run:()=>{Kn(cr||"educoder.txt",fn.getValue())}})},500),Ot.current.subscription=fn.onDidChangeModelContent(Ea=>{ct.current?clearTimeout(Dt.current):(ri(),xr(fn.getValue(),Ea)),Dt.current=setTimeout(()=>{ct.current=!1},500)}),window.Monaco||B(Yr,vr(le)),Et&&(Js(Gi,ks),ie.current.classList.add("noCopyPaste"),window.removeEventListener("keydown",Ci),window.removeEventListener("paste",Ci),window.addEventListener("keydown",Ci),window.addEventListener("paste",Ci)),window.Monaco=Yr,ge&&fn.onDidBlurEditorWidget(()=>{ge(fn.getValue())}),Bt&&fn.onDidFocusEditorText(()=>{Et&&wr(),Bt(fn.getValue())}),Et){wr();try{fn.onDidPaste(Ea=>{const Mi=fn.getSelection(),sa=Ot.current.pastePos||{},ds=new Yr.Range(sa.startLineNumber||Mi.endLineNumber,sa.startColumn||Mi.endColumn,sa.endLineNumber||Mi.endLineNumber,sa.endColumn||Mi.endColumn);fn.executeEdits("",[{range:Ea.range,text:""}])})}catch(Ea){}}let ia=Pt();return yr&&typeof yr=="string"&&new se(yr,fn,Yr),at(!0),()=>{const Ea=Ot.current.instance;Ea.dispose();const Mi=Ea.getModel();Mi&&Mi.dispose(),Ot.current.subscription&&Ot.current.subscription.dispose(),ia.unobserve(ie.current)}}catch(fn){}})},[]),(0,Ie.useEffect)(()=>{if(Ot.current.instance&&Ve)return document.addEventListener("keydown",Bn,!1),()=>{document.removeEventListener("keydown",Bn)}},[gt,Ve]),(0,Ie.useEffect)(()=>{let ln=Ot.current.instance;if(ln&&Ve){let fn=vr(le);Yr.editor.setModelLanguage(ln.getModel(),fn)}},[le,Ve]),(0,Ie.useEffect)(()=>{Ot.current.instance&&Ve&&Yr.editor.setTheme(We)},[We,Ve]),(0,Ie.useEffect)(()=>{let ln=Ot.current.instance;fe.current=D,ln&&Ve&&(ln.updateOptions(xe({},D)),setTimeout(()=>{ln.getModel().updateOptions(xe({},D))},200))},[JSON.stringify(D),Ve]),(0,Ie.useEffect)(()=>{let ln=Ot.current.instance;ln&&Ve&&ln.layout()},[ur,ve,Ve]);const[Is,Aa]=(0,Ie.useState)(_e(ur)),[$i,Ui]=(0,Ie.useState)(_e(ve)),mn=z(xe({},_),{width:Is,height:$i,position:"relative"});return Ie.createElement("div",{className:"my-monaco-editor",ref:ie,style:mn,onFocus:()=>{Et&&wr()}},Se&&Ie.createElement(qe.CopyToClipboard,{text:At,onCopy:()=>De.ZP.success("\u590D\u5236\u6210\u529F")},Ie.createElement(He.Z,{title:"\u590D\u5236\u4EE3\u7801"},Ie.createElement("div",{style:{position:"absolute",top:0,right:10,cursor:"pointer",zIndex:10,color:"#165DFF"}},Ie.createElement("i",{className:"iconfont icon-fuzhi8",style:{fontSize:14}})," \u590D\u5236\u4EE3\u7801"))))};function dn({width:ar="100%",height:Vr="100%",original:ur,modified:ve,language:At,options:le={}}){const _=(0,Ie.useRef)(),[D,ae]=(0,Ie.useState)(null);function We(xt){let Et;return _.current&&(Et=new mt.Z(nr=>{for(let xr of nr)(xr.target.offsetHeight>0||xr.target.offsetWidth>0)&&xt.layout()}),Et.observe(_.current)),Et}(0,Ie.useEffect)(()=>(_.current&&Promise.all([je.e(8909),je.e(9404)]).then(je.bind(je,2550)).then(xt=>{Yr=xt;const Et=Yr.editor.createDiffEditor(_.current,z(xe({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},le),{wordWrap:!0}));ae(Et);let nr=We(Et);return()=>{Et.dispose();const xr=Et.getModel();xr&&xr.dispose(),nr.unobserve(_.current)}}),()=>{window.removeEventListener("keydown",checkPaste),window.removeEventListener("paste",checkPaste)}),[]),(0,Ie.useEffect)(()=>{D&&D.setModel({original:Yr.editor.createModel(ur,At),modified:Yr.editor.createModel(ve,At)})},[ur,ve,At,D]);const ge=_e(ar),Se=_e(Vr),gt={width:ge,height:Se};return Ie.createElement("div",{className:"my-diff-editor",ref:_,style:gt})}},92439:function(wn,Sr,je){"use strict";je.r(Sr),je.d(Sr,{default:function(){return st}});var Ie=je(59301),mt=je(65582),Fe=je(86129),Me=je.n(Fe),de=je(44164),I=je.n(de),Be=je(66649),R=je.n(Be),u=je(60979),C=je(7939),H=je(77019),w=je(5269),L=je(62957),B=je(6767),k=je(95097),K=je(65862),V={flex_box_center:"flex_box_center___jUfHY",flex_space_between:"flex_space_between___BsD9m",flex_box_vertical_center:"flex_box_vertical_center___U607n",flex_box_center_end:"flex_box_center_end___Cjzjt",flex_box_column:"flex_box_column___Zi6iY",list:"list___QG0cp",on:"on___bq2Xj",export_type_modal:"export_type_modal___T7FVs",export_type_modal_con:"export_type_modal_con___n3I3H",type_item:"type_item___Mb5HA",img_warp:"img_warp___u0jbT",img_warp_active:"img_warp_active___F1Y7V"},P=je(84454),G=je(59301),Z=Object.defineProperty,se=Object.getOwnPropertySymbols,oe=Object.prototype.hasOwnProperty,De=Object.prototype.propertyIsEnumerable,He=(Pe,pe,M)=>pe in Pe?Z(Pe,pe,{enumerable:!0,configurable:!0,writable:!0,value:M}):Pe[pe]=M,Qe=(Pe,pe)=>{for(var M in pe||(pe={}))oe.call(pe,M)&&He(Pe,M,pe[M]);if(se)for(var M of se(pe))De.call(pe,M)&&He(Pe,M,pe[M]);return Pe},Ue=(Pe,pe,M)=>new Promise((ye,Te)=>{var me=j=>{try{z(M.next(j))}catch(ee){Te(ee)}},xe=j=>{try{z(M.throw(j))}catch(ee){Te(ee)}},z=j=>j.done?ye(j.value):Promise.resolve(j.value).then(me,xe);z((M=M.apply(Pe,pe)).next())});const qe=({shixunsList:Pe,globalSetting:pe,loading:M,dispatch:ye})=>{const[Te,me]=(0,Ie.useState)([]),[xe,z]=(0,Ie.useState)(!1),[j,ee]=(0,Ie.useState)(0),[_e,ut]=(0,Ie.useState)(0),[Ft,Vt]=(0,Ie.useState)(!1);let[vr,Yr]=(0,Ie.useState)(0);const[wr]=(0,Ie.useState)([]),[fr,dn]=(0,Ie.useState)(""),ar=(0,mt.useLocation)(),[Vr,ur]=(0,Ie.useState)(!1),[ve,At]=(0,Ie.useState)(""),[le,_]=(0,Ie.useState)(1),[D]=(0,mt.useSearchParams)(),ae=(0,Ie.useRef)(new(Me())),[We,ge]=(0,Ie.useState)(new(Me())),[Se,gt]=(0,Ie.useState)("");(0,Ie.useEffect)(()=>{var Bt,Mt,Wt,cr,qt,kt,Pr;(cr=(Wt=(Mt=(Bt=Te==null?void 0:Te[_e])==null?void 0:Bt.challenge_info)==null?void 0:Mt[j])==null?void 0:Wt.task_pass)!=null&&cr.length&&(dn((Pr=(kt=(qt=Te==null?void 0:Te[_e])==null?void 0:qt.challenge_info)==null?void 0:kt[j])==null?void 0:Pr.task_pass),setTimeout(()=>{let $t=1,yr=1500,An=0;[...document.getElementsByClassName("html2pdf__page-break")].forEach(ie=>{(!ie.width||!ie.height)&&ie.remove()}),Array.from(document.getElementById("export-all").querySelector(".markdown-body").children).map((ie,Ot)=>{if(An+=ie.scrollHeight,yr<=An){An=ie.scrollHeight,++$t;let fe=document.createElement("li");fe.className="html2pdf__page-break",fe.innerHTML=" ",document.getElementById("export-all").querySelector(".markdown-body").insertBefore(fe,ie)}}),Ft&&nr()},1500))},[j,_e]),(0,Ie.useEffect)(()=>{Ft&&(j==0&&_e==0?nr():(ee(0),ut(0)))},[Ft]);function xt(Bt){let Mt=new Array,Wt=new Array,cr=new Array,qt=new Array,kt=new Array,Pr=new Array,$t=Bt;console.log("\u8F6C\u6362\u524D\u7684\u6E90\u7801\uFF1A"+$t);function yr(fe=""){return fe.replace(/\<[\s\S]*?\>/g,"")}function An(fe=""){let Ke=fe,Wr=fe.match(/\<li\>/ig).length;for(let ct=1;ct<=Wr;ct++){let Dt="[~wrap]";ct==1&&(Dt="[~wrap][~wrap]"),Ke=Ke.replace(/\<li\>/i,Dt+ct+". ")}return Ke=Ke.replace(/\<\/li\>/,""),Ke}function Y(fe=""){let Ke,Wr,ct,Dt;return Ke=fe.match(new RegExp(`(?<=src=['"])[\\s\\S]*?(?=['"])`,"i")),Wr=fe.match(new RegExp(`(?<=title=['"])[\\s\\S]*?(?=['"])`,"i")),ct=fe.match(new RegExp(`(?<=alt=['"])[\\s\\S]*?(?=['"])`,"i")),Wr=Wr!=null?` "${Wr}"`:" ",ct=ct!="null"?ct:" ",Dt=``,Dt}function ie(fe=""){let Ke=""+fe.match(new RegExp(`(?<=href=['"])[\\s\\S]*?(?=['"])`,"i")),Wr=""+fe.match(new RegExp(`(?<=title=['"])[\\s\\S]*?(?=['"])`,"i")),ct=""+fe.match(new RegExp("(?<=\\<a\\s*[^\\>]*?\\>)[\\s\\S]*?(?=<\\/a>)","i")),Dt=fe.match(/<img\s*[^\>]*?\>[^]*?(<\/img>)?/i),Kt,Oe,Ve;Wr=Wr!="null"?` "${Wr}"`:" ",ct=yr(ct);let at=`[${ct}](${Ke}${Wr})`;return Dt!=null&&(Kt=Dt[0].match(new RegExp(`(?<=src=['"])[\\s\\S]*?(?=['"])`,"i")),Oe=Dt[0].match(new RegExp(`(?<=title=['"])[\\s\\S]*?(?=['"])`,"i")),Ve=Dt[0].match(new RegExp(`(?<=alt=['"])[\\s\\S]*?(?=['"])`,"i")),Oe=Oe!=null?` "${Oe}"`:" ",Ve=Ve!="null"?Ve:" ",at=`[](${Ke}${Wr})`),at}function Ot(fe=null){if(fe[0]==null){let ct="",Dt=fe[1].length;for(let Kt=0;Kt<Dt;Kt++)ct+=`|${yr(fe[1][Kt])}`;ct+="|[~wrap]";for(let Kt=0;Kt<Dt;Kt++)ct+="| :------------: ";return ct+="|[~wrap]",ct}let Ke=fe[0].length,Wr="";for(let ct=0;ct<Ke;ct++)Wr+=`|${yr(fe[0][ct])}`;Wr+="|[~wrap]";for(let ct=0;ct<Ke;ct++)Wr+="| :------------: ";Wr+="|[~wrap]";for(let ct=0;ct<fe[1].length;){for(let Dt=0;Dt<Ke;Dt++,ct++)Wr+=`|${yr(fe[1][ct])}`;Wr+="|[~wrap]"}return Wr+"[~wrap]"}if($t=$t.replace(/<style\s*[^\>]*?\>[^]*?<\/style>/ig,"").replace(/<script\s*[^\>]*?\>[^]*?<\/script>/ig,""),Wt=$t.match(/<pre\s*[^\>]*?\>[^]*?<\/pre>/ig),$t=$t.replace(new RegExp("(?<=\\<pre\\s*[^\\>]*?\\>)[\\s\\S]*?(?=<\\/pre>)","ig"),"`#preContent#`"),Mt=$t.match(new RegExp("(?<=\\<code\\s*[^\\>]*?\\>)[\\s\\S]*?(?=<\\/code>)","ig")),$t=$t.replace(new RegExp("(?<=\\<code\\s*[^\\>]*?\\>)[\\s\\S]*?(?=<\\/code>)","ig"),"`#codeContent#`"),Pr=$t.match(/<a\s*[^\>]*?\>[^]*?<\/a>/ig),$t=$t.replace(/<a\s*[^\>]*?\>[^]*?<\/a>/ig,"`#aContent#`"),kt=$t.match(/<img\s*[^\>]*?\>[^]*?(<\/img>)?/ig),$t=$t.replace(/<img\s*[^\>]*?\>[^]*?(<\/img>)?/ig,"`#imgContent#`"),$t=$t.replace(new RegExp("(?<=\\<[a-zA-Z0-9]*)\\s.*?(?=\\>)","g"),""),$t=$t.replace(/<h1>/ig,"[~wrap]# ").replace(/<\/h1>/ig,"[~wrap][~wrap]").replace(/<h2>/ig,"[~wrap]## ").replace(/<\/h2>/ig,"[~wrap][~wrap]").replace(/<h3>/ig,"[~wrap]### ").replace(/<\/h3>/ig,"[~wrap][~wrap]").replace(/<h4>/ig,"[~wrap]#### ").replace(/<\/h4>/ig,"[~wrap][~wrap]").replace(/<h5>/ig,"[~wrap]##### ").replace(/<\/h5>/ig,"[~wrap][~wrap]").replace(/<h6>/ig,"[~wrap]###### ").replace(/<\/h6>/ig,"[~wrap][~wrap]"),$t=$t.replace(/(<br>)/ig,"[~wrap]").replace(/(<\/p>)|(<br\/>)|(<\/div>)/ig,"[~wrap][~wrap]").replace(/(<meta>)|(<span>)|(<p>)|(<div>)/ig,"").replace(/<\/span>/ig,""),$t=$t.replace(/(<b>)|(<strong>)/ig,"**").replace(/(<\/b>)|(<\/strong>)/ig,"**"),$t=$t.replace(/(<i>)|(<em>)|(<abbr>)|(<dfn>)|(<cite>)|(<address>)/ig,"*").replace(/(<\/i>)|(<\/em>)|(<\/abbr>)|(<\/dfn>)|(<\/cite>)|(<\/address>)/ig,"*"),$t=$t.replace(/\<del\>/ig,"~~").replace(/\<\/del\>/ig,"~~"),$t=$t.replace(/\<blockquote\>/ig,"[~wrap][~wrap]> ").replace(/\<\/blockquote\>/ig,"[~wrap][~wrap]"),$t=$t.replace(/\<hr\>/ig,"[~wrap][~wrap]------[~wrap][~wrap]"),cr=$t.match(new RegExp("(?<=\\<table\\s*[^\\>]*?\\>)[\\s\\S]*?(?=<\\/table>)","ig")),$t=$t.replace(/<table\s*[^\>]*?\>[^]*?<\/table>/ig,"`#tableContent#`"),cr!==null){tbodyContent=new Array;for(let fe=0;fe<cr.length;fe++)tbodyContent[fe]=new Array,tbodyContent[fe].push(cr[fe].match(new RegExp("(?<=\\<th>)[\\s\\S]*?(?=<\\/th?>)","ig"))),tbodyContent[fe].push(cr[fe].match(new RegExp("(?<=\\<td>)[\\s\\S]*?(?=<\\/td?>)","ig")))}if(typeof tbodyContent!="undefined")for(let fe=0;fe<tbodyContent.length;fe++){let Ke=Ot(tbodyContent[fe]);$t=$t.replace(/\`\#tableContent\#\`/i,Ke)}if(qt=$t.match(new RegExp("(?<=\\<ol\\s*[^\\>]*?\\>)[\\s\\S]*?(?=<\\/ol>)","ig")),$t=$t.replace(new RegExp("(?<=\\<ol\\s*[^\\>]*?\\>)[\\s\\S]*?(?=<\\/ol>)","ig"),"`#olContent#`"),qt!==null)for(let fe=0;fe<qt.length;fe++){let Ke=An(qt[fe]);$t=$t.replace(/\`\#olContent\#\`/i,yr(Ke))}if($t=$t.replace(/(<li>)|(<dd>)/ig,"[~wrap] - ").replace(/(<\/li>)|(<\/dd>)/ig,"[~wrap][~wrap]"),$t=$t.replace(/(<ul>)|(<ol>)/ig,"").replace(/(<\/ul>)|(<\/ol>)/ig,"[~wrap][~wrap]"),kt!==null)for(let fe=0;fe<kt.length;fe++){let Ke=Y(kt[fe]);$t=$t.replace(/\`\#imgContent\#\`/i,Ke)}if(Pr!==null)for(let fe=0;fe<Pr.length;fe++){let Ke=ie(Pr[fe]);$t=$t.replace(/\`\#aContent\#\`/i,Ke)}if($t=$t.replace(/\[\~wrap\]/ig,`
|
|
|
`).replace(/\n{3,}/g,`
|
|
|
|
|
|
`),Mt!==null)for(let fe=0;fe<Mt.length;fe++)$t=$t.replace(/\`\#codeContent\#\`/i,yr(Mt[fe]));if($t=$t.replace(/\<code\>/ig," ` ").replace(/\<\/code\>/ig," ` "),Wt!==null)for(let fe=0;fe<Wt.length;fe++){let Ke=Wt[fe].match(new RegExp(`(?<=language-).*?(?=[\\s'"])`,"i")),Wr=yr(Wt[fe]);Wr=Wr.replace(/^1\n2\n(\d+\n)*/,""),Ke=Ke!=null&&Ke[0]!="undefined"?Ke[0]+`
|
|
|
`:`
|
|
|
`,$t=$t.replace(/\`\#preContent\#\`/i,Ke+Wr)}return $t=$t.replace(/\<pre\>/ig,"```").replace(/\<\/pre\>/ig,"\n```\n"),$t=yr($t),$t=$t.replace(/\<\;/ig,"<").replace(/\>\;/ig,">"),$t=$t.replace(/^\n{1,}/i,""),$t}const Et=()=>Ue(void 0,null,function*(){var Bt;let Mt=0,Wt=`${(Bt=Te==null?void 0:Te[0])==null?void 0:Bt.shixun_name}`;const cr=We.folder(`${Wt}`);function qt(kt,Pr){return Ue(this,null,function*(){Mt++,setTimeout(()=>Ue(this,null,function*(){var $t,yr,An,Y,ie,Ot;let fe=`${(An=(yr=($t=Te==null?void 0:Te[kt==null?void 0:kt[0]])==null?void 0:$t.challenge_info)==null?void 0:yr[kt==null?void 0:kt[1]])==null?void 0:An.challenge_name}`,Ke="\u53C2\u8003\u7B54\u6848.txt";var Wr={margin:10,filename:fe,image:{type:"jpeg",quality:.98},pagebreak:{mode:["avoid-all","css","legacy"]},html2canvas:{letterRendering:!0,useCORS:!0,allowTaint:!1,scale:1,withCredentials:!0}};const ct=Pr.folder(`${fe}`),Dt=I()();yield Dt.set(Wr).from(document.getElementById("export-all")),ct.file(`${fe}.pdf`,Dt.output("blob"));let Kt="";(Y=Te==null?void 0:Te[kt==null?void 0:kt[0]])!=null&&Y.challenge_info[kt==null?void 0:kt[1]].challenge_answers&&((Ot=(ie=Te==null?void 0:Te[kt==null?void 0:kt[0]])==null?void 0:ie.challenge_info[kt==null?void 0:kt[1]].challenge_answers)==null||Ot.map((Ve,at)=>{Kt+=`\u53C2\u8003\u7B54\u6848${at+1}:
|
|
|
${Ve}
|
|
|
|
|
|
`}));const Oe=new Blob([Kt],{type:"text/plain"});if(ct.file(Ke,Oe),Mt==(wr==null?void 0:wr.length))We.generateAsync({type:"blob"}).then(function(Ve){const at=document.createElement("a");at.href=window.URL.createObjectURL(Ve),at.download=Se+R()().format("YYYY-MM-DD")+".zip",document.body.appendChild(at);const Pt=document.createEvent("MouseEvents");Pt.initEvent("click",!1,!1),at.dispatchEvent(Pt),document.body.removeChild(at),z(!1)});else{++vr;let Ve=wr[Mt].split("-");Yr(vr),setTimeout(()=>{var at,Pt;if(ee(Number(Ve[1])),ut(Number(Ve[0])),Ve[1]==0&&Mt>1||Ve[2]==((at=Te==null?void 0:Te[Ve[0]])==null?void 0:at.shixun_name)+Ve[0]+Ve[1]){let Le=`${(Pt=Te==null?void 0:Te[Ve[0]])==null?void 0:Pt.shixun_name}`;const Kr=We.folder(`${Le}`);qt([Number(Ve[0]),Number(Ve[1])],Kr)}else qt([Number(Ve[0]),Number(Ve[1])],cr)},5e3)}}),2200)})}j==0&&_e==0?qt([0,0],cr):(ee(0),ut(0),qt([0,0],cr))}),nr=()=>Ue(void 0,null,function*(){return z(!0),new Promise((Bt,Mt)=>Ue(void 0,null,function*(){var Wt,cr,qt,kt,Pr;[...document.getElementsByTagName("canvas")].forEach(yr=>{(!yr.width||!yr.height)&&yr.remove()});try{let yr=`${(Wt=Te==null?void 0:Te[_e])==null?void 0:Wt.shixun_name}-\u7B2C${j+1}\u5173-${R()().format("YYYY-MM-DD")}`,An=`${(cr=Te==null?void 0:Te[_e])==null?void 0:cr.shixun_name}-\u7B2C${j+1}\u5173-\u53C2\u8003\u7B54\u6848.txt`;var $t={margin:10,filename:yr,image:{type:"jpeg",quality:.98},pagebreak:{mode:["avoid-all","css","legacy"]},html2canvas:{letterRendering:!0,useCORS:!0,allowTaint:!1,scale:1,withCredentials:!0}};const Y=I()();yield Y.set($t).from(document.getElementById("export-all")),ae.current.file(`${yr}.pdf`,Y.output("blob"));let ie="";(qt=Te==null?void 0:Te[_e])!=null&&qt.challenge_info[j].challenge_answers&&((Pr=(kt=Te==null?void 0:Te[_e])==null?void 0:kt.challenge_info[j].challenge_answers)==null||Pr.map((fe,Ke)=>{ie+=`\u53C2\u8003\u7B54\u6848${Ke+1}:
|
|
|
${fe}
|
|
|
|
|
|
`}));const Ot=new Blob([ie],{type:"text/plain"});if(ae.current.file(An,Ot),ae.current.generateAsync({type:"blob"}).then(function(fe){const Ke=document.createElement("a");Ke.href=window.URL.createObjectURL(fe),Ke.download=yr+".zip",document.body.appendChild(Ke);const Wr=document.createEvent("MouseEvents");Wr.initEvent("click",!1,!1),Ke.dispatchEvent(Wr),document.body.removeChild(Ke),z(!1)}),ae.current=new(Me()),Ft){++vr;let fe=wr[vr].split("-");Yr(vr),setTimeout(()=>{ee(Number(fe[1])),ut(Number(fe[0]))},5e3)}Bt()}catch(yr){console.log("error:",yr),Mt()}}));z(!1)});(0,Ie.useEffect)(()=>{(0,K.Dk)("\u5B9E\u8DF5\u9879\u76EE\u5BFC\u51FA"),xr()},[ar]);const xr=()=>Ue(void 0,null,function*(){var Bt,Mt,Wt,cr,qt,kt;const Pr=yield(0,u.yx)(Qe({},(0,K.oP)()));Pr.status===0&&(gt((Bt=Pr==null?void 0:Pr.data)==null?void 0:Bt.subject_name),Pr.data.shixuns.map(($t,yr)=>{var An;(An=$t.challenge_info)==null||An.map((Y,ie)=>{wr.push(`${yr}-${ie}-${$t==null?void 0:$t.shixun_name}${yr}${ie}`)})}),me([...Pr.data.shixuns]),dn((kt=(qt=(cr=(Wt=(Mt=Pr.data)==null?void 0:Mt.shixuns)==null?void 0:Wt[_e])==null?void 0:cr.challenge_info)==null?void 0:qt[j])==null?void 0:kt.task_pass))}),Tr=()=>{var Bt,Mt,Wt,cr,qt;let kt=new(Me());const Pr=xt(fr);let $t=`${(Bt=Te==null?void 0:Te[_e])==null?void 0:Bt.shixun_name}-\u7B2C${j+1}\u5173-${R()().format("YYYY-MM-DD")}.md`,yr=`${(Mt=Te==null?void 0:Te[_e])==null?void 0:Mt.shixun_name}-\u7B2C${j+1}\u5173-\u53C2\u8003\u7B54\u6848.txt`;const An=new Blob([Pr],{type:"text/markdown"});kt.file($t,An);let Y="";(Wt=Te==null?void 0:Te[_e])!=null&&Wt.challenge_info[j].challenge_answers&&((qt=(cr=Te==null?void 0:Te[_e])==null?void 0:cr.challenge_info[j].challenge_answers)==null||qt.map((Ot,fe)=>{Y+=`\u53C2\u8003\u7B54\u6848${fe+1}:
|
|
|
${Ot}
|
|
|
|
|
|
`}));const ie=new Blob([Y],{type:"text/plain"});kt.file(yr,ie),kt.generateAsync({type:"blob"}).then(function(Ot){const fe=document.createElement("a");fe.href=window.URL.createObjectURL(Ot),fe.download=$t+".zip",document.body.appendChild(fe);const Ke=document.createEvent("MouseEvents");Ke.initEvent("click",!1,!1),fe.dispatchEvent(Ke),document.body.removeChild(fe),z(!1)})};return G.createElement("section",{className:"edu-container mt20"},G.createElement("div",{className:"tr"},G.createElement(C.ZP,{style:{marginRight:15},type:"primary",onClick:()=>{ur(!0),_(1)}}," \u6279\u91CF\u5BFC\u51FA\u5F53\u524D\u5B9E\u8BAD "),G.createElement(C.ZP,{type:"primary",style:{marginRight:15},onClick:Tr}," \u5BFC\u51FA\u5F53\u524DMD\u6587\u6863 "),G.createElement(C.ZP,{type:"primary",onClick:()=>{ur(!0),_(2)}}," \u5BFC\u51FA\u5F53\u524D\u5B9E\u8BAD ")),G.createElement("br",null),G.createElement(H.Z,{gutter:[20,20]},G.createElement(w.Z,{span:6},G.createElement("ul",{className:V.list},Te.map((Bt,Mt)=>G.createElement(G.Fragment,null,G.createElement("h1",null,Bt.shixun_name),Bt.challenge_info.map((Wt,cr)=>G.createElement("li",{onClick:()=>{ut(Mt),ee(cr)},className:Mt===_e&&cr===j&&V.on,key:cr}," ",Wt.challenge_name)))))),G.createElement(w.Z,{span:18},G.createElement("aside",{id:"export-all"},!!Te.length&&G.createElement(k.Z,{value:fr})))),G.createElement(L.default,{width:450,title:"\u8BF7\u9009\u62E9\u9700\u8981\u5BFC\u51FA\u7684\u683C\u5F0F",open:Vr,onCancel:()=>ur(!1),onOk:()=>Ue(void 0,null,function*(){var Bt,Mt;if(ve==""){B.ZP.info("\u8BF7\u9009\u62E9\u4E00\u79CD\u5BFC\u51FA\u683C\u5F0F");return}else if(ve=="pdf")le==1?Et():nr();else if(ve=="word"){let Wt=D.get("identifier"),cr=D.get("type");le==1?(0,P.Uj)({type:cr,identifier:Wt,middle_export:1,export_type:0}):(0,P.Uj)({type:cr,identifier:Wt,middle_export:1,shixun_id:(Bt=Te==null?void 0:Te[_e])==null?void 0:Bt.shixun_id,stage_id:(Mt=Te==null?void 0:Te[_e])==null?void 0:Mt.stage_id,export_type:0})}ur(!1)})},G.createElement("div",{className:V.export_type_modal},G.createElement("div",{className:V.export_type_modal_con},G.createElement("div",{className:V.type_item},G.createElement("div",{className:`${V.img_warp} ${ve=="pdf"?V.img_warp_active:""}`,onClick:()=>At("pdf")},G.createElement("img",{src:je(45614),width:70,height:70})),"pdf\u683C\u5F0F"),G.createElement("div",{className:V.type_item},G.createElement("div",{className:`${V.img_warp} ${ve=="word"?V.img_warp_active:""}`,onClick:()=>At("word")},G.createElement("img",{src:je(38347),width:70,height:70})),"word\u683C\u5F0F")))))};var st=(0,mt.connect)(({shixunsList:Pe,loading:pe,globalSetting:M})=>({shixunsList:Pe,globalSetting:M,loading:pe.models.shixunsList}))(qe)},84454:function(wn,Sr,je){"use strict";je.d(Sr,{AD:function(){return ye},BA:function(){return le},D9:function(){return _e},Hp:function(){return De},IM:function(){return Ft},Iy:function(){return Qe},KM:function(){return At},KU:function(){return wr},MJ:function(){return He},Ne:function(){return ut},ON:function(){return dn},Uj:function(){return ur},VY:function(){return Yr},YO:function(){return Vr},YX:function(){return ar},Zn:function(){return k},_g:function(){return Z},_k:function(){return j},c6:function(){return pe},cr:function(){return K},eV:function(){return M},fi:function(){return V},gh:function(){return st},hS:function(){return Vt},iA:function(){return P},j6:function(){return se},je:function(){return xe},jj:function(){return oe},kS:function(){return fr},lS:function(){return z},o6:function(){return Pe},pO:function(){return ve},rQ:function(){return Te},sA:function(){return qe},xm:function(){return ee},xo:function(){return vr},y8:function(){return me},yd:function(){return G}});var Ie=je(33270),mt=je(65582),Fe=je(65862),Me=je(6767),de=je(74128),I=Object.defineProperty,Be=Object.getOwnPropertySymbols,R=Object.prototype.hasOwnProperty,u=Object.prototype.propertyIsEnumerable,C=(_,D,ae)=>D in _?I(_,D,{enumerable:!0,configurable:!0,writable:!0,value:ae}):_[D]=ae,H=(_,D)=>{for(var ae in D||(D={}))R.call(D,ae)&&C(_,ae,D[ae]);if(Be)for(var ae of Be(D))u.call(D,ae)&&C(_,ae,D[ae]);return _},w=(_,D,ae)=>new Promise((We,ge)=>{var Se=Et=>{try{xt(ae.next(Et))}catch(nr){ge(nr)}},gt=Et=>{try{xt(ae.throw(Et))}catch(nr){ge(nr)}},xt=Et=>Et.done?We(Et.value):Promise.resolve(Et.value).then(Se,gt);xt((ae=ae.apply(_,D)).next())});const L=()=>{(0,mt.getDvaApp)()._store.dispatch({type:"globalSetting/setGlobalLoading",payload:{show:!0,text:"\u6B63\u5728\u751F\u6210\u6587\u4EF6\uFF0C\u8BF7\u7A0D\u540E..."}})},B=()=>{(0,mt.getDvaApp)()._store.dispatch({type:"globalSetting/setGlobalLoading",payload:{show:!1,text:""}})},k=_=>w(void 0,null,function*(){L(),(yield(0,Ie.YR)(H({},_))).status===0&&(yield(0,Fe.QH)("",(0,Fe.NY)({url:de.Z.API_SERVER+`/api/courses/${_.coursesId}/export_couser_info.json`,query:_}))),B()}),K=_=>w(void 0,null,function*(){const D=yield(0,Ie.yS)(H({},_));if(D.status===0)Me.ZP.info("\u5BFC\u51FA\u4EFB\u52A1\u751F\u6210\u6210\u529F"),mt.history.push(`/classrooms/${_.coursesId}/exportlist/course_member_act_score`);else{if(D.status===-2)return D;D.status===-3&&((0,mt.getDvaApp)()._store.dispatch({type:"classroomList/setActionTabs",payload:{key:"\u5BFC\u51FA\u63D0\u9192"}}),mt.history.push(`/classrooms/${_.coursesId}/exportlist/course_member_act_score`))}}),V=_=>w(void 0,null,function*(){const D=yield(0,Ie.W0)(H({},_));if(D.status===0)Me.ZP.info("\u5BFC\u51FA\u4EFB\u52A1\u751F\u6210\u6210\u529F"),mt.history.push(`/classrooms/${_.coursesId}/exportlist/course_total_score`);else{if(D.status===-4)return D;D.status===-3&&((0,mt.getDvaApp)()._store.dispatch({type:"classroomList/setActionTabs",payload:{key:"\u5BFC\u51FA\u63D0\u9192"}}),mt.history.push(`/classrooms/${_.coursesId}/exportlist/course_total_score`))}}),P=_=>w(void 0,null,function*(){const D=yield(0,Ie.Nl)(H({},_));if(D.status===0)Me.ZP.info("\u5BFC\u51FA\u4EFB\u52A1\u751F\u6210\u6210\u529F"),mt.history.push(`/classrooms/${_.coursesId}/exportlist/course_total_exercise_and_other`);else{if(D.status===-4)return D;D.status===-3&&((0,mt.getDvaApp)()._store.dispatch({type:"classroomList/setActionTabs",payload:{key:"\u5BFC\u51FA\u63D0\u9192"}}),mt.history.push(`/classrooms/${_.coursesId}/exportlist/course_total_exercise_and_other`))}}),G=_=>w(void 0,null,function*(){const D=yield(0,Ie.IU)(H({},_));if(D.status===0)Me.ZP.info("\u5BFC\u51FA\u4EFB\u52A1\u751F\u6210\u6210\u529F"),mt.history.push(`/classrooms/${_.coursesId}/exportlist/export_star_user`);else{if(D.status===-4)return D;D.status===-3&&((0,mt.getDvaApp)()._store.dispatch({type:"classroomList/setActionTabs",payload:{key:"\u5BFC\u51FA\u63D0\u9192"}}),mt.history.push(`/classrooms/${_.coursesId}/exportlist/export_star_user`))}}),Z=_=>w(void 0,null,function*(){const D=yield(0,Ie.td)(H({},_));if(D.status===0)Me.ZP.info("\u5BFC\u51FA\u4EFB\u52A1\u751F\u6210\u6210\u529F"),mt.history.push(`/classrooms/${_.coursesId}/exportlist/course_total_exercise_and_other`);else{if(D.status===-2)return D;if(D.status===-3)(0,mt.getDvaApp)()._store.dispatch({type:"classroomList/setActionTabs",payload:{key:"\u5BFC\u51FA\u63D0\u9192"}}),mt.history.push(`/classrooms/${_.coursesId}/exportlist/course_total_exercise_and_other`);else if(D.status===-4)return D}}),se=_=>w(void 0,null,function*(){const D=yield(0,Ie.QX)(H({},_));if(D.status===0)Me.ZP.info("\u5BFC\u51FA\u4EFB\u52A1\u751F\u6210\u6210\u529F"),mt.history.push(`/classrooms/${_.coursesId}/exportlist/course_total_homework`);else{if(D.status===-4)return D;D.status===-3&&((0,mt.getDvaApp)()._store.dispatch({type:"classroomList/setActionTabs",payload:{key:"\u5BFC\u51FA\u63D0\u9192"}}),mt.history.push(`/classrooms/${_.coursesId}/exportlist/course_total_homework`))}}),oe=(_,D)=>w(void 0,null,function*(){const ae=yield(0,Ie.o_)(H({},_));ae.status===0?(Me.ZP.info("\u5BFC\u51FA\u4EFB\u52A1\u751F\u6210\u6210\u529F\uFF01\u5BFC\u51FA\u540E\u6587\u4EF6\u4FDD\u5B58\u65F6\u95F4\u4E3A7\u5929\uFF0C\u8BF7\u53CA\u65F6\u4E0B\u8F7D"),mt.history.push(`/classrooms/${_.coursesId}/exportlist/${D}`)):ae.status===-3&&((0,mt.getDvaApp)()._store.dispatch({type:"classroomList/setActionTabs",payload:{key:"\u5BFC\u51FA\u63D0\u9192"}}),mt.history.push(`/classrooms/${_.coursesId}/exportlist/${D}`))}),De=(_,D)=>w(void 0,null,function*(){const ae=yield(0,Ie.ZL)(H({},_));ae.status===0?(Me.ZP.info("\u5BFC\u51FA\u4EFB\u52A1\u751F\u6210\u6210\u529F\uFF01\u5BFC\u51FA\u540E\u6587\u4EF6\u4FDD\u5B58\u65F6\u95F4\u4E3A7\u5929\uFF0C\u8BF7\u53CA\u65F6\u4E0B\u8F7D"),mt.history.push(`/classrooms/${_.coursesId}/exportlist/${D}`)):ae.status===-3&&((0,mt.getDvaApp)()._store.dispatch({type:"classroomList/setActionTabs",payload:{key:"\u5BFC\u51FA\u63D0\u9192"}}),mt.history.push(`/classrooms/${_.coursesId}/exportlist/${D}`))}),He=(_,D)=>w(void 0,null,function*(){const ae=yield(0,Ie.vV)(H({},_));ae.status===0?(Me.ZP.info("\u5BFC\u51FA\u4EFB\u52A1\u751F\u6210\u6210\u529F\uFF01\u5BFC\u51FA\u540E\u6587\u4EF6\u4FDD\u5B58\u65F6\u95F4\u4E3A7\u5929\uFF0C\u8BF7\u53CA\u65F6\u4E0B\u8F7D"),mt.history.push(`/classrooms/${_.coursesId}/exportlist/${D}`)):ae.status===-3&&((0,mt.getDvaApp)()._store.dispatch({type:"classroomList/setActionTabs",payload:{key:"\u5BFC\u51FA\u63D0\u9192"}}),mt.history.push(`/classrooms/${_.coursesId}/exportlist/${D}`))}),Qe=(_,D)=>w(void 0,null,function*(){const ae=yield(0,Ie.aP)(H({},_));ae.status===0?(Me.ZP.info("\u5BFC\u51FA\u4EFB\u52A1\u751F\u6210\u6210\u529F"),mt.history.push(`/classrooms/${_.coursesId}/exportlist/${D}`)):ae.status===-3&&((0,mt.getDvaApp)()._store.dispatch({type:"classroomList/setActionTabs",payload:{key:"\u5BFC\u51FA\u63D0\u9192"}}),mt.history.push(`/classrooms/${_.coursesId}/exportlist/${D}`))}),Ue=_=>w(void 0,null,function*(){L(),(yield exportCourseWorkListAppendix(H({},_))).status===0&&(yield downLoadFileIframe("",setUrlQuery({url:ENV.API_SERVER+`/api/homework_commons/${_.categoryId}/works_list.zip`,query:_}))),B()}),qe=_=>w(void 0,null,function*(){L(),yield(0,Fe.FH)("",de.Z.API_SERVER+`/api/polls/${_.categoryId}/commit_result.xlsx`),B()}),st=_=>w(void 0,null,function*(){yield(0,Fe.FH)("",(0,Fe.NY)({url:de.Z.API_SERVER+`/api/courses/${_.coursesId}/attendances/export_xlsx_data.xlsx`,query:_}))}),Pe=_=>w(void 0,null,function*(){yield(0,Fe.FH)("",(0,Fe.NY)({url:de.Z.API_SERVER+`/api/courses/${_.coursesId}/video_study_statics.xlsx`,query:_}))}),pe=_=>w(void 0,null,function*(){yield(0,Fe.FH)("",(0,Fe.NY)({url:de.Z.API_SERVER+`/api/courses/${_.coursesId}/export_video_study.xlsx`,query:_}))}),M=_=>w(void 0,null,function*(){yield(0,Fe.FH)("",(0,Fe.NY)({url:de.Z.API_SERVER+`/api/courses/${_.coursesId}/export_course_students_info.xlsx`,query:_}))}),ye=_=>w(void 0,null,function*(){yield(0,Fe.FH)("",(0,Fe.NY)({url:de.Z.API_SERVER+"/api/school_manages/students.xlsx",query:_}))}),Te=_=>w(void 0,null,function*(){yield(0,Fe.FH)("",(0,Fe.NY)({url:de.Z.API_SERVER+"/api/item_banks/export.xlsx",query:_}))}),me=_=>w(void 0,null,function*(){yield(0,Fe.FH)("",(0,Fe.NY)({url:de.Z.API_SERVER+"/api/competitions/region_reports.xlsx",query:_}))}),xe=_=>w(void 0,null,function*(){const D=yield(0,Ie.Uy)(H({},_));D.status===0?(Me.ZP.info("\u5BFC\u51FA\u4EFB\u52A1\u751F\u6210\u6210\u529F"),mt.history.push(`/classrooms/${_.coursesId}/exportlist/exercise_score,export_exercise_users`)):D.status===-3&&((0,mt.getDvaApp)()._store.dispatch({type:"classroomList/setActionTabs",payload:{key:"\u5BFC\u51FA\u63D0\u9192"}}),mt.history.push(`/classrooms/${_.coursesId}/exportlist/exercise_score,export_exercise_users`))}),z=_=>w(void 0,null,function*(){const D=yield(0,Ie.tg)(H({},_));D.status===0?(Me.ZP.info("\u5BFC\u51FA\u4EFB\u52A1\u751F\u6210\u6210\u529F"),mt.history.push(`/classrooms/${_.coursesId}/exportlist/exercise_score,export_exercise_report`)):D.status===-3&&((0,mt.getDvaApp)()._store.dispatch({type:"classroomList/setActionTabs",payload:{key:"\u5BFC\u51FA\u63D0\u9192"}}),mt.history.push(`/classrooms/${_.coursesId}/exportlist/exercise_score,export_exercise_report`))}),j=_=>w(void 0,null,function*(){console.log("----------","\u8C03\u7528\u4E0B\u8F7D"),yield(0,Fe.FH)("",(0,Fe.NY)({url:de.Z.API_SERVER+`/api/export_records/${_.id}.xlsx`,query:_}))}),ee=_=>w(void 0,null,function*(){yield(0,Fe.FH)("",(0,Fe.NY)({url:de.Z.API_SERVER+"/api/ec_major_schools/0/ec_years.xlsx",query:_}))}),_e=_=>w(void 0,null,function*(){yield(0,Fe.FH)("",(0,Fe.NY)({url:de.Z.API_SERVER+`/api/courses/${_==null?void 0:_.coursesId}/${_.menuKey}_statistic.xlsx?${_.checkedList.map(D=>`course_group_id[]=${D}`).join("&")}`,query:_}))}),ut=_=>w(void 0,null,function*(){yield(0,Fe.FH)("",(0,Fe.NY)({url:de.Z.API_SERVER+`/api/ec_years/${_==null?void 0:_.ec_year_id}/ec_training_objectives.xlsx`,query:_}))}),Ft=_=>w(void 0,null,function*(){yield(0,Fe.FH)(_==null?void 0:_.name,(0,Fe.NY)({url:de.Z.API_SERVER+"/api/attachments/get_ecs_attachment.docx",query:_}))}),Vt=_=>w(void 0,null,function*(){yield(0,Fe.FH)("",(0,Fe.NY)({url:de.Z.API_SERVER+`/api/ec_years/${_==null?void 0:_.ec_year_id}/ec_courses.xlsx`,query:_}))}),vr=_=>w(void 0,null,function*(){yield(0,Fe.FH)("",(0,Fe.NY)({url:de.Z.API_SERVER+`/api/ec_years/${_==null?void 0:_.ec_year_id}/ec_graduation_requirements.xlsx`,query:_}))}),Yr=_=>w(void 0,null,function*(){yield(0,Fe.FH)("",(0,Fe.NY)({url:de.Z.API_SERVER+"/api/courses/rank_list.xlsx",query:_}))}),wr=_=>w(void 0,null,function*(){yield(0,Fe.FH)("",(0,Fe.NY)({url:de.Z.API_SERVER+`/api/exercises/${_.categoryId}/rank_list.xlsx`,query:_}))}),fr=_=>w(void 0,null,function*(){yield(0,Fe.FH)("",(0,Fe.NY)({url:de.Z.API_SERVER+"/api/courses/question_rank_list.xlsx",query:_}))}),dn=_=>w(void 0,null,function*(){yield(0,Fe.FH)("",(0,Fe.NY)({url:de.Z.API_SERVER+`/api/examination_banks/${_.id}.json`,query:_}))}),ar=_=>w(void 0,null,function*(){yield(0,Fe.FH)("",(0,Fe.NY)({url:de.Z.API_SERVER+`/api/exercises/${_.categoryId}.json`,query:_}))}),Vr=_=>w(void 0,null,function*(){yield(0,Fe.FH)("",(0,Fe.NY)({url:de.Z.API_SERVER+`/api/polls/${_==null?void 0:_.id}/commit_result.json`,query:_}))}),ur=_=>w(void 0,null,function*(){yield(0,Fe.FH)("",(0,Fe.NY)({url:de.Z.API_SERVER+"/api/paths/get_task_pass.json",query:_}))}),ve=(_,D)=>w(void 0,null,function*(){yield(0,Fe.FH)(D||"",(0,Fe.NY)({url:de.Z.API_SERVER+`/api/exercises/${_==null?void 0:_.exercise_id}/consult_exercise.json`,query:_}))}),At=_=>w(void 0,null,function*(){yield(0,Fe.FH)("",(0,Fe.NY)({url:de.Z.API_SERVER+`/api/competitions/${_==null?void 0:_.identifier}/competition_commit_records/member_works.xlsx`,query:_}))}),le=_=>w(void 0,null,function*(){yield(0,Fe.FH)("",(0,Fe.NY)({url:de.Z.API_SERVER+`/api/courses/${_==null?void 0:_.coursesId}/group_homeworks/import_group_template.xlsx`,query:_}))})},49142:function(wn,Sr,je){"use strict";je.d(Sr,{AL:function(){return se},Iy:function(){return H},Qv:function(){return B},ez:function(){return Z},jb:function(){return w}});var Ie=je(32834),mt=je.n(Ie),Fe=je(11690),Me=je.n(Fe);let de=1;function I(Ue,qe){const st=Ue.match(/^(\s+)(?:```)/);if(st===null)return qe;const Pe=st[1];return qe.split(`
|
|
|
`).map(pe=>{const M=pe.match(/^\s+/);if(M===null)return pe;const[ye]=M;return ye.length>=Pe.length?pe.slice(Pe.length):pe}).join(`
|
|
|
`)}let Be=[],R=["<ul>"];const u=new(mt()).Renderer,C=/^ *(#{1,6}) *([^\n]+?) *(?:#+ *)?(?:\n+|$)/;function H(){Be.length=0,R=["<ul>"]}const w={overflow:"hidden",WebkitBoxOrient:"vertical",display:"-webkit-box",WebkitLineClamp:2};function L(Ue,qe,st,Pe){if(qe>=Ue.length||Ue[qe].level<=st)return qe;var pe=Ue[qe];Pe.push("<li><a href='#"+de+pe.anchor+"'>"+pe.text+"</a>"),qe++;var M=[];return qe=L(Ue,qe,pe.level,M),M.length>0&&(Pe.push("<ul>"),M.forEach(function(ye){Pe.push(ye)}),Pe.push("</ul>")),Pe.push("</li>"),qe=L(Ue,qe,st,Pe),qe}function B(){return L(Be,0,0,R),R.push("</ul>"),R.join("")}const k={heading(Ue){const qe=C.exec(Ue);if(de+=1,qe)return{type:"heading",raw:qe[0],depth:qe[1].length,text:qe[2]}},fences(Ue){const qe=this.rules.block.fences.exec(Ue);if(qe){const st=qe[0];let Pe=I(st,qe[3]||"");const pe=qe[2]?qe[2].trim():qe[2];if(["latex","katex","math"].indexOf(pe)>=0){const M=P(),ye=Pe;Pe=M,G[M]={type:"block",expression:ye}}return{type:"code",raw:st,lang:pe,text:Pe}}}},K=/(?:\${2})([^\n`]+?)(?:\${2})/gi;let V=0;const P=()=>`__special_katext_id_${V++}__`;let G={};function Z(){return G}function se(){V=0,G={}}function oe(Ue){return Ue=Ue.replace(K,(qe,st)=>{const Pe=P();return G[Pe]={type:"inline",expression:st},Pe}),Ue}const De=u.listitem;u.listitem=function(Ue){return De(oe(Ue))};const He=u.paragraph;u.paragraph=function(Ue){return He(oe(Ue))};const Qe=u.tablecell;u.tablecell=function(Ue,qe){return Qe(oe(Ue),qe)},u.code=function(Ue,qe,st){const Pe=(qe||"").match(/\S*/)[0];return Pe?["latex","katex","math"].indexOf(Pe)>=0?`<p class='editormd-tex'>${Ue}</p>`:`<pre class="prettyprint linenums"><code class="language-${qe}">${st?Ue:(0,Fe.escape)(Ue,!0)}</code></pre>
|
|
|
`:'<pre class="prettyprint linenums"><code>'+(st?Ue:(0,Fe.escape)(Ue,!0))+"</code></pre>"},u.heading=function(Ue,qe,st){let Pe=this.options.headerPrefix+st.toLowerCase().replace(/[^\w\\u4e00-\\u9fa5]]+/g,"-");return Be.push({anchor:Pe,level:qe,text:Ue}),"<h"+qe+' id="'+de+Pe+'">'+Ue+"</h"+qe+">"},mt().setOptions({silent:!0,gfm:!0,pedantic:!1}),mt().use({tokenizer:k,renderer:u}),Sr.ZP=mt()},29509:function(wn,Sr,je){"use strict";je.d(Sr,{o2:function(){return de},yT:function(){return I}});var Ie=je(94480),mt=je(34998);const Fe=mt.i.map(Be=>`${Be}-inverse`),Me=["success","processing","error","default","warning"];function de(Be){return(arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0)?[].concat((0,Ie.Z)(Fe),(0,Ie.Z)(mt.i)).includes(Be):mt.i.includes(Be)}function I(Be){return Me.includes(Be)}},99402:function(wn,Sr,je){"use strict";je.d(Sr,{T:function(){return mt},n:function(){return Ie}});function Ie(Fe){return["small","middle","large"].includes(Fe)}function mt(Fe){return Fe?typeof Fe=="number"&&!Number.isNaN(Fe):!1}},52838:function(wn,Sr,je){"use strict";je.d(Sr,{Z:function(){return I}});var Ie=je(37645);function mt(Be,R,u,C){if(C===!1)return{adjustX:!1,adjustY:!1};const H=C&&typeof C=="object"?C:{},w={};switch(Be){case"top":case"bottom":w.shiftX=R.arrowOffsetHorizontal*2+u,w.shiftY=!0,w.adjustY=!0;break;case"left":case"right":w.shiftY=R.arrowOffsetVertical*2+u,w.shiftX=!0,w.adjustX=!0;break}const L=Object.assign(Object.assign({},w),H);return L.shiftX||(L.adjustX=!0),L.shiftY||(L.adjustY=!0),L}const Fe={left:{points:["cr","cl"]},right:{points:["cl","cr"]},top:{points:["bc","tc"]},bottom:{points:["tc","bc"]},topLeft:{points:["bl","tl"]},leftTop:{points:["tr","tl"]},topRight:{points:["br","tr"]},rightTop:{points:["tl","tr"]},bottomRight:{points:["tr","br"]},rightBottom:{points:["bl","br"]},bottomLeft:{points:["tl","bl"]},leftBottom:{points:["br","bl"]}},Me={topLeft:{points:["bl","tc"]},leftTop:{points:["tr","cl"]},topRight:{points:["br","tc"]},rightTop:{points:["tl","cr"]},bottomRight:{points:["tr","bc"]},rightBottom:{points:["bl","cr"]},bottomLeft:{points:["tl","bc"]},leftBottom:{points:["br","cl"]}},de=new Set(["topLeft","topRight","bottomLeft","bottomRight","leftTop","leftBottom","rightTop","rightBottom"]);function I(Be){const{arrowWidth:R,autoAdjustOverflow:u,arrowPointAtCenter:C,offset:H,borderRadius:w,visibleFirst:L}=Be,B=R/2,k={};return Object.keys(Fe).forEach(K=>{const V=C&&Me[K]||Fe[K],P=Object.assign(Object.assign({},V),{offset:[0,0],dynamicInset:!0});switch(k[K]=P,de.has(K)&&(P.autoArrow=!1),K){case"top":case"topLeft":case"topRight":P.offset[1]=-B-H;break;case"bottom":case"bottomLeft":case"bottomRight":P.offset[1]=B+H;break;case"left":case"leftTop":case"leftBottom":P.offset[0]=-B-H;break;case"right":case"rightTop":case"rightBottom":P.offset[0]=B+H;break}const G=(0,Ie.wZ)({contentRadius:w,limitVerticalRadius:!0});if(C)switch(K){case"topLeft":case"bottomLeft":P.offset[0]=-G.arrowOffsetHorizontal-B;break;case"topRight":case"bottomRight":P.offset[0]=G.arrowOffsetHorizontal+B;break;case"leftTop":case"rightTop":P.offset[1]=-G.arrowOffsetHorizontal*2+B;break;case"leftBottom":case"rightBottom":P.offset[1]=G.arrowOffsetHorizontal*2-B;break}P.overflow=mt(K,G,R,u),L&&(P.htmlRegion="visibleFirst")}),k}},44104:function(wn,Sr,je){"use strict";je.d(Sr,{Z:function(){return K}});var Ie=je(59301),mt=je(92310),Fe=je.n(mt),Me=je(11592),de=je(99402),I=je(48755),Be=je(70045);const R=Ie.createContext({latestIndex:0}),u=R.Provider;var H=V=>{let{className:P,index:G,children:Z,split:se,style:oe}=V;const{latestIndex:De}=Ie.useContext(R);return Z==null?null:Ie.createElement(Ie.Fragment,null,Ie.createElement("div",{className:P,style:oe},Z),G<De&&se&&Ie.createElement("span",{className:`${P}-split`},se))},w=je(31547),L=function(V,P){var G={};for(var Z in V)Object.prototype.hasOwnProperty.call(V,Z)&&P.indexOf(Z)<0&&(G[Z]=V[Z]);if(V!=null&&typeof Object.getOwnPropertySymbols=="function")for(var se=0,Z=Object.getOwnPropertySymbols(V);se<Z.length;se++)P.indexOf(Z[se])<0&&Object.prototype.propertyIsEnumerable.call(V,Z[se])&&(G[Z[se]]=V[Z[se]]);return G};const k=Ie.forwardRef((V,P)=>{var G;const{getPrefixCls:Z,direction:se,size:oe,className:De,style:He,classNames:Qe,styles:Ue}=(0,I.dj)("space"),{size:qe=oe!=null?oe:"small",align:st,className:Pe,rootClassName:pe,children:M,direction:ye="horizontal",prefixCls:Te,split:me,style:xe,wrap:z=!1,classNames:j,styles:ee}=V,_e=L(V,["size","align","className","rootClassName","children","direction","prefixCls","split","style","wrap","classNames","styles"]),[ut,Ft]=Array.isArray(qe)?qe:[qe,qe],Vt=(0,de.n)(Ft),vr=(0,de.n)(ut),Yr=(0,de.T)(Ft),wr=(0,de.T)(ut),fr=(0,Me.Z)(M,{keepEmpty:!0}),dn=st===void 0&&ye==="horizontal"?"center":st,ar=Z("space",Te),[Vr,ur,ve]=(0,w.Z)(ar),At=Fe()(ar,De,ur,`${ar}-${ye}`,{[`${ar}-rtl`]:se==="rtl",[`${ar}-align-${dn}`]:dn,[`${ar}-gap-row-${Ft}`]:Vt,[`${ar}-gap-col-${ut}`]:vr},Pe,pe,ve),le=Fe()(`${ar}-item`,(G=j==null?void 0:j.item)!==null&&G!==void 0?G:Qe.item);let _=0;const D=fr.map((ge,Se)=>{var gt;ge!=null&&(_=Se);const xt=(ge==null?void 0:ge.key)||`${le}-${Se}`;return Ie.createElement(H,{className:le,key:xt,index:Se,split:me,style:(gt=ee==null?void 0:ee.item)!==null&>!==void 0?gt:Ue.item},ge)}),ae=Ie.useMemo(()=>({latestIndex:_}),[_]);if(fr.length===0)return null;const We={};return z&&(We.flexWrap="wrap"),!vr&&wr&&(We.columnGap=ut),!Vt&&Yr&&(We.rowGap=Ft),Vr(Ie.createElement("div",Object.assign({ref:P,className:At,style:Object.assign(Object.assign(Object.assign({},We),He),xe)},_e),Ie.createElement(u,{value:ae},D)))});k.Compact=Be.ZP;var K=k},37645:function(wn,Sr,je){"use strict";je.d(Sr,{ZP:function(){return I},qN:function(){return Fe},wZ:function(){return Me}});var Ie=je(36237),mt=je(36305);const Fe=8;function Me(Be){const{contentRadius:R,limitVerticalRadius:u}=Be,C=R>12?R+2:12;return{arrowOffsetHorizontal:C,arrowOffsetVertical:u?Fe:C}}function de(Be,R){return Be?R:{}}function I(Be,R,u){const{componentCls:C,boxShadowPopoverArrow:H,arrowOffsetVertical:w,arrowOffsetHorizontal:L}=Be,{arrowDistance:B=0,arrowPlacement:k={left:!0,right:!0,top:!0,bottom:!0}}=u||{};return{[C]:Object.assign(Object.assign(Object.assign(Object.assign({[`${C}-arrow`]:[Object.assign(Object.assign({position:"absolute",zIndex:1,display:"block"},(0,mt.W)(Be,R,H)),{"&:before":{background:R}})]},de(!!k.top,{[[`&-placement-top > ${C}-arrow`,`&-placement-topLeft > ${C}-arrow`,`&-placement-topRight > ${C}-arrow`].join(",")]:{bottom:B,transform:"translateY(100%) rotate(180deg)"},[`&-placement-top > ${C}-arrow`]:{left:{_skip_check_:!0,value:"50%"},transform:"translateX(-50%) translateY(100%) rotate(180deg)"},"&-placement-topLeft":{"--arrow-offset-horizontal":L,[`> ${C}-arrow`]:{left:{_skip_check_:!0,value:L}}},"&-placement-topRight":{"--arrow-offset-horizontal":`calc(100% - ${(0,Ie.unit)(L)})`,[`> ${C}-arrow`]:{right:{_skip_check_:!0,value:L}}}})),de(!!k.bottom,{[[`&-placement-bottom > ${C}-arrow`,`&-placement-bottomLeft > ${C}-arrow`,`&-placement-bottomRight > ${C}-arrow`].join(",")]:{top:B,transform:"translateY(-100%)"},[`&-placement-bottom > ${C}-arrow`]:{left:{_skip_check_:!0,value:"50%"},transform:"translateX(-50%) translateY(-100%)"},"&-placement-bottomLeft":{"--arrow-offset-horizontal":L,[`> ${C}-arrow`]:{left:{_skip_check_:!0,value:L}}},"&-placement-bottomRight":{"--arrow-offset-horizontal":`calc(100% - ${(0,Ie.unit)(L)})`,[`> ${C}-arrow`]:{right:{_skip_check_:!0,value:L}}}})),de(!!k.left,{[[`&-placement-left > ${C}-arrow`,`&-placement-leftTop > ${C}-arrow`,`&-placement-leftBottom > ${C}-arrow`].join(",")]:{right:{_skip_check_:!0,value:B},transform:"translateX(100%) rotate(90deg)"},[`&-placement-left > ${C}-arrow`]:{top:{_skip_check_:!0,value:"50%"},transform:"translateY(-50%) translateX(100%) rotate(90deg)"},[`&-placement-leftTop > ${C}-arrow`]:{top:w},[`&-placement-leftBottom > ${C}-arrow`]:{bottom:w}})),de(!!k.right,{[[`&-placement-right > ${C}-arrow`,`&-placement-rightTop > ${C}-arrow`,`&-placement-rightBottom > ${C}-arrow`].join(",")]:{left:{_skip_check_:!0,value:B},transform:"translateX(-100%) rotate(-90deg)"},[`&-placement-right > ${C}-arrow`]:{top:{_skip_check_:!0,value:"50%"},transform:"translateY(-50%) translateX(-100%) rotate(-90deg)"},[`&-placement-rightTop > ${C}-arrow`]:{top:w},[`&-placement-rightBottom > ${C}-arrow`]:{bottom:w}}))}}},36305:function(wn,Sr,je){"use strict";je.d(Sr,{W:function(){return Fe},w:function(){return mt}});var Ie=je(36237);function mt(Me){const{sizePopupArrow:de,borderRadiusXS:I,borderRadiusOuter:Be}=Me,R=de/2,u=0,C=R,H=Be*1/Math.sqrt(2),w=R-Be*(1-1/Math.sqrt(2)),L=R-I*(1/Math.sqrt(2)),B=Be*(Math.sqrt(2)-1)+I*(1/Math.sqrt(2)),k=2*R-L,K=B,V=2*R-H,P=w,G=2*R-u,Z=C,se=R*Math.sqrt(2)+Be*(Math.sqrt(2)-2),oe=Be*(Math.sqrt(2)-1),De=`polygon(${oe}px 100%, 50% ${oe}px, ${2*R-oe}px 100%, ${oe}px 100%)`,He=`path('M ${u} ${C} A ${Be} ${Be} 0 0 0 ${H} ${w} L ${L} ${B} A ${I} ${I} 0 0 1 ${k} ${K} L ${V} ${P} A ${Be} ${Be} 0 0 0 ${G} ${Z} Z')`;return{arrowShadowWidth:se,arrowPath:He,arrowPolygon:De}}const Fe=(Me,de,I)=>{const{sizePopupArrow:Be,arrowPolygon:R,arrowPath:u,arrowShadowWidth:C,borderRadiusXS:H,calc:w}=Me;return{pointerEvents:"none",width:Be,height:Be,overflow:"hidden","&::before":{position:"absolute",bottom:0,insetInlineStart:0,width:Be,height:w(Be).div(2).equal(),background:de,clipPath:{_multi_value_:!0,value:[R,u]},content:'""'},"&::after":{content:'""',position:"absolute",width:C,height:C,bottom:0,insetInline:0,margin:"auto",borderRadius:{_skip_check_:!0,value:`0 0 ${(0,Ie.unit)(H)} 0`},transform:"translateY(50%) rotate(-135deg)",boxShadow:I,zIndex:0,background:"transparent"}}}},93427:function(wn,Sr,je){"use strict";je.d(Sr,{Z:function(){return mt}});var Ie=je(34998);function mt(Fe,Me){return Ie.i.reduce((de,I)=>{const Be=Fe[`${I}1`],R=Fe[`${I}3`],u=Fe[`${I}6`],C=Fe[`${I}7`];return Object.assign(Object.assign({},de),Me(I,{lightColor:Be,lightBorderColor:R,darkColor:u,textColor:C}))},{})}},25399:function(wn,Sr,je){"use strict";je.d(Sr,{Z:function(){return Te}});var Ie=je(59301),mt=je(92310),Fe=je.n(mt),Me=je(29125),de=je(18929),I=je(62487),Be=je(75030),R=je(86641),u=je(52838),C=je(22703),H=je(32383),w=je(55743),L=je(57700),B=je(48755),k=je(36237),K=je(63356),V=je(34925),P=je(37645),G=je(36305),Z=je(93427),se=je(51636),oe=je(16931);const De=me=>{const{calc:xe,componentCls:z,tooltipMaxWidth:j,tooltipColor:ee,tooltipBg:_e,tooltipBorderRadius:ut,zIndexPopup:Ft,controlHeight:Vt,boxShadowSecondary:vr,paddingSM:Yr,paddingXS:wr,arrowOffsetHorizontal:fr,sizePopupArrow:dn}=me,ar=xe(ut).add(dn).add(fr).equal(),Vr=xe(ut).mul(2).add(dn).equal();return[{[z]:Object.assign(Object.assign(Object.assign(Object.assign({},(0,K.Wf)(me)),{position:"absolute",zIndex:Ft,display:"block",width:"max-content",maxWidth:j,visibility:"visible","--valid-offset-x":"var(--arrow-offset-horizontal, var(--arrow-x))",transformOrigin:["var(--valid-offset-x, 50%)","var(--arrow-y, 50%)"].join(" "),"&-hidden":{display:"none"},"--antd-arrow-background-color":_e,[`${z}-inner`]:{minWidth:Vr,minHeight:Vt,padding:`${(0,k.unit)(me.calc(Yr).div(2).equal())} ${(0,k.unit)(wr)}`,color:ee,textAlign:"start",textDecoration:"none",wordWrap:"break-word",backgroundColor:_e,borderRadius:ut,boxShadow:vr,boxSizing:"border-box"},[["&-placement-topLeft","&-placement-topRight","&-placement-bottomLeft","&-placement-bottomRight"].join(",")]:{minWidth:ar},[["&-placement-left","&-placement-leftTop","&-placement-leftBottom","&-placement-right","&-placement-rightTop","&-placement-rightBottom"].join(",")]:{[`${z}-inner`]:{borderRadius:me.min(ut,P.qN)}},[`${z}-content`]:{position:"relative"}}),(0,Z.Z)(me,(ur,ve)=>{let{darkColor:At}=ve;return{[`&${z}-${ur}`]:{[`${z}-inner`]:{backgroundColor:At},[`${z}-arrow`]:{"--antd-arrow-background-color":At}}}})),{"&-rtl":{direction:"rtl"}})},(0,P.ZP)(me,"var(--antd-arrow-background-color)"),{[`${z}-pure`]:{position:"relative",maxWidth:"none",margin:me.sizePopupArrow}}]},He=me=>Object.assign(Object.assign({zIndexPopup:me.zIndexPopupBase+70},(0,P.wZ)({contentRadius:me.borderRadius,limitVerticalRadius:!0})),(0,G.w)((0,se.mergeToken)(me,{borderRadiusOuter:Math.min(me.borderRadiusOuter,4)})));var Qe=function(me){let xe=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0;return(0,oe.I$)("Tooltip",j=>{const{borderRadius:ee,colorTextLightSolid:_e,colorBgSpotlight:ut}=j,Ft=(0,se.mergeToken)(j,{tooltipMaxWidth:250,tooltipColor:_e,tooltipBorderRadius:ee,tooltipBg:ut});return[De(Ft),(0,V._y)(j,"zoom-big-fast")]},He,{resetStyle:!1,injectStyle:xe})(me)},Ue=je(29509);function qe(me,xe){const z=(0,Ue.o2)(xe),j=Fe()({[`${me}-${xe}`]:xe&&z}),ee={},_e={};return xe&&!z&&(ee.background=xe,_e["--antd-arrow-background-color"]=xe),{className:j,overlayStyle:ee,arrowStyle:_e}}var Pe=me=>{const{prefixCls:xe,className:z,placement:j="top",title:ee,color:_e,overlayInnerStyle:ut}=me,{getPrefixCls:Ft}=Ie.useContext(B.E_),Vt=Ft("tooltip",xe),[vr,Yr,wr]=Qe(Vt),fr=qe(Vt,_e),dn=fr.arrowStyle,ar=Object.assign(Object.assign({},ut),fr.overlayStyle),Vr=Fe()(Yr,wr,Vt,`${Vt}-pure`,`${Vt}-placement-${j}`,z,fr.className);return vr(Ie.createElement("div",{className:Vr,style:dn},Ie.createElement("div",{className:`${Vt}-arrow`}),Ie.createElement(Me.G,Object.assign({},me,{className:Yr,prefixCls:Vt,overlayInnerStyle:ar}),ee)))},pe=function(me,xe){var z={};for(var j in me)Object.prototype.hasOwnProperty.call(me,j)&&xe.indexOf(j)<0&&(z[j]=me[j]);if(me!=null&&typeof Object.getOwnPropertySymbols=="function")for(var ee=0,j=Object.getOwnPropertySymbols(me);ee<j.length;ee++)xe.indexOf(j[ee])<0&&Object.prototype.propertyIsEnumerable.call(me,j[ee])&&(z[j[ee]]=me[j[ee]]);return z};const ye=Ie.forwardRef((me,xe)=>{var z,j;const{prefixCls:ee,openClassName:_e,getTooltipContainer:ut,color:Ft,overlayInnerStyle:Vt,children:vr,afterOpenChange:Yr,afterVisibleChange:wr,destroyTooltipOnHide:fr,arrow:dn=!0,title:ar,overlay:Vr,builtinPlacements:ur,arrowPointAtCenter:ve=!1,autoAdjustOverflow:At=!0,motion:le,getPopupContainer:_,placement:D="top",mouseEnterDelay:ae=.1,mouseLeaveDelay:We=.1,overlayStyle:ge,rootClassName:Se,overlayClassName:gt,styles:xt,classNames:Et}=me,nr=pe(me,["prefixCls","openClassName","getTooltipContainer","color","overlayInnerStyle","children","afterOpenChange","afterVisibleChange","destroyTooltipOnHide","arrow","title","overlay","builtinPlacements","arrowPointAtCenter","autoAdjustOverflow","motion","getPopupContainer","placement","mouseEnterDelay","mouseLeaveDelay","overlayStyle","rootClassName","overlayClassName","styles","classNames"]),xr=!!dn,[,Tr]=(0,L.ZP)(),{getPopupContainer:Bt,getPrefixCls:Mt,direction:Wt,className:cr,style:qt,classNames:kt,styles:Pr}=(0,B.dj)("tooltip"),$t=(0,H.ln)("Tooltip"),yr=Ie.useRef(null),An=()=>{var $i;($i=yr.current)===null||$i===void 0||$i.forceAlign()};Ie.useImperativeHandle(xe,()=>{var $i,Ui;return{forceAlign:An,forcePopupAlign:()=>{$t.deprecated(!1,"forcePopupAlign","forceAlign"),An()},nativeElement:($i=yr.current)===null||$i===void 0?void 0:$i.nativeElement,popupElement:(Ui=yr.current)===null||Ui===void 0?void 0:Ui.popupElement}});const[Y,ie]=(0,de.Z)(!1,{value:(z=me.open)!==null&&z!==void 0?z:me.visible,defaultValue:(j=me.defaultOpen)!==null&&j!==void 0?j:me.defaultVisible}),Ot=!ar&&!Vr&&ar!==0,fe=$i=>{var Ui,mn;ie(Ot?!1:$i),Ot||((Ui=me.onOpenChange)===null||Ui===void 0||Ui.call(me,$i),(mn=me.onVisibleChange)===null||mn===void 0||mn.call(me,$i))},Ke=Ie.useMemo(()=>{var $i,Ui;let mn=ve;return typeof dn=="object"&&(mn=(Ui=($i=dn.pointAtCenter)!==null&&$i!==void 0?$i:dn.arrowPointAtCenter)!==null&&Ui!==void 0?Ui:ve),ur||(0,u.Z)({arrowPointAtCenter:mn,autoAdjustOverflow:At,arrowWidth:xr?Tr.sizePopupArrow:0,borderRadius:Tr.borderRadius,offset:Tr.marginXXS,visibleFirst:!0})},[ve,dn,ur,Tr]),Wr=Ie.useMemo(()=>ar===0?ar:Vr||ar||"",[Vr,ar]),ct=Ie.createElement(I.Z,{space:!0},typeof Wr=="function"?Wr():Wr),Dt=Mt("tooltip",ee),Kt=Mt(),Oe=me["data-popover-inject"];let Ve=Y;!("open"in me)&&!("visible"in me)&&Ot&&(Ve=!1);const at=Ie.isValidElement(vr)&&!(0,C.M2)(vr)?vr:Ie.createElement("span",null,vr),Pt=at.props,Le=!Pt.className||typeof Pt.className=="string"?Fe()(Pt.className,_e||`${Dt}-open`):Pt.className,[Kr,ht,Sn]=Qe(Dt,!Oe),Bn=qe(Dt,Ft),ri=Bn.arrowStyle,ws=Fe()(gt,{[`${Dt}-rtl`]:Wt==="rtl"},Bn.className,Se,ht,Sn,cr,kt.root,Et==null?void 0:Et.root),Ci=Fe()(kt.body,Et==null?void 0:Et.body),[Kn,Is]=(0,Be.Cn)("Tooltip",nr.zIndex),Aa=Ie.createElement(Me.Z,Object.assign({},nr,{zIndex:Kn,showArrow:xr,placement:D,mouseEnterDelay:ae,mouseLeaveDelay:We,prefixCls:Dt,classNames:{root:ws,body:Ci},styles:{root:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},ri),Pr.root),qt),ge),xt==null?void 0:xt.root),body:Object.assign(Object.assign(Object.assign(Object.assign({},Pr.body),Vt),xt==null?void 0:xt.body),Bn.overlayStyle)},getTooltipContainer:_||ut||Bt,ref:yr,builtinPlacements:Ke,overlay:ct,visible:Ve,onVisibleChange:fe,afterVisibleChange:Yr!=null?Yr:wr,arrowContent:Ie.createElement("span",{className:`${Dt}-arrow-content`}),motion:{motionName:(0,R.m)(Kt,"zoom-big-fast",me.transitionName),motionDeadline:1e3},destroyTooltipOnHide:!!fr}),Ve?(0,C.Tm)(at,{className:Le}):at);return Kr(Ie.createElement(w.Z.Provider,{value:Is},Aa))});ye._InternalPanelDoNotUseOrYouWillBeFired=Pe;var Te=ye},86251:function(wn,Sr){"use strict";Sr.byteLength=Be,Sr.toByteArray=u,Sr.fromByteArray=w;for(var je=[],Ie=[],mt=typeof Uint8Array!="undefined"?Uint8Array:Array,Fe="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",Me=0,de=Fe.length;Me<de;++Me)je[Me]=Fe[Me],Ie[Fe.charCodeAt(Me)]=Me;Ie[45]=62,Ie[95]=63;function I(L){var B=L.length;if(B%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var k=L.indexOf("=");k===-1&&(k=B);var K=k===B?0:4-k%4;return[k,K]}function Be(L){var B=I(L),k=B[0],K=B[1];return(k+K)*3/4-K}function R(L,B,k){return(B+k)*3/4-k}function u(L){var B,k=I(L),K=k[0],V=k[1],P=new mt(R(L,K,V)),G=0,Z=V>0?K-4:K,se;for(se=0;se<Z;se+=4)B=Ie[L.charCodeAt(se)]<<18|Ie[L.charCodeAt(se+1)]<<12|Ie[L.charCodeAt(se+2)]<<6|Ie[L.charCodeAt(se+3)],P[G++]=B>>16&255,P[G++]=B>>8&255,P[G++]=B&255;return V===2&&(B=Ie[L.charCodeAt(se)]<<2|Ie[L.charCodeAt(se+1)]>>4,P[G++]=B&255),V===1&&(B=Ie[L.charCodeAt(se)]<<10|Ie[L.charCodeAt(se+1)]<<4|Ie[L.charCodeAt(se+2)]>>2,P[G++]=B>>8&255,P[G++]=B&255),P}function C(L){return je[L>>18&63]+je[L>>12&63]+je[L>>6&63]+je[L&63]}function H(L,B,k){for(var K,V=[],P=B;P<k;P+=3)K=(L[P]<<16&16711680)+(L[P+1]<<8&65280)+(L[P+2]&255),V.push(C(K));return V.join("")}function w(L){for(var B,k=L.length,K=k%3,V=[],P=16383,G=0,Z=k-K;G<Z;G+=P)V.push(H(L,G,G+P>Z?Z:G+P));return K===1?(B=L[k-1],V.push(je[B>>2]+je[B<<4&63]+"==")):K===2&&(B=(L[k-2]<<8)+L[k-1],V.push(je[B>>10]+je[B>>4&63]+je[B<<2&63]+"=")),V.join("")}},19208:function(wn,Sr,je){"use strict";var Ie;var mt=je(86251),Fe=je(67467),Me=typeof Symbol=="function"&&typeof Symbol.for=="function"?Symbol.for("nodejs.util.inspect.custom"):null;Sr.lW=R,Ie=G,Sr.h2=50;var de=2147483647;Ie=de,R.TYPED_ARRAY_SUPPORT=I(),!R.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 I(){try{var le=new Uint8Array(1),_={foo:function(){return 42}};return Object.setPrototypeOf(_,Uint8Array.prototype),Object.setPrototypeOf(le,_),le.foo()===42}catch(D){return!1}}Object.defineProperty(R.prototype,"parent",{enumerable:!0,get:function(){if(R.isBuffer(this))return this.buffer}}),Object.defineProperty(R.prototype,"offset",{enumerable:!0,get:function(){if(R.isBuffer(this))return this.byteOffset}});function Be(le){if(le>de)throw new RangeError('The value "'+le+'" is invalid for option "size"');var _=new Uint8Array(le);return Object.setPrototypeOf(_,R.prototype),_}function R(le,_,D){if(typeof le=="number"){if(typeof _=="string")throw new TypeError('The "string" argument must be of type string. Received type number');return w(le)}return u(le,_,D)}R.poolSize=8192;function u(le,_,D){if(typeof le=="string")return L(le,_);if(ArrayBuffer.isView(le))return k(le);if(le==null)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof le);if(ur(le,ArrayBuffer)||le&&ur(le.buffer,ArrayBuffer)||typeof SharedArrayBuffer!="undefined"&&(ur(le,SharedArrayBuffer)||le&&ur(le.buffer,SharedArrayBuffer)))return K(le,_,D);if(typeof le=="number")throw new TypeError('The "value" argument must not be of type number. Received type number');var ae=le.valueOf&&le.valueOf();if(ae!=null&&ae!==le)return R.from(ae,_,D);var We=V(le);if(We)return We;if(typeof Symbol!="undefined"&&Symbol.toPrimitive!=null&&typeof le[Symbol.toPrimitive]=="function")return R.from(le[Symbol.toPrimitive]("string"),_,D);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof le)}R.from=function(le,_,D){return u(le,_,D)},Object.setPrototypeOf(R.prototype,Uint8Array.prototype),Object.setPrototypeOf(R,Uint8Array);function C(le){if(typeof le!="number")throw new TypeError('"size" argument must be of type number');if(le<0)throw new RangeError('The value "'+le+'" is invalid for option "size"')}function H(le,_,D){return C(le),le<=0?Be(le):_!==void 0?typeof D=="string"?Be(le).fill(_,D):Be(le).fill(_):Be(le)}R.alloc=function(le,_,D){return H(le,_,D)};function w(le){return C(le),Be(le<0?0:P(le)|0)}R.allocUnsafe=function(le){return w(le)},R.allocUnsafeSlow=function(le){return w(le)};function L(le,_){if((typeof _!="string"||_==="")&&(_="utf8"),!R.isEncoding(_))throw new TypeError("Unknown encoding: "+_);var D=Z(le,_)|0,ae=Be(D),We=ae.write(le,_);return We!==D&&(ae=ae.slice(0,We)),ae}function B(le){for(var _=le.length<0?0:P(le.length)|0,D=Be(_),ae=0;ae<_;ae+=1)D[ae]=le[ae]&255;return D}function k(le){if(ur(le,Uint8Array)){var _=new Uint8Array(le);return K(_.buffer,_.byteOffset,_.byteLength)}return B(le)}function K(le,_,D){if(_<0||le.byteLength<_)throw new RangeError('"offset" is outside of buffer bounds');if(le.byteLength<_+(D||0))throw new RangeError('"length" is outside of buffer bounds');var ae;return _===void 0&&D===void 0?ae=new Uint8Array(le):D===void 0?ae=new Uint8Array(le,_):ae=new Uint8Array(le,_,D),Object.setPrototypeOf(ae,R.prototype),ae}function V(le){if(R.isBuffer(le)){var _=P(le.length)|0,D=Be(_);return D.length===0||le.copy(D,0,0,_),D}if(le.length!==void 0)return typeof le.length!="number"||ve(le.length)?Be(0):B(le);if(le.type==="Buffer"&&Array.isArray(le.data))return B(le.data)}function P(le){if(le>=de)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+de.toString(16)+" bytes");return le|0}function G(le){return+le!=le&&(le=0),R.alloc(+le)}R.isBuffer=function(_){return _!=null&&_._isBuffer===!0&&_!==R.prototype},R.compare=function(_,D){if(ur(_,Uint8Array)&&(_=R.from(_,_.offset,_.byteLength)),ur(D,Uint8Array)&&(D=R.from(D,D.offset,D.byteLength)),!R.isBuffer(_)||!R.isBuffer(D))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(_===D)return 0;for(var ae=_.length,We=D.length,ge=0,Se=Math.min(ae,We);ge<Se;++ge)if(_[ge]!==D[ge]){ae=_[ge],We=D[ge];break}return ae<We?-1:We<ae?1:0},R.isEncoding=function(_){switch(String(_).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}},R.concat=function(_,D){if(!Array.isArray(_))throw new TypeError('"list" argument must be an Array of Buffers');if(_.length===0)return R.alloc(0);var ae;if(D===void 0)for(D=0,ae=0;ae<_.length;++ae)D+=_[ae].length;var We=R.allocUnsafe(D),ge=0;for(ae=0;ae<_.length;++ae){var Se=_[ae];if(ur(Se,Uint8Array))ge+Se.length>We.length?R.from(Se).copy(We,ge):Uint8Array.prototype.set.call(We,Se,ge);else if(R.isBuffer(Se))Se.copy(We,ge);else throw new TypeError('"list" argument must be an Array of Buffers');ge+=Se.length}return We};function Z(le,_){if(R.isBuffer(le))return le.length;if(ArrayBuffer.isView(le)||ur(le,ArrayBuffer))return le.byteLength;if(typeof le!="string")throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof le);var D=le.length,ae=arguments.length>2&&arguments[2]===!0;if(!ae&&D===0)return 0;for(var We=!1;;)switch(_){case"ascii":case"latin1":case"binary":return D;case"utf8":case"utf-8":return wr(le).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return D*2;case"hex":return D>>>1;case"base64":return ar(le).length;default:if(We)return ae?-1:wr(le).length;_=(""+_).toLowerCase(),We=!0}}R.byteLength=Z;function se(le,_,D){var ae=!1;if((_===void 0||_<0)&&(_=0),_>this.length||((D===void 0||D>this.length)&&(D=this.length),D<=0)||(D>>>=0,_>>>=0,D<=_))return"";for(le||(le="utf8");;)switch(le){case"hex":return z(this,_,D);case"utf8":case"utf-8":return M(this,_,D);case"ascii":return me(this,_,D);case"latin1":case"binary":return xe(this,_,D);case"base64":return pe(this,_,D);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return j(this,_,D);default:if(ae)throw new TypeError("Unknown encoding: "+le);le=(le+"").toLowerCase(),ae=!0}}R.prototype._isBuffer=!0;function oe(le,_,D){var ae=le[_];le[_]=le[D],le[D]=ae}R.prototype.swap16=function(){var _=this.length;if(_%2!==0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(var D=0;D<_;D+=2)oe(this,D,D+1);return this},R.prototype.swap32=function(){var _=this.length;if(_%4!==0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(var D=0;D<_;D+=4)oe(this,D,D+3),oe(this,D+1,D+2);return this},R.prototype.swap64=function(){var _=this.length;if(_%8!==0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(var D=0;D<_;D+=8)oe(this,D,D+7),oe(this,D+1,D+6),oe(this,D+2,D+5),oe(this,D+3,D+4);return this},R.prototype.toString=function(){var _=this.length;return _===0?"":arguments.length===0?M(this,0,_):se.apply(this,arguments)},R.prototype.toLocaleString=R.prototype.toString,R.prototype.equals=function(_){if(!R.isBuffer(_))throw new TypeError("Argument must be a Buffer");return this===_?!0:R.compare(this,_)===0},R.prototype.inspect=function(){var _="",D=Sr.h2;return _=this.toString("hex",0,D).replace(/(.{2})/g,"$1 ").trim(),this.length>D&&(_+=" ... "),"<Buffer "+_+">"},Me&&(R.prototype[Me]=R.prototype.inspect),R.prototype.compare=function(_,D,ae,We,ge){if(ur(_,Uint8Array)&&(_=R.from(_,_.offset,_.byteLength)),!R.isBuffer(_))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof _);if(D===void 0&&(D=0),ae===void 0&&(ae=_?_.length:0),We===void 0&&(We=0),ge===void 0&&(ge=this.length),D<0||ae>_.length||We<0||ge>this.length)throw new RangeError("out of range index");if(We>=ge&&D>=ae)return 0;if(We>=ge)return-1;if(D>=ae)return 1;if(D>>>=0,ae>>>=0,We>>>=0,ge>>>=0,this===_)return 0;for(var Se=ge-We,gt=ae-D,xt=Math.min(Se,gt),Et=this.slice(We,ge),nr=_.slice(D,ae),xr=0;xr<xt;++xr)if(Et[xr]!==nr[xr]){Se=Et[xr],gt=nr[xr];break}return Se<gt?-1:gt<Se?1:0};function De(le,_,D,ae,We){if(le.length===0)return-1;if(typeof D=="string"?(ae=D,D=0):D>2147483647?D=2147483647:D<-2147483648&&(D=-2147483648),D=+D,ve(D)&&(D=We?0:le.length-1),D<0&&(D=le.length+D),D>=le.length){if(We)return-1;D=le.length-1}else if(D<0)if(We)D=0;else return-1;if(typeof _=="string"&&(_=R.from(_,ae)),R.isBuffer(_))return _.length===0?-1:He(le,_,D,ae,We);if(typeof _=="number")return _=_&255,typeof Uint8Array.prototype.indexOf=="function"?We?Uint8Array.prototype.indexOf.call(le,_,D):Uint8Array.prototype.lastIndexOf.call(le,_,D):He(le,[_],D,ae,We);throw new TypeError("val must be string, number or Buffer")}function He(le,_,D,ae,We){var ge=1,Se=le.length,gt=_.length;if(ae!==void 0&&(ae=String(ae).toLowerCase(),ae==="ucs2"||ae==="ucs-2"||ae==="utf16le"||ae==="utf-16le")){if(le.length<2||_.length<2)return-1;ge=2,Se/=2,gt/=2,D/=2}function xt(Bt,Mt){return ge===1?Bt[Mt]:Bt.readUInt16BE(Mt*ge)}var Et;if(We){var nr=-1;for(Et=D;Et<Se;Et++)if(xt(le,Et)===xt(_,nr===-1?0:Et-nr)){if(nr===-1&&(nr=Et),Et-nr+1===gt)return nr*ge}else nr!==-1&&(Et-=Et-nr),nr=-1}else for(D+gt>Se&&(D=Se-gt),Et=D;Et>=0;Et--){for(var xr=!0,Tr=0;Tr<gt;Tr++)if(xt(le,Et+Tr)!==xt(_,Tr)){xr=!1;break}if(xr)return Et}return-1}R.prototype.includes=function(_,D,ae){return this.indexOf(_,D,ae)!==-1},R.prototype.indexOf=function(_,D,ae){return De(this,_,D,ae,!0)},R.prototype.lastIndexOf=function(_,D,ae){return De(this,_,D,ae,!1)};function Qe(le,_,D,ae){D=Number(D)||0;var We=le.length-D;ae?(ae=Number(ae),ae>We&&(ae=We)):ae=We;var ge=_.length;ae>ge/2&&(ae=ge/2);for(var Se=0;Se<ae;++Se){var gt=parseInt(_.substr(Se*2,2),16);if(ve(gt))return Se;le[D+Se]=gt}return Se}function Ue(le,_,D,ae){return Vr(wr(_,le.length-D),le,D,ae)}function qe(le,_,D,ae){return Vr(fr(_),le,D,ae)}function st(le,_,D,ae){return Vr(ar(_),le,D,ae)}function Pe(le,_,D,ae){return Vr(dn(_,le.length-D),le,D,ae)}R.prototype.write=function(_,D,ae,We){if(D===void 0)We="utf8",ae=this.length,D=0;else if(ae===void 0&&typeof D=="string")We=D,ae=this.length,D=0;else if(isFinite(D))D=D>>>0,isFinite(ae)?(ae=ae>>>0,We===void 0&&(We="utf8")):(We=ae,ae=void 0);else throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");var ge=this.length-D;if((ae===void 0||ae>ge)&&(ae=ge),_.length>0&&(ae<0||D<0)||D>this.length)throw new RangeError("Attempt to write outside buffer bounds");We||(We="utf8");for(var Se=!1;;)switch(We){case"hex":return Qe(this,_,D,ae);case"utf8":case"utf-8":return Ue(this,_,D,ae);case"ascii":case"latin1":case"binary":return qe(this,_,D,ae);case"base64":return st(this,_,D,ae);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return Pe(this,_,D,ae);default:if(Se)throw new TypeError("Unknown encoding: "+We);We=(""+We).toLowerCase(),Se=!0}},R.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};function pe(le,_,D){return _===0&&D===le.length?mt.fromByteArray(le):mt.fromByteArray(le.slice(_,D))}function M(le,_,D){D=Math.min(le.length,D);for(var ae=[],We=_;We<D;){var ge=le[We],Se=null,gt=ge>239?4:ge>223?3:ge>191?2:1;if(We+gt<=D){var xt,Et,nr,xr;switch(gt){case 1:ge<128&&(Se=ge);break;case 2:xt=le[We+1],(xt&192)===128&&(xr=(ge&31)<<6|xt&63,xr>127&&(Se=xr));break;case 3:xt=le[We+1],Et=le[We+2],(xt&192)===128&&(Et&192)===128&&(xr=(ge&15)<<12|(xt&63)<<6|Et&63,xr>2047&&(xr<55296||xr>57343)&&(Se=xr));break;case 4:xt=le[We+1],Et=le[We+2],nr=le[We+3],(xt&192)===128&&(Et&192)===128&&(nr&192)===128&&(xr=(ge&15)<<18|(xt&63)<<12|(Et&63)<<6|nr&63,xr>65535&&xr<1114112&&(Se=xr))}}Se===null?(Se=65533,gt=1):Se>65535&&(Se-=65536,ae.push(Se>>>10&1023|55296),Se=56320|Se&1023),ae.push(Se),We+=gt}return Te(ae)}var ye=4096;function Te(le){var _=le.length;if(_<=ye)return String.fromCharCode.apply(String,le);for(var D="",ae=0;ae<_;)D+=String.fromCharCode.apply(String,le.slice(ae,ae+=ye));return D}function me(le,_,D){var ae="";D=Math.min(le.length,D);for(var We=_;We<D;++We)ae+=String.fromCharCode(le[We]&127);return ae}function xe(le,_,D){var ae="";D=Math.min(le.length,D);for(var We=_;We<D;++We)ae+=String.fromCharCode(le[We]);return ae}function z(le,_,D){var ae=le.length;(!_||_<0)&&(_=0),(!D||D<0||D>ae)&&(D=ae);for(var We="",ge=_;ge<D;++ge)We+=At[le[ge]];return We}function j(le,_,D){for(var ae=le.slice(_,D),We="",ge=0;ge<ae.length-1;ge+=2)We+=String.fromCharCode(ae[ge]+ae[ge+1]*256);return We}R.prototype.slice=function(_,D){var ae=this.length;_=~~_,D=D===void 0?ae:~~D,_<0?(_+=ae,_<0&&(_=0)):_>ae&&(_=ae),D<0?(D+=ae,D<0&&(D=0)):D>ae&&(D=ae),D<_&&(D=_);var We=this.subarray(_,D);return Object.setPrototypeOf(We,R.prototype),We};function ee(le,_,D){if(le%1!==0||le<0)throw new RangeError("offset is not uint");if(le+_>D)throw new RangeError("Trying to access beyond buffer length")}R.prototype.readUintLE=R.prototype.readUIntLE=function(_,D,ae){_=_>>>0,D=D>>>0,ae||ee(_,D,this.length);for(var We=this[_],ge=1,Se=0;++Se<D&&(ge*=256);)We+=this[_+Se]*ge;return We},R.prototype.readUintBE=R.prototype.readUIntBE=function(_,D,ae){_=_>>>0,D=D>>>0,ae||ee(_,D,this.length);for(var We=this[_+--D],ge=1;D>0&&(ge*=256);)We+=this[_+--D]*ge;return We},R.prototype.readUint8=R.prototype.readUInt8=function(_,D){return _=_>>>0,D||ee(_,1,this.length),this[_]},R.prototype.readUint16LE=R.prototype.readUInt16LE=function(_,D){return _=_>>>0,D||ee(_,2,this.length),this[_]|this[_+1]<<8},R.prototype.readUint16BE=R.prototype.readUInt16BE=function(_,D){return _=_>>>0,D||ee(_,2,this.length),this[_]<<8|this[_+1]},R.prototype.readUint32LE=R.prototype.readUInt32LE=function(_,D){return _=_>>>0,D||ee(_,4,this.length),(this[_]|this[_+1]<<8|this[_+2]<<16)+this[_+3]*16777216},R.prototype.readUint32BE=R.prototype.readUInt32BE=function(_,D){return _=_>>>0,D||ee(_,4,this.length),this[_]*16777216+(this[_+1]<<16|this[_+2]<<8|this[_+3])},R.prototype.readIntLE=function(_,D,ae){_=_>>>0,D=D>>>0,ae||ee(_,D,this.length);for(var We=this[_],ge=1,Se=0;++Se<D&&(ge*=256);)We+=this[_+Se]*ge;return ge*=128,We>=ge&&(We-=Math.pow(2,8*D)),We},R.prototype.readIntBE=function(_,D,ae){_=_>>>0,D=D>>>0,ae||ee(_,D,this.length);for(var We=D,ge=1,Se=this[_+--We];We>0&&(ge*=256);)Se+=this[_+--We]*ge;return ge*=128,Se>=ge&&(Se-=Math.pow(2,8*D)),Se},R.prototype.readInt8=function(_,D){return _=_>>>0,D||ee(_,1,this.length),this[_]&128?(255-this[_]+1)*-1:this[_]},R.prototype.readInt16LE=function(_,D){_=_>>>0,D||ee(_,2,this.length);var ae=this[_]|this[_+1]<<8;return ae&32768?ae|4294901760:ae},R.prototype.readInt16BE=function(_,D){_=_>>>0,D||ee(_,2,this.length);var ae=this[_+1]|this[_]<<8;return ae&32768?ae|4294901760:ae},R.prototype.readInt32LE=function(_,D){return _=_>>>0,D||ee(_,4,this.length),this[_]|this[_+1]<<8|this[_+2]<<16|this[_+3]<<24},R.prototype.readInt32BE=function(_,D){return _=_>>>0,D||ee(_,4,this.length),this[_]<<24|this[_+1]<<16|this[_+2]<<8|this[_+3]},R.prototype.readFloatLE=function(_,D){return _=_>>>0,D||ee(_,4,this.length),Fe.read(this,_,!0,23,4)},R.prototype.readFloatBE=function(_,D){return _=_>>>0,D||ee(_,4,this.length),Fe.read(this,_,!1,23,4)},R.prototype.readDoubleLE=function(_,D){return _=_>>>0,D||ee(_,8,this.length),Fe.read(this,_,!0,52,8)},R.prototype.readDoubleBE=function(_,D){return _=_>>>0,D||ee(_,8,this.length),Fe.read(this,_,!1,52,8)};function _e(le,_,D,ae,We,ge){if(!R.isBuffer(le))throw new TypeError('"buffer" argument must be a Buffer instance');if(_>We||_<ge)throw new RangeError('"value" argument is out of bounds');if(D+ae>le.length)throw new RangeError("Index out of range")}R.prototype.writeUintLE=R.prototype.writeUIntLE=function(_,D,ae,We){if(_=+_,D=D>>>0,ae=ae>>>0,!We){var ge=Math.pow(2,8*ae)-1;_e(this,_,D,ae,ge,0)}var Se=1,gt=0;for(this[D]=_&255;++gt<ae&&(Se*=256);)this[D+gt]=_/Se&255;return D+ae},R.prototype.writeUintBE=R.prototype.writeUIntBE=function(_,D,ae,We){if(_=+_,D=D>>>0,ae=ae>>>0,!We){var ge=Math.pow(2,8*ae)-1;_e(this,_,D,ae,ge,0)}var Se=ae-1,gt=1;for(this[D+Se]=_&255;--Se>=0&&(gt*=256);)this[D+Se]=_/gt&255;return D+ae},R.prototype.writeUint8=R.prototype.writeUInt8=function(_,D,ae){return _=+_,D=D>>>0,ae||_e(this,_,D,1,255,0),this[D]=_&255,D+1},R.prototype.writeUint16LE=R.prototype.writeUInt16LE=function(_,D,ae){return _=+_,D=D>>>0,ae||_e(this,_,D,2,65535,0),this[D]=_&255,this[D+1]=_>>>8,D+2},R.prototype.writeUint16BE=R.prototype.writeUInt16BE=function(_,D,ae){return _=+_,D=D>>>0,ae||_e(this,_,D,2,65535,0),this[D]=_>>>8,this[D+1]=_&255,D+2},R.prototype.writeUint32LE=R.prototype.writeUInt32LE=function(_,D,ae){return _=+_,D=D>>>0,ae||_e(this,_,D,4,4294967295,0),this[D+3]=_>>>24,this[D+2]=_>>>16,this[D+1]=_>>>8,this[D]=_&255,D+4},R.prototype.writeUint32BE=R.prototype.writeUInt32BE=function(_,D,ae){return _=+_,D=D>>>0,ae||_e(this,_,D,4,4294967295,0),this[D]=_>>>24,this[D+1]=_>>>16,this[D+2]=_>>>8,this[D+3]=_&255,D+4},R.prototype.writeIntLE=function(_,D,ae,We){if(_=+_,D=D>>>0,!We){var ge=Math.pow(2,8*ae-1);_e(this,_,D,ae,ge-1,-ge)}var Se=0,gt=1,xt=0;for(this[D]=_&255;++Se<ae&&(gt*=256);)_<0&&xt===0&&this[D+Se-1]!==0&&(xt=1),this[D+Se]=(_/gt>>0)-xt&255;return D+ae},R.prototype.writeIntBE=function(_,D,ae,We){if(_=+_,D=D>>>0,!We){var ge=Math.pow(2,8*ae-1);_e(this,_,D,ae,ge-1,-ge)}var Se=ae-1,gt=1,xt=0;for(this[D+Se]=_&255;--Se>=0&&(gt*=256);)_<0&&xt===0&&this[D+Se+1]!==0&&(xt=1),this[D+Se]=(_/gt>>0)-xt&255;return D+ae},R.prototype.writeInt8=function(_,D,ae){return _=+_,D=D>>>0,ae||_e(this,_,D,1,127,-128),_<0&&(_=255+_+1),this[D]=_&255,D+1},R.prototype.writeInt16LE=function(_,D,ae){return _=+_,D=D>>>0,ae||_e(this,_,D,2,32767,-32768),this[D]=_&255,this[D+1]=_>>>8,D+2},R.prototype.writeInt16BE=function(_,D,ae){return _=+_,D=D>>>0,ae||_e(this,_,D,2,32767,-32768),this[D]=_>>>8,this[D+1]=_&255,D+2},R.prototype.writeInt32LE=function(_,D,ae){return _=+_,D=D>>>0,ae||_e(this,_,D,4,2147483647,-2147483648),this[D]=_&255,this[D+1]=_>>>8,this[D+2]=_>>>16,this[D+3]=_>>>24,D+4},R.prototype.writeInt32BE=function(_,D,ae){return _=+_,D=D>>>0,ae||_e(this,_,D,4,2147483647,-2147483648),_<0&&(_=4294967295+_+1),this[D]=_>>>24,this[D+1]=_>>>16,this[D+2]=_>>>8,this[D+3]=_&255,D+4};function ut(le,_,D,ae,We,ge){if(D+ae>le.length)throw new RangeError("Index out of range");if(D<0)throw new RangeError("Index out of range")}function Ft(le,_,D,ae,We){return _=+_,D=D>>>0,We||ut(le,_,D,4,34028234663852886e22,-34028234663852886e22),Fe.write(le,_,D,ae,23,4),D+4}R.prototype.writeFloatLE=function(_,D,ae){return Ft(this,_,D,!0,ae)},R.prototype.writeFloatBE=function(_,D,ae){return Ft(this,_,D,!1,ae)};function Vt(le,_,D,ae,We){return _=+_,D=D>>>0,We||ut(le,_,D,8,17976931348623157e292,-17976931348623157e292),Fe.write(le,_,D,ae,52,8),D+8}R.prototype.writeDoubleLE=function(_,D,ae){return Vt(this,_,D,!0,ae)},R.prototype.writeDoubleBE=function(_,D,ae){return Vt(this,_,D,!1,ae)},R.prototype.copy=function(_,D,ae,We){if(!R.isBuffer(_))throw new TypeError("argument should be a Buffer");if(ae||(ae=0),!We&&We!==0&&(We=this.length),D>=_.length&&(D=_.length),D||(D=0),We>0&&We<ae&&(We=ae),We===ae||_.length===0||this.length===0)return 0;if(D<0)throw new RangeError("targetStart out of bounds");if(ae<0||ae>=this.length)throw new RangeError("Index out of range");if(We<0)throw new RangeError("sourceEnd out of bounds");We>this.length&&(We=this.length),_.length-D<We-ae&&(We=_.length-D+ae);var ge=We-ae;return this===_&&typeof Uint8Array.prototype.copyWithin=="function"?this.copyWithin(D,ae,We):Uint8Array.prototype.set.call(_,this.subarray(ae,We),D),ge},R.prototype.fill=function(_,D,ae,We){if(typeof _=="string"){if(typeof D=="string"?(We=D,D=0,ae=this.length):typeof ae=="string"&&(We=ae,ae=this.length),We!==void 0&&typeof We!="string")throw new TypeError("encoding must be a string");if(typeof We=="string"&&!R.isEncoding(We))throw new TypeError("Unknown encoding: "+We);if(_.length===1){var ge=_.charCodeAt(0);(We==="utf8"&&ge<128||We==="latin1")&&(_=ge)}}else typeof _=="number"?_=_&255:typeof _=="boolean"&&(_=Number(_));if(D<0||this.length<D||this.length<ae)throw new RangeError("Out of range index");if(ae<=D)return this;D=D>>>0,ae=ae===void 0?this.length:ae>>>0,_||(_=0);var Se;if(typeof _=="number")for(Se=D;Se<ae;++Se)this[Se]=_;else{var gt=R.isBuffer(_)?_:R.from(_,We),xt=gt.length;if(xt===0)throw new TypeError('The value "'+_+'" is invalid for argument "value"');for(Se=0;Se<ae-D;++Se)this[Se+D]=gt[Se%xt]}return this};var vr=/[^+/0-9A-Za-z-_]/g;function Yr(le){if(le=le.split("=")[0],le=le.trim().replace(vr,""),le.length<2)return"";for(;le.length%4!==0;)le=le+"=";return le}function wr(le,_){_=_||1/0;for(var D,ae=le.length,We=null,ge=[],Se=0;Se<ae;++Se){if(D=le.charCodeAt(Se),D>55295&&D<57344){if(!We){if(D>56319){(_-=3)>-1&&ge.push(239,191,189);continue}else if(Se+1===ae){(_-=3)>-1&&ge.push(239,191,189);continue}We=D;continue}if(D<56320){(_-=3)>-1&&ge.push(239,191,189),We=D;continue}D=(We-55296<<10|D-56320)+65536}else We&&(_-=3)>-1&&ge.push(239,191,189);if(We=null,D<128){if((_-=1)<0)break;ge.push(D)}else if(D<2048){if((_-=2)<0)break;ge.push(D>>6|192,D&63|128)}else if(D<65536){if((_-=3)<0)break;ge.push(D>>12|224,D>>6&63|128,D&63|128)}else if(D<1114112){if((_-=4)<0)break;ge.push(D>>18|240,D>>12&63|128,D>>6&63|128,D&63|128)}else throw new Error("Invalid code point")}return ge}function fr(le){for(var _=[],D=0;D<le.length;++D)_.push(le.charCodeAt(D)&255);return _}function dn(le,_){for(var D,ae,We,ge=[],Se=0;Se<le.length&&!((_-=2)<0);++Se)D=le.charCodeAt(Se),ae=D>>8,We=D%256,ge.push(We),ge.push(ae);return ge}function ar(le){return mt.toByteArray(Yr(le))}function Vr(le,_,D,ae){for(var We=0;We<ae&&!(We+D>=_.length||We>=le.length);++We)_[We+D]=le[We];return We}function ur(le,_){return le instanceof _||le!=null&&le.constructor!=null&&le.constructor.name!=null&&le.constructor.name===_.name}function ve(le){return le!==le}var At=function(){for(var le="0123456789abcdef",_=new Array(256),D=0;D<16;++D)for(var ae=D*16,We=0;We<16;++We)_[ae+We]=le[D]+le[We];return _}()},64018:function(){var wn,Sr,je,Ie=!1,mt,Fe;window.PR_SHOULD_USE_CONTINUATION=!0;var Me,de;(function(){var I=window,Be=["break,continue,do,else,for,if,return,while"],R=[Be,"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"],u=[R,"catch,class,delete,false,import,new,operator,private,protected,public,this,throw,true,try,typeof"],C=[u,"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"],H=[u,"abstract,assert,boolean,byte,extends,finally,final,implements,import,instanceof,interface,null,native,package,strictfp,super,synchronized,throws,transient"],w=[u,"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"],L="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",B=[u,"abstract,async,await,constructor,debugger,enum,eval,export,function,get,implements,instanceof,interface,let,null,set,undefined,var,with,yield,Infinity,NaN"],k="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",K=[Be,"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"],V=[Be,"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"],P=[Be,"case,done,elif,esac,eval,fi,function,in,local,set,then,until"],G=[C,w,H,B,k,K,V,P],Z=/^(DIR|FILE|array|vector|(de|priority_)?queue|(forward_)?list|stack|(const_)?(reverse_)?iterator|(unordered_)?(multi)?(set|map)|bitset|u?(int|float)\d*)\b/,se="str",oe="kwd",De="com",He="typ",Qe="lit",Ue="pun",qe="pln",st="tag",Pe="dec",pe="src",M="atn",ye="atv",Te="nocode",me="(?:^^\\.?|[+-]|[!=]=?=?|\\#|%=?|&&?=?|\\(|\\*=?|[+\\-]=|->|\\/=?|::?|<<?=?|>>?>?=?|,|;|\\?|@|\\[|~|{|\\^\\^?=?|\\|\\|?=?|break|case|continue|delete|do|else|finally|instanceof|return|throw|try|typeof)\\s*";function xe(le){for(var _=0,D=!1,ae=!1,We=0,ge=le.length;We<ge;++We){var Se=le[We];if(Se.ignoreCase)ae=!0;else if(/[a-z]/i.test(Se.source.replace(/\\u[0-9a-f]{4}|\\x[0-9a-f]{2}|\\[^ux]/gi,""))){D=!0,ae=!1;break}}var gt={b:8,t:9,n:10,v:11,f:12,r:13};function xt(Bt){var Mt=Bt.charCodeAt(0);if(Mt!==92)return Mt;var Wt=Bt.charAt(1);return Mt=gt[Wt],Mt||("0"<=Wt&&Wt<="7"?parseInt(Bt.substring(1),8):Wt==="u"||Wt==="x"?parseInt(Bt.substring(2),16):Bt.charCodeAt(1))}function Et(Bt){if(Bt<32)return(Bt<16?"\\x0":"\\x")+Bt.toString(16);var Mt=String.fromCharCode(Bt);return Mt==="\\"||Mt==="-"||Mt==="]"||Mt==="^"?"\\"+Mt:Mt}function nr(Bt){var Mt=Bt.substring(1,Bt.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")),Wt=[],cr=Mt[0]==="^",qt=["["];cr&&qt.push("^");for(var kt=cr?1:0,Pr=Mt.length;kt<Pr;++kt){var $t=Mt[kt];if(/\\[bdsw]/i.test($t))qt.push($t);else{var yr=xt($t),An;kt+2<Pr&&Mt[kt+1]==="-"?(An=xt(Mt[kt+2]),kt+=2):An=yr,Wt.push([yr,An]),An<65||yr>122||(An<65||yr>90||Wt.push([Math.max(65,yr)|32,Math.min(An,90)|32]),An<97||yr>122||Wt.push([Math.max(97,yr)&-33,Math.min(An,122)&-33]))}}Wt.sort(function(fe,Ke){return fe[0]-Ke[0]||Ke[1]-fe[1]});for(var Y=[],ie=[],kt=0;kt<Wt.length;++kt){var Ot=Wt[kt];Ot[0]<=ie[1]+1?ie[1]=Math.max(ie[1],Ot[1]):Y.push(ie=Ot)}for(var kt=0;kt<Y.length;++kt){var Ot=Y[kt];qt.push(Et(Ot[0])),Ot[1]>Ot[0]&&(Ot[1]+1>Ot[0]&&qt.push("-"),qt.push(Et(Ot[1])))}return qt.push("]"),qt.join("")}function xr(Bt){for(var Mt=Bt.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")),Wt=Mt.length,cr=[],qt=0,kt=0;qt<Wt;++qt){var Pr=Mt[qt];if(Pr==="(")++kt;else if(Pr.charAt(0)==="\\"){var $t=+Pr.substring(1);$t&&($t<=kt?cr[$t]=-1:Mt[qt]=Et($t))}}for(var qt=1;qt<cr.length;++qt)cr[qt]===-1&&(cr[qt]=++_);for(var qt=0,kt=0;qt<Wt;++qt){var Pr=Mt[qt];if(Pr==="(")++kt,cr[kt]||(Mt[qt]="(?:");else if(Pr.charAt(0)==="\\"){var $t=+Pr.substring(1);$t&&$t<=kt&&(Mt[qt]="\\"+cr[$t])}}for(var qt=0;qt<Wt;++qt)Mt[qt]==="^"&&Mt[qt+1]!=="^"&&(Mt[qt]="");if(Bt.ignoreCase&&D)for(var qt=0;qt<Wt;++qt){var Pr=Mt[qt],yr=Pr.charAt(0);Pr.length>=2&&yr==="["?Mt[qt]=nr(Pr):yr!=="\\"&&(Mt[qt]=Pr.replace(/[a-zA-Z]/g,function(ie){var Ot=ie.charCodeAt(0);return"["+String.fromCharCode(Ot&-33,Ot|32)+"]"}))}return Mt.join("")}for(var Tr=[],We=0,ge=le.length;We<ge;++We){var Se=le[We];if(Se.global||Se.multiline)throw new Error(""+Se);Tr.push("(?:"+xr(Se)+")")}return new RegExp(Tr.join("|"),ae?"gi":"g")}function z(le,_){var D=/(?:^|\s)nocode(?:\s|$)/,ae=[],We=0,ge=[],Se=0;function gt(xt){var Et=xt.nodeType;if(Et==1){if(D.test(xt.className))return;for(var nr=xt.firstChild;nr;nr=nr.nextSibling)gt(nr);var xr=xt.nodeName.toLowerCase();(xr==="br"||xr==="li")&&(ae[Se]=`
|
|
|
`,ge[Se<<1]=We++,ge[Se++<<1|1]=xt)}else if(Et==3||Et==4){var Tr=xt.nodeValue;Tr.length&&(_?Tr=Tr.replace(/\r\n?/g,`
|
|
|
`):Tr=Tr.replace(/[ \t\r\n]+/g," "),ae[Se]=Tr,ge[Se<<1]=We,We+=Tr.length,ge[Se++<<1|1]=xt)}}return gt(le),{sourceCode:ae.join("").replace(/\n$/,""),spans:ge}}function j(le,_,D,ae,We){if(D){var ge={sourceNode:le,pre:1,langExtension:null,numberLines:null,sourceCode:D,spans:null,basePos:_,decorations:null};ae(ge),We.push.apply(We,ge.decorations)}}var ee=/\S/;function _e(le){for(var _=void 0,D=le.firstChild;D;D=D.nextSibling){var ae=D.nodeType;_=ae===1?_?le:D:ae===3&&ee.test(D.nodeValue)?le:_}return _===le?void 0:_}function ut(le,_){var D={},ae;(function(){for(var Se=le.concat(_),gt=[],xt={},Et=0,nr=Se.length;Et<nr;++Et){var xr=Se[Et],Tr=xr[3];if(Tr)for(var Bt=Tr.length;--Bt>=0;)D[Tr.charAt(Bt)]=xr;var Mt=xr[1],Wt=""+Mt;xt.hasOwnProperty(Wt)||(gt.push(Mt),xt[Wt]=null)}gt.push(/[\0-\uffff]/),ae=xe(gt)})();var We=_.length,ge=function(Se){for(var gt=Se.sourceCode,xt=Se.basePos,Et=Se.sourceNode,nr=[xt,qe],xr=0,Tr=gt.match(ae)||[],Bt={},Mt=0,Wt=Tr.length;Mt<Wt;++Mt){var cr=Tr[Mt],qt=Bt[cr],kt=void 0,Pr;if(typeof qt=="string")Pr=!1;else{var $t=D[cr.charAt(0)];if($t)kt=cr.match($t[1]),qt=$t[0];else{for(var yr=0;yr<We;++yr)if($t=_[yr],kt=cr.match($t[1]),kt){qt=$t[0];break}kt||(qt=qe)}Pr=qt.length>=5&&qt.substring(0,5)==="lang-",Pr&&!(kt&&typeof kt[1]=="string")&&(Pr=!1,qt=pe),Pr||(Bt[cr]=qt)}var An=xr;if(xr+=cr.length,!Pr)nr.push(xt+An,qt);else{var Y=kt[1],ie=cr.indexOf(Y),Ot=ie+Y.length;kt[2]&&(Ot=cr.length-kt[2].length,ie=Ot-Y.length);var fe=qt.substring(5);j(Et,xt+An,cr.substring(0,ie),ge,nr),j(Et,xt+An+ie,Y,dn(fe,Y),nr),j(Et,xt+An+Ot,cr.substring(Ot),ge,nr)}}Se.decorations=nr};return ge}function Ft(le){var _=[],D=[];le.tripleQuotedStrings?_.push([se,/^(?:\'\'\'(?:[^\'\\]|\\[\s\S]|\'{1,2}(?=[^\']))*(?:\'\'\'|$)|\"\"\"(?:[^\"\\]|\\[\s\S]|\"{1,2}(?=[^\"]))*(?:\"\"\"|$)|\'(?:[^\\\']|\\[\s\S])*(?:\'|$)|\"(?:[^\\\"]|\\[\s\S])*(?:\"|$))/,null,`'"`]):le.multiLineStrings?_.push([se,/^(?:\'(?:[^\\\']|\\[\s\S])*(?:\'|$)|\"(?:[^\\\"]|\\[\s\S])*(?:\"|$)|\`(?:[^\\\`]|\\[\s\S])*(?:\`|$))/,null,"'\"`"]):_.push([se,/^(?:\'(?:[^\\\'\r\n]|\\.)*(?:\'|$)|\"(?:[^\\\"\r\n]|\\.)*(?:\"|$))/,null,`"'`]),le.verbatimStrings&&D.push([se,/^@\"(?:[^\"]|\"\")*(?:\"|$)/,null]);var ae=le.hashComments;ae&&(le.cStyleComments?(ae>1?_.push([De,/^#(?:##(?:[^#]|#(?!##))*(?:###|$)|.*)/,null,"#"]):_.push([De,/^#(?:(?:define|e(?:l|nd)if|else|error|ifn?def|include|line|pragma|undef|warning)\b|[^\r\n]*)/,null,"#"]),D.push([se,/^<(?:(?:(?:\.\.\/)*|\/?)(?:[\w-]+(?:\/[\w-]+)+)?[\w-]+\.h(?:h|pp|\+\+)?|[a-z]\w*)>/,null])):_.push([De,/^#[^\r\n]*/,null,"#"])),le.cStyleComments&&(D.push([De,/^\/\/[^\r\n]*/,null]),D.push([De,/^\/\*[\s\S]*?(?:\*\/|$)/,null]));var We=le.regexLiterals;if(We){var ge=We>1?"":`
|
|
|
\r`,Se=ge?".":"[\\S\\s]",gt="/(?=[^/*"+ge+"])(?:[^/\\x5B\\x5C"+ge+"]|\\x5C"+Se+"|\\x5B(?:[^\\x5C\\x5D"+ge+"]|\\x5C"+Se+")*(?:\\x5D|$))+/";D.push(["lang-regex",RegExp("^"+me+"("+gt+")")])}var xt=le.types;xt&&D.push([He,xt]);var Et=(""+le.keywords).replace(/^ | $/g,"");Et.length&&D.push([oe,new RegExp("^(?:"+Et.replace(/[\s,]+/g,"|")+")\\b"),null]),_.push([qe,/^\s+/,null,` \r
|
|
|
\xA0`]);var nr="^.[^\\s\\w.$@'\"`/\\\\]*";return le.regexLiterals&&(nr+="(?!s*/)"),D.push([Qe,/^@[a-z_$][a-z_$@0-9]*/i,null],[He,/^(?:[@_]?[A-Z]+[a-z][A-Za-z_$@0-9]*|\w+_t\b)/,null],[qe,/^[a-z_$][a-z_$@0-9]*/i,null],[Qe,new RegExp("^(?:0x[a-f0-9]+|(?:\\d(?:_\\d+)*\\d*(?:\\.\\d*)?|\\.\\d\\+)(?:e[+\\-]?\\d+)?)[a-z]*","i"),null,"0123456789"],[qe,/^\\[\s\S]?/,null],[Ue,new RegExp(nr),null]),ut(_,D)}var Vt=Ft({keywords:G,hashComments:!0,cStyleComments:!0,multiLineStrings:!0,regexLiterals:!0});function vr(le,_,D){for(var ae=/(?:^|\s)nocode(?:\s|$)/,We=/\r\n?|\n/,ge=le.ownerDocument,Se=ge.createElement("li");le.firstChild;)Se.appendChild(le.firstChild);var gt=[Se];function xt(Mt){var Wt=Mt.nodeType;if(Wt==1&&!ae.test(Mt.className))if(Mt.nodeName==="br")Et(Mt),Mt.parentNode&&Mt.parentNode.removeChild(Mt);else for(var cr=Mt.firstChild;cr;cr=cr.nextSibling)xt(cr);else if((Wt==3||Wt==4)&&D){var qt=Mt.nodeValue,kt=qt.match(We);if(kt){var Pr=qt.substring(0,kt.index);Mt.nodeValue=Pr;var $t=qt.substring(kt.index+kt[0].length);if($t){var yr=Mt.parentNode;yr.insertBefore(ge.createTextNode($t),Mt.nextSibling)}Et(Mt),Pr||Mt.parentNode.removeChild(Mt)}}}function Et(Mt){for(;!Mt.nextSibling;)if(Mt=Mt.parentNode,!Mt)return;function Wt(kt,Pr){var $t=Pr?kt.cloneNode(!1):kt,yr=kt.parentNode;if(yr){var An=Wt(yr,1),Y=kt.nextSibling;An.appendChild($t);for(var ie=Y;ie;ie=Y)Y=ie.nextSibling,An.appendChild(ie)}return $t}for(var cr=Wt(Mt.nextSibling,0),qt;(qt=cr.parentNode)&&qt.nodeType===1;)cr=qt;gt.push(cr)}for(var nr=0;nr<gt.length;++nr)xt(gt[nr]);_===(_|0)&>[0].setAttribute("value",_);var xr=ge.createElement("ol");xr.className="linenums";for(var Tr=Math.max(0,_-1|0)||0,nr=0,Bt=gt.length;nr<Bt;++nr)Se=gt[nr],Se.className="L"+(nr+Tr)%10,Se.firstChild||Se.appendChild(ge.createTextNode("\xA0")),xr.appendChild(Se);le.appendChild(xr)}function Yr(le){var _=/\bMSIE\s(\d+)/.exec(navigator.userAgent);_=_&&+_[1]<=8;var D=/\n/g,ae=le.sourceCode,We=ae.length,ge=0,Se=le.spans,gt=Se.length,xt=0,Et=le.decorations,nr=Et.length,xr=0;Et[nr]=We;var Tr,Bt;for(Bt=Tr=0;Bt<nr;)Et[Bt]!==Et[Bt+2]?(Et[Tr++]=Et[Bt++],Et[Tr++]=Et[Bt++]):Bt+=2;for(nr=Tr,Bt=Tr=0;Bt<nr;){for(var Mt=Et[Bt],Wt=Et[Bt+1],cr=Bt+2;cr+2<=nr&&Et[cr+1]===Wt;)cr+=2;Et[Tr++]=Mt,Et[Tr++]=Wt,Bt=cr}nr=Et.length=Tr;var qt=le.sourceNode,kt="";qt&&(kt=qt.style.display,qt.style.display="none");try{for(var Pr=null;xt<gt;){var $t=Se[xt],yr=Se[xt+2]||We,An=Et[xr+2]||We,cr=Math.min(yr,An),Y=Se[xt+1],ie;if(Y.nodeType!==1&&(ie=ae.substring(ge,cr))){_&&(ie=ie.replace(D,"\r")),Y.nodeValue=ie;var Ot=Y.ownerDocument,fe=Ot.createElement("span");fe.className=Et[xr+1];var Ke=Y.parentNode;Ke.replaceChild(fe,Y),fe.appendChild(Y),ge<yr&&(Se[xt+1]=Y=Ot.createTextNode(ae.substring(cr,yr)),Ke.insertBefore(Y,fe.nextSibling))}ge=cr,ge>=yr&&(xt+=2),ge>=An&&(xr+=2)}}finally{qt&&(qt.style.display=kt)}}var wr={};function fr(le,_){for(var D=_.length;--D>=0;){var ae=_[D];wr.hasOwnProperty(ae)?I.console&&console.warn("cannot override language handler %s",ae):wr[ae]=le}}function dn(le,_){return le&&wr.hasOwnProperty(le)||(le=/^\s*</.test(_)?"default-markup":"default-code"),wr[le]}fr(Vt,["default-code"]),fr(ut([],[[qe,/^[^<?]+/],[Pe,/^<!\w[^>]*(?:>|$)/],[De,/^<\!--[\s\S]*?(?:-\->|$)/],["lang-",/^<\?([\s\S]+?)(?:\?>|$)/],["lang-",/^<%([\s\S]+?)(?:%>|$)/],[Ue,/^(?:<[%?]|[%?]>)/],["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"]),fr(ut([[qe,/^[\s]+/,null,` \r
|
|
|
`],[ye,/^(?:\"[^\"]*\"?|\'[^\']*\'?)/,null,`"'`]],[[st,/^^<\/?[a-z](?:[\w.:-]*\w)?|\/?>$/i],[M,/^(?!style[\s=]|on)[a-z](?:[\w:-]*\w)?/i],["lang-uq.val",/^=\s*([^>\'\"\s]*(?:[^>\'\"\s\/]|\/(?=\s)))/],[Ue,/^[=<>\/]+/],["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"]),fr(ut([],[[ye,/^[\s\S]+/]]),["uq.val"]),fr(Ft({keywords:C,hashComments:!0,cStyleComments:!0,types:Z}),["c","cc","cpp","cxx","cyc","m"]),fr(Ft({keywords:"null,true,false"}),["json"]),fr(Ft({keywords:w,hashComments:!0,cStyleComments:!0,verbatimStrings:!0,types:Z}),["cs"]),fr(Ft({keywords:H,cStyleComments:!0}),["java"]),fr(Ft({keywords:P,hashComments:!0,multiLineStrings:!0}),["bash","bsh","csh","sh"]),fr(Ft({keywords:K,hashComments:!0,multiLineStrings:!0,tripleQuotedStrings:!0}),["cv","py","python"]),fr(Ft({keywords:k,hashComments:!0,multiLineStrings:!0,regexLiterals:2}),["perl","pl","pm"]),fr(Ft({keywords:V,hashComments:!0,multiLineStrings:!0,regexLiterals:!0}),["rb","ruby"]),fr(Ft({keywords:B,cStyleComments:!0,regexLiterals:!0}),["javascript","js","ts","typescript"]),fr(Ft({keywords:L,hashComments:3,cStyleComments:!0,multilineStrings:!0,tripleQuotedStrings:!0,regexLiterals:!0}),["coffee"]),fr(ut([],[[se,/^[\s\S]+/]]),["regex"]);function ar(le){var _=le.langExtension;try{var D=z(le.sourceNode,le.pre),ae=D.sourceCode;le.sourceCode=ae,le.spans=D.spans,le.basePos=0,dn(_,ae)(le),Yr(le)}catch(We){I.console&&console.log(We&&We.stack||We)}}function Vr(le,_,D){var ae=D||!1,We=_||null,ge=document.createElement("div");ge.innerHTML="<pre>"+le+"</pre>",ge=ge.firstChild,ae&&vr(ge,ae,!0);var Se={langExtension:We,numberLines:ae,sourceNode:ge,pre:1,sourceCode:null,basePos:null,spans:null,decorations:null};return ar(Se),ge.innerHTML}function ur(le,_){var D=_||document.body,ae=D.ownerDocument||document;function We($t){return D.getElementsByTagName($t)}for(var ge=[We("pre"),We("code"),We("xmp")],Se=[],gt=0;gt<ge.length;++gt)for(var xt=0,Et=ge[gt].length;xt<Et;++xt)Se.push(ge[gt][xt]);ge=null;var nr=Date;nr.now||(nr={now:function(){return+new Date}});var xr=0,Tr=/\blang(?:uage)?-([\w.]+)(?!\S)/,Bt=/\bprettyprint\b/,Mt=/\bprettyprinted\b/,Wt=/pre|xmp/i,cr=/^code$/i,qt=/^(?:pre|code|xmp)$/i,kt={};function Pr(){for(var $t=I.PR_SHOULD_USE_CONTINUATION?nr.now()+250:1/0;xr<Se.length&&nr.now()<$t;xr++){for(var yr=Se[xr],An=kt,Y=yr;Y=Y.previousSibling;){var ie=Y.nodeType,Ot=(ie===7||ie===8)&&Y.nodeValue;if(Ot?!/^\??prettify\b/.test(Ot):ie!==3||/\S/.test(Y.nodeValue))break;if(Ot){An={},Ot.replace(/\b(\w+)=([\w:.%+-]+)/g,function(ht,Sn,Bn){An[Sn]=Bn});break}}var fe=yr.className;if((An!==kt||Bt.test(fe))&&!Mt.test(fe)){for(var Ke=!1,Wr=yr.parentNode;Wr;Wr=Wr.parentNode){var ct=Wr.tagName;if(qt.test(ct)&&Wr.className&&Bt.test(Wr.className)){Ke=!0;break}}if(!Ke){yr.className+=" prettyprinted";var Dt=An.lang;if(!Dt){Dt=fe.match(Tr);var Kt;!Dt&&(Kt=_e(yr))&&cr.test(Kt.tagName)&&(Dt=Kt.className.match(Tr)),Dt&&(Dt=Dt[1])}var Oe;if(Wt.test(yr.tagName))Oe=1;else{var Ve=yr.currentStyle,at=ae.defaultView,Pt=Ve?Ve.whiteSpace:at&&at.getComputedStyle?at.getComputedStyle(yr,null).getPropertyValue("white-space"):0;Oe=Pt&&Pt.substring(0,3)==="pre"}var Le=An.linenums;(Le=Le==="true"||+Le)||(Le=fe.match(/\blinenums\b(?::(\d+))?/),Le=Le?Le[1]&&Le[1].length?+Le[1]:!0:!1),Le&&vr(yr,Le,Oe);var Kr={langExtension:Dt,sourceNode:yr,numberLines:Le,pre:Oe,sourceCode:null,basePos:null,spans:null,decorations:null};ar(Kr)}}}xr<Se.length?I.setTimeout(Pr,250):typeof le=="function"&&le()}Pr()}var ve=I.PR={createSimpleLexer:ut,registerLangHandler:fr,sourceDecorator:Ft,PR_ATTRIB_NAME:M,PR_ATTRIB_VALUE:ye,PR_COMMENT:De,PR_DECLARATION:Pe,PR_KEYWORD:oe,PR_LITERAL:Qe,PR_NOCODE:Te,PR_PLAIN:qe,PR_PUNCTUATION:Ue,PR_SOURCE:pe,PR_STRING:se,PR_TAG:st,PR_TYPE:He,prettyPrintOne:Ie?I.prettyPrintOne=Vr:Me=Vr,prettyPrint:de=Ie?I.prettyPrint=ur:de=ur},At=I.define;typeof At=="function"&&At.amd&&At("google-code-prettify",[],function(){return ve})})()},25769:function(wn,Sr,je){"use strict";var Ie=je(98040),mt={"text/plain":"Text","text/html":"Url",default:"Text"},Fe="Copy to clipboard: #{key}, Enter";function Me(I){var Be=(/mac os x/i.test(navigator.userAgent)?"\u2318":"Ctrl")+"+C";return I.replace(/#{\s*key\s*}/g,Be)}function de(I,Be){var R,u,C,H,w,L,B=!1;Be||(Be={}),R=Be.debug||!1;try{C=Ie(),H=document.createRange(),w=document.getSelection(),L=document.createElement("span"),L.textContent=I,L.ariaHidden="true",L.style.all="unset",L.style.position="fixed",L.style.top=0,L.style.clip="rect(0, 0, 0, 0)",L.style.whiteSpace="pre",L.style.webkitUserSelect="text",L.style.MozUserSelect="text",L.style.msUserSelect="text",L.style.userSelect="text",L.addEventListener("copy",function(K){if(K.stopPropagation(),Be.format)if(K.preventDefault(),typeof K.clipboardData=="undefined"){R&&console.warn("unable to use e.clipboardData"),R&&console.warn("trying IE specific stuff"),window.clipboardData.clearData();var V=mt[Be.format]||mt.default;window.clipboardData.setData(V,I)}else K.clipboardData.clearData(),K.clipboardData.setData(Be.format,I);Be.onCopy&&(K.preventDefault(),Be.onCopy(K.clipboardData))}),document.body.appendChild(L),H.selectNodeContents(L),w.addRange(H);var k=document.execCommand("copy");if(!k)throw new Error("copy command was unsuccessful");B=!0}catch(K){R&&console.error("unable to copy using execCommand: ",K),R&&console.warn("trying IE specific stuff");try{window.clipboardData.setData(Be.format||"text",I),Be.onCopy&&Be.onCopy(window.clipboardData),B=!0}catch(V){R&&console.error("unable to copy using clipboardData: ",V),R&&console.error("falling back to prompt"),u=Me("message"in Be?Be.message:Fe),window.prompt(u,I)}}finally{w&&(typeof w.removeRange=="function"?w.removeRange(H):w.removeAllRanges()),L&&document.body.removeChild(L),C()}return B}wn.exports=de},64270:function(wn){(function(Sr,je){wn.exports=je()})(this,function(){"use strict";var Sr=function(E,p){return Sr=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(T,S){T.__proto__=S}||function(T,S){for(var te in S)Object.prototype.hasOwnProperty.call(S,te)&&(T[te]=S[te])},Sr(E,p)};function je(E,p){if(typeof p!="function"&&p!==null)throw new TypeError("Class extends value "+String(p)+" is not a constructor or null");Sr(E,p);function T(){this.constructor=E}E.prototype=p===null?Object.create(p):(T.prototype=p.prototype,new T)}var Ie=function(){return Ie=Object.assign||function(p){for(var T,S=1,te=arguments.length;S<te;S++){T=arguments[S];for(var Ce in T)Object.prototype.hasOwnProperty.call(T,Ce)&&(p[Ce]=T[Ce])}return p},Ie.apply(this,arguments)};function mt(E,p,T,S){function te(Ce){return Ce instanceof T?Ce:new T(function($e){$e(Ce)})}return new(T||(T=Promise))(function(Ce,$e){function yt(lr){try{er(S.next(lr))}catch(mr){$e(mr)}}function vt(lr){try{er(S.throw(lr))}catch(mr){$e(mr)}}function er(lr){lr.done?Ce(lr.value):te(lr.value).then(yt,vt)}er((S=S.apply(E,p||[])).next())})}function Fe(E,p){var T={label:0,sent:function(){if(Ce[0]&1)throw Ce[1];return Ce[1]},trys:[],ops:[]},S,te,Ce,$e;return $e={next:yt(0),throw:yt(1),return:yt(2)},typeof Symbol=="function"&&($e[Symbol.iterator]=function(){return this}),$e;function yt(er){return function(lr){return vt([er,lr])}}function vt(er){if(S)throw new TypeError("Generator is already executing.");for(;T;)try{if(S=1,te&&(Ce=er[0]&2?te.return:er[0]?te.throw||((Ce=te.return)&&Ce.call(te),0):te.next)&&!(Ce=Ce.call(te,er[1])).done)return Ce;switch(te=0,Ce&&(er=[er[0]&2,Ce.value]),er[0]){case 0:case 1:Ce=er;break;case 4:return T.label++,{value:er[1],done:!1};case 5:T.label++,te=er[1],er=[0];continue;case 7:er=T.ops.pop(),T.trys.pop();continue;default:if(Ce=T.trys,!(Ce=Ce.length>0&&Ce[Ce.length-1])&&(er[0]===6||er[0]===2)){T=0;continue}if(er[0]===3&&(!Ce||er[1]>Ce[0]&&er[1]<Ce[3])){T.label=er[1];break}if(er[0]===6&&T.label<Ce[1]){T.label=Ce[1],Ce=er;break}if(Ce&&T.label<Ce[2]){T.label=Ce[2],T.ops.push(er);break}Ce[2]&&T.ops.pop(),T.trys.pop();continue}er=p.call(E,T)}catch(lr){er=[6,lr],te=0}finally{S=Ce=0}if(er[0]&5)throw er[1];return{value:er[0]?er[1]:void 0,done:!0}}}function Me(E,p,T){if(T||arguments.length===2)for(var S=0,te=p.length,Ce;S<te;S++)(Ce||!(S in p))&&(Ce||(Ce=Array.prototype.slice.call(p,0,S)),Ce[S]=p[S]);return E.concat(Ce||p)}for(var de=function(){function E(p,T,S,te){this.left=p,this.top=T,this.width=S,this.height=te}return E.prototype.add=function(p,T,S,te){return new E(this.left+p,this.top+T,this.width+S,this.height+te)},E.fromClientRect=function(p,T){return new E(T.left+p.windowBounds.left,T.top+p.windowBounds.top,T.width,T.height)},E.fromDOMRectList=function(p,T){var S=Array.from(T).find(function(te){return te.width!==0});return S?new E(S.left+p.windowBounds.left,S.top+p.windowBounds.top,S.width,S.height):E.EMPTY},E.EMPTY=new E(0,0,0,0),E}(),I=function(E,p){return de.fromClientRect(E,p.getBoundingClientRect())},Be=function(E){var p=E.body,T=E.documentElement;if(!p||!T)throw new Error("Unable to get document size");var S=Math.max(Math.max(p.scrollWidth,T.scrollWidth),Math.max(p.offsetWidth,T.offsetWidth),Math.max(p.clientWidth,T.clientWidth)),te=Math.max(Math.max(p.scrollHeight,T.scrollHeight),Math.max(p.offsetHeight,T.offsetHeight),Math.max(p.clientHeight,T.clientHeight));return new de(0,0,S,te)},R=function(E){for(var p=[],T=0,S=E.length;T<S;){var te=E.charCodeAt(T++);if(te>=55296&&te<=56319&&T<S){var Ce=E.charCodeAt(T++);(Ce&64512)===56320?p.push(((te&1023)<<10)+(Ce&1023)+65536):(p.push(te),T--)}else p.push(te)}return p},u=function(){for(var E=[],p=0;p<arguments.length;p++)E[p]=arguments[p];if(String.fromCodePoint)return String.fromCodePoint.apply(String,E);var T=E.length;if(!T)return"";for(var S=[],te=-1,Ce="";++te<T;){var $e=E[te];$e<=65535?S.push($e):($e-=65536,S.push(($e>>10)+55296,$e%1024+56320)),(te+1===T||S.length>16384)&&(Ce+=String.fromCharCode.apply(String,S),S.length=0)}return Ce},C="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",H=typeof Uint8Array=="undefined"?[]:new Uint8Array(256),w=0;w<C.length;w++)H[C.charCodeAt(w)]=w;for(var L="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",B=typeof Uint8Array=="undefined"?[]:new Uint8Array(256),k=0;k<L.length;k++)B[L.charCodeAt(k)]=k;for(var K=function(E){var p=E.length*.75,T=E.length,S,te=0,Ce,$e,yt,vt;E[E.length-1]==="="&&(p--,E[E.length-2]==="="&&p--);var er=typeof ArrayBuffer!="undefined"&&typeof Uint8Array!="undefined"&&typeof Uint8Array.prototype.slice!="undefined"?new ArrayBuffer(p):new Array(p),lr=Array.isArray(er)?er:new Uint8Array(er);for(S=0;S<T;S+=4)Ce=B[E.charCodeAt(S)],$e=B[E.charCodeAt(S+1)],yt=B[E.charCodeAt(S+2)],vt=B[E.charCodeAt(S+3)],lr[te++]=Ce<<2|$e>>4,lr[te++]=($e&15)<<4|yt>>2,lr[te++]=(yt&3)<<6|vt&63;return er},V=function(E){for(var p=E.length,T=[],S=0;S<p;S+=2)T.push(E[S+1]<<8|E[S]);return T},P=function(E){for(var p=E.length,T=[],S=0;S<p;S+=4)T.push(E[S+3]<<24|E[S+2]<<16|E[S+1]<<8|E[S]);return T},G=5,Z=11,se=2,oe=Z-G,De=65536>>G,He=1<<G,Qe=He-1,Ue=1024>>G,qe=De+Ue,st=qe,Pe=32,pe=st+Pe,M=65536>>Z,ye=1<<oe,Te=ye-1,me=function(E,p,T){return E.slice?E.slice(p,T):new Uint16Array(Array.prototype.slice.call(E,p,T))},xe=function(E,p,T){return E.slice?E.slice(p,T):new Uint32Array(Array.prototype.slice.call(E,p,T))},z=function(E,p){var T=K(E),S=Array.isArray(T)?P(T):new Uint32Array(T),te=Array.isArray(T)?V(T):new Uint16Array(T),Ce=24,$e=me(te,Ce/2,S[4]/2),yt=S[5]===2?me(te,(Ce+S[4])/2):xe(S,Math.ceil((Ce+S[4])/4));return new j(S[0],S[1],S[2],S[3],$e,yt)},j=function(){function E(p,T,S,te,Ce,$e){this.initialValue=p,this.errorValue=T,this.highStart=S,this.highValueIndex=te,this.index=Ce,this.data=$e}return E.prototype.get=function(p){var T;if(p>=0){if(p<55296||p>56319&&p<=65535)return T=this.index[p>>G],T=(T<<se)+(p&Qe),this.data[T];if(p<=65535)return T=this.index[De+(p-55296>>G)],T=(T<<se)+(p&Qe),this.data[T];if(p<this.highStart)return T=pe-M+(p>>Z),T=this.index[T],T+=p>>G&Te,T=this.index[T],T=(T<<se)+(p&Qe),this.data[T];if(p<=1114111)return this.data[this.highValueIndex]}return this.errorValue},E}(),ee="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",_e=typeof Uint8Array=="undefined"?[]:new Uint8Array(256),ut=0;ut<ee.length;ut++)_e[ee.charCodeAt(ut)]=ut;var Ft="KwAAAAAAAAAACA4AUD0AADAgAAACAAAAAAAIABAAGABAAEgAUABYAGAAaABgAGgAYgBqAF8AZwBgAGgAcQB5AHUAfQCFAI0AlQCdAKIAqgCyALoAYABoAGAAaABgAGgAwgDKAGAAaADGAM4A0wDbAOEA6QDxAPkAAQEJAQ8BFwF1AH0AHAEkASwBNAE6AUIBQQFJAVEBWQFhAWgBcAF4ATAAgAGGAY4BlQGXAZ8BpwGvAbUBvQHFAc0B0wHbAeMB6wHxAfkBAQIJAvEBEQIZAiECKQIxAjgCQAJGAk4CVgJeAmQCbAJ0AnwCgQKJApECmQKgAqgCsAK4ArwCxAIwAMwC0wLbAjAA4wLrAvMC+AIAAwcDDwMwABcDHQMlAy0DNQN1AD0DQQNJA0kDSQNRA1EDVwNZA1kDdQB1AGEDdQBpA20DdQN1AHsDdQCBA4kDkQN1AHUAmQOhA3UAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AKYDrgN1AHUAtgO+A8YDzgPWAxcD3gPjA+sD8wN1AHUA+wMDBAkEdQANBBUEHQQlBCoEFwMyBDgEYABABBcDSARQBFgEYARoBDAAcAQzAXgEgASIBJAEdQCXBHUAnwSnBK4EtgS6BMIEyAR1AHUAdQB1AHUAdQCVANAEYABgAGAAYABgAGAAYABgANgEYADcBOQEYADsBPQE/AQEBQwFFAUcBSQFLAU0BWQEPAVEBUsFUwVbBWAAYgVgAGoFcgV6BYIFigWRBWAAmQWfBaYFYABgAGAAYABgAKoFYACxBbAFuQW6BcEFwQXHBcEFwQXPBdMF2wXjBeoF8gX6BQIGCgYSBhoGIgYqBjIGOgZgAD4GRgZMBmAAUwZaBmAAYABgAGAAYABgAGAAYABgAGAAYABgAGIGYABpBnAGYABgAGAAYABgAGAAYABgAGAAYAB4Bn8GhQZgAGAAYAB1AHcDFQSLBmAAYABgAJMGdQA9A3UAmwajBqsGqwaVALMGuwbDBjAAywbSBtIG1QbSBtIG0gbSBtIG0gbdBuMG6wbzBvsGAwcLBxMHAwcbByMHJwcsBywHMQcsB9IGOAdAB0gHTgfSBkgHVgfSBtIG0gbSBtIG0gbSBtIG0gbSBiwHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAdgAGAALAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAdbB2MHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsB2kH0gZwB64EdQB1AHUAdQB1AHUAdQB1AHUHfQdgAIUHjQd1AHUAlQedB2AAYAClB6sHYACzB7YHvgfGB3UAzgfWBzMB3gfmB1EB7gf1B/0HlQENAQUIDQh1ABUIHQglCBcDLQg1CD0IRQhNCEEDUwh1AHUAdQBbCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIcAh3CHoIMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwAIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIgggwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAALAcsBywHLAcsBywHLAcsBywHLAcsB4oILAcsB44I0gaWCJ4Ipgh1AHUAqgiyCHUAdQB1AHUAdQB1AHUAdQB1AHUAtwh8AXUAvwh1AMUIyQjRCNkI4AjoCHUAdQB1AO4I9gj+CAYJDgkTCS0HGwkjCYIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiAAIAAAAFAAYABgAGIAXwBgAHEAdQBFAJUAogCyAKAAYABgAEIA4ABGANMA4QDxAMEBDwE1AFwBLAE6AQEBUQF4QkhCmEKoQrhCgAHIQsAB0MLAAcABwAHAAeDC6ABoAHDCwMMAAcABwAHAAdDDGMMAAcAB6MM4wwjDWMNow3jDaABoAGgAaABoAGgAaABoAGgAaABoAGgAaABoAGgAaABoAGgAaABoAEjDqABWw6bDqABpg6gAaABoAHcDvwOPA+gAaABfA/8DvwO/A78DvwO/A78DvwO/A78DvwO/A78DvwO/A78DvwO/A78DvwO/A78DvwO/A78DvwO/A78DpcPAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcAB9cPKwkyCToJMAB1AHUAdQBCCUoJTQl1AFUJXAljCWcJawkwADAAMAAwAHMJdQB2CX4JdQCECYoJjgmWCXUAngkwAGAAYABxAHUApgn3A64JtAl1ALkJdQDACTAAMAAwADAAdQB1AHUAdQB1AHUAdQB1AHUAowYNBMUIMAAwADAAMADICcsJ0wnZCRUE4QkwAOkJ8An4CTAAMAB1AAAKvwh1AAgKDwoXCh8KdQAwACcKLgp1ADYKqAmICT4KRgowADAAdQB1AE4KMAB1AFYKdQBeCnUAZQowADAAMAAwADAAMAAwADAAMAAVBHUAbQowADAAdQC5CXUKMAAwAHwBxAijBogEMgF9CoQKiASMCpQKmgqIBKIKqgquCogEDQG2Cr4KxgrLCjAAMADTCtsKCgHjCusK8Qr5CgELMAAwADAAMAB1AIsECQsRC3UANAEZCzAAMAAwADAAMAB1ACELKQswAHUANAExCzkLdQBBC0kLMABRC1kLMAAwADAAMAAwADAAdQBhCzAAMAAwAGAAYABpC3ELdwt/CzAAMACHC4sLkwubC58Lpwt1AK4Ltgt1APsDMAAwADAAMAAwADAAMAAwAL4LwwvLC9IL1wvdCzAAMADlC+kL8Qv5C/8LSQswADAAMAAwADAAMAAwADAAMAAHDDAAMAAwADAAMAAODBYMHgx1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1ACYMMAAwADAAdQB1AHUALgx1AHUAdQB1AHUAdQA2DDAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwAHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AD4MdQBGDHUAdQB1AHUAdQB1AEkMdQB1AHUAdQB1AFAMMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwAHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQBYDHUAdQB1AF8MMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUA+wMVBGcMMAAwAHwBbwx1AHcMfwyHDI8MMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAYABgAJcMMAAwADAAdQB1AJ8MlQClDDAAMACtDCwHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsB7UMLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AA0EMAC9DDAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAsBywHLAcsBywHLAcsBywHLQcwAMEMyAwsBywHLAcsBywHLAcsBywHLAcsBywHzAwwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwAHUAdQB1ANQM2QzhDDAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMABgAGAAYABgAGAAYABgAOkMYADxDGAA+AwADQYNYABhCWAAYAAODTAAMAAwADAAFg1gAGAAHg37AzAAMAAwADAAYABgACYNYAAsDTQNPA1gAEMNPg1LDWAAYABgAGAAYABgAGAAYABgAGAAUg1aDYsGVglhDV0NcQBnDW0NdQ15DWAAYABgAGAAYABgAGAAYABgAGAAYABgAGAAYABgAGAAlQCBDZUAiA2PDZcNMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAnw2nDTAAMAAwADAAMAAwAHUArw23DTAAMAAwADAAMAAwADAAMAAwADAAMAB1AL8NMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAB1AHUAdQB1AHUAdQDHDTAAYABgAM8NMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAA1w11ANwNMAAwAD0B5A0wADAAMAAwADAAMADsDfQN/A0EDgwOFA4wABsOMAAwADAAMAAwADAAMAAwANIG0gbSBtIG0gbSBtIG0gYjDigOwQUuDsEFMw7SBjoO0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIGQg5KDlIOVg7SBtIGXg5lDm0OdQ7SBtIGfQ6EDooOjQ6UDtIGmg6hDtIG0gaoDqwO0ga0DrwO0gZgAGAAYADEDmAAYAAkBtIGzA5gANIOYADaDokO0gbSBt8O5w7SBu8O0gb1DvwO0gZgAGAAxA7SBtIG0gbSBtIGYABgAGAAYAAED2AAsAUMD9IG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIGFA8sBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAccD9IGLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHJA8sBywHLAcsBywHLAccDywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywPLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAc0D9IG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIGLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAccD9IG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIGFA8sBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHPA/SBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gYUD0QPlQCVAJUAMAAwADAAMACVAJUAlQCVAJUAlQCVAEwPMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAA//8EAAQABAAEAAQABAAEAAQABAANAAMAAQABAAIABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQACgATABcAHgAbABoAHgAXABYAEgAeABsAGAAPABgAHABLAEsASwBLAEsASwBLAEsASwBLABgAGAAeAB4AHgATAB4AUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQABYAGwASAB4AHgAeAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAWAA0AEQAeAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAAQABAAEAAQABAAFAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAJABYAGgAbABsAGwAeAB0AHQAeAE8AFwAeAA0AHgAeABoAGwBPAE8ADgBQAB0AHQAdAE8ATwAXAE8ATwBPABYAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAB0AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAdAFAAUABQAFAAUABQAFAAUAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAFAAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAeAB4AHgAeAFAATwBAAE8ATwBPAEAATwBQAFAATwBQAB4AHgAeAB4AHgAeAB0AHQAdAB0AHgAdAB4ADgBQAFAAUABQAFAAHgAeAB4AHgAeAB4AHgBQAB4AUAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4ABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAJAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAkACQAJAAkACQAJAAkABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAeAB4AHgAeAFAAHgAeAB4AKwArAFAAUABQAFAAGABQACsAKwArACsAHgAeAFAAHgBQAFAAUAArAFAAKwAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4ABAAEAAQABAAEAAQABAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAUAAeAB4AHgAeAB4AHgBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAYAA0AKwArAB4AHgAbACsABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQADQAEAB4ABAAEAB4ABAAEABMABAArACsAKwArACsAKwArACsAVgBWAFYAVgBWAFYAVgBWAFYAVgBWAFYAVgBWAFYAVgBWAFYAVgBWAFYAVgBWAFYAVgBWAFYAKwArACsAKwBWAFYAVgBWAB4AHgArACsAKwArACsAKwArACsAKwArACsAHgAeAB4AHgAeAB4AHgAeAB4AGgAaABoAGAAYAB4AHgAEAAQABAAEAAQABAAEAAQABAAEAAQAEwAEACsAEwATAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABABLAEsASwBLAEsASwBLAEsASwBLABoAGQAZAB4AUABQAAQAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQABMAUAAEAAQABAAEAAQABAAEAB4AHgAEAAQABAAEAAQABABQAFAABAAEAB4ABAAEAAQABABQAFAASwBLAEsASwBLAEsASwBLAEsASwBQAFAAUAAeAB4AUAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwAeAFAABABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAAEAAQABAAEAFAAKwArACsAKwArACsAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAAEAAQAUABQAB4AHgAYABMAUAArACsABAAbABsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAFAABAAEAAQABAAEAFAABAAEAAQAUAAEAAQABAAEAAQAKwArAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAArACsAHgArAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwArACsAKwArACsAKwArAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAB4ABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAEAFAABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQAUAAEAAQABAAEAAQABAAEAFAAUABQAFAAUABQAFAAUABQAFAABAAEAA0ADQBLAEsASwBLAEsASwBLAEsASwBLAB4AUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAArAFAAUABQAFAAUABQAFAAUAArACsAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQACsAUAArACsAKwBQAFAAUABQACsAKwAEAFAABAAEAAQABAAEAAQABAArACsABAAEACsAKwAEAAQABABQACsAKwArACsAKwArACsAKwAEACsAKwArACsAUABQACsAUABQAFAABAAEACsAKwBLAEsASwBLAEsASwBLAEsASwBLAFAAUAAaABoAUABQAFAAUABQAEwAHgAbAFAAHgAEACsAKwAEAAQABAArAFAAUABQAFAAUABQACsAKwArACsAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQACsAUABQACsAUABQACsAUABQACsAKwAEACsABAAEAAQABAAEACsAKwArACsABAAEACsAKwAEAAQABAArACsAKwAEACsAKwArACsAKwArACsAUABQAFAAUAArAFAAKwArACsAKwArACsAKwBLAEsASwBLAEsASwBLAEsASwBLAAQABABQAFAAUAAEAB4AKwArACsAKwArACsAKwArACsAKwAEAAQABAArAFAAUABQAFAAUABQAFAAUABQACsAUABQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQACsAUABQACsAUABQAFAAUABQACsAKwAEAFAABAAEAAQABAAEAAQABAAEACsABAAEAAQAKwAEAAQABAArACsAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBQAFAABAAEACsAKwBLAEsASwBLAEsASwBLAEsASwBLAB4AGwArACsAKwArACsAKwArAFAABAAEAAQABAAEAAQAKwAEAAQABAArAFAAUABQAFAAUABQAFAAUAArACsAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAEAAQABAArACsABAAEACsAKwAEAAQABAArACsAKwArACsAKwArAAQABAAEACsAKwArACsAUABQACsAUABQAFAABAAEACsAKwBLAEsASwBLAEsASwBLAEsASwBLAB4AUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArAAQAUAArAFAAUABQAFAAUABQACsAKwArAFAAUABQACsAUABQAFAAUAArACsAKwBQAFAAKwBQACsAUABQACsAKwArAFAAUAArACsAKwBQAFAAUAArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArAAQABAAEAAQABAArACsAKwAEAAQABAArAAQABAAEAAQAKwArAFAAKwArACsAKwArACsABAArACsAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAUABQAFAAHgAeAB4AHgAeAB4AGwAeACsAKwArACsAKwAEAAQABAAEAAQAUABQAFAAUABQAFAAUABQACsAUABQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAUAAEAAQABAAEAAQABAAEACsABAAEAAQAKwAEAAQABAAEACsAKwArACsAKwArACsABAAEACsAUABQAFAAKwArACsAKwArAFAAUAAEAAQAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAKwAOAFAAUABQAFAAUABQAFAAHgBQAAQABAAEAA4AUABQAFAAUABQAFAAUABQACsAUABQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAKwArAAQAUAAEAAQABAAEAAQABAAEACsABAAEAAQAKwAEAAQABAAEACsAKwArACsAKwArACsABAAEACsAKwArACsAKwArACsAUAArAFAAUAAEAAQAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwBQAFAAKwArACsAKwArACsAKwArACsAKwArACsAKwAEAAQABAAEAFAAUABQAFAAUABQAFAAUABQACsAUABQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAFAABAAEAAQABAAEAAQABAArAAQABAAEACsABAAEAAQABABQAB4AKwArACsAKwBQAFAAUAAEAFAAUABQAFAAUABQAFAAUABQAFAABAAEACsAKwBLAEsASwBLAEsASwBLAEsASwBLAFAAUABQAFAAUABQAFAAUABQABoAUABQAFAAUABQAFAAKwAEAAQABAArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAUABQACsAUAArACsAUABQAFAAUABQAFAAUAArACsAKwAEACsAKwArACsABAAEAAQABAAEAAQAKwAEACsABAAEAAQABAAEAAQABAAEACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArAAQABAAeACsAKwArACsAKwArACsAKwArACsAKwArAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXAAqAFwAXAAqACoAKgAqACoAKgAqACsAKwArACsAGwBcAFwAXABcAFwAXABcACoAKgAqACoAKgAqACoAKgAeAEsASwBLAEsASwBLAEsASwBLAEsADQANACsAKwArACsAKwBcAFwAKwBcACsAXABcAFwAXABcACsAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcACsAXAArAFwAXABcAFwAXABcAFwAXABcAFwAKgBcAFwAKgAqACoAKgAqACoAKgAqACoAXAArACsAXABcAFwAXABcACsAXAArACoAKgAqACoAKgAqACsAKwBLAEsASwBLAEsASwBLAEsASwBLACsAKwBcAFwAXABcAFAADgAOAA4ADgAeAA4ADgAJAA4ADgANAAkAEwATABMAEwATAAkAHgATAB4AHgAeAAQABAAeAB4AHgAeAB4AHgBLAEsASwBLAEsASwBLAEsASwBLAFAAUABQAFAAUABQAFAAUABQAFAADQAEAB4ABAAeAAQAFgARABYAEQAEAAQAUABQAFAAUABQAFAAUABQACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQADQAEAAQABAAEAAQADQAEAAQAUABQAFAAUABQAAQABAAEAAQABAAEAAQABAAEAAQABAArAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAArAA0ADQAeAB4AHgAeAB4AHgAEAB4AHgAeAB4AHgAeACsAHgAeAA4ADgANAA4AHgAeAB4AHgAeAAkACQArACsAKwArACsAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgBcAEsASwBLAEsASwBLAEsASwBLAEsADQANAB4AHgAeAB4AXABcAFwAXABcAFwAKgAqACoAKgBcAFwAXABcACoAKgAqAFwAKgAqACoAXABcACoAKgAqACoAKgAqACoAXABcAFwAKgAqACoAKgBcAFwAXABcAFwAXABcAFwAXABcAFwAXABcACoAKgAqACoAKgAqACoAKgAqACoAKgAqAFwAKgBLAEsASwBLAEsASwBLAEsASwBLACoAKgAqACoAKgAqAFAAUABQAFAAUABQACsAUAArACsAKwArACsAUAArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAHgBQAFAAUABQAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFAAUABQAFAAUABQAFAAUABQACsAUABQAFAAUAArACsAUABQAFAAUABQAFAAUAArAFAAKwBQAFAAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAKwArAFAAUABQAFAAUABQAFAAKwBQACsAUABQAFAAUAArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsABAAEAAQAHgANAB4AHgAeAB4AHgAeAB4AUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAHgAeAB4AHgAeAB4AHgAeAB4AHgArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwBQAFAAUABQAFAAUAArACsADQBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAHgAeAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAANAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAWABEAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAA0ADQANAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAAQABAAEACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAANAA0AKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEACsAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUAArAAQABAArACsAKwArACsAKwArACsAKwArACsAKwBcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqAA0ADQAVAFwADQAeAA0AGwBcACoAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwAeAB4AEwATAA0ADQAOAB4AEwATAB4ABAAEAAQACQArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArAFAAUABQAFAAUAAEAAQAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQAUAArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwAEAAQABAAEAAQABAAEAAQABAAEAAQABAArACsAKwArAAQABAAEAAQABAAEAAQABAAEAAQABAAEACsAKwArACsAHgArACsAKwATABMASwBLAEsASwBLAEsASwBLAEsASwBcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXAArACsAXABcAFwAXABcACsAKwArACsAKwArACsAKwArACsAKwBcAFwAXABcAFwAXABcAFwAXABcAFwAXAArACsAKwArAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAXAArACsAKwAqACoAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAEAAQABAArACsAHgAeAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcACoAKgAqACoAKgAqACoAKgAqACoAKwAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKwArAAQASwBLAEsASwBLAEsASwBLAEsASwArACsAKwArACsAKwBLAEsASwBLAEsASwBLAEsASwBLACsAKwArACsAKwArACoAKgAqACoAKgAqACoAXAAqACoAKgAqACoAKgArACsABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsABAAEAAQABAAEAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAEAAQABABQAFAAUABQAFAAUABQACsAKwArACsASwBLAEsASwBLAEsASwBLAEsASwANAA0AHgANAA0ADQANAB4AHgAeAB4AHgAeAB4AHgAeAB4ABAAEAAQABAAEAAQABAAEAAQAHgAeAB4AHgAeAB4AHgAeAB4AKwArACsABAAEAAQAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAAEAAQABAAEAAQABABQAFAASwBLAEsASwBLAEsASwBLAEsASwBQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEACsAKwArACsAKwArACsAKwAeAB4AHgAeAFAAUABQAFAABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEACsAKwArAA0ADQANAA0ADQBLAEsASwBLAEsASwBLAEsASwBLACsAKwArAFAAUABQAEsASwBLAEsASwBLAEsASwBLAEsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAA0ADQBQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwBQAFAAUAAeAB4AHgAeAB4AHgAeAB4AKwArACsAKwArACsAKwArAAQABAAEAB4ABAAEAAQABAAEAAQABAAEAAQABAAEAAQABABQAFAAUABQAAQAUABQAFAAUABQAFAABABQAFAABAAEAAQAUAArACsAKwArACsABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEACsABAAEAAQABAAEAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwArAFAAUABQAFAAUABQACsAKwBQAFAAUABQAFAAUABQAFAAKwBQACsAUAArAFAAKwAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeACsAKwAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArAB4AHgAeAB4AHgAeAB4AHgBQAB4AHgAeAFAAUABQACsAHgAeAB4AHgAeAB4AHgAeAB4AHgBQAFAAUABQACsAKwAeAB4AHgAeAB4AHgArAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwArAFAAUABQACsAHgAeAB4AHgAeAB4AHgAOAB4AKwANAA0ADQANAA0ADQANAAkADQANAA0ACAAEAAsABAAEAA0ACQANAA0ADAAdAB0AHgAXABcAFgAXABcAFwAWABcAHQAdAB4AHgAUABQAFAANAAEAAQAEAAQABAAEAAQACQAaABoAGgAaABoAGgAaABoAHgAXABcAHQAVABUAHgAeAB4AHgAeAB4AGAAWABEAFQAVABUAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4ADQAeAA0ADQANAA0AHgANAA0ADQAHAB4AHgAeAB4AKwAEAAQABAAEAAQABAAEAAQABAAEAFAAUAArACsATwBQAFAAUABQAFAAHgAeAB4AFgARAE8AUABPAE8ATwBPAFAAUABQAFAAUAAeAB4AHgAWABEAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArABsAGwAbABsAGwAbABsAGgAbABsAGwAbABsAGwAbABsAGwAbABsAGwAbABsAGgAbABsAGwAbABoAGwAbABoAGwAbABsAGwAbABsAGwAbABsAGwAbABsAGwAbABsAGwAbAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQAHgAeAFAAGgAeAB0AHgBQAB4AGgAeAB4AHgAeAB4AHgAeAB4AHgBPAB4AUAAbAB4AHgBQAFAAUABQAFAAHgAeAB4AHQAdAB4AUAAeAFAAHgBQAB4AUABPAFAAUAAeAB4AHgAeAB4AHgAeAFAAUABQAFAAUAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAFAAHgBQAFAAUABQAE8ATwBQAFAAUABQAFAATwBQAFAATwBQAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAFAAUABQAFAATwBPAE8ATwBPAE8ATwBPAE8ATwBQAFAAUABQAFAAUABQAFAAUAAeAB4AUABQAFAAUABPAB4AHgArACsAKwArAB0AHQAdAB0AHQAdAB0AHQAdAB0AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB0AHgAdAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAdAB4AHQAdAB4AHgAeAB0AHQAeAB4AHQAeAB4AHgAdAB4AHQAbABsAHgAdAB4AHgAeAB4AHQAeAB4AHQAdAB0AHQAeAB4AHQAeAB0AHgAdAB0AHQAdAB0AHQAeAB0AHgAeAB4AHgAeAB0AHQAdAB0AHgAeAB4AHgAdAB0AHgAeAB4AHgAeAB4AHgAeAB4AHgAdAB4AHgAeAB0AHgAeAB4AHgAeAB0AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAdAB0AHgAeAB0AHQAdAB0AHgAeAB0AHQAeAB4AHQAdAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB0AHQAeAB4AHQAdAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHQAeAB4AHgAdAB4AHgAeAB4AHgAeAB4AHQAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB0AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AFAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeABYAEQAWABEAHgAeAB4AHgAeAB4AHQAeAB4AHgAeAB4AHgAeACUAJQAeAB4AHgAeAB4AHgAeAB4AHgAWABEAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AJQAlACUAJQAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAFAAHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHgAeAB4AHgAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAeAB4AHQAdAB0AHQAeAB4AHgAeAB4AHgAeAB4AHgAeAB0AHQAeAB0AHQAdAB0AHQAdAB0AHgAeAB4AHgAeAB4AHgAeAB0AHQAeAB4AHQAdAB4AHgAeAB4AHQAdAB4AHgAeAB4AHQAdAB0AHgAeAB0AHgAeAB0AHQAdAB0AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAdAB0AHQAdAB4AHgAeAB4AHgAeAB4AHgAeAB0AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAlACUAJQAlAB4AHQAdAB4AHgAdAB4AHgAeAB4AHQAdAB4AHgAeAB4AJQAlAB0AHQAlAB4AJQAlACUAIAAlACUAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAlACUAJQAeAB4AHgAeAB0AHgAdAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAdAB0AHgAdAB0AHQAeAB0AJQAdAB0AHgAdAB0AHgAdAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeACUAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHQAdAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAlACUAJQAlACUAJQAlACUAJQAlACUAJQAdAB0AHQAdACUAHgAlACUAJQAdACUAJQAdAB0AHQAlACUAHQAdACUAHQAdACUAJQAlAB4AHQAeAB4AHgAeAB0AHQAlAB0AHQAdAB0AHQAdACUAJQAlACUAJQAdACUAJQAgACUAHQAdACUAJQAlACUAJQAlACUAJQAeAB4AHgAlACUAIAAgACAAIAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB0AHgAeAB4AFwAXABcAFwAXABcAHgATABMAJQAeAB4AHgAWABEAFgARABYAEQAWABEAFgARABYAEQAWABEATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeABYAEQAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAWABEAFgARABYAEQAWABEAFgARAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AFgARABYAEQAWABEAFgARABYAEQAWABEAFgARABYAEQAWABEAFgARABYAEQAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAWABEAFgARAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AFgARAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAdAB0AHQAdAB0AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArACsAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AUABQAFAAUAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAEAAQABAAeAB4AKwArACsAKwArABMADQANAA0AUAATAA0AUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAUAANACsAKwArACsAKwArACsAKwArACsAKwArACsAKwAEAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQACsAUABQAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQACsAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXAA0ADQANAA0ADQANAA0ADQAeAA0AFgANAB4AHgAXABcAHgAeABcAFwAWABEAFgARABYAEQAWABEADQANAA0ADQATAFAADQANAB4ADQANAB4AHgAeAB4AHgAMAAwADQANAA0AHgANAA0AFgANAA0ADQANAA0ADQANAA0AHgANAB4ADQANAB4AHgAeACsAKwArACsAKwArACsAKwArACsAKwArACsAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACsAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAKwArACsAKwArACsAKwArACsAKwArACsAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwAlACUAJQAlACUAJQAlACUAJQAlACUAJQArACsAKwArAA0AEQARACUAJQBHAFcAVwAWABEAFgARABYAEQAWABEAFgARACUAJQAWABEAFgARABYAEQAWABEAFQAWABEAEQAlAFcAVwBXAFcAVwBXAFcAVwBXAAQABAAEAAQABAAEACUAVwBXAFcAVwA2ACUAJQBXAFcAVwBHAEcAJQAlACUAKwBRAFcAUQBXAFEAVwBRAFcAUQBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFEAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBRAFcAUQBXAFEAVwBXAFcAVwBXAFcAUQBXAFcAVwBXAFcAVwBRAFEAKwArAAQABAAVABUARwBHAFcAFQBRAFcAUQBXAFEAVwBRAFcAUQBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFEAVwBRAFcAUQBXAFcAVwBXAFcAVwBRAFcAVwBXAFcAVwBXAFEAUQBXAFcAVwBXABUAUQBHAEcAVwArACsAKwArACsAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAKwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAKwAlACUAVwBXAFcAVwAlACUAJQAlACUAJQAlACUAJQAlACsAKwArACsAKwArACsAKwArACsAKwArAFEAUQBRAFEAUQBRAFEAUQBRAFEAUQBRAFEAUQBRAFEAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQArAFcAVwBXAFcAVwBXAFcAVwBXAFcAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQBPAE8ATwBPAE8ATwBPAE8AJQBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXACUAJQAlAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAEcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAKwArACsAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAADQATAA0AUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABLAEsASwBLAEsASwBLAEsASwBLAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAFAABAAEAAQABAAeAAQABAAEAAQABAAEAAQABAAEAAQAHgBQAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AUABQAAQABABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAeAA0ADQANAA0ADQArACsAKwArACsAKwArACsAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAFAAUABQAFAAUABQAFAAUABQAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AUAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgBQAB4AHgAeAB4AHgAeAFAAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArACsAHgAeAB4AHgAeAB4AHgAeAB4AKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwAeAB4AUABQAFAAUABQAFAAUABQAFAAUABQAAQAUABQAFAABABQAFAAUABQAAQAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAEAAQABAAeAB4AHgAeAAQAKwArACsAUABQAFAAUABQAFAAHgAeABoAHgArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAADgAOABMAEwArACsAKwArACsAKwArACsABAAEAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAEAAQABAAEACsAKwArACsAKwArACsAKwANAA0ASwBLAEsASwBLAEsASwBLAEsASwArACsAKwArACsAKwAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABABQAFAAUABQAFAAUAAeAB4AHgBQAA4AUABQAAQAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAAEAA0ADQBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQAKwArACsAKwArACsAKwArACsAKwArAB4AWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYACsAKwArAAQAHgAeAB4AHgAeAB4ADQANAA0AHgAeAB4AHgArAFAASwBLAEsASwBLAEsASwBLAEsASwArACsAKwArAB4AHgBcAFwAXABcAFwAKgBcAFwAXABcAFwAXABcAFwAXABcAEsASwBLAEsASwBLAEsASwBLAEsAXABcAFwAXABcACsAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEACsAKwArACsAKwArACsAKwArAFAAUABQAAQAUABQAFAAUABQAFAAUABQAAQABAArACsASwBLAEsASwBLAEsASwBLAEsASwArACsAHgANAA0ADQBcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAKgAqACoAXAAqACoAKgBcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXAAqAFwAKgAqACoAXABcACoAKgBcAFwAXABcAFwAKgAqAFwAKgBcACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFwAXABcACoAKgBQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAA0ADQBQAFAAUAAEAAQAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUAArACsAUABQAFAAUABQAFAAKwArAFAAUABQAFAAUABQACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAHgAeACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAAQADQAEAAQAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAVABVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBUAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVACsAKwArACsAKwArACsAKwArACsAKwArAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAKwArACsAKwBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAKwArACsAKwAGAAYABgAGAAYABgAGAAYABgAGAAYABgAGAAYABgAGAAYABgAGAAYABgAGAAYABgAGAAYABgAGAAYABgAGAAYAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXACUAJQBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAJQAlACUAJQAlACUAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAKwArACsAKwArAFYABABWAFYAVgBWAFYAVgBWAFYAVgBWAB4AVgBWAFYAVgBWAFYAVgBWAFYAVgBWAFYAVgArAFYAVgBWAFYAVgArAFYAKwBWAFYAKwBWAFYAKwBWAFYAVgBWAFYAVgBWAFYAVgBWAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAEQAWAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUAAaAB4AKwArAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQAGAARABEAGAAYABMAEwAWABEAFAArACsAKwArACsAKwAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEACUAJQAlACUAJQAWABEAFgARABYAEQAWABEAFgARABYAEQAlACUAFgARACUAJQAlACUAJQAlACUAEQAlABEAKwAVABUAEwATACUAFgARABYAEQAWABEAJQAlACUAJQAlACUAJQAlACsAJQAbABoAJQArACsAKwArAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArAAcAKwATACUAJQAbABoAJQAlABYAEQAlACUAEQAlABEAJQBXAFcAVwBXAFcAVwBXAFcAVwBXABUAFQAlACUAJQATACUAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXABYAJQARACUAJQAlAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwAWACUAEQAlABYAEQARABYAEQARABUAVwBRAFEAUQBRAFEAUQBRAFEAUQBRAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAEcARwArACsAVwBXAFcAVwBXAFcAKwArAFcAVwBXAFcAVwBXACsAKwBXAFcAVwBXAFcAVwArACsAVwBXAFcAKwArACsAGgAbACUAJQAlABsAGwArAB4AHgAeAB4AHgAeAB4AKwArACsAKwArACsAKwArACsAKwAEAAQABAAQAB0AKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsADQANAA0AKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArAB4AHgAeAB4AHgAeAB4AHgAeAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgBQAFAAHgAeAB4AKwAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAAQAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwAEAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAA0AUABQAFAAUAArACsAKwArAFAAUABQAFAAUABQAFAAUAANAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAKwArACsAKwAeACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAKwArAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUAArACsAKwBQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwANAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAeAB4AUABQAFAAUABQAFAAUAArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUAArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArAA0AUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwAeAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAUABQAFAAUABQAAQABAAEACsABAAEACsAKwArACsAKwAEAAQABAAEAFAAUABQAFAAKwBQAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArAAQABAAEACsAKwArACsABABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArAA0ADQANAA0ADQANAA0ADQAeACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAeAFAAUABQAFAAUABQAFAAUAAeAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAArACsAKwArAFAAUABQAFAAUAANAA0ADQANAA0ADQAUACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsADQANAA0ADQANAA0ADQBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArAB4AHgAeAB4AKwArACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArAFAAUABQAFAAUABQAAQABAAEAAQAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUAArAAQABAANACsAKwBQAFAAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAAQABAAEAAQABAAEAAQABAAEAAQABABQAFAAUABQAB4AHgAeAB4AHgArACsAKwArACsAKwAEAAQABAAEAAQABAAEAA0ADQAeAB4AHgAeAB4AKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsABABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAEAAQABAAEAAQABAAEAAQABAAeAB4AHgANAA0ADQANACsAKwArACsAKwArACsAKwArACsAKwAeACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwArACsAKwBLAEsASwBLAEsASwBLAEsASwBLACsAKwArACsAKwArAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEACsASwBLAEsASwBLAEsASwBLAEsASwANAA0ADQANAFAABAAEAFAAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAeAA4AUAArACsAKwArACsAKwArACsAKwAEAFAAUABQAFAADQANAB4ADQAEAAQABAAEAB4ABAAEAEsASwBLAEsASwBLAEsASwBLAEsAUAAOAFAADQANAA0AKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAAQABAAEAAQABAANAA0AHgANAA0AHgAEACsAUABQAFAAUABQAFAAUAArAFAAKwBQAFAAUABQACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAA0AKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAAQABAAEAAQAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsABAAEAAQABAArAFAAUABQAFAAUABQAFAAUAArACsAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQACsAUABQACsAUABQAFAAUABQACsABAAEAFAABAAEAAQABAAEAAQABAArACsABAAEACsAKwAEAAQABAArACsAUAArACsAKwArACsAKwAEACsAKwArACsAKwBQAFAAUABQAFAABAAEACsAKwAEAAQABAAEAAQABAAEACsAKwArAAQABAAEAAQABAArACsAKwArACsAKwArACsAKwArACsABAAEAAQABAAEAAQABABQAFAAUABQAA0ADQANAA0AHgBLAEsASwBLAEsASwBLAEsASwBLAA0ADQArAB4ABABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwAEAAQABAAEAFAAUAAeAFAAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAArACsABAAEAAQABAAEAAQABAAEAAQADgANAA0AEwATAB4AHgAeAA0ADQANAA0ADQANAA0ADQANAA0ADQANAA0ADQANAFAAUABQAFAABAAEACsAKwAEAA0ADQAeAFAAKwArACsAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAFAAKwArACsAKwArACsAKwBLAEsASwBLAEsASwBLAEsASwBLACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAKwArACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACsAKwArACsASwBLAEsASwBLAEsASwBLAEsASwBcAFwADQANAA0AKgBQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAeACsAKwArACsASwBLAEsASwBLAEsASwBLAEsASwBQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAKwArAFAAKwArAFAAUABQAFAAUABQAFAAUAArAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQAKwAEAAQAKwArAAQABAAEAAQAUAAEAFAABAAEAA0ADQANACsAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAArACsABAAEAAQABAAEAAQABABQAA4AUAAEACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFAABAAEAAQABAAEAAQABAAEAAQABABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAFAABAAEAAQABAAOAB4ADQANAA0ADQAOAB4ABAArACsAKwArACsAKwArACsAUAAEAAQABAAEAAQABAAEAAQABAAEAAQAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAA0ADQANAFAADgAOAA4ADQANACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAAEACsABAAEAAQABAAEAAQABAAEAFAADQANAA0ADQANACsAKwArACsAKwArACsAKwArACsASwBLAEsASwBLAEsASwBLAEsASwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwAOABMAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAArAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQACsAUABQACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAArACsAKwAEACsABAAEACsABAAEAAQABAAEAAQABABQAAQAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAUABQAFAAUABQAFAAKwBQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQAKwAEAAQAKwAEAAQABAAEAAQAUAArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAeAB4AKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBQACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAB4AHgAeAB4AHgAeAB4AHgAaABoAGgAaAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArACsAKwArACsAKwArACsAKwArACsAKwArAA0AUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsADQANAA0ADQANACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAASABIAEgAQwBDAEMAUABQAFAAUABDAFAAUABQAEgAQwBIAEMAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAASABDAEMAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwAJAAkACQAJAAkACQAJABYAEQArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABIAEMAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwANAA0AKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArAAQABAAEAAQABAANACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAA0ADQANAB4AHgAeAB4AHgAeAFAAUABQAFAADQAeACsAKwArACsAKwArACsAKwArACsASwBLAEsASwBLAEsASwBLAEsASwArAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAANAA0AHgAeACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwAEAFAABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQAKwArACsAKwArACsAKwAEAAQABAAEAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAARwBHABUARwAJACsAKwArACsAKwArACsAKwArACsAKwAEAAQAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXACsAKwArACsAKwArACsAKwBXAFcAVwBXAFcAVwBXAFcAVwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAUQBRAFEAKwArACsAKwArACsAKwArACsAKwArACsAKwBRAFEAUQBRACsAKwArACsAKwArACsAKwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUAArACsAHgAEAAQADQAEAAQABAAEACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArACsAKwArACsAKwArACsAKwArAB4AHgAeAB4AHgAeAB4AKwArAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAAQABAAEAAQABAAeAB4AHgAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAB4AHgAEAAQABAAEAAQABAAEAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4ABAAEAAQABAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4ABAAEAAQAHgArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAKwArACsAKwArAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArACsAKwArACsAKwArACsAKwAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwBQAFAAKwArAFAAKwArAFAAUAArACsAUABQAFAAUAArAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeACsAUAArAFAAUABQAFAAUABQAFAAKwAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwBQAFAAUABQACsAKwBQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQACsAHgAeAFAAUABQAFAAUAArAFAAKwArACsAUABQAFAAUABQAFAAUAArAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAHgBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgBQAFAAUABQAFAAUABQAFAAUABQAFAAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAB4AHgAeAB4AHgAeAB4AHgAeACsAKwBLAEsASwBLAEsASwBLAEsASwBLAEsASwBLAEsASwBLAEsASwBLAEsASwBLAEsASwBLAEsASwBLAEsASwBLAEsASwBLAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAeAB4AHgAeAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAeAB4AHgAeAB4AHgAeAB4ABAAeAB4AHgAeAB4AHgAeAB4AHgAeAAQAHgAeAA0ADQANAA0AHgArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwAEAAQABAAEAAQAKwAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAAQABAAEAAQABAAEAAQAKwAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQAKwArAAQABAAEAAQABAAEAAQAKwAEAAQAKwAEAAQABAAEAAQAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwAEAAQABAAEAAQABAAEAFAAUABQAFAAUABQAFAAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwBQAB4AKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArABsAUABQAFAAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEACsAKwArACsAKwArACsAKwArAB4AHgAeAB4ABAAEAAQABAAEAAQABABQACsAKwArACsASwBLAEsASwBLAEsASwBLAEsASwArACsAKwArABYAFgArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAGgBQAFAAUAAaAFAAUABQAFAAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAeAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwBQAFAAUABQACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAKwBQACsAKwBQACsAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAKwBQACsAUAArACsAKwArACsAKwBQACsAKwArACsAUAArAFAAKwBQACsAUABQAFAAKwBQAFAAKwBQACsAKwBQACsAUAArAFAAKwBQACsAUAArAFAAUAArAFAAKwArAFAAUABQAFAAKwBQAFAAUABQAFAAUABQACsAUABQAFAAUAArAFAAUABQAFAAKwBQACsAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAUABQAFAAKwBQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwAeAB4AKwArACsAKwArACsAKwArACsAKwArACsAKwArAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8AJQAlACUAHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHgAeAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB4AHgAeACUAJQAlAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQApACkAKQApACkAKQApACkAKQApACkAKQApACkAKQApACkAKQApACkAKQApACkAKQApACkAJQAlACUAJQAlACAAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAeAB4AJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlAB4AHgAlACUAJQAlACUAHgAlACUAJQAlACUAIAAgACAAJQAlACAAJQAlACAAIAAgACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACEAIQAhACEAIQAlACUAIAAgACUAJQAgACAAIAAgACAAIAAgACAAIAAgACAAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAJQAlACUAIAAlACUAJQAlACAAIAAgACUAIAAgACAAJQAlACUAJQAlACUAJQAgACUAIAAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAHgAlAB4AJQAeACUAJQAlACUAJQAgACUAJQAlACUAHgAlAB4AHgAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlAB4AHgAeAB4AHgAeAB4AJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAeAB4AHgAeAB4AHgAeAB4AHgAeACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACAAIAAlACUAJQAlACAAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACAAJQAlACUAJQAgACAAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAHgAeAB4AHgAeAB4AHgAeACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAeAB4AHgAeAB4AHgAlACUAJQAlACUAJQAlACAAIAAgACUAJQAlACAAIAAgACAAIAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeABcAFwAXABUAFQAVAB4AHgAeAB4AJQAlACUAIAAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACAAIAAgACUAJQAlACUAJQAlACUAJQAlACAAJQAlACUAJQAlACUAJQAlACUAJQAlACAAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AJQAlACUAJQAlACUAJQAlACUAJQAlACUAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AJQAlACUAJQAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeACUAJQAlACUAJQAlACUAJQAeAB4AHgAeAB4AHgAeAB4AHgAeACUAJQAlACUAJQAlAB4AHgAeAB4AHgAeAB4AHgAlACUAJQAlACUAJQAlACUAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAgACUAJQAgACUAJQAlACUAJQAlACUAJQAgACAAIAAgACAAIAAgACAAJQAlACUAJQAlACUAIAAlACUAJQAlACUAJQAlACUAJQAgACAAIAAgACAAIAAgACAAIAAgACUAJQAgACAAIAAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAgACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACAAIAAlACAAIAAlACAAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAgACAAIAAlACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAJQAlAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAKwArAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXACUAJQBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwAlACUAJQAlACUAJQAlACUAJQAlACUAVwBXACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAKwAEACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAA==",Vt=50,vr=1,Yr=2,wr=3,fr=4,dn=5,ar=7,Vr=8,ur=9,ve=10,At=11,le=12,_=13,D=14,ae=15,We=16,ge=17,Se=18,gt=19,xt=20,Et=21,nr=22,xr=23,Tr=24,Bt=25,Mt=26,Wt=27,cr=28,qt=29,kt=30,Pr=31,$t=32,yr=33,An=34,Y=35,ie=36,Ot=37,fe=38,Ke=39,Wr=40,ct=41,Dt=42,Kt=43,Oe=[9001,65288],Ve="!",at="\xD7",Pt="\xF7",Le=z(Ft),Kr=[kt,ie],ht=[vr,Yr,wr,dn],Sn=[ve,Vr],Bn=[Wt,Mt],ri=ht.concat(Sn),ws=[fe,Ke,Wr,An,Y],Ci=[ae,_],Kn=function(E,p){p===void 0&&(p="strict");var T=[],S=[],te=[];return E.forEach(function(Ce,$e){var yt=Le.get(Ce);if(yt>Vt?(te.push(!0),yt-=Vt):te.push(!1),["normal","auto","loose"].indexOf(p)!==-1&&[8208,8211,12316,12448].indexOf(Ce)!==-1)return S.push($e),T.push(We);if(yt===fr||yt===At){if($e===0)return S.push($e),T.push(kt);var vt=T[$e-1];return ri.indexOf(vt)===-1?(S.push(S[$e-1]),T.push(vt)):(S.push($e),T.push(kt))}if(S.push($e),yt===Pr)return T.push(p==="strict"?Et:Ot);if(yt===Dt||yt===qt)return T.push(kt);if(yt===Kt)return Ce>=131072&&Ce<=196605||Ce>=196608&&Ce<=262141?T.push(Ot):T.push(kt);T.push(yt)}),[S,T,te]},Is=function(E,p,T,S){var te=S[T];if(Array.isArray(E)?E.indexOf(te)!==-1:E===te)for(var Ce=T;Ce<=S.length;){Ce++;var $e=S[Ce];if($e===p)return!0;if($e!==ve)break}if(te===ve)for(var Ce=T;Ce>0;){Ce--;var yt=S[Ce];if(Array.isArray(E)?E.indexOf(yt)!==-1:E===yt)for(var vt=T;vt<=S.length;){vt++;var $e=S[vt];if($e===p)return!0;if($e!==ve)break}if(yt!==ve)break}return!1},Aa=function(E,p){for(var T=E;T>=0;){var S=p[T];if(S===ve)T--;else return S}return 0},$i=function(E,p,T,S,te){if(T[S]===0)return at;var Ce=S-1;if(Array.isArray(te)&&te[Ce]===!0)return at;var $e=Ce-1,yt=Ce+1,vt=p[Ce],er=$e>=0?p[$e]:0,lr=p[yt];if(vt===Yr&&lr===wr)return at;if(ht.indexOf(vt)!==-1)return Ve;if(ht.indexOf(lr)!==-1||Sn.indexOf(lr)!==-1)return at;if(Aa(Ce,p)===Vr)return Pt;if(Le.get(E[Ce])===At||(vt===$t||vt===yr)&&Le.get(E[yt])===At||vt===ar||lr===ar||vt===ur||[ve,_,ae].indexOf(vt)===-1&&lr===ur||[ge,Se,gt,Tr,cr].indexOf(lr)!==-1||Aa(Ce,p)===nr||Is(xr,nr,Ce,p)||Is([ge,Se],Et,Ce,p)||Is(le,le,Ce,p))return at;if(vt===ve)return Pt;if(vt===xr||lr===xr)return at;if(lr===We||vt===We)return Pt;if([_,ae,Et].indexOf(lr)!==-1||vt===D||er===ie&&Ci.indexOf(vt)!==-1||vt===cr&&lr===ie||lr===xt||Kr.indexOf(lr)!==-1&&vt===Bt||Kr.indexOf(vt)!==-1&&lr===Bt||vt===Wt&&[Ot,$t,yr].indexOf(lr)!==-1||[Ot,$t,yr].indexOf(vt)!==-1&&lr===Mt||Kr.indexOf(vt)!==-1&&Bn.indexOf(lr)!==-1||Bn.indexOf(vt)!==-1&&Kr.indexOf(lr)!==-1||[Wt,Mt].indexOf(vt)!==-1&&(lr===Bt||[nr,ae].indexOf(lr)!==-1&&p[yt+1]===Bt)||[nr,ae].indexOf(vt)!==-1&&lr===Bt||vt===Bt&&[Bt,cr,Tr].indexOf(lr)!==-1)return at;if([Bt,cr,Tr,ge,Se].indexOf(lr)!==-1)for(var mr=Ce;mr>=0;){var Gr=p[mr];if(Gr===Bt)return at;if([cr,Tr].indexOf(Gr)!==-1)mr--;else break}if([Wt,Mt].indexOf(lr)!==-1)for(var mr=[ge,Se].indexOf(vt)!==-1?$e:Ce;mr>=0;){var Gr=p[mr];if(Gr===Bt)return at;if([cr,Tr].indexOf(Gr)!==-1)mr--;else break}if(fe===vt&&[fe,Ke,An,Y].indexOf(lr)!==-1||[Ke,An].indexOf(vt)!==-1&&[Ke,Wr].indexOf(lr)!==-1||[Wr,Y].indexOf(vt)!==-1&&lr===Wr||ws.indexOf(vt)!==-1&&[xt,Mt].indexOf(lr)!==-1||ws.indexOf(lr)!==-1&&vt===Wt||Kr.indexOf(vt)!==-1&&Kr.indexOf(lr)!==-1||vt===Tr&&Kr.indexOf(lr)!==-1||Kr.concat(Bt).indexOf(vt)!==-1&&lr===nr&&Oe.indexOf(E[yt])===-1||Kr.concat(Bt).indexOf(lr)!==-1&&vt===Se)return at;if(vt===ct&&lr===ct){for(var Pn=T[Ce],pn=1;Pn>0&&(Pn--,p[Pn]===ct);)pn++;if(pn%2!==0)return at}return vt===$t&&lr===yr?at:Pt},Ui=function(E,p){p||(p={lineBreak:"normal",wordBreak:"normal"});var T=Kn(E,p.lineBreak),S=T[0],te=T[1],Ce=T[2];(p.wordBreak==="break-all"||p.wordBreak==="break-word")&&(te=te.map(function(yt){return[Bt,kt,Dt].indexOf(yt)!==-1?Ot:yt}));var $e=p.wordBreak==="keep-all"?Ce.map(function(yt,vt){return yt&&E[vt]>=19968&&E[vt]<=40959}):void 0;return[S,te,$e]},mn=function(){function E(p,T,S,te){this.codePoints=p,this.required=T===Ve,this.start=S,this.end=te}return E.prototype.slice=function(){return u.apply(void 0,this.codePoints.slice(this.start,this.end))},E}(),ln=function(E,p){var T=R(E),S=Ui(T,p),te=S[0],Ce=S[1],$e=S[2],yt=T.length,vt=0,er=0;return{next:function(){if(er>=yt)return{done:!0,value:null};for(var lr=at;er<yt&&(lr=$i(T,Ce,te,++er,$e))===at;);if(lr!==at||er===yt){var mr=new mn(T,lr,vt,er);return vt=er,{value:mr,done:!1}}return{done:!0,value:null}}}},fn=1,ni=2,Ei=4,Gi=8,ks=10,Js=47,ia=92,Ea=9,Mi=32,sa=34,ds=61,Do=35,Va=36,Qi=37,Yi=39,Xi=40,ps=41,ji=95,Vn=45,vo=33,Ks=60,yo=62,cl=64,Ju=91,Zo=93,xA=61,Bc=123,Dl=63,la=125,Ts=124,Ra=126,VA=128,oo=65533,bs=42,Es=43,Ua=44,hl=58,Wa=59,_o=46,fl=0,ko=8,CA=11,Rr=14,hi=31,Ws=127,Pa=-1,WA=48,uA=97,Ao=101,pi=102,ms=117,Ka=122,Ns=65,Cs=69,dl=70,$a=85,Oa=90,In=function(E){return E>=WA&&E<=57},Ba=function(E){return E>=55296&&E<=57343},Rs=function(E){return In(E)||E>=Ns&&E<=dl||E>=uA&&E<=pi},Ro=function(E){return E>=uA&&E<=Ka},$A=function(E){return E>=Ns&&E<=Oa},SA=function(E){return Ro(E)||$A(E)},YA=function(E){return E>=VA},cA=function(E){return E===ks||E===Ea||E===Mi},Ms=function(E){return SA(E)||YA(E)||E===ji},IA=function(E){return Ms(E)||In(E)||E===Vn},ua=function(E){return E>=fl&&E<=ko||E===CA||E>=Rr&&E<=hi||E===Ws},ca=function(E,p){return E!==ia?!1:p!==ks},xa=function(E,p,T){return E===Vn?Ms(p)||ca(p,T):Ms(E)?!0:!!(E===ia&&ca(E,p))},Ca=function(E,p,T){return E===Es||E===Vn?In(p)?!0:p===_o&&In(T):In(E===_o?p:E)},Si=function(E){var p=0,T=1;(E[p]===Es||E[p]===Vn)&&(E[p]===Vn&&(T=-1),p++);for(var S=[];In(E[p]);)S.push(E[p++]);var te=S.length?parseInt(u.apply(void 0,S),10):0;E[p]===_o&&p++;for(var Ce=[];In(E[p]);)Ce.push(E[p++]);var $e=Ce.length,yt=$e?parseInt(u.apply(void 0,Ce),10):0;(E[p]===Cs||E[p]===Ao)&&p++;var vt=1;(E[p]===Es||E[p]===Vn)&&(E[p]===Vn&&(vt=-1),p++);for(var er=[];In(E[p]);)er.push(E[p++]);var lr=er.length?parseInt(u.apply(void 0,er),10):0;return T*(te+yt*Math.pow(10,-$e))*Math.pow(10,vt*lr)},hA={type:2},fA={type:3},TA={type:4},Na={type:13},oi={type:8},kl={type:21},gn={type:9},ha={type:10},ga={type:11},Ya={type:12},Za={type:14},wo={type:23},gi={type:1},Uo={type:25},Rl={type:24},Jl={type:26},qa={type:27},pl={type:28},Ul={type:29},bo={type:31},Eo={type:32},Po=function(){function E(){this._value=[]}return E.prototype.write=function(p){this._value=this._value.concat(R(p))},E.prototype.read=function(){for(var p=[],T=this.consumeToken();T!==Eo;)p.push(T),T=this.consumeToken();return p},E.prototype.consumeToken=function(){var p=this.consumeCodePoint();switch(p){case sa:return this.consumeStringToken(sa);case Do:var T=this.peekCodePoint(0),S=this.peekCodePoint(1),te=this.peekCodePoint(2);if(IA(T)||ca(S,te)){var Ce=xa(T,S,te)?ni:fn,$e=this.consumeName();return{type:5,value:$e,flags:Ce}}break;case Va:if(this.peekCodePoint(0)===ds)return this.consumeCodePoint(),Na;break;case Yi:return this.consumeStringToken(Yi);case Xi:return hA;case ps:return fA;case bs:if(this.peekCodePoint(0)===ds)return this.consumeCodePoint(),Za;break;case Es:if(Ca(p,this.peekCodePoint(0),this.peekCodePoint(1)))return this.reconsumeCodePoint(p),this.consumeNumericToken();break;case Ua:return TA;case Vn:var yt=p,vt=this.peekCodePoint(0),er=this.peekCodePoint(1);if(Ca(yt,vt,er))return this.reconsumeCodePoint(p),this.consumeNumericToken();if(xa(yt,vt,er))return this.reconsumeCodePoint(p),this.consumeIdentLikeToken();if(vt===Vn&&er===yo)return this.consumeCodePoint(),this.consumeCodePoint(),Rl;break;case _o:if(Ca(p,this.peekCodePoint(0),this.peekCodePoint(1)))return this.reconsumeCodePoint(p),this.consumeNumericToken();break;case Js:if(this.peekCodePoint(0)===bs)for(this.consumeCodePoint();;){var lr=this.consumeCodePoint();if(lr===bs&&(lr=this.consumeCodePoint(),lr===Js))return this.consumeToken();if(lr===Pa)return this.consumeToken()}break;case hl:return Jl;case Wa:return qa;case Ks:if(this.peekCodePoint(0)===vo&&this.peekCodePoint(1)===Vn&&this.peekCodePoint(2)===Vn)return this.consumeCodePoint(),this.consumeCodePoint(),Uo;break;case cl:var mr=this.peekCodePoint(0),Gr=this.peekCodePoint(1),Pn=this.peekCodePoint(2);if(xa(mr,Gr,Pn)){var $e=this.consumeName();return{type:7,value:$e}}break;case Ju:return pl;case ia:if(ca(p,this.peekCodePoint(0)))return this.reconsumeCodePoint(p),this.consumeIdentLikeToken();break;case Zo:return Ul;case xA:if(this.peekCodePoint(0)===ds)return this.consumeCodePoint(),oi;break;case Bc:return ga;case la:return Ya;case ms:case $a:var pn=this.peekCodePoint(0),Ln=this.peekCodePoint(1);return pn===Es&&(Rs(Ln)||Ln===Dl)&&(this.consumeCodePoint(),this.consumeUnicodeRangeToken()),this.reconsumeCodePoint(p),this.consumeIdentLikeToken();case Ts:if(this.peekCodePoint(0)===ds)return this.consumeCodePoint(),gn;if(this.peekCodePoint(0)===Ts)return this.consumeCodePoint(),kl;break;case Ra:if(this.peekCodePoint(0)===ds)return this.consumeCodePoint(),ha;break;case Pa:return Eo}return cA(p)?(this.consumeWhiteSpace(),bo):In(p)?(this.reconsumeCodePoint(p),this.consumeNumericToken()):Ms(p)?(this.reconsumeCodePoint(p),this.consumeIdentLikeToken()):{type:6,value:u(p)}},E.prototype.consumeCodePoint=function(){var p=this._value.shift();return typeof p=="undefined"?-1:p},E.prototype.reconsumeCodePoint=function(p){this._value.unshift(p)},E.prototype.peekCodePoint=function(p){return p>=this._value.length?-1:this._value[p]},E.prototype.consumeUnicodeRangeToken=function(){for(var p=[],T=this.consumeCodePoint();Rs(T)&&p.length<6;)p.push(T),T=this.consumeCodePoint();for(var S=!1;T===Dl&&p.length<6;)p.push(T),T=this.consumeCodePoint(),S=!0;if(S){var te=parseInt(u.apply(void 0,p.map(function(vt){return vt===Dl?WA:vt})),16),Ce=parseInt(u.apply(void 0,p.map(function(vt){return vt===Dl?dl:vt})),16);return{type:30,start:te,end:Ce}}var $e=parseInt(u.apply(void 0,p),16);if(this.peekCodePoint(0)===Vn&&Rs(this.peekCodePoint(1))){this.consumeCodePoint(),T=this.consumeCodePoint();for(var yt=[];Rs(T)&&yt.length<6;)yt.push(T),T=this.consumeCodePoint();var Ce=parseInt(u.apply(void 0,yt),16);return{type:30,start:$e,end:Ce}}else return{type:30,start:$e,end:$e}},E.prototype.consumeIdentLikeToken=function(){var p=this.consumeName();return p.toLowerCase()==="url"&&this.peekCodePoint(0)===Xi?(this.consumeCodePoint(),this.consumeUrlToken()):this.peekCodePoint(0)===Xi?(this.consumeCodePoint(),{type:19,value:p}):{type:20,value:p}},E.prototype.consumeUrlToken=function(){var p=[];if(this.consumeWhiteSpace(),this.peekCodePoint(0)===Pa)return{type:22,value:""};var T=this.peekCodePoint(0);if(T===Yi||T===sa){var S=this.consumeStringToken(this.consumeCodePoint());return S.type===0&&(this.consumeWhiteSpace(),this.peekCodePoint(0)===Pa||this.peekCodePoint(0)===ps)?(this.consumeCodePoint(),{type:22,value:S.value}):(this.consumeBadUrlRemnants(),wo)}for(;;){var te=this.consumeCodePoint();if(te===Pa||te===ps)return{type:22,value:u.apply(void 0,p)};if(cA(te))return this.consumeWhiteSpace(),this.peekCodePoint(0)===Pa||this.peekCodePoint(0)===ps?(this.consumeCodePoint(),{type:22,value:u.apply(void 0,p)}):(this.consumeBadUrlRemnants(),wo);if(te===sa||te===Yi||te===Xi||ua(te))return this.consumeBadUrlRemnants(),wo;if(te===ia)if(ca(te,this.peekCodePoint(0)))p.push(this.consumeEscapedCodePoint());else return this.consumeBadUrlRemnants(),wo;else p.push(te)}},E.prototype.consumeWhiteSpace=function(){for(;cA(this.peekCodePoint(0));)this.consumeCodePoint()},E.prototype.consumeBadUrlRemnants=function(){for(;;){var p=this.consumeCodePoint();if(p===ps||p===Pa)return;ca(p,this.peekCodePoint(0))&&this.consumeEscapedCodePoint()}},E.prototype.consumeStringSlice=function(p){for(var T=5e4,S="";p>0;){var te=Math.min(T,p);S+=u.apply(void 0,this._value.splice(0,te)),p-=te}return this._value.shift(),S},E.prototype.consumeStringToken=function(p){var T="",S=0;do{var te=this._value[S];if(te===Pa||te===void 0||te===p)return T+=this.consumeStringSlice(S),{type:0,value:T};if(te===ks)return this._value.splice(0,S),gi;if(te===ia){var Ce=this._value[S+1];Ce!==Pa&&Ce!==void 0&&(Ce===ks?(T+=this.consumeStringSlice(S),S=-1,this._value.shift()):ca(te,Ce)&&(T+=this.consumeStringSlice(S),T+=u(this.consumeEscapedCodePoint()),S=-1))}S++}while(!0)},E.prototype.consumeNumber=function(){var p=[],T=Ei,S=this.peekCodePoint(0);for((S===Es||S===Vn)&&p.push(this.consumeCodePoint());In(this.peekCodePoint(0));)p.push(this.consumeCodePoint());S=this.peekCodePoint(0);var te=this.peekCodePoint(1);if(S===_o&&In(te))for(p.push(this.consumeCodePoint(),this.consumeCodePoint()),T=Gi;In(this.peekCodePoint(0));)p.push(this.consumeCodePoint());S=this.peekCodePoint(0),te=this.peekCodePoint(1);var Ce=this.peekCodePoint(2);if((S===Cs||S===Ao)&&((te===Es||te===Vn)&&In(Ce)||In(te)))for(p.push(this.consumeCodePoint(),this.consumeCodePoint()),T=Gi;In(this.peekCodePoint(0));)p.push(this.consumeCodePoint());return[Si(p),T]},E.prototype.consumeNumericToken=function(){var p=this.consumeNumber(),T=p[0],S=p[1],te=this.peekCodePoint(0),Ce=this.peekCodePoint(1),$e=this.peekCodePoint(2);if(xa(te,Ce,$e)){var yt=this.consumeName();return{type:15,number:T,flags:S,unit:yt}}return te===Qi?(this.consumeCodePoint(),{type:16,number:T,flags:S}):{type:17,number:T,flags:S}},E.prototype.consumeEscapedCodePoint=function(){var p=this.consumeCodePoint();if(Rs(p)){for(var T=u(p);Rs(this.peekCodePoint(0))&&T.length<6;)T+=u(this.consumeCodePoint());cA(this.peekCodePoint(0))&&this.consumeCodePoint();var S=parseInt(T,16);return S===0||Ba(S)||S>1114111?oo:S}return p===Pa?oo:p},E.prototype.consumeName=function(){for(var p="";;){var T=this.consumeCodePoint();if(IA(T))p+=u(T);else if(ca(T,this.peekCodePoint(0)))p+=u(this.consumeEscapedCodePoint());else return this.reconsumeCodePoint(T),p}},E}(),ZA=function(){function E(p){this._tokens=p}return E.create=function(p){var T=new Po;return T.write(p),new E(T.read())},E.parseValue=function(p){return E.create(p).parseComponentValue()},E.parseValues=function(p){return E.create(p).parseComponentValues()},E.prototype.parseComponentValue=function(){for(var p=this.consumeToken();p.type===31;)p=this.consumeToken();if(p.type===32)throw new SyntaxError("Error parsing CSS component value, unexpected EOF");this.reconsumeToken(p);var T=this.consumeComponentValue();do p=this.consumeToken();while(p.type===31);if(p.type===32)return T;throw new SyntaxError("Error parsing CSS component value, multiple values found when expecting only one")},E.prototype.parseComponentValues=function(){for(var p=[];;){var T=this.consumeComponentValue();if(T.type===32)return p;p.push(T),p.push()}},E.prototype.consumeComponentValue=function(){var p=this.consumeToken();switch(p.type){case 11:case 28:case 2:return this.consumeSimpleBlock(p.type);case 19:return this.consumeFunction(p)}return p},E.prototype.consumeSimpleBlock=function(p){for(var T={type:p,values:[]},S=this.consumeToken();;){if(S.type===32||qA(S,p))return T;this.reconsumeToken(S),T.values.push(this.consumeComponentValue()),S=this.consumeToken()}},E.prototype.consumeFunction=function(p){for(var T={name:p.value,values:[],type:18};;){var S=this.consumeToken();if(S.type===32||S.type===3)return T;this.reconsumeToken(S),T.values.push(this.consumeComponentValue())}},E.prototype.consumeToken=function(){var p=this._tokens.shift();return typeof p=="undefined"?Eo:p},E.prototype.reconsumeToken=function(p){this._tokens.unshift(p)},E}(),FA=function(E){return E.type===15},dA=function(E){return E.type===17},Ki=function(E){return E.type===20},Nn=function(E){return E.type===0},Ai=function(E,p){return Ki(E)&&E.value===p},Bs=function(E){return E.type!==31},fi=function(E){return E.type!==31&&E.type!==4},mi=function(E){var p=[],T=[];return E.forEach(function(S){if(S.type===4){if(T.length===0)throw new Error("Error parsing function args, zero tokens for arg");p.push(T),T=[];return}S.type!==31&&T.push(S)}),T.length&&p.push(T),p},qA=function(E,p){return p===11&&E.type===12||p===28&&E.type===29?!0:p===2&&E.type===3},za=function(E){return E.type===17||E.type===15},Fs=function(E){return E.type===16||za(E)},gl=function(E){return E.length>1?[E[0],E[1]]:[E[0]]},Xa={type:17,number:0,flags:Ei},Xc={type:16,number:50,flags:Ei},ml={type:16,number:100,flags:Ei},pA=function(E,p,T){var S=E[0],te=E[1];return[Ji(S,p),Ji(typeof te!="undefined"?te:S,T)]},Ji=function(E,p){if(E.type===16)return E.number/100*p;if(FA(E))switch(E.unit){case"rem":case"em":return 16*E.number;case"px":default:return E.number}return E.number},vl="deg",xc="grad",Cc="rad",ma="turn",LA={name:"angle",parse:function(E,p){if(p.type===15)switch(p.unit){case vl:return Math.PI*p.number/180;case xc:return Math.PI/200*p.number;case Cc:return p.number;case ma:return Math.PI*2*p.number}throw new Error("Unsupported angle type")}},XA=function(E){return E.type===15&&(E.unit===vl||E.unit===xc||E.unit===Cc||E.unit===ma)},$0=function(E){var p=E.filter(Ki).map(function(T){return T.value}).join(" ");switch(p){case"to bottom right":case"to right bottom":case"left top":case"top left":return[Xa,Xa];case"to top":case"bottom":return Ja(0);case"to bottom left":case"to left bottom":case"right top":case"top right":return[Xa,ml];case"to right":case"left":return Ja(90);case"to top left":case"to left top":case"right bottom":case"bottom right":return[ml,ml];case"to bottom":case"top":return Ja(180);case"to top right":case"to right top":case"left bottom":case"bottom left":return[ml,Xa];case"to left":case"right":return Ja(270)}return 0},Ja=function(E){return Math.PI*E/180},DA={name:"color",parse:function(E,p){if(p.type===18){var T=eo[p.name];if(typeof T=="undefined")throw new Error('Attempting to parse an unsupported color function "'+p.name+'"');return T(E,p.values)}if(p.type===5){if(p.value.length===3){var S=p.value.substring(0,1),te=p.value.substring(1,2),Ce=p.value.substring(2,3);return Bo(parseInt(S+S,16),parseInt(te+te,16),parseInt(Ce+Ce,16),1)}if(p.value.length===4){var S=p.value.substring(0,1),te=p.value.substring(1,2),Ce=p.value.substring(2,3),$e=p.value.substring(3,4);return Bo(parseInt(S+S,16),parseInt(te+te,16),parseInt(Ce+Ce,16),parseInt($e+$e,16)/255)}if(p.value.length===6){var S=p.value.substring(0,2),te=p.value.substring(2,4),Ce=p.value.substring(4,6);return Bo(parseInt(S,16),parseInt(te,16),parseInt(Ce,16),1)}if(p.value.length===8){var S=p.value.substring(0,2),te=p.value.substring(2,4),Ce=p.value.substring(4,6),$e=p.value.substring(6,8);return Bo(parseInt(S,16),parseInt(te,16),parseInt(Ce,16),parseInt($e,16)/255)}}if(p.type===20){var yt=Sa[p.value.toUpperCase()];if(typeof yt!="undefined")return yt}return Sa.TRANSPARENT}},ea=function(E){return(255&E)===0},Ma=function(E){var p=255&E,T=255&E>>8,S=255&E>>16,te=255&E>>24;return p<255?"rgba("+te+","+S+","+T+","+p/255+")":"rgb("+te+","+S+","+T+")"},Bo=function(E,p,T,S){return(E<<24|p<<16|T<<8|Math.round(S*255)<<0)>>>0},Sc=function(E,p){if(E.type===17)return E.number;if(E.type===16){var T=p===3?1:255;return p===3?E.number/100*T:Math.round(E.number/100*T)}return 0},Jc=function(E,p){var T=p.filter(fi);if(T.length===3){var S=T.map(Sc),te=S[0],Ce=S[1],$e=S[2];return Bo(te,Ce,$e,1)}if(T.length===4){var yt=T.map(Sc),te=yt[0],Ce=yt[1],$e=yt[2],vt=yt[3];return Bo(te,Ce,$e,vt)}return 0};function lo(E,p,T){return T<0&&(T+=1),T>=1&&(T-=1),T<1/6?(p-E)*T*6+E:T<1/2?p:T<2/3?(p-E)*6*(2/3-T)+E:E}var ec=function(E,p){var T=p.filter(fi),S=T[0],te=T[1],Ce=T[2],$e=T[3],yt=(S.type===17?Ja(S.number):LA.parse(E,S))/(Math.PI*2),vt=Fs(te)?te.number/100:0,er=Fs(Ce)?Ce.number/100:0,lr=typeof $e!="undefined"&&Fs($e)?Ji($e,1):1;if(vt===0)return Bo(er*255,er*255,er*255,1);var mr=er<=.5?er*(vt+1):er+vt-er*vt,Gr=er*2-mr,Pn=lo(Gr,mr,yt+1/3),pn=lo(Gr,mr,yt),Ln=lo(Gr,mr,yt-1/3);return Bo(Pn*255,pn*255,Ln*255,lr)},eo={hsl:ec,hsla:ec,rgb:Jc,rgba:Jc},xo=function(E,p){return DA.parse(E,ZA.create(p).parseComponentValue())},Sa={ALICEBLUE:4042850303,ANTIQUEWHITE:4209760255,AQUA:16777215,AQUAMARINE:2147472639,AZURE:4043309055,BEIGE:4126530815,BISQUE:4293182719,BLACK:255,BLANCHEDALMOND:4293643775,BLUE:65535,BLUEVIOLET:2318131967,BROWN:2771004159,BURLYWOOD:3736635391,CADETBLUE:1604231423,CHARTREUSE:2147418367,CHOCOLATE:3530104575,CORAL:4286533887,CORNFLOWERBLUE:1687547391,CORNSILK:4294499583,CRIMSON:3692313855,CYAN:16777215,DARKBLUE:35839,DARKCYAN:9145343,DARKGOLDENROD:3095837695,DARKGRAY:2846468607,DARKGREEN:6553855,DARKGREY:2846468607,DARKKHAKI:3182914559,DARKMAGENTA:2332068863,DARKOLIVEGREEN:1433087999,DARKORANGE:4287365375,DARKORCHID:2570243327,DARKRED:2332033279,DARKSALMON:3918953215,DARKSEAGREEN:2411499519,DARKSLATEBLUE:1211993087,DARKSLATEGRAY:793726975,DARKSLATEGREY:793726975,DARKTURQUOISE:13554175,DARKVIOLET:2483082239,DEEPPINK:4279538687,DEEPSKYBLUE:12582911,DIMGRAY:1768516095,DIMGREY:1768516095,DODGERBLUE:512819199,FIREBRICK:2988581631,FLORALWHITE:4294635775,FORESTGREEN:579543807,FUCHSIA:4278255615,GAINSBORO:3705462015,GHOSTWHITE:4177068031,GOLD:4292280575,GOLDENROD:3668254975,GRAY:2155905279,GREEN:8388863,GREENYELLOW:2919182335,GREY:2155905279,HONEYDEW:4043305215,HOTPINK:4285117695,INDIANRED:3445382399,INDIGO:1258324735,IVORY:4294963455,KHAKI:4041641215,LAVENDER:3873897215,LAVENDERBLUSH:4293981695,LAWNGREEN:2096890111,LEMONCHIFFON:4294626815,LIGHTBLUE:2916673279,LIGHTCORAL:4034953471,LIGHTCYAN:3774873599,LIGHTGOLDENRODYELLOW:4210742015,LIGHTGRAY:3553874943,LIGHTGREEN:2431553791,LIGHTGREY:3553874943,LIGHTPINK:4290167295,LIGHTSALMON:4288707327,LIGHTSEAGREEN:548580095,LIGHTSKYBLUE:2278488831,LIGHTSLATEGRAY:2005441023,LIGHTSLATEGREY:2005441023,LIGHTSTEELBLUE:2965692159,LIGHTYELLOW:4294959359,LIME:16711935,LIMEGREEN:852308735,LINEN:4210091775,MAGENTA:4278255615,MAROON:2147483903,MEDIUMAQUAMARINE:1724754687,MEDIUMBLUE:52735,MEDIUMORCHID:3126187007,MEDIUMPURPLE:2473647103,MEDIUMSEAGREEN:1018393087,MEDIUMSLATEBLUE:2070474495,MEDIUMSPRINGGREEN:16423679,MEDIUMTURQUOISE:1221709055,MEDIUMVIOLETRED:3340076543,MIDNIGHTBLUE:421097727,MINTCREAM:4127193855,MISTYROSE:4293190143,MOCCASIN:4293178879,NAVAJOWHITE:4292783615,NAVY:33023,OLDLACE:4260751103,OLIVE:2155872511,OLIVEDRAB:1804477439,ORANGE:4289003775,ORANGERED:4282712319,ORCHID:3664828159,PALEGOLDENROD:4008225535,PALEGREEN:2566625535,PALETURQUOISE:2951671551,PALEVIOLETRED:3681588223,PAPAYAWHIP:4293907967,PEACHPUFF:4292524543,PERU:3448061951,PINK:4290825215,PLUM:3718307327,POWDERBLUE:2967529215,PURPLE:2147516671,REBECCAPURPLE:1714657791,RED:4278190335,ROSYBROWN:3163525119,ROYALBLUE:1097458175,SADDLEBROWN:2336560127,SALMON:4202722047,SANDYBROWN:4104413439,SEAGREEN:780883967,SEASHELL:4294307583,SIENNA:2689740287,SILVER:3233857791,SKYBLUE:2278484991,SLATEBLUE:1784335871,SLATEGRAY:1887473919,SLATEGREY:1887473919,SNOW:4294638335,SPRINGGREEN:16744447,STEELBLUE:1182971135,TAN:3535047935,TEAL:8421631,THISTLE:3636451583,TOMATO:4284696575,TRANSPARENT:0,TURQUOISE:1088475391,VIOLET:4001558271,WHEAT:4125012991,WHITE:4294967295,WHITESMOKE:4126537215,YELLOW:4294902015,YELLOWGREEN:2597139199},Y0={name:"background-clip",initialValue:"border-box",prefix:!1,type:1,parse:function(E,p){return p.map(function(T){if(Ki(T))switch(T.value){case"padding-box":return 1;case"content-box":return 2}return 0})}},Oo={name:"background-color",initialValue:"transparent",prefix:!1,type:3,format:"color"},Iu=function(E,p){var T=DA.parse(E,p[0]),S=p[1];return S&&Fs(S)?{color:T,stop:S}:{color:T,stop:null}},Tu=function(E,p){var T=E[0],S=E[E.length-1];T.stop===null&&(T.stop=Xa),S.stop===null&&(S.stop=ml);for(var te=[],Ce=0,$e=0;$e<E.length;$e++){var yt=E[$e].stop;if(yt!==null){var vt=Ji(yt,p);vt>Ce?te.push(vt):te.push(Ce),Ce=vt}else te.push(null)}for(var er=null,$e=0;$e<te.length;$e++){var lr=te[$e];if(lr===null)er===null&&(er=$e);else if(er!==null){for(var mr=$e-er,Gr=te[er-1],Pn=(lr-Gr)/(mr+1),pn=1;pn<=mr;pn++)te[er+pn-1]=Pn*pn;er=null}}return E.map(function(Ln,Fi){var Wn=Ln.color;return{color:Wn,stop:Math.max(Math.min(1,te[Fi]/p),0)}})},eu=function(E,p,T){var S=p/2,te=T/2,Ce=Ji(E[0],p)-S,$e=te-Ji(E[1],T);return(Math.atan2($e,Ce)+Math.PI*2)%(Math.PI*2)},Z0=function(E,p,T){var S=typeof E=="number"?E:eu(E,p,T),te=Math.abs(p*Math.sin(S))+Math.abs(T*Math.cos(S)),Ce=p/2,$e=T/2,yt=te/2,vt=Math.sin(S-Math.PI/2)*yt,er=Math.cos(S-Math.PI/2)*yt;return[te,Ce-er,Ce+er,$e-vt,$e+vt]},Ga=function(E,p){return Math.sqrt(E*E+p*p)},e0=function(E,p,T,S,te){var Ce=[[0,0],[0,p],[E,0],[E,p]];return Ce.reduce(function($e,yt){var vt=yt[0],er=yt[1],lr=Ga(T-vt,S-er);return(te?lr<$e.optimumDistance:lr>$e.optimumDistance)?{optimumCorner:yt,optimumDistance:lr}:$e},{optimumDistance:te?1/0:-1/0,optimumCorner:null}).optimumCorner},tu=function(E,p,T,S,te){var Ce=0,$e=0;switch(E.size){case 0:E.shape===0?Ce=$e=Math.min(Math.abs(p),Math.abs(p-S),Math.abs(T),Math.abs(T-te)):E.shape===1&&(Ce=Math.min(Math.abs(p),Math.abs(p-S)),$e=Math.min(Math.abs(T),Math.abs(T-te)));break;case 2:if(E.shape===0)Ce=$e=Math.min(Ga(p,T),Ga(p,T-te),Ga(p-S,T),Ga(p-S,T-te));else if(E.shape===1){var yt=Math.min(Math.abs(T),Math.abs(T-te))/Math.min(Math.abs(p),Math.abs(p-S)),vt=e0(S,te,p,T,!0),er=vt[0],lr=vt[1];Ce=Ga(er-p,(lr-T)/yt),$e=yt*Ce}break;case 1:E.shape===0?Ce=$e=Math.max(Math.abs(p),Math.abs(p-S),Math.abs(T),Math.abs(T-te)):E.shape===1&&(Ce=Math.max(Math.abs(p),Math.abs(p-S)),$e=Math.max(Math.abs(T),Math.abs(T-te)));break;case 3:if(E.shape===0)Ce=$e=Math.max(Ga(p,T),Ga(p,T-te),Ga(p-S,T),Ga(p-S,T-te));else if(E.shape===1){var yt=Math.max(Math.abs(T),Math.abs(T-te))/Math.max(Math.abs(p),Math.abs(p-S)),mr=e0(S,te,p,T,!1),er=mr[0],lr=mr[1];Ce=Ga(er-p,(lr-T)/yt),$e=yt*Ce}break}return Array.isArray(E.size)&&(Ce=Ji(E.size[0],S),$e=E.size.length===2?Ji(E.size[1],te):Ce),[Ce,$e]},ru=function(E,p){var T=Ja(180),S=[];return mi(p).forEach(function(te,Ce){if(Ce===0){var $e=te[0];if($e.type===20&&$e.value==="to"){T=$0(te);return}else if(XA($e)){T=LA.parse(E,$e);return}}var yt=Iu(E,te);S.push(yt)}),{angle:T,stops:S,type:1}},gA=function(E,p){var T=Ja(180),S=[];return mi(p).forEach(function(te,Ce){if(Ce===0){var $e=te[0];if($e.type===20&&["top","left","right","bottom"].indexOf($e.value)!==-1){T=$0(te);return}else if(XA($e)){T=(LA.parse(E,$e)+Ja(270))%Ja(360);return}}var yt=Iu(E,te);S.push(yt)}),{angle:T,stops:S,type:1}},t0=function(E,p){var T=Ja(180),S=[],te=1,Ce=0,$e=3,yt=[];return mi(p).forEach(function(vt,er){var lr=vt[0];if(er===0){if(Ki(lr)&&lr.value==="linear"){te=1;return}else if(Ki(lr)&&lr.value==="radial"){te=2;return}}if(lr.type===18){if(lr.name==="from"){var mr=DA.parse(E,lr.values[0]);S.push({stop:Xa,color:mr})}else if(lr.name==="to"){var mr=DA.parse(E,lr.values[0]);S.push({stop:ml,color:mr})}else if(lr.name==="color-stop"){var Gr=lr.values.filter(fi);if(Gr.length===2){var mr=DA.parse(E,Gr[1]),Pn=Gr[0];dA(Pn)&&S.push({stop:{type:16,number:Pn.number*100,flags:Pn.flags},color:mr})}}}}),te===1?{angle:(T+Ja(180))%Ja(360),stops:S,type:te}:{size:$e,shape:Ce,stops:S,position:yt,type:te}},JA="closest-side",r0="farthest-side",q0="closest-corner",Fu="farthest-corner",n0="circle",i0="ellipse",Ic="cover",Pl="contain",ss=function(E,p){var T=0,S=3,te=[],Ce=[];return mi(p).forEach(function($e,yt){var vt=!0;if(yt===0){var er=!1;vt=$e.reduce(function(mr,Gr){if(er)if(Ki(Gr))switch(Gr.value){case"center":return Ce.push(Xc),mr;case"top":case"left":return Ce.push(Xa),mr;case"right":case"bottom":return Ce.push(ml),mr}else(Fs(Gr)||za(Gr))&&Ce.push(Gr);else if(Ki(Gr))switch(Gr.value){case n0:return T=0,!1;case i0:return T=1,!1;case"at":return er=!0,!1;case JA:return S=0,!1;case Ic:case r0:return S=1,!1;case Pl:case q0:return S=2,!1;case Fu:return S=3,!1}else if(za(Gr)||Fs(Gr))return Array.isArray(S)||(S=[]),S.push(Gr),!1;return mr},vt)}if(vt){var lr=Iu(E,$e);te.push(lr)}}),{size:S,shape:T,stops:te,position:Ce,type:2}},qo=function(E,p){var T=0,S=3,te=[],Ce=[];return mi(p).forEach(function($e,yt){var vt=!0;if(yt===0?vt=$e.reduce(function(lr,mr){if(Ki(mr))switch(mr.value){case"center":return Ce.push(Xc),!1;case"top":case"left":return Ce.push(Xa),!1;case"right":case"bottom":return Ce.push(ml),!1}else if(Fs(mr)||za(mr))return Ce.push(mr),!1;return lr},vt):yt===1&&(vt=$e.reduce(function(lr,mr){if(Ki(mr))switch(mr.value){case n0:return T=0,!1;case i0:return T=1,!1;case Pl:case JA:return S=0,!1;case r0:return S=1,!1;case q0:return S=2,!1;case Ic:case Fu:return S=3,!1}else if(za(mr)||Fs(mr))return Array.isArray(S)||(S=[]),S.push(mr),!1;return lr},vt)),vt){var er=Iu(E,$e);te.push(er)}}),{size:S,shape:T,stops:te,position:Ce,type:2}},mA=function(E){return E.type===1},X0=function(E){return E.type===2},kA={name:"image",parse:function(E,p){if(p.type===22){var T={url:p.value,type:0};return E.cache.addImage(p.value),T}if(p.type===18){var S=Qa[p.name];if(typeof S=="undefined")throw new Error('Attempting to parse an unsupported image function "'+p.name+'"');return S(E,p.values)}throw new Error("Unsupported image type "+p.type)}};function Ol(E){return!(E.type===20&&E.value==="none")&&(E.type!==18||!!Qa[E.name])}var Qa={"linear-gradient":ru,"-moz-linear-gradient":gA,"-ms-linear-gradient":gA,"-o-linear-gradient":gA,"-webkit-linear-gradient":gA,"radial-gradient":ss,"-moz-radial-gradient":qo,"-ms-radial-gradient":qo,"-o-radial-gradient":qo,"-webkit-radial-gradient":qo,"-webkit-gradient":t0},to={name:"background-image",initialValue:"none",type:1,prefix:!1,parse:function(E,p){if(p.length===0)return[];var T=p[0];return T.type===20&&T.value==="none"?[]:p.filter(function(S){return fi(S)&&Ol(S)}).map(function(S){return kA.parse(E,S)})}},Tc={name:"background-origin",initialValue:"border-box",prefix:!1,type:1,parse:function(E,p){return p.map(function(T){if(Ki(T))switch(T.value){case"padding-box":return 1;case"content-box":return 2}return 0})}},Zr={name:"background-position",initialValue:"0% 0%",type:1,prefix:!1,parse:function(E,p){return mi(p).map(function(T){return T.filter(Fs)}).map(gl)}},RA={name:"background-repeat",initialValue:"repeat",prefix:!1,type:1,parse:function(E,p){return mi(p).map(function(T){return T.filter(Ki).map(function(S){return S.value}).join(" ")}).map(nu)}},nu=function(E){switch(E){case"no-repeat":return 1;case"repeat-x":case"repeat no-repeat":return 2;case"repeat-y":case"no-repeat repeat":return 3;case"repeat":default:return 0}},fa;(function(E){E.AUTO="auto",E.CONTAIN="contain",E.COVER="cover"})(fa||(fa={}));var iu={name:"background-size",initialValue:"0",prefix:!1,type:1,parse:function(E,p){return mi(p).map(function(T){return T.filter(No)})}},No=function(E){return Ki(E)||Fs(E)},Mo=function(E){return{name:"border-"+E+"-color",initialValue:"transparent",prefix:!1,type:3,format:"color"}},Jh=Mo("top"),su=Mo("right"),tc=Mo("bottom"),vA=Mo("left"),el=function(E){return{name:"border-radius-"+E,initialValue:"0 0",prefix:!1,type:1,parse:function(p,T){return gl(T.filter(Fs))}}},ef=el("top-left"),Nl=el("top-right"),Qo=el("bottom-right"),Xo=el("bottom-left"),as=function(E){return{name:"border-"+E+"-style",initialValue:"solid",prefix:!1,type:2,parse:function(p,T){switch(T){case"none":return 0;case"dashed":return 2;case"dotted":return 3;case"double":return 4}return 1}}},yl=as("top"),Ml=as("right"),au=as("bottom"),ou=as("left"),Au=function(E){return{name:"border-"+E+"-width",initialValue:"0",type:0,prefix:!1,parse:function(p,T){return FA(T)?T.number:0}}},Fc=Au("top"),_l=Au("right"),J0=Au("bottom"),Lc=Au("left"),Ho={name:"color",initialValue:"transparent",prefix:!1,type:3,format:"color"},lu={name:"direction",initialValue:"ltr",prefix:!1,type:2,parse:function(E,p){switch(p){case"rtl":return 1;case"ltr":default:return 0}}},s0={name:"display",initialValue:"inline-block",prefix:!1,type:1,parse:function(E,p){return p.filter(Ki).reduce(function(T,S){return T|eh(S.value)},0)}},eh=function(E){switch(E){case"block":case"-webkit-box":return 2;case"inline":return 4;case"run-in":return 8;case"flow":return 16;case"flow-root":return 32;case"table":return 64;case"flex":case"-webkit-flex":return 128;case"grid":case"-ms-grid":return 256;case"ruby":return 512;case"subgrid":return 1024;case"list-item":return 2048;case"table-row-group":return 4096;case"table-header-group":return 8192;case"table-footer-group":return 16384;case"table-row":return 32768;case"table-cell":return 65536;case"table-column-group":return 131072;case"table-column":return 262144;case"table-caption":return 524288;case"ruby-base":return 1048576;case"ruby-text":return 2097152;case"ruby-base-container":return 4194304;case"ruby-text-container":return 8388608;case"contents":return 16777216;case"inline-block":return 33554432;case"inline-list-item":return 67108864;case"inline-table":return 134217728;case"inline-flex":return 268435456;case"inline-grid":return 536870912}return 0},rc={name:"float",initialValue:"none",prefix:!1,type:2,parse:function(E,p){switch(p){case"left":return 1;case"right":return 2;case"inline-start":return 3;case"inline-end":return 4}return 0}},a0={name:"letter-spacing",initialValue:"0",prefix:!1,type:0,parse:function(E,p){return p.type===20&&p.value==="normal"?0:p.type===17||p.type===15?p.number:0}},uu;(function(E){E.NORMAL="normal",E.STRICT="strict"})(uu||(uu={}));var tf={name:"line-break",initialValue:"normal",prefix:!1,type:2,parse:function(E,p){switch(p){case"strict":return uu.STRICT;case"normal":default:return uu.NORMAL}}},Dc={name:"line-height",initialValue:"normal",prefix:!1,type:4},o0=function(E,p){return Ki(E)&&E.value==="normal"?1.2*p:E.type===17?p*E.number:Fs(E)?Ji(E,p):p},rf={name:"list-style-image",initialValue:"none",type:0,prefix:!1,parse:function(E,p){return p.type===20&&p.value==="none"?null:kA.parse(E,p)}},th={name:"list-style-position",initialValue:"outside",prefix:!1,type:2,parse:function(E,p){switch(p){case"inside":return 0;case"outside":default:return 1}}},A0={name:"list-style-type",initialValue:"none",prefix:!1,type:2,parse:function(E,p){switch(p){case"disc":return 0;case"circle":return 1;case"square":return 2;case"decimal":return 3;case"cjk-decimal":return 4;case"decimal-leading-zero":return 5;case"lower-roman":return 6;case"upper-roman":return 7;case"lower-greek":return 8;case"lower-alpha":return 9;case"upper-alpha":return 10;case"arabic-indic":return 11;case"armenian":return 12;case"bengali":return 13;case"cambodian":return 14;case"cjk-earthly-branch":return 15;case"cjk-heavenly-stem":return 16;case"cjk-ideographic":return 17;case"devanagari":return 18;case"ethiopic-numeric":return 19;case"georgian":return 20;case"gujarati":return 21;case"gurmukhi":return 22;case"hebrew":return 22;case"hiragana":return 23;case"hiragana-iroha":return 24;case"japanese-formal":return 25;case"japanese-informal":return 26;case"kannada":return 27;case"katakana":return 28;case"katakana-iroha":return 29;case"khmer":return 30;case"korean-hangul-formal":return 31;case"korean-hanja-formal":return 32;case"korean-hanja-informal":return 33;case"lao":return 34;case"lower-armenian":return 35;case"malayalam":return 36;case"mongolian":return 37;case"myanmar":return 38;case"oriya":return 39;case"persian":return 40;case"simp-chinese-formal":return 41;case"simp-chinese-informal":return 42;case"tamil":return 43;case"telugu":return 44;case"thai":return 45;case"tibetan":return 46;case"trad-chinese-formal":return 47;case"trad-chinese-informal":return 48;case"upper-armenian":return 49;case"disclosure-open":return 50;case"disclosure-closed":return 51;case"none":default:return-1}}},lt=function(E){return{name:"margin-"+E,initialValue:"0",prefix:!1,type:4}},rh=lt("top"),l0=lt("right"),u0=lt("bottom"),nh=lt("left"),Lu={name:"overflow",initialValue:"visible",prefix:!1,type:1,parse:function(E,p){return p.filter(Ki).map(function(T){switch(T.value){case"hidden":return 1;case"scroll":return 2;case"clip":return 3;case"auto":return 4;case"visible":default:return 0}})}},ih={name:"overflow-wrap",initialValue:"normal",prefix:!1,type:2,parse:function(E,p){switch(p){case"break-word":return"break-word";case"normal":default:return"normal"}}},Du=function(E){return{name:"padding-"+E,initialValue:"0",prefix:!1,type:3,format:"length-percentage"}},sh=Du("top"),ku=Du("right"),kc=Du("bottom"),uo=Du("left"),tl={name:"text-align",initialValue:"left",prefix:!1,type:2,parse:function(E,p){switch(p){case"right":return 2;case"center":case"justify":return 1;case"left":default:return 0}}},Ql={name:"position",initialValue:"static",prefix:!1,type:2,parse:function(E,p){switch(p){case"relative":return 1;case"absolute":return 2;case"fixed":return 3;case"sticky":return 4}return 0}},c0={name:"text-shadow",initialValue:"none",type:1,prefix:!1,parse:function(E,p){return p.length===1&&Ai(p[0],"none")?[]:mi(p).map(function(T){for(var S={color:Sa.TRANSPARENT,offsetX:Xa,offsetY:Xa,blur:Xa},te=0,Ce=0;Ce<T.length;Ce++){var $e=T[Ce];za($e)?(te===0?S.offsetX=$e:te===1?S.offsetY=$e:S.blur=$e,te++):S.color=DA.parse(E,$e)}return S})}},Hl={name:"text-transform",initialValue:"none",prefix:!1,type:2,parse:function(E,p){switch(p){case"uppercase":return 2;case"lowercase":return 1;case"capitalize":return 3}return 0}},nf={name:"transform",initialValue:"none",prefix:!0,type:0,parse:function(E,p){if(p.type===20&&p.value==="none")return null;if(p.type===18){var T=sf[p.name];if(typeof T=="undefined")throw new Error('Attempting to parse an unsupported transform function "'+p.name+'"');return T(p.values)}return null}},ah=function(E){var p=E.filter(function(T){return T.type===17}).map(function(T){return T.number});return p.length===6?p:null},h0=function(E){var p=E.filter(function(vt){return vt.type===17}).map(function(vt){return vt.number}),T=p[0],S=p[1];p[2],p[3];var te=p[4],Ce=p[5];p[6],p[7],p[8],p[9],p[10],p[11];var $e=p[12],yt=p[13];return p[14],p[15],p.length===16?[T,S,te,Ce,$e,yt]:null},sf={matrix:ah,matrix3d:h0},cu={type:16,number:50,flags:Ei},af=[cu,cu],Ee={name:"transform-origin",initialValue:"50% 50%",prefix:!0,type:1,parse:function(E,p){var T=p.filter(Fs);return T.length!==2?af:[T[0],T[1]]}},f={name:"visible",initialValue:"none",prefix:!1,type:2,parse:function(E,p){switch(p){case"hidden":return 1;case"collapse":return 2;case"visible":default:return 0}}},v;(function(E){E.NORMAL="normal",E.BREAK_ALL="break-all",E.KEEP_ALL="keep-all"})(v||(v={}));for(var x={name:"word-break",initialValue:"normal",prefix:!1,type:2,parse:function(E,p){switch(p){case"break-all":return v.BREAK_ALL;case"keep-all":return v.KEEP_ALL;case"normal":default:return v.NORMAL}}},Q={name:"z-index",initialValue:"auto",prefix:!1,type:0,parse:function(E,p){if(p.type===20)return{auto:!0,order:0};if(dA(p))return{auto:!1,order:p.number};throw new Error("Invalid z-index number parsed")}},re={name:"time",parse:function(E,p){if(p.type===15)switch(p.unit.toLowerCase()){case"s":return 1e3*p.number;case"ms":return p.number}throw new Error("Unsupported time type")}},be={name:"opacity",initialValue:"1",type:0,prefix:!1,parse:function(E,p){return dA(p)?p.number:1}},Ze={name:"text-decoration-color",initialValue:"transparent",prefix:!1,type:3,format:"color"},nt={name:"text-decoration-line",initialValue:"none",prefix:!1,type:1,parse:function(E,p){return p.filter(Ki).map(function(T){switch(T.value){case"underline":return 1;case"overline":return 2;case"line-through":return 3;case"none":return 4}return 0}).filter(function(T){return T!==0})}},St={name:"font-family",initialValue:"",prefix:!1,type:1,parse:function(E,p){var T=[],S=[];return p.forEach(function(te){switch(te.type){case 20:case 0:T.push(te.value);break;case 17:T.push(te.number.toString());break;case 4:S.push(T.join(" ")),T.length=0;break}}),T.length&&S.push(T.join(" ")),S.map(function(te){return te.indexOf(" ")===-1?te:"'"+te+"'"})}},Jt={name:"font-size",initialValue:"0",prefix:!1,type:3,format:"length"},dr={name:"font-weight",initialValue:"normal",type:0,prefix:!1,parse:function(E,p){if(dA(p))return p.number;if(Ki(p))switch(p.value){case"bold":return 700;case"normal":default:return 400}return 400}},Or={name:"font-variant",initialValue:"none",type:1,prefix:!1,parse:function(E,p){return p.filter(Ki).map(function(T){return T.value})}},on={name:"font-style",initialValue:"normal",prefix:!1,type:2,parse:function(E,p){switch(p){case"oblique":return"oblique";case"italic":return"italic";case"normal":default:return"normal"}}},tn=function(E,p){return(E&p)!==0},Fn={name:"content",initialValue:"none",type:1,prefix:!1,parse:function(E,p){if(p.length===0)return[];var T=p[0];return T.type===20&&T.value==="none"?[]:p}},$n={name:"counter-increment",initialValue:"none",prefix:!0,type:1,parse:function(E,p){if(p.length===0)return null;var T=p[0];if(T.type===20&&T.value==="none")return null;for(var S=[],te=p.filter(Bs),Ce=0;Ce<te.length;Ce++){var $e=te[Ce],yt=te[Ce+1];if($e.type===20){var vt=yt&&dA(yt)?yt.number:1;S.push({counter:$e.value,increment:vt})}}return S}},Zn={name:"counter-reset",initialValue:"none",prefix:!0,type:1,parse:function(E,p){if(p.length===0)return[];for(var T=[],S=p.filter(Bs),te=0;te<S.length;te++){var Ce=S[te],$e=S[te+1];if(Ki(Ce)&&Ce.value!=="none"){var yt=$e&&dA($e)?$e.number:0;T.push({counter:Ce.value,reset:yt})}}return T}},yi={name:"duration",initialValue:"0s",prefix:!1,type:1,parse:function(E,p){return p.filter(FA).map(function(T){return re.parse(E,T)})}},Oi={name:"quotes",initialValue:"none",prefix:!0,type:1,parse:function(E,p){if(p.length===0)return null;var T=p[0];if(T.type===20&&T.value==="none")return null;var S=[],te=p.filter(Nn);if(te.length%2!==0)return null;for(var Ce=0;Ce<te.length;Ce+=2){var $e=te[Ce].value,yt=te[Ce+1].value;S.push({open:$e,close:yt})}return S}},Qs=function(E,p,T){if(!E)return"";var S=E[Math.min(p,E.length-1)];return S?T?S.open:S.close:""},xs={name:"box-shadow",initialValue:"none",type:1,prefix:!1,parse:function(E,p){return p.length===1&&Ai(p[0],"none")?[]:mi(p).map(function(T){for(var S={color:255,offsetX:Xa,offsetY:Xa,blur:Xa,spread:Xa,inset:!1},te=0,Ce=0;Ce<T.length;Ce++){var $e=T[Ce];Ai($e,"inset")?S.inset=!0:za($e)?(te===0?S.offsetX=$e:te===1?S.offsetY=$e:te===2?S.blur=$e:S.spread=$e,te++):S.color=DA.parse(E,$e)}return S})}},zs={name:"paint-order",initialValue:"normal",prefix:!1,type:1,parse:function(E,p){var T=[0,1,2],S=[];return p.filter(Ki).forEach(function(te){switch(te.value){case"stroke":S.push(1);break;case"fill":S.push(0);break;case"markers":S.push(2);break}}),T.forEach(function(te){S.indexOf(te)===-1&&S.push(te)}),S}},Gs={name:"-webkit-text-stroke-color",initialValue:"currentcolor",prefix:!1,type:3,format:"color"},ys={name:"-webkit-text-stroke-width",initialValue:"0",type:0,prefix:!1,parse:function(E,p){return FA(p)?p.number:0}},ro=function(){function E(p,T){var S,te;this.animationDuration=bn(p,yi,T.animationDuration),this.backgroundClip=bn(p,Y0,T.backgroundClip),this.backgroundColor=bn(p,Oo,T.backgroundColor),this.backgroundImage=bn(p,to,T.backgroundImage),this.backgroundOrigin=bn(p,Tc,T.backgroundOrigin),this.backgroundPosition=bn(p,Zr,T.backgroundPosition),this.backgroundRepeat=bn(p,RA,T.backgroundRepeat),this.backgroundSize=bn(p,iu,T.backgroundSize),this.borderTopColor=bn(p,Jh,T.borderTopColor),this.borderRightColor=bn(p,su,T.borderRightColor),this.borderBottomColor=bn(p,tc,T.borderBottomColor),this.borderLeftColor=bn(p,vA,T.borderLeftColor),this.borderTopLeftRadius=bn(p,ef,T.borderTopLeftRadius),this.borderTopRightRadius=bn(p,Nl,T.borderTopRightRadius),this.borderBottomRightRadius=bn(p,Qo,T.borderBottomRightRadius),this.borderBottomLeftRadius=bn(p,Xo,T.borderBottomLeftRadius),this.borderTopStyle=bn(p,yl,T.borderTopStyle),this.borderRightStyle=bn(p,Ml,T.borderRightStyle),this.borderBottomStyle=bn(p,au,T.borderBottomStyle),this.borderLeftStyle=bn(p,ou,T.borderLeftStyle),this.borderTopWidth=bn(p,Fc,T.borderTopWidth),this.borderRightWidth=bn(p,_l,T.borderRightWidth),this.borderBottomWidth=bn(p,J0,T.borderBottomWidth),this.borderLeftWidth=bn(p,Lc,T.borderLeftWidth),this.boxShadow=bn(p,xs,T.boxShadow),this.color=bn(p,Ho,T.color),this.direction=bn(p,lu,T.direction),this.display=bn(p,s0,T.display),this.float=bn(p,rc,T.cssFloat),this.fontFamily=bn(p,St,T.fontFamily),this.fontSize=bn(p,Jt,T.fontSize),this.fontStyle=bn(p,on,T.fontStyle),this.fontVariant=bn(p,Or,T.fontVariant),this.fontWeight=bn(p,dr,T.fontWeight),this.letterSpacing=bn(p,a0,T.letterSpacing),this.lineBreak=bn(p,tf,T.lineBreak),this.lineHeight=bn(p,Dc,T.lineHeight),this.listStyleImage=bn(p,rf,T.listStyleImage),this.listStylePosition=bn(p,th,T.listStylePosition),this.listStyleType=bn(p,A0,T.listStyleType),this.marginTop=bn(p,rh,T.marginTop),this.marginRight=bn(p,l0,T.marginRight),this.marginBottom=bn(p,u0,T.marginBottom),this.marginLeft=bn(p,nh,T.marginLeft),this.opacity=bn(p,be,T.opacity);var Ce=bn(p,Lu,T.overflow);this.overflowX=Ce[0],this.overflowY=Ce[Ce.length>1?1:0],this.overflowWrap=bn(p,ih,T.overflowWrap),this.paddingTop=bn(p,sh,T.paddingTop),this.paddingRight=bn(p,ku,T.paddingRight),this.paddingBottom=bn(p,kc,T.paddingBottom),this.paddingLeft=bn(p,uo,T.paddingLeft),this.paintOrder=bn(p,zs,T.paintOrder),this.position=bn(p,Ql,T.position),this.textAlign=bn(p,tl,T.textAlign),this.textDecorationColor=bn(p,Ze,(S=T.textDecorationColor)!==null&&S!==void 0?S:T.color),this.textDecorationLine=bn(p,nt,(te=T.textDecorationLine)!==null&&te!==void 0?te:T.textDecoration),this.textShadow=bn(p,c0,T.textShadow),this.textTransform=bn(p,Hl,T.textTransform),this.transform=bn(p,nf,T.transform),this.transformOrigin=bn(p,Ee,T.transformOrigin),this.visibility=bn(p,f,T.visibility),this.webkitTextStrokeColor=bn(p,Gs,T.webkitTextStrokeColor),this.webkitTextStrokeWidth=bn(p,ys,T.webkitTextStrokeWidth),this.wordBreak=bn(p,x,T.wordBreak),this.zIndex=bn(p,Q,T.zIndex)}return E.prototype.isVisible=function(){return this.display>0&&this.opacity>0&&this.visibility===0},E.prototype.isTransparent=function(){return ea(this.backgroundColor)},E.prototype.isTransformed=function(){return this.transform!==null},E.prototype.isPositioned=function(){return this.position!==0},E.prototype.isPositionedWithZIndex=function(){return this.isPositioned()&&!this.zIndex.auto},E.prototype.isFloating=function(){return this.float!==0},E.prototype.isInlineLevel=function(){return tn(this.display,4)||tn(this.display,33554432)||tn(this.display,268435456)||tn(this.display,536870912)||tn(this.display,67108864)||tn(this.display,134217728)},E}(),$s=function(){function E(p,T){this.content=bn(p,Fn,T.content),this.quotes=bn(p,Oi,T.quotes)}return E}(),rr=function(){function E(p,T){this.counterIncrement=bn(p,$n,T.counterIncrement),this.counterReset=bn(p,Zn,T.counterReset)}return E}(),bn=function(E,p,T){var S=new Po,te=T!==null&&typeof T!="undefined"?T.toString():p.initialValue;S.write(te);var Ce=new ZA(S.read());switch(p.type){case 2:var $e=Ce.parseComponentValue();return p.parse(E,Ki($e)?$e.value:p.initialValue);case 0:return p.parse(E,Ce.parseComponentValue());case 1:return p.parse(E,Ce.parseComponentValues());case 4:return Ce.parseComponentValue();case 3:switch(p.format){case"angle":return LA.parse(E,Ce.parseComponentValue());case"color":return DA.parse(E,Ce.parseComponentValue());case"image":return kA.parse(E,Ce.parseComponentValue());case"length":var yt=Ce.parseComponentValue();return za(yt)?yt:Xa;case"length-percentage":var vt=Ce.parseComponentValue();return Fs(vt)?vt:Xa;case"time":return re.parse(E,Ce.parseComponentValue())}break}},UA="data-html2canvas-debug",PA=function(E){var p=E.getAttribute(UA);switch(p){case"all":return 1;case"clone":return 2;case"parse":return 3;case"render":return 4;default:return 0}},da=function(E,p){var T=PA(E);return T===1||p===T},no=function(){function E(p,T){if(this.context=p,this.textNodes=[],this.elements=[],this.flags=0,da(T,3))debugger;this.styles=new ro(p,window.getComputedStyle(T,null)),bf(T)&&(this.styles.animationDuration.some(function(S){return S>0})&&(T.style.animationDuration="0s"),this.styles.transform!==null&&(T.style.transform="none")),this.bounds=I(this.context,T),da(T,4)&&(this.flags|=16)}return E}(),rl="AAAAAAAAAAAAEA4AGBkAAFAaAAACAAAAAAAIABAAGAAwADgACAAQAAgAEAAIABAACAAQAAgAEAAIABAACAAQAAgAEAAIABAAQABIAEQATAAIABAACAAQAAgAEAAIABAAVABcAAgAEAAIABAACAAQAGAAaABwAHgAgACIAI4AlgAIABAAmwCjAKgAsAC2AL4AvQDFAMoA0gBPAVYBWgEIAAgACACMANoAYgFkAWwBdAF8AX0BhQGNAZUBlgGeAaMBlQGWAasBswF8AbsBwwF0AcsBYwHTAQgA2wG/AOMBdAF8AekB8QF0AfkB+wHiAHQBfAEIAAMC5gQIAAsCEgIIAAgAFgIeAggAIgIpAggAMQI5AkACygEIAAgASAJQAlgCYAIIAAgACAAKBQoFCgUTBRMFGQUrBSsFCAAIAAgACAAIAAgACAAIAAgACABdAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACABoAmgCrwGvAQgAbgJ2AggAHgEIAAgACADnAXsCCAAIAAgAgwIIAAgACAAIAAgACACKAggAkQKZAggAPADJAAgAoQKkAqwCsgK6AsICCADJAggA0AIIAAgACAAIANYC3gIIAAgACAAIAAgACABAAOYCCAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAkASoB+QIEAAgACAA8AEMCCABCBQgACABJBVAFCAAIAAgACAAIAAgACAAIAAgACABTBVoFCAAIAFoFCABfBWUFCAAIAAgACAAIAAgAbQUIAAgACAAIAAgACABzBXsFfQWFBYoFigWKBZEFigWKBYoFmAWfBaYFrgWxBbkFCAAIAAgACAAIAAgACAAIAAgACAAIAMEFCAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAMgFCADQBQgACAAIAAgACAAIAAgACAAIAAgACAAIAO4CCAAIAAgAiQAIAAgACABAAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAD0AggACAD8AggACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIANYFCAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAMDvwAIAAgAJAIIAAgACAAIAAgACAAIAAgACwMTAwgACAB9BOsEGwMjAwgAKwMyAwsFYgE3A/MEPwMIAEUDTQNRAwgAWQOsAGEDCAAIAAgACAAIAAgACABpAzQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFIQUoBSwFCAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACABtAwgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACABMAEwACAAIAAgACAAIABgACAAIAAgACAC/AAgACAAyAQgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACACAAIAAwAAgACAAIAAgACAAIAAgACAAIAAAARABIAAgACAAIABQASAAIAAgAIABwAEAAjgCIABsAqAC2AL0AigDQAtwC+IJIQqVAZUBWQqVAZUBlQGVAZUBlQGrC5UBlQGVAZUBlQGVAZUBlQGVAXsKlQGVAbAK6wsrDGUMpQzlDJUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAfAKAAuZA64AtwCJALoC6ADwAAgAuACgA/oEpgO6AqsD+AAIAAgAswMIAAgACAAIAIkAuwP5AfsBwwPLAwgACAAIAAgACADRA9kDCAAIAOED6QMIAAgACAAIAAgACADuA/YDCAAIAP4DyQAIAAgABgQIAAgAXQAOBAgACAAIAAgACAAIABMECAAIAAgACAAIAAgACAD8AAQBCAAIAAgAGgQiBCoECAExBAgAEAEIAAgACAAIAAgACAAIAAgACAAIAAgACAA4BAgACABABEYECAAIAAgATAQYAQgAVAQIAAgACAAIAAgACAAIAAgACAAIAFoECAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgAOQEIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAB+BAcACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAEABhgSMBAgACAAIAAgAlAQIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAwAEAAQABAADAAMAAwADAAQABAAEAAQABAAEAAQABHATAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgAdQMIAAgACAAIAAgACAAIAMkACAAIAAgAfQMIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACACFA4kDCAAIAAgACAAIAOcBCAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAIcDCAAIAAgACAAIAAgACAAIAAgACAAIAJEDCAAIAAgACADFAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACABgBAgAZgQIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgAbAQCBXIECAAIAHkECAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACABAAJwEQACjBKoEsgQIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAC6BMIECAAIAAgACAAIAAgACABmBAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgAxwQIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAGYECAAIAAgAzgQIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgAigWKBYoFigWKBYoFigWKBd0FXwUIAOIF6gXxBYoF3gT5BQAGCAaKBYoFigWKBYoFigWKBYoFigWKBYoFigXWBIoFigWKBYoFigWKBYoFigWKBYsFEAaKBYoFigWKBYoFigWKBRQGCACKBYoFigWKBQgACAAIANEECAAIABgGigUgBggAJgYIAC4GMwaKBYoF0wQ3Bj4GigWKBYoFigWKBYoFigWKBYoFigWKBYoFigUIAAgACAAIAAgACAAIAAgAigWKBYoFigWKBYoFigWKBYoFigWKBYoFigWKBYoFigWKBYoFigWKBYoFigWKBYoFigWKBYoFigWKBYoFigWLBf///////wQABAAEAAQABAAEAAQABAAEAAQAAwAEAAQAAgAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAAAAAAAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAQADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAUAAAAFAAUAAAAFAAUAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABAAEAAQABAAEAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUAAQAAAAUABQAFAAUABQAFAAAAAAAFAAUAAAAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAEAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAFAAUAAQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABwAFAAUABQAFAAAABwAHAAcAAAAHAAcABwAFAAEAAAAAAAAAAAAAAAAAAAAAAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAcABwAFAAUABQAFAAcABwAFAAUAAAAAAAEAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAAAAQABAAAAAAAAAAAAAAAFAAUABQAFAAAABwAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAHAAcABwAHAAcAAAAHAAcAAAAAAAUABQAHAAUAAQAHAAEABwAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABwABAAUABQAFAAUAAAAAAAAAAAAAAAEAAQABAAEAAQABAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABwAFAAUAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUAAQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAQABQANAAQABAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAQABAAEAAQABAAEAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABAAEAAQABAAEAAQABAAEAAQABAAEAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAEAAQABAAEAAQABAAEAAQABAAAAAAAAAAAAAAAAAAAAAAABQAHAAUABQAFAAAAAAAAAAcABQAFAAUABQAFAAQABAAEAAQABAAEAAQABAAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUAAAAFAAUABQAFAAUAAAAFAAUABQAAAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAAAAAAAAAAAAUABQAFAAcAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAHAAUAAAAHAAcABwAFAAUABQAFAAUABQAFAAUABwAHAAcABwAFAAcABwAAAAUABQAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABwAHAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAUABwAHAAUABQAFAAUAAAAAAAcABwAAAAAABwAHAAUAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAABQAFAAcAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAAABwAHAAcABQAFAAAAAAAAAAAABQAFAAAAAAAFAAUABQAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAFAAUABQAFAAUAAAAFAAUABwAAAAcABwAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUAAAAFAAUABwAFAAUABQAFAAAAAAAHAAcAAAAAAAcABwAFAAAAAAAAAAAAAAAAAAAABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAcABwAAAAAAAAAHAAcABwAAAAcABwAHAAUAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAABQAHAAcABwAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABwAHAAcABwAAAAUABQAFAAAABQAFAAUABQAAAAAAAAAAAAAAAAAAAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAcABQAHAAcABQAHAAcAAAAFAAcABwAAAAcABwAFAAUAAAAAAAAAAAAAAAAAAAAFAAUAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAcABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAAAAUABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAUAAAAAAAAAAAAFAAcABwAFAAUABQAAAAUAAAAHAAcABwAHAAcABwAHAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUAAAAHAAUABQAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAAABwAFAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAUAAAAFAAAAAAAAAAAABwAHAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABwAFAAUABQAFAAUAAAAFAAUAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABwAFAAUABQAFAAUABQAAAAUABQAHAAcABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAcABQAFAAAAAAAAAAAABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAcABQAFAAAAAAAAAAAAAAAAAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAHAAUABQAFAAUABQAFAAUABwAHAAcABwAHAAcABwAHAAUABwAHAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABwAHAAcABwAFAAUABwAHAAcAAAAAAAAAAAAHAAcABQAHAAcABwAHAAcABwAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAcABwAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABQAHAAUABQAFAAUABQAFAAUAAAAFAAAABQAAAAAABQAFAAUABQAFAAUABQAFAAcABwAHAAcABwAHAAUABQAFAAUABQAFAAUABQAFAAUAAAAAAAUABQAFAAUABQAHAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUABwAFAAcABwAHAAcABwAFAAcABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAUABQAFAAUABwAHAAUABQAHAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAcABQAFAAcABwAHAAUABwAFAAUABQAHAAcAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAHAAcABwAHAAcABwAHAAUABQAFAAUABQAFAAUABQAHAAcABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUAAAAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAcABQAFAAUABQAFAAUABQAAAAAAAAAAAAUAAAAAAAAAAAAAAAAABQAAAAAABwAFAAUAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAAABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUAAAAFAAUABQAFAAUABQAFAAUABQAFAAAAAAAAAAAABQAAAAAAAAAFAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAHAAUABQAHAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABwAHAAcABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUABQAFAAUABQAHAAcAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAcABwAFAAUABQAFAAcABwAFAAUABwAHAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAcABwAFAAUABwAHAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAFAAcAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUAAAAFAAUABQAAAAAABQAFAAAAAAAAAAAAAAAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABQAFAAcABwAAAAAAAAAAAAAABwAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABwAFAAcABwAFAAcABwAAAAcABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAAAAAAAAAAAAAAAAAFAAUABQAAAAUABQAAAAAAAAAAAAAABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAAAAAAAAAAAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABQAHAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABwAFAAUABQAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAHAAcABQAFAAUABQAFAAUABQAFAAUABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAcABwAFAAUABQAHAAcABQAHAAUABQAAAAAAAAAAAAAAAAAFAAAABwAHAAcABQAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABwAHAAcABwAAAAAABwAHAAAAAAAHAAcABwAAAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAHAAAAAAAFAAUABQAFAAUABQAFAAAAAAAAAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAcABwAFAAUABQAFAAUABQAFAAUABwAHAAUABQAFAAcABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAHAAcABQAFAAUABQAFAAUABwAFAAcABwAFAAcABQAFAAcABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAHAAcABQAFAAUABQAAAAAABwAHAAcABwAFAAUABwAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABwAHAAUABQAFAAUABQAFAAUABQAHAAcABQAHAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABwAFAAcABwAFAAUABQAFAAUABQAHAAUAAAAAAAAAAAAAAAAAAAAAAAcABwAFAAUABQAFAAcABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAcABwAFAAUABQAFAAUABQAFAAUABQAHAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAcABwAFAAUABQAFAAAAAAAFAAUABwAHAAcABwAFAAAAAAAAAAcAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABwAHAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABQAFAAUABQAFAAUABQAAAAUABQAFAAUABQAFAAcABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAAAHAAUABQAFAAUABQAFAAUABwAFAAUABwAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUAAAAAAAAABQAAAAUABQAAAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAcABwAHAAcAAAAFAAUAAAAHAAcABQAHAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABwAHAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAAAAAAAAAAAAAAAAAAABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAAAAUABQAFAAAAAAAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAAAAAAAAAAABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAAAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABQAAAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAAABQAFAAUABQAFAAUABQAAAAUABQAAAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAFAAUABQAFAAUADgAOAA4ADgAOAA4ADwAPAA8ADwAPAA8ADwAPAA8ADwAPAA8ADwAPAA8ADwAPAA8ADwAPAA8ADwAPAA8ADwAPAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAHAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAAAAAAAAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAMAAwADAAMAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkAAAAAAAAAAAAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAAAAAAAAAAAAsADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwACwAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAAAAAADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA4AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAOAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA4ADgAAAAAAAAAAAAAAAAAAAAAADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAA4ADgAOAA4ADgAOAA4ADgAOAAAAAAAAAAAADgAOAA4AAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAAAAAAAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAA4ADgAAAA4ADgAOAA4ADgAOAAAADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4AAAAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4AAAAAAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAAAA4AAAAOAAAAAAAAAAAAAAAAAA4AAAAAAAAAAAAAAAAADgAAAAAAAAAAAAAAAAAAAAAAAAAAAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAAAAAADgAAAAAAAAAAAA4AAAAOAAAAAAAAAAAADgAOAA4AAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAOAA4AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA4ADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAAAAAAAAAAAA4AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAAAADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA4ADgAOAA4ADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAAAAAADgAOAA4ADgAOAA4ADgAOAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAAAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA4AAAAAAA4ADgAOAA4ADgAOAA4ADgAOAAAADgAOAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4AAAAAAAAAAAAAAAAADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAA4ADgAOAA4ADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAA4ADgAOAA4AAAAAAAAAAAAAAAAAAAAAAA4ADgAOAA4ADgAOAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4AAAAOAA4ADgAOAA4ADgAAAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4AAAAAAAAAAAA=",oh="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",wl=typeof Uint8Array=="undefined"?[]:new Uint8Array(256),bl=0;bl<oh.length;bl++)wl[oh.charCodeAt(bl)]=bl;for(var hu=function(E){var p=E.length*.75,T=E.length,S,te=0,Ce,$e,yt,vt;E[E.length-1]==="="&&(p--,E[E.length-2]==="="&&p--);var er=typeof ArrayBuffer!="undefined"&&typeof Uint8Array!="undefined"&&typeof Uint8Array.prototype.slice!="undefined"?new ArrayBuffer(p):new Array(p),lr=Array.isArray(er)?er:new Uint8Array(er);for(S=0;S<T;S+=4)Ce=wl[E.charCodeAt(S)],$e=wl[E.charCodeAt(S+1)],yt=wl[E.charCodeAt(S+2)],vt=wl[E.charCodeAt(S+3)],lr[te++]=Ce<<2|$e>>4,lr[te++]=($e&15)<<4|yt>>2,lr[te++]=(yt&3)<<6|vt&63;return er},yA=function(E){for(var p=E.length,T=[],S=0;S<p;S+=2)T.push(E[S+1]<<8|E[S]);return T},fu=function(E){for(var p=E.length,T=[],S=0;S<p;S+=4)T.push(E[S+3]<<24|E[S+2]<<16|E[S+1]<<8|E[S]);return T},OA=5,El=11,va=2,of=El-OA,nc=65536>>OA,jo=1<<OA,ic=jo-1,Ru=1024>>OA,Rc=nc+Ru,Af=Rc,nl=32,f0=Af+nl,lf=65536>>El,ud=1<<of,Ah=ud-1,sc=function(E,p,T){return E.slice?E.slice(p,T):new Uint16Array(Array.prototype.slice.call(E,p,T))},cd=function(E,p,T){return E.slice?E.slice(p,T):new Uint32Array(Array.prototype.slice.call(E,p,T))},hd=function(E,p){var T=hu(E),S=Array.isArray(T)?fu(T):new Uint32Array(T),te=Array.isArray(T)?yA(T):new Uint16Array(T),Ce=24,$e=sc(te,Ce/2,S[4]/2),yt=S[5]===2?sc(te,(Ce+S[4])/2):cd(S,Math.ceil((Ce+S[4])/4));return new uf(S[0],S[1],S[2],S[3],$e,yt)},uf=function(){function E(p,T,S,te,Ce,$e){this.initialValue=p,this.errorValue=T,this.highStart=S,this.highValueIndex=te,this.index=Ce,this.data=$e}return E.prototype.get=function(p){var T;if(p>=0){if(p<55296||p>56319&&p<=65535)return T=this.index[p>>OA],T=(T<<va)+(p&ic),this.data[T];if(p<=65535)return T=this.index[nc+(p-55296>>OA)],T=(T<<va)+(p&ic),this.data[T];if(p<this.highStart)return T=f0-lf+(p>>El),T=this.index[T],T+=p>>OA&Ah,T=this.index[T],T=(T<<va)+(p&ic),this.data[T];if(p<=1114111)return this.data[this.highValueIndex]}return this.errorValue},E}(),lh="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",d0=typeof Uint8Array=="undefined"?[]:new Uint8Array(256),il=0;il<lh.length;il++)d0[lh.charCodeAt(il)]=il;var p0=1,g0=2,du=3,m0=4,cf=5,fd=7,uh=8,ac=9,Uc=10,hf=11,ch=12,ff=13,v0=14,Pc=15,dd=function(E){for(var p=[],T=0,S=E.length;T<S;){var te=E.charCodeAt(T++);if(te>=55296&&te<=56319&&T<S){var Ce=E.charCodeAt(T++);(Ce&64512)===56320?p.push(((te&1023)<<10)+(Ce&1023)+65536):(p.push(te),T--)}else p.push(te)}return p},Jo=function(){for(var E=[],p=0;p<arguments.length;p++)E[p]=arguments[p];if(String.fromCodePoint)return String.fromCodePoint.apply(String,E);var T=E.length;if(!T)return"";for(var S=[],te=-1,Ce="";++te<T;){var $e=E[te];$e<=65535?S.push($e):($e-=65536,S.push(($e>>10)+55296,$e%1024+56320)),(te+1===T||S.length>16384)&&(Ce+=String.fromCharCode.apply(String,S),S.length=0)}return Ce},ep=hd(rl),vs="\xD7",NA="\xF7",pd=function(E){return ep.get(E)},tp=function(E,p,T){var S=T-2,te=p[S],Ce=p[T-1],$e=p[T];if(Ce===g0&&$e===du)return vs;if(Ce===g0||Ce===du||Ce===m0||$e===g0||$e===du||$e===m0)return NA;if(Ce===uh&&[uh,ac,hf,ch].indexOf($e)!==-1||(Ce===hf||Ce===ac)&&($e===ac||$e===Uc)||(Ce===ch||Ce===Uc)&&$e===Uc||$e===ff||$e===cf||$e===fd||Ce===p0)return vs;if(Ce===ff&&$e===v0){for(;te===cf;)te=p[--S];if(te===v0)return vs}if(Ce===Pc&&$e===Pc){for(var yt=0;te===Pc;)yt++,te=p[--S];if(yt%2===0)return vs}return NA},rp=function(E){var p=dd(E),T=p.length,S=0,te=0,Ce=p.map(pd);return{next:function(){if(S>=T)return{done:!0,value:null};for(var $e=vs;S<T&&($e=tp(p,Ce,++S))===vs;);if($e!==vs||S===T){var yt=Jo.apply(null,p.slice(te,S));return te=S,{value:yt,done:!1}}return{done:!0,value:null}}}},pu=function(E){for(var p=rp(E),T=[],S;!(S=p.next()).done;)S.value&&T.push(S.value.slice());return T},gd=function(E){var p=123;if(E.createRange){var T=E.createRange();if(T.getBoundingClientRect){var S=E.createElement("boundtest");S.style.height=p+"px",S.style.display="block",E.body.appendChild(S),T.selectNode(S);var te=T.getBoundingClientRect(),Ce=Math.round(te.height);if(E.body.removeChild(S),Ce===p)return!0}}return!1},df=function(E){var p=E.createElement("boundtest");p.style.width="50px",p.style.display="block",p.style.fontSize="12px",p.style.letterSpacing="0px",p.style.wordSpacing="0px",E.body.appendChild(p);var T=E.createRange();p.innerHTML=typeof"".repeat=="function"?"👨".repeat(10):"";var S=p.firstChild,te=R(S.data).map(function(vt){return u(vt)}),Ce=0,$e={},yt=te.every(function(vt,er){T.setStart(S,Ce),T.setEnd(S,Ce+vt.length);var lr=T.getBoundingClientRect();Ce+=vt.length;var mr=lr.x>$e.x||lr.y>$e.y;return $e=lr,er===0?!0:mr});return E.body.removeChild(p),yt},np=function(){return typeof new Image().crossOrigin!="undefined"},oc=function(){return typeof new XMLHttpRequest().responseType=="string"},md=function(E){var p=new Image,T=E.createElement("canvas"),S=T.getContext("2d");if(!S)return!1;p.src="data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg'></svg>";try{S.drawImage(p,0,0),T.toDataURL()}catch(te){return!1}return!0},pf=function(E){return E[0]===0&&E[1]===255&&E[2]===0&&E[3]===255},vd=function(E){var p=E.createElement("canvas"),T=100;p.width=T,p.height=T;var S=p.getContext("2d");if(!S)return Promise.reject(!1);S.fillStyle="rgb(0, 255, 0)",S.fillRect(0,0,T,T);var te=new Image,Ce=p.toDataURL();te.src=Ce;var $e=hh(T,T,0,0,te);return S.fillStyle="red",S.fillRect(0,0,T,T),yd($e).then(function(yt){S.drawImage(yt,0,0);var vt=S.getImageData(0,0,T,T).data;S.fillStyle="red",S.fillRect(0,0,T,T);var er=E.createElement("div");return er.style.backgroundImage="url("+Ce+")",er.style.height=T+"px",pf(vt)?yd(hh(T,T,0,0,er)):Promise.reject(!1)}).then(function(yt){return S.drawImage(yt,0,0),pf(S.getImageData(0,0,T,T).data)}).catch(function(){return!1})},hh=function(E,p,T,S,te){var Ce="http://www.w3.org/2000/svg",$e=document.createElementNS(Ce,"svg"),yt=document.createElementNS(Ce,"foreignObject");return $e.setAttributeNS(null,"width",E.toString()),$e.setAttributeNS(null,"height",p.toString()),yt.setAttributeNS(null,"width","100%"),yt.setAttributeNS(null,"height","100%"),yt.setAttributeNS(null,"x",T.toString()),yt.setAttributeNS(null,"y",S.toString()),yt.setAttributeNS(null,"externalResourcesRequired","true"),$e.appendChild(yt),yt.appendChild(te),$e},yd=function(E){return new Promise(function(p,T){var S=new Image;S.onload=function(){return p(S)},S.onerror=T,S.src="data:image/svg+xml;charset=utf-8,"+encodeURIComponent(new XMLSerializer().serializeToString(E))})},io={get SUPPORT_RANGE_BOUNDS(){var E=gd(document);return Object.defineProperty(io,"SUPPORT_RANGE_BOUNDS",{value:E}),E},get SUPPORT_WORD_BREAKING(){var E=io.SUPPORT_RANGE_BOUNDS&&df(document);return Object.defineProperty(io,"SUPPORT_WORD_BREAKING",{value:E}),E},get SUPPORT_SVG_DRAWING(){var E=md(document);return Object.defineProperty(io,"SUPPORT_SVG_DRAWING",{value:E}),E},get SUPPORT_FOREIGNOBJECT_DRAWING(){var E=typeof Array.from=="function"&&typeof window.fetch=="function"?vd(document):Promise.resolve(!1);return Object.defineProperty(io,"SUPPORT_FOREIGNOBJECT_DRAWING",{value:E}),E},get SUPPORT_CORS_IMAGES(){var E=np();return Object.defineProperty(io,"SUPPORT_CORS_IMAGES",{value:E}),E},get SUPPORT_RESPONSE_TYPE(){var E=oc();return Object.defineProperty(io,"SUPPORT_RESPONSE_TYPE",{value:E}),E},get SUPPORT_CORS_XHR(){var E="withCredentials"in new XMLHttpRequest;return Object.defineProperty(io,"SUPPORT_CORS_XHR",{value:E}),E},get SUPPORT_NATIVE_TEXT_SEGMENTATION(){var E=!!(typeof Intl!="undefined"&&Intl.Segmenter);return Object.defineProperty(io,"SUPPORT_NATIVE_TEXT_SEGMENTATION",{value:E}),E}},Ac=function(){function E(p,T){this.text=p,this.bounds=T}return E}(),fh=function(E,p,T,S){var te=ap(p,T),Ce=[],$e=0;return te.forEach(function(yt){if(T.textDecorationLine.length||yt.trim().length>0)if(io.SUPPORT_RANGE_BOUNDS){var vt=gf(S,$e,yt.length).getClientRects();if(vt.length>1){var er=mf(yt),lr=0;er.forEach(function(Gr){Ce.push(new Ac(Gr,de.fromDOMRectList(E,gf(S,lr+$e,Gr.length).getClientRects()))),lr+=Gr.length})}else Ce.push(new Ac(yt,de.fromDOMRectList(E,vt)))}else{var mr=S.splitText(yt.length);Ce.push(new Ac(yt,ip(E,S))),S=mr}else io.SUPPORT_RANGE_BOUNDS||(S=S.splitText(yt.length));$e+=yt.length}),Ce},ip=function(E,p){var T=p.ownerDocument;if(T){var S=T.createElement("html2canvaswrapper");S.appendChild(p.cloneNode(!0));var te=p.parentNode;if(te){te.replaceChild(S,p);var Ce=I(E,S);return S.firstChild&&te.replaceChild(S.firstChild,S),Ce}}return de.EMPTY},gf=function(E,p,T){var S=E.ownerDocument;if(!S)throw new Error("Node has no owner document");var te=S.createRange();return te.setStart(E,p),te.setEnd(E,p+T),te},mf=function(E){if(io.SUPPORT_NATIVE_TEXT_SEGMENTATION){var p=new Intl.Segmenter(void 0,{granularity:"grapheme"});return Array.from(p.segment(E)).map(function(T){return T.segment})}return pu(E)},sp=function(E,p){if(io.SUPPORT_NATIVE_TEXT_SEGMENTATION){var T=new Intl.Segmenter(void 0,{granularity:"word"});return Array.from(T.segment(E)).map(function(S){return S.segment})}return Ap(E,p)},ap=function(E,p){return p.letterSpacing!==0?mf(E):sp(E,p)},op=[32,160,4961,65792,65793,4153,4241],Ap=function(E,p){for(var T=ln(E,{lineBreak:p.lineBreak,wordBreak:p.overflowWrap==="break-word"?"break-word":p.wordBreak}),S=[],te,Ce=function(){if(te.value){var $e=te.value.slice(),yt=R($e),vt="";yt.forEach(function(er){op.indexOf(er)===-1?vt+=u(er):(vt.length&&S.push(vt),S.push(u(er)),vt="")}),vt.length&&S.push(vt)}};!(te=T.next()).done;)Ce();return S},_d=function(){function E(p,T,S){this.text=vf(T.data,S.textTransform),this.textBounds=fh(p,this.text,S,T)}return E}(),vf=function(E,p){switch(p){case 1:return E.toLowerCase();case 3:return E.replace(lp,yf);case 2:return E.toUpperCase();default:return E}},lp=/(^|\s|:|-|\(|\))([a-z])/g,yf=function(E,p,T){return E.length>0?p+T.toUpperCase():E},dh=function(E){je(p,E);function p(T,S){var te=E.call(this,T,S)||this;return te.src=S.currentSrc||S.src,te.intrinsicWidth=S.naturalWidth,te.intrinsicHeight=S.naturalHeight,te.context.cache.addImage(te.src),te}return p}(no),_f=function(E){je(p,E);function p(T,S){var te=E.call(this,T,S)||this;return te.canvas=S,te.intrinsicWidth=S.width,te.intrinsicHeight=S.height,te}return p}(no),wd=function(E){je(p,E);function p(T,S){var te=E.call(this,T,S)||this,Ce=new XMLSerializer,$e=I(T,S);return S.setAttribute("width",$e.width+"px"),S.setAttribute("height",$e.height+"px"),te.svg="data:image/svg+xml,"+encodeURIComponent(Ce.serializeToString(S)),te.intrinsicWidth=S.width.baseVal.value,te.intrinsicHeight=S.height.baseVal.value,te.context.cache.addImage(te.svg),te}return p}(no),bd=function(E){je(p,E);function p(T,S){var te=E.call(this,T,S)||this;return te.value=S.value,te}return p}(no),ph=function(E){je(p,E);function p(T,S){var te=E.call(this,T,S)||this;return te.start=S.start,te.reversed=typeof S.reversed=="boolean"&&S.reversed===!0,te}return p}(no),co=[{type:15,flags:0,unit:"px",number:3}],Ia=[{type:16,flags:0,number:50}],lc=function(E){return E.width>E.height?new de(E.left+(E.width-E.height)/2,E.top,E.height,E.height):E.width<E.height?new de(E.left,E.top+(E.height-E.width)/2,E.width,E.width):E},gu=function(E){var p=E.type===y0?new Array(E.value.length+1).join("\u2022"):E.value;return p.length===0?E.placeholder||"":p},gh="checkbox",mh="radio",y0="password",vh=707406591,_0=function(E){je(p,E);function p(T,S){var te=E.call(this,T,S)||this;switch(te.type=S.type.toLowerCase(),te.checked=S.checked,te.value=gu(S),(te.type===gh||te.type===mh)&&(te.styles.backgroundColor=3739148031,te.styles.borderTopColor=te.styles.borderRightColor=te.styles.borderBottomColor=te.styles.borderLeftColor=2779096575,te.styles.borderTopWidth=te.styles.borderRightWidth=te.styles.borderBottomWidth=te.styles.borderLeftWidth=1,te.styles.borderTopStyle=te.styles.borderRightStyle=te.styles.borderBottomStyle=te.styles.borderLeftStyle=1,te.styles.backgroundClip=[0],te.styles.backgroundOrigin=[0],te.bounds=lc(te.bounds)),te.type){case gh:te.styles.borderTopRightRadius=te.styles.borderTopLeftRadius=te.styles.borderBottomRightRadius=te.styles.borderBottomLeftRadius=co;break;case mh:te.styles.borderTopRightRadius=te.styles.borderTopLeftRadius=te.styles.borderBottomRightRadius=te.styles.borderBottomLeftRadius=Ia;break}return te}return p}(no),Ed=function(E){je(p,E);function p(T,S){var te=E.call(this,T,S)||this,Ce=S.options[S.selectedIndex||0];return te.value=Ce&&Ce.text||"",te}return p}(no),yh=function(E){je(p,E);function p(T,S){var te=E.call(this,T,S)||this;return te.value=S.value,te}return p}(no),Bd=function(E){je(p,E);function p(T,S){var te=E.call(this,T,S)||this;te.src=S.src,te.width=parseInt(S.width,10)||0,te.height=parseInt(S.height,10)||0,te.backgroundColor=te.styles.backgroundColor;try{if(S.contentWindow&&S.contentWindow.document&&S.contentWindow.document.documentElement){te.tree=up(T,S.contentWindow.document.documentElement);var Ce=S.contentWindow.document.documentElement?xo(T,getComputedStyle(S.contentWindow.document.documentElement).backgroundColor):Sa.TRANSPARENT,$e=S.contentWindow.document.body?xo(T,getComputedStyle(S.contentWindow.document.body).backgroundColor):Sa.TRANSPARENT;te.backgroundColor=ea(Ce)?ea($e)?te.styles.backgroundColor:$e:Ce}}catch(yt){}return te}return p}(no),Uu=["OL","UL","MENU"],Pu=function(E,p,T,S){for(var te=p.firstChild,Ce=void 0;te;te=Ce)if(Ce=te.nextSibling,wf(te)&&te.data.trim().length>0)T.textNodes.push(new _d(E,te,T.styles));else if(Ou(te))if(Ld(te)&&te.assignedNodes)te.assignedNodes().forEach(function(yt){return Pu(E,yt,T,S)});else{var $e=w0(E,te);$e.styles.isVisible()&&(cp(te,$e,S)?$e.flags|=4:xd($e.styles)&&($e.flags|=2),Uu.indexOf(te.tagName)!==-1&&($e.flags|=8),T.elements.push($e),te.slot,te.shadowRoot?Pu(E,te.shadowRoot,$e,S):!b0(te)&&!Sd(te)&&!bh(te)&&Pu(E,te,$e,S))}},w0=function(E,p){return Bf(p)?new dh(E,p):Id(p)?new _f(E,p):Sd(p)?new wd(E,p):wh(p)?new bd(E,p):hp(p)?new ph(E,p):Cd(p)?new _0(E,p):bh(p)?new Ed(E,p):b0(p)?new yh(E,p):xf(p)?new Bd(E,p):new no(E,p)},up=function(E,p){var T=w0(E,p);return T.flags|=4,Pu(E,p,T,T),T},cp=function(E,p,T){return p.styles.isPositionedWithZIndex()||p.styles.opacity<1||p.styles.isTransformed()||Ef(E)&&T.styles.isTransparent()},xd=function(E){return E.isPositioned()||E.isFloating()},wf=function(E){return E.nodeType===Node.TEXT_NODE},Ou=function(E){return E.nodeType===Node.ELEMENT_NODE},bf=function(E){return Ou(E)&&typeof E.style!="undefined"&&!_h(E)},_h=function(E){return typeof E.className=="object"},wh=function(E){return E.tagName==="LI"},hp=function(E){return E.tagName==="OL"},Cd=function(E){return E.tagName==="INPUT"},fp=function(E){return E.tagName==="HTML"},Sd=function(E){return E.tagName==="svg"},Ef=function(E){return E.tagName==="BODY"},Id=function(E){return E.tagName==="CANVAS"},Td=function(E){return E.tagName==="VIDEO"},Bf=function(E){return E.tagName==="IMG"},xf=function(E){return E.tagName==="IFRAME"},Fd=function(E){return E.tagName==="STYLE"},Cf=function(E){return E.tagName==="SCRIPT"},b0=function(E){return E.tagName==="TEXTAREA"},bh=function(E){return E.tagName==="SELECT"},Ld=function(E){return E.tagName==="SLOT"},Dd=function(E){return E.tagName.indexOf("-")>0},dp=function(){function E(){this.counters={}}return E.prototype.getCounterValue=function(p){var T=this.counters[p];return T&&T.length?T[T.length-1]:1},E.prototype.getCounterValues=function(p){var T=this.counters[p];return T||[]},E.prototype.pop=function(p){var T=this;p.forEach(function(S){return T.counters[S].pop()})},E.prototype.parse=function(p){var T=this,S=p.counterIncrement,te=p.counterReset,Ce=!0;S!==null&&S.forEach(function(yt){var vt=T.counters[yt.counter];vt&&yt.increment!==0&&(Ce=!1,vt.length||vt.push(1),vt[Math.max(0,vt.length-1)]+=yt.increment)});var $e=[];return Ce&&te.forEach(function(yt){var vt=T.counters[yt.counter];$e.push(yt.counter),vt||(vt=T.counters[yt.counter]=[]),vt.push(yt.reset)}),$e},E}(),Sf={integers:[1e3,900,500,400,100,90,50,40,10,9,5,4,1],values:["M","CM","D","CD","C","XC","L","XL","X","IX","V","IV","I"]},If={integers:[9e3,8e3,7e3,6e3,5e3,4e3,3e3,2e3,1e3,900,800,700,600,500,400,300,200,100,90,80,70,60,50,40,30,20,10,9,8,7,6,5,4,3,2,1],values:["\u0554","\u0553","\u0552","\u0551","\u0550","\u054F","\u054E","\u054D","\u054C","\u054B","\u054A","\u0549","\u0548","\u0547","\u0546","\u0545","\u0544","\u0543","\u0542","\u0541","\u0540","\u053F","\u053E","\u053D","\u053C","\u053B","\u053A","\u0539","\u0538","\u0537","\u0536","\u0535","\u0534","\u0533","\u0532","\u0531"]},pp={integers:[1e4,9e3,8e3,7e3,6e3,5e3,4e3,3e3,2e3,1e3,400,300,200,100,90,80,70,60,50,40,30,20,19,18,17,16,15,10,9,8,7,6,5,4,3,2,1],values:["\u05D9\u05F3","\u05D8\u05F3","\u05D7\u05F3","\u05D6\u05F3","\u05D5\u05F3","\u05D4\u05F3","\u05D3\u05F3","\u05D2\u05F3","\u05D1\u05F3","\u05D0\u05F3","\u05EA","\u05E9","\u05E8","\u05E7","\u05E6","\u05E4","\u05E2","\u05E1","\u05E0","\u05DE","\u05DC","\u05DB","\u05D9\u05D8","\u05D9\u05D7","\u05D9\u05D6","\u05D8\u05D6","\u05D8\u05D5","\u05D9","\u05D8","\u05D7","\u05D6","\u05D5","\u05D4","\u05D3","\u05D2","\u05D1","\u05D0"]},kd={integers:[1e4,9e3,8e3,7e3,6e3,5e3,4e3,3e3,2e3,1e3,900,800,700,600,500,400,300,200,100,90,80,70,60,50,40,30,20,10,9,8,7,6,5,4,3,2,1],values:["\u10F5","\u10F0","\u10EF","\u10F4","\u10EE","\u10ED","\u10EC","\u10EB","\u10EA","\u10E9","\u10E8","\u10E7","\u10E6","\u10E5","\u10E4","\u10F3","\u10E2","\u10E1","\u10E0","\u10DF","\u10DE","\u10DD","\u10F2","\u10DC","\u10DB","\u10DA","\u10D9","\u10D8","\u10D7","\u10F1","\u10D6","\u10D5","\u10D4","\u10D3","\u10D2","\u10D1","\u10D0"]},Nu=function(E,p,T,S,te,Ce){return E<p||E>T?B0(E,te,Ce.length>0):S.integers.reduce(function($e,yt,vt){for(;E>=yt;)E-=yt,$e+=S.values[vt];return $e},"")+Ce},Rd=function(E,p,T,S){var te="";do T||E--,te=S(E)+te,E/=p;while(E*p>=p);return te},Ys=function(E,p,T,S,te){var Ce=T-p+1;return(E<0?"-":"")+(Rd(Math.abs(E),Ce,S,function($e){return u(Math.floor($e%Ce)+p)})+te)},Bl=function(E,p,T){T===void 0&&(T=". ");var S=p.length;return Rd(Math.abs(E),S,!1,function(te){return p[Math.floor(te%S)]})+T},uc=1,Ha=2,jl=4,E0=8,Kl=function(E,p,T,S,te,Ce){if(E<-9999||E>9999)return B0(E,4,te.length>0);var $e=Math.abs(E),yt=te;if($e===0)return p[0]+yt;for(var vt=0;$e>0&&vt<=4;vt++){var er=$e%10;er===0&&tn(Ce,uc)&&yt!==""?yt=p[er]+yt:er>1||er===1&&vt===0||er===1&&vt===1&&tn(Ce,Ha)||er===1&&vt===1&&tn(Ce,jl)&&E>100||er===1&&vt>1&&tn(Ce,E0)?yt=p[er]+(vt>0?T[vt-1]:"")+yt:er===1&&vt>0&&(yt=T[vt-1]+yt),$e=Math.floor($e/10)}return(E<0?S:"")+yt},Tf="\u5341\u767E\u5343\u842C",Oc="\u62FE\u4F70\u4EDF\u842C",Eh="\u30DE\u30A4\u30CA\u30B9",Ff="\uB9C8\uC774\uB108\uC2A4",B0=function(E,p,T){var S=T?". ":"",te=T?"\u3001":"",Ce=T?", ":"",$e=T?" ":"";switch(p){case 0:return"\u2022"+$e;case 1:return"\u25E6"+$e;case 2:return"\u25FE"+$e;case 5:var yt=Ys(E,48,57,!0,S);return yt.length<4?"0"+yt:yt;case 4:return Bl(E,"\u3007\u4E00\u4E8C\u4E09\u56DB\u4E94\u516D\u4E03\u516B\u4E5D",te);case 6:return Nu(E,1,3999,Sf,3,S).toLowerCase();case 7:return Nu(E,1,3999,Sf,3,S);case 8:return Ys(E,945,969,!1,S);case 9:return Ys(E,97,122,!1,S);case 10:return Ys(E,65,90,!1,S);case 11:return Ys(E,1632,1641,!0,S);case 12:case 49:return Nu(E,1,9999,If,3,S);case 35:return Nu(E,1,9999,If,3,S).toLowerCase();case 13:return Ys(E,2534,2543,!0,S);case 14:case 30:return Ys(E,6112,6121,!0,S);case 15:return Bl(E,"\u5B50\u4E11\u5BC5\u536F\u8FB0\u5DF3\u5348\u672A\u7533\u9149\u620C\u4EA5",te);case 16:return Bl(E,"\u7532\u4E59\u4E19\u4E01\u620A\u5DF1\u5E9A\u8F9B\u58EC\u7678",te);case 17:case 48:return Kl(E,"\u96F6\u4E00\u4E8C\u4E09\u56DB\u4E94\u516D\u4E03\u516B\u4E5D",Tf,"\u8CA0",te,Ha|jl|E0);case 47:return Kl(E,"\u96F6\u58F9\u8CB3\u53C3\u8086\u4F0D\u9678\u67D2\u634C\u7396",Oc,"\u8CA0",te,uc|Ha|jl|E0);case 42:return Kl(E,"\u96F6\u4E00\u4E8C\u4E09\u56DB\u4E94\u516D\u4E03\u516B\u4E5D",Tf,"\u8D1F",te,Ha|jl|E0);case 41:return Kl(E,"\u96F6\u58F9\u8D30\u53C1\u8086\u4F0D\u9646\u67D2\u634C\u7396",Oc,"\u8D1F",te,uc|Ha|jl|E0);case 26:return Kl(E,"\u3007\u4E00\u4E8C\u4E09\u56DB\u4E94\u516D\u4E03\u516B\u4E5D","\u5341\u767E\u5343\u4E07",Eh,te,0);case 25:return Kl(E,"\u96F6\u58F1\u5F10\u53C2\u56DB\u4F0D\u516D\u4E03\u516B\u4E5D","\u62FE\u767E\u5343\u4E07",Eh,te,uc|Ha|jl);case 31:return Kl(E,"\uC601\uC77C\uC774\uC0BC\uC0AC\uC624\uC721\uCE60\uD314\uAD6C","\uC2ED\uBC31\uCC9C\uB9CC",Ff,Ce,uc|Ha|jl);case 33:return Kl(E,"\u96F6\u4E00\u4E8C\u4E09\u56DB\u4E94\u516D\u4E03\u516B\u4E5D","\u5341\u767E\u5343\u842C",Ff,Ce,0);case 32:return Kl(E,"\u96F6\u58F9\u8CB3\u53C3\u56DB\u4E94\u516D\u4E03\u516B\u4E5D","\u62FE\u767E\u5343",Ff,Ce,uc|Ha|jl);case 18:return Ys(E,2406,2415,!0,S);case 20:return Nu(E,1,19999,kd,3,S);case 21:return Ys(E,2790,2799,!0,S);case 22:return Ys(E,2662,2671,!0,S);case 22:return Nu(E,1,10999,pp,3,S);case 23:return Bl(E,"\u3042\u3044\u3046\u3048\u304A\u304B\u304D\u304F\u3051\u3053\u3055\u3057\u3059\u305B\u305D\u305F\u3061\u3064\u3066\u3068\u306A\u306B\u306C\u306D\u306E\u306F\u3072\u3075\u3078\u307B\u307E\u307F\u3080\u3081\u3082\u3084\u3086\u3088\u3089\u308A\u308B\u308C\u308D\u308F\u3090\u3091\u3092\u3093");case 24:return Bl(E,"\u3044\u308D\u306F\u306B\u307B\u3078\u3068\u3061\u308A\u306C\u308B\u3092\u308F\u304B\u3088\u305F\u308C\u305D\u3064\u306D\u306A\u3089\u3080\u3046\u3090\u306E\u304A\u304F\u3084\u307E\u3051\u3075\u3053\u3048\u3066\u3042\u3055\u304D\u3086\u3081\u307F\u3057\u3091\u3072\u3082\u305B\u3059");case 27:return Ys(E,3302,3311,!0,S);case 28:return Bl(E,"\u30A2\u30A4\u30A6\u30A8\u30AA\u30AB\u30AD\u30AF\u30B1\u30B3\u30B5\u30B7\u30B9\u30BB\u30BD\u30BF\u30C1\u30C4\u30C6\u30C8\u30CA\u30CB\u30CC\u30CD\u30CE\u30CF\u30D2\u30D5\u30D8\u30DB\u30DE\u30DF\u30E0\u30E1\u30E2\u30E4\u30E6\u30E8\u30E9\u30EA\u30EB\u30EC\u30ED\u30EF\u30F0\u30F1\u30F2\u30F3",te);case 29:return Bl(E,"\u30A4\u30ED\u30CF\u30CB\u30DB\u30D8\u30C8\u30C1\u30EA\u30CC\u30EB\u30F2\u30EF\u30AB\u30E8\u30BF\u30EC\u30BD\u30C4\u30CD\u30CA\u30E9\u30E0\u30A6\u30F0\u30CE\u30AA\u30AF\u30E4\u30DE\u30B1\u30D5\u30B3\u30A8\u30C6\u30A2\u30B5\u30AD\u30E6\u30E1\u30DF\u30B7\u30F1\u30D2\u30E2\u30BB\u30B9",te);case 34:return Ys(E,3792,3801,!0,S);case 37:return Ys(E,6160,6169,!0,S);case 38:return Ys(E,4160,4169,!0,S);case 39:return Ys(E,2918,2927,!0,S);case 40:return Ys(E,1776,1785,!0,S);case 43:return Ys(E,3046,3055,!0,S);case 44:return Ys(E,3174,3183,!0,S);case 45:return Ys(E,3664,3673,!0,S);case 46:return Ys(E,3872,3881,!0,S);case 3:default:return Ys(E,48,57,!0,S)}},x0="data-html2canvas-ignore",gp=function(){function E(p,T,S){if(this.context=p,this.options=S,this.scrolledElements=[],this.referenceElement=T,this.counters=new dp,this.quoteDepth=0,!T.ownerDocument)throw new Error("Cloned element does not have an owner document");this.documentElement=this.cloneNode(T.ownerDocument.documentElement,!1)}return E.prototype.toIFrame=function(p,T){var S=this,te=S0(p,T);if(!te.contentWindow)return Promise.reject("Unable to find iframe window");var Ce=p.defaultView.pageXOffset,$e=p.defaultView.pageYOffset,yt=te.contentWindow,vt=yt.document,er=I0(te).then(function(){return mt(S,void 0,void 0,function(){var lr,mr;return Fe(this,function(Gr){switch(Gr.label){case 0:return this.scrolledElements.forEach(Pd),yt&&(yt.scrollTo(T.left,T.top),/(iPad|iPhone|iPod)/g.test(navigator.userAgent)&&(yt.scrollY!==T.top||yt.scrollX!==T.left)&&(this.context.logger.warn("Unable to restore scroll position for cloned document"),this.context.windowBounds=this.context.windowBounds.add(yt.scrollX-T.left,yt.scrollY-T.top,0,0))),lr=this.options.onclone,mr=this.clonedReferenceElement,typeof mr=="undefined"?[2,Promise.reject("Error finding the "+this.referenceElement.nodeName+" in the cloned document")]:vt.fonts&&vt.fonts.ready?[4,vt.fonts.ready]:[3,2];case 1:Gr.sent(),Gr.label=2;case 2:return/(AppleWebKit)/g.test(navigator.userAgent)?[4,Bh(vt)]:[3,4];case 3:Gr.sent(),Gr.label=4;case 4:return typeof lr=="function"?[2,Promise.resolve().then(function(){return lr(vt,mr)}).then(function(){return te})]:[2,te]}})})});return vt.open(),vt.write(Ud(document.doctype)+"<html></html>"),xh(this.referenceElement.ownerDocument,Ce,$e),vt.replaceChild(vt.adoptNode(this.documentElement),vt.documentElement),vt.close(),er},E.prototype.createElementClone=function(p){if(da(p,2))debugger;if(Id(p))return this.createCanvasClone(p);if(Td(p))return this.createVideoClone(p);if(Fd(p))return this.createStyleClone(p);var T=p.cloneNode(!1);return Bf(T)&&(Bf(p)&&p.currentSrc&&p.currentSrc!==p.src&&(T.src=p.currentSrc,T.srcset=""),T.loading==="lazy"&&(T.loading="eager")),Dd(T)?this.createCustomElementClone(T):T},E.prototype.createCustomElementClone=function(p){var T=document.createElement("html2canvascustomelement");return Nc(p.style,T),T},E.prototype.createStyleClone=function(p){try{var T=p.sheet;if(T&&T.cssRules){var S=[].slice.call(T.cssRules,0).reduce(function(Ce,$e){return $e&&typeof $e.cssText=="string"?Ce+$e.cssText:Ce},""),te=p.cloneNode(!1);return te.textContent=S,te}}catch(Ce){if(this.context.logger.error("Unable to access cssRules property",Ce),Ce.name!=="SecurityError")throw Ce}return p.cloneNode(!1)},E.prototype.createCanvasClone=function(p){var T;if(this.options.inlineImages&&p.ownerDocument){var S=p.ownerDocument.createElement("img");try{return S.src=p.toDataURL(),S}catch(er){this.context.logger.info("Unable to inline canvas contents, canvas is tainted",p)}}var te=p.cloneNode(!1);try{te.width=p.width,te.height=p.height;var Ce=p.getContext("2d"),$e=te.getContext("2d");if($e)if(!this.options.allowTaint&&Ce)$e.putImageData(Ce.getImageData(0,0,p.width,p.height),0,0);else{var yt=(T=p.getContext("webgl2"))!==null&&T!==void 0?T:p.getContext("webgl");if(yt){var vt=yt.getContextAttributes();(vt==null?void 0:vt.preserveDrawingBuffer)===!1&&this.context.logger.warn("Unable to clone WebGL context as it has preserveDrawingBuffer=false",p)}$e.drawImage(p,0,0)}return te}catch(er){this.context.logger.info("Unable to clone canvas as it is tainted",p)}return te},E.prototype.createVideoClone=function(p){var T=p.ownerDocument.createElement("canvas");T.width=p.offsetWidth,T.height=p.offsetHeight;var S=T.getContext("2d");try{return S&&(S.drawImage(p,0,0,T.width,T.height),this.options.allowTaint||S.getImageData(0,0,T.width,T.height)),T}catch(Ce){this.context.logger.info("Unable to clone video as it is tainted",p)}var te=p.ownerDocument.createElement("canvas");return te.width=p.offsetWidth,te.height=p.offsetHeight,te},E.prototype.appendChildNode=function(p,T,S){(!Ou(T)||!Cf(T)&&!T.hasAttribute(x0)&&(typeof this.options.ignoreElements!="function"||!this.options.ignoreElements(T)))&&(!this.options.copyStyles||!Ou(T)||!Fd(T))&&p.appendChild(this.cloneNode(T,S))},E.prototype.cloneChildNodes=function(p,T,S){for(var te=this,Ce=p.shadowRoot?p.shadowRoot.firstChild:p.firstChild;Ce;Ce=Ce.nextSibling)if(Ou(Ce)&&Ld(Ce)&&typeof Ce.assignedNodes=="function"){var $e=Ce.assignedNodes();$e.length&&$e.forEach(function(yt){return te.appendChildNode(T,yt,S)})}else this.appendChildNode(T,Ce,S)},E.prototype.cloneNode=function(p,T){if(wf(p))return document.createTextNode(p.data);if(!p.ownerDocument)return p.cloneNode(!1);var S=p.ownerDocument.defaultView;if(S&&Ou(p)&&(bf(p)||_h(p))){var te=this.createElementClone(p);te.style.transitionProperty="none";var Ce=S.getComputedStyle(p),$e=S.getComputedStyle(p,":before"),yt=S.getComputedStyle(p,":after");this.referenceElement===p&&bf(te)&&(this.clonedReferenceElement=te),Ef(te)&&qp(te);var vt=this.counters.parse(new rr(this.context,Ce)),er=this.resolvePseudoContent(p,te,$e,C0.BEFORE);Dd(p)&&(T=!0),Td(p)||this.cloneChildNodes(p,te,T),er&&te.insertBefore(er,te.firstChild);var lr=this.resolvePseudoContent(p,te,yt,C0.AFTER);return lr&&te.appendChild(lr),this.counters.pop(vt),(Ce&&(this.options.copyStyles||_h(p))&&!xf(p)||T)&&Nc(Ce,te),(p.scrollTop!==0||p.scrollLeft!==0)&&this.scrolledElements.push([te,p.scrollLeft,p.scrollTop]),(b0(p)||bh(p))&&(b0(te)||bh(te))&&(te.value=p.value),te}return p.cloneNode(!1)},E.prototype.resolvePseudoContent=function(p,T,S,te){var Ce=this;if(S){var $e=S.content,yt=T.ownerDocument;if(!(!yt||!$e||$e==="none"||$e==="-moz-alt-content"||S.display==="none")){this.counters.parse(new rr(this.context,S));var vt=new $s(this.context,S),er=yt.createElement("html2canvaspseudoelement");Nc(S,er),vt.content.forEach(function(mr){if(mr.type===0)er.appendChild(yt.createTextNode(mr.value));else if(mr.type===22){var Gr=yt.createElement("img");Gr.src=mr.value,Gr.style.opacity="1",er.appendChild(Gr)}else if(mr.type===18){if(mr.name==="attr"){var Pn=mr.values.filter(Ki);Pn.length&&er.appendChild(yt.createTextNode(p.getAttribute(Pn[0].value)||""))}else if(mr.name==="counter"){var pn=mr.values.filter(fi),Ln=pn[0],Fi=pn[1];if(Ln&&Ki(Ln)){var Wn=Ce.counters.getCounterValue(Ln.value),zn=Fi&&Ki(Fi)?A0.parse(Ce.context,Fi.value):3;er.appendChild(yt.createTextNode(B0(Wn,zn,!1)))}}else if(mr.name==="counters"){var _i=mr.values.filter(fi),Ln=_i[0],Li=_i[1],Fi=_i[2];if(Ln&&Ki(Ln)){var di=Ce.counters.getCounterValues(Ln.value),Rn=Fi&&Ki(Fi)?A0.parse(Ce.context,Fi.value):3,Zi=Li&&Li.type===0?Li.value:"",Ni=di.map(function(wA){return B0(wA,Rn,!1)}).join(Zi);er.appendChild(yt.createTextNode(Ni))}}}else if(mr.type===20)switch(mr.value){case"open-quote":er.appendChild(yt.createTextNode(Qs(vt.quotes,Ce.quoteDepth++,!0)));break;case"close-quote":er.appendChild(yt.createTextNode(Qs(vt.quotes,--Ce.quoteDepth,!1)));break;default:er.appendChild(yt.createTextNode(mr.value))}}),er.className=Ch+" "+Sh;var lr=te===C0.BEFORE?" "+Ch:" "+Sh;return _h(T)?T.className.baseValue+=lr:T.className+=lr,er}}},E.destroy=function(p){return p.parentNode?(p.parentNode.removeChild(p),!0):!1},E}(),C0;(function(E){E[E.BEFORE=0]="BEFORE",E[E.AFTER=1]="AFTER"})(C0||(C0={}));var S0=function(E,p){var T=E.createElement("iframe");return T.className="html2canvas-container",T.style.visibility="hidden",T.style.position="fixed",T.style.left="-10000px",T.style.top="0px",T.style.border="0",T.width=p.width.toString(),T.height=p.height.toString(),T.scrolling="no",T.setAttribute(x0,"true"),E.body.appendChild(T),T},cc=function(E){return new Promise(function(p){if(E.complete){p();return}if(!E.src){p();return}E.onload=p,E.onerror=p})},Bh=function(E){return Promise.all([].slice.call(E.images,0).map(cc))},I0=function(E){return new Promise(function(p,T){var S=E.contentWindow;if(!S)return T("No window assigned for iframe");var te=S.document;S.onload=E.onload=function(){S.onload=E.onload=null;var Ce=setInterval(function(){te.body.childNodes.length>0&&te.readyState==="complete"&&(clearInterval(Ce),p(E))},50)}})},Zp=["all","d","content"],Nc=function(E,p){for(var T=E.length-1;T>=0;T--){var S=E.item(T);Zp.indexOf(S)===-1&&p.style.setProperty(S,E.getPropertyValue(S))}return p},Ud=function(E){var p="";return E&&(p+="<!DOCTYPE ",E.name&&(p+=E.name),E.internalSubset&&(p+=E.internalSubset),E.publicId&&(p+='"'+E.publicId+'"'),E.systemId&&(p+='"'+E.systemId+'"'),p+=">"),p},xh=function(E,p,T){E&&E.defaultView&&(p!==E.defaultView.pageXOffset||T!==E.defaultView.pageYOffset)&&E.defaultView.scrollTo(p,T)},Pd=function(E){var p=E[0],T=E[1],S=E[2];p.scrollLeft=T,p.scrollTop=S},hc=":before",Od=":after",Ch="___html2canvas___pseudoelement_before",Sh="___html2canvas___pseudoelement_after",sl=`{
|
|
|
content: "" !important;
|
|
|
display: none !important;
|
|
|
}`,qp=function(E){Lf(E,"."+Ch+hc+sl+`
|
|
|
.`+Sh+Od+sl)},Lf=function(E,p){var T=E.ownerDocument;if(T){var S=T.createElement("style");S.textContent=p,E.appendChild(S)}},T0=function(){function E(){}return E.getOrigin=function(p){var T=E._link;return T?(T.href=p,T.href=T.href,T.protocol+T.hostname+T.port):"about:blank"},E.isSameOrigin=function(p){return E.getOrigin(p)===E._origin},E.setContext=function(p){E._link=p.document.createElement("a"),E._origin=E.getOrigin(p.location.href)},E._origin="about:blank",E}(),MA=function(){function E(p,T){this.context=p,this._options=T,this._cache={}}return E.prototype.addImage=function(p){var T=Promise.resolve();return this.has(p)||(Cl(p)||Th(p))&&(this._cache[p]=this.loadImage(p)).catch(function(){}),T},E.prototype.match=function(p){return this._cache[p]},E.prototype.loadImage=function(p){return mt(this,void 0,void 0,function(){var T,S,te,Ce,$e=this;return Fe(this,function(yt){switch(yt.label){case 0:return T=T0.isSameOrigin(p),S=!Mc(p)&&this._options.useCORS===!0&&io.SUPPORT_CORS_IMAGES&&!T,te=!Mc(p)&&!T&&!Cl(p)&&typeof this._options.proxy=="string"&&io.SUPPORT_CORS_XHR&&!S,!T&&this._options.allowTaint===!1&&!Mc(p)&&!Cl(p)&&!te&&!S?[2]:(Ce=p,te?[4,this.proxy(Ce)]:[3,2]);case 1:Ce=yt.sent(),yt.label=2;case 2:return this.context.logger.debug("Added image "+p.substring(0,256)),[4,new Promise(function(vt,er){var lr=new Image;lr.onload=function(){return vt(lr)},lr.onerror=er,(xl(Ce)||S)&&(lr.crossOrigin="anonymous"),lr.src=Ce,lr.complete===!0&&setTimeout(function(){return vt(lr)},500),$e._options.imageTimeout>0&&setTimeout(function(){return er("Timed out ("+$e._options.imageTimeout+"ms) loading image")},$e._options.imageTimeout)})];case 3:return[2,yt.sent()]}})})},E.prototype.has=function(p){return typeof this._cache[p]!="undefined"},E.prototype.keys=function(){return Promise.resolve(Object.keys(this._cache))},E.prototype.proxy=function(p){var T=this,S=this._options.proxy;if(!S)throw new Error("No proxy defined");var te=p.substring(0,256);return new Promise(function(Ce,$e){var yt=io.SUPPORT_RESPONSE_TYPE?"blob":"text",vt=new XMLHttpRequest;vt.onload=function(){if(vt.status===200)if(yt==="text")Ce(vt.response);else{var mr=new FileReader;mr.addEventListener("load",function(){return Ce(mr.result)},!1),mr.addEventListener("error",function(Gr){return $e(Gr)},!1),mr.readAsDataURL(vt.response)}else $e("Failed to proxy resource "+te+" with status code "+vt.status)},vt.onerror=$e;var er=S.indexOf("?")>-1?"&":"?";if(vt.open("GET",""+S+er+"url="+encodeURIComponent(p)+"&responseType="+yt),yt!=="text"&&vt instanceof XMLHttpRequest&&(vt.responseType=yt),T._options.imageTimeout){var lr=T._options.imageTimeout;vt.timeout=lr,vt.ontimeout=function(){return $e("Timed out ("+lr+"ms) proxying "+te)}}vt.send()})},E}(),Ih=/^data:image\/svg\+xml/i,Nd=/^data:image\/.*;base64,/i,Df=/^data:image\/.*/i,Th=function(E){return io.SUPPORT_SVG_DRAWING||!mp(E)},Mc=function(E){return Df.test(E)},xl=function(E){return Nd.test(E)},Cl=function(E){return E.substr(0,4)==="blob"},mp=function(E){return E.substr(-3).toLowerCase()==="svg"||Ih.test(E)},Qn=function(){function E(p,T){this.type=0,this.x=p,this.y=T}return E.prototype.add=function(p,T){return new E(this.x+p,this.y+T)},E}(),fc=function(E,p,T){return new Qn(E.x+(p.x-E.x)*T,E.y+(p.y-E.y)*T)},Fh=function(){function E(p,T,S,te){this.type=1,this.start=p,this.startControl=T,this.endControl=S,this.end=te}return E.prototype.subdivide=function(p,T){var S=fc(this.start,this.startControl,p),te=fc(this.startControl,this.endControl,p),Ce=fc(this.endControl,this.end,p),$e=fc(S,te,p),yt=fc(te,Ce,p),vt=fc($e,yt,p);return T?new E(this.start,S,$e,vt):new E(vt,yt,Ce,this.end)},E.prototype.add=function(p,T){return new E(this.start.add(p,T),this.startControl.add(p,T),this.endControl.add(p,T),this.end.add(p,T))},E.prototype.reverse=function(){return new E(this.end,this.endControl,this.startControl,this.start)},E}(),al=function(E){return E.type===1},vp=function(){function E(p){var T=p.styles,S=p.bounds,te=pA(T.borderTopLeftRadius,S.width,S.height),Ce=te[0],$e=te[1],yt=pA(T.borderTopRightRadius,S.width,S.height),vt=yt[0],er=yt[1],lr=pA(T.borderBottomRightRadius,S.width,S.height),mr=lr[0],Gr=lr[1],Pn=pA(T.borderBottomLeftRadius,S.width,S.height),pn=Pn[0],Ln=Pn[1],Fi=[];Fi.push((Ce+vt)/S.width),Fi.push((pn+mr)/S.width),Fi.push(($e+Ln)/S.height),Fi.push((er+Gr)/S.height);var Wn=Math.max.apply(Math,Fi);Wn>1&&(Ce/=Wn,$e/=Wn,vt/=Wn,er/=Wn,mr/=Wn,Gr/=Wn,pn/=Wn,Ln/=Wn);var zn=S.width-vt,_i=S.height-Gr,Li=S.width-mr,di=S.height-Ln,Rn=T.borderTopWidth,Zi=T.borderRightWidth,Ni=T.borderBottomWidth,Bi=T.borderLeftWidth,xn=Ji(T.paddingTop,p.bounds.width),wA=Ji(T.paddingRight,p.bounds.width),bA=Ji(T.paddingBottom,p.bounds.width),Ps=Ji(T.paddingLeft,p.bounds.width);this.topLeftBorderDoubleOuterBox=Ce>0||$e>0?ta(S.left+Bi/3,S.top+Rn/3,Ce-Bi/3,$e-Rn/3,gs.TOP_LEFT):new Qn(S.left+Bi/3,S.top+Rn/3),this.topRightBorderDoubleOuterBox=Ce>0||$e>0?ta(S.left+zn,S.top+Rn/3,vt-Zi/3,er-Rn/3,gs.TOP_RIGHT):new Qn(S.left+S.width-Zi/3,S.top+Rn/3),this.bottomRightBorderDoubleOuterBox=mr>0||Gr>0?ta(S.left+Li,S.top+_i,mr-Zi/3,Gr-Ni/3,gs.BOTTOM_RIGHT):new Qn(S.left+S.width-Zi/3,S.top+S.height-Ni/3),this.bottomLeftBorderDoubleOuterBox=pn>0||Ln>0?ta(S.left+Bi/3,S.top+di,pn-Bi/3,Ln-Ni/3,gs.BOTTOM_LEFT):new Qn(S.left+Bi/3,S.top+S.height-Ni/3),this.topLeftBorderDoubleInnerBox=Ce>0||$e>0?ta(S.left+Bi*2/3,S.top+Rn*2/3,Ce-Bi*2/3,$e-Rn*2/3,gs.TOP_LEFT):new Qn(S.left+Bi*2/3,S.top+Rn*2/3),this.topRightBorderDoubleInnerBox=Ce>0||$e>0?ta(S.left+zn,S.top+Rn*2/3,vt-Zi*2/3,er-Rn*2/3,gs.TOP_RIGHT):new Qn(S.left+S.width-Zi*2/3,S.top+Rn*2/3),this.bottomRightBorderDoubleInnerBox=mr>0||Gr>0?ta(S.left+Li,S.top+_i,mr-Zi*2/3,Gr-Ni*2/3,gs.BOTTOM_RIGHT):new Qn(S.left+S.width-Zi*2/3,S.top+S.height-Ni*2/3),this.bottomLeftBorderDoubleInnerBox=pn>0||Ln>0?ta(S.left+Bi*2/3,S.top+di,pn-Bi*2/3,Ln-Ni*2/3,gs.BOTTOM_LEFT):new Qn(S.left+Bi*2/3,S.top+S.height-Ni*2/3),this.topLeftBorderStroke=Ce>0||$e>0?ta(S.left+Bi/2,S.top+Rn/2,Ce-Bi/2,$e-Rn/2,gs.TOP_LEFT):new Qn(S.left+Bi/2,S.top+Rn/2),this.topRightBorderStroke=Ce>0||$e>0?ta(S.left+zn,S.top+Rn/2,vt-Zi/2,er-Rn/2,gs.TOP_RIGHT):new Qn(S.left+S.width-Zi/2,S.top+Rn/2),this.bottomRightBorderStroke=mr>0||Gr>0?ta(S.left+Li,S.top+_i,mr-Zi/2,Gr-Ni/2,gs.BOTTOM_RIGHT):new Qn(S.left+S.width-Zi/2,S.top+S.height-Ni/2),this.bottomLeftBorderStroke=pn>0||Ln>0?ta(S.left+Bi/2,S.top+di,pn-Bi/2,Ln-Ni/2,gs.BOTTOM_LEFT):new Qn(S.left+Bi/2,S.top+S.height-Ni/2),this.topLeftBorderBox=Ce>0||$e>0?ta(S.left,S.top,Ce,$e,gs.TOP_LEFT):new Qn(S.left,S.top),this.topRightBorderBox=vt>0||er>0?ta(S.left+zn,S.top,vt,er,gs.TOP_RIGHT):new Qn(S.left+S.width,S.top),this.bottomRightBorderBox=mr>0||Gr>0?ta(S.left+Li,S.top+_i,mr,Gr,gs.BOTTOM_RIGHT):new Qn(S.left+S.width,S.top+S.height),this.bottomLeftBorderBox=pn>0||Ln>0?ta(S.left,S.top+di,pn,Ln,gs.BOTTOM_LEFT):new Qn(S.left,S.top+S.height),this.topLeftPaddingBox=Ce>0||$e>0?ta(S.left+Bi,S.top+Rn,Math.max(0,Ce-Bi),Math.max(0,$e-Rn),gs.TOP_LEFT):new Qn(S.left+Bi,S.top+Rn),this.topRightPaddingBox=vt>0||er>0?ta(S.left+Math.min(zn,S.width-Zi),S.top+Rn,zn>S.width+Zi?0:Math.max(0,vt-Zi),Math.max(0,er-Rn),gs.TOP_RIGHT):new Qn(S.left+S.width-Zi,S.top+Rn),this.bottomRightPaddingBox=mr>0||Gr>0?ta(S.left+Math.min(Li,S.width-Bi),S.top+Math.min(_i,S.height-Ni),Math.max(0,mr-Zi),Math.max(0,Gr-Ni),gs.BOTTOM_RIGHT):new Qn(S.left+S.width-Zi,S.top+S.height-Ni),this.bottomLeftPaddingBox=pn>0||Ln>0?ta(S.left+Bi,S.top+Math.min(di,S.height-Ni),Math.max(0,pn-Bi),Math.max(0,Ln-Ni),gs.BOTTOM_LEFT):new Qn(S.left+Bi,S.top+S.height-Ni),this.topLeftContentBox=Ce>0||$e>0?ta(S.left+Bi+Ps,S.top+Rn+xn,Math.max(0,Ce-(Bi+Ps)),Math.max(0,$e-(Rn+xn)),gs.TOP_LEFT):new Qn(S.left+Bi+Ps,S.top+Rn+xn),this.topRightContentBox=vt>0||er>0?ta(S.left+Math.min(zn,S.width+Bi+Ps),S.top+Rn+xn,zn>S.width+Bi+Ps?0:vt-Bi+Ps,er-(Rn+xn),gs.TOP_RIGHT):new Qn(S.left+S.width-(Zi+wA),S.top+Rn+xn),this.bottomRightContentBox=mr>0||Gr>0?ta(S.left+Math.min(Li,S.width-(Bi+Ps)),S.top+Math.min(_i,S.height+Rn+xn),Math.max(0,mr-(Zi+wA)),Gr-(Ni+bA),gs.BOTTOM_RIGHT):new Qn(S.left+S.width-(Zi+wA),S.top+S.height-(Ni+bA)),this.bottomLeftContentBox=pn>0||Ln>0?ta(S.left+Bi+Ps,S.top+di,Math.max(0,pn-(Bi+Ps)),Ln-(Ni+bA),gs.BOTTOM_LEFT):new Qn(S.left+Bi+Ps,S.top+S.height-(Ni+bA))}return E}(),gs;(function(E){E[E.TOP_LEFT=0]="TOP_LEFT",E[E.TOP_RIGHT=1]="TOP_RIGHT",E[E.BOTTOM_RIGHT=2]="BOTTOM_RIGHT",E[E.BOTTOM_LEFT=3]="BOTTOM_LEFT"})(gs||(gs={}));var ta=function(E,p,T,S,te){var Ce=4*((Math.sqrt(2)-1)/3),$e=T*Ce,yt=S*Ce,vt=E+T,er=p+S;switch(te){case gs.TOP_LEFT:return new Fh(new Qn(E,er),new Qn(E,er-yt),new Qn(vt-$e,p),new Qn(vt,p));case gs.TOP_RIGHT:return new Fh(new Qn(E,p),new Qn(E+$e,p),new Qn(vt,er-yt),new Qn(vt,er));case gs.BOTTOM_RIGHT:return new Fh(new Qn(vt,p),new Qn(vt,p+yt),new Qn(E+$e,er),new Qn(E,er));case gs.BOTTOM_LEFT:default:return new Fh(new Qn(vt,er),new Qn(vt-$e,er),new Qn(E,p+yt),new Qn(E,p))}},Lh=function(E){return[E.topLeftBorderBox,E.topRightBorderBox,E.bottomRightBorderBox,E.bottomLeftBorderBox]},Xp=function(E){return[E.topLeftContentBox,E.topRightContentBox,E.bottomRightContentBox,E.bottomLeftContentBox]},F0=function(E){return[E.topLeftPaddingBox,E.topRightPaddingBox,E.bottomRightPaddingBox,E.bottomLeftPaddingBox]},Ii=function(){function E(p,T,S){this.offsetX=p,this.offsetY=T,this.matrix=S,this.type=0,this.target=6}return E}(),dc=function(){function E(p,T){this.path=p,this.target=T,this.type=1}return E}(),Us=function(){function E(p){this.opacity=p,this.type=2,this.target=6}return E}(),kf=function(E){return E.type===0},Rf=function(E){return E.type===1},Qc=function(E){return E.type===2},Mu=function(E,p){return E.length===p.length?E.some(function(T,S){return T===p[S]}):!1},Uf=function(E,p,T,S,te){return E.map(function(Ce,$e){switch($e){case 0:return Ce.add(p,T);case 1:return Ce.add(p+S,T);case 2:return Ce.add(p+S,T+te);case 3:return Ce.add(p,T+te)}return Ce})},L0=function(){function E(p){this.element=p,this.inlineLevel=[],this.nonInlineLevel=[],this.negativeZIndex=[],this.zeroOrAutoZIndexOrTransformedOrOpacity=[],this.positiveZIndex=[],this.nonPositionedFloats=[],this.nonPositionedInlineLevel=[]}return E}(),Dh=function(){function E(p,T){if(this.container=p,this.parent=T,this.effects=[],this.curves=new vp(this.container),this.container.styles.opacity<1&&this.effects.push(new Us(this.container.styles.opacity)),this.container.styles.transform!==null){var S=this.container.bounds.left+this.container.styles.transformOrigin[0].number,te=this.container.bounds.top+this.container.styles.transformOrigin[1].number,Ce=this.container.styles.transform;this.effects.push(new Ii(S,te,Ce))}if(this.container.styles.overflowX!==0){var $e=Lh(this.curves),yt=F0(this.curves);Mu($e,yt)?this.effects.push(new dc($e,6)):(this.effects.push(new dc($e,2)),this.effects.push(new dc(yt,4)))}}return E.prototype.getEffects=function(p){for(var T=[2,3].indexOf(this.container.styles.position)===-1,S=this.parent,te=this.effects.slice(0);S;){var Ce=S.effects.filter(function(vt){return!Rf(vt)});if(T||S.container.styles.position!==0||!S.parent){if(te.unshift.apply(te,Ce),T=[2,3].indexOf(S.container.styles.position)===-1,S.container.styles.overflowX!==0){var $e=Lh(S.curves),yt=F0(S.curves);Mu($e,yt)||te.unshift(new dc(yt,6))}}else te.unshift.apply(te,Ce);S=S.parent}return te.filter(function(vt){return tn(vt.target,p)})},E}(),pc=function(E,p,T,S){E.container.elements.forEach(function(te){var Ce=tn(te.flags,4),$e=tn(te.flags,2),yt=new Dh(te,E);tn(te.styles.display,2048)&&S.push(yt);var vt=tn(te.flags,8)?[]:S;if(Ce||$e){var er=Ce||te.styles.isPositioned()?T:p,lr=new L0(yt);if(te.styles.isPositioned()||te.styles.opacity<1||te.styles.isTransformed()){var mr=te.styles.zIndex.order;if(mr<0){var Gr=0;er.negativeZIndex.some(function(pn,Ln){return mr>pn.element.container.styles.zIndex.order?(Gr=Ln,!1):Gr>0}),er.negativeZIndex.splice(Gr,0,lr)}else if(mr>0){var Pn=0;er.positiveZIndex.some(function(pn,Ln){return mr>=pn.element.container.styles.zIndex.order?(Pn=Ln+1,!1):Pn>0}),er.positiveZIndex.splice(Pn,0,lr)}else er.zeroOrAutoZIndexOrTransformedOrOpacity.push(lr)}else te.styles.isFloating()?er.nonPositionedFloats.push(lr):er.nonPositionedInlineLevel.push(lr);pc(yt,lr,Ce?lr:T,vt)}else te.styles.isInlineLevel()?p.inlineLevel.push(yt):p.nonInlineLevel.push(yt),pc(yt,p,T,vt);tn(te.flags,8)&&Qu(te,vt)})},Qu=function(E,p){for(var T=E instanceof ph?E.start:1,S=E instanceof ph?E.reversed:!1,te=0;te<p.length;te++){var Ce=p[te];Ce.container instanceof bd&&typeof Ce.container.value=="number"&&Ce.container.value!==0&&(T=Ce.container.value),Ce.listValue=B0(T,Ce.container.styles.listStyleType,!0),T+=S?-1:1}},Ko=function(E){var p=new Dh(E,null),T=new L0(p),S=[];return pc(p,T,T,S),Qu(p.container,S),T},ho=function(E,p){switch(p){case 0:return eA(E.topLeftBorderBox,E.topLeftPaddingBox,E.topRightBorderBox,E.topRightPaddingBox);case 1:return eA(E.topRightBorderBox,E.topRightPaddingBox,E.bottomRightBorderBox,E.bottomRightPaddingBox);case 2:return eA(E.bottomRightBorderBox,E.bottomRightPaddingBox,E.bottomLeftBorderBox,E.bottomLeftPaddingBox);case 3:default:return eA(E.bottomLeftBorderBox,E.bottomLeftPaddingBox,E.topLeftBorderBox,E.topLeftPaddingBox)}},zo=function(E,p){switch(p){case 0:return eA(E.topLeftBorderBox,E.topLeftBorderDoubleOuterBox,E.topRightBorderBox,E.topRightBorderDoubleOuterBox);case 1:return eA(E.topRightBorderBox,E.topRightBorderDoubleOuterBox,E.bottomRightBorderBox,E.bottomRightBorderDoubleOuterBox);case 2:return eA(E.bottomRightBorderBox,E.bottomRightBorderDoubleOuterBox,E.bottomLeftBorderBox,E.bottomLeftBorderDoubleOuterBox);case 3:default:return eA(E.bottomLeftBorderBox,E.bottomLeftBorderDoubleOuterBox,E.topLeftBorderBox,E.topLeftBorderDoubleOuterBox)}},Go=function(E,p){switch(p){case 0:return eA(E.topLeftBorderDoubleInnerBox,E.topLeftPaddingBox,E.topRightBorderDoubleInnerBox,E.topRightPaddingBox);case 1:return eA(E.topRightBorderDoubleInnerBox,E.topRightPaddingBox,E.bottomRightBorderDoubleInnerBox,E.bottomRightPaddingBox);case 2:return eA(E.bottomRightBorderDoubleInnerBox,E.bottomRightPaddingBox,E.bottomLeftBorderDoubleInnerBox,E.bottomLeftPaddingBox);case 3:default:return eA(E.bottomLeftBorderDoubleInnerBox,E.bottomLeftPaddingBox,E.topLeftBorderDoubleInnerBox,E.topLeftPaddingBox)}},kh=function(E,p){switch(p){case 0:return Rh(E.topLeftBorderStroke,E.topRightBorderStroke);case 1:return Rh(E.topRightBorderStroke,E.bottomRightBorderStroke);case 2:return Rh(E.bottomRightBorderStroke,E.bottomLeftBorderStroke);case 3:default:return Rh(E.bottomLeftBorderStroke,E.topLeftBorderStroke)}},Rh=function(E,p){var T=[];return al(E)?T.push(E.subdivide(.5,!1)):T.push(E),al(p)?T.push(p.subdivide(.5,!0)):T.push(p),T},eA=function(E,p,T,S){var te=[];return al(E)?te.push(E.subdivide(.5,!1)):te.push(E),al(T)?te.push(T.subdivide(.5,!0)):te.push(T),al(S)?te.push(S.subdivide(.5,!0).reverse()):te.push(S),al(p)?te.push(p.subdivide(.5,!1).reverse()):te.push(p),te},Md=function(E){var p=E.bounds,T=E.styles;return p.add(T.borderLeftWidth,T.borderTopWidth,-(T.borderRightWidth+T.borderLeftWidth),-(T.borderTopWidth+T.borderBottomWidth))},Uh=function(E){var p=E.styles,T=E.bounds,S=Ji(p.paddingLeft,T.width),te=Ji(p.paddingRight,T.width),Ce=Ji(p.paddingTop,T.width),$e=Ji(p.paddingBottom,T.width);return T.add(S+p.borderLeftWidth,Ce+p.borderTopWidth,-(p.borderRightWidth+p.borderLeftWidth+S+te),-(p.borderTopWidth+p.borderBottomWidth+Ce+$e))},D0=function(E,p){return E===0?p.bounds:E===2?Uh(p):Md(p)},Qd=function(E,p){return E===0?p.bounds:E===2?Uh(p):Md(p)},Sl=function(E,p,T){var S=D0(QA(E.styles.backgroundOrigin,p),E),te=Qd(QA(E.styles.backgroundClip,p),E),Ce=jc(QA(E.styles.backgroundSize,p),T,S),$e=Ce[0],yt=Ce[1],vt=pA(QA(E.styles.backgroundPosition,p),S.width-$e,S.height-yt),er=Pf(QA(E.styles.backgroundRepeat,p),vt,Ce,S,te),lr=Math.round(S.left+vt[0]),mr=Math.round(S.top+vt[1]);return[er,lr,mr,$e,yt]},Hu=function(E){return Ki(E)&&E.value===fa.AUTO},Hc=function(E){return typeof E=="number"},jc=function(E,p,T){var S=p[0],te=p[1],Ce=p[2],$e=E[0],yt=E[1];if(!$e)return[0,0];if(Fs($e)&&yt&&Fs(yt))return[Ji($e,T.width),Ji(yt,T.height)];var vt=Hc(Ce);if(Ki($e)&&($e.value===fa.CONTAIN||$e.value===fa.COVER)){if(Hc(Ce)){var er=T.width/T.height;return er<Ce!=($e.value===fa.COVER)?[T.width,T.width/Ce]:[T.height*Ce,T.height]}return[T.width,T.height]}var lr=Hc(S),mr=Hc(te),Gr=lr||mr;if(Hu($e)&&(!yt||Hu(yt))){if(lr&&mr)return[S,te];if(!vt&&!Gr)return[T.width,T.height];if(Gr&&vt){var Pn=lr?S:te*Ce,pn=mr?te:S/Ce;return[Pn,pn]}var Ln=lr?S:T.width,Fi=mr?te:T.height;return[Ln,Fi]}if(vt){var Wn=0,zn=0;return Fs($e)?Wn=Ji($e,T.width):Fs(yt)&&(zn=Ji(yt,T.height)),Hu($e)?Wn=zn*Ce:(!yt||Hu(yt))&&(zn=Wn/Ce),[Wn,zn]}var _i=null,Li=null;if(Fs($e)?_i=Ji($e,T.width):yt&&Fs(yt)&&(Li=Ji(yt,T.height)),_i!==null&&(!yt||Hu(yt))&&(Li=lr&&mr?_i/S*te:T.height),Li!==null&&Hu($e)&&(_i=lr&&mr?Li/te*S:T.width),_i!==null&&Li!==null)return[_i,Li];throw new Error("Unable to calculate background-size for element")},QA=function(E,p){var T=E[p];return typeof T=="undefined"?E[0]:T},Pf=function(E,p,T,S,te){var Ce=p[0],$e=p[1],yt=T[0],vt=T[1];switch(E){case 2:return[new Qn(Math.round(S.left),Math.round(S.top+$e)),new Qn(Math.round(S.left+S.width),Math.round(S.top+$e)),new Qn(Math.round(S.left+S.width),Math.round(vt+S.top+$e)),new Qn(Math.round(S.left),Math.round(vt+S.top+$e))];case 3:return[new Qn(Math.round(S.left+Ce),Math.round(S.top)),new Qn(Math.round(S.left+Ce+yt),Math.round(S.top)),new Qn(Math.round(S.left+Ce+yt),Math.round(S.height+S.top)),new Qn(Math.round(S.left+Ce),Math.round(S.height+S.top))];case 1:return[new Qn(Math.round(S.left+Ce),Math.round(S.top+$e)),new Qn(Math.round(S.left+Ce+yt),Math.round(S.top+$e)),new Qn(Math.round(S.left+Ce+yt),Math.round(S.top+$e+vt)),new Qn(Math.round(S.left+Ce),Math.round(S.top+$e+vt))];default:return[new Qn(Math.round(te.left),Math.round(te.top)),new Qn(Math.round(te.left+te.width),Math.round(te.top)),new Qn(Math.round(te.left+te.width),Math.round(te.height+te.top)),new Qn(Math.round(te.left),Math.round(te.height+te.top))]}},Kc="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7",Of="Hidden Text",zl=function(){function E(p){this._data={},this._document=p}return E.prototype.parseMetrics=function(p,T){var S=this._document.createElement("div"),te=this._document.createElement("img"),Ce=this._document.createElement("span"),$e=this._document.body;S.style.visibility="hidden",S.style.fontFamily=p,S.style.fontSize=T,S.style.margin="0",S.style.padding="0",S.style.whiteSpace="nowrap",$e.appendChild(S),te.src=Kc,te.width=1,te.height=1,te.style.margin="0",te.style.padding="0",te.style.verticalAlign="baseline",Ce.style.fontFamily=p,Ce.style.fontSize=T,Ce.style.margin="0",Ce.style.padding="0",Ce.appendChild(this._document.createTextNode(Of)),S.appendChild(Ce),S.appendChild(te);var yt=te.offsetTop-Ce.offsetTop+2;S.removeChild(Ce),S.appendChild(this._document.createTextNode(Of)),S.style.lineHeight="normal",te.style.verticalAlign="super";var vt=te.offsetTop-S.offsetTop+2;return $e.removeChild(S),{baseline:yt,middle:vt}},E.prototype.getMetrics=function(p,T){var S=p+" "+T;return typeof this._data[S]=="undefined"&&(this._data[S]=this.parseMetrics(p,T)),this._data[S]},E}(),mu=function(){function E(p,T){this.context=p,this.options=T}return E}(),Xn=1e4,Ta=function(E){je(p,E);function p(T,S){var te=E.call(this,T,S)||this;return te._activeEffects=[],te.canvas=S.canvas?S.canvas:document.createElement("canvas"),te.ctx=te.canvas.getContext("2d"),S.canvas||(te.canvas.width=Math.floor(S.width*S.scale),te.canvas.height=Math.floor(S.height*S.scale),te.canvas.style.width=S.width+"px",te.canvas.style.height=S.height+"px"),te.fontMetrics=new zl(document),te.ctx.scale(te.options.scale,te.options.scale),te.ctx.translate(-S.x,-S.y),te.ctx.textBaseline="bottom",te._activeEffects=[],te.context.logger.debug("Canvas renderer initialized ("+S.width+"x"+S.height+") with scale "+S.scale),te}return p.prototype.applyEffects=function(T){for(var S=this;this._activeEffects.length;)this.popEffect();T.forEach(function(te){return S.applyEffect(te)})},p.prototype.applyEffect=function(T){this.ctx.save(),Qc(T)&&(this.ctx.globalAlpha=T.opacity),kf(T)&&(this.ctx.translate(T.offsetX,T.offsetY),this.ctx.transform(T.matrix[0],T.matrix[1],T.matrix[2],T.matrix[3],T.matrix[4],T.matrix[5]),this.ctx.translate(-T.offsetX,-T.offsetY)),Rf(T)&&(this.path(T.path),this.ctx.clip()),this._activeEffects.push(T)},p.prototype.popEffect=function(){this._activeEffects.pop(),this.ctx.restore()},p.prototype.renderStack=function(T){return mt(this,void 0,void 0,function(){var S;return Fe(this,function(te){switch(te.label){case 0:return S=T.element.container.styles,S.isVisible()?[4,this.renderStackContent(T)]:[3,2];case 1:te.sent(),te.label=2;case 2:return[2]}})})},p.prototype.renderNode=function(T){return mt(this,void 0,void 0,function(){return Fe(this,function(S){switch(S.label){case 0:if(tn(T.container.flags,16))debugger;return T.container.styles.isVisible()?[4,this.renderNodeBackgroundAndBorders(T)]:[3,3];case 1:return S.sent(),[4,this.renderNodeContent(T)];case 2:S.sent(),S.label=3;case 3:return[2]}})})},p.prototype.renderTextWithLetterSpacing=function(T,S,te){var Ce=this;if(S===0)this.ctx.fillText(T.text,T.bounds.left,T.bounds.top+te);else{var $e=mf(T.text);$e.reduce(function(yt,vt){return Ce.ctx.fillText(vt,yt,T.bounds.top+te),yt+Ce.ctx.measureText(vt).width},T.bounds.left)}},p.prototype.createFontStyle=function(T){var S=T.fontVariant.filter(function($e){return $e==="normal"||$e==="small-caps"}).join(""),te=vu(T.fontFamily).join(", "),Ce=FA(T.fontSize)?""+T.fontSize.number+T.fontSize.unit:T.fontSize.number+"px";return[[T.fontStyle,S,T.fontWeight,Ce,te].join(" "),te,Ce]},p.prototype.renderTextNode=function(T,S){return mt(this,void 0,void 0,function(){var te,Ce,$e,yt,vt,er,lr,mr,Gr=this;return Fe(this,function(Pn){return te=this.createFontStyle(S),Ce=te[0],$e=te[1],yt=te[2],this.ctx.font=Ce,this.ctx.direction=S.direction===1?"rtl":"ltr",this.ctx.textAlign="left",this.ctx.textBaseline="alphabetic",vt=this.fontMetrics.getMetrics($e,yt),er=vt.baseline,lr=vt.middle,mr=S.paintOrder,T.textBounds.forEach(function(pn){mr.forEach(function(Ln){switch(Ln){case 0:Gr.ctx.fillStyle=Ma(S.color),Gr.renderTextWithLetterSpacing(pn,S.letterSpacing,er);var Fi=S.textShadow;Fi.length&&pn.text.trim().length&&(Fi.slice(0).reverse().forEach(function(Wn){Gr.ctx.shadowColor=Ma(Wn.color),Gr.ctx.shadowOffsetX=Wn.offsetX.number*Gr.options.scale,Gr.ctx.shadowOffsetY=Wn.offsetY.number*Gr.options.scale,Gr.ctx.shadowBlur=Wn.blur.number,Gr.renderTextWithLetterSpacing(pn,S.letterSpacing,er)}),Gr.ctx.shadowColor="",Gr.ctx.shadowOffsetX=0,Gr.ctx.shadowOffsetY=0,Gr.ctx.shadowBlur=0),S.textDecorationLine.length&&(Gr.ctx.fillStyle=Ma(S.textDecorationColor||S.color),S.textDecorationLine.forEach(function(Wn){switch(Wn){case 1:Gr.ctx.fillRect(pn.bounds.left,Math.round(pn.bounds.top+er),pn.bounds.width,1);break;case 2:Gr.ctx.fillRect(pn.bounds.left,Math.round(pn.bounds.top),pn.bounds.width,1);break;case 3:Gr.ctx.fillRect(pn.bounds.left,Math.ceil(pn.bounds.top+lr),pn.bounds.width,1);break}}));break;case 1:S.webkitTextStrokeWidth&&pn.text.trim().length&&(Gr.ctx.strokeStyle=Ma(S.webkitTextStrokeColor),Gr.ctx.lineWidth=S.webkitTextStrokeWidth,Gr.ctx.lineJoin=window.chrome?"miter":"round",Gr.ctx.strokeText(pn.text,pn.bounds.left,pn.bounds.top+er)),Gr.ctx.strokeStyle="",Gr.ctx.lineWidth=0,Gr.ctx.lineJoin="miter";break}})}),[2]})})},p.prototype.renderReplacedElement=function(T,S,te){if(te&&T.intrinsicWidth>0&&T.intrinsicHeight>0){var Ce=Uh(T),$e=F0(S);this.path($e),this.ctx.save(),this.ctx.clip(),this.ctx.drawImage(te,0,0,T.intrinsicWidth,T.intrinsicHeight,Ce.left,Ce.top,Ce.width,Ce.height),this.ctx.restore()}},p.prototype.renderNodeContent=function(T){return mt(this,void 0,void 0,function(){var S,te,Ce,$e,yt,vt,zn,zn,er,lr,mr,Gr,Li,Pn,pn,di,Ln,Fi,Wn,zn,_i,Li,di;return Fe(this,function(Rn){switch(Rn.label){case 0:this.applyEffects(T.getEffects(4)),S=T.container,te=T.curves,Ce=S.styles,$e=0,yt=S.textNodes,Rn.label=1;case 1:return $e<yt.length?(vt=yt[$e],[4,this.renderTextNode(vt,Ce)]):[3,4];case 2:Rn.sent(),Rn.label=3;case 3:return $e++,[3,1];case 4:if(!(S instanceof dh))return[3,8];Rn.label=5;case 5:return Rn.trys.push([5,7,,8]),[4,this.context.cache.match(S.src)];case 6:return zn=Rn.sent(),this.renderReplacedElement(S,te,zn),[3,8];case 7:return Rn.sent(),this.context.logger.error("Error loading image "+S.src),[3,8];case 8:if(S instanceof _f&&this.renderReplacedElement(S,te,S.canvas),!(S instanceof wd))return[3,12];Rn.label=9;case 9:return Rn.trys.push([9,11,,12]),[4,this.context.cache.match(S.svg)];case 10:return zn=Rn.sent(),this.renderReplacedElement(S,te,zn),[3,12];case 11:return Rn.sent(),this.context.logger.error("Error loading svg "+S.svg.substring(0,255)),[3,12];case 12:return S instanceof Bd&&S.tree?(er=new p(this.context,{scale:this.options.scale,backgroundColor:S.backgroundColor,x:0,y:0,width:S.width,height:S.height}),[4,er.render(S.tree)]):[3,14];case 13:lr=Rn.sent(),S.width&&S.height&&this.ctx.drawImage(lr,0,0,S.width,S.height,S.bounds.left,S.bounds.top,S.bounds.width,S.bounds.height),Rn.label=14;case 14:if(S instanceof _0&&(mr=Math.min(S.bounds.width,S.bounds.height),S.type===gh?S.checked&&(this.ctx.save(),this.path([new Qn(S.bounds.left+mr*.39363,S.bounds.top+mr*.79),new Qn(S.bounds.left+mr*.16,S.bounds.top+mr*.5549),new Qn(S.bounds.left+mr*.27347,S.bounds.top+mr*.44071),new Qn(S.bounds.left+mr*.39694,S.bounds.top+mr*.5649),new Qn(S.bounds.left+mr*.72983,S.bounds.top+mr*.23),new Qn(S.bounds.left+mr*.84,S.bounds.top+mr*.34085),new Qn(S.bounds.left+mr*.39363,S.bounds.top+mr*.79)]),this.ctx.fillStyle=Ma(vh),this.ctx.fill(),this.ctx.restore()):S.type===mh&&S.checked&&(this.ctx.save(),this.ctx.beginPath(),this.ctx.arc(S.bounds.left+mr/2,S.bounds.top+mr/2,mr/4,0,Math.PI*2,!0),this.ctx.fillStyle=Ma(vh),this.ctx.fill(),this.ctx.restore())),Nf(S)&&S.value.length){switch(Gr=this.createFontStyle(Ce),Li=Gr[0],Pn=Gr[1],pn=this.fontMetrics.getMetrics(Li,Pn).baseline,this.ctx.font=Li,this.ctx.fillStyle=Ma(Ce.color),this.ctx.textBaseline="alphabetic",this.ctx.textAlign=zc(S.styles.textAlign),di=Uh(S),Ln=0,S.styles.textAlign){case 1:Ln+=di.width/2;break;case 2:Ln+=di.width;break}Fi=di.add(Ln,0,0,-di.height/2+1),this.ctx.save(),this.path([new Qn(di.left,di.top),new Qn(di.left+di.width,di.top),new Qn(di.left+di.width,di.top+di.height),new Qn(di.left,di.top+di.height)]),this.ctx.clip(),this.renderTextWithLetterSpacing(new Ac(S.value,Fi),Ce.letterSpacing,pn),this.ctx.restore(),this.ctx.textBaseline="alphabetic",this.ctx.textAlign="left"}if(!tn(S.styles.display,2048))return[3,20];if(S.styles.listStyleImage===null)return[3,19];if(Wn=S.styles.listStyleImage,Wn.type!==0)return[3,18];zn=void 0,_i=Wn.url,Rn.label=15;case 15:return Rn.trys.push([15,17,,18]),[4,this.context.cache.match(_i)];case 16:return zn=Rn.sent(),this.ctx.drawImage(zn,S.bounds.left-(zn.width+10),S.bounds.top),[3,18];case 17:return Rn.sent(),this.context.logger.error("Error loading list-style-image "+_i),[3,18];case 18:return[3,20];case 19:T.listValue&&S.styles.listStyleType!==-1&&(Li=this.createFontStyle(Ce)[0],this.ctx.font=Li,this.ctx.fillStyle=Ma(Ce.color),this.ctx.textBaseline="middle",this.ctx.textAlign="right",di=new de(S.bounds.left,S.bounds.top+Ji(S.styles.paddingTop,S.bounds.width),S.bounds.width,o0(Ce.lineHeight,Ce.fontSize.number)/2+1),this.renderTextWithLetterSpacing(new Ac(T.listValue,di),Ce.letterSpacing,o0(Ce.lineHeight,Ce.fontSize.number)/2+2),this.ctx.textBaseline="bottom",this.ctx.textAlign="left"),Rn.label=20;case 20:return[2]}})})},p.prototype.renderStackContent=function(T){return mt(this,void 0,void 0,function(){var S,te,Wn,Ce,$e,Wn,yt,vt,Wn,er,lr,Wn,mr,Gr,Wn,Pn,pn,Wn,Ln,Fi,Wn;return Fe(this,function(zn){switch(zn.label){case 0:if(tn(T.element.container.flags,16))debugger;return[4,this.renderNodeBackgroundAndBorders(T.element)];case 1:zn.sent(),S=0,te=T.negativeZIndex,zn.label=2;case 2:return S<te.length?(Wn=te[S],[4,this.renderStack(Wn)]):[3,5];case 3:zn.sent(),zn.label=4;case 4:return S++,[3,2];case 5:return[4,this.renderNodeContent(T.element)];case 6:zn.sent(),Ce=0,$e=T.nonInlineLevel,zn.label=7;case 7:return Ce<$e.length?(Wn=$e[Ce],[4,this.renderNode(Wn)]):[3,10];case 8:zn.sent(),zn.label=9;case 9:return Ce++,[3,7];case 10:yt=0,vt=T.nonPositionedFloats,zn.label=11;case 11:return yt<vt.length?(Wn=vt[yt],[4,this.renderStack(Wn)]):[3,14];case 12:zn.sent(),zn.label=13;case 13:return yt++,[3,11];case 14:er=0,lr=T.nonPositionedInlineLevel,zn.label=15;case 15:return er<lr.length?(Wn=lr[er],[4,this.renderStack(Wn)]):[3,18];case 16:zn.sent(),zn.label=17;case 17:return er++,[3,15];case 18:mr=0,Gr=T.inlineLevel,zn.label=19;case 19:return mr<Gr.length?(Wn=Gr[mr],[4,this.renderNode(Wn)]):[3,22];case 20:zn.sent(),zn.label=21;case 21:return mr++,[3,19];case 22:Pn=0,pn=T.zeroOrAutoZIndexOrTransformedOrOpacity,zn.label=23;case 23:return Pn<pn.length?(Wn=pn[Pn],[4,this.renderStack(Wn)]):[3,26];case 24:zn.sent(),zn.label=25;case 25:return Pn++,[3,23];case 26:Ln=0,Fi=T.positiveZIndex,zn.label=27;case 27:return Ln<Fi.length?(Wn=Fi[Ln],[4,this.renderStack(Wn)]):[3,30];case 28:zn.sent(),zn.label=29;case 29:return Ln++,[3,27];case 30:return[2]}})})},p.prototype.mask=function(T){this.ctx.beginPath(),this.ctx.moveTo(0,0),this.ctx.lineTo(this.canvas.width,0),this.ctx.lineTo(this.canvas.width,this.canvas.height),this.ctx.lineTo(0,this.canvas.height),this.ctx.lineTo(0,0),this.formatPath(T.slice(0).reverse()),this.ctx.closePath()},p.prototype.path=function(T){this.ctx.beginPath(),this.formatPath(T),this.ctx.closePath()},p.prototype.formatPath=function(T){var S=this;T.forEach(function(te,Ce){var $e=al(te)?te.start:te;Ce===0?S.ctx.moveTo($e.x,$e.y):S.ctx.lineTo($e.x,$e.y),al(te)&&S.ctx.bezierCurveTo(te.startControl.x,te.startControl.y,te.endControl.x,te.endControl.y,te.end.x,te.end.y)})},p.prototype.renderRepeat=function(T,S,te,Ce){this.path(T),this.ctx.fillStyle=S,this.ctx.translate(te,Ce),this.ctx.fill(),this.ctx.translate(-te,-Ce)},p.prototype.resizeImage=function(T,S,te){var Ce;if(T.width===S&&T.height===te)return T;var $e=(Ce=this.canvas.ownerDocument)!==null&&Ce!==void 0?Ce:document,yt=$e.createElement("canvas");yt.width=Math.max(1,S),yt.height=Math.max(1,te);var vt=yt.getContext("2d");return vt.drawImage(T,0,0,T.width,T.height,0,0,S,te),yt},p.prototype.renderBackgroundImage=function(T){return mt(this,void 0,void 0,function(){var S,te,Ce,$e,yt,vt;return Fe(this,function(er){switch(er.label){case 0:S=T.styles.backgroundImage.length-1,te=function(lr){var mr,Gr,Pn,xn,Vo,tA,Ps,so,Ni,pn,xn,Vo,tA,Ps,so,Ln,Fi,Wn,zn,_i,Li,di,Rn,Zi,Ni,Bi,xn,wA,bA,Ps,so,yu,Vo,tA,gc,ol,Il,ju,Wl,$l,rA,l;return Fe(this,function(e){switch(e.label){case 0:if(lr.type!==0)return[3,5];mr=void 0,Gr=lr.url,e.label=1;case 1:return e.trys.push([1,3,,4]),[4,Ce.context.cache.match(Gr)];case 2:return mr=e.sent(),[3,4];case 3:return e.sent(),Ce.context.logger.error("Error loading background-image "+Gr),[3,4];case 4:return mr&&(Pn=Sl(T,S,[mr.width,mr.height,mr.width/mr.height]),xn=Pn[0],Vo=Pn[1],tA=Pn[2],Ps=Pn[3],so=Pn[4],Ni=Ce.ctx.createPattern(Ce.resizeImage(mr,Ps,so),"repeat"),Ce.renderRepeat(xn,Ni,Vo,tA)),[3,6];case 5:mA(lr)?(pn=Sl(T,S,[null,null,null]),xn=pn[0],Vo=pn[1],tA=pn[2],Ps=pn[3],so=pn[4],Ln=Z0(lr.angle,Ps,so),Fi=Ln[0],Wn=Ln[1],zn=Ln[2],_i=Ln[3],Li=Ln[4],di=document.createElement("canvas"),di.width=Ps,di.height=so,Rn=di.getContext("2d"),Zi=Rn.createLinearGradient(Wn,_i,zn,Li),Tu(lr.stops,Fi).forEach(function(t){return Zi.addColorStop(t.stop,Ma(t.color))}),Rn.fillStyle=Zi,Rn.fillRect(0,0,Ps,so),Ps>0&&so>0&&(Ni=Ce.ctx.createPattern(di,"repeat"),Ce.renderRepeat(xn,Ni,Vo,tA))):X0(lr)&&(Bi=Sl(T,S,[null,null,null]),xn=Bi[0],wA=Bi[1],bA=Bi[2],Ps=Bi[3],so=Bi[4],yu=lr.position.length===0?[Xc]:lr.position,Vo=Ji(yu[0],Ps),tA=Ji(yu[yu.length-1],so),gc=tu(lr,Vo,tA,Ps,so),ol=gc[0],Il=gc[1],ol>0&&Il>0&&(ju=Ce.ctx.createRadialGradient(wA+Vo,bA+tA,0,wA+Vo,bA+tA,ol),Tu(lr.stops,ol*2).forEach(function(t){return ju.addColorStop(t.stop,Ma(t.color))}),Ce.path(xn),Ce.ctx.fillStyle=ju,ol!==Il?(Wl=T.bounds.left+.5*T.bounds.width,$l=T.bounds.top+.5*T.bounds.height,rA=Il/ol,l=1/rA,Ce.ctx.save(),Ce.ctx.translate(Wl,$l),Ce.ctx.transform(1,0,0,rA,0,0),Ce.ctx.translate(-Wl,-$l),Ce.ctx.fillRect(wA,l*(bA-$l)+$l,Ps,so*l),Ce.ctx.restore()):Ce.ctx.fill())),e.label=6;case 6:return S--,[2]}})},Ce=this,$e=0,yt=T.styles.backgroundImage.slice(0).reverse(),er.label=1;case 1:return $e<yt.length?(vt=yt[$e],[5,te(vt)]):[3,4];case 2:er.sent(),er.label=3;case 3:return $e++,[3,1];case 4:return[2]}})})},p.prototype.renderSolidBorder=function(T,S,te){return mt(this,void 0,void 0,function(){return Fe(this,function(Ce){return this.path(ho(te,S)),this.ctx.fillStyle=Ma(T),this.ctx.fill(),[2]})})},p.prototype.renderDoubleBorder=function(T,S,te,Ce){return mt(this,void 0,void 0,function(){var $e,yt;return Fe(this,function(vt){switch(vt.label){case 0:return S<3?[4,this.renderSolidBorder(T,te,Ce)]:[3,2];case 1:return vt.sent(),[2];case 2:return $e=zo(Ce,te),this.path($e),this.ctx.fillStyle=Ma(T),this.ctx.fill(),yt=Go(Ce,te),this.path(yt),this.ctx.fill(),[2]}})})},p.prototype.renderNodeBackgroundAndBorders=function(T){return mt(this,void 0,void 0,function(){var S,te,Ce,$e,yt,vt,er,lr,mr=this;return Fe(this,function(Gr){switch(Gr.label){case 0:return this.applyEffects(T.getEffects(2)),S=T.container.styles,te=!ea(S.backgroundColor)||S.backgroundImage.length,Ce=[{style:S.borderTopStyle,color:S.borderTopColor,width:S.borderTopWidth},{style:S.borderRightStyle,color:S.borderRightColor,width:S.borderRightWidth},{style:S.borderBottomStyle,color:S.borderBottomColor,width:S.borderBottomWidth},{style:S.borderLeftStyle,color:S.borderLeftColor,width:S.borderLeftWidth}],$e=Gl(QA(S.backgroundClip,0),T.curves),te||S.boxShadow.length?(this.ctx.save(),this.path($e),this.ctx.clip(),ea(S.backgroundColor)||(this.ctx.fillStyle=Ma(S.backgroundColor),this.ctx.fill()),[4,this.renderBackgroundImage(T.container)]):[3,2];case 1:Gr.sent(),this.ctx.restore(),S.boxShadow.slice(0).reverse().forEach(function(Pn){mr.ctx.save();var pn=Lh(T.curves),Ln=Pn.inset?0:Xn,Fi=Uf(pn,-Ln+(Pn.inset?1:-1)*Pn.spread.number,(Pn.inset?1:-1)*Pn.spread.number,Pn.spread.number*(Pn.inset?-2:2),Pn.spread.number*(Pn.inset?-2:2));Pn.inset?(mr.path(pn),mr.ctx.clip(),mr.mask(Fi)):(mr.mask(pn),mr.ctx.clip(),mr.path(Fi)),mr.ctx.shadowOffsetX=Pn.offsetX.number+Ln,mr.ctx.shadowOffsetY=Pn.offsetY.number,mr.ctx.shadowColor=Ma(Pn.color),mr.ctx.shadowBlur=Pn.blur.number,mr.ctx.fillStyle=Pn.inset?Ma(Pn.color):"rgba(0,0,0,1)",mr.ctx.fill(),mr.ctx.restore()}),Gr.label=2;case 2:yt=0,vt=0,er=Ce,Gr.label=3;case 3:return vt<er.length?(lr=er[vt],lr.style!==0&&!ea(lr.color)&&lr.width>0?lr.style!==2?[3,5]:[4,this.renderDashedDottedBorder(lr.color,lr.width,yt,T.curves,2)]:[3,11]):[3,13];case 4:return Gr.sent(),[3,11];case 5:return lr.style!==3?[3,7]:[4,this.renderDashedDottedBorder(lr.color,lr.width,yt,T.curves,3)];case 6:return Gr.sent(),[3,11];case 7:return lr.style!==4?[3,9]:[4,this.renderDoubleBorder(lr.color,lr.width,yt,T.curves)];case 8:return Gr.sent(),[3,11];case 9:return[4,this.renderSolidBorder(lr.color,yt,T.curves)];case 10:Gr.sent(),Gr.label=11;case 11:yt++,Gr.label=12;case 12:return vt++,[3,3];case 13:return[2]}})})},p.prototype.renderDashedDottedBorder=function(T,S,te,Ce,$e){return mt(this,void 0,void 0,function(){var yt,vt,er,lr,mr,Gr,Pn,pn,Ln,Fi,Wn,zn,_i,Li,di,Rn,di,Rn;return Fe(this,function(Zi){return this.ctx.save(),yt=kh(Ce,te),vt=ho(Ce,te),$e===2&&(this.path(vt),this.ctx.clip()),al(vt[0])?(er=vt[0].start.x,lr=vt[0].start.y):(er=vt[0].x,lr=vt[0].y),al(vt[1])?(mr=vt[1].end.x,Gr=vt[1].end.y):(mr=vt[1].x,Gr=vt[1].y),te===0||te===2?Pn=Math.abs(er-mr):Pn=Math.abs(lr-Gr),this.ctx.beginPath(),$e===3?this.formatPath(yt):this.formatPath(vt.slice(0,2)),pn=S<3?S*3:S*2,Ln=S<3?S*2:S,$e===3&&(pn=S,Ln=S),Fi=!0,Pn<=pn*2?Fi=!1:Pn<=pn*2+Ln?(Wn=Pn/(2*pn+Ln),pn*=Wn,Ln*=Wn):(zn=Math.floor((Pn+Ln)/(pn+Ln)),_i=(Pn-zn*pn)/(zn-1),Li=(Pn-(zn+1)*pn)/zn,Ln=Li<=0||Math.abs(Ln-_i)<Math.abs(Ln-Li)?_i:Li),Fi&&($e===3?this.ctx.setLineDash([0,pn+Ln]):this.ctx.setLineDash([pn,Ln])),$e===3?(this.ctx.lineCap="round",this.ctx.lineWidth=S):this.ctx.lineWidth=S*2+1.1,this.ctx.strokeStyle=Ma(T),this.ctx.stroke(),this.ctx.setLineDash([]),$e===2&&(al(vt[0])&&(di=vt[3],Rn=vt[0],this.ctx.beginPath(),this.formatPath([new Qn(di.end.x,di.end.y),new Qn(Rn.start.x,Rn.start.y)]),this.ctx.stroke()),al(vt[1])&&(di=vt[1],Rn=vt[2],this.ctx.beginPath(),this.formatPath([new Qn(di.end.x,di.end.y),new Qn(Rn.start.x,Rn.start.y)]),this.ctx.stroke())),this.ctx.restore(),[2]})})},p.prototype.render=function(T){return mt(this,void 0,void 0,function(){var S;return Fe(this,function(te){switch(te.label){case 0:return this.options.backgroundColor&&(this.ctx.fillStyle=Ma(this.options.backgroundColor),this.ctx.fillRect(this.options.x,this.options.y,this.options.width,this.options.height)),S=Ko(T),[4,this.renderStack(S)];case 1:return te.sent(),this.applyEffects([]),[2,this.canvas]}})})},p}(mu),Nf=function(E){return E instanceof yh||E instanceof Ed?!0:E instanceof _0&&E.type!==mh&&E.type!==gh},Gl=function(E,p){switch(E){case 0:return Lh(p);case 2:return Xp(p);case 1:default:return F0(p)}},zc=function(E){switch(E){case 1:return"center";case 2:return"right";case 0:default:return"left"}},Pi=["-apple-system","system-ui"],vu=function(E){return/iPhone OS 15_(0|1)/.test(window.navigator.userAgent)?E.filter(function(p){return Pi.indexOf(p)===-1}):E},_A=function(E){je(p,E);function p(T,S){var te=E.call(this,T,S)||this;return te.canvas=S.canvas?S.canvas:document.createElement("canvas"),te.ctx=te.canvas.getContext("2d"),te.options=S,te.canvas.width=Math.floor(S.width*S.scale),te.canvas.height=Math.floor(S.height*S.scale),te.canvas.style.width=S.width+"px",te.canvas.style.height=S.height+"px",te.ctx.scale(te.options.scale,te.options.scale),te.ctx.translate(-S.x,-S.y),te.context.logger.debug("EXPERIMENTAL ForeignObject renderer initialized ("+S.width+"x"+S.height+" at "+S.x+","+S.y+") with scale "+S.scale),te}return p.prototype.render=function(T){return mt(this,void 0,void 0,function(){var S,te;return Fe(this,function(Ce){switch(Ce.label){case 0:return S=hh(this.options.width*this.options.scale,this.options.height*this.options.scale,this.options.scale,this.options.scale,T),[4,Mf(S)];case 1:return te=Ce.sent(),this.options.backgroundColor&&(this.ctx.fillStyle=Ma(this.options.backgroundColor),this.ctx.fillRect(0,0,this.options.width*this.options.scale,this.options.height*this.options.scale)),this.ctx.drawImage(te,-this.options.x*this.options.scale,-this.options.y*this.options.scale),[2,this.canvas]}})})},p}(mu),Mf=function(E){return new Promise(function(p,T){var S=new Image;S.onload=function(){p(S)},S.onerror=T,S.src="data:image/svg+xml;charset=utf-8,"+encodeURIComponent(new XMLSerializer().serializeToString(E))})},Vl=function(){function E(p){var T=p.id,S=p.enabled;this.id=T,this.enabled=S,this.start=Date.now()}return E.prototype.debug=function(){for(var p=[],T=0;T<arguments.length;T++)p[T]=arguments[T];this.enabled&&(typeof window!="undefined"&&window.console&&typeof console.debug=="function"?console.debug.apply(console,Me([this.id,this.getTime()+"ms"],p)):this.info.apply(this,p))},E.prototype.getTime=function(){return Date.now()-this.start},E.prototype.info=function(){for(var p=[],T=0;T<arguments.length;T++)p[T]=arguments[T];this.enabled&&typeof window!="undefined"&&window.console&&typeof console.info=="function"&&console.info.apply(console,Me([this.id,this.getTime()+"ms"],p))},E.prototype.warn=function(){for(var p=[],T=0;T<arguments.length;T++)p[T]=arguments[T];this.enabled&&(typeof window!="undefined"&&window.console&&typeof console.warn=="function"?console.warn.apply(console,Me([this.id,this.getTime()+"ms"],p)):this.info.apply(this,p))},E.prototype.error=function(){for(var p=[],T=0;T<arguments.length;T++)p[T]=arguments[T];this.enabled&&(typeof window!="undefined"&&window.console&&typeof console.error=="function"?console.error.apply(console,Me([this.id,this.getTime()+"ms"],p)):this.info.apply(this,p))},E.instances={},E}(),yp=function(){function E(p,T){var S;this.windowBounds=T,this.instanceName="#"+E.instanceCount++,this.logger=new Vl({id:this.instanceName,enabled:p.logging}),this.cache=(S=p.cache)!==null&&S!==void 0?S:new MA(this,p)}return E.instanceCount=1,E}(),_p=function(E,p){return p===void 0&&(p={}),wp(E,p)};typeof window!="undefined"&&T0.setContext(window);var wp=function(E,p){return mt(void 0,void 0,void 0,function(){var T,S,te,Ce,$e,yt,vt,er,lr,mr,Gr,Pn,pn,Ln,Fi,Wn,zn,_i,Li,di,Zi,Rn,Zi,Ni,Bi,xn,wA,bA,Ps,so,yu,Vo,tA,gc,ol,Il,ju,Wl,$l,rA;return Fe(this,function(l){switch(l.label){case 0:if(!E||typeof E!="object")return[2,Promise.reject("Invalid element provided as first argument")];if(T=E.ownerDocument,!T)throw new Error("Element is not attached to a Document");if(S=T.defaultView,!S)throw new Error("Document is not attached to a Window");return te={allowTaint:(Ni=p.allowTaint)!==null&&Ni!==void 0?Ni:!1,imageTimeout:(Bi=p.imageTimeout)!==null&&Bi!==void 0?Bi:15e3,proxy:p.proxy,useCORS:(xn=p.useCORS)!==null&&xn!==void 0?xn:!1},Ce=Ie({logging:(wA=p.logging)!==null&&wA!==void 0?wA:!0,cache:p.cache},te),$e={windowWidth:(bA=p.windowWidth)!==null&&bA!==void 0?bA:S.innerWidth,windowHeight:(Ps=p.windowHeight)!==null&&Ps!==void 0?Ps:S.innerHeight,scrollX:(so=p.scrollX)!==null&&so!==void 0?so:S.pageXOffset,scrollY:(yu=p.scrollY)!==null&&yu!==void 0?yu:S.pageYOffset},yt=new de($e.scrollX,$e.scrollY,$e.windowWidth,$e.windowHeight),vt=new yp(Ce,yt),er=(Vo=p.foreignObjectRendering)!==null&&Vo!==void 0?Vo:!1,lr={allowTaint:(tA=p.allowTaint)!==null&&tA!==void 0?tA:!1,onclone:p.onclone,ignoreElements:p.ignoreElements,inlineImages:er,copyStyles:er},vt.logger.debug("Starting document clone with size "+yt.width+"x"+yt.height+" scrolled to "+-yt.left+","+-yt.top),mr=new gp(vt,E,lr),Gr=mr.clonedReferenceElement,Gr?[4,mr.toIFrame(T,yt)]:[2,Promise.reject("Unable to find element in cloned iframe")];case 1:return Pn=l.sent(),pn=Ef(Gr)||fp(Gr)?Be(Gr.ownerDocument):I(vt,Gr),Ln=pn.width,Fi=pn.height,Wn=pn.left,zn=pn.top,_i=Fa(vt,Gr,p.backgroundColor),Li={canvas:p.canvas,backgroundColor:_i,scale:(ol=(gc=p.scale)!==null&&gc!==void 0?gc:S.devicePixelRatio)!==null&&ol!==void 0?ol:1,x:((Il=p.x)!==null&&Il!==void 0?Il:0)+Wn,y:((ju=p.y)!==null&&ju!==void 0?ju:0)+zn,width:(Wl=p.width)!==null&&Wl!==void 0?Wl:Math.ceil(Ln),height:($l=p.height)!==null&&$l!==void 0?$l:Math.ceil(Fi)},er?(vt.logger.debug("Document cloned, using foreign object rendering"),Zi=new _A(vt,Li),[4,Zi.render(Gr)]):[3,3];case 2:return di=l.sent(),[3,5];case 3:return vt.logger.debug("Document cloned, element located at "+Wn+","+zn+" with size "+Ln+"x"+Fi+" using computed rendering"),vt.logger.debug("Starting DOM parsing"),Rn=up(vt,Gr),_i===Rn.styles.backgroundColor&&(Rn.styles.backgroundColor=Sa.TRANSPARENT),vt.logger.debug("Starting renderer for element at "+Li.x+","+Li.y+" with size "+Li.width+"x"+Li.height),Zi=new Ta(vt,Li),[4,Zi.render(Rn)];case 4:di=l.sent(),l.label=5;case 5:return(!((rA=p.removeContainer)!==null&&rA!==void 0)||rA)&&(gp.destroy(Pn)||vt.logger.error("Cannot detach cloned iframe as it is not in the DOM anymore")),vt.logger.debug("Finished rendering"),[2,di]}})})},Fa=function(E,p,T){var S=p.ownerDocument,te=S.documentElement?xo(E,getComputedStyle(S.documentElement).backgroundColor):Sa.TRANSPARENT,Ce=S.body?xo(E,getComputedStyle(S.body).backgroundColor):Sa.TRANSPARENT,$e=typeof T=="string"?xo(E,T):T===null?Sa.TRANSPARENT:4294967295;return p===S.documentElement?ea(te)?ea(Ce)?$e:Ce:te:$e};return _p})},44164:function(wn,Sr,je){var Ie=je(97671);(function(Fe,Me){wn.exports=Me(je(65355),je(64270))})(self,function(mt,Fe){return function(){var Me={"./src/plugin/hyperlinks.js":function(R,u,C){"use strict";C.r(u);var H=C("./node_modules/core-js/modules/web.dom-collections.for-each.js"),w=C.n(H),L=C("./node_modules/core-js/modules/es.string.link.js"),B=C.n(L),k=C("./src/worker.js"),K=C("./src/utils.js"),V=[],P={toContainer:k.default.prototype.toContainer,toPdf:k.default.prototype.toPdf};k.default.prototype.toContainer=function(){return P.toContainer.call(this).then(function(){if(this.opt.enableLinks){var se=this.prop.container,oe=se.querySelectorAll("a"),De=(0,K.unitConvert)(se.getBoundingClientRect(),this.prop.pageSize.k);V=[],Array.prototype.forEach.call(oe,function(He){for(var Qe=He.getClientRects(),Ue=0;Ue<Qe.length;Ue++){var qe=(0,K.unitConvert)(Qe[Ue],this.prop.pageSize.k);qe.left-=De.left,qe.top-=De.top;var st=Math.floor(qe.top/this.prop.pageSize.inner.height)+1,Pe=this.opt.margin[0]+qe.top%this.prop.pageSize.inner.height,pe=this.opt.margin[1]+qe.left;V.push({page:st,top:Pe,left:pe,clientRect:qe,link:He})}},this)}})},k.default.prototype.toPdf=function(){return P.toPdf.call(this).then(function(){if(this.opt.enableLinks){V.forEach(function(oe){this.prop.pdf.setPage(oe.page),this.prop.pdf.link(oe.left,oe.top,oe.clientRect.width,oe.clientRect.height,{url:oe.link.href})},this);var se=this.prop.pdf.internal.getNumberOfPages();this.prop.pdf.setPage(se)}})}},"./src/plugin/jspdf-plugin.js":function(R,u,C){"use strict";C.r(u);var H=C("./node_modules/core-js/modules/es.symbol.js"),w=C.n(H),L=C("./node_modules/core-js/modules/es.symbol.description.js"),B=C.n(L),k=C("./node_modules/core-js/modules/es.object.to-string.js"),K=C.n(k),V=C("./node_modules/core-js/modules/es.symbol.iterator.js"),P=C.n(V),G=C("./node_modules/core-js/modules/es.array.iterator.js"),Z=C.n(G),se=C("./node_modules/core-js/modules/es.string.iterator.js"),oe=C.n(se),De=C("./node_modules/core-js/modules/web.dom-collections.iterator.js"),He=C.n(De),Qe=C("jspdf"),Ue=C.n(Qe);function qe(st){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?qe=function(pe){return typeof pe}:qe=function(pe){return pe&&typeof Symbol=="function"&&pe.constructor===Symbol&&pe!==Symbol.prototype?"symbol":typeof pe},qe(st)}Qe.jsPDF.getPageSize=function(st,Pe,pe){if(qe(st)==="object"){var M=st;st=M.orientation,Pe=M.unit||Pe,pe=M.format||pe}Pe=Pe||"mm",pe=pe||"a4",st=(""+(st||"P")).toLowerCase();var ye=(""+pe).toLowerCase(),Te={a0:[2383.94,3370.39],a1:[1683.78,2383.94],a2:[1190.55,1683.78],a3:[841.89,1190.55],a4:[595.28,841.89],a5:[419.53,595.28],a6:[297.64,419.53],a7:[209.76,297.64],a8:[147.4,209.76],a9:[104.88,147.4],a10:[73.7,104.88],b0:[2834.65,4008.19],b1:[2004.09,2834.65],b2:[1417.32,2004.09],b3:[1000.63,1417.32],b4:[708.66,1000.63],b5:[498.9,708.66],b6:[354.33,498.9],b7:[249.45,354.33],b8:[175.75,249.45],b9:[124.72,175.75],b10:[87.87,124.72],c0:[2599.37,3676.54],c1:[1836.85,2599.37],c2:[1298.27,1836.85],c3:[918.43,1298.27],c4:[649.13,918.43],c5:[459.21,649.13],c6:[323.15,459.21],c7:[229.61,323.15],c8:[161.57,229.61],c9:[113.39,161.57],c10:[79.37,113.39],dl:[311.81,623.62],letter:[612,792],"government-letter":[576,756],legal:[612,1008],"junior-legal":[576,360],ledger:[1224,792],tabloid:[792,1224],"credit-card":[153,243]};switch(Pe){case"pt":var me=1;break;case"mm":var me=72/25.4;break;case"cm":var me=72/2.54;break;case"in":var me=72;break;case"px":var me=72/96;break;case"pc":var me=12;break;case"em":var me=12;break;case"ex":var me=6;break;default:throw"Invalid unit: "+Pe}if(Te.hasOwnProperty(ye))var xe=Te[ye][1]/me,z=Te[ye][0]/me;else try{var xe=pe[1],z=pe[0]}catch(_e){throw new Error("Invalid format: "+pe)}if(st==="p"||st==="portrait"){if(st="p",z>xe){var j=z;z=xe,xe=j}}else if(st==="l"||st==="landscape"){if(st="l",xe>z){var j=z;z=xe,xe=j}}else throw"Invalid orientation: "+st;var ee={width:z,height:xe,unit:Pe,k:me};return ee},u.default=Qe.jsPDF},"./src/plugin/pagebreaks.js":function(R,u,C){"use strict";C.r(u);var H=C("./node_modules/core-js/modules/es.array.concat.js"),w=C.n(H),L=C("./node_modules/core-js/modules/es.array.slice.js"),B=C.n(L),k=C("./node_modules/core-js/modules/es.array.join.js"),K=C.n(k),V=C("./node_modules/core-js/modules/web.dom-collections.for-each.js"),P=C.n(V),G=C("./node_modules/core-js/modules/es.object.keys.js"),Z=C.n(G),se=C("./src/worker.js"),oe=C("./src/utils.js"),De={toContainer:se.default.prototype.toContainer};se.default.template.opt.pagebreak={mode:["css","legacy"],before:[],after:[],avoid:[]},se.default.prototype.toContainer=function(){return De.toContainer.call(this).then(function(){var Ue=this.prop.container,qe=this.prop.pageSize.inner.px.height,st=[].concat(this.opt.pagebreak.mode),Pe={avoidAll:st.indexOf("avoid-all")!==-1,css:st.indexOf("css")!==-1,legacy:st.indexOf("legacy")!==-1},pe={},M=this;["before","after","avoid"].forEach(function(me){var xe=Pe.avoidAll&&me==="avoid";pe[me]=xe?[]:[].concat(M.opt.pagebreak[me]||[]),pe[me].length>0&&(pe[me]=Array.prototype.slice.call(Ue.querySelectorAll(pe[me].join(", "))))});var ye=Ue.querySelectorAll(".html2pdf__page-break");ye=Array.prototype.slice.call(ye);var Te=Ue.querySelectorAll("*");Array.prototype.forEach.call(Te,function(xe){var z={before:!1,after:Pe.legacy&&ye.indexOf(xe)!==-1,avoid:Pe.avoidAll};if(Pe.css){var j=window.getComputedStyle(xe),ee=["always","page","left","right"],_e=["avoid","avoid-page"];z={before:z.before||ee.indexOf(j.breakBefore||j.pageBreakBefore)!==-1,after:z.after||ee.indexOf(j.breakAfter||j.pageBreakAfter)!==-1,avoid:z.avoid||_e.indexOf(j.breakInside||j.pageBreakInside)!==-1}}Object.keys(z).forEach(function(wr){z[wr]=z[wr]||pe[wr].indexOf(xe)!==-1});var ut=xe.getBoundingClientRect();if(z.avoid&&!z.before){var Ft=Math.floor(ut.top/qe),Vt=Math.floor(ut.bottom/qe),vr=Math.abs(ut.bottom-ut.top)/qe;Vt!==Ft&&vr<=1&&(z.before=!0)}if(z.before){var Yr=(0,oe.createElement)("div",{style:{display:"block",height:qe-ut.top%qe+"px"}});xe.parentNode.insertBefore(Yr,xe)}if(z.after){var Yr=(0,oe.createElement)("div",{style:{display:"block",height:qe-ut.bottom%qe+"px"}});xe.parentNode.insertBefore(Yr,xe.nextSibling)}})})}},"./src/utils.js":function(R,u,C){"use strict";C.r(u),C.d(u,{objType:function(){return st},createElement:function(){return Pe},cloneNode:function(){return pe},unitConvert:function(){return M},toPx:function(){return ye}});var H=C("./node_modules/core-js/modules/es.number.constructor.js"),w=C.n(H),L=C("./node_modules/core-js/modules/es.symbol.js"),B=C.n(L),k=C("./node_modules/core-js/modules/es.symbol.description.js"),K=C.n(k),V=C("./node_modules/core-js/modules/es.object.to-string.js"),P=C.n(V),G=C("./node_modules/core-js/modules/es.symbol.iterator.js"),Z=C.n(G),se=C("./node_modules/core-js/modules/es.array.iterator.js"),oe=C.n(se),De=C("./node_modules/core-js/modules/es.string.iterator.js"),He=C.n(De),Qe=C("./node_modules/core-js/modules/web.dom-collections.iterator.js"),Ue=C.n(Qe);function qe(Te){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?qe=function(xe){return typeof xe}:qe=function(xe){return xe&&typeof Symbol=="function"&&xe.constructor===Symbol&&xe!==Symbol.prototype?"symbol":typeof xe},qe(Te)}var st=function(me){var xe=qe(me);return xe==="undefined"?"undefined":xe==="string"||me instanceof String?"string":xe==="number"||me instanceof Number?"number":xe==="function"||me instanceof Function?"function":me&&me.constructor===Array?"array":me&&me.nodeType===1?"element":xe==="object"?"object":"unknown"},Pe=function(me,xe){var z=document.createElement(me);if(xe.className&&(z.className=xe.className),xe.innerHTML){z.innerHTML=xe.innerHTML;for(var j=z.getElementsByTagName("script"),ee=j.length;ee-- >0;null)j[ee].parentNode.removeChild(j[ee])}for(var _e in xe.style)z.style[_e]=xe.style[_e];return z},pe=function Te(me,xe){for(var z=me.nodeType===3?document.createTextNode(me.nodeValue):me.cloneNode(!1),j=me.firstChild;j;j=j.nextSibling)(xe===!0||j.nodeType!==1||j.nodeName!=="SCRIPT")&&z.appendChild(Te(j,xe));return me.nodeType===1&&(me.nodeName==="CANVAS"?(z.width=me.width,z.height=me.height,z.getContext("2d").drawImage(me,0,0)):(me.nodeName==="TEXTAREA"||me.nodeName==="SELECT")&&(z.value=me.value),z.addEventListener("load",function(){z.scrollTop=me.scrollTop,z.scrollLeft=me.scrollLeft},!0)),z},M=function(me,xe){if(st(me)==="number")return me*72/96/xe;var z={};for(var j in me)z[j]=me[j]*72/96/xe;return z},ye=function(me,xe){return Math.floor(me*xe/72*96)}},"./src/worker.js":function(R,u,C){"use strict";C.r(u);var H=C("./node_modules/core-js/modules/es.object.assign.js"),w=C.n(H),L=C("./node_modules/core-js/modules/es.array.map.js"),B=C.n(L),k=C("./node_modules/core-js/modules/es.object.keys.js"),K=C.n(k),V=C("./node_modules/core-js/modules/es.array.concat.js"),P=C.n(V),G=C("./node_modules/core-js/modules/es.object.to-string.js"),Z=C.n(G),se=C("./node_modules/core-js/modules/es.regexp.to-string.js"),oe=C.n(se),De=C("./node_modules/core-js/modules/es.function.name.js"),He=C.n(De),Qe=C("./node_modules/core-js/modules/web.dom-collections.for-each.js"),Ue=C.n(Qe),qe=C("jspdf"),st=C.n(qe),Pe=C("html2canvas"),pe=C.n(Pe),M=C("./src/utils.js"),ye=C("./node_modules/es6-promise/dist/es6-promise.js"),Te=C.n(ye),me=Te().Promise,xe=function z(j){var ee=Object.assign(z.convert(me.resolve()),JSON.parse(JSON.stringify(z.template))),_e=z.convert(me.resolve(),ee);return _e=_e.setProgress(1,z,1,[z]),_e=_e.set(j),_e};xe.prototype=Object.create(me.prototype),xe.prototype.constructor=xe,xe.convert=function(j,ee){return j.__proto__=ee||xe.prototype,j},xe.template={prop:{src:null,container:null,overlay:null,canvas:null,img:null,pdf:null,pageSize:null},progress:{val:0,state:null,n:0,stack:[]},opt:{filename:"file.pdf",margin:[0,0,0,0],image:{type:"jpeg",quality:.95},enableLinks:!0,html2canvas:{},jsPDF:{}}},xe.prototype.from=function(j,ee){function _e(ut){switch((0,M.objType)(ut)){case"string":return"string";case"element":return ut.nodeName.toLowerCase&&ut.nodeName.toLowerCase()==="canvas"?"canvas":"element";default:return"unknown"}}return this.then(function(){switch(ee=ee||_e(j),ee){case"string":return this.set({src:(0,M.createElement)("div",{innerHTML:j})});case"element":return this.set({src:j});case"canvas":return this.set({canvas:j});case"img":return this.set({img:j});default:return this.error("Unknown source type.")}})},xe.prototype.to=function(j){switch(j){case"container":return this.toContainer();case"canvas":return this.toCanvas();case"img":return this.toImg();case"pdf":return this.toPdf();default:return this.error("Invalid target.")}},xe.prototype.toContainer=function(){var j=[function(){return this.prop.src||this.error("Cannot duplicate - no source HTML.")},function(){return this.prop.pageSize||this.setPageSize()}];return this.thenList(j).then(function(){var _e={position:"fixed",overflow:"hidden",zIndex:1e3,left:0,right:0,bottom:0,top:0,backgroundColor:"rgba(0,0,0,0.8)"},ut={position:"absolute",width:this.prop.pageSize.inner.width+this.prop.pageSize.unit,left:0,right:0,top:0,height:"auto",margin:"auto",backgroundColor:"white"};_e.opacity=0;var Ft=(0,M.cloneNode)(this.prop.src,this.opt.html2canvas.javascriptEnabled);this.prop.overlay=(0,M.createElement)("div",{className:"html2pdf__overlay",style:_e}),this.prop.container=(0,M.createElement)("div",{className:"html2pdf__container",style:ut}),this.prop.container.appendChild(Ft),this.prop.overlay.appendChild(this.prop.container),document.body.appendChild(this.prop.overlay)})},xe.prototype.toCanvas=function(){var j=[function(){return document.body.contains(this.prop.container)||this.toContainer()}];return this.thenList(j).then(function(){var _e=Object.assign({},this.opt.html2canvas);return delete _e.onrendered,Pe(this.prop.container,_e)}).then(function(_e){var ut=this.opt.html2canvas.onrendered||function(){};ut(_e),this.prop.canvas=_e,document.body.removeChild(this.prop.overlay)})},xe.prototype.toImg=function(){var j=[function(){return this.prop.canvas||this.toCanvas()}];return this.thenList(j).then(function(){var _e=this.prop.canvas.toDataURL("image/"+this.opt.image.type,this.opt.image.quality);this.prop.img=document.createElement("img"),this.prop.img.src=_e})},xe.prototype.toPdf=function(){var j=[function(){return this.prop.canvas||this.toCanvas()},function(){return this.prop.pageSize||this.setPageSize()}];return this.thenList(j).then(function(){var _e=this.prop.canvas,ut=this.opt,Ft=_e.height,Vt=Math.floor(_e.width*this.prop.pageSize.inner.ratio),vr=Math.ceil(Ft/Vt),Yr=this.prop.pageSize.inner.height,wr=document.createElement("canvas"),fr=wr.getContext("2d");wr.width=_e.width,wr.height=Vt,this.prop.pdf=this.prop.pdf||new qe.jsPDF(ut.jsPDF);for(var dn=0;dn<vr;dn++){dn===vr-1&&Ft%Vt!==0&&(wr.height=Ft%Vt,Yr=wr.height*this.prop.pageSize.inner.width/wr.width);var ar=wr.width,Vr=wr.height;fr.fillStyle="white",fr.fillRect(0,0,ar,Vr),fr.drawImage(_e,0,dn*Vt,ar,Vr,0,0,ar,Vr),dn&&this.prop.pdf.addPage();var ur=wr.toDataURL("image/"+ut.image.type,ut.image.quality);this.prop.pdf.addImage(ur,ut.image.type,ut.margin[1],ut.margin[0],this.prop.pageSize.inner.width,Yr)}})},xe.prototype.output=function(j,ee,_e){return _e=_e||"pdf",_e.toLowerCase()==="img"||_e.toLowerCase()==="image"?this.outputImg(j,ee):this.outputPdf(j,ee)},xe.prototype.outputPdf=function(j,ee){var _e=[function(){return this.prop.pdf||this.toPdf()}];return this.thenList(_e).then(function(){return this.prop.pdf.output(j,ee)})},xe.prototype.outputImg=function(j,ee){var _e=[function(){return this.prop.img||this.toImg()}];return this.thenList(_e).then(function(){switch(j){case void 0:case"img":return this.prop.img;case"datauristring":case"dataurlstring":return this.prop.img.src;case"datauri":case"dataurl":return document.location.href=this.prop.img.src;default:throw'Image output type "'+j+'" is not supported.'}})},xe.prototype.save=function(j){var ee=[function(){return this.prop.pdf||this.toPdf()}];return this.thenList(ee).set(j?{filename:j}:null).then(function(){this.prop.pdf.save(this.opt.filename)})},xe.prototype.set=function(j){if((0,M.objType)(j)!=="object")return this;var ee=Object.keys(j||{}).map(function(_e){switch(_e){case"margin":return this.setMargin.bind(this,j.margin);case"jsPDF":return function(){return this.opt.jsPDF=j.jsPDF,this.setPageSize()};case"pageSize":return this.setPageSize.bind(this,j.pageSize);default:return _e in xe.template.prop?function(){this.prop[_e]=j[_e]}:function(){this.opt[_e]=j[_e]}}},this);return this.then(function(){return this.thenList(ee)})},xe.prototype.get=function(j,ee){return this.then(function(){var ut=j in xe.template.prop?this.prop[j]:this.opt[j];return ee?ee(ut):ut})},xe.prototype.setMargin=function(j){return this.then(function(){switch((0,M.objType)(j)){case"number":j=[j,j,j,j];case"array":if(j.length===2&&(j=[j[0],j[1],j[0],j[1]]),j.length===4)break;default:return this.error("Invalid margin array.")}this.opt.margin=j}).then(this.setPageSize)},xe.prototype.setPageSize=function(j){return this.then(function(){j=j||qe.jsPDF.getPageSize(this.opt.jsPDF),j.hasOwnProperty("inner")||(j.inner={width:j.width-this.opt.margin[1]-this.opt.margin[3],height:j.height-this.opt.margin[0]-this.opt.margin[2]},j.inner.px={width:(0,M.toPx)(j.inner.width,j.k),height:(0,M.toPx)(j.inner.height,j.k)},j.inner.ratio=j.inner.height/j.inner.width),this.prop.pageSize=j})},xe.prototype.setProgress=function(j,ee,_e,ut){return j!=null&&(this.progress.val=j),ee!=null&&(this.progress.state=ee),_e!=null&&(this.progress.n=_e),ut!=null&&(this.progress.stack=ut),this.progress.ratio=this.progress.val/this.progress.state,this},xe.prototype.updateProgress=function(j,ee,_e,ut){return this.setProgress(j?this.progress.val+j:null,ee||null,_e?this.progress.n+_e:null,ut?this.progress.stack.concat(ut):null)},xe.prototype.then=function(j,ee){var _e=this;return this.thenCore(j,ee,function(Ft,Vt){return _e.updateProgress(null,null,1,[Ft]),me.prototype.then.call(this,function(Yr){return _e.updateProgress(null,Ft),Yr}).then(Ft,Vt).then(function(Yr){return _e.updateProgress(1),Yr})})},xe.prototype.thenCore=function(j,ee,_e){_e=_e||me.prototype.then;var ut=this;j&&(j=j.bind(ut)),ee&&(ee=ee.bind(ut));var Ft=me.toString().indexOf("[native code]")!==-1&&me.name==="Promise",Vt=Ft?ut:xe.convert(Object.assign({},ut),me.prototype),vr=_e.call(Vt,j,ee);return xe.convert(vr,ut.__proto__)},xe.prototype.thenExternal=function(j,ee){return me.prototype.then.call(this,j,ee)},xe.prototype.thenList=function(j){var ee=this;return j.forEach(function(ut){ee=ee.thenCore(ut)}),ee},xe.prototype.catch=function(z){z&&(z=z.bind(this));var j=me.prototype.catch.call(this,z);return xe.convert(j,this)},xe.prototype.catchExternal=function(j){return me.prototype.catch.call(this,j)},xe.prototype.error=function(j){return this.then(function(){throw new Error(j)})},xe.prototype.using=xe.prototype.set,xe.prototype.saveAs=xe.prototype.save,xe.prototype.export=xe.prototype.output,xe.prototype.run=xe.prototype.then,u.default=xe},"./node_modules/core-js/internals/a-function.js":function(R){R.exports=function(u){if(typeof u!="function")throw TypeError(String(u)+" is not a function");return u}},"./node_modules/core-js/internals/a-possible-prototype.js":function(R,u,C){var H=C("./node_modules/core-js/internals/is-object.js");R.exports=function(w){if(!H(w)&&w!==null)throw TypeError("Can't set "+String(w)+" as a prototype");return w}},"./node_modules/core-js/internals/add-to-unscopables.js":function(R,u,C){var H=C("./node_modules/core-js/internals/well-known-symbol.js"),w=C("./node_modules/core-js/internals/object-create.js"),L=C("./node_modules/core-js/internals/object-define-property.js"),B=H("unscopables"),k=Array.prototype;k[B]==null&&L.f(k,B,{configurable:!0,value:w(null)}),R.exports=function(K){k[B][K]=!0}},"./node_modules/core-js/internals/an-object.js":function(R,u,C){var H=C("./node_modules/core-js/internals/is-object.js");R.exports=function(w){if(!H(w))throw TypeError(String(w)+" is not an object");return w}},"./node_modules/core-js/internals/array-for-each.js":function(R,u,C){"use strict";var H=C("./node_modules/core-js/internals/array-iteration.js").forEach,w=C("./node_modules/core-js/internals/array-method-is-strict.js"),L=w("forEach");R.exports=L?[].forEach:function(k){return H(this,k,arguments.length>1?arguments[1]:void 0)}},"./node_modules/core-js/internals/array-includes.js":function(R,u,C){var H=C("./node_modules/core-js/internals/to-indexed-object.js"),w=C("./node_modules/core-js/internals/to-length.js"),L=C("./node_modules/core-js/internals/to-absolute-index.js"),B=function(k){return function(K,V,P){var G=H(K),Z=w(G.length),se=L(P,Z),oe;if(k&&V!=V){for(;Z>se;)if(oe=G[se++],oe!=oe)return!0}else for(;Z>se;se++)if((k||se in G)&&G[se]===V)return k||se||0;return!k&&-1}};R.exports={includes:B(!0),indexOf:B(!1)}},"./node_modules/core-js/internals/array-iteration.js":function(R,u,C){var H=C("./node_modules/core-js/internals/function-bind-context.js"),w=C("./node_modules/core-js/internals/indexed-object.js"),L=C("./node_modules/core-js/internals/to-object.js"),B=C("./node_modules/core-js/internals/to-length.js"),k=C("./node_modules/core-js/internals/array-species-create.js"),K=[].push,V=function(P){var G=P==1,Z=P==2,se=P==3,oe=P==4,De=P==6,He=P==7,Qe=P==5||De;return function(Ue,qe,st,Pe){for(var pe=L(Ue),M=w(pe),ye=H(qe,st,3),Te=B(M.length),me=0,xe=Pe||k,z=G?xe(Ue,Te):Z||He?xe(Ue,0):void 0,j,ee;Te>me;me++)if((Qe||me in M)&&(j=M[me],ee=ye(j,me,pe),P))if(G)z[me]=ee;else if(ee)switch(P){case 3:return!0;case 5:return j;case 6:return me;case 2:K.call(z,j)}else switch(P){case 4:return!1;case 7:K.call(z,j)}return De?-1:se||oe?oe:z}};R.exports={forEach:V(0),map:V(1),filter:V(2),some:V(3),every:V(4),find:V(5),findIndex:V(6),filterReject:V(7)}},"./node_modules/core-js/internals/array-method-has-species-support.js":function(R,u,C){var H=C("./node_modules/core-js/internals/fails.js"),w=C("./node_modules/core-js/internals/well-known-symbol.js"),L=C("./node_modules/core-js/internals/engine-v8-version.js"),B=w("species");R.exports=function(k){return L>=51||!H(function(){var K=[],V=K.constructor={};return V[B]=function(){return{foo:1}},K[k](Boolean).foo!==1})}},"./node_modules/core-js/internals/array-method-is-strict.js":function(R,u,C){"use strict";var H=C("./node_modules/core-js/internals/fails.js");R.exports=function(w,L){var B=[][w];return!!B&&H(function(){B.call(null,L||function(){throw 1},1)})}},"./node_modules/core-js/internals/array-species-constructor.js":function(R,u,C){var H=C("./node_modules/core-js/internals/is-object.js"),w=C("./node_modules/core-js/internals/is-array.js"),L=C("./node_modules/core-js/internals/well-known-symbol.js"),B=L("species");R.exports=function(k){var K;return w(k)&&(K=k.constructor,typeof K=="function"&&(K===Array||w(K.prototype))?K=void 0:H(K)&&(K=K[B],K===null&&(K=void 0))),K===void 0?Array:K}},"./node_modules/core-js/internals/array-species-create.js":function(R,u,C){var H=C("./node_modules/core-js/internals/array-species-constructor.js");R.exports=function(w,L){return new(H(w))(L===0?0:L)}},"./node_modules/core-js/internals/classof-raw.js":function(R){var u={}.toString;R.exports=function(C){return u.call(C).slice(8,-1)}},"./node_modules/core-js/internals/classof.js":function(R,u,C){var H=C("./node_modules/core-js/internals/to-string-tag-support.js"),w=C("./node_modules/core-js/internals/classof-raw.js"),L=C("./node_modules/core-js/internals/well-known-symbol.js"),B=L("toStringTag"),k=w(function(){return arguments}())=="Arguments",K=function(V,P){try{return V[P]}catch(G){}};R.exports=H?w:function(V){var P,G,Z;return V===void 0?"Undefined":V===null?"Null":typeof(G=K(P=Object(V),B))=="string"?G:k?w(P):(Z=w(P))=="Object"&&typeof P.callee=="function"?"Arguments":Z}},"./node_modules/core-js/internals/copy-constructor-properties.js":function(R,u,C){var H=C("./node_modules/core-js/internals/has.js"),w=C("./node_modules/core-js/internals/own-keys.js"),L=C("./node_modules/core-js/internals/object-get-own-property-descriptor.js"),B=C("./node_modules/core-js/internals/object-define-property.js");R.exports=function(k,K){for(var V=w(K),P=B.f,G=L.f,Z=0;Z<V.length;Z++){var se=V[Z];H(k,se)||P(k,se,G(K,se))}}},"./node_modules/core-js/internals/correct-prototype-getter.js":function(R,u,C){var H=C("./node_modules/core-js/internals/fails.js");R.exports=!H(function(){function w(){}return w.prototype.constructor=null,Object.getPrototypeOf(new w)!==w.prototype})},"./node_modules/core-js/internals/create-html.js":function(R,u,C){var H=C("./node_modules/core-js/internals/require-object-coercible.js"),w=C("./node_modules/core-js/internals/to-string.js"),L=/"/g;R.exports=function(B,k,K,V){var P=w(H(B)),G="<"+k;return K!==""&&(G+=" "+K+'="'+w(V).replace(L,""")+'"'),G+">"+P+"</"+k+">"}},"./node_modules/core-js/internals/create-iterator-constructor.js":function(R,u,C){"use strict";var H=C("./node_modules/core-js/internals/iterators-core.js").IteratorPrototype,w=C("./node_modules/core-js/internals/object-create.js"),L=C("./node_modules/core-js/internals/create-property-descriptor.js"),B=C("./node_modules/core-js/internals/set-to-string-tag.js"),k=C("./node_modules/core-js/internals/iterators.js"),K=function(){return this};R.exports=function(V,P,G){var Z=P+" Iterator";return V.prototype=w(H,{next:L(1,G)}),B(V,Z,!1,!0),k[Z]=K,V}},"./node_modules/core-js/internals/create-non-enumerable-property.js":function(R,u,C){var H=C("./node_modules/core-js/internals/descriptors.js"),w=C("./node_modules/core-js/internals/object-define-property.js"),L=C("./node_modules/core-js/internals/create-property-descriptor.js");R.exports=H?function(B,k,K){return w.f(B,k,L(1,K))}:function(B,k,K){return B[k]=K,B}},"./node_modules/core-js/internals/create-property-descriptor.js":function(R){R.exports=function(u,C){return{enumerable:!(u&1),configurable:!(u&2),writable:!(u&4),value:C}}},"./node_modules/core-js/internals/create-property.js":function(R,u,C){"use strict";var H=C("./node_modules/core-js/internals/to-property-key.js"),w=C("./node_modules/core-js/internals/object-define-property.js"),L=C("./node_modules/core-js/internals/create-property-descriptor.js");R.exports=function(B,k,K){var V=H(k);V in B?w.f(B,V,L(0,K)):B[V]=K}},"./node_modules/core-js/internals/define-iterator.js":function(R,u,C){"use strict";var H=C("./node_modules/core-js/internals/export.js"),w=C("./node_modules/core-js/internals/create-iterator-constructor.js"),L=C("./node_modules/core-js/internals/object-get-prototype-of.js"),B=C("./node_modules/core-js/internals/object-set-prototype-of.js"),k=C("./node_modules/core-js/internals/set-to-string-tag.js"),K=C("./node_modules/core-js/internals/create-non-enumerable-property.js"),V=C("./node_modules/core-js/internals/redefine.js"),P=C("./node_modules/core-js/internals/well-known-symbol.js"),G=C("./node_modules/core-js/internals/is-pure.js"),Z=C("./node_modules/core-js/internals/iterators.js"),se=C("./node_modules/core-js/internals/iterators-core.js"),oe=se.IteratorPrototype,De=se.BUGGY_SAFARI_ITERATORS,He=P("iterator"),Qe="keys",Ue="values",qe="entries",st=function(){return this};R.exports=function(Pe,pe,M,ye,Te,me,xe){w(M,pe,ye);var z=function(fr){if(fr===Te&&Ft)return Ft;if(!De&&fr in _e)return _e[fr];switch(fr){case Qe:return function(){return new M(this,fr)};case Ue:return function(){return new M(this,fr)};case qe:return function(){return new M(this,fr)}}return function(){return new M(this)}},j=pe+" Iterator",ee=!1,_e=Pe.prototype,ut=_e[He]||_e["@@iterator"]||Te&&_e[Te],Ft=!De&&ut||z(Te),Vt=pe=="Array"&&_e.entries||ut,vr,Yr,wr;if(Vt&&(vr=L(Vt.call(new Pe)),oe!==Object.prototype&&vr.next&&(!G&&L(vr)!==oe&&(B?B(vr,oe):typeof vr[He]!="function"&&K(vr,He,st)),k(vr,j,!0,!0),G&&(Z[j]=st))),Te==Ue&&ut&&ut.name!==Ue&&(ee=!0,Ft=function(){return ut.call(this)}),(!G||xe)&&_e[He]!==Ft&&K(_e,He,Ft),Z[pe]=Ft,Te)if(Yr={values:z(Ue),keys:me?Ft:z(Qe),entries:z(qe)},xe)for(wr in Yr)(De||ee||!(wr in _e))&&V(_e,wr,Yr[wr]);else H({target:pe,proto:!0,forced:De||ee},Yr);return Yr}},"./node_modules/core-js/internals/define-well-known-symbol.js":function(R,u,C){var H=C("./node_modules/core-js/internals/path.js"),w=C("./node_modules/core-js/internals/has.js"),L=C("./node_modules/core-js/internals/well-known-symbol-wrapped.js"),B=C("./node_modules/core-js/internals/object-define-property.js").f;R.exports=function(k){var K=H.Symbol||(H.Symbol={});w(K,k)||B(K,k,{value:L.f(k)})}},"./node_modules/core-js/internals/descriptors.js":function(R,u,C){var H=C("./node_modules/core-js/internals/fails.js");R.exports=!H(function(){return Object.defineProperty({},1,{get:function(){return 7}})[1]!=7})},"./node_modules/core-js/internals/document-create-element.js":function(R,u,C){var H=C("./node_modules/core-js/internals/global.js"),w=C("./node_modules/core-js/internals/is-object.js"),L=H.document,B=w(L)&&w(L.createElement);R.exports=function(k){return B?L.createElement(k):{}}},"./node_modules/core-js/internals/dom-iterables.js":function(R){R.exports={CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0}},"./node_modules/core-js/internals/engine-user-agent.js":function(R,u,C){var H=C("./node_modules/core-js/internals/get-built-in.js");R.exports=H("navigator","userAgent")||""},"./node_modules/core-js/internals/engine-v8-version.js":function(R,u,C){var H=C("./node_modules/core-js/internals/global.js"),w=C("./node_modules/core-js/internals/engine-user-agent.js"),L=H.process,B=H.Deno,k=L&&L.versions||B&&B.version,K=k&&k.v8,V,P;K?(V=K.split("."),P=V[0]<4?1:V[0]+V[1]):w&&(V=w.match(/Edge\/(\d+)/),(!V||V[1]>=74)&&(V=w.match(/Chrome\/(\d+)/),V&&(P=V[1]))),R.exports=P&&+P},"./node_modules/core-js/internals/enum-bug-keys.js":function(R){R.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},"./node_modules/core-js/internals/export.js":function(R,u,C){var H=C("./node_modules/core-js/internals/global.js"),w=C("./node_modules/core-js/internals/object-get-own-property-descriptor.js").f,L=C("./node_modules/core-js/internals/create-non-enumerable-property.js"),B=C("./node_modules/core-js/internals/redefine.js"),k=C("./node_modules/core-js/internals/set-global.js"),K=C("./node_modules/core-js/internals/copy-constructor-properties.js"),V=C("./node_modules/core-js/internals/is-forced.js");R.exports=function(P,G){var Z=P.target,se=P.global,oe=P.stat,De,He,Qe,Ue,qe,st;if(se?He=H:oe?He=H[Z]||k(Z,{}):He=(H[Z]||{}).prototype,He)for(Qe in G){if(qe=G[Qe],P.noTargetGet?(st=w(He,Qe),Ue=st&&st.value):Ue=He[Qe],De=V(se?Qe:Z+(oe?".":"#")+Qe,P.forced),!De&&Ue!==void 0){if(typeof qe==typeof Ue)continue;K(qe,Ue)}(P.sham||Ue&&Ue.sham)&&L(qe,"sham",!0),B(He,Qe,qe,P)}}},"./node_modules/core-js/internals/fails.js":function(R){R.exports=function(u){try{return!!u()}catch(C){return!0}}},"./node_modules/core-js/internals/function-bind-context.js":function(R,u,C){var H=C("./node_modules/core-js/internals/a-function.js");R.exports=function(w,L,B){if(H(w),L===void 0)return w;switch(B){case 0:return function(){return w.call(L)};case 1:return function(k){return w.call(L,k)};case 2:return function(k,K){return w.call(L,k,K)};case 3:return function(k,K,V){return w.call(L,k,K,V)}}return function(){return w.apply(L,arguments)}}},"./node_modules/core-js/internals/get-built-in.js":function(R,u,C){var H=C("./node_modules/core-js/internals/global.js"),w=function(L){return typeof L=="function"?L:void 0};R.exports=function(L,B){return arguments.length<2?w(H[L]):H[L]&&H[L][B]}},"./node_modules/core-js/internals/global.js":function(R){var u=function(C){return C&&C.Math==Math&&C};R.exports=u(typeof globalThis=="object"&&globalThis)||u(typeof window=="object"&&window)||u(typeof self=="object"&&self)||u(typeof je.g=="object"&&je.g)||function(){return this}()||Function("return this")()},"./node_modules/core-js/internals/has.js":function(R,u,C){var H=C("./node_modules/core-js/internals/to-object.js"),w={}.hasOwnProperty;R.exports=Object.hasOwn||function(B,k){return w.call(H(B),k)}},"./node_modules/core-js/internals/hidden-keys.js":function(R){R.exports={}},"./node_modules/core-js/internals/html.js":function(R,u,C){var H=C("./node_modules/core-js/internals/get-built-in.js");R.exports=H("document","documentElement")},"./node_modules/core-js/internals/ie8-dom-define.js":function(R,u,C){var H=C("./node_modules/core-js/internals/descriptors.js"),w=C("./node_modules/core-js/internals/fails.js"),L=C("./node_modules/core-js/internals/document-create-element.js");R.exports=!H&&!w(function(){return Object.defineProperty(L("div"),"a",{get:function(){return 7}}).a!=7})},"./node_modules/core-js/internals/indexed-object.js":function(R,u,C){var H=C("./node_modules/core-js/internals/fails.js"),w=C("./node_modules/core-js/internals/classof-raw.js"),L="".split;R.exports=H(function(){return!Object("z").propertyIsEnumerable(0)})?function(B){return w(B)=="String"?L.call(B,""):Object(B)}:Object},"./node_modules/core-js/internals/inherit-if-required.js":function(R,u,C){var H=C("./node_modules/core-js/internals/is-object.js"),w=C("./node_modules/core-js/internals/object-set-prototype-of.js");R.exports=function(L,B,k){var K,V;return w&&typeof(K=B.constructor)=="function"&&K!==k&&H(V=K.prototype)&&V!==k.prototype&&w(L,V),L}},"./node_modules/core-js/internals/inspect-source.js":function(R,u,C){var H=C("./node_modules/core-js/internals/shared-store.js"),w=Function.toString;typeof H.inspectSource!="function"&&(H.inspectSource=function(L){return w.call(L)}),R.exports=H.inspectSource},"./node_modules/core-js/internals/internal-state.js":function(R,u,C){var H=C("./node_modules/core-js/internals/native-weak-map.js"),w=C("./node_modules/core-js/internals/global.js"),L=C("./node_modules/core-js/internals/is-object.js"),B=C("./node_modules/core-js/internals/create-non-enumerable-property.js"),k=C("./node_modules/core-js/internals/has.js"),K=C("./node_modules/core-js/internals/shared-store.js"),V=C("./node_modules/core-js/internals/shared-key.js"),P=C("./node_modules/core-js/internals/hidden-keys.js"),G="Object already initialized",Z=w.WeakMap,se,oe,De,He=function(M){return De(M)?oe(M):se(M,{})},Qe=function(M){return function(ye){var Te;if(!L(ye)||(Te=oe(ye)).type!==M)throw TypeError("Incompatible receiver, "+M+" required");return Te}};if(H||K.state){var Ue=K.state||(K.state=new Z),qe=Ue.get,st=Ue.has,Pe=Ue.set;se=function(M,ye){if(st.call(Ue,M))throw new TypeError(G);return ye.facade=M,Pe.call(Ue,M,ye),ye},oe=function(M){return qe.call(Ue,M)||{}},De=function(M){return st.call(Ue,M)}}else{var pe=V("state");P[pe]=!0,se=function(M,ye){if(k(M,pe))throw new TypeError(G);return ye.facade=M,B(M,pe,ye),ye},oe=function(M){return k(M,pe)?M[pe]:{}},De=function(M){return k(M,pe)}}R.exports={set:se,get:oe,has:De,enforce:He,getterFor:Qe}},"./node_modules/core-js/internals/is-array.js":function(R,u,C){var H=C("./node_modules/core-js/internals/classof-raw.js");R.exports=Array.isArray||function(L){return H(L)=="Array"}},"./node_modules/core-js/internals/is-forced.js":function(R,u,C){var H=C("./node_modules/core-js/internals/fails.js"),w=/#|\.prototype\./,L=function(P,G){var Z=k[B(P)];return Z==V?!0:Z==K?!1:typeof G=="function"?H(G):!!G},B=L.normalize=function(P){return String(P).replace(w,".").toLowerCase()},k=L.data={},K=L.NATIVE="N",V=L.POLYFILL="P";R.exports=L},"./node_modules/core-js/internals/is-object.js":function(R){R.exports=function(u){return typeof u=="object"?u!==null:typeof u=="function"}},"./node_modules/core-js/internals/is-pure.js":function(R){R.exports=!1},"./node_modules/core-js/internals/is-symbol.js":function(R,u,C){var H=C("./node_modules/core-js/internals/get-built-in.js"),w=C("./node_modules/core-js/internals/use-symbol-as-uid.js");R.exports=w?function(L){return typeof L=="symbol"}:function(L){var B=H("Symbol");return typeof B=="function"&&Object(L)instanceof B}},"./node_modules/core-js/internals/iterators-core.js":function(R,u,C){"use strict";var H=C("./node_modules/core-js/internals/fails.js"),w=C("./node_modules/core-js/internals/object-get-prototype-of.js"),L=C("./node_modules/core-js/internals/create-non-enumerable-property.js"),B=C("./node_modules/core-js/internals/has.js"),k=C("./node_modules/core-js/internals/well-known-symbol.js"),K=C("./node_modules/core-js/internals/is-pure.js"),V=k("iterator"),P=!1,G=function(){return this},Z,se,oe;[].keys&&(oe=[].keys(),"next"in oe?(se=w(w(oe)),se!==Object.prototype&&(Z=se)):P=!0);var De=Z==null||H(function(){var He={};return Z[V].call(He)!==He});De&&(Z={}),(!K||De)&&!B(Z,V)&&L(Z,V,G),R.exports={IteratorPrototype:Z,BUGGY_SAFARI_ITERATORS:P}},"./node_modules/core-js/internals/iterators.js":function(R){R.exports={}},"./node_modules/core-js/internals/native-symbol.js":function(R,u,C){var H=C("./node_modules/core-js/internals/engine-v8-version.js"),w=C("./node_modules/core-js/internals/fails.js");R.exports=!!Object.getOwnPropertySymbols&&!w(function(){var L=Symbol();return!String(L)||!(Object(L)instanceof Symbol)||!Symbol.sham&&H&&H<41})},"./node_modules/core-js/internals/native-weak-map.js":function(R,u,C){var H=C("./node_modules/core-js/internals/global.js"),w=C("./node_modules/core-js/internals/inspect-source.js"),L=H.WeakMap;R.exports=typeof L=="function"&&/native code/.test(w(L))},"./node_modules/core-js/internals/object-assign.js":function(R,u,C){"use strict";var H=C("./node_modules/core-js/internals/descriptors.js"),w=C("./node_modules/core-js/internals/fails.js"),L=C("./node_modules/core-js/internals/object-keys.js"),B=C("./node_modules/core-js/internals/object-get-own-property-symbols.js"),k=C("./node_modules/core-js/internals/object-property-is-enumerable.js"),K=C("./node_modules/core-js/internals/to-object.js"),V=C("./node_modules/core-js/internals/indexed-object.js"),P=Object.assign,G=Object.defineProperty;R.exports=!P||w(function(){if(H&&P({b:1},P(G({},"a",{enumerable:!0,get:function(){G(this,"b",{value:3,enumerable:!1})}}),{b:2})).b!==1)return!0;var Z={},se={},oe=Symbol(),De="abcdefghijklmnopqrst";return Z[oe]=7,De.split("").forEach(function(He){se[He]=He}),P({},Z)[oe]!=7||L(P({},se)).join("")!=De})?function(se,oe){for(var De=K(se),He=arguments.length,Qe=1,Ue=B.f,qe=k.f;He>Qe;)for(var st=V(arguments[Qe++]),Pe=Ue?L(st).concat(Ue(st)):L(st),pe=Pe.length,M=0,ye;pe>M;)ye=Pe[M++],(!H||qe.call(st,ye))&&(De[ye]=st[ye]);return De}:P},"./node_modules/core-js/internals/object-create.js":function(R,u,C){var H=C("./node_modules/core-js/internals/an-object.js"),w=C("./node_modules/core-js/internals/object-define-properties.js"),L=C("./node_modules/core-js/internals/enum-bug-keys.js"),B=C("./node_modules/core-js/internals/hidden-keys.js"),k=C("./node_modules/core-js/internals/html.js"),K=C("./node_modules/core-js/internals/document-create-element.js"),V=C("./node_modules/core-js/internals/shared-key.js"),P=">",G="<",Z="prototype",se="script",oe=V("IE_PROTO"),De=function(){},He=function(Pe){return G+se+P+Pe+G+"/"+se+P},Qe=function(Pe){Pe.write(He("")),Pe.close();var pe=Pe.parentWindow.Object;return Pe=null,pe},Ue=function(){var Pe=K("iframe"),pe="java"+se+":",M;if(Pe.style)return Pe.style.display="none",k.appendChild(Pe),Pe.src=String(pe),M=Pe.contentWindow.document,M.open(),M.write(He("document.F=Object")),M.close(),M.F},qe,st=function(){try{qe=new ActiveXObject("htmlfile")}catch(pe){}st=document.domain&&qe?Qe(qe):Ue()||Qe(qe);for(var Pe=L.length;Pe--;)delete st[Z][L[Pe]];return st()};B[oe]=!0,R.exports=Object.create||function(pe,M){var ye;return pe!==null?(De[Z]=H(pe),ye=new De,De[Z]=null,ye[oe]=pe):ye=st(),M===void 0?ye:w(ye,M)}},"./node_modules/core-js/internals/object-define-properties.js":function(R,u,C){var H=C("./node_modules/core-js/internals/descriptors.js"),w=C("./node_modules/core-js/internals/object-define-property.js"),L=C("./node_modules/core-js/internals/an-object.js"),B=C("./node_modules/core-js/internals/object-keys.js");R.exports=H?Object.defineProperties:function(K,V){L(K);for(var P=B(V),G=P.length,Z=0,se;G>Z;)w.f(K,se=P[Z++],V[se]);return K}},"./node_modules/core-js/internals/object-define-property.js":function(R,u,C){var H=C("./node_modules/core-js/internals/descriptors.js"),w=C("./node_modules/core-js/internals/ie8-dom-define.js"),L=C("./node_modules/core-js/internals/an-object.js"),B=C("./node_modules/core-js/internals/to-property-key.js"),k=Object.defineProperty;u.f=H?k:function(V,P,G){if(L(V),P=B(P),L(G),w)try{return k(V,P,G)}catch(Z){}if("get"in G||"set"in G)throw TypeError("Accessors not supported");return"value"in G&&(V[P]=G.value),V}},"./node_modules/core-js/internals/object-get-own-property-descriptor.js":function(R,u,C){var H=C("./node_modules/core-js/internals/descriptors.js"),w=C("./node_modules/core-js/internals/object-property-is-enumerable.js"),L=C("./node_modules/core-js/internals/create-property-descriptor.js"),B=C("./node_modules/core-js/internals/to-indexed-object.js"),k=C("./node_modules/core-js/internals/to-property-key.js"),K=C("./node_modules/core-js/internals/has.js"),V=C("./node_modules/core-js/internals/ie8-dom-define.js"),P=Object.getOwnPropertyDescriptor;u.f=H?P:function(Z,se){if(Z=B(Z),se=k(se),V)try{return P(Z,se)}catch(oe){}if(K(Z,se))return L(!w.f.call(Z,se),Z[se])}},"./node_modules/core-js/internals/object-get-own-property-names-external.js":function(R,u,C){var H=C("./node_modules/core-js/internals/to-indexed-object.js"),w=C("./node_modules/core-js/internals/object-get-own-property-names.js").f,L={}.toString,B=typeof window=="object"&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],k=function(K){try{return w(K)}catch(V){return B.slice()}};R.exports.f=function(V){return B&&L.call(V)=="[object Window]"?k(V):w(H(V))}},"./node_modules/core-js/internals/object-get-own-property-names.js":function(R,u,C){var H=C("./node_modules/core-js/internals/object-keys-internal.js"),w=C("./node_modules/core-js/internals/enum-bug-keys.js"),L=w.concat("length","prototype");u.f=Object.getOwnPropertyNames||function(k){return H(k,L)}},"./node_modules/core-js/internals/object-get-own-property-symbols.js":function(R,u){u.f=Object.getOwnPropertySymbols},"./node_modules/core-js/internals/object-get-prototype-of.js":function(R,u,C){var H=C("./node_modules/core-js/internals/has.js"),w=C("./node_modules/core-js/internals/to-object.js"),L=C("./node_modules/core-js/internals/shared-key.js"),B=C("./node_modules/core-js/internals/correct-prototype-getter.js"),k=L("IE_PROTO"),K=Object.prototype;R.exports=B?Object.getPrototypeOf:function(V){return V=w(V),H(V,k)?V[k]:typeof V.constructor=="function"&&V instanceof V.constructor?V.constructor.prototype:V instanceof Object?K:null}},"./node_modules/core-js/internals/object-keys-internal.js":function(R,u,C){var H=C("./node_modules/core-js/internals/has.js"),w=C("./node_modules/core-js/internals/to-indexed-object.js"),L=C("./node_modules/core-js/internals/array-includes.js").indexOf,B=C("./node_modules/core-js/internals/hidden-keys.js");R.exports=function(k,K){var V=w(k),P=0,G=[],Z;for(Z in V)!H(B,Z)&&H(V,Z)&&G.push(Z);for(;K.length>P;)H(V,Z=K[P++])&&(~L(G,Z)||G.push(Z));return G}},"./node_modules/core-js/internals/object-keys.js":function(R,u,C){var H=C("./node_modules/core-js/internals/object-keys-internal.js"),w=C("./node_modules/core-js/internals/enum-bug-keys.js");R.exports=Object.keys||function(B){return H(B,w)}},"./node_modules/core-js/internals/object-property-is-enumerable.js":function(R,u){"use strict";var C={}.propertyIsEnumerable,H=Object.getOwnPropertyDescriptor,w=H&&!C.call({1:2},1);u.f=w?function(B){var k=H(this,B);return!!k&&k.enumerable}:C},"./node_modules/core-js/internals/object-set-prototype-of.js":function(R,u,C){var H=C("./node_modules/core-js/internals/an-object.js"),w=C("./node_modules/core-js/internals/a-possible-prototype.js");R.exports=Object.setPrototypeOf||("__proto__"in{}?function(){var L=!1,B={},k;try{k=Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set,k.call(B,[]),L=B instanceof Array}catch(K){}return function(V,P){return H(V),w(P),L?k.call(V,P):V.__proto__=P,V}}():void 0)},"./node_modules/core-js/internals/object-to-string.js":function(R,u,C){"use strict";var H=C("./node_modules/core-js/internals/to-string-tag-support.js"),w=C("./node_modules/core-js/internals/classof.js");R.exports=H?{}.toString:function(){return"[object "+w(this)+"]"}},"./node_modules/core-js/internals/ordinary-to-primitive.js":function(R,u,C){var H=C("./node_modules/core-js/internals/is-object.js");R.exports=function(w,L){var B,k;if(L==="string"&&typeof(B=w.toString)=="function"&&!H(k=B.call(w))||typeof(B=w.valueOf)=="function"&&!H(k=B.call(w))||L!=="string"&&typeof(B=w.toString)=="function"&&!H(k=B.call(w)))return k;throw TypeError("Can't convert object to primitive value")}},"./node_modules/core-js/internals/own-keys.js":function(R,u,C){var H=C("./node_modules/core-js/internals/get-built-in.js"),w=C("./node_modules/core-js/internals/object-get-own-property-names.js"),L=C("./node_modules/core-js/internals/object-get-own-property-symbols.js"),B=C("./node_modules/core-js/internals/an-object.js");R.exports=H("Reflect","ownKeys")||function(K){var V=w.f(B(K)),P=L.f;return P?V.concat(P(K)):V}},"./node_modules/core-js/internals/path.js":function(R,u,C){var H=C("./node_modules/core-js/internals/global.js");R.exports=H},"./node_modules/core-js/internals/redefine.js":function(R,u,C){var H=C("./node_modules/core-js/internals/global.js"),w=C("./node_modules/core-js/internals/create-non-enumerable-property.js"),L=C("./node_modules/core-js/internals/has.js"),B=C("./node_modules/core-js/internals/set-global.js"),k=C("./node_modules/core-js/internals/inspect-source.js"),K=C("./node_modules/core-js/internals/internal-state.js"),V=K.get,P=K.enforce,G=String(String).split("String");(R.exports=function(Z,se,oe,De){var He=De?!!De.unsafe:!1,Qe=De?!!De.enumerable:!1,Ue=De?!!De.noTargetGet:!1,qe;if(typeof oe=="function"&&(typeof se=="string"&&!L(oe,"name")&&w(oe,"name",se),qe=P(oe),qe.source||(qe.source=G.join(typeof se=="string"?se:""))),Z===H){Qe?Z[se]=oe:B(se,oe);return}else He?!Ue&&Z[se]&&(Qe=!0):delete Z[se];Qe?Z[se]=oe:w(Z,se,oe)})(Function.prototype,"toString",function(){return typeof this=="function"&&V(this).source||k(this)})},"./node_modules/core-js/internals/regexp-flags.js":function(R,u,C){"use strict";var H=C("./node_modules/core-js/internals/an-object.js");R.exports=function(){var w=H(this),L="";return w.global&&(L+="g"),w.ignoreCase&&(L+="i"),w.multiline&&(L+="m"),w.dotAll&&(L+="s"),w.unicode&&(L+="u"),w.sticky&&(L+="y"),L}},"./node_modules/core-js/internals/require-object-coercible.js":function(R){R.exports=function(u){if(u==null)throw TypeError("Can't call method on "+u);return u}},"./node_modules/core-js/internals/set-global.js":function(R,u,C){var H=C("./node_modules/core-js/internals/global.js");R.exports=function(w,L){try{Object.defineProperty(H,w,{value:L,configurable:!0,writable:!0})}catch(B){H[w]=L}return L}},"./node_modules/core-js/internals/set-to-string-tag.js":function(R,u,C){var H=C("./node_modules/core-js/internals/object-define-property.js").f,w=C("./node_modules/core-js/internals/has.js"),L=C("./node_modules/core-js/internals/well-known-symbol.js"),B=L("toStringTag");R.exports=function(k,K,V){k&&!w(k=V?k:k.prototype,B)&&H(k,B,{configurable:!0,value:K})}},"./node_modules/core-js/internals/shared-key.js":function(R,u,C){var H=C("./node_modules/core-js/internals/shared.js"),w=C("./node_modules/core-js/internals/uid.js"),L=H("keys");R.exports=function(B){return L[B]||(L[B]=w(B))}},"./node_modules/core-js/internals/shared-store.js":function(R,u,C){var H=C("./node_modules/core-js/internals/global.js"),w=C("./node_modules/core-js/internals/set-global.js"),L="__core-js_shared__",B=H[L]||w(L,{});R.exports=B},"./node_modules/core-js/internals/shared.js":function(R,u,C){var H=C("./node_modules/core-js/internals/is-pure.js"),w=C("./node_modules/core-js/internals/shared-store.js");(R.exports=function(L,B){return w[L]||(w[L]=B!==void 0?B:{})})("versions",[]).push({version:"3.16.0",mode:H?"pure":"global",copyright:"\xA9 2021 Denis Pushkarev (zloirock.ru)"})},"./node_modules/core-js/internals/string-html-forced.js":function(R,u,C){var H=C("./node_modules/core-js/internals/fails.js");R.exports=function(w){return H(function(){var L=""[w]('"');return L!==L.toLowerCase()||L.split('"').length>3})}},"./node_modules/core-js/internals/string-multibyte.js":function(R,u,C){var H=C("./node_modules/core-js/internals/to-integer.js"),w=C("./node_modules/core-js/internals/to-string.js"),L=C("./node_modules/core-js/internals/require-object-coercible.js"),B=function(k){return function(K,V){var P=w(L(K)),G=H(V),Z=P.length,se,oe;return G<0||G>=Z?k?"":void 0:(se=P.charCodeAt(G),se<55296||se>56319||G+1===Z||(oe=P.charCodeAt(G+1))<56320||oe>57343?k?P.charAt(G):se:k?P.slice(G,G+2):(se-55296<<10)+(oe-56320)+65536)}};R.exports={codeAt:B(!1),charAt:B(!0)}},"./node_modules/core-js/internals/string-trim.js":function(R,u,C){var H=C("./node_modules/core-js/internals/require-object-coercible.js"),w=C("./node_modules/core-js/internals/to-string.js"),L=C("./node_modules/core-js/internals/whitespaces.js"),B="["+L+"]",k=RegExp("^"+B+B+"*"),K=RegExp(B+B+"*$"),V=function(P){return function(G){var Z=w(H(G));return P&1&&(Z=Z.replace(k,"")),P&2&&(Z=Z.replace(K,"")),Z}};R.exports={start:V(1),end:V(2),trim:V(3)}},"./node_modules/core-js/internals/to-absolute-index.js":function(R,u,C){var H=C("./node_modules/core-js/internals/to-integer.js"),w=Math.max,L=Math.min;R.exports=function(B,k){var K=H(B);return K<0?w(K+k,0):L(K,k)}},"./node_modules/core-js/internals/to-indexed-object.js":function(R,u,C){var H=C("./node_modules/core-js/internals/indexed-object.js"),w=C("./node_modules/core-js/internals/require-object-coercible.js");R.exports=function(L){return H(w(L))}},"./node_modules/core-js/internals/to-integer.js":function(R){var u=Math.ceil,C=Math.floor;R.exports=function(H){return isNaN(H=+H)?0:(H>0?C:u)(H)}},"./node_modules/core-js/internals/to-length.js":function(R,u,C){var H=C("./node_modules/core-js/internals/to-integer.js"),w=Math.min;R.exports=function(L){return L>0?w(H(L),9007199254740991):0}},"./node_modules/core-js/internals/to-object.js":function(R,u,C){var H=C("./node_modules/core-js/internals/require-object-coercible.js");R.exports=function(w){return Object(H(w))}},"./node_modules/core-js/internals/to-primitive.js":function(R,u,C){var H=C("./node_modules/core-js/internals/is-object.js"),w=C("./node_modules/core-js/internals/is-symbol.js"),L=C("./node_modules/core-js/internals/ordinary-to-primitive.js"),B=C("./node_modules/core-js/internals/well-known-symbol.js"),k=B("toPrimitive");R.exports=function(K,V){if(!H(K)||w(K))return K;var P=K[k],G;if(P!==void 0){if(V===void 0&&(V="default"),G=P.call(K,V),!H(G)||w(G))return G;throw TypeError("Can't convert object to primitive value")}return V===void 0&&(V="number"),L(K,V)}},"./node_modules/core-js/internals/to-property-key.js":function(R,u,C){var H=C("./node_modules/core-js/internals/to-primitive.js"),w=C("./node_modules/core-js/internals/is-symbol.js");R.exports=function(L){var B=H(L,"string");return w(B)?B:String(B)}},"./node_modules/core-js/internals/to-string-tag-support.js":function(R,u,C){var H=C("./node_modules/core-js/internals/well-known-symbol.js"),w=H("toStringTag"),L={};L[w]="z",R.exports=String(L)==="[object z]"},"./node_modules/core-js/internals/to-string.js":function(R,u,C){var H=C("./node_modules/core-js/internals/is-symbol.js");R.exports=function(w){if(H(w))throw TypeError("Cannot convert a Symbol value to a string");return String(w)}},"./node_modules/core-js/internals/uid.js":function(R){var u=0,C=Math.random();R.exports=function(H){return"Symbol("+String(H===void 0?"":H)+")_"+(++u+C).toString(36)}},"./node_modules/core-js/internals/use-symbol-as-uid.js":function(R,u,C){var H=C("./node_modules/core-js/internals/native-symbol.js");R.exports=H&&!Symbol.sham&&typeof Symbol.iterator=="symbol"},"./node_modules/core-js/internals/well-known-symbol-wrapped.js":function(R,u,C){var H=C("./node_modules/core-js/internals/well-known-symbol.js");u.f=H},"./node_modules/core-js/internals/well-known-symbol.js":function(R,u,C){var H=C("./node_modules/core-js/internals/global.js"),w=C("./node_modules/core-js/internals/shared.js"),L=C("./node_modules/core-js/internals/has.js"),B=C("./node_modules/core-js/internals/uid.js"),k=C("./node_modules/core-js/internals/native-symbol.js"),K=C("./node_modules/core-js/internals/use-symbol-as-uid.js"),V=w("wks"),P=H.Symbol,G=K?P:P&&P.withoutSetter||B;R.exports=function(Z){return(!L(V,Z)||!(k||typeof V[Z]=="string"))&&(k&&L(P,Z)?V[Z]=P[Z]:V[Z]=G("Symbol."+Z)),V[Z]}},"./node_modules/core-js/internals/whitespaces.js":function(R){R.exports=`
|
|
|
\v\f\r \xA0\u1680\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200A\u202F\u205F\u3000\u2028\u2029\uFEFF`},"./node_modules/core-js/modules/es.array.concat.js":function(R,u,C){"use strict";var H=C("./node_modules/core-js/internals/export.js"),w=C("./node_modules/core-js/internals/fails.js"),L=C("./node_modules/core-js/internals/is-array.js"),B=C("./node_modules/core-js/internals/is-object.js"),k=C("./node_modules/core-js/internals/to-object.js"),K=C("./node_modules/core-js/internals/to-length.js"),V=C("./node_modules/core-js/internals/create-property.js"),P=C("./node_modules/core-js/internals/array-species-create.js"),G=C("./node_modules/core-js/internals/array-method-has-species-support.js"),Z=C("./node_modules/core-js/internals/well-known-symbol.js"),se=C("./node_modules/core-js/internals/engine-v8-version.js"),oe=Z("isConcatSpreadable"),De=9007199254740991,He="Maximum allowed index exceeded",Qe=se>=51||!w(function(){var Pe=[];return Pe[oe]=!1,Pe.concat()[0]!==Pe}),Ue=G("concat"),qe=function(Pe){if(!B(Pe))return!1;var pe=Pe[oe];return pe!==void 0?!!pe:L(Pe)},st=!Qe||!Ue;H({target:"Array",proto:!0,forced:st},{concat:function(pe){var M=k(this),ye=P(M,0),Te=0,me,xe,z,j,ee;for(me=-1,z=arguments.length;me<z;me++)if(ee=me===-1?M:arguments[me],qe(ee)){if(j=K(ee.length),Te+j>De)throw TypeError(He);for(xe=0;xe<j;xe++,Te++)xe in ee&&V(ye,Te,ee[xe])}else{if(Te>=De)throw TypeError(He);V(ye,Te++,ee)}return ye.length=Te,ye}})},"./node_modules/core-js/modules/es.array.iterator.js":function(R,u,C){"use strict";var H=C("./node_modules/core-js/internals/to-indexed-object.js"),w=C("./node_modules/core-js/internals/add-to-unscopables.js"),L=C("./node_modules/core-js/internals/iterators.js"),B=C("./node_modules/core-js/internals/internal-state.js"),k=C("./node_modules/core-js/internals/define-iterator.js"),K="Array Iterator",V=B.set,P=B.getterFor(K);R.exports=k(Array,"Array",function(G,Z){V(this,{type:K,target:H(G),index:0,kind:Z})},function(){var G=P(this),Z=G.target,se=G.kind,oe=G.index++;return!Z||oe>=Z.length?(G.target=void 0,{value:void 0,done:!0}):se=="keys"?{value:oe,done:!1}:se=="values"?{value:Z[oe],done:!1}:{value:[oe,Z[oe]],done:!1}},"values"),L.Arguments=L.Array,w("keys"),w("values"),w("entries")},"./node_modules/core-js/modules/es.array.join.js":function(R,u,C){"use strict";var H=C("./node_modules/core-js/internals/export.js"),w=C("./node_modules/core-js/internals/indexed-object.js"),L=C("./node_modules/core-js/internals/to-indexed-object.js"),B=C("./node_modules/core-js/internals/array-method-is-strict.js"),k=[].join,K=w!=Object,V=B("join",",");H({target:"Array",proto:!0,forced:K||!V},{join:function(G){return k.call(L(this),G===void 0?",":G)}})},"./node_modules/core-js/modules/es.array.map.js":function(R,u,C){"use strict";var H=C("./node_modules/core-js/internals/export.js"),w=C("./node_modules/core-js/internals/array-iteration.js").map,L=C("./node_modules/core-js/internals/array-method-has-species-support.js"),B=L("map");H({target:"Array",proto:!0,forced:!B},{map:function(K){return w(this,K,arguments.length>1?arguments[1]:void 0)}})},"./node_modules/core-js/modules/es.array.slice.js":function(R,u,C){"use strict";var H=C("./node_modules/core-js/internals/export.js"),w=C("./node_modules/core-js/internals/is-object.js"),L=C("./node_modules/core-js/internals/is-array.js"),B=C("./node_modules/core-js/internals/to-absolute-index.js"),k=C("./node_modules/core-js/internals/to-length.js"),K=C("./node_modules/core-js/internals/to-indexed-object.js"),V=C("./node_modules/core-js/internals/create-property.js"),P=C("./node_modules/core-js/internals/well-known-symbol.js"),G=C("./node_modules/core-js/internals/array-method-has-species-support.js"),Z=G("slice"),se=P("species"),oe=[].slice,De=Math.max;H({target:"Array",proto:!0,forced:!Z},{slice:function(Qe,Ue){var qe=K(this),st=k(qe.length),Pe=B(Qe,st),pe=B(Ue===void 0?st:Ue,st),M,ye,Te;if(L(qe)&&(M=qe.constructor,typeof M=="function"&&(M===Array||L(M.prototype))?M=void 0:w(M)&&(M=M[se],M===null&&(M=void 0)),M===Array||M===void 0))return oe.call(qe,Pe,pe);for(ye=new(M===void 0?Array:M)(De(pe-Pe,0)),Te=0;Pe<pe;Pe++,Te++)Pe in qe&&V(ye,Te,qe[Pe]);return ye.length=Te,ye}})},"./node_modules/core-js/modules/es.function.name.js":function(R,u,C){var H=C("./node_modules/core-js/internals/descriptors.js"),w=C("./node_modules/core-js/internals/object-define-property.js").f,L=Function.prototype,B=L.toString,k=/^\s*function ([^ (]*)/,K="name";H&&!(K in L)&&w(L,K,{configurable:!0,get:function(){try{return B.call(this).match(k)[1]}catch(V){return""}}})},"./node_modules/core-js/modules/es.number.constructor.js":function(R,u,C){"use strict";var H=C("./node_modules/core-js/internals/descriptors.js"),w=C("./node_modules/core-js/internals/global.js"),L=C("./node_modules/core-js/internals/is-forced.js"),B=C("./node_modules/core-js/internals/redefine.js"),k=C("./node_modules/core-js/internals/has.js"),K=C("./node_modules/core-js/internals/classof-raw.js"),V=C("./node_modules/core-js/internals/inherit-if-required.js"),P=C("./node_modules/core-js/internals/is-symbol.js"),G=C("./node_modules/core-js/internals/to-primitive.js"),Z=C("./node_modules/core-js/internals/fails.js"),se=C("./node_modules/core-js/internals/object-create.js"),oe=C("./node_modules/core-js/internals/object-get-own-property-names.js").f,De=C("./node_modules/core-js/internals/object-get-own-property-descriptor.js").f,He=C("./node_modules/core-js/internals/object-define-property.js").f,Qe=C("./node_modules/core-js/internals/string-trim.js").trim,Ue="Number",qe=w[Ue],st=qe.prototype,Pe=K(se(st))==Ue,pe=function(xe){if(P(xe))throw TypeError("Cannot convert a Symbol value to a number");var z=G(xe,"number"),j,ee,_e,ut,Ft,Vt,vr,Yr;if(typeof z=="string"&&z.length>2){if(z=Qe(z),j=z.charCodeAt(0),j===43||j===45){if(ee=z.charCodeAt(2),ee===88||ee===120)return NaN}else if(j===48){switch(z.charCodeAt(1)){case 66:case 98:_e=2,ut=49;break;case 79:case 111:_e=8,ut=55;break;default:return+z}for(Ft=z.slice(2),Vt=Ft.length,vr=0;vr<Vt;vr++)if(Yr=Ft.charCodeAt(vr),Yr<48||Yr>ut)return NaN;return parseInt(Ft,_e)}}return+z};if(L(Ue,!qe(" 0o1")||!qe("0b1")||qe("+0x1"))){for(var M=function(z){var j=arguments.length<1?0:z,ee=this;return ee instanceof M&&(Pe?Z(function(){st.valueOf.call(ee)}):K(ee)!=Ue)?V(new qe(pe(j)),ee,M):pe(j)},ye=H?oe(qe):"MAX_VALUE,MIN_VALUE,NaN,NEGATIVE_INFINITY,POSITIVE_INFINITY,EPSILON,isFinite,isInteger,isNaN,isSafeInteger,MAX_SAFE_INTEGER,MIN_SAFE_INTEGER,parseFloat,parseInt,isInteger,fromString,range".split(","),Te=0,me;ye.length>Te;Te++)k(qe,me=ye[Te])&&!k(M,me)&&He(M,me,De(qe,me));M.prototype=st,st.constructor=M,B(w,Ue,M)}},"./node_modules/core-js/modules/es.object.assign.js":function(R,u,C){var H=C("./node_modules/core-js/internals/export.js"),w=C("./node_modules/core-js/internals/object-assign.js");H({target:"Object",stat:!0,forced:Object.assign!==w},{assign:w})},"./node_modules/core-js/modules/es.object.keys.js":function(R,u,C){var H=C("./node_modules/core-js/internals/export.js"),w=C("./node_modules/core-js/internals/to-object.js"),L=C("./node_modules/core-js/internals/object-keys.js"),B=C("./node_modules/core-js/internals/fails.js"),k=B(function(){L(1)});H({target:"Object",stat:!0,forced:k},{keys:function(V){return L(w(V))}})},"./node_modules/core-js/modules/es.object.to-string.js":function(R,u,C){var H=C("./node_modules/core-js/internals/to-string-tag-support.js"),w=C("./node_modules/core-js/internals/redefine.js"),L=C("./node_modules/core-js/internals/object-to-string.js");H||w(Object.prototype,"toString",L,{unsafe:!0})},"./node_modules/core-js/modules/es.regexp.to-string.js":function(R,u,C){"use strict";var H=C("./node_modules/core-js/internals/redefine.js"),w=C("./node_modules/core-js/internals/an-object.js"),L=C("./node_modules/core-js/internals/to-string.js"),B=C("./node_modules/core-js/internals/fails.js"),k=C("./node_modules/core-js/internals/regexp-flags.js"),K="toString",V=RegExp.prototype,P=V[K],G=B(function(){return P.call({source:"a",flags:"b"})!="/a/b"}),Z=P.name!=K;(G||Z)&&H(RegExp.prototype,K,function(){var oe=w(this),De=L(oe.source),He=oe.flags,Qe=L(He===void 0&&oe instanceof RegExp&&!("flags"in V)?k.call(oe):He);return"/"+De+"/"+Qe},{unsafe:!0})},"./node_modules/core-js/modules/es.string.iterator.js":function(R,u,C){"use strict";var H=C("./node_modules/core-js/internals/string-multibyte.js").charAt,w=C("./node_modules/core-js/internals/to-string.js"),L=C("./node_modules/core-js/internals/internal-state.js"),B=C("./node_modules/core-js/internals/define-iterator.js"),k="String Iterator",K=L.set,V=L.getterFor(k);B(String,"String",function(P){K(this,{type:k,string:w(P),index:0})},function(){var G=V(this),Z=G.string,se=G.index,oe;return se>=Z.length?{value:void 0,done:!0}:(oe=H(Z,se),G.index+=oe.length,{value:oe,done:!1})})},"./node_modules/core-js/modules/es.string.link.js":function(R,u,C){"use strict";var H=C("./node_modules/core-js/internals/export.js"),w=C("./node_modules/core-js/internals/create-html.js"),L=C("./node_modules/core-js/internals/string-html-forced.js");H({target:"String",proto:!0,forced:L("link")},{link:function(k){return w(this,"a","href",k)}})},"./node_modules/core-js/modules/es.symbol.description.js":function(R,u,C){"use strict";var H=C("./node_modules/core-js/internals/export.js"),w=C("./node_modules/core-js/internals/descriptors.js"),L=C("./node_modules/core-js/internals/global.js"),B=C("./node_modules/core-js/internals/has.js"),k=C("./node_modules/core-js/internals/is-object.js"),K=C("./node_modules/core-js/internals/object-define-property.js").f,V=C("./node_modules/core-js/internals/copy-constructor-properties.js"),P=L.Symbol;if(w&&typeof P=="function"&&(!("description"in P.prototype)||P().description!==void 0)){var G={},Z=function(){var Ue=arguments.length<1||arguments[0]===void 0?void 0:String(arguments[0]),qe=this instanceof Z?new P(Ue):Ue===void 0?P():P(Ue);return Ue===""&&(G[qe]=!0),qe};V(Z,P);var se=Z.prototype=P.prototype;se.constructor=Z;var oe=se.toString,De=String(P("test"))=="Symbol(test)",He=/^Symbol\((.*)\)[^)]+$/;K(se,"description",{configurable:!0,get:function(){var Ue=k(this)?this.valueOf():this,qe=oe.call(Ue);if(B(G,Ue))return"";var st=De?qe.slice(7,-1):qe.replace(He,"$1");return st===""?void 0:st}}),H({global:!0,forced:!0},{Symbol:Z})}},"./node_modules/core-js/modules/es.symbol.iterator.js":function(R,u,C){var H=C("./node_modules/core-js/internals/define-well-known-symbol.js");H("iterator")},"./node_modules/core-js/modules/es.symbol.js":function(R,u,C){"use strict";var H=C("./node_modules/core-js/internals/export.js"),w=C("./node_modules/core-js/internals/global.js"),L=C("./node_modules/core-js/internals/get-built-in.js"),B=C("./node_modules/core-js/internals/is-pure.js"),k=C("./node_modules/core-js/internals/descriptors.js"),K=C("./node_modules/core-js/internals/native-symbol.js"),V=C("./node_modules/core-js/internals/fails.js"),P=C("./node_modules/core-js/internals/has.js"),G=C("./node_modules/core-js/internals/is-array.js"),Z=C("./node_modules/core-js/internals/is-object.js"),se=C("./node_modules/core-js/internals/is-symbol.js"),oe=C("./node_modules/core-js/internals/an-object.js"),De=C("./node_modules/core-js/internals/to-object.js"),He=C("./node_modules/core-js/internals/to-indexed-object.js"),Qe=C("./node_modules/core-js/internals/to-property-key.js"),Ue=C("./node_modules/core-js/internals/to-string.js"),qe=C("./node_modules/core-js/internals/create-property-descriptor.js"),st=C("./node_modules/core-js/internals/object-create.js"),Pe=C("./node_modules/core-js/internals/object-keys.js"),pe=C("./node_modules/core-js/internals/object-get-own-property-names.js"),M=C("./node_modules/core-js/internals/object-get-own-property-names-external.js"),ye=C("./node_modules/core-js/internals/object-get-own-property-symbols.js"),Te=C("./node_modules/core-js/internals/object-get-own-property-descriptor.js"),me=C("./node_modules/core-js/internals/object-define-property.js"),xe=C("./node_modules/core-js/internals/object-property-is-enumerable.js"),z=C("./node_modules/core-js/internals/create-non-enumerable-property.js"),j=C("./node_modules/core-js/internals/redefine.js"),ee=C("./node_modules/core-js/internals/shared.js"),_e=C("./node_modules/core-js/internals/shared-key.js"),ut=C("./node_modules/core-js/internals/hidden-keys.js"),Ft=C("./node_modules/core-js/internals/uid.js"),Vt=C("./node_modules/core-js/internals/well-known-symbol.js"),vr=C("./node_modules/core-js/internals/well-known-symbol-wrapped.js"),Yr=C("./node_modules/core-js/internals/define-well-known-symbol.js"),wr=C("./node_modules/core-js/internals/set-to-string-tag.js"),fr=C("./node_modules/core-js/internals/internal-state.js"),dn=C("./node_modules/core-js/internals/array-iteration.js").forEach,ar=_e("hidden"),Vr="Symbol",ur="prototype",ve=Vt("toPrimitive"),At=fr.set,le=fr.getterFor(Vr),_=Object[ur],D=w.Symbol,ae=L("JSON","stringify"),We=Te.f,ge=me.f,Se=M.f,gt=xe.f,xt=ee("symbols"),Et=ee("op-symbols"),nr=ee("string-to-symbol-registry"),xr=ee("symbol-to-string-registry"),Tr=ee("wks"),Bt=w.QObject,Mt=!Bt||!Bt[ur]||!Bt[ur].findChild,Wt=k&&V(function(){return st(ge({},"a",{get:function(){return ge(this,"a",{value:7}).a}})).a!=7})?function(Ot,fe,Ke){var Wr=We(_,fe);Wr&&delete _[fe],ge(Ot,fe,Ke),Wr&&Ot!==_&&ge(_,fe,Wr)}:ge,cr=function(Ot,fe){var Ke=xt[Ot]=st(D[ur]);return At(Ke,{type:Vr,tag:Ot,description:fe}),k||(Ke.description=fe),Ke},qt=function(fe,Ke,Wr){fe===_&&qt(Et,Ke,Wr),oe(fe);var ct=Qe(Ke);return oe(Wr),P(xt,ct)?(Wr.enumerable?(P(fe,ar)&&fe[ar][ct]&&(fe[ar][ct]=!1),Wr=st(Wr,{enumerable:qe(0,!1)})):(P(fe,ar)||ge(fe,ar,qe(1,{})),fe[ar][ct]=!0),Wt(fe,ct,Wr)):ge(fe,ct,Wr)},kt=function(fe,Ke){oe(fe);var Wr=He(Ke),ct=Pe(Wr).concat(Y(Wr));return dn(ct,function(Dt){(!k||$t.call(Wr,Dt))&&qt(fe,Dt,Wr[Dt])}),fe},Pr=function(fe,Ke){return Ke===void 0?st(fe):kt(st(fe),Ke)},$t=function(fe){var Ke=Qe(fe),Wr=gt.call(this,Ke);return this===_&&P(xt,Ke)&&!P(Et,Ke)?!1:Wr||!P(this,Ke)||!P(xt,Ke)||P(this,ar)&&this[ar][Ke]?Wr:!0},yr=function(fe,Ke){var Wr=He(fe),ct=Qe(Ke);if(!(Wr===_&&P(xt,ct)&&!P(Et,ct))){var Dt=We(Wr,ct);return Dt&&P(xt,ct)&&!(P(Wr,ar)&&Wr[ar][ct])&&(Dt.enumerable=!0),Dt}},An=function(fe){var Ke=Se(He(fe)),Wr=[];return dn(Ke,function(ct){!P(xt,ct)&&!P(ut,ct)&&Wr.push(ct)}),Wr},Y=function(fe){var Ke=fe===_,Wr=Se(Ke?Et:He(fe)),ct=[];return dn(Wr,function(Dt){P(xt,Dt)&&(!Ke||P(_,Dt))&&ct.push(xt[Dt])}),ct};if(K||(D=function(){if(this instanceof D)throw TypeError("Symbol is not a constructor");var fe=!arguments.length||arguments[0]===void 0?void 0:Ue(arguments[0]),Ke=Ft(fe),Wr=function(ct){this===_&&Wr.call(Et,ct),P(this,ar)&&P(this[ar],Ke)&&(this[ar][Ke]=!1),Wt(this,Ke,qe(1,ct))};return k&&Mt&&Wt(_,Ke,{configurable:!0,set:Wr}),cr(Ke,fe)},j(D[ur],"toString",function(){return le(this).tag}),j(D,"withoutSetter",function(Ot){return cr(Ft(Ot),Ot)}),xe.f=$t,me.f=qt,Te.f=yr,pe.f=M.f=An,ye.f=Y,vr.f=function(Ot){return cr(Vt(Ot),Ot)},k&&(ge(D[ur],"description",{configurable:!0,get:function(){return le(this).description}}),B||j(_,"propertyIsEnumerable",$t,{unsafe:!0}))),H({global:!0,wrap:!0,forced:!K,sham:!K},{Symbol:D}),dn(Pe(Tr),function(Ot){Yr(Ot)}),H({target:Vr,stat:!0,forced:!K},{for:function(Ot){var fe=Ue(Ot);if(P(nr,fe))return nr[fe];var Ke=D(fe);return nr[fe]=Ke,xr[Ke]=fe,Ke},keyFor:function(fe){if(!se(fe))throw TypeError(fe+" is not a symbol");if(P(xr,fe))return xr[fe]},useSetter:function(){Mt=!0},useSimple:function(){Mt=!1}}),H({target:"Object",stat:!0,forced:!K,sham:!k},{create:Pr,defineProperty:qt,defineProperties:kt,getOwnPropertyDescriptor:yr}),H({target:"Object",stat:!0,forced:!K},{getOwnPropertyNames:An,getOwnPropertySymbols:Y}),H({target:"Object",stat:!0,forced:V(function(){ye.f(1)})},{getOwnPropertySymbols:function(fe){return ye.f(De(fe))}}),ae){var ie=!K||V(function(){var Ot=D();return ae([Ot])!="[null]"||ae({a:Ot})!="{}"||ae(Object(Ot))!="{}"});H({target:"JSON",stat:!0,forced:ie},{stringify:function(fe,Ke,Wr){for(var ct=[fe],Dt=1,Kt;arguments.length>Dt;)ct.push(arguments[Dt++]);if(Kt=Ke,!(!Z(Ke)&&fe===void 0||se(fe)))return G(Ke)||(Ke=function(Oe,Ve){if(typeof Kt=="function"&&(Ve=Kt.call(this,Oe,Ve)),!se(Ve))return Ve}),ct[1]=Ke,ae.apply(null,ct)}})}D[ur][ve]||z(D[ur],ve,D[ur].valueOf),wr(D,Vr),ut[ar]=!0},"./node_modules/core-js/modules/web.dom-collections.for-each.js":function(R,u,C){var H=C("./node_modules/core-js/internals/global.js"),w=C("./node_modules/core-js/internals/dom-iterables.js"),L=C("./node_modules/core-js/internals/array-for-each.js"),B=C("./node_modules/core-js/internals/create-non-enumerable-property.js");for(var k in w){var K=H[k],V=K&&K.prototype;if(V&&V.forEach!==L)try{B(V,"forEach",L)}catch(P){V.forEach=L}}},"./node_modules/core-js/modules/web.dom-collections.iterator.js":function(R,u,C){var H=C("./node_modules/core-js/internals/global.js"),w=C("./node_modules/core-js/internals/dom-iterables.js"),L=C("./node_modules/core-js/modules/es.array.iterator.js"),B=C("./node_modules/core-js/internals/create-non-enumerable-property.js"),k=C("./node_modules/core-js/internals/well-known-symbol.js"),K=k("iterator"),V=k("toStringTag"),P=L.values;for(var G in w){var Z=H[G],se=Z&&Z.prototype;if(se){if(se[K]!==P)try{B(se,K,P)}catch(De){se[K]=P}if(se[V]||B(se,V,G),w[G]){for(var oe in L)if(se[oe]!==L[oe])try{B(se,oe,L[oe])}catch(De){se[oe]=L[oe]}}}}},"./node_modules/es6-promise/dist/es6-promise.js":function(R){(function(u,C){R.exports=C()})(this,function(){"use strict";function u(Bt){var Mt=typeof Bt;return Bt!==null&&(Mt==="object"||Mt==="function")}function C(Bt){return typeof Bt=="function"}var H=void 0;Array.isArray?H=Array.isArray:H=function(Bt){return Object.prototype.toString.call(Bt)==="[object Array]"};var w=H,L=0,B=void 0,k=void 0,K=function(Mt,Wt){Pe[L]=Mt,Pe[L+1]=Wt,L+=2,L===2&&(k?k(pe):ye())};function V(Bt){k=Bt}function P(Bt){K=Bt}var G=typeof window!="undefined"?window:void 0,Z=G||{},se=Z.MutationObserver||Z.WebKitMutationObserver,oe=typeof self=="undefined"&&typeof Ie!="undefined"&&{}.toString.call(Ie)==="[object process]",De=typeof Uint8ClampedArray!="undefined"&&typeof importScripts!="undefined"&&typeof MessageChannel!="undefined";function He(){return function(){return Ie.nextTick(pe)}}function Qe(){return typeof B!="undefined"?function(){B(pe)}:st()}function Ue(){var Bt=0,Mt=new se(pe),Wt=document.createTextNode("");return Mt.observe(Wt,{characterData:!0}),function(){Wt.data=Bt=++Bt%2}}function qe(){var Bt=new MessageChannel;return Bt.port1.onmessage=pe,function(){return Bt.port2.postMessage(0)}}function st(){var Bt=setTimeout;return function(){return Bt(pe,1)}}var Pe=new Array(1e3);function pe(){for(var Bt=0;Bt<L;Bt+=2){var Mt=Pe[Bt],Wt=Pe[Bt+1];Mt(Wt),Pe[Bt]=void 0,Pe[Bt+1]=void 0}L=0}function M(){try{var Bt=Function("return this")().require("vertx");return B=Bt.runOnLoop||Bt.runOnContext,Qe()}catch(Mt){return st()}}var ye=void 0;oe?ye=He():se?ye=Ue():De?ye=qe():G===void 0?ye=M():ye=st();function Te(Bt,Mt){var Wt=this,cr=new this.constructor(z);cr[xe]===void 0&&ae(cr);var qt=Wt._state;if(qt){var kt=arguments[qt-1];K(function(){return At(qt,cr,kt,Wt._result)})}else ur(Wt,cr,Bt,Mt);return cr}function me(Bt){var Mt=this;if(Bt&&typeof Bt=="object"&&Bt.constructor===Mt)return Bt;var Wt=new Mt(z);return fr(Wt,Bt),Wt}var xe=Math.random().toString(36).substring(2);function z(){}var j=void 0,ee=1,_e=2;function ut(){return new TypeError("You cannot resolve a promise with itself")}function Ft(){return new TypeError("A promises callback cannot return that same promise.")}function Vt(Bt,Mt,Wt,cr){try{Bt.call(Mt,Wt,cr)}catch(qt){return qt}}function vr(Bt,Mt,Wt){K(function(cr){var qt=!1,kt=Vt(Wt,Mt,function(Pr){qt||(qt=!0,Mt!==Pr?fr(cr,Pr):ar(cr,Pr))},function(Pr){qt||(qt=!0,Vr(cr,Pr))},"Settle: "+(cr._label||" unknown promise"));!qt&&kt&&(qt=!0,Vr(cr,kt))},Bt)}function Yr(Bt,Mt){Mt._state===ee?ar(Bt,Mt._result):Mt._state===_e?Vr(Bt,Mt._result):ur(Mt,void 0,function(Wt){return fr(Bt,Wt)},function(Wt){return Vr(Bt,Wt)})}function wr(Bt,Mt,Wt){Mt.constructor===Bt.constructor&&Wt===Te&&Mt.constructor.resolve===me?Yr(Bt,Mt):Wt===void 0?ar(Bt,Mt):C(Wt)?vr(Bt,Mt,Wt):ar(Bt,Mt)}function fr(Bt,Mt){if(Bt===Mt)Vr(Bt,ut());else if(u(Mt)){var Wt=void 0;try{Wt=Mt.then}catch(cr){Vr(Bt,cr);return}wr(Bt,Mt,Wt)}else ar(Bt,Mt)}function dn(Bt){Bt._onerror&&Bt._onerror(Bt._result),ve(Bt)}function ar(Bt,Mt){Bt._state===j&&(Bt._result=Mt,Bt._state=ee,Bt._subscribers.length!==0&&K(ve,Bt))}function Vr(Bt,Mt){Bt._state===j&&(Bt._state=_e,Bt._result=Mt,K(dn,Bt))}function ur(Bt,Mt,Wt,cr){var qt=Bt._subscribers,kt=qt.length;Bt._onerror=null,qt[kt]=Mt,qt[kt+ee]=Wt,qt[kt+_e]=cr,kt===0&&Bt._state&&K(ve,Bt)}function ve(Bt){var Mt=Bt._subscribers,Wt=Bt._state;if(Mt.length!==0){for(var cr=void 0,qt=void 0,kt=Bt._result,Pr=0;Pr<Mt.length;Pr+=3)cr=Mt[Pr],qt=Mt[Pr+Wt],cr?At(Wt,cr,qt,kt):qt(kt);Bt._subscribers.length=0}}function At(Bt,Mt,Wt,cr){var qt=C(Wt),kt=void 0,Pr=void 0,$t=!0;if(qt){try{kt=Wt(cr)}catch(yr){$t=!1,Pr=yr}if(Mt===kt){Vr(Mt,Ft());return}}else kt=cr;Mt._state!==j||(qt&&$t?fr(Mt,kt):$t===!1?Vr(Mt,Pr):Bt===ee?ar(Mt,kt):Bt===_e&&Vr(Mt,kt))}function le(Bt,Mt){try{Mt(function(cr){fr(Bt,cr)},function(cr){Vr(Bt,cr)})}catch(Wt){Vr(Bt,Wt)}}var _=0;function D(){return _++}function ae(Bt){Bt[xe]=_++,Bt._state=void 0,Bt._result=void 0,Bt._subscribers=[]}function We(){return new Error("Array Methods must be provided an Array")}var ge=function(){function Bt(Mt,Wt){this._instanceConstructor=Mt,this.promise=new Mt(z),this.promise[xe]||ae(this.promise),w(Wt)?(this.length=Wt.length,this._remaining=Wt.length,this._result=new Array(this.length),this.length===0?ar(this.promise,this._result):(this.length=this.length||0,this._enumerate(Wt),this._remaining===0&&ar(this.promise,this._result))):Vr(this.promise,We())}return Bt.prototype._enumerate=function(Wt){for(var cr=0;this._state===j&&cr<Wt.length;cr++)this._eachEntry(Wt[cr],cr)},Bt.prototype._eachEntry=function(Wt,cr){var qt=this._instanceConstructor,kt=qt.resolve;if(kt===me){var Pr=void 0,$t=void 0,yr=!1;try{Pr=Wt.then}catch(Y){yr=!0,$t=Y}if(Pr===Te&&Wt._state!==j)this._settledAt(Wt._state,cr,Wt._result);else if(typeof Pr!="function")this._remaining--,this._result[cr]=Wt;else if(qt===xr){var An=new qt(z);yr?Vr(An,$t):wr(An,Wt,Pr),this._willSettleAt(An,cr)}else this._willSettleAt(new qt(function(Y){return Y(Wt)}),cr)}else this._willSettleAt(kt(Wt),cr)},Bt.prototype._settledAt=function(Wt,cr,qt){var kt=this.promise;kt._state===j&&(this._remaining--,Wt===_e?Vr(kt,qt):this._result[cr]=qt),this._remaining===0&&ar(kt,this._result)},Bt.prototype._willSettleAt=function(Wt,cr){var qt=this;ur(Wt,void 0,function(kt){return qt._settledAt(ee,cr,kt)},function(kt){return qt._settledAt(_e,cr,kt)})},Bt}();function Se(Bt){return new ge(this,Bt).promise}function gt(Bt){var Mt=this;return w(Bt)?new Mt(function(Wt,cr){for(var qt=Bt.length,kt=0;kt<qt;kt++)Mt.resolve(Bt[kt]).then(Wt,cr)}):new Mt(function(Wt,cr){return cr(new TypeError("You must pass an array to race."))})}function xt(Bt){var Mt=this,Wt=new Mt(z);return Vr(Wt,Bt),Wt}function Et(){throw new TypeError("You must pass a resolver function as the first argument to the promise constructor")}function nr(){throw new TypeError("Failed to construct 'Promise': Please use the 'new' operator, this object constructor cannot be called as a function.")}var xr=function(){function Bt(Mt){this[xe]=D(),this._result=this._state=void 0,this._subscribers=[],z!==Mt&&(typeof Mt!="function"&&Et(),this instanceof Bt?le(this,Mt):nr())}return Bt.prototype.catch=function(Wt){return this.then(null,Wt)},Bt.prototype.finally=function(Wt){var cr=this,qt=cr.constructor;return C(Wt)?cr.then(function(kt){return qt.resolve(Wt()).then(function(){return kt})},function(kt){return qt.resolve(Wt()).then(function(){throw kt})}):cr.then(Wt,Wt)},Bt}();xr.prototype.then=Te,xr.all=Se,xr.race=gt,xr.resolve=me,xr.reject=xt,xr._setScheduler=V,xr._setAsap=P,xr._asap=K;function Tr(){var Bt=void 0;if(typeof je.g!="undefined")Bt=je.g;else if(typeof self!="undefined")Bt=self;else try{Bt=Function("return this")()}catch(cr){throw new Error("polyfill failed because global object is unavailable in this environment")}var Mt=Bt.Promise;if(Mt){var Wt=null;try{Wt=Object.prototype.toString.call(Mt.resolve())}catch(cr){}if(Wt==="[object Promise]"&&!Mt.cast)return}Bt.Promise=xr}return xr.polyfill=Tr,xr.Promise=xr,xr})},html2canvas:function(R){"use strict";R.exports=Fe},jspdf:function(R){"use strict";R.exports=mt}},de={};function I(R){var u=de[R];if(u!==void 0)return u.exports;var C=de[R]={exports:{}};return Me[R].call(C.exports,C,C.exports,I),C.exports}(function(){I.n=function(R){var u=R&&R.__esModule?function(){return R.default}:function(){return R};return I.d(u,{a:u}),u}})(),function(){I.d=function(R,u){for(var C in u)I.o(u,C)&&!I.o(R,C)&&Object.defineProperty(R,C,{enumerable:!0,get:u[C]})}}(),function(){I.o=function(R,u){return Object.prototype.hasOwnProperty.call(R,u)}}(),function(){I.r=function(R){typeof Symbol!="undefined"&&Symbol.toStringTag&&Object.defineProperty(R,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(R,"__esModule",{value:!0})}}();var Be={};return function(){"use strict";I.r(Be);var R=I("./src/worker.js"),u=I("./src/plugin/jspdf-plugin.js"),C=I("./src/plugin/pagebreaks.js"),H=I("./src/plugin/hyperlinks.js"),w=function L(B,k){var K=new L.Worker(k);return B?K.from(B).save():K};w.Worker=R.default,Be.default=w}(),Be=Be.default,Be}()})},67467:function(wn,Sr){Sr.read=function(je,Ie,mt,Fe,Me){var de,I,Be=Me*8-Fe-1,R=(1<<Be)-1,u=R>>1,C=-7,H=mt?Me-1:0,w=mt?-1:1,L=je[Ie+H];for(H+=w,de=L&(1<<-C)-1,L>>=-C,C+=Be;C>0;de=de*256+je[Ie+H],H+=w,C-=8);for(I=de&(1<<-C)-1,de>>=-C,C+=Fe;C>0;I=I*256+je[Ie+H],H+=w,C-=8);if(de===0)de=1-u;else{if(de===R)return I?NaN:(L?-1:1)*(1/0);I=I+Math.pow(2,Fe),de=de-u}return(L?-1:1)*I*Math.pow(2,de-Fe)},Sr.write=function(je,Ie,mt,Fe,Me,de){var I,Be,R,u=de*8-Me-1,C=(1<<u)-1,H=C>>1,w=Me===23?Math.pow(2,-24)-Math.pow(2,-77):0,L=Fe?0:de-1,B=Fe?1:-1,k=Ie<0||Ie===0&&1/Ie<0?1:0;for(Ie=Math.abs(Ie),isNaN(Ie)||Ie===1/0?(Be=isNaN(Ie)?1:0,I=C):(I=Math.floor(Math.log(Ie)/Math.LN2),Ie*(R=Math.pow(2,-I))<1&&(I--,R*=2),I+H>=1?Ie+=w/R:Ie+=w*Math.pow(2,1-H),Ie*R>=2&&(I++,R/=2),I+H>=C?(Be=0,I=C):I+H>=1?(Be=(Ie*R-1)*Math.pow(2,Me),I=I+H):(Be=Ie*Math.pow(2,H-1)*Math.pow(2,Me),I=0));Me>=8;je[mt+L]=Be&255,L+=B,Be/=256,Me-=8);for(I=I<<Me|Be,u+=Me;u>0;je[mt+L]=I&255,L+=B,I/=256,u-=8);je[mt+L-B]|=k*128}},53184:function(wn,Sr,je){"use strict";var Ie,mt;function Fe(Me,de,I){var Be=function(R,u){return Me.js_beautify(R,u)};return Be.js=Me.js_beautify,Be.css=de.css_beautify,Be.html=I.html_beautify,Be.js_beautify=Me.js_beautify,Be.css_beautify=de.css_beautify,Be.html_beautify=I.html_beautify,Be}Ie=[je(58553),je(87804),je(40998)],mt=function(Me,de,I){return Fe(Me,de,I)}.apply(Sr,Ie),mt!==void 0&&(wn.exports=mt)},87804:function(wn,Sr){var je,Ie;(function(){var mt;(function(){"use strict";var Me=[,,function(R){function u(w){this.__parent=w,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=[]}u.prototype.clone_empty=function(){var w=new u(this.__parent);return w.set_indent(this.__indent_count,this.__alignment_count),w},u.prototype.item=function(w){return w<0?this.__items[this.__items.length+w]:this.__items[w]},u.prototype.has_match=function(w){for(var L=this.__items.length-1;L>=0;L--)if(this.__items[L].match(w))return!0;return!1},u.prototype.set_indent=function(w,L){this.is_empty()&&(this.__indent_count=w||0,this.__alignment_count=L||0,this.__character_count=this.__parent.get_indent_size(this.__indent_count,this.__alignment_count))},u.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)},u.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},u.prototype._allow_wrap=function(){if(this._should_wrap()){this.__parent.add_new_line();var w=this.__parent.current_line;return w.set_indent(this.__wrap_point_indent_count,this.__wrap_point_alignment_count),w.__items=this.__items.slice(this.__wrap_point_index),this.__items=this.__items.slice(0,this.__wrap_point_index),w.__character_count+=this.__character_count-this.__wrap_point_character_count,this.__character_count=this.__wrap_point_character_count,w.__items[0]===" "&&(w.__items.splice(0,1),w.__character_count-=1),!0}return!1},u.prototype.is_empty=function(){return this.__items.length===0},u.prototype.last=function(){return this.is_empty()?null:this.__items[this.__items.length-1]},u.prototype.push=function(w){this.__items.push(w);var L=w.lastIndexOf(`
|
|
|
`);L!==-1?this.__character_count=w.length-L:this.__character_count+=w.length},u.prototype.pop=function(){var w=null;return this.is_empty()||(w=this.__items.pop(),this.__character_count-=w.length),w},u.prototype._remove_indent=function(){this.__indent_count>0&&(this.__indent_count-=1,this.__character_count-=this.__parent.indent_size)},u.prototype._remove_wrap_indent=function(){this.__wrap_point_indent_count>0&&(this.__wrap_point_indent_count-=1)},u.prototype.trim=function(){for(;this.last()===" ";)this.__items.pop(),this.__character_count-=1},u.prototype.toString=function(){var w="";return this.is_empty()?this.__parent.indent_empty_lines&&(w=this.__parent.get_indent_string(this.__indent_count)):(w=this.__parent.get_indent_string(this.__indent_count,this.__alignment_count),w+=this.__items.join("")),w};function C(w,L){this.__cache=[""],this.__indent_size=w.indent_size,this.__indent_string=w.indent_char,w.indent_with_tabs||(this.__indent_string=new Array(w.indent_size+1).join(w.indent_char)),L=L||"",w.indent_level>0&&(L=new Array(w.indent_level+1).join(this.__indent_string)),this.__base_string=L,this.__base_string_length=L.length}C.prototype.get_indent_size=function(w,L){var B=this.__base_string_length;return L=L||0,w<0&&(B=0),B+=w*this.__indent_size,B+=L,B},C.prototype.get_indent_string=function(w,L){var B=this.__base_string;return L=L||0,w<0&&(w=0,B=""),L+=w*this.__indent_size,this.__ensure_cache(L),B+=this.__cache[L],B},C.prototype.__ensure_cache=function(w){for(;w>=this.__cache.length;)this.__add_column()},C.prototype.__add_column=function(){var w=this.__cache.length,L=0,B="";this.__indent_size&&w>=this.__indent_size&&(L=Math.floor(w/this.__indent_size),w-=L*this.__indent_size,B=new Array(L+1).join(this.__indent_string)),w&&(B+=new Array(w+1).join(" ")),this.__cache.push(B)};function H(w,L){this.__indent_cache=new C(w,L),this.raw=!1,this._end_with_newline=w.end_with_newline,this.indent_size=w.indent_size,this.wrap_line_length=w.wrap_line_length,this.indent_empty_lines=w.indent_empty_lines,this.__lines=[],this.previous_line=null,this.current_line=null,this.next_line=new u(this),this.space_before_token=!1,this.non_breaking_space=!1,this.previous_token_wrapped=!1,this.__add_outputline()}H.prototype.__add_outputline=function(){this.previous_line=this.current_line,this.current_line=this.next_line.clone_empty(),this.__lines.push(this.current_line)},H.prototype.get_line_number=function(){return this.__lines.length},H.prototype.get_indent_string=function(w,L){return this.__indent_cache.get_indent_string(w,L)},H.prototype.get_indent_size=function(w,L){return this.__indent_cache.get_indent_size(w,L)},H.prototype.is_empty=function(){return!this.previous_line&&this.current_line.is_empty()},H.prototype.add_new_line=function(w){return this.is_empty()||!w&&this.just_added_newline()?!1:(this.raw||this.__add_outputline(),!0)},H.prototype.get_code=function(w){this.trim(!0);var L=this.current_line.pop();L&&(L[L.length-1]===`
|
|
|
`&&(L=L.replace(/\n+$/g,"")),this.current_line.push(L)),this._end_with_newline&&this.__add_outputline();var B=this.__lines.join(`
|
|
|
`);return w!==`
|
|
|
`&&(B=B.replace(/[\n]/g,w)),B},H.prototype.set_wrap_point=function(){this.current_line._set_wrap_point()},H.prototype.set_indent=function(w,L){return w=w||0,L=L||0,this.next_line.set_indent(w,L),this.__lines.length>1?(this.current_line.set_indent(w,L),!0):(this.current_line.set_indent(),!1)},H.prototype.add_raw_token=function(w){for(var L=0;L<w.newlines;L++)this.__add_outputline();this.current_line.set_indent(-1),this.current_line.push(w.whitespace_before),this.current_line.push(w.text),this.space_before_token=!1,this.non_breaking_space=!1,this.previous_token_wrapped=!1},H.prototype.add_token=function(w){this.__add_space_before_token(),this.current_line.push(w),this.space_before_token=!1,this.non_breaking_space=!1,this.previous_token_wrapped=this.current_line._allow_wrap()},H.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(" "))},H.prototype.remove_indent=function(w){for(var L=this.__lines.length;w<L;)this.__lines[w]._remove_indent(),w++;this.current_line._remove_wrap_indent()},H.prototype.trim=function(w){for(w=w===void 0?!1:w,this.current_line.trim();w&&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},H.prototype.just_added_newline=function(){return this.current_line.is_empty()},H.prototype.just_added_blankline=function(){return this.is_empty()||this.current_line.is_empty()&&this.previous_line.is_empty()},H.prototype.ensure_empty_line_above=function(w,L){for(var B=this.__lines.length-2;B>=0;){var k=this.__lines[B];if(k.is_empty())break;if(k.item(0).indexOf(w)!==0&&k.item(-1)!==L){this.__lines.splice(B+1,0,new u(this)),this.previous_line=this.__lines[this.__lines.length-2];break}B--}},R.exports.Output=H},,,,function(R){function u(w,L){this.raw_options=C(w,L),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"])}u.prototype._get_array=function(w,L){var B=this.raw_options[w],k=L||[];return typeof B=="object"?B!==null&&typeof B.concat=="function"&&(k=B.concat()):typeof B=="string"&&(k=B.split(/[^a-zA-Z0-9_\/\-]+/)),k},u.prototype._get_boolean=function(w,L){var B=this.raw_options[w],k=B===void 0?!!L:!!B;return k},u.prototype._get_characters=function(w,L){var B=this.raw_options[w],k=L||"";return typeof B=="string"&&(k=B.replace(/\\r/,"\r").replace(/\\n/,`
|
|
|
`).replace(/\\t/," ")),k},u.prototype._get_number=function(w,L){var B=this.raw_options[w];L=parseInt(L,10),isNaN(L)&&(L=0);var k=parseInt(B,10);return isNaN(k)&&(k=L),k},u.prototype._get_selection=function(w,L,B){var k=this._get_selection_list(w,L,B);if(k.length!==1)throw new Error("Invalid Option Value: The option '"+w+`' can only be one of the following values:
|
|
|
`+L+`
|
|
|
You passed in: '`+this.raw_options[w]+"'");return k[0]},u.prototype._get_selection_list=function(w,L,B){if(!L||L.length===0)throw new Error("Selection list cannot be empty.");if(B=B||[L[0]],!this._is_valid_selection(B,L))throw new Error("Invalid Default Value!");var k=this._get_array(w,B);if(!this._is_valid_selection(k,L))throw new Error("Invalid Option Value: The option '"+w+`' can contain only the following values:
|
|
|
`+L+`
|
|
|
You passed in: '`+this.raw_options[w]+"'");return k},u.prototype._is_valid_selection=function(w,L){return w.length&&L.length&&!w.some(function(B){return L.indexOf(B)===-1})};function C(w,L){var B={};w=H(w);var k;for(k in w)k!==L&&(B[k]=w[k]);if(L&&w[L])for(k in w[L])B[k]=w[L][k];return B}function H(w){var L={},B;for(B in w){var k=B.replace(/-/g,"_");L[k]=w[B]}return L}R.exports.Options=u,R.exports.normalizeOpts=H,R.exports.mergeOpts=C},,function(R){var u=RegExp.prototype.hasOwnProperty("sticky");function C(H){this.__input=H||"",this.__input_length=this.__input.length,this.__position=0}C.prototype.restart=function(){this.__position=0},C.prototype.back=function(){this.__position>0&&(this.__position-=1)},C.prototype.hasNext=function(){return this.__position<this.__input_length},C.prototype.next=function(){var H=null;return this.hasNext()&&(H=this.__input.charAt(this.__position),this.__position+=1),H},C.prototype.peek=function(H){var w=null;return H=H||0,H+=this.__position,H>=0&&H<this.__input_length&&(w=this.__input.charAt(H)),w},C.prototype.__match=function(H,w){H.lastIndex=w;var L=H.exec(this.__input);return L&&!(u&&H.sticky)&&L.index!==w&&(L=null),L},C.prototype.test=function(H,w){return w=w||0,w+=this.__position,w>=0&&w<this.__input_length?!!this.__match(H,w):!1},C.prototype.testChar=function(H,w){var L=this.peek(w);return H.lastIndex=0,L!==null&&H.test(L)},C.prototype.match=function(H){var w=this.__match(H,this.__position);return w?this.__position+=w[0].length:w=null,w},C.prototype.read=function(H,w,L){var B="",k;return H&&(k=this.match(H),k&&(B+=k[0])),w&&(k||!H)&&(B+=this.readUntil(w,L)),B},C.prototype.readUntil=function(H,w){var L="",B=this.__position;H.lastIndex=this.__position;var k=H.exec(this.__input);return k?(B=k.index,w&&(B+=k[0].length)):B=this.__input_length,L=this.__input.substring(this.__position,B),this.__position=B,L},C.prototype.readUntilAfter=function(H){return this.readUntil(H,!0)},C.prototype.get_regexp=function(H,w){var L=null,B="g";return w&&u&&(B="y"),typeof H=="string"&&H!==""?L=new RegExp(H,B):H&&(L=new RegExp(H.source,B)),L},C.prototype.get_literal_regexp=function(H){return RegExp(H.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&"))},C.prototype.peekUntilAfter=function(H){var w=this.__position,L=this.readUntilAfter(H);return this.__position=w,L},C.prototype.lookBack=function(H){var w=this.__position-1;return w>=H.length&&this.__input.substring(w-H.length,w).toLowerCase()===H},R.exports.InputScanner=C},,,,,function(R){function u(C,H){C=typeof C=="string"?C:C.source,H=typeof H=="string"?H:H.source,this.__directives_block_pattern=new RegExp(C+/ beautify( \w+[:]\w+)+ /.source+H,"g"),this.__directive_pattern=/ (\w+)[:](\w+)/g,this.__directives_end_ignore_pattern=new RegExp(C+/\sbeautify\signore:end\s/.source+H,"g")}u.prototype.get_directives=function(C){if(!C.match(this.__directives_block_pattern))return null;var H={};this.__directive_pattern.lastIndex=0;for(var w=this.__directive_pattern.exec(C);w;)H[w[1]]=w[2],w=this.__directive_pattern.exec(C);return H},u.prototype.readIgnored=function(C){return C.readUntilAfter(this.__directives_end_ignore_pattern)},R.exports.Directives=u},,function(R,u,C){var H=C(16).Beautifier,w=C(17).Options;function L(B,k){var K=new H(B,k);return K.beautify()}R.exports=L,R.exports.defaultOptions=function(){return new w}},function(R,u,C){var H=C(17).Options,w=C(2).Output,L=C(8).InputScanner,B=C(13).Directives,k=new B(/\/\*/,/\*\//),K=/\r\n|[\r\n]/,V=/\r\n|[\r\n]/g,P=/\s/,G=/(?:\s|\n)+/g,Z=/\/\*(?:[\s\S]*?)((?:\*\/)|$)/g,se=/\/\/(?:[^\n\r\u2028\u2029]*)/g;function oe(De,He){this._source_text=De||"",this._options=new H(He),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"]}oe.prototype.eatString=function(De){var He="";for(this._ch=this._input.next();this._ch;){if(He+=this._ch,this._ch==="\\")He+=this._input.next();else if(De.indexOf(this._ch)!==-1||this._ch===`
|
|
|
`)break;this._ch=this._input.next()}return He},oe.prototype.eatWhitespace=function(De){for(var He=P.test(this._input.peek()),Qe=0;P.test(this._input.peek());)this._ch=this._input.next(),De&&this._ch===`
|
|
|
`&&(Qe===0||Qe<this._options.max_preserve_newlines)&&(Qe++,this._output.add_new_line(!0));return He},oe.prototype.foundNestedPseudoClass=function(){for(var De=0,He=1,Qe=this._input.peek(He);Qe;){if(Qe==="{")return!0;if(Qe==="(")De+=1;else if(Qe===")"){if(De===0)return!1;De-=1}else if(Qe===";"||Qe==="}")return!1;He++,Qe=this._input.peek(He)}return!1},oe.prototype.print_string=function(De){this._output.set_indent(this._indentLevel),this._output.non_breaking_space=!0,this._output.add_token(De)},oe.prototype.preserveSingleSpace=function(De){De&&(this._output.space_before_token=!0)},oe.prototype.indent=function(){this._indentLevel++},oe.prototype.outdent=function(){this._indentLevel>0&&this._indentLevel--},oe.prototype.beautify=function(){if(this._options.disabled)return this._source_text;var De=this._source_text,He=this._options.eol;He==="auto"&&(He=`
|
|
|
`,De&&K.test(De||"")&&(He=De.match(K)[0])),De=De.replace(V,`
|
|
|
`);var Qe=De.match(/^[\t ]*/)[0];this._output=new w(this._options,Qe),this._input=new L(De),this._indentLevel=0,this._nestedLevel=0,this._ch=null;for(var Ue=0,qe=!1,st=!1,Pe=!1,pe=!1,M=!1,ye=this._ch,Te=!1,me,xe,z;me=this._input.read(G),xe=me!=="",z=ye,this._ch=this._input.next(),this._ch==="\\"&&this._input.hasNext()&&(this._ch+=this._input.next()),ye=this._ch,this._ch;)if(this._ch==="/"&&this._input.peek()==="*"){this._output.add_new_line(),this._input.back();var j=this._input.read(Z),ee=k.get_directives(j);ee&&ee.ignore==="start"&&(j+=k.readIgnored(this._input)),this.print_string(j),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(se)),this.eatWhitespace(!0);else if(this._ch==="$"){this.preserveSingleSpace(xe),this.print_string(this._ch);var _e=this._input.peekUntilAfter(/[: ,;{}()[\]\/='"]/g);_e.match(/[ :]$/)&&(_e=this.eatString(": ").replace(/\s+$/,""),this.print_string(_e),this._output.space_before_token=!0),Ue===0&&_e.indexOf(":")!==-1&&(st=!0,this.indent())}else if(this._ch==="@")if(this.preserveSingleSpace(xe),this._input.peek()==="{")this.print_string(this._ch+this.eatString("}"));else{this.print_string(this._ch);var ut=this._input.peekUntilAfter(/[: ,;{}()[\]\/='"]/g);ut.match(/[ :]$/)&&(ut=this.eatString(": ").replace(/\s+$/,""),this.print_string(ut),this._output.space_before_token=!0),Ue===0&&ut.indexOf(":")!==-1?(st=!0,this.indent()):ut in this.NESTED_AT_RULE?(this._nestedLevel+=1,ut in this.CONDITIONAL_GROUP_RULE&&(Pe=!0)):Ue===0&&!st&&(pe=!0)}else if(this._ch==="#"&&this._input.peek()==="{")this.preserveSingleSpace(xe),this.print_string(this._ch+this.eatString("}"));else if(this._ch==="{")st&&(st=!1,this.outdent()),pe=!1,Pe?(Pe=!1,qe=this._indentLevel>=this._nestedLevel):qe=this._indentLevel>=this._nestedLevel-1,this._options.newline_between_rules&&qe&&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)):(z==="("?this._output.space_before_token=!1:z!==","&&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(),z==="{"&&this._output.trim(!0),st&&(this.outdent(),st=!1),this.print_string(this._ch),qe=!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 Ft=0;Ft<this.NON_SEMICOLON_NEWLINE_PROPERTY.length;Ft++)if(this._input.lookBack(this.NON_SEMICOLON_NEWLINE_PROPERTY[Ft])){Te=!0;break}(qe||Pe)&&!(this._input.lookBack("&")||this.foundNestedPseudoClass())&&!this._input.lookBack("(")&&!pe&&Ue===0?(this.print_string(":"),st||(st=!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 Vt=z==='"'||z==="'";this.preserveSingleSpace(Vt||xe),this.print_string(this._ch+this.eatString(this._ch)),this.eatWhitespace(!0)}else if(this._ch===";")Te=!1,Ue===0?(st&&(this.outdent(),st=!1),pe=!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(),Ue++,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(")")),Ue&&(Ue--,this.outdent()));else{var vr=!1;this._input.lookBack("with")&&(vr=!0),this.preserveSingleSpace(xe||vr),this.print_string(this._ch),st&&z==="$"&&this._options.selector_separator_newline?(this._output.add_new_line(),M=!0):(this.eatWhitespace(),Ue++,this.indent())}else if(this._ch===")")Ue&&(Ue--,this.outdent()),M&&this._input.peek()===";"&&this._options.selector_separator_newline&&(M=!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&&(!st||M)&&Ue===0&&!pe?this._output.add_new_line():this._output.space_before_token=!0;else if((this._ch===">"||this._ch==="+"||this._ch==="~")&&!st&&Ue===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&&P.test(this._ch)&&(this._ch=""));else if(this._ch==="]")this.print_string(this._ch);else if(this._ch==="[")this.preserveSingleSpace(xe),this.print_string(this._ch);else if(this._ch==="=")this.eatWhitespace(),this.print_string("="),P.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 Yr=z==='"'||z==="'";this.preserveSingleSpace(Yr||xe),this.print_string(this._ch),!this._output.just_added_newline()&&this._input.peek()===`
|
|
|
`&&Te&&this._output.add_new_line()}var wr=this._output.get_code(He);return wr},R.exports.Beautifier=oe},function(R,u,C){var H=C(6).Options;function w(L){H.call(this,L,"css"),this.selector_separator_newline=this._get_boolean("selector_separator_newline",!0),this.newline_between_rules=this._get_boolean("newline_between_rules",!0);var B=this._get_boolean("space_around_selector_separator");this.space_around_combinator=this._get_boolean("space_around_combinator")||B;var k=this._get_selection_list("brace_style",["collapse","expand","end-expand","none","preserve-inline"]);this.brace_style="collapse";for(var K=0;K<k.length;K++)k[K]!=="expand"?this.brace_style="collapse":this.brace_style=k[K]}w.prototype=new H,R.exports.Options=w}],de={};function I(R){var u=de[R];if(u!==void 0)return u.exports;var C=de[R]={exports:{}};return Me[R](C,C.exports,I),C.exports}var Be=I(15);mt=Be})();var Fe=mt;je=[],Ie=function(){return{css_beautify:Fe}}.apply(Sr,je),Ie!==void 0&&(wn.exports=Ie)})()},40998:function(wn,Sr,je){var Ie,mt;(function(){var Fe;(function(){"use strict";var Be=[,,function(H){function w(k){this.__parent=k,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=[]}w.prototype.clone_empty=function(){var k=new w(this.__parent);return k.set_indent(this.__indent_count,this.__alignment_count),k},w.prototype.item=function(k){return k<0?this.__items[this.__items.length+k]:this.__items[k]},w.prototype.has_match=function(k){for(var K=this.__items.length-1;K>=0;K--)if(this.__items[K].match(k))return!0;return!1},w.prototype.set_indent=function(k,K){this.is_empty()&&(this.__indent_count=k||0,this.__alignment_count=K||0,this.__character_count=this.__parent.get_indent_size(this.__indent_count,this.__alignment_count))},w.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)},w.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},w.prototype._allow_wrap=function(){if(this._should_wrap()){this.__parent.add_new_line();var k=this.__parent.current_line;return k.set_indent(this.__wrap_point_indent_count,this.__wrap_point_alignment_count),k.__items=this.__items.slice(this.__wrap_point_index),this.__items=this.__items.slice(0,this.__wrap_point_index),k.__character_count+=this.__character_count-this.__wrap_point_character_count,this.__character_count=this.__wrap_point_character_count,k.__items[0]===" "&&(k.__items.splice(0,1),k.__character_count-=1),!0}return!1},w.prototype.is_empty=function(){return this.__items.length===0},w.prototype.last=function(){return this.is_empty()?null:this.__items[this.__items.length-1]},w.prototype.push=function(k){this.__items.push(k);var K=k.lastIndexOf(`
|
|
|
`);K!==-1?this.__character_count=k.length-K:this.__character_count+=k.length},w.prototype.pop=function(){var k=null;return this.is_empty()||(k=this.__items.pop(),this.__character_count-=k.length),k},w.prototype._remove_indent=function(){this.__indent_count>0&&(this.__indent_count-=1,this.__character_count-=this.__parent.indent_size)},w.prototype._remove_wrap_indent=function(){this.__wrap_point_indent_count>0&&(this.__wrap_point_indent_count-=1)},w.prototype.trim=function(){for(;this.last()===" ";)this.__items.pop(),this.__character_count-=1},w.prototype.toString=function(){var k="";return this.is_empty()?this.__parent.indent_empty_lines&&(k=this.__parent.get_indent_string(this.__indent_count)):(k=this.__parent.get_indent_string(this.__indent_count,this.__alignment_count),k+=this.__items.join("")),k};function L(k,K){this.__cache=[""],this.__indent_size=k.indent_size,this.__indent_string=k.indent_char,k.indent_with_tabs||(this.__indent_string=new Array(k.indent_size+1).join(k.indent_char)),K=K||"",k.indent_level>0&&(K=new Array(k.indent_level+1).join(this.__indent_string)),this.__base_string=K,this.__base_string_length=K.length}L.prototype.get_indent_size=function(k,K){var V=this.__base_string_length;return K=K||0,k<0&&(V=0),V+=k*this.__indent_size,V+=K,V},L.prototype.get_indent_string=function(k,K){var V=this.__base_string;return K=K||0,k<0&&(k=0,V=""),K+=k*this.__indent_size,this.__ensure_cache(K),V+=this.__cache[K],V},L.prototype.__ensure_cache=function(k){for(;k>=this.__cache.length;)this.__add_column()},L.prototype.__add_column=function(){var k=this.__cache.length,K=0,V="";this.__indent_size&&k>=this.__indent_size&&(K=Math.floor(k/this.__indent_size),k-=K*this.__indent_size,V=new Array(K+1).join(this.__indent_string)),k&&(V+=new Array(k+1).join(" ")),this.__cache.push(V)};function B(k,K){this.__indent_cache=new L(k,K),this.raw=!1,this._end_with_newline=k.end_with_newline,this.indent_size=k.indent_size,this.wrap_line_length=k.wrap_line_length,this.indent_empty_lines=k.indent_empty_lines,this.__lines=[],this.previous_line=null,this.current_line=null,this.next_line=new w(this),this.space_before_token=!1,this.non_breaking_space=!1,this.previous_token_wrapped=!1,this.__add_outputline()}B.prototype.__add_outputline=function(){this.previous_line=this.current_line,this.current_line=this.next_line.clone_empty(),this.__lines.push(this.current_line)},B.prototype.get_line_number=function(){return this.__lines.length},B.prototype.get_indent_string=function(k,K){return this.__indent_cache.get_indent_string(k,K)},B.prototype.get_indent_size=function(k,K){return this.__indent_cache.get_indent_size(k,K)},B.prototype.is_empty=function(){return!this.previous_line&&this.current_line.is_empty()},B.prototype.add_new_line=function(k){return this.is_empty()||!k&&this.just_added_newline()?!1:(this.raw||this.__add_outputline(),!0)},B.prototype.get_code=function(k){this.trim(!0);var K=this.current_line.pop();K&&(K[K.length-1]===`
|
|
|
`&&(K=K.replace(/\n+$/g,"")),this.current_line.push(K)),this._end_with_newline&&this.__add_outputline();var V=this.__lines.join(`
|
|
|
`);return k!==`
|
|
|
`&&(V=V.replace(/[\n]/g,k)),V},B.prototype.set_wrap_point=function(){this.current_line._set_wrap_point()},B.prototype.set_indent=function(k,K){return k=k||0,K=K||0,this.next_line.set_indent(k,K),this.__lines.length>1?(this.current_line.set_indent(k,K),!0):(this.current_line.set_indent(),!1)},B.prototype.add_raw_token=function(k){for(var K=0;K<k.newlines;K++)this.__add_outputline();this.current_line.set_indent(-1),this.current_line.push(k.whitespace_before),this.current_line.push(k.text),this.space_before_token=!1,this.non_breaking_space=!1,this.previous_token_wrapped=!1},B.prototype.add_token=function(k){this.__add_space_before_token(),this.current_line.push(k),this.space_before_token=!1,this.non_breaking_space=!1,this.previous_token_wrapped=this.current_line._allow_wrap()},B.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(" "))},B.prototype.remove_indent=function(k){for(var K=this.__lines.length;k<K;)this.__lines[k]._remove_indent(),k++;this.current_line._remove_wrap_indent()},B.prototype.trim=function(k){for(k=k===void 0?!1:k,this.current_line.trim();k&&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},B.prototype.just_added_newline=function(){return this.current_line.is_empty()},B.prototype.just_added_blankline=function(){return this.is_empty()||this.current_line.is_empty()&&this.previous_line.is_empty()},B.prototype.ensure_empty_line_above=function(k,K){for(var V=this.__lines.length-2;V>=0;){var P=this.__lines[V];if(P.is_empty())break;if(P.item(0).indexOf(k)!==0&&P.item(-1)!==K){this.__lines.splice(V+1,0,new w(this)),this.previous_line=this.__lines[this.__lines.length-2];break}V--}},H.exports.Output=B},function(H){function w(L,B,k,K){this.type=L,this.text=B,this.comments_before=null,this.newlines=k||0,this.whitespace_before=K||"",this.parent=null,this.next=null,this.previous=null,this.opened=null,this.closed=null,this.directives=null}H.exports.Token=w},,,function(H){function w(k,K){this.raw_options=L(k,K),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"])}w.prototype._get_array=function(k,K){var V=this.raw_options[k],P=K||[];return typeof V=="object"?V!==null&&typeof V.concat=="function"&&(P=V.concat()):typeof V=="string"&&(P=V.split(/[^a-zA-Z0-9_\/\-]+/)),P},w.prototype._get_boolean=function(k,K){var V=this.raw_options[k],P=V===void 0?!!K:!!V;return P},w.prototype._get_characters=function(k,K){var V=this.raw_options[k],P=K||"";return typeof V=="string"&&(P=V.replace(/\\r/,"\r").replace(/\\n/,`
|
|
|
`).replace(/\\t/," ")),P},w.prototype._get_number=function(k,K){var V=this.raw_options[k];K=parseInt(K,10),isNaN(K)&&(K=0);var P=parseInt(V,10);return isNaN(P)&&(P=K),P},w.prototype._get_selection=function(k,K,V){var P=this._get_selection_list(k,K,V);if(P.length!==1)throw new Error("Invalid Option Value: The option '"+k+`' can only be one of the following values:
|
|
|
`+K+`
|
|
|
You passed in: '`+this.raw_options[k]+"'");return P[0]},w.prototype._get_selection_list=function(k,K,V){if(!K||K.length===0)throw new Error("Selection list cannot be empty.");if(V=V||[K[0]],!this._is_valid_selection(V,K))throw new Error("Invalid Default Value!");var P=this._get_array(k,V);if(!this._is_valid_selection(P,K))throw new Error("Invalid Option Value: The option '"+k+`' can contain only the following values:
|
|
|
`+K+`
|
|
|
You passed in: '`+this.raw_options[k]+"'");return P},w.prototype._is_valid_selection=function(k,K){return k.length&&K.length&&!k.some(function(V){return K.indexOf(V)===-1})};function L(k,K){var V={};k=B(k);var P;for(P in k)P!==K&&(V[P]=k[P]);if(K&&k[K])for(P in k[K])V[P]=k[K][P];return V}function B(k){var K={},V;for(V in k){var P=V.replace(/-/g,"_");K[P]=k[V]}return K}H.exports.Options=w,H.exports.normalizeOpts=B,H.exports.mergeOpts=L},,function(H){var w=RegExp.prototype.hasOwnProperty("sticky");function L(B){this.__input=B||"",this.__input_length=this.__input.length,this.__position=0}L.prototype.restart=function(){this.__position=0},L.prototype.back=function(){this.__position>0&&(this.__position-=1)},L.prototype.hasNext=function(){return this.__position<this.__input_length},L.prototype.next=function(){var B=null;return this.hasNext()&&(B=this.__input.charAt(this.__position),this.__position+=1),B},L.prototype.peek=function(B){var k=null;return B=B||0,B+=this.__position,B>=0&&B<this.__input_length&&(k=this.__input.charAt(B)),k},L.prototype.__match=function(B,k){B.lastIndex=k;var K=B.exec(this.__input);return K&&!(w&&B.sticky)&&K.index!==k&&(K=null),K},L.prototype.test=function(B,k){return k=k||0,k+=this.__position,k>=0&&k<this.__input_length?!!this.__match(B,k):!1},L.prototype.testChar=function(B,k){var K=this.peek(k);return B.lastIndex=0,K!==null&&B.test(K)},L.prototype.match=function(B){var k=this.__match(B,this.__position);return k?this.__position+=k[0].length:k=null,k},L.prototype.read=function(B,k,K){var V="",P;return B&&(P=this.match(B),P&&(V+=P[0])),k&&(P||!B)&&(V+=this.readUntil(k,K)),V},L.prototype.readUntil=function(B,k){var K="",V=this.__position;B.lastIndex=this.__position;var P=B.exec(this.__input);return P?(V=P.index,k&&(V+=P[0].length)):V=this.__input_length,K=this.__input.substring(this.__position,V),this.__position=V,K},L.prototype.readUntilAfter=function(B){return this.readUntil(B,!0)},L.prototype.get_regexp=function(B,k){var K=null,V="g";return k&&w&&(V="y"),typeof B=="string"&&B!==""?K=new RegExp(B,V):B&&(K=new RegExp(B.source,V)),K},L.prototype.get_literal_regexp=function(B){return RegExp(B.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&"))},L.prototype.peekUntilAfter=function(B){var k=this.__position,K=this.readUntilAfter(B);return this.__position=k,K},L.prototype.lookBack=function(B){var k=this.__position-1;return k>=B.length&&this.__input.substring(k-B.length,k).toLowerCase()===B},H.exports.InputScanner=L},function(H,w,L){var B=L(8).InputScanner,k=L(3).Token,K=L(10).TokenStream,V=L(11).WhitespacePattern,P={START:"TK_START",RAW:"TK_RAW",EOF:"TK_EOF"},G=function(Z,se){this._input=new B(Z),this._options=se||{},this.__tokens=null,this._patterns={},this._patterns.whitespace=new V(this._input)};G.prototype.tokenize=function(){this._input.restart(),this.__tokens=new K,this._reset();for(var Z,se=new k(P.START,""),oe=null,De=[],He=new K;se.type!==P.EOF;){for(Z=this._get_next_token(se,oe);this._is_comment(Z);)He.add(Z),Z=this._get_next_token(se,oe);He.isEmpty()||(Z.comments_before=He,He=new K),Z.parent=oe,this._is_opening(Z)?(De.push(oe),oe=Z):oe&&this._is_closing(Z,oe)&&(Z.opened=oe,oe.closed=Z,oe=De.pop(),Z.parent=oe),Z.previous=se,se.next=Z,this.__tokens.add(Z),se=Z}return this.__tokens},G.prototype._is_first_token=function(){return this.__tokens.isEmpty()},G.prototype._reset=function(){},G.prototype._get_next_token=function(Z,se){this._readWhitespace();var oe=this._input.read(/.+/g);return oe?this._create_token(P.RAW,oe):this._create_token(P.EOF,"")},G.prototype._is_comment=function(Z){return!1},G.prototype._is_opening=function(Z){return!1},G.prototype._is_closing=function(Z,se){return!1},G.prototype._create_token=function(Z,se){var oe=new k(Z,se,this._patterns.whitespace.newline_count,this._patterns.whitespace.whitespace_before_token);return oe},G.prototype._readWhitespace=function(){return this._patterns.whitespace.read()},H.exports.Tokenizer=G,H.exports.TOKEN=P},function(H){function w(L){this.__tokens=[],this.__tokens_length=this.__tokens.length,this.__position=0,this.__parent_token=L}w.prototype.restart=function(){this.__position=0},w.prototype.isEmpty=function(){return this.__tokens_length===0},w.prototype.hasNext=function(){return this.__position<this.__tokens_length},w.prototype.next=function(){var L=null;return this.hasNext()&&(L=this.__tokens[this.__position],this.__position+=1),L},w.prototype.peek=function(L){var B=null;return L=L||0,L+=this.__position,L>=0&&L<this.__tokens_length&&(B=this.__tokens[L]),B},w.prototype.add=function(L){this.__parent_token&&(L.parent=this.__parent_token),this.__tokens.push(L),this.__tokens_length+=1},H.exports.TokenStream=w},function(H,w,L){var B=L(12).Pattern;function k(K,V){B.call(this,K,V),V?this._line_regexp=this._input.get_regexp(V._line_regexp):this.__set_whitespace_patterns("",""),this.newline_count=0,this.whitespace_before_token=""}k.prototype=new B,k.prototype.__set_whitespace_patterns=function(K,V){K+="\\t ",V+="\\n\\r",this._match_pattern=this._input.get_regexp("["+K+V+"]+",!0),this._newline_regexp=this._input.get_regexp("\\r\\n|["+V+"]")},k.prototype.read=function(){this.newline_count=0,this.whitespace_before_token="";var K=this._input.read(this._match_pattern);if(K===" ")this.whitespace_before_token=" ";else if(K){var V=this.__split(this._newline_regexp,K);this.newline_count=V.length-1,this.whitespace_before_token=V[this.newline_count]}return K},k.prototype.matching=function(K,V){var P=this._create();return P.__set_whitespace_patterns(K,V),P._update(),P},k.prototype._create=function(){return new k(this._input,this)},k.prototype.__split=function(K,V){K.lastIndex=0;for(var P=0,G=[],Z=K.exec(V);Z;)G.push(V.substring(P,Z.index)),P=Z.index+Z[0].length,Z=K.exec(V);return P<V.length?G.push(V.substring(P,V.length)):G.push(""),G},H.exports.WhitespacePattern=k},function(H){function w(L,B){this._input=L,this._starting_pattern=null,this._match_pattern=null,this._until_pattern=null,this._until_after=!1,B&&(this._starting_pattern=this._input.get_regexp(B._starting_pattern,!0),this._match_pattern=this._input.get_regexp(B._match_pattern,!0),this._until_pattern=this._input.get_regexp(B._until_pattern),this._until_after=B._until_after)}w.prototype.read=function(){var L=this._input.read(this._starting_pattern);return(!this._starting_pattern||L)&&(L+=this._input.read(this._match_pattern,this._until_pattern,this._until_after)),L},w.prototype.read_match=function(){return this._input.match(this._match_pattern)},w.prototype.until_after=function(L){var B=this._create();return B._until_after=!0,B._until_pattern=this._input.get_regexp(L),B._update(),B},w.prototype.until=function(L){var B=this._create();return B._until_after=!1,B._until_pattern=this._input.get_regexp(L),B._update(),B},w.prototype.starting_with=function(L){var B=this._create();return B._starting_pattern=this._input.get_regexp(L,!0),B._update(),B},w.prototype.matching=function(L){var B=this._create();return B._match_pattern=this._input.get_regexp(L,!0),B._update(),B},w.prototype._create=function(){return new w(this._input,this)},w.prototype._update=function(){},H.exports.Pattern=w},function(H){function w(L,B){L=typeof L=="string"?L:L.source,B=typeof B=="string"?B:B.source,this.__directives_block_pattern=new RegExp(L+/ beautify( \w+[:]\w+)+ /.source+B,"g"),this.__directive_pattern=/ (\w+)[:](\w+)/g,this.__directives_end_ignore_pattern=new RegExp(L+/\sbeautify\signore:end\s/.source+B,"g")}w.prototype.get_directives=function(L){if(!L.match(this.__directives_block_pattern))return null;var B={};this.__directive_pattern.lastIndex=0;for(var k=this.__directive_pattern.exec(L);k;)B[k[1]]=k[2],k=this.__directive_pattern.exec(L);return B},w.prototype.readIgnored=function(L){return L.readUntilAfter(this.__directives_end_ignore_pattern)},H.exports.Directives=w},function(H,w,L){var B=L(12).Pattern,k={django:!1,erb:!1,handlebars:!1,php:!1,smarty:!1,angular:!1};function K(V,P){B.call(this,V,P),this.__template_pattern=null,this._disabled=Object.assign({},k),this._excluded=Object.assign({},k),P&&(this.__template_pattern=this._input.get_regexp(P.__template_pattern),this._excluded=Object.assign(this._excluded,P._excluded),this._disabled=Object.assign(this._disabled,P._disabled));var G=new B(V);this.__patterns={handlebars_comment:G.starting_with(/{{!--/).until_after(/--}}/),handlebars_unescaped:G.starting_with(/{{{/).until_after(/}}}/),handlebars:G.starting_with(/{{/).until_after(/}}/),php:G.starting_with(/<\?(?:[= ]|php)/).until_after(/\?>/),erb:G.starting_with(/<%[^%]/).until_after(/[^%]%>/),django:G.starting_with(/{%/).until_after(/%}/),django_value:G.starting_with(/{{/).until_after(/}}/),django_comment:G.starting_with(/{#/).until_after(/#}/),smarty:G.starting_with(/{(?=[^}{\s\n])/).until_after(/[^\s\n]}/),smarty_comment:G.starting_with(/{\*/).until_after(/\*}/),smarty_literal:G.starting_with(/{literal}/).until_after(/{\/literal}/)}}K.prototype=new B,K.prototype._create=function(){return new K(this._input,this)},K.prototype._update=function(){this.__set_templated_pattern()},K.prototype.disable=function(V){var P=this._create();return P._disabled[V]=!0,P._update(),P},K.prototype.read_options=function(V){var P=this._create();for(var G in k)P._disabled[G]=V.templating.indexOf(G)===-1;return P._update(),P},K.prototype.exclude=function(V){var P=this._create();return P._excluded[V]=!0,P._update(),P},K.prototype.read=function(){var V="";this._match_pattern?V=this._input.read(this._starting_pattern):V=this._input.read(this._starting_pattern,this.__template_pattern);for(var P=this._read_template();P;)this._match_pattern?P+=this._input.read(this._match_pattern):P+=this._input.readUntil(this.__template_pattern),V+=P,P=this._read_template();return this._until_after&&(V+=this._input.readUntilAfter(this._until_pattern)),V},K.prototype.__set_templated_pattern=function(){var V=[];this._disabled.php||V.push(this.__patterns.php._starting_pattern.source),this._disabled.handlebars||V.push(this.__patterns.handlebars._starting_pattern.source),this._disabled.angular||V.push(this.__patterns.handlebars._starting_pattern.source),this._disabled.erb||V.push(this.__patterns.erb._starting_pattern.source),this._disabled.django||(V.push(this.__patterns.django._starting_pattern.source),V.push(this.__patterns.django_value._starting_pattern.source),V.push(this.__patterns.django_comment._starting_pattern.source)),this._disabled.smarty||V.push(this.__patterns.smarty._starting_pattern.source),this._until_pattern&&V.push(this._until_pattern.source),this.__template_pattern=this._input.get_regexp("(?:"+V.join("|")+")")},K.prototype._read_template=function(){var V="",P=this._input.peek();if(P==="<"){var G=this._input.peek(1);!this._disabled.php&&!this._excluded.php&&G==="?"&&(V=V||this.__patterns.php.read()),!this._disabled.erb&&!this._excluded.erb&&G==="%"&&(V=V||this.__patterns.erb.read())}else P==="{"&&(!this._disabled.handlebars&&!this._excluded.handlebars&&(V=V||this.__patterns.handlebars_comment.read(),V=V||this.__patterns.handlebars_unescaped.read(),V=V||this.__patterns.handlebars.read()),this._disabled.django||(!this._excluded.django&&!this._excluded.handlebars&&(V=V||this.__patterns.django_value.read()),this._excluded.django||(V=V||this.__patterns.django_comment.read(),V=V||this.__patterns.django.read())),this._disabled.smarty||this._disabled.django&&this._disabled.handlebars&&(V=V||this.__patterns.smarty_comment.read(),V=V||this.__patterns.smarty_literal.read(),V=V||this.__patterns.smarty.read()));return V},H.exports.TemplatablePattern=K},,,,function(H,w,L){var B=L(19).Beautifier,k=L(20).Options;function K(V,P,G,Z){var se=new B(V,P,G,Z);return se.beautify()}H.exports=K,H.exports.defaultOptions=function(){return new k}},function(H,w,L){var B=L(20).Options,k=L(2).Output,K=L(21).Tokenizer,V=L(21).TOKEN,P=/\r\n|[\r\n]/,G=/\r\n|[\r\n]/g,Z=function(pe,M){this.indent_level=0,this.alignment_size=0,this.max_preserve_newlines=pe.max_preserve_newlines,this.preserve_newlines=pe.preserve_newlines,this._output=new k(pe,M)};Z.prototype.current_line_has_match=function(pe){return this._output.current_line.has_match(pe)},Z.prototype.set_space_before_token=function(pe,M){this._output.space_before_token=pe,this._output.non_breaking_space=M},Z.prototype.set_wrap_point=function(){this._output.set_indent(this.indent_level,this.alignment_size),this._output.set_wrap_point()},Z.prototype.add_raw_token=function(pe){this._output.add_raw_token(pe)},Z.prototype.print_preserved_newlines=function(pe){var M=0;pe.type!==V.TEXT&&pe.previous.type!==V.TEXT&&(M=pe.newlines?1:0),this.preserve_newlines&&(M=pe.newlines<this.max_preserve_newlines+1?pe.newlines:this.max_preserve_newlines+1);for(var ye=0;ye<M;ye++)this.print_newline(ye>0);return M!==0},Z.prototype.traverse_whitespace=function(pe){return pe.whitespace_before||pe.newlines?(this.print_preserved_newlines(pe)||(this._output.space_before_token=!0),!0):!1},Z.prototype.previous_token_wrapped=function(){return this._output.previous_token_wrapped},Z.prototype.print_newline=function(pe){this._output.add_new_line(pe)},Z.prototype.print_token=function(pe){pe.text&&(this._output.set_indent(this.indent_level,this.alignment_size),this._output.add_token(pe.text))},Z.prototype.indent=function(){this.indent_level++},Z.prototype.deindent=function(){this.indent_level>0&&(this.indent_level--,this._output.set_indent(this.indent_level,this.alignment_size))},Z.prototype.get_full_indent=function(pe){return pe=this.indent_level+(pe||0),pe<1?"":this._output.get_indent_string(pe)};var se=function(pe){for(var M=null,ye=pe.next;ye.type!==V.EOF&&pe.closed!==ye;){if(ye.type===V.ATTRIBUTE&&ye.text==="type"){ye.next&&ye.next.type===V.EQUALS&&ye.next.next&&ye.next.next.type===V.VALUE&&(M=ye.next.next.text);break}ye=ye.next}return M},oe=function(pe,M){var ye=null,Te=null;return M.closed?(pe==="script"?ye="text/javascript":pe==="style"&&(ye="text/css"),ye=se(M)||ye,ye.search("text/css")>-1?Te="css":ye.search(/module|((text|application|dojo)\/(x-)?(javascript|ecmascript|jscript|livescript|(ld\+)?json|method|aspect))/)>-1?Te="javascript":ye.search(/(text|application|dojo)\/(x-)?(html)/)>-1?Te="html":ye.search(/test\/null/)>-1&&(Te="null"),Te):null};function De(pe,M){return M.indexOf(pe)!==-1}function He(pe,M,ye){this.parent=pe||null,this.tag=M?M.tag_name:"",this.indent_level=ye||0,this.parser_token=M||null}function Qe(pe){this._printer=pe,this._current_frame=null}Qe.prototype.get_parser_token=function(){return this._current_frame?this._current_frame.parser_token:null},Qe.prototype.record_tag=function(pe){var M=new He(this._current_frame,pe,this._printer.indent_level);this._current_frame=M},Qe.prototype._try_pop_frame=function(pe){var M=null;return pe&&(M=pe.parser_token,this._printer.indent_level=pe.indent_level,this._current_frame=pe.parent),M},Qe.prototype._get_frame=function(pe,M){for(var ye=this._current_frame;ye&&pe.indexOf(ye.tag)===-1;){if(M&&M.indexOf(ye.tag)!==-1){ye=null;break}ye=ye.parent}return ye},Qe.prototype.try_pop=function(pe,M){var ye=this._get_frame([pe],M);return this._try_pop_frame(ye)},Qe.prototype.indent_to_tag=function(pe){var M=this._get_frame(pe);M&&(this._printer.indent_level=M.indent_level)};function Ue(pe,M,ye,Te){this._source_text=pe||"",M=M||{},this._js_beautify=ye,this._css_beautify=Te,this._tag_stack=null;var me=new B(M,"html");this._options=me,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"}Ue.prototype.beautify=function(){if(this._options.disabled)return this._source_text;var pe=this._source_text,M=this._options.eol;this._options.eol==="auto"&&(M=`
|
|
|
`,pe&&P.test(pe)&&(M=pe.match(P)[0])),pe=pe.replace(G,`
|
|
|
`);var ye=pe.match(/^[\t ]*/)[0],Te={text:"",type:""},me=new qe(this._options),xe=new Z(this._options,ye),z=new K(pe,this._options).tokenize();this._tag_stack=new Qe(xe);for(var j=null,ee=z.next();ee.type!==V.EOF;)ee.type===V.TAG_OPEN||ee.type===V.COMMENT?(j=this._handle_tag_open(xe,ee,me,Te,z),me=j):ee.type===V.ATTRIBUTE||ee.type===V.EQUALS||ee.type===V.VALUE||ee.type===V.TEXT&&!me.tag_complete?j=this._handle_inside_tag(xe,ee,me,Te):ee.type===V.TAG_CLOSE?j=this._handle_tag_close(xe,ee,me):ee.type===V.TEXT?j=this._handle_text(xe,ee,me):ee.type===V.CONTROL_FLOW_OPEN?j=this._handle_control_flow_open(xe,ee):ee.type===V.CONTROL_FLOW_CLOSE?j=this._handle_control_flow_close(xe,ee):xe.add_raw_token(ee),Te=j,ee=z.next();var _e=xe._output.get_code(M);return _e},Ue.prototype._handle_control_flow_open=function(pe,M){var ye={text:M.text,type:M.type};return pe.set_space_before_token(M.newlines||M.whitespace_before!=="",!0),M.newlines?pe.print_preserved_newlines(M):pe.set_space_before_token(M.newlines||M.whitespace_before!=="",!0),pe.print_token(M),pe.indent(),ye},Ue.prototype._handle_control_flow_close=function(pe,M){var ye={text:M.text,type:M.type};return pe.deindent(),M.newlines?pe.print_preserved_newlines(M):pe.set_space_before_token(M.newlines||M.whitespace_before!=="",!0),pe.print_token(M),ye},Ue.prototype._handle_tag_close=function(pe,M,ye){var Te={text:M.text,type:M.type};return pe.alignment_size=0,ye.tag_complete=!0,pe.set_space_before_token(M.newlines||M.whitespace_before!=="",!0),ye.is_unformatted?pe.add_raw_token(M):(ye.tag_start_char==="<"&&(pe.set_space_before_token(M.text[0]==="/",!0),this._is_wrap_attributes_force_expand_multiline&&ye.has_wrapped_attrs&&pe.print_newline(!1)),pe.print_token(M)),ye.indent_content&&!(ye.is_unformatted||ye.is_content_unformatted)&&(pe.indent(),ye.indent_content=!1),!ye.is_inline_element&&!(ye.is_unformatted||ye.is_content_unformatted)&&pe.set_wrap_point(),Te},Ue.prototype._handle_inside_tag=function(pe,M,ye,Te){var me=ye.has_wrapped_attrs,xe={text:M.text,type:M.type};return pe.set_space_before_token(M.newlines||M.whitespace_before!=="",!0),ye.is_unformatted?pe.add_raw_token(M):ye.tag_start_char==="{"&&M.type===V.TEXT?pe.print_preserved_newlines(M)?(M.newlines=0,pe.add_raw_token(M)):pe.print_token(M):(M.type===V.ATTRIBUTE?pe.set_space_before_token(!0):(M.type===V.EQUALS||M.type===V.VALUE&&M.previous.type===V.EQUALS)&&pe.set_space_before_token(!1),M.type===V.ATTRIBUTE&&ye.tag_start_char==="<"&&((this._is_wrap_attributes_preserve||this._is_wrap_attributes_preserve_aligned)&&(pe.traverse_whitespace(M),me=me||M.newlines!==0),this._is_wrap_attributes_force&&ye.attr_count>=this._options.wrap_attributes_min_attrs&&(Te.type!==V.TAG_OPEN||this._is_wrap_attributes_force_expand_multiline)&&(pe.print_newline(!1),me=!0)),pe.print_token(M),me=me||pe.previous_token_wrapped(),ye.has_wrapped_attrs=me),xe},Ue.prototype._handle_text=function(pe,M,ye){var Te={text:M.text,type:"TK_CONTENT"};return ye.custom_beautifier_name?this._print_custom_beatifier_text(pe,M,ye):ye.is_unformatted||ye.is_content_unformatted?pe.add_raw_token(M):(pe.traverse_whitespace(M),pe.print_token(M)),Te},Ue.prototype._print_custom_beatifier_text=function(pe,M,ye){var Te=this;if(M.text!==""){var me=M.text,xe,z=1,j="",ee="";ye.custom_beautifier_name==="javascript"&&typeof this._js_beautify=="function"?xe=this._js_beautify:ye.custom_beautifier_name==="css"&&typeof this._css_beautify=="function"?xe=this._css_beautify:ye.custom_beautifier_name==="html"&&(xe=function(Yr,wr){var fr=new Ue(Yr,wr,Te._js_beautify,Te._css_beautify);return fr.beautify()}),this._options.indent_scripts==="keep"?z=0:this._options.indent_scripts==="separate"&&(z=-pe.indent_level);var _e=pe.get_full_indent(z);if(me=me.replace(/\n[ \t]*$/,""),ye.custom_beautifier_name!=="html"&&me[0]==="<"&&me.match(/^(<!--|<!\[CDATA\[)/)){var ut=/^(<!--[^\n]*|<!\[CDATA\[)(\n?)([ \t\n]*)([\s\S]*)(-->|]]>)$/.exec(me);if(!ut){pe.add_raw_token(M);return}j=_e+ut[1]+`
|
|
|
`,me=ut[4],ut[5]&&(ee=_e+ut[5]),me=me.replace(/\n[ \t]*$/,""),(ut[2]||ut[3].indexOf(`
|
|
|
`)!==-1)&&(ut=ut[3].match(/[ \t]+$/),ut&&(M.whitespace_before=ut[0]))}if(me)if(xe){var Ft=function(){this.eol=`
|
|
|
`};Ft.prototype=this._options.raw_options;var Vt=new Ft;me=xe(_e+me,Vt)}else{var vr=M.whitespace_before;vr&&(me=me.replace(new RegExp(`
|
|
|
(`+vr+")?","g"),`
|
|
|
`)),me=_e+me.replace(/\n/g,`
|
|
|
`+_e)}j&&(me?me=j+me+`
|
|
|
`+ee:me=j+ee),pe.print_newline(!1),me&&(M.text=me,M.whitespace_before="",M.newlines=0,pe.add_raw_token(M),pe.print_newline(!0))}},Ue.prototype._handle_tag_open=function(pe,M,ye,Te,me){var xe=this._get_tag_open_token(M);if((ye.is_unformatted||ye.is_content_unformatted)&&!ye.is_empty_element&&M.type===V.TAG_OPEN&&!xe.is_start_tag?(pe.add_raw_token(M),xe.start_tag_token=this._tag_stack.try_pop(xe.tag_name)):(pe.traverse_whitespace(M),this._set_tag_position(pe,M,xe,ye,Te),xe.is_inline_element||pe.set_wrap_point(),pe.print_token(M)),xe.is_start_tag&&this._is_wrap_attributes_force){var z=0,j;do j=me.peek(z),j.type===V.ATTRIBUTE&&(xe.attr_count+=1),z+=1;while(j.type!==V.EOF&&j.type!==V.TAG_CLOSE)}return(this._is_wrap_attributes_force_aligned||this._is_wrap_attributes_aligned_multiple||this._is_wrap_attributes_preserve_aligned)&&(xe.alignment_size=M.text.length+1),!xe.tag_complete&&!xe.is_unformatted&&(pe.alignment_size=xe.alignment_size),xe};var qe=function(pe,M,ye){if(this.parent=M||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="",!ye)this.tag_complete=!0;else{var Te;this.tag_start_char=ye.text[0],this.text=ye.text,this.tag_start_char==="<"?(Te=ye.text.match(/^<([^\s>]*)/),this.tag_check=Te?Te[1]:""):(Te=ye.text.match(/^{{~?(?:[\^]|#\*?)?([^\s}]+)/),this.tag_check=Te?Te[1]:"",(ye.text.startsWith("{{#>")||ye.text.startsWith("{{~#>"))&&this.tag_check[0]===">"&&(this.tag_check===">"&&ye.next!==null?this.tag_check=ye.next.text.split(" ")[0]:this.tag_check=ye.text.split(">")[1])),this.tag_check=this.tag_check.toLowerCase(),ye.type===V.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||ye.closed&&ye.closed.text==="/>";var me=2;this.tag_start_char==="{"&&this.text.length>=3&&this.text.charAt(2)==="~"&&(me=3),this.is_end_tag=this.is_end_tag||this.tag_start_char==="{"&&(!pe.indent_handlebars||this.text.length<3||/[^#\^]/.test(this.text.charAt(me)))}};Ue.prototype._get_tag_open_token=function(pe){var M=new qe(this._options,this._tag_stack.get_parser_token(),pe);return M.alignment_size=this._options.wrap_attributes_indent_size,M.is_end_tag=M.is_end_tag||De(M.tag_check,this._options.void_elements),M.is_empty_element=M.tag_complete||M.is_start_tag&&M.is_end_tag,M.is_unformatted=!M.tag_complete&&De(M.tag_check,this._options.unformatted),M.is_content_unformatted=!M.is_empty_element&&De(M.tag_check,this._options.content_unformatted),M.is_inline_element=De(M.tag_name,this._options.inline)||this._options.inline_custom_elements&&M.tag_name.includes("-")||M.tag_start_char==="{",M},Ue.prototype._set_tag_position=function(pe,M,ye,Te,me){if(ye.is_empty_element||(ye.is_end_tag?ye.start_tag_token=this._tag_stack.try_pop(ye.tag_name):(this._do_optional_end_element(ye)&&(ye.is_inline_element||pe.print_newline(!1)),this._tag_stack.record_tag(ye),(ye.tag_name==="script"||ye.tag_name==="style")&&!(ye.is_unformatted||ye.is_content_unformatted)&&(ye.custom_beautifier_name=oe(ye.tag_check,M)))),De(ye.tag_check,this._options.extra_liners)&&(pe.print_newline(!1),pe._output.just_added_blankline()||pe.print_newline(!0)),ye.is_empty_element){if(ye.tag_start_char==="{"&&ye.tag_check==="else"){this._tag_stack.indent_to_tag(["if","unless","each"]),ye.indent_content=!0;var xe=pe.current_line_has_match(/{{#if/);xe||pe.print_newline(!1)}ye.tag_name==="!--"&&me.type===V.TAG_CLOSE&&Te.is_end_tag&&ye.text.indexOf(`
|
|
|
`)===-1||(ye.is_inline_element||ye.is_unformatted||pe.print_newline(!1),this._calcluate_parent_multiline(pe,ye))}else if(ye.is_end_tag){var z=!1;z=ye.start_tag_token&&ye.start_tag_token.multiline_content,z=z||!ye.is_inline_element&&!(Te.is_inline_element||Te.is_unformatted)&&!(me.type===V.TAG_CLOSE&&ye.start_tag_token===Te)&&me.type!=="TK_CONTENT",(ye.is_content_unformatted||ye.is_unformatted)&&(z=!1),z&&pe.print_newline(!1)}else ye.indent_content=!ye.custom_beautifier_name,ye.tag_start_char==="<"&&(ye.tag_name==="html"?ye.indent_content=this._options.indent_inner_html:ye.tag_name==="head"?ye.indent_content=this._options.indent_head_inner_html:ye.tag_name==="body"&&(ye.indent_content=this._options.indent_body_inner_html)),!(ye.is_inline_element||ye.is_unformatted)&&(me.type!=="TK_CONTENT"||ye.is_content_unformatted)&&pe.print_newline(!1),this._calcluate_parent_multiline(pe,ye)},Ue.prototype._calcluate_parent_multiline=function(pe,M){M.parent&&pe._output.just_added_newline()&&!((M.is_inline_element||M.is_unformatted)&&M.parent.is_inline_element)&&(M.parent.multiline_content=!0)};var st=["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"],Pe=["a","audio","del","ins","map","noscript","video"];Ue.prototype._do_optional_end_element=function(pe){var M=null;if(!(pe.is_empty_element||!pe.is_start_tag||!pe.parent)){if(pe.tag_name==="body")M=M||this._tag_stack.try_pop("head");else if(pe.tag_name==="li")M=M||this._tag_stack.try_pop("li",["ol","ul","menu"]);else if(pe.tag_name==="dd"||pe.tag_name==="dt")M=M||this._tag_stack.try_pop("dt",["dl"]),M=M||this._tag_stack.try_pop("dd",["dl"]);else if(pe.parent.tag_name==="p"&&st.indexOf(pe.tag_name)!==-1){var ye=pe.parent.parent;(!ye||Pe.indexOf(ye.tag_name)===-1)&&(M=M||this._tag_stack.try_pop("p"))}else pe.tag_name==="rp"||pe.tag_name==="rt"?(M=M||this._tag_stack.try_pop("rt",["ruby","rtc"]),M=M||this._tag_stack.try_pop("rp",["ruby","rtc"])):pe.tag_name==="optgroup"?M=M||this._tag_stack.try_pop("optgroup",["select"]):pe.tag_name==="option"?M=M||this._tag_stack.try_pop("option",["select","datalist","optgroup"]):pe.tag_name==="colgroup"?M=M||this._tag_stack.try_pop("caption",["table"]):pe.tag_name==="thead"?(M=M||this._tag_stack.try_pop("caption",["table"]),M=M||this._tag_stack.try_pop("colgroup",["table"])):pe.tag_name==="tbody"||pe.tag_name==="tfoot"?(M=M||this._tag_stack.try_pop("caption",["table"]),M=M||this._tag_stack.try_pop("colgroup",["table"]),M=M||this._tag_stack.try_pop("thead",["table"]),M=M||this._tag_stack.try_pop("tbody",["table"])):pe.tag_name==="tr"?(M=M||this._tag_stack.try_pop("caption",["table"]),M=M||this._tag_stack.try_pop("colgroup",["table"]),M=M||this._tag_stack.try_pop("tr",["table","thead","tbody","tfoot"])):(pe.tag_name==="th"||pe.tag_name==="td")&&(M=M||this._tag_stack.try_pop("td",["table","thead","tbody","tfoot","tr"]),M=M||this._tag_stack.try_pop("th",["table","thead","tbody","tfoot","tr"]));return pe.parent=this._tag_stack.get_parser_token(),M}},H.exports.Beautifier=Ue},function(H,w,L){var B=L(6).Options;function k(K){B.call(this,K,"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"])}k.prototype=new B,H.exports.Options=k},function(H,w,L){var B=L(9).Tokenizer,k=L(9).TOKEN,K=L(13).Directives,V=L(14).TemplatablePattern,P=L(12).Pattern,G={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:k.START,RAW:k.RAW,EOF:k.EOF},Z=new K(/<\!--/,/-->/),se=function(oe,De){B.call(this,oe,De),this._current_tag_name="";var He=new V(this._input).read_options(this._options),Qe=new P(this._input);if(this.__patterns={word:He.until(/[\n\r\t <]/),word_control_flow_close_excluded:He.until(/[\n\r\t <}]/),single_quote:He.until_after(/'/),double_quote:He.until_after(/"/),attribute:He.until(/[\n\r\t =>]|\/>/),element_name:He.until(/[\n\r\t >\/]/),angular_control_flow_start:Qe.matching(/\@[a-zA-Z]+[^({]*[({]/),handlebars_comment:Qe.starting_with(/{{!--/).until_after(/--}}/),handlebars:Qe.starting_with(/{{/).until_after(/}}/),handlebars_open:Qe.until(/[\n\r\t }]/),handlebars_raw_close:Qe.until(/}}/),comment:Qe.starting_with(/<!--/).until_after(/-->/),cdata:Qe.starting_with(/<!\[CDATA\[/).until_after(/]]>/),conditional_comment:Qe.starting_with(/<!\[/).until_after(/]>/),processing:Qe.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 Ue=this._input.get_literal_regexp(this._options.unformatted_content_delimiter);this.__patterns.unformatted_content_delimiter=Qe.matching(Ue).until_after(Ue)}};se.prototype=new B,se.prototype._is_comment=function(oe){return!1},se.prototype._is_opening=function(oe){return oe.type===G.TAG_OPEN||oe.type===G.CONTROL_FLOW_OPEN},se.prototype._is_closing=function(oe,De){return oe.type===G.TAG_CLOSE&&De&&((oe.text===">"||oe.text==="/>")&&De.text[0]==="<"||oe.text==="}}"&&De.text[0]==="{"&&De.text[1]==="{")||oe.type===G.CONTROL_FLOW_CLOSE&&oe.text==="}"&&De.text.endsWith("{")},se.prototype._reset=function(){this._current_tag_name=""},se.prototype._get_next_token=function(oe,De){var He=null;this._readWhitespace();var Qe=this._input.peek();return Qe===null?this._create_token(G.EOF,""):(He=He||this._read_open_handlebars(Qe,De),He=He||this._read_attribute(Qe,oe,De),He=He||this._read_close(Qe,De),He=He||this._read_script_and_style(Qe,oe),He=He||this._read_control_flows(Qe,De),He=He||this._read_raw_content(Qe,oe,De),He=He||this._read_content_word(Qe,De),He=He||this._read_comment_or_cdata(Qe),He=He||this._read_processing(Qe),He=He||this._read_open(Qe,De),He=He||this._create_token(G.UNKNOWN,this._input.next()),He)},se.prototype._read_comment_or_cdata=function(oe){var De=null,He=null,Qe=null;if(oe==="<"){var Ue=this._input.peek(1);Ue==="!"&&(He=this.__patterns.comment.read(),He?(Qe=Z.get_directives(He),Qe&&Qe.ignore==="start"&&(He+=Z.readIgnored(this._input))):He=this.__patterns.cdata.read()),He&&(De=this._create_token(G.COMMENT,He),De.directives=Qe)}return De},se.prototype._read_processing=function(oe){var De=null,He=null,Qe=null;if(oe==="<"){var Ue=this._input.peek(1);(Ue==="!"||Ue==="?")&&(He=this.__patterns.conditional_comment.read(),He=He||this.__patterns.processing.read()),He&&(De=this._create_token(G.COMMENT,He),De.directives=Qe)}return De},se.prototype._read_open=function(oe,De){var He=null,Qe=null;return(!De||De.type===G.CONTROL_FLOW_OPEN)&&oe==="<"&&(He=this._input.next(),this._input.peek()==="/"&&(He+=this._input.next()),He+=this.__patterns.element_name.read(),Qe=this._create_token(G.TAG_OPEN,He)),Qe},se.prototype._read_open_handlebars=function(oe,De){var He=null,Qe=null;return(!De||De.type===G.CONTROL_FLOW_OPEN)&&(this._options.templating.includes("angular")||this._options.indent_handlebars)&&oe==="{"&&this._input.peek(1)==="{"&&(this._options.indent_handlebars&&this._input.peek(2)==="!"?(He=this.__patterns.handlebars_comment.read(),He=He||this.__patterns.handlebars.read(),Qe=this._create_token(G.COMMENT,He)):(He=this.__patterns.handlebars_open.read(),Qe=this._create_token(G.TAG_OPEN,He))),Qe},se.prototype._read_control_flows=function(oe,De){var He="",Qe=null;if(!this._options.templating.includes("angular"))return Qe;if(oe==="@"){if(He=this.__patterns.angular_control_flow_start.read(),He==="")return Qe;for(var Ue=He.endsWith("(")?1:0,qe=0;!(He.endsWith("{")&&Ue===qe);){var st=this._input.next();if(st===null)break;st==="("?Ue++:st===")"&&qe++,He+=st}Qe=this._create_token(G.CONTROL_FLOW_OPEN,He)}else oe==="}"&&De&&De.type===G.CONTROL_FLOW_OPEN&&(He=this._input.next(),Qe=this._create_token(G.CONTROL_FLOW_CLOSE,He));return Qe},se.prototype._read_close=function(oe,De){var He=null,Qe=null;return De&&De.type===G.TAG_OPEN&&(De.text[0]==="<"&&(oe===">"||oe==="/"&&this._input.peek(1)===">")?(He=this._input.next(),oe==="/"&&(He+=this._input.next()),Qe=this._create_token(G.TAG_CLOSE,He)):De.text[0]==="{"&&oe==="}"&&this._input.peek(1)==="}"&&(this._input.next(),this._input.next(),Qe=this._create_token(G.TAG_CLOSE,"}}"))),Qe},se.prototype._read_attribute=function(oe,De,He){var Qe=null,Ue="";if(He&&He.text[0]==="<")if(oe==="=")Qe=this._create_token(G.EQUALS,this._input.next());else if(oe==='"'||oe==="'"){var qe=this._input.next();oe==='"'?qe+=this.__patterns.double_quote.read():qe+=this.__patterns.single_quote.read(),Qe=this._create_token(G.VALUE,qe)}else Ue=this.__patterns.attribute.read(),Ue&&(De.type===G.EQUALS?Qe=this._create_token(G.VALUE,Ue):Qe=this._create_token(G.ATTRIBUTE,Ue));return Qe},se.prototype._is_content_unformatted=function(oe){return this._options.void_elements.indexOf(oe)===-1&&(this._options.content_unformatted.indexOf(oe)!==-1||this._options.unformatted.indexOf(oe)!==-1)},se.prototype._read_raw_content=function(oe,De,He){var Qe="";if(He&&He.text[0]==="{")Qe=this.__patterns.handlebars_raw_close.read();else if(De.type===G.TAG_CLOSE&&De.opened.text[0]==="<"&&De.text[0]!=="/"){var Ue=De.opened.text.substr(1).toLowerCase();this._is_content_unformatted(Ue)&&(Qe=this._input.readUntil(new RegExp("</"+Ue+"[\\n\\r\\t ]*?>","ig")))}return Qe?this._create_token(G.TEXT,Qe):null},se.prototype._read_script_and_style=function(oe,De){if(De.type===G.TAG_CLOSE&&De.opened.text[0]==="<"&&De.text[0]!=="/"){var He=De.opened.text.substr(1).toLowerCase();if(He==="script"||He==="style"){var Qe=this._read_comment_or_cdata(oe);if(Qe)return Qe.type=G.TEXT,Qe;var Ue=this._input.readUntil(new RegExp("</"+He+"[\\n\\r\\t ]*?>","ig"));if(Ue)return this._create_token(G.TEXT,Ue)}}return null},se.prototype._read_content_word=function(oe,De){var He="";return this._options.unformatted_content_delimiter&&oe===this._options.unformatted_content_delimiter[0]&&(He=this.__patterns.unformatted_content_delimiter.read()),He||(He=De&&De.type===G.CONTROL_FLOW_OPEN?this.__patterns.word_control_flow_close_excluded.read():this.__patterns.word.read()),He?this._create_token(G.TEXT,He):null},H.exports.Tokenizer=se,H.exports.TOKEN=G}],R={};function u(H){var w=R[H];if(w!==void 0)return w.exports;var L=R[H]={exports:{}};return Be[H](L,L.exports,u),L.exports}var C=u(18);Fe=C})();var Me=Fe;if(1)Ie=[je,je(58553),je(87804)],mt=function(Be){var R=je(58553),u=je(87804);return{html_beautify:function(C,H){return Me(C,H,R.js_beautify,u.css_beautify)}}}.apply(Sr,Ie),mt!==void 0&&(wn.exports=mt);else var de,I})()},58553:function(wn,Sr){var je,Ie;(function(){var mt;(function(){"use strict";var Me=[function(R,u,C){var H=C(1).Beautifier,w=C(5).Options;function L(B,k){var K=new H(B,k);return K.beautify()}R.exports=L,R.exports.defaultOptions=function(){return new w}},function(R,u,C){var H=C(2).Output,w=C(3).Token,L=C(4),B=C(5).Options,k=C(7).Tokenizer,K=C(7).line_starters,V=C(7).positionable_operators,P=C(7).TOKEN;function G(j,ee){return ee.indexOf(j)!==-1}function Z(j){return j.replace(/^\s+/g,"")}function se(j){for(var ee={},_e=0;_e<j.length;_e++)ee[j[_e].replace(/-/g,"_")]=j[_e];return ee}function oe(j,ee){return j&&j.type===P.RESERVED&&j.text===ee}function De(j,ee){return j&&j.type===P.RESERVED&&G(j.text,ee)}var He=["case","return","do","if","throw","else","await","break","continue","async"],Qe=["before-newline","after-newline","preserve-newline"],Ue=se(Qe),qe=[Ue.before_newline,Ue.preserve_newline],st={BlockStatement:"BlockStatement",Statement:"Statement",ObjectLiteral:"ObjectLiteral",ArrayLiteral:"ArrayLiteral",ForInitializer:"ForInitializer",Conditional:"Conditional",Expression:"Expression"};function Pe(j,ee){ee.multiline_frame||ee.mode===st.ForInitializer||ee.mode===st.Conditional||j.remove_indent(ee.start_line_index)}function pe(j){j=j.replace(L.allLineBreaks,`
|
|
|
`);for(var ee=[],_e=j.indexOf(`
|
|
|
`);_e!==-1;)ee.push(j.substring(0,_e)),j=j.substring(_e+1),_e=j.indexOf(`
|
|
|
`);return j.length&&ee.push(j),ee}function M(j){return j===st.ArrayLiteral}function ye(j){return G(j,[st.Expression,st.ForInitializer,st.Conditional])}function Te(j,ee){for(var _e=0;_e<j.length;_e++){var ut=j[_e].trim();if(ut.charAt(0)!==ee)return!1}return!0}function me(j,ee){for(var _e=0,ut=j.length,Ft;_e<ut;_e++)if(Ft=j[_e],Ft&&Ft.indexOf(ee)!==0)return!1;return!0}function xe(j,ee){ee=ee||{},this._source_text=j||"",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 B(ee)}xe.prototype.create_flags=function(j,ee){var _e=0;j&&(_e=j.indentation_level,!this._output.just_added_newline()&&j.line_indent_level>_e&&(_e=j.line_indent_level));var ut={mode:ee,parent:j,last_token:j?j.last_token:new w(P.START_BLOCK,""),last_word:j?j.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:_e,alignment:0,line_indent_level:j?j.line_indent_level:_e,start_line_index:this._output.get_line_number(),ternary_depth:0};return ut},xe.prototype._reset=function(j){var ee=j.match(/^[\t ]*/)[0];this._last_last_text="",this._output=new H(this._options,ee),this._output.raw=this._options.test_output_raw,this._flag_store=[],this.set_mode(st.BlockStatement);var _e=new k(j,this._options);return this._tokens=_e.tokenize(),j},xe.prototype.beautify=function(){if(this._options.disabled)return this._source_text;var j,ee=this._reset(this._source_text),_e=this._options.eol;this._options.eol==="auto"&&(_e=`
|
|
|
`,ee&&L.lineBreak.test(ee||"")&&(_e=ee.match(L.lineBreak)[0]));for(var ut=this._tokens.next();ut;)this.handle_token(ut),this._last_last_text=this._flags.last_token.text,this._flags.last_token=ut,ut=this._tokens.next();return j=this._output.get_code(_e),j},xe.prototype.handle_token=function(j,ee){j.type===P.START_EXPR?this.handle_start_expr(j):j.type===P.END_EXPR?this.handle_end_expr(j):j.type===P.START_BLOCK?this.handle_start_block(j):j.type===P.END_BLOCK?this.handle_end_block(j):j.type===P.WORD?this.handle_word(j):j.type===P.RESERVED?this.handle_word(j):j.type===P.SEMICOLON?this.handle_semicolon(j):j.type===P.STRING?this.handle_string(j):j.type===P.EQUALS?this.handle_equals(j):j.type===P.OPERATOR?this.handle_operator(j):j.type===P.COMMA?this.handle_comma(j):j.type===P.BLOCK_COMMENT?this.handle_block_comment(j,ee):j.type===P.COMMENT?this.handle_comment(j,ee):j.type===P.DOT?this.handle_dot(j):j.type===P.EOF?this.handle_eof(j):j.type===P.UNKNOWN?this.handle_unknown(j,ee):this.handle_unknown(j,ee)},xe.prototype.handle_whitespace_and_comments=function(j,ee){var _e=j.newlines,ut=this._options.keep_array_indentation&&M(this._flags.mode);if(j.comments_before)for(var Ft=j.comments_before.next();Ft;)this.handle_whitespace_and_comments(Ft,ee),this.handle_token(Ft,ee),Ft=j.comments_before.next();if(ut)for(var Vt=0;Vt<_e;Vt+=1)this.print_newline(Vt>0,ee);else if(this._options.max_preserve_newlines&&_e>this._options.max_preserve_newlines&&(_e=this._options.max_preserve_newlines),this._options.preserve_newlines&&_e>1){this.print_newline(!1,ee);for(var vr=1;vr<_e;vr+=1)this.print_newline(!0,ee)}};var z=["async","break","continue","return","throw","yield"];xe.prototype.allow_wrap_or_preserved_newline=function(j,ee){if(ee=ee===void 0?!1:ee,!this._output.just_added_newline()){var _e=this._options.preserve_newlines&&j.newlines||ee,ut=G(this._flags.last_token.text,V)||G(j.text,V);if(ut){var Ft=G(this._flags.last_token.text,V)&&G(this._options.operator_position,qe)||G(j.text,V);_e=_e&&Ft}if(_e)this.print_newline(!1,!0);else if(this._options.wrap_line_length){if(De(this._flags.last_token,z))return;this._output.set_wrap_point()}}},xe.prototype.print_newline=function(j,ee){if(!ee&&this._flags.last_token.text!==";"&&this._flags.last_token.text!==","&&this._flags.last_token.text!=="="&&(this._flags.last_token.type!==P.OPERATOR||this._flags.last_token.text==="--"||this._flags.last_token.text==="++"))for(var _e=this._tokens.peek();this._flags.mode===st.Statement&&!(this._flags.if_block&&oe(_e,"else"))&&!this._flags.do_block;)this.restore_mode();this._output.add_new_line(j)&&(this._flags.multiline_frame=!0)},xe.prototype.print_token_line_indentation=function(j){this._output.just_added_newline()&&(this._options.keep_array_indentation&&j.newlines&&(j.text==="["||M(this._flags.mode))?(this._output.current_line.set_indent(-1),this._output.current_line.push(j.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))},xe.prototype.print_token=function(j){if(this._output.raw){this._output.add_raw_token(j);return}if(this._options.comma_first&&j.previous&&j.previous.type===P.COMMA&&this._output.just_added_newline()&&this._output.previous_line.last()===","){var ee=this._output.previous_line.pop();this._output.previous_line.is_empty()&&(this._output.previous_line.push(ee),this._output.trim(!0),this._output.current_line.pop(),this._output.trim()),this.print_token_line_indentation(j),this._output.add_token(","),this._output.space_before_token=!0}this.print_token_line_indentation(j),this._output.non_breaking_space=!0,this._output.add_token(j.text),this._output.previous_token_wrapped&&(this._flags.multiline_frame=!0)},xe.prototype.indent=function(){this._flags.indentation_level+=1,this._output.set_indent(this._flags.indentation_level,this._flags.alignment)},xe.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))},xe.prototype.set_mode=function(j){this._flags?(this._flag_store.push(this._flags),this._previous_flags=this._flags):this._previous_flags=this.create_flags(null,j),this._flags=this.create_flags(this._previous_flags,j),this._output.set_indent(this._flags.indentation_level,this._flags.alignment)},xe.prototype.restore_mode=function(){this._flag_store.length>0&&(this._previous_flags=this._flags,this._flags=this._flag_store.pop(),this._previous_flags.mode===st.Statement&&Pe(this._output,this._previous_flags),this._output.set_indent(this._flags.indentation_level,this._flags.alignment))},xe.prototype.start_of_object_property=function(){return this._flags.parent.mode===st.ObjectLiteral&&this._flags.mode===st.Statement&&(this._flags.last_token.text===":"&&this._flags.ternary_depth===0||De(this._flags.last_token,["get","set"]))},xe.prototype.start_of_statement=function(j){var ee=!1;return ee=ee||De(this._flags.last_token,["var","let","const"])&&j.type===P.WORD,ee=ee||oe(this._flags.last_token,"do"),ee=ee||!(this._flags.parent.mode===st.ObjectLiteral&&this._flags.mode===st.Statement)&&De(this._flags.last_token,z)&&!j.newlines,ee=ee||oe(this._flags.last_token,"else")&&!(oe(j,"if")&&!j.comments_before),ee=ee||this._flags.last_token.type===P.END_EXPR&&(this._previous_flags.mode===st.ForInitializer||this._previous_flags.mode===st.Conditional),ee=ee||this._flags.last_token.type===P.WORD&&this._flags.mode===st.BlockStatement&&!this._flags.in_case&&!(j.text==="--"||j.text==="++")&&this._last_last_text!=="function"&&j.type!==P.WORD&&j.type!==P.RESERVED,ee=ee||this._flags.mode===st.ObjectLiteral&&(this._flags.last_token.text===":"&&this._flags.ternary_depth===0||De(this._flags.last_token,["get","set"])),ee?(this.set_mode(st.Statement),this.indent(),this.handle_whitespace_and_comments(j,!0),this.start_of_object_property()||this.allow_wrap_or_preserved_newline(j,De(j,["do","for","if","while"])),!0):!1},xe.prototype.handle_start_expr=function(j){this.start_of_statement(j)||this.handle_whitespace_and_comments(j);var ee=st.Expression;if(j.text==="["){if(this._flags.last_token.type===P.WORD||this._flags.last_token.text===")"){De(this._flags.last_token,K)&&(this._output.space_before_token=!0),this.print_token(j),this.set_mode(ee),this.indent(),this._options.space_in_paren&&(this._output.space_before_token=!0);return}ee=st.ArrayLiteral,M(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()),G(this._flags.last_token.type,[P.START_EXPR,P.END_EXPR,P.WORD,P.OPERATOR,P.DOT])||(this._output.space_before_token=!0)}else{if(this._flags.last_token.type===P.RESERVED)this._flags.last_token.text==="for"?(this._output.space_before_token=this._options.space_before_conditional,ee=st.ForInitializer):G(this._flags.last_token.text,["if","while","switch"])?(this._output.space_before_token=this._options.space_before_conditional,ee=st.Conditional):G(this._flags.last_word,["await","async"])?this._output.space_before_token=!0:this._flags.last_token.text==="import"&&j.whitespace_before===""?this._output.space_before_token=!1:(G(this._flags.last_token.text,K)||this._flags.last_token.text==="catch")&&(this._output.space_before_token=!0);else if(this._flags.last_token.type===P.EQUALS||this._flags.last_token.type===P.OPERATOR)this.start_of_object_property()||this.allow_wrap_or_preserved_newline(j);else if(this._flags.last_token.type===P.WORD){this._output.space_before_token=!1;var _e=this._tokens.peek(-3);if(this._options.space_after_named_function&&_e){var ut=this._tokens.peek(-4);De(_e,["async","function"])||_e.text==="*"&&De(ut,["async","function"])?this._output.space_before_token=!0:this._flags.mode===st.ObjectLiteral?(_e.text==="{"||_e.text===","||_e.text==="*"&&(ut.text==="{"||ut.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(j);(this._flags.last_token.type===P.RESERVED&&(this._flags.last_word==="function"||this._flags.last_word==="typeof")||this._flags.last_token.text==="*"&&(G(this._last_last_text,["function","yield"])||this._flags.mode===st.ObjectLiteral&&G(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===P.START_BLOCK?this.print_newline():(this._flags.last_token.type===P.END_EXPR||this._flags.last_token.type===P.START_EXPR||this._flags.last_token.type===P.END_BLOCK||this._flags.last_token.text==="."||this._flags.last_token.type===P.COMMA)&&this.allow_wrap_or_preserved_newline(j,j.newlines),this.print_token(j),this.set_mode(ee),this._options.space_in_paren&&(this._output.space_before_token=!0),this.indent()},xe.prototype.handle_end_expr=function(j){for(;this._flags.mode===st.Statement;)this.restore_mode();this.handle_whitespace_and_comments(j),this._flags.multiline_frame&&this.allow_wrap_or_preserved_newline(j,j.text==="]"&&M(this._flags.mode)&&!this._options.keep_array_indentation),this._options.space_in_paren&&(this._flags.last_token.type===P.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(j),this.restore_mode(),Pe(this._output,this._previous_flags),this._flags.do_while&&this._previous_flags.mode===st.Conditional&&(this._previous_flags.mode=st.Expression,this._flags.do_block=!1,this._flags.do_while=!1)},xe.prototype.handle_start_block=function(j){this.handle_whitespace_and_comments(j);var ee=this._tokens.peek(),_e=this._tokens.peek(1);this._flags.last_word==="switch"&&this._flags.last_token.type===P.END_EXPR?(this.set_mode(st.BlockStatement),this._flags.in_case_statement=!0):this._flags.case_body?this.set_mode(st.BlockStatement):_e&&(G(_e.text,[":",","])&&G(ee.type,[P.STRING,P.WORD,P.RESERVED])||G(ee.text,["get","set","..."])&&G(_e.type,[P.WORD,P.RESERVED]))?G(this._last_last_text,["class","interface"])&&!G(_e.text,[":",","])?this.set_mode(st.BlockStatement):this.set_mode(st.ObjectLiteral):this._flags.last_token.type===P.OPERATOR&&this._flags.last_token.text==="=>"?this.set_mode(st.BlockStatement):G(this._flags.last_token.type,[P.EQUALS,P.START_EXPR,P.COMMA,P.OPERATOR])||De(this._flags.last_token,["return","throw","import","default"])?this.set_mode(st.ObjectLiteral):this.set_mode(st.BlockStatement),this._flags.last_token&&De(this._flags.last_token.previous,["class","extends"])&&(this._flags.class_start_block=!0);var ut=!ee.comments_before&&ee.text==="}",Ft=ut&&this._flags.last_word==="function"&&this._flags.last_token.type===P.END_EXPR;if(this._options.brace_preserve_inline){var Vt=0,vr=null;this._flags.inline_frame=!0;do if(Vt+=1,vr=this._tokens.peek(Vt-1),vr.newlines){this._flags.inline_frame=!1;break}while(vr.type!==P.EOF&&!(vr.type===P.END_BLOCK&&vr.opened===j))}(this._options.brace_style==="expand"||this._options.brace_style==="none"&&j.newlines)&&!this._flags.inline_frame?this._flags.last_token.type!==P.OPERATOR&&(Ft||this._flags.last_token.type===P.EQUALS||De(this._flags.last_token,He)&&this._flags.last_token.text!=="else")?this._output.space_before_token=!0:this.print_newline(!1,!0):(M(this._previous_flags.mode)&&(this._flags.last_token.type===P.START_EXPR||this._flags.last_token.type===P.COMMA)&&((this._flags.last_token.type===P.COMMA||this._options.space_in_paren)&&(this._output.space_before_token=!0),(this._flags.last_token.type===P.COMMA||this._flags.last_token.type===P.START_EXPR&&this._flags.inline_frame)&&(this.allow_wrap_or_preserved_newline(j),this._previous_flags.multiline_frame=this._previous_flags.multiline_frame||this._flags.multiline_frame,this._flags.multiline_frame=!1)),this._flags.last_token.type!==P.OPERATOR&&this._flags.last_token.type!==P.START_EXPR&&(G(this._flags.last_token.type,[P.START_BLOCK,P.SEMICOLON])&&!this._flags.inline_frame?this.print_newline():this._output.space_before_token=!0)),this.print_token(j),this.indent(),!ut&&!(this._options.brace_preserve_inline&&this._flags.inline_frame)&&this.print_newline()},xe.prototype.handle_end_block=function(j){for(this.handle_whitespace_and_comments(j);this._flags.mode===st.Statement;)this.restore_mode();var ee=this._flags.last_token.type===P.START_BLOCK;this._flags.inline_frame&&!ee?this._output.space_before_token=!0:this._options.brace_style==="expand"?ee||this.print_newline():ee||(M(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(j)},xe.prototype.handle_word=function(j){if(j.type===P.RESERVED){if(G(j.text,["set","get"])&&this._flags.mode!==st.ObjectLiteral)j.type=P.WORD;else if(j.text==="import"&&G(this._tokens.peek().text,["(","."]))j.type=P.WORD;else if(G(j.text,["as","from"])&&!this._flags.import_block)j.type=P.WORD;else if(this._flags.mode===st.ObjectLiteral){var ee=this._tokens.peek();ee.text===":"&&(j.type=P.WORD)}}if(this.start_of_statement(j)?De(this._flags.last_token,["var","let","const"])&&j.type===P.WORD&&(this._flags.declaration_statement=!0):j.newlines&&!ye(this._flags.mode)&&(this._flags.last_token.type!==P.OPERATOR||this._flags.last_token.text==="--"||this._flags.last_token.text==="++")&&this._flags.last_token.type!==P.EQUALS&&(this._options.preserve_newlines||!De(this._flags.last_token,["var","let","const","set","get"]))?(this.handle_whitespace_and_comments(j),this.print_newline()):this.handle_whitespace_and_comments(j),this._flags.do_block&&!this._flags.do_while)if(oe(j,"while")){this._output.space_before_token=!0,this.print_token(j),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&&oe(j,"else"))this._flags.else_block=!0;else{for(;this._flags.mode===st.Statement;)this.restore_mode();this._flags.if_block=!1,this._flags.else_block=!1}if(this._flags.in_case_statement&&De(j,["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(j),this._flags.in_case=!0;return}if((this._flags.last_token.type===P.COMMA||this._flags.last_token.type===P.START_EXPR||this._flags.last_token.type===P.EQUALS||this._flags.last_token.type===P.OPERATOR)&&!this.start_of_object_property()&&!(G(this._flags.last_token.text,["+","-"])&&this._last_last_text===":"&&this._flags.parent.mode===st.ObjectLiteral)&&this.allow_wrap_or_preserved_newline(j),oe(j,"function")){(G(this._flags.last_token.text,["}",";"])||this._output.just_added_newline()&&!(G(this._flags.last_token.text,["(","[","{",":","=",","])||this._flags.last_token.type===P.OPERATOR))&&!this._output.just_added_blankline()&&!j.comments_before&&(this.print_newline(),this.print_newline(!0)),this._flags.last_token.type===P.RESERVED||this._flags.last_token.type===P.WORD?De(this._flags.last_token,["get","set","new","export"])||De(this._flags.last_token,z)?this._output.space_before_token=!0:oe(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===P.OPERATOR||this._flags.last_token.text==="="?this._output.space_before_token=!0:!this._flags.multiline_frame&&(ye(this._flags.mode)||M(this._flags.mode))||this.print_newline(),this.print_token(j),this._flags.last_word=j.text;return}var _e="NONE";if(this._flags.last_token.type===P.END_BLOCK?this._previous_flags.inline_frame?_e="SPACE":De(j,["else","catch","finally","from"])?this._options.brace_style==="expand"||this._options.brace_style==="end-expand"||this._options.brace_style==="none"&&j.newlines?_e="NEWLINE":(_e="SPACE",this._output.space_before_token=!0):_e="NEWLINE":this._flags.last_token.type===P.SEMICOLON&&this._flags.mode===st.BlockStatement?_e="NEWLINE":this._flags.last_token.type===P.SEMICOLON&&ye(this._flags.mode)?_e="SPACE":this._flags.last_token.type===P.STRING?_e="NEWLINE":this._flags.last_token.type===P.RESERVED||this._flags.last_token.type===P.WORD||this._flags.last_token.text==="*"&&(G(this._last_last_text,["function","yield"])||this._flags.mode===st.ObjectLiteral&&G(this._last_last_text,["{",","]))?_e="SPACE":this._flags.last_token.type===P.START_BLOCK?this._flags.inline_frame?_e="SPACE":_e="NEWLINE":this._flags.last_token.type===P.END_EXPR&&(this._output.space_before_token=!0,_e="NEWLINE"),De(j,K)&&this._flags.last_token.text!==")"&&(this._flags.inline_frame||this._flags.last_token.text==="else"||this._flags.last_token.text==="export"?_e="SPACE":_e="NEWLINE"),De(j,["else","catch","finally"]))if((!(this._flags.last_token.type===P.END_BLOCK&&this._previous_flags.mode===st.BlockStatement)||this._options.brace_style==="expand"||this._options.brace_style==="end-expand"||this._options.brace_style==="none"&&j.newlines)&&!this._flags.inline_frame)this.print_newline();else{this._output.trim(!0);var ut=this._output.current_line;ut.last()!=="}"&&this.print_newline(),this._output.space_before_token=!0}else _e==="NEWLINE"?De(this._flags.last_token,He)?this._output.space_before_token=!0:this._flags.last_token.text==="declare"&&De(j,["var","let","const"])?this._output.space_before_token=!0:this._flags.last_token.type!==P.END_EXPR?(this._flags.last_token.type!==P.START_EXPR||!De(j,["var","let","const"]))&&this._flags.last_token.text!==":"&&(oe(j,"if")&&oe(j.previous,"else")?this._output.space_before_token=!0:this.print_newline()):De(j,K)&&this._flags.last_token.text!==")"&&this.print_newline():this._flags.multiline_frame&&M(this._flags.mode)&&this._flags.last_token.text===","&&this._last_last_text==="}"?this.print_newline():_e==="SPACE"&&(this._output.space_before_token=!0);j.previous&&(j.previous.type===P.WORD||j.previous.type===P.RESERVED)&&(this._output.space_before_token=!0),this.print_token(j),this._flags.last_word=j.text,j.type===P.RESERVED&&(j.text==="do"?this._flags.do_block=!0:j.text==="if"?this._flags.if_block=!0:j.text==="import"?this._flags.import_block=!0:this._flags.import_block&&oe(j,"from")&&(this._flags.import_block=!1))},xe.prototype.handle_semicolon=function(j){this.start_of_statement(j)?this._output.space_before_token=!1:this.handle_whitespace_and_comments(j);for(var ee=this._tokens.peek();this._flags.mode===st.Statement&&!(this._flags.if_block&&oe(ee,"else"))&&!this._flags.do_block;)this.restore_mode();this._flags.import_block&&(this._flags.import_block=!1),this.print_token(j)},xe.prototype.handle_string=function(j){j.text.startsWith("`")&&j.newlines===0&&j.whitespace_before===""&&(j.previous.text===")"||this._flags.last_token.type===P.WORD)||(this.start_of_statement(j)?this._output.space_before_token=!0:(this.handle_whitespace_and_comments(j),this._flags.last_token.type===P.RESERVED||this._flags.last_token.type===P.WORD||this._flags.inline_frame?this._output.space_before_token=!0:this._flags.last_token.type===P.COMMA||this._flags.last_token.type===P.START_EXPR||this._flags.last_token.type===P.EQUALS||this._flags.last_token.type===P.OPERATOR?this.start_of_object_property()||this.allow_wrap_or_preserved_newline(j):j.text.startsWith("`")&&this._flags.last_token.type===P.END_EXPR&&(j.previous.text==="]"||j.previous.text===")")&&j.newlines===0?this._output.space_before_token=!0:this.print_newline())),this.print_token(j)},xe.prototype.handle_equals=function(j){this.start_of_statement(j)||this.handle_whitespace_and_comments(j),this._flags.declaration_statement&&(this._flags.declaration_assignment=!0),this._output.space_before_token=!0,this.print_token(j),this._output.space_before_token=!0},xe.prototype.handle_comma=function(j){this.handle_whitespace_and_comments(j,!0),this.print_token(j),this._output.space_before_token=!0,this._flags.declaration_statement?(ye(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(j)):this._flags.mode===st.ObjectLiteral||this._flags.mode===st.Statement&&this._flags.parent.mode===st.ObjectLiteral?(this._flags.mode===st.Statement&&this.restore_mode(),this._flags.inline_frame||this.print_newline()):this._options.comma_first&&this.allow_wrap_or_preserved_newline(j)},xe.prototype.handle_operator=function(j){var ee=j.text==="*"&&(De(this._flags.last_token,["function","yield"])||G(this._flags.last_token.type,[P.START_BLOCK,P.COMMA,P.END_BLOCK,P.SEMICOLON])),_e=G(j.text,["-","+"])&&(G(this._flags.last_token.type,[P.START_BLOCK,P.START_EXPR,P.EQUALS,P.OPERATOR])||G(this._flags.last_token.text,K)||this._flags.last_token.text===",");if(!this.start_of_statement(j)){var ut=!ee;this.handle_whitespace_and_comments(j,ut)}if(j.text==="*"&&this._flags.last_token.type===P.DOT){this.print_token(j);return}if(j.text==="::"){this.print_token(j);return}if(G(j.text,["-","+"])&&this.start_of_object_property()){this.print_token(j);return}if(this._flags.last_token.type===P.OPERATOR&&G(this._options.operator_position,qe)&&this.allow_wrap_or_preserved_newline(j),j.text===":"&&this._flags.in_case){this.print_token(j),this._flags.in_case=!1,this._flags.case_body=!0,this._tokens.peek().type!==P.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 Ft=!0,Vt=!0,vr=!1;if(j.text===":"?this._flags.ternary_depth===0?Ft=!1:(this._flags.ternary_depth-=1,vr=!0):j.text==="?"&&(this._flags.ternary_depth+=1),!_e&&!ee&&this._options.preserve_newlines&&G(j.text,V)){var Yr=j.text===":",wr=Yr&&vr,fr=Yr&&!vr;switch(this._options.operator_position){case Ue.before_newline:this._output.space_before_token=!fr,this.print_token(j),(!Yr||wr)&&this.allow_wrap_or_preserved_newline(j),this._output.space_before_token=!0;return;case Ue.after_newline:this._output.space_before_token=!0,!Yr||wr?this._tokens.peek().newlines?this.print_newline(!1,!0):this.allow_wrap_or_preserved_newline(j):this._output.space_before_token=!1,this.print_token(j),this._output.space_before_token=!0;return;case Ue.preserve_newline:fr||this.allow_wrap_or_preserved_newline(j),Ft=!(this._output.just_added_newline()||fr),this._output.space_before_token=Ft,this.print_token(j),this._output.space_before_token=!0;return}}if(ee){this.allow_wrap_or_preserved_newline(j),Ft=!1;var dn=this._tokens.peek();Vt=dn&&G(dn.type,[P.WORD,P.RESERVED])}else if(j.text==="...")this.allow_wrap_or_preserved_newline(j),Ft=this._flags.last_token.type===P.START_BLOCK,Vt=!1;else if(G(j.text,["--","++","!","~"])||_e){if((this._flags.last_token.type===P.COMMA||this._flags.last_token.type===P.START_EXPR)&&this.allow_wrap_or_preserved_newline(j),Ft=!1,Vt=!1,j.newlines&&(j.text==="--"||j.text==="++"||j.text==="~")){var ar=De(this._flags.last_token,He)&&j.newlines;ar&&(this._previous_flags.if_block||this._previous_flags.else_block)&&this.restore_mode(),this.print_newline(ar,!0)}this._flags.last_token.text===";"&&ye(this._flags.mode)&&(Ft=!0),this._flags.last_token.type===P.RESERVED?Ft=!0:this._flags.last_token.type===P.END_EXPR?Ft=!(this._flags.last_token.text==="]"&&(j.text==="--"||j.text==="++")):this._flags.last_token.type===P.OPERATOR&&(Ft=G(j.text,["--","-","++","+"])&&G(this._flags.last_token.text,["--","-","++","+"]),G(j.text,["+","-"])&&G(this._flags.last_token.text,["--","++"])&&(Vt=!0)),(this._flags.mode===st.BlockStatement&&!this._flags.inline_frame||this._flags.mode===st.Statement)&&(this._flags.last_token.text==="{"||this._flags.last_token.text===";")&&this.print_newline()}this._output.space_before_token=this._output.space_before_token||Ft,this.print_token(j),this._output.space_before_token=Vt},xe.prototype.handle_block_comment=function(j,ee){if(this._output.raw){this._output.add_raw_token(j),j.directives&&j.directives.preserve==="end"&&(this._output.raw=this._options.test_output_raw);return}if(j.directives){this.print_newline(!1,ee),this.print_token(j),j.directives.preserve==="start"&&(this._output.raw=!0),this.print_newline(!1,!0);return}if(!L.newline.test(j.text)&&!j.newlines){this._output.space_before_token=!0,this.print_token(j),this._output.space_before_token=!0;return}else this.print_block_commment(j,ee)},xe.prototype.print_block_commment=function(j,ee){var _e=pe(j.text),ut,Ft=!1,Vt=!1,vr=j.whitespace_before,Yr=vr.length;if(this.print_newline(!1,ee),this.print_token_line_indentation(j),this._output.add_token(_e[0]),this.print_newline(!1,ee),_e.length>1){for(_e=_e.slice(1),Ft=Te(_e,"*"),Vt=me(_e,vr),Ft&&(this._flags.alignment=1),ut=0;ut<_e.length;ut++)Ft?(this.print_token_line_indentation(j),this._output.add_token(Z(_e[ut]))):Vt&&_e[ut]?(this.print_token_line_indentation(j),this._output.add_token(_e[ut].substring(Yr))):(this._output.current_line.set_indent(-1),this._output.add_token(_e[ut])),this.print_newline(!1,ee);this._flags.alignment=0}},xe.prototype.handle_comment=function(j,ee){j.newlines?this.print_newline(!1,ee):this._output.trim(!0),this._output.space_before_token=!0,this.print_token(j),this.print_newline(!1,ee)},xe.prototype.handle_dot=function(j){this.start_of_statement(j)||this.handle_whitespace_and_comments(j,!0),this._flags.last_token.text.match("^[0-9]+$")&&(this._output.space_before_token=!0),De(this._flags.last_token,He)?this._output.space_before_token=!1:this.allow_wrap_or_preserved_newline(j,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(j)},xe.prototype.handle_unknown=function(j,ee){this.print_token(j),j.text[j.text.length-1]===`
|
|
|
`&&this.print_newline(!1,ee)},xe.prototype.handle_eof=function(j){for(;this._flags.mode===st.Statement;)this.restore_mode();this.handle_whitespace_and_comments(j)},R.exports.Beautifier=xe},function(R){function u(w){this.__parent=w,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=[]}u.prototype.clone_empty=function(){var w=new u(this.__parent);return w.set_indent(this.__indent_count,this.__alignment_count),w},u.prototype.item=function(w){return w<0?this.__items[this.__items.length+w]:this.__items[w]},u.prototype.has_match=function(w){for(var L=this.__items.length-1;L>=0;L--)if(this.__items[L].match(w))return!0;return!1},u.prototype.set_indent=function(w,L){this.is_empty()&&(this.__indent_count=w||0,this.__alignment_count=L||0,this.__character_count=this.__parent.get_indent_size(this.__indent_count,this.__alignment_count))},u.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)},u.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},u.prototype._allow_wrap=function(){if(this._should_wrap()){this.__parent.add_new_line();var w=this.__parent.current_line;return w.set_indent(this.__wrap_point_indent_count,this.__wrap_point_alignment_count),w.__items=this.__items.slice(this.__wrap_point_index),this.__items=this.__items.slice(0,this.__wrap_point_index),w.__character_count+=this.__character_count-this.__wrap_point_character_count,this.__character_count=this.__wrap_point_character_count,w.__items[0]===" "&&(w.__items.splice(0,1),w.__character_count-=1),!0}return!1},u.prototype.is_empty=function(){return this.__items.length===0},u.prototype.last=function(){return this.is_empty()?null:this.__items[this.__items.length-1]},u.prototype.push=function(w){this.__items.push(w);var L=w.lastIndexOf(`
|
|
|
`);L!==-1?this.__character_count=w.length-L:this.__character_count+=w.length},u.prototype.pop=function(){var w=null;return this.is_empty()||(w=this.__items.pop(),this.__character_count-=w.length),w},u.prototype._remove_indent=function(){this.__indent_count>0&&(this.__indent_count-=1,this.__character_count-=this.__parent.indent_size)},u.prototype._remove_wrap_indent=function(){this.__wrap_point_indent_count>0&&(this.__wrap_point_indent_count-=1)},u.prototype.trim=function(){for(;this.last()===" ";)this.__items.pop(),this.__character_count-=1},u.prototype.toString=function(){var w="";return this.is_empty()?this.__parent.indent_empty_lines&&(w=this.__parent.get_indent_string(this.__indent_count)):(w=this.__parent.get_indent_string(this.__indent_count,this.__alignment_count),w+=this.__items.join("")),w};function C(w,L){this.__cache=[""],this.__indent_size=w.indent_size,this.__indent_string=w.indent_char,w.indent_with_tabs||(this.__indent_string=new Array(w.indent_size+1).join(w.indent_char)),L=L||"",w.indent_level>0&&(L=new Array(w.indent_level+1).join(this.__indent_string)),this.__base_string=L,this.__base_string_length=L.length}C.prototype.get_indent_size=function(w,L){var B=this.__base_string_length;return L=L||0,w<0&&(B=0),B+=w*this.__indent_size,B+=L,B},C.prototype.get_indent_string=function(w,L){var B=this.__base_string;return L=L||0,w<0&&(w=0,B=""),L+=w*this.__indent_size,this.__ensure_cache(L),B+=this.__cache[L],B},C.prototype.__ensure_cache=function(w){for(;w>=this.__cache.length;)this.__add_column()},C.prototype.__add_column=function(){var w=this.__cache.length,L=0,B="";this.__indent_size&&w>=this.__indent_size&&(L=Math.floor(w/this.__indent_size),w-=L*this.__indent_size,B=new Array(L+1).join(this.__indent_string)),w&&(B+=new Array(w+1).join(" ")),this.__cache.push(B)};function H(w,L){this.__indent_cache=new C(w,L),this.raw=!1,this._end_with_newline=w.end_with_newline,this.indent_size=w.indent_size,this.wrap_line_length=w.wrap_line_length,this.indent_empty_lines=w.indent_empty_lines,this.__lines=[],this.previous_line=null,this.current_line=null,this.next_line=new u(this),this.space_before_token=!1,this.non_breaking_space=!1,this.previous_token_wrapped=!1,this.__add_outputline()}H.prototype.__add_outputline=function(){this.previous_line=this.current_line,this.current_line=this.next_line.clone_empty(),this.__lines.push(this.current_line)},H.prototype.get_line_number=function(){return this.__lines.length},H.prototype.get_indent_string=function(w,L){return this.__indent_cache.get_indent_string(w,L)},H.prototype.get_indent_size=function(w,L){return this.__indent_cache.get_indent_size(w,L)},H.prototype.is_empty=function(){return!this.previous_line&&this.current_line.is_empty()},H.prototype.add_new_line=function(w){return this.is_empty()||!w&&this.just_added_newline()?!1:(this.raw||this.__add_outputline(),!0)},H.prototype.get_code=function(w){this.trim(!0);var L=this.current_line.pop();L&&(L[L.length-1]===`
|
|
|
`&&(L=L.replace(/\n+$/g,"")),this.current_line.push(L)),this._end_with_newline&&this.__add_outputline();var B=this.__lines.join(`
|
|
|
`);return w!==`
|
|
|
`&&(B=B.replace(/[\n]/g,w)),B},H.prototype.set_wrap_point=function(){this.current_line._set_wrap_point()},H.prototype.set_indent=function(w,L){return w=w||0,L=L||0,this.next_line.set_indent(w,L),this.__lines.length>1?(this.current_line.set_indent(w,L),!0):(this.current_line.set_indent(),!1)},H.prototype.add_raw_token=function(w){for(var L=0;L<w.newlines;L++)this.__add_outputline();this.current_line.set_indent(-1),this.current_line.push(w.whitespace_before),this.current_line.push(w.text),this.space_before_token=!1,this.non_breaking_space=!1,this.previous_token_wrapped=!1},H.prototype.add_token=function(w){this.__add_space_before_token(),this.current_line.push(w),this.space_before_token=!1,this.non_breaking_space=!1,this.previous_token_wrapped=this.current_line._allow_wrap()},H.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(" "))},H.prototype.remove_indent=function(w){for(var L=this.__lines.length;w<L;)this.__lines[w]._remove_indent(),w++;this.current_line._remove_wrap_indent()},H.prototype.trim=function(w){for(w=w===void 0?!1:w,this.current_line.trim();w&&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},H.prototype.just_added_newline=function(){return this.current_line.is_empty()},H.prototype.just_added_blankline=function(){return this.is_empty()||this.current_line.is_empty()&&this.previous_line.is_empty()},H.prototype.ensure_empty_line_above=function(w,L){for(var B=this.__lines.length-2;B>=0;){var k=this.__lines[B];if(k.is_empty())break;if(k.item(0).indexOf(w)!==0&&k.item(-1)!==L){this.__lines.splice(B+1,0,new u(this)),this.previous_line=this.__lines[this.__lines.length-2];break}B--}},R.exports.Output=H},function(R){function u(C,H,w,L){this.type=C,this.text=H,this.comments_before=null,this.newlines=w||0,this.whitespace_before=L||"",this.parent=null,this.next=null,this.previous=null,this.opened=null,this.closed=null,this.directives=null}R.exports.Token=u},function(R,u){var C="\\x23\\x24\\x40\\x41-\\x5a\\x5f\\x61-\\x7a",H="\\x24\\x30-\\x39\\x41-\\x5a\\x5f\\x61-\\x7a",w="\\xaa\\xb5\\xba\\xc0-\\xd6\\xd8-\\xf6\\xf8-\\u02c1\\u02c6-\\u02d1\\u02e0-\\u02e4\\u02ec\\u02ee\\u0370-\\u0374\\u0376\\u0377\\u037a-\\u037d\\u0386\\u0388-\\u038a\\u038c\\u038e-\\u03a1\\u03a3-\\u03f5\\u03f7-\\u0481\\u048a-\\u0527\\u0531-\\u0556\\u0559\\u0561-\\u0587\\u05d0-\\u05ea\\u05f0-\\u05f2\\u0620-\\u064a\\u066e\\u066f\\u0671-\\u06d3\\u06d5\\u06e5\\u06e6\\u06ee\\u06ef\\u06fa-\\u06fc\\u06ff\\u0710\\u0712-\\u072f\\u074d-\\u07a5\\u07b1\\u07ca-\\u07ea\\u07f4\\u07f5\\u07fa\\u0800-\\u0815\\u081a\\u0824\\u0828\\u0840-\\u0858\\u08a0\\u08a2-\\u08ac\\u0904-\\u0939\\u093d\\u0950\\u0958-\\u0961\\u0971-\\u0977\\u0979-\\u097f\\u0985-\\u098c\\u098f\\u0990\\u0993-\\u09a8\\u09aa-\\u09b0\\u09b2\\u09b6-\\u09b9\\u09bd\\u09ce\\u09dc\\u09dd\\u09df-\\u09e1\\u09f0\\u09f1\\u0a05-\\u0a0a\\u0a0f\\u0a10\\u0a13-\\u0a28\\u0a2a-\\u0a30\\u0a32\\u0a33\\u0a35\\u0a36\\u0a38\\u0a39\\u0a59-\\u0a5c\\u0a5e\\u0a72-\\u0a74\\u0a85-\\u0a8d\\u0a8f-\\u0a91\\u0a93-\\u0aa8\\u0aaa-\\u0ab0\\u0ab2\\u0ab3\\u0ab5-\\u0ab9\\u0abd\\u0ad0\\u0ae0\\u0ae1\\u0b05-\\u0b0c\\u0b0f\\u0b10\\u0b13-\\u0b28\\u0b2a-\\u0b30\\u0b32\\u0b33\\u0b35-\\u0b39\\u0b3d\\u0b5c\\u0b5d\\u0b5f-\\u0b61\\u0b71\\u0b83\\u0b85-\\u0b8a\\u0b8e-\\u0b90\\u0b92-\\u0b95\\u0b99\\u0b9a\\u0b9c\\u0b9e\\u0b9f\\u0ba3\\u0ba4\\u0ba8-\\u0baa\\u0bae-\\u0bb9\\u0bd0\\u0c05-\\u0c0c\\u0c0e-\\u0c10\\u0c12-\\u0c28\\u0c2a-\\u0c33\\u0c35-\\u0c39\\u0c3d\\u0c58\\u0c59\\u0c60\\u0c61\\u0c85-\\u0c8c\\u0c8e-\\u0c90\\u0c92-\\u0ca8\\u0caa-\\u0cb3\\u0cb5-\\u0cb9\\u0cbd\\u0cde\\u0ce0\\u0ce1\\u0cf1\\u0cf2\\u0d05-\\u0d0c\\u0d0e-\\u0d10\\u0d12-\\u0d3a\\u0d3d\\u0d4e\\u0d60\\u0d61\\u0d7a-\\u0d7f\\u0d85-\\u0d96\\u0d9a-\\u0db1\\u0db3-\\u0dbb\\u0dbd\\u0dc0-\\u0dc6\\u0e01-\\u0e30\\u0e32\\u0e33\\u0e40-\\u0e46\\u0e81\\u0e82\\u0e84\\u0e87\\u0e88\\u0e8a\\u0e8d\\u0e94-\\u0e97\\u0e99-\\u0e9f\\u0ea1-\\u0ea3\\u0ea5\\u0ea7\\u0eaa\\u0eab\\u0ead-\\u0eb0\\u0eb2\\u0eb3\\u0ebd\\u0ec0-\\u0ec4\\u0ec6\\u0edc-\\u0edf\\u0f00\\u0f40-\\u0f47\\u0f49-\\u0f6c\\u0f88-\\u0f8c\\u1000-\\u102a\\u103f\\u1050-\\u1055\\u105a-\\u105d\\u1061\\u1065\\u1066\\u106e-\\u1070\\u1075-\\u1081\\u108e\\u10a0-\\u10c5\\u10c7\\u10cd\\u10d0-\\u10fa\\u10fc-\\u1248\\u124a-\\u124d\\u1250-\\u1256\\u1258\\u125a-\\u125d\\u1260-\\u1288\\u128a-\\u128d\\u1290-\\u12b0\\u12b2-\\u12b5\\u12b8-\\u12be\\u12c0\\u12c2-\\u12c5\\u12c8-\\u12d6\\u12d8-\\u1310\\u1312-\\u1315\\u1318-\\u135a\\u1380-\\u138f\\u13a0-\\u13f4\\u1401-\\u166c\\u166f-\\u167f\\u1681-\\u169a\\u16a0-\\u16ea\\u16ee-\\u16f0\\u1700-\\u170c\\u170e-\\u1711\\u1720-\\u1731\\u1740-\\u1751\\u1760-\\u176c\\u176e-\\u1770\\u1780-\\u17b3\\u17d7\\u17dc\\u1820-\\u1877\\u1880-\\u18a8\\u18aa\\u18b0-\\u18f5\\u1900-\\u191c\\u1950-\\u196d\\u1970-\\u1974\\u1980-\\u19ab\\u19c1-\\u19c7\\u1a00-\\u1a16\\u1a20-\\u1a54\\u1aa7\\u1b05-\\u1b33\\u1b45-\\u1b4b\\u1b83-\\u1ba0\\u1bae\\u1baf\\u1bba-\\u1be5\\u1c00-\\u1c23\\u1c4d-\\u1c4f\\u1c5a-\\u1c7d\\u1ce9-\\u1cec\\u1cee-\\u1cf1\\u1cf5\\u1cf6\\u1d00-\\u1dbf\\u1e00-\\u1f15\\u1f18-\\u1f1d\\u1f20-\\u1f45\\u1f48-\\u1f4d\\u1f50-\\u1f57\\u1f59\\u1f5b\\u1f5d\\u1f5f-\\u1f7d\\u1f80-\\u1fb4\\u1fb6-\\u1fbc\\u1fbe\\u1fc2-\\u1fc4\\u1fc6-\\u1fcc\\u1fd0-\\u1fd3\\u1fd6-\\u1fdb\\u1fe0-\\u1fec\\u1ff2-\\u1ff4\\u1ff6-\\u1ffc\\u2071\\u207f\\u2090-\\u209c\\u2102\\u2107\\u210a-\\u2113\\u2115\\u2119-\\u211d\\u2124\\u2126\\u2128\\u212a-\\u212d\\u212f-\\u2139\\u213c-\\u213f\\u2145-\\u2149\\u214e\\u2160-\\u2188\\u2c00-\\u2c2e\\u2c30-\\u2c5e\\u2c60-\\u2ce4\\u2ceb-\\u2cee\\u2cf2\\u2cf3\\u2d00-\\u2d25\\u2d27\\u2d2d\\u2d30-\\u2d67\\u2d6f\\u2d80-\\u2d96\\u2da0-\\u2da6\\u2da8-\\u2dae\\u2db0-\\u2db6\\u2db8-\\u2dbe\\u2dc0-\\u2dc6\\u2dc8-\\u2dce\\u2dd0-\\u2dd6\\u2dd8-\\u2dde\\u2e2f\\u3005-\\u3007\\u3021-\\u3029\\u3031-\\u3035\\u3038-\\u303c\\u3041-\\u3096\\u309d-\\u309f\\u30a1-\\u30fa\\u30fc-\\u30ff\\u3105-\\u312d\\u3131-\\u318e\\u31a0-\\u31ba\\u31f0-\\u31ff\\u3400-\\u4db5\\u4e00-\\u9fcc\\ua000-\\ua48c\\ua4d0-\\ua4fd\\ua500-\\ua60c\\ua610-\\ua61f\\ua62a\\ua62b\\ua640-\\ua66e\\ua67f-\\ua697\\ua6a0-\\ua6ef\\ua717-\\ua71f\\ua722-\\ua788\\ua78b-\\ua78e\\ua790-\\ua793\\ua7a0-\\ua7aa\\ua7f8-\\ua801\\ua803-\\ua805\\ua807-\\ua80a\\ua80c-\\ua822\\ua840-\\ua873\\ua882-\\ua8b3\\ua8f2-\\ua8f7\\ua8fb\\ua90a-\\ua925\\ua930-\\ua946\\ua960-\\ua97c\\ua984-\\ua9b2\\ua9cf\\uaa00-\\uaa28\\uaa40-\\uaa42\\uaa44-\\uaa4b\\uaa60-\\uaa76\\uaa7a\\uaa80-\\uaaaf\\uaab1\\uaab5\\uaab6\\uaab9-\\uaabd\\uaac0\\uaac2\\uaadb-\\uaadd\\uaae0-\\uaaea\\uaaf2-\\uaaf4\\uab01-\\uab06\\uab09-\\uab0e\\uab11-\\uab16\\uab20-\\uab26\\uab28-\\uab2e\\uabc0-\\uabe2\\uac00-\\ud7a3\\ud7b0-\\ud7c6\\ud7cb-\\ud7fb\\uf900-\\ufa6d\\ufa70-\\ufad9\\ufb00-\\ufb06\\ufb13-\\ufb17\\ufb1d\\ufb1f-\\ufb28\\ufb2a-\\ufb36\\ufb38-\\ufb3c\\ufb3e\\ufb40\\ufb41\\ufb43\\ufb44\\ufb46-\\ufbb1\\ufbd3-\\ufd3d\\ufd50-\\ufd8f\\ufd92-\\ufdc7\\ufdf0-\\ufdfb\\ufe70-\\ufe74\\ufe76-\\ufefc\\uff21-\\uff3a\\uff41-\\uff5a\\uff66-\\uffbe\\uffc2-\\uffc7\\uffca-\\uffcf\\uffd2-\\uffd7\\uffda-\\uffdc",L="\\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",B="\\\\u[0-9a-fA-F]{4}|\\\\u\\{[0-9a-fA-F]+\\}",k="(?:"+B+"|["+C+w+"])",K="(?:"+B+"|["+H+w+L+"])*";u.identifier=new RegExp(k+K,"g"),u.identifierStart=new RegExp(k),u.identifierMatch=new RegExp("(?:"+B+"|["+H+w+L+"])+");var V=/[\u1680\u180e\u2000-\u200a\u202f\u205f\u3000\ufeff]/;u.newline=/[\n\r\u2028\u2029]/,u.lineBreak=new RegExp(`\r
|
|
|
|`+u.newline.source),u.allLineBreaks=new RegExp(u.lineBreak.source,"g")},function(R,u,C){var H=C(6).Options,w=["before-newline","after-newline","preserve-newline"];function L(B){H.call(this,B,"js");var k=this.raw_options.brace_style||null;k==="expand-strict"?this.raw_options.brace_style="expand":k==="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 K=this._get_selection_list("brace_style",["collapse","expand","end-expand","none","preserve-inline"]);this.brace_preserve_inline=!1,this.brace_style="collapse";for(var V=0;V<K.length;V++)K[V]==="preserve-inline"?this.brace_preserve_inline=!0:this.brace_style=K[V];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",w),this.test_output_raw=this._get_boolean("test_output_raw"),this.jslint_happy&&(this.space_after_anon_function=!0)}L.prototype=new H,R.exports.Options=L},function(R){function u(w,L){this.raw_options=C(w,L),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"])}u.prototype._get_array=function(w,L){var B=this.raw_options[w],k=L||[];return typeof B=="object"?B!==null&&typeof B.concat=="function"&&(k=B.concat()):typeof B=="string"&&(k=B.split(/[^a-zA-Z0-9_\/\-]+/)),k},u.prototype._get_boolean=function(w,L){var B=this.raw_options[w],k=B===void 0?!!L:!!B;return k},u.prototype._get_characters=function(w,L){var B=this.raw_options[w],k=L||"";return typeof B=="string"&&(k=B.replace(/\\r/,"\r").replace(/\\n/,`
|
|
|
`).replace(/\\t/," ")),k},u.prototype._get_number=function(w,L){var B=this.raw_options[w];L=parseInt(L,10),isNaN(L)&&(L=0);var k=parseInt(B,10);return isNaN(k)&&(k=L),k},u.prototype._get_selection=function(w,L,B){var k=this._get_selection_list(w,L,B);if(k.length!==1)throw new Error("Invalid Option Value: The option '"+w+`' can only be one of the following values:
|
|
|
`+L+`
|
|
|
You passed in: '`+this.raw_options[w]+"'");return k[0]},u.prototype._get_selection_list=function(w,L,B){if(!L||L.length===0)throw new Error("Selection list cannot be empty.");if(B=B||[L[0]],!this._is_valid_selection(B,L))throw new Error("Invalid Default Value!");var k=this._get_array(w,B);if(!this._is_valid_selection(k,L))throw new Error("Invalid Option Value: The option '"+w+`' can contain only the following values:
|
|
|
`+L+`
|
|
|
You passed in: '`+this.raw_options[w]+"'");return k},u.prototype._is_valid_selection=function(w,L){return w.length&&L.length&&!w.some(function(B){return L.indexOf(B)===-1})};function C(w,L){var B={};w=H(w);var k;for(k in w)k!==L&&(B[k]=w[k]);if(L&&w[L])for(k in w[L])B[k]=w[L][k];return B}function H(w){var L={},B;for(B in w){var k=B.replace(/-/g,"_");L[k]=w[B]}return L}R.exports.Options=u,R.exports.normalizeOpts=H,R.exports.mergeOpts=C},function(R,u,C){var H=C(8).InputScanner,w=C(9).Tokenizer,L=C(9).TOKEN,B=C(13).Directives,k=C(4),K=C(12).Pattern,V=C(14).TemplatablePattern;function P(Te,me){return me.indexOf(Te)!==-1}var G={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:L.START,RAW:L.RAW,EOF:L.EOF},Z=new B(/\/\*/,/\*\//),se=/0[xX][0123456789abcdefABCDEF_]*n?|0[oO][01234567_]*n?|0[bB][01_]*n?|\d[\d_]*n|(?:\.\d[\d_]*|\d[\d_]*\.?[\d_]*)(?:[eE][+-]?[\d_]+)?/,oe=/[0-9]/,De=/[^\d\.]/,He=">>> === !== &&= ??= ||= << && >= ** != == <= >> || ?? |> < / - + > : & % ? ^ | *".split(" "),Qe=">>>= ... >>= <<= === >>> !== **= &&= ??= ||= => ^= :: /= << <= == && -= >= >> != -- += ** || ?? ++ %= &= *= |= |> = ! ? > < : / ^ - + * & % ~ |";Qe=Qe.replace(/[-[\]{}()*+?.,\\^$|#]/g,"\\$&"),Qe="\\?\\.(?!\\d) "+Qe,Qe=Qe.replace(/ /g,"|");var Ue=new RegExp(Qe),qe="continue,try,throw,return,var,let,const,if,switch,case,default,for,while,break,function,import,export".split(","),st=qe.concat(["do","in","of","else","get","set","new","catch","finally","typeof","yield","async","await","from","as","class","extends"]),Pe=new RegExp("^(?:"+st.join("|")+")$"),pe,M=function(Te,me){w.call(this,Te,me),this._patterns.whitespace=this._patterns.whitespace.matching(/\u00A0\u1680\u180e\u2000-\u200a\u202f\u205f\u3000\ufeff/.source,/\u2028\u2029/.source);var xe=new K(this._input),z=new V(this._input).read_options(this._options);this.__patterns={template:z,identifier:z.starting_with(k.identifier).matching(k.identifierMatch),number:xe.matching(se),punct:xe.matching(Ue),comment:xe.starting_with(/\/\//).until(/[\n\r\u2028\u2029]/),block_comment:xe.starting_with(/\/\*/).until_after(/\*\//),html_comment_start:xe.matching(/<!--/),html_comment_end:xe.matching(/-->/),include:xe.starting_with(/#include/).until_after(k.lineBreak),shebang:xe.starting_with(/#!/).until_after(k.lineBreak),xml:xe.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:z.until(/['\\\n\r\u2028\u2029]/),double_quote:z.until(/["\\\n\r\u2028\u2029]/),template_text:z.until(/[`\\$]/),template_expression:z.until(/[`}\\]/)}};M.prototype=new w,M.prototype._is_comment=function(Te){return Te.type===G.COMMENT||Te.type===G.BLOCK_COMMENT||Te.type===G.UNKNOWN},M.prototype._is_opening=function(Te){return Te.type===G.START_BLOCK||Te.type===G.START_EXPR},M.prototype._is_closing=function(Te,me){return(Te.type===G.END_BLOCK||Te.type===G.END_EXPR)&&me&&(Te.text==="]"&&me.text==="["||Te.text===")"&&me.text==="("||Te.text==="}"&&me.text==="{")},M.prototype._reset=function(){pe=!1},M.prototype._get_next_token=function(Te,me){var xe=null;this._readWhitespace();var z=this._input.peek();return z===null?this._create_token(G.EOF,""):(xe=xe||this._read_non_javascript(z),xe=xe||this._read_string(z),xe=xe||this._read_pair(z,this._input.peek(1)),xe=xe||this._read_word(Te),xe=xe||this._read_singles(z),xe=xe||this._read_comment(z),xe=xe||this._read_regexp(z,Te),xe=xe||this._read_xml(z,Te),xe=xe||this._read_punctuation(),xe=xe||this._create_token(G.UNKNOWN,this._input.next()),xe)},M.prototype._read_word=function(Te){var me;if(me=this.__patterns.identifier.read(),me!=="")return me=me.replace(k.allLineBreaks,`
|
|
|
`),!(Te.type===G.DOT||Te.type===G.RESERVED&&(Te.text==="set"||Te.text==="get"))&&Pe.test(me)?(me==="in"||me==="of")&&(Te.type===G.WORD||Te.type===G.STRING)?this._create_token(G.OPERATOR,me):this._create_token(G.RESERVED,me):this._create_token(G.WORD,me);if(me=this.__patterns.number.read(),me!=="")return this._create_token(G.WORD,me)},M.prototype._read_singles=function(Te){var me=null;return Te==="("||Te==="["?me=this._create_token(G.START_EXPR,Te):Te===")"||Te==="]"?me=this._create_token(G.END_EXPR,Te):Te==="{"?me=this._create_token(G.START_BLOCK,Te):Te==="}"?me=this._create_token(G.END_BLOCK,Te):Te===";"?me=this._create_token(G.SEMICOLON,Te):Te==="."&&De.test(this._input.peek(1))?me=this._create_token(G.DOT,Te):Te===","&&(me=this._create_token(G.COMMA,Te)),me&&this._input.next(),me},M.prototype._read_pair=function(Te,me){var xe=null;return Te==="#"&&me==="{"&&(xe=this._create_token(G.START_BLOCK,Te+me)),xe&&(this._input.next(),this._input.next()),xe},M.prototype._read_punctuation=function(){var Te=this.__patterns.punct.read();if(Te!=="")return Te==="="?this._create_token(G.EQUALS,Te):Te==="?."?this._create_token(G.DOT,Te):this._create_token(G.OPERATOR,Te)},M.prototype._read_non_javascript=function(Te){var me="";if(Te==="#"){if(this._is_first_token()&&(me=this.__patterns.shebang.read(),me))return this._create_token(G.UNKNOWN,me.trim()+`
|
|
|
`);if(me=this.__patterns.include.read(),me)return this._create_token(G.UNKNOWN,me.trim()+`
|
|
|
`);Te=this._input.next();var xe="#";if(this._input.hasNext()&&this._input.testChar(oe)){do Te=this._input.next(),xe+=Te;while(this._input.hasNext()&&Te!=="#"&&Te!=="=");return Te==="#"||(this._input.peek()==="["&&this._input.peek(1)==="]"?(xe+="[]",this._input.next(),this._input.next()):this._input.peek()==="{"&&this._input.peek(1)==="}"&&(xe+="{}",this._input.next(),this._input.next())),this._create_token(G.WORD,xe)}this._input.back()}else if(Te==="<"&&this._is_first_token()){if(me=this.__patterns.html_comment_start.read(),me){for(;this._input.hasNext()&&!this._input.testChar(k.newline);)me+=this._input.next();return pe=!0,this._create_token(G.COMMENT,me)}}else if(pe&&Te==="-"&&(me=this.__patterns.html_comment_end.read(),me))return pe=!1,this._create_token(G.COMMENT,me);return null},M.prototype._read_comment=function(Te){var me=null;if(Te==="/"){var xe="";if(this._input.peek(1)==="*"){xe=this.__patterns.block_comment.read();var z=Z.get_directives(xe);z&&z.ignore==="start"&&(xe+=Z.readIgnored(this._input)),xe=xe.replace(k.allLineBreaks,`
|
|
|
`),me=this._create_token(G.BLOCK_COMMENT,xe),me.directives=z}else this._input.peek(1)==="/"&&(xe=this.__patterns.comment.read(),me=this._create_token(G.COMMENT,xe))}return me},M.prototype._read_string=function(Te){if(Te==="`"||Te==="'"||Te==='"'){var me=this._input.next();return this.has_char_escapes=!1,Te==="`"?me+=this._read_string_recursive("`",!0,"${"):me+=this._read_string_recursive(Te),this.has_char_escapes&&this._options.unescape_strings&&(me=ye(me)),this._input.peek()===Te&&(me+=this._input.next()),me=me.replace(k.allLineBreaks,`
|
|
|
`),this._create_token(G.STRING,me)}return null},M.prototype._allow_regexp_or_xml=function(Te){return Te.type===G.RESERVED&&P(Te.text,["return","case","throw","else","do","typeof","yield"])||Te.type===G.END_EXPR&&Te.text===")"&&Te.opened.previous.type===G.RESERVED&&P(Te.opened.previous.text,["if","while","for"])||P(Te.type,[G.COMMENT,G.START_EXPR,G.START_BLOCK,G.START,G.END_BLOCK,G.OPERATOR,G.EQUALS,G.EOF,G.SEMICOLON,G.COMMA])},M.prototype._read_regexp=function(Te,me){if(Te==="/"&&this._allow_regexp_or_xml(me)){for(var xe=this._input.next(),z=!1,j=!1;this._input.hasNext()&&(z||j||this._input.peek()!==Te)&&!this._input.testChar(k.newline);)xe+=this._input.peek(),z?z=!1:(z=this._input.peek()==="\\",this._input.peek()==="["?j=!0:this._input.peek()==="]"&&(j=!1)),this._input.next();return this._input.peek()===Te&&(xe+=this._input.next(),xe+=this._input.read(k.identifier)),this._create_token(G.STRING,xe)}return null},M.prototype._read_xml=function(Te,me){if(this._options.e4x&&Te==="<"&&this._allow_regexp_or_xml(me)){var xe="",z=this.__patterns.xml.read_match();if(z){for(var j=z[2].replace(/^{\s+/,"{").replace(/\s+}$/,"}"),ee=j.indexOf("{")===0,_e=0;z;){var ut=!!z[1],Ft=z[2],Vt=!!z[z.length-1]||Ft.slice(0,8)==="![CDATA[";if(!Vt&&(Ft===j||ee&&Ft.replace(/^{\s+/,"{").replace(/\s+}$/,"}"))&&(ut?--_e:++_e),xe+=z[0],_e<=0)break;z=this.__patterns.xml.read_match()}return z||(xe+=this._input.match(/[\s\S]*/g)[0]),xe=xe.replace(k.allLineBreaks,`
|
|
|
`),this._create_token(G.STRING,xe)}}return null};function ye(Te){for(var me="",xe=0,z=new H(Te),j=null;z.hasNext();)if(j=z.match(/([\s]|[^\\]|\\\\)+/g),j&&(me+=j[0]),z.peek()==="\\"){if(z.next(),z.peek()==="x")j=z.match(/x([0-9A-Fa-f]{2})/g);else if(z.peek()==="u")j=z.match(/u([0-9A-Fa-f]{4})/g),j||(j=z.match(/u\{([0-9A-Fa-f]+)\}/g));else{me+="\\",z.hasNext()&&(me+=z.next());continue}if(!j||(xe=parseInt(j[1],16),xe>126&&xe<=255&&j[0].indexOf("x")===0))return Te;xe>=0&&xe<32||xe>1114111?me+="\\"+j[0]:xe===34||xe===39||xe===92?me+="\\"+String.fromCharCode(xe):me+=String.fromCharCode(xe)}return me}M.prototype._read_string_recursive=function(Te,me,xe){var z,j;Te==="'"?j=this.__patterns.single_quote:Te==='"'?j=this.__patterns.double_quote:Te==="`"?j=this.__patterns.template_text:Te==="}"&&(j=this.__patterns.template_expression);for(var ee=j.read(),_e="";this._input.hasNext();){if(_e=this._input.next(),_e===Te||!me&&k.newline.test(_e)){this._input.back();break}else _e==="\\"&&this._input.hasNext()?(z=this._input.peek(),z==="x"||z==="u"?this.has_char_escapes=!0:z==="\r"&&this._input.peek(1)===`
|
|
|
`&&this._input.next(),_e+=this._input.next()):xe&&(xe==="${"&&_e==="$"&&this._input.peek()==="{"&&(_e+=this._input.next()),xe===_e&&(Te==="`"?_e+=this._read_string_recursive("}",me,"`"):_e+=this._read_string_recursive("`",me,"${"),this._input.hasNext()&&(_e+=this._input.next())));_e+=j.read(),ee+=_e}return ee},R.exports.Tokenizer=M,R.exports.TOKEN=G,R.exports.positionable_operators=He.slice(),R.exports.line_starters=qe.slice()},function(R){var u=RegExp.prototype.hasOwnProperty("sticky");function C(H){this.__input=H||"",this.__input_length=this.__input.length,this.__position=0}C.prototype.restart=function(){this.__position=0},C.prototype.back=function(){this.__position>0&&(this.__position-=1)},C.prototype.hasNext=function(){return this.__position<this.__input_length},C.prototype.next=function(){var H=null;return this.hasNext()&&(H=this.__input.charAt(this.__position),this.__position+=1),H},C.prototype.peek=function(H){var w=null;return H=H||0,H+=this.__position,H>=0&&H<this.__input_length&&(w=this.__input.charAt(H)),w},C.prototype.__match=function(H,w){H.lastIndex=w;var L=H.exec(this.__input);return L&&!(u&&H.sticky)&&L.index!==w&&(L=null),L},C.prototype.test=function(H,w){return w=w||0,w+=this.__position,w>=0&&w<this.__input_length?!!this.__match(H,w):!1},C.prototype.testChar=function(H,w){var L=this.peek(w);return H.lastIndex=0,L!==null&&H.test(L)},C.prototype.match=function(H){var w=this.__match(H,this.__position);return w?this.__position+=w[0].length:w=null,w},C.prototype.read=function(H,w,L){var B="",k;return H&&(k=this.match(H),k&&(B+=k[0])),w&&(k||!H)&&(B+=this.readUntil(w,L)),B},C.prototype.readUntil=function(H,w){var L="",B=this.__position;H.lastIndex=this.__position;var k=H.exec(this.__input);return k?(B=k.index,w&&(B+=k[0].length)):B=this.__input_length,L=this.__input.substring(this.__position,B),this.__position=B,L},C.prototype.readUntilAfter=function(H){return this.readUntil(H,!0)},C.prototype.get_regexp=function(H,w){var L=null,B="g";return w&&u&&(B="y"),typeof H=="string"&&H!==""?L=new RegExp(H,B):H&&(L=new RegExp(H.source,B)),L},C.prototype.get_literal_regexp=function(H){return RegExp(H.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&"))},C.prototype.peekUntilAfter=function(H){var w=this.__position,L=this.readUntilAfter(H);return this.__position=w,L},C.prototype.lookBack=function(H){var w=this.__position-1;return w>=H.length&&this.__input.substring(w-H.length,w).toLowerCase()===H},R.exports.InputScanner=C},function(R,u,C){var H=C(8).InputScanner,w=C(3).Token,L=C(10).TokenStream,B=C(11).WhitespacePattern,k={START:"TK_START",RAW:"TK_RAW",EOF:"TK_EOF"},K=function(V,P){this._input=new H(V),this._options=P||{},this.__tokens=null,this._patterns={},this._patterns.whitespace=new B(this._input)};K.prototype.tokenize=function(){this._input.restart(),this.__tokens=new L,this._reset();for(var V,P=new w(k.START,""),G=null,Z=[],se=new L;P.type!==k.EOF;){for(V=this._get_next_token(P,G);this._is_comment(V);)se.add(V),V=this._get_next_token(P,G);se.isEmpty()||(V.comments_before=se,se=new L),V.parent=G,this._is_opening(V)?(Z.push(G),G=V):G&&this._is_closing(V,G)&&(V.opened=G,G.closed=V,G=Z.pop(),V.parent=G),V.previous=P,P.next=V,this.__tokens.add(V),P=V}return this.__tokens},K.prototype._is_first_token=function(){return this.__tokens.isEmpty()},K.prototype._reset=function(){},K.prototype._get_next_token=function(V,P){this._readWhitespace();var G=this._input.read(/.+/g);return G?this._create_token(k.RAW,G):this._create_token(k.EOF,"")},K.prototype._is_comment=function(V){return!1},K.prototype._is_opening=function(V){return!1},K.prototype._is_closing=function(V,P){return!1},K.prototype._create_token=function(V,P){var G=new w(V,P,this._patterns.whitespace.newline_count,this._patterns.whitespace.whitespace_before_token);return G},K.prototype._readWhitespace=function(){return this._patterns.whitespace.read()},R.exports.Tokenizer=K,R.exports.TOKEN=k},function(R){function u(C){this.__tokens=[],this.__tokens_length=this.__tokens.length,this.__position=0,this.__parent_token=C}u.prototype.restart=function(){this.__position=0},u.prototype.isEmpty=function(){return this.__tokens_length===0},u.prototype.hasNext=function(){return this.__position<this.__tokens_length},u.prototype.next=function(){var C=null;return this.hasNext()&&(C=this.__tokens[this.__position],this.__position+=1),C},u.prototype.peek=function(C){var H=null;return C=C||0,C+=this.__position,C>=0&&C<this.__tokens_length&&(H=this.__tokens[C]),H},u.prototype.add=function(C){this.__parent_token&&(C.parent=this.__parent_token),this.__tokens.push(C),this.__tokens_length+=1},R.exports.TokenStream=u},function(R,u,C){var H=C(12).Pattern;function w(L,B){H.call(this,L,B),B?this._line_regexp=this._input.get_regexp(B._line_regexp):this.__set_whitespace_patterns("",""),this.newline_count=0,this.whitespace_before_token=""}w.prototype=new H,w.prototype.__set_whitespace_patterns=function(L,B){L+="\\t ",B+="\\n\\r",this._match_pattern=this._input.get_regexp("["+L+B+"]+",!0),this._newline_regexp=this._input.get_regexp("\\r\\n|["+B+"]")},w.prototype.read=function(){this.newline_count=0,this.whitespace_before_token="";var L=this._input.read(this._match_pattern);if(L===" ")this.whitespace_before_token=" ";else if(L){var B=this.__split(this._newline_regexp,L);this.newline_count=B.length-1,this.whitespace_before_token=B[this.newline_count]}return L},w.prototype.matching=function(L,B){var k=this._create();return k.__set_whitespace_patterns(L,B),k._update(),k},w.prototype._create=function(){return new w(this._input,this)},w.prototype.__split=function(L,B){L.lastIndex=0;for(var k=0,K=[],V=L.exec(B);V;)K.push(B.substring(k,V.index)),k=V.index+V[0].length,V=L.exec(B);return k<B.length?K.push(B.substring(k,B.length)):K.push(""),K},R.exports.WhitespacePattern=w},function(R){function u(C,H){this._input=C,this._starting_pattern=null,this._match_pattern=null,this._until_pattern=null,this._until_after=!1,H&&(this._starting_pattern=this._input.get_regexp(H._starting_pattern,!0),this._match_pattern=this._input.get_regexp(H._match_pattern,!0),this._until_pattern=this._input.get_regexp(H._until_pattern),this._until_after=H._until_after)}u.prototype.read=function(){var C=this._input.read(this._starting_pattern);return(!this._starting_pattern||C)&&(C+=this._input.read(this._match_pattern,this._until_pattern,this._until_after)),C},u.prototype.read_match=function(){return this._input.match(this._match_pattern)},u.prototype.until_after=function(C){var H=this._create();return H._until_after=!0,H._until_pattern=this._input.get_regexp(C),H._update(),H},u.prototype.until=function(C){var H=this._create();return H._until_after=!1,H._until_pattern=this._input.get_regexp(C),H._update(),H},u.prototype.starting_with=function(C){var H=this._create();return H._starting_pattern=this._input.get_regexp(C,!0),H._update(),H},u.prototype.matching=function(C){var H=this._create();return H._match_pattern=this._input.get_regexp(C,!0),H._update(),H},u.prototype._create=function(){return new u(this._input,this)},u.prototype._update=function(){},R.exports.Pattern=u},function(R){function u(C,H){C=typeof C=="string"?C:C.source,H=typeof H=="string"?H:H.source,this.__directives_block_pattern=new RegExp(C+/ beautify( \w+[:]\w+)+ /.source+H,"g"),this.__directive_pattern=/ (\w+)[:](\w+)/g,this.__directives_end_ignore_pattern=new RegExp(C+/\sbeautify\signore:end\s/.source+H,"g")}u.prototype.get_directives=function(C){if(!C.match(this.__directives_block_pattern))return null;var H={};this.__directive_pattern.lastIndex=0;for(var w=this.__directive_pattern.exec(C);w;)H[w[1]]=w[2],w=this.__directive_pattern.exec(C);return H},u.prototype.readIgnored=function(C){return C.readUntilAfter(this.__directives_end_ignore_pattern)},R.exports.Directives=u},function(R,u,C){var H=C(12).Pattern,w={django:!1,erb:!1,handlebars:!1,php:!1,smarty:!1,angular:!1};function L(B,k){H.call(this,B,k),this.__template_pattern=null,this._disabled=Object.assign({},w),this._excluded=Object.assign({},w),k&&(this.__template_pattern=this._input.get_regexp(k.__template_pattern),this._excluded=Object.assign(this._excluded,k._excluded),this._disabled=Object.assign(this._disabled,k._disabled));var K=new H(B);this.__patterns={handlebars_comment:K.starting_with(/{{!--/).until_after(/--}}/),handlebars_unescaped:K.starting_with(/{{{/).until_after(/}}}/),handlebars:K.starting_with(/{{/).until_after(/}}/),php:K.starting_with(/<\?(?:[= ]|php)/).until_after(/\?>/),erb:K.starting_with(/<%[^%]/).until_after(/[^%]%>/),django:K.starting_with(/{%/).until_after(/%}/),django_value:K.starting_with(/{{/).until_after(/}}/),django_comment:K.starting_with(/{#/).until_after(/#}/),smarty:K.starting_with(/{(?=[^}{\s\n])/).until_after(/[^\s\n]}/),smarty_comment:K.starting_with(/{\*/).until_after(/\*}/),smarty_literal:K.starting_with(/{literal}/).until_after(/{\/literal}/)}}L.prototype=new H,L.prototype._create=function(){return new L(this._input,this)},L.prototype._update=function(){this.__set_templated_pattern()},L.prototype.disable=function(B){var k=this._create();return k._disabled[B]=!0,k._update(),k},L.prototype.read_options=function(B){var k=this._create();for(var K in w)k._disabled[K]=B.templating.indexOf(K)===-1;return k._update(),k},L.prototype.exclude=function(B){var k=this._create();return k._excluded[B]=!0,k._update(),k},L.prototype.read=function(){var B="";this._match_pattern?B=this._input.read(this._starting_pattern):B=this._input.read(this._starting_pattern,this.__template_pattern);for(var k=this._read_template();k;)this._match_pattern?k+=this._input.read(this._match_pattern):k+=this._input.readUntil(this.__template_pattern),B+=k,k=this._read_template();return this._until_after&&(B+=this._input.readUntilAfter(this._until_pattern)),B},L.prototype.__set_templated_pattern=function(){var B=[];this._disabled.php||B.push(this.__patterns.php._starting_pattern.source),this._disabled.handlebars||B.push(this.__patterns.handlebars._starting_pattern.source),this._disabled.angular||B.push(this.__patterns.handlebars._starting_pattern.source),this._disabled.erb||B.push(this.__patterns.erb._starting_pattern.source),this._disabled.django||(B.push(this.__patterns.django._starting_pattern.source),B.push(this.__patterns.django_value._starting_pattern.source),B.push(this.__patterns.django_comment._starting_pattern.source)),this._disabled.smarty||B.push(this.__patterns.smarty._starting_pattern.source),this._until_pattern&&B.push(this._until_pattern.source),this.__template_pattern=this._input.get_regexp("(?:"+B.join("|")+")")},L.prototype._read_template=function(){var B="",k=this._input.peek();if(k==="<"){var K=this._input.peek(1);!this._disabled.php&&!this._excluded.php&&K==="?"&&(B=B||this.__patterns.php.read()),!this._disabled.erb&&!this._excluded.erb&&K==="%"&&(B=B||this.__patterns.erb.read())}else k==="{"&&(!this._disabled.handlebars&&!this._excluded.handlebars&&(B=B||this.__patterns.handlebars_comment.read(),B=B||this.__patterns.handlebars_unescaped.read(),B=B||this.__patterns.handlebars.read()),this._disabled.django||(!this._excluded.django&&!this._excluded.handlebars&&(B=B||this.__patterns.django_value.read()),this._excluded.django||(B=B||this.__patterns.django_comment.read(),B=B||this.__patterns.django.read())),this._disabled.smarty||this._disabled.django&&this._disabled.handlebars&&(B=B||this.__patterns.smarty_comment.read(),B=B||this.__patterns.smarty_literal.read(),B=B||this.__patterns.smarty.read()));return B},R.exports.TemplatablePattern=L}],de={};function I(R){var u=de[R];if(u!==void 0)return u.exports;var C=de[R]={exports:{}};return Me[R](C,C.exports,I),C.exports}var Be=I(0);mt=Be})();var Fe=mt;je=[],Ie=function(){return{js_beautify:Fe}}.apply(Sr,je),Ie!==void 0&&(wn.exports=Ie)})()},65355:function(wn,Sr,je){"use strict";je.r(Sr),je.d(Sr,{AcroForm:function(){return bA},AcroFormAppearance:function(){return xn},AcroFormButton:function(){return _i},AcroFormCheckBox:function(){return Zi},AcroFormChoiceField:function(){return Ln},AcroFormComboBox:function(){return Wn},AcroFormEditBox:function(){return zn},AcroFormListBox:function(){return Fi},AcroFormPasswordField:function(){return Bi},AcroFormPushButton:function(){return Li},AcroFormRadioButton:function(){return di},AcroFormTextField:function(){return Ni},GState:function(){return Kc},ShadingPattern:function(){return zl},TilingPattern:function(){return mu},default:function(){return Xn},jsPDF:function(){return Xn}});var Ie=je(76190),mt={},Fe=function(n,a,s,c,d){var m=new Worker(mt[a]||(mt[a]=URL.createObjectURL(new Blob([n+';addEventListener("error",function(e){e=e.error;postMessage({$e$:[e.message,e.code,e.stack]})})'],{type:"text/javascript"}))));return m.onmessage=function(W){var O=W.data,$=O.$e$;if($){var J=new Error($[0]);J.code=$[1],J.stack=$[2],d(J,null)}else d(null,O)},m.postMessage(s,c),m},Me=Uint8Array,de=Uint16Array,I=Int32Array,Be=new Me([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]),R=new Me([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 Me([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]),C=function(n,a){for(var s=new de(31),c=0;c<31;++c)s[c]=a+=1<<n[c-1];for(var d=new I(s[30]),c=1;c<30;++c)for(var m=s[c];m<s[c+1];++m)d[m]=m-s[c]<<5|c;return{b:s,r:d}},H=C(Be,2),w=H.b,L=H.r;w[28]=258,L[258]=28;for(var B=C(R,0),k=B.b,K=B.r,V=new de(32768),P=0;P<32768;++P){var G=(P&43690)>>1|(P&21845)<<1;G=(G&52428)>>2|(G&13107)<<2,G=(G&61680)>>4|(G&3855)<<4,V[P]=((G&65280)>>8|(G&255)<<8)>>1}for(var Z=function(n,a,s){for(var c=n.length,d=0,m=new de(a);d<c;++d)n[d]&&++m[n[d]-1];var W=new de(a);for(d=1;d<a;++d)W[d]=W[d-1]+m[d-1]<<1;var O;if(s){O=new de(1<<a);var $=15-a;for(d=0;d<c;++d)if(n[d])for(var J=d<<4|n[d],he=a-n[d],Ne=W[n[d]-1]++<<he,Ye=Ne|(1<<he)-1;Ne<=Ye;++Ne)O[V[Ne]>>$]=J}else for(O=new de(c),d=0;d<c;++d)n[d]&&(O[d]=V[W[n[d]-1]++]>>15-n[d]);return O},se=new Me(288),P=0;P<144;++P)se[P]=8;for(var P=144;P<256;++P)se[P]=9;for(var P=256;P<280;++P)se[P]=7;for(var P=280;P<288;++P)se[P]=8;for(var oe=new Me(32),P=0;P<32;++P)oe[P]=5;var De=Z(se,9,0),He=null,Qe=Z(oe,5,0),Ue=null,qe=function(n){for(var a=n[0],s=1;s<n.length;++s)n[s]>a&&(a=n[s]);return a},st=function(n,a,s){var c=a/8|0;return(n[c]|n[c+1]<<8)>>(a&7)&s},Pe=function(n,a){var s=a/8|0;return(n[s]|n[s+1]<<8|n[s+2]<<16)>>(a&7)},pe=function(n){return(n+7)/8|0},M=function(n,a,s){return(a==null||a<0)&&(a=0),(s==null||s>n.length)&&(s=n.length),new Me(n.subarray(a,s))},ye={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},Te=["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"],me=function(n,a,s){var c=new Error(a||Te[n]);if(c.code=n,Error.captureStackTrace&&Error.captureStackTrace(c,me),!s)throw c;return c},xe=function(n,a,s,c){var d=n.length,m=c?c.length:0;if(!d||a.f&&!a.l)return s||new Me(0);var W=!s,O=W||a.i!=2,$=a.i;W&&(s=new Me(d*3));var J=function(vn){var Hn=s.length;if(vn>Hn){var jn=new Me(Math.max(Hn*2,vn));jn.set(s),s=jn}},he=a.f||0,Ne=a.p||0,Ye=a.b||0,ce=a.l,wt=a.d,pt=a.m,bt=a.n,rt=d*8;do{if(!ce){he=st(n,Ne,1);var Yt=st(n,Ne+1,3);if(Ne+=3,Yt)if(Yt==1)ce=He,wt=Ue,pt=9,bt=5;else if(Yt==2){var en=st(n,Ne,31)+257,Hr=st(n,Ne+10,15)+4,Ar=en+st(n,Ne+5,31)+1;Ne+=14;for(var Nt=new Me(Ar),Er=new Me(19),tt=0;tt<Hr;++tt)Er[u[tt]]=st(n,Ne+tt*3,7);Ne+=Hr*3;for(var Ct=qe(Er),Xt=(1<<Ct)-1,Gt=Z(Er,Ct,1),tt=0;tt<Ar;){var Ur=Gt[st(n,Ne,Xt)];Ne+=Ur&15;var jt=Ur>>4;if(jt<16)Nt[tt++]=jt;else{var Qr=0,zr=0;for(jt==16?(zr=3+st(n,Ne,3),Ne+=2,Qr=Nt[tt-1]):jt==17?(zr=3+st(n,Ne,7),Ne+=3):jt==18&&(zr=11+st(n,Ne,127),Ne+=7);zr--;)Nt[tt++]=Qr}}var Fr=Nt.subarray(0,en),$r=Nt.subarray(en);pt=qe(Fr),bt=qe($r),ce=Z(Fr,pt,1),wt=Z($r,bt,1)}else me(1);else{var jt=pe(Ne)+4,Ut=n[jt-4]|n[jt-3]<<8,kr=jt+Ut;if(kr>d){$&&me(0);break}O&&J(Ye+Ut),s.set(n.subarray(jt,kr),Ye),a.b=Ye+=Ut,a.p=Ne=kr*8,a.f=he;continue}if(Ne>rt){$&&me(0);break}}O&&J(Ye+131072);for(var En=(1<<pt)-1,un=(1<<bt)-1,et=Ne;;et=Ne){var Qr=ce[Pe(n,Ne)&En],Rt=Qr>>4;if(Ne+=Qr&15,Ne>rt){$&&me(0);break}if(Qr||me(2),Rt<256)s[Ye++]=Rt;else if(Rt==256){et=Ne,ce=null;break}else{var Ht=Rt-254;if(Rt>264){var tt=Rt-257,tr=Be[tt];Ht=st(n,Ne,(1<<tr)-1)+w[tt],Ne+=tr}var gr=wt[Pe(n,Ne)&un],Lr=gr>>4;gr||me(3),Ne+=gr&15;var $r=k[Lr];if(Lr>3){var tr=R[Lr];$r+=Pe(n,Ne)&(1<<tr)-1,Ne+=tr}if(Ne>rt){$&&me(0);break}O&&J(Ye+131072);var jr=Ye+Ht;if(Ye<$r){var Mr=m-$r,an=Math.min($r,jr);for(Mr+Ye<0&&me(3);Ye<an;++Ye)s[Ye]=c[Mr+Ye]}for(;Ye<jr;++Ye)s[Ye]=s[Ye-$r]}}a.l=ce,a.p=et,a.b=Ye,a.f=he,ce&&(he=1,a.m=pt,a.d=wt,a.n=bt)}while(!he);return Ye!=s.length&&W?M(s,0,Ye):s.subarray(0,Ye)},z=function(n,a,s){s<<=a&7;var c=a/8|0;n[c]|=s,n[c+1]|=s>>8},j=function(n,a,s){s<<=a&7;var c=a/8|0;n[c]|=s,n[c+1]|=s>>8,n[c+2]|=s>>16},ee=function(n,a){for(var s=[],c=0;c<n.length;++c)n[c]&&s.push({s:c,f:n[c]});var d=s.length,m=s.slice();if(!d)return{t:wr,l:0};if(d==1){var W=new Me(s[0].s+1);return W[s[0].s]=1,{t:W,l:1}}s.sort(function(kr,en){return kr.f-en.f}),s.push({s:-1,f:25001});var O=s[0],$=s[1],J=0,he=1,Ne=2;for(s[0]={s:-1,f:O.f+$.f,l:O,r:$};he!=d-1;)O=s[s[J].f<s[Ne].f?J++:Ne++],$=s[J!=he&&s[J].f<s[Ne].f?J++:Ne++],s[he++]={s:-1,f:O.f+$.f,l:O,r:$};for(var Ye=m[0].s,c=1;c<d;++c)m[c].s>Ye&&(Ye=m[c].s);var ce=new de(Ye+1),wt=_e(s[he-1],ce,0);if(wt>a){var c=0,pt=0,bt=wt-a,rt=1<<bt;for(m.sort(function(en,Hr){return ce[Hr.s]-ce[en.s]||en.f-Hr.f});c<d;++c){var Yt=m[c].s;if(ce[Yt]>a)pt+=rt-(1<<wt-ce[Yt]),ce[Yt]=a;else break}for(pt>>=bt;pt>0;){var jt=m[c].s;ce[jt]<a?pt-=1<<a-ce[jt]++-1:++c}for(;c>=0&&pt;--c){var Ut=m[c].s;ce[Ut]==a&&(--ce[Ut],++pt)}wt=a}return{t:new Me(ce),l:wt}},_e=function(n,a,s){return n.s==-1?Math.max(_e(n.l,a,s+1),_e(n.r,a,s+1)):a[n.s]=s},ut=function(n){for(var a=n.length;a&&!n[--a];);for(var s=new de(++a),c=0,d=n[0],m=1,W=function($){s[c++]=$},O=1;O<=a;++O)if(n[O]==d&&O!=a)++m;else{if(!d&&m>2){for(;m>138;m-=138)W(32754);m>2&&(W(m>10?m-11<<5|28690:m-3<<5|12305),m=0)}else if(m>3){for(W(d),--m;m>6;m-=6)W(8304);m>2&&(W(m-3<<5|8208),m=0)}for(;m--;)W(d);m=1,d=n[O]}return{c:s.subarray(0,c),n:a}},Ft=function(n,a){for(var s=0,c=0;c<a.length;++c)s+=n[c]*a[c];return s},Vt=function(n,a,s){var c=s.length,d=pe(a+2);n[d]=c&255,n[d+1]=c>>8,n[d+2]=n[d]^255,n[d+3]=n[d+1]^255;for(var m=0;m<c;++m)n[d+m+4]=s[m];return(d+4+c)*8},vr=function(n,a,s,c,d,m,W,O,$,J,he){z(a,he++,s),++d[256];for(var Ne=ee(d,15),Ye=Ne.t,ce=Ne.l,wt=ee(m,15),pt=wt.t,bt=wt.l,rt=ut(Ye),Yt=rt.c,jt=rt.n,Ut=ut(pt),kr=Ut.c,en=Ut.n,Hr=new de(19),Ar=0;Ar<Yt.length;++Ar)++Hr[Yt[Ar]&31];for(var Ar=0;Ar<kr.length;++Ar)++Hr[kr[Ar]&31];for(var Nt=ee(Hr,7),Er=Nt.t,tt=Nt.l,Ct=19;Ct>4&&!Er[u[Ct-1]];--Ct);var Xt=J+5<<3,Gt=Ft(d,se)+Ft(m,oe)+W,Ur=Ft(d,Ye)+Ft(m,pt)+W+14+3*Ct+Ft(Hr,Er)+2*Hr[16]+3*Hr[17]+7*Hr[18];if($>=0&&Xt<=Gt&&Xt<=Ur)return Vt(a,he,n.subarray($,$+J));var Qr,zr,Fr,$r;if(z(a,he,1+(Ur<Gt)),he+=2,Ur<Gt){Qr=Z(Ye,ce,0),zr=Ye,Fr=Z(pt,bt,0),$r=pt;var En=Z(Er,tt,0);z(a,he,jt-257),z(a,he+5,en-1),z(a,he+10,Ct-4),he+=14;for(var Ar=0;Ar<Ct;++Ar)z(a,he+3*Ar,Er[u[Ar]]);he+=3*Ct;for(var un=[Yt,kr],et=0;et<2;++et)for(var Rt=un[et],Ar=0;Ar<Rt.length;++Ar){var Ht=Rt[Ar]&31;z(a,he,En[Ht]),he+=Er[Ht],Ht>15&&(z(a,he,Rt[Ar]>>5&127),he+=Rt[Ar]>>12)}}else Qr=De,zr=se,Fr=Qe,$r=oe;for(var Ar=0;Ar<O;++Ar){var tr=c[Ar];if(tr>255){var Ht=tr>>18&31;j(a,he,Qr[Ht+257]),he+=zr[Ht+257],Ht>7&&(z(a,he,tr>>23&31),he+=Be[Ht]);var gr=tr&31;j(a,he,Fr[gr]),he+=$r[gr],gr>3&&(j(a,he,tr>>5&8191),he+=R[gr])}else j(a,he,Qr[tr]),he+=zr[tr]}return j(a,he,Qr[256]),he+zr[256]},Yr=new I([65540,131080,131088,131104,262176,1048704,1048832,2114560,2117632]),wr=new Me(0),fr=function(n,a,s,c,d,m){var W=m.z||n.length,O=new Me(c+W+5*(1+Math.ceil(W/7e3))+d),$=O.subarray(c,O.length-d),J=m.l,he=(m.r||0)&7;if(a){he&&($[0]=m.r>>3);for(var Ne=Yr[a-1],Ye=Ne>>13,ce=Ne&8191,wt=(1<<s)-1,pt=m.p||new de(32768),bt=m.h||new de(wt+1),rt=Math.ceil(s/3),Yt=2*rt,jt=function(Xr){return(n[Xr]^n[Xr+1]<<rt^n[Xr+2]<<Yt)&wt},Ut=new I(25e3),kr=new de(288),en=new de(32),Hr=0,Ar=0,Nt=m.i||0,Er=0,tt=m.w||0,Ct=0;Nt+2<W;++Nt){var Xt=jt(Nt),Gt=Nt&32767,Ur=bt[Xt];if(pt[Gt]=Ur,bt[Xt]=Gt,tt<=Nt){var Qr=W-Nt;if((Hr>7e3||Er>24576)&&(Qr>423||!J)){he=vr(n,$,0,Ut,kr,en,Ar,Er,Ct,Nt-Ct,he),Er=Hr=Ar=0,Ct=Nt;for(var zr=0;zr<286;++zr)kr[zr]=0;for(var zr=0;zr<30;++zr)en[zr]=0}var Fr=2,$r=0,En=ce,un=Gt-Ur&32767;if(Qr>2&&Xt==jt(Nt-un))for(var et=Math.min(Ye,Qr)-1,Rt=Math.min(32767,Nt),Ht=Math.min(258,Qr);un<=Rt&&--En&&Gt!=Ur;){if(n[Nt+Fr]==n[Nt+Fr-un]){for(var tr=0;tr<Ht&&n[Nt+tr]==n[Nt+tr-un];++tr);if(tr>Fr){if(Fr=tr,$r=un,tr>et)break;for(var gr=Math.min(un,tr-2),Lr=0,zr=0;zr<gr;++zr){var jr=Nt-un+zr&32767,Mr=pt[jr],an=jr-Mr&32767;an>Lr&&(Lr=an,Ur=jr)}}}Gt=Ur,Ur=pt[Gt],un+=Gt-Ur&32767}if($r){Ut[Er++]=268435456|L[Fr]<<18|K[$r];var vn=L[Fr]&31,Hn=K[$r]&31;Ar+=Be[vn]+R[Hn],++kr[257+vn],++en[Hn],tt=Nt+Fr,++Hr}else Ut[Er++]=n[Nt],++kr[n[Nt]]}}for(Nt=Math.max(Nt,tt);Nt<W;++Nt)Ut[Er++]=n[Nt],++kr[n[Nt]];he=vr(n,$,J,Ut,kr,en,Ar,Er,Ct,Nt-Ct,he),J||(m.r=he&7|$[he/8|0]<<3,he-=7,m.h=bt,m.p=pt,m.i=Nt,m.w=tt)}else{for(var Nt=m.w||0;Nt<W+J;Nt+=65535){var jn=Nt+65535;jn>=W&&($[he/8|0]=J,jn=W),he=Vt($,he+1,n.subarray(Nt,jn))}m.i=W}return M(O,0,c+pe(he)+d)},dn=null,ar=function(){var n=-1;return{p:function(a){for(var s=n,c=0;c<a.length;++c)s=dn[s&255^a[c]]^s>>>8;n=s},d:function(){return~n}}},Vr=function(){var n=1,a=0;return{p:function(s){for(var c=n,d=a,m=s.length|0,W=0;W!=m;){for(var O=Math.min(W+2655,m);W<O;++W)d+=c+=s[W];c=(c&65535)+15*(c>>16),d=(d&65535)+15*(d>>16)}n=c,a=d},d:function(){return n%=65521,a%=65521,(n&255)<<24|(n&65280)<<8|(a&255)<<8|a>>8}}},ur=function(n,a,s,c,d){if(!d&&(d={l:1},a.dictionary)){var m=a.dictionary.subarray(-32768),W=new Me(m.length+n.length);W.set(m),W.set(n,m.length),n=W,d.w=m.length}return fr(n,a.level==null?6:a.level,a.mem==null?d.l?Math.ceil(Math.max(8,Math.min(13,Math.log(n.length)))*1.5):20:12+a.mem,s,c,d)},ve=function(n,a){var s={};for(var c in n)s[c]=n[c];for(var c in a)s[c]=a[c];return s},At=function(n,a,s){for(var c=n(),d=n.toString(),m=d.slice(d.indexOf("[")+1,d.lastIndexOf("]")).replace(/\s+/g,"").split(","),W=0;W<c.length;++W){var O=c[W],$=m[W];if(typeof O=="function"){a+=";"+$+"=";var J=O.toString();if(O.prototype)if(J.indexOf("[native code]")!=-1){var he=J.indexOf(" ",8)+1;a+=J.slice(he,J.indexOf("(",he))}else{a+=J;for(var Ne in O.prototype)a+=";"+$+".prototype."+Ne+"="+O.prototype[Ne].toString()}else a+=J}else s[$]=O}return a},le=null,_=function(n){var a=[];for(var s in n)n[s].buffer&&a.push((n[s]=new n[s].constructor(n[s])).buffer);return a},D=function(n,a,s,c){if(!le[s]){for(var d="",m={},W=n.length-1,O=0;O<W;++O)d=At(n[O],d,m);le[s]={c:At(n[W],d,m),e:m}}var $=ve({},le[s].e);return Fe(le[s].c+";onmessage=function(e){for(var k in e.data)self[k]=e.data[k];onmessage="+a.toString()+"}",s,$,_($),c)},ae=function(){return[Me,de,I,Be,R,u,w,k,He,Ue,V,Te,Z,qe,st,Pe,pe,M,me,xe,Oe,Et,nr]},We=function(){return[Me,de,I,Be,R,u,L,K,De,se,Qe,oe,V,Yr,wr,Z,z,j,ee,_e,ut,Ft,Vt,vr,pe,M,fr,ur,Wr,Et]},ge=function(){return[kt,yr,qt,ar,dn]},Se=function(){return[Pr,$t]},gt=function(){return[An,qt,Vr]},xt=function(){return[Y]},Et=function(n){return postMessage(n,[n.buffer])},nr=function(n){return n&&{out:n.size&&new Me(n.size),dictionary:n.dictionary}},xr=function(n,a,s,c,d,m){var W=D(s,c,d,function(O,$){W.terminate(),m(O,$)});return W.postMessage([n,a],a.consume?[n.buffer]:[]),function(){W.terminate()}},Tr=function(n){return n.ondata=function(a,s){return postMessage([a,s],[a.buffer])},function(a){a.data.length?(n.push(a.data[0],a.data[1]),postMessage([a.data[0].length])):n.flush()}},Bt=function(n,a,s,c,d,m,W){var O,$=D(n,c,d,function(J,he){J?($.terminate(),a.ondata.call(a,J)):Array.isArray(he)?he.length==1?(a.queuedSize-=he[0],a.ondrain&&a.ondrain(he[0])):(he[1]&&$.terminate(),a.ondata.call(a,J,he[0],he[1])):W(he)});$.postMessage(s),a.queuedSize=0,a.push=function(J,he){a.ondata||me(5),O&&a.ondata(me(4,0,1),null,!!he),a.queuedSize+=J.length,$.postMessage([J,O=he],[J.buffer])},a.terminate=function(){$.terminate()},m&&(a.flush=function(){$.postMessage([])})},Mt=function(n,a){return n[a]|n[a+1]<<8},Wt=function(n,a){return(n[a]|n[a+1]<<8|n[a+2]<<16|n[a+3]<<24)>>>0},cr=function(n,a){return Wt(n,a)+Wt(n,a+4)*4294967296},qt=function(n,a,s){for(;s;++a)n[a]=s,s>>>=8},kt=function(n,a){var s=a.filename;if(n[0]=31,n[1]=139,n[2]=8,n[8]=a.level<2?4:a.level==9?2:0,n[9]=3,a.mtime!=0&&qt(n,4,Math.floor(new Date(a.mtime||Date.now())/1e3)),s){n[3]=8;for(var c=0;c<=s.length;++c)n[c+10]=s.charCodeAt(c)}},Pr=function(n){(n[0]!=31||n[1]!=139||n[2]!=8)&&me(6,"invalid gzip data");var a=n[3],s=10;a&4&&(s+=(n[10]|n[11]<<8)+2);for(var c=(a>>3&1)+(a>>4&1);c>0;c-=!n[s++]);return s+(a&2)},$t=function(n){var a=n.length;return(n[a-4]|n[a-3]<<8|n[a-2]<<16|n[a-1]<<24)>>>0},yr=function(n){return 10+(n.filename?n.filename.length+1:0)},An=function(n,a){var s=a.level,c=s==0?0:s<6?1:s==9?3:2;if(n[0]=120,n[1]=c<<6|(a.dictionary&&32),n[1]|=31-(n[0]<<8|n[1])%31,a.dictionary){var d=Vr();d.p(a.dictionary),qt(n,2,d.d())}},Y=function(n,a){return((n[0]&15)!=8||n[0]>>4>7||(n[0]<<8|n[1])%31)&&me(6,"invalid zlib data"),(n[1]>>5&1)==+!a&&me(6,"invalid zlib data: "+(n[1]&32?"need":"unexpected")+" dictionary"),(n[1]>>3&4)+2};function ie(n,a){return typeof n=="function"&&(a=n,n={}),this.ondata=a,n}var Ot=null,fe=null;function Ke(n,a,s){return s||(s=a,a={}),typeof s!="function"&&me(7),xr(n,a,[We],function(c){return Et(Wr(c.data[0],c.data[1]))},0,s)}function Wr(n,a){return ur(n,a||{},0,0)}var ct=null,Dt=null;function Kt(n,a,s){return s||(s=a,a={}),typeof s!="function"&&me(7),xr(n,a,[ae],function(c){return Et(Oe(c.data[0],nr(c.data[1])))},1,s)}function Oe(n,a){return xe(n,{i:2},a&&a.out,a&&a.dictionary)}var Ve=null,at=null;function Pt(n,a,s){return s||(s=a,a={}),typeof s!="function"&&me(7),xr(n,a,[We,ge,function(){return[Le]}],function(c){return Et(Le(c.data[0],c.data[1]))},2,s)}function Le(n,a){a||(a={});var s=ar(),c=n.length;s.p(n);var d=ur(n,a,yr(a),8),m=d.length;return kt(d,a),qt(d,m-8,s.d()),qt(d,m-4,c),d}var Kr=null,ht=null;function Sn(n,a,s){return s||(s=a,a={}),typeof s!="function"&&me(7),xr(n,a,[ae,Se,function(){return[Bn]}],function(c){return Et(Bn(c.data[0],c.data[1]))},3,s)}function Bn(n,a){var s=Pr(n);return s+8>n.length&&me(6,"invalid gzip data"),xe(n.subarray(s,-8),{i:2},a&&a.out||new Me($t(n)),a&&a.dictionary)}var ri=null,ws=null;function Ci(n,a,s){return s||(s=a,a={}),typeof s!="function"&&me(7),xr(n,a,[We,gt,function(){return[Kn]}],function(c){return Et(Kn(c.data[0],c.data[1]))},4,s)}function Kn(n,a){a||(a={});var s=Vr();s.p(n);var c=ur(n,a,a.dictionary?6:2,4);return An(c,a),qt(c,c.length-4,s.d()),c}var Is=null,Aa=null;function $i(n,a,s){return s||(s=a,a={}),typeof s!="function"&&me(7),xr(n,a,[ae,xt,function(){return[Ui]}],function(c){return Et(Ui(c.data[0],nr(c.data[1])))},5,s)}function Ui(n,a){return xe(n.subarray(Y(n,a&&a.dictionary),-4),{i:2},a&&a.out,a&&a.dictionary)}var mn=null,ln=null;function fn(n,a,s){return s||(s=a,a={}),typeof s!="function"&&me(7),n[0]==31&&n[1]==139&&n[2]==8?Sn(n,a,s):(n[0]&15)!=8||n[0]>>4>7||(n[0]<<8|n[1])%31?Kt(n,a,s):$i(n,a,s)}function ni(n,a){return n[0]==31&&n[1]==139&&n[2]==8?Bn(n,a):(n[0]&15)!=8||n[0]>>4>7||(n[0]<<8|n[1])%31?Oe(n,a):Ui(n,a)}var Ei=function(n,a,s,c){for(var d in n){var m=n[d],W=a+d,O=c;Array.isArray(m)&&(O=ve(c,m[1]),m=m[0]),m instanceof Me?s[W]=[m,O]:(s[W+="/"]=[new Me(0),O],Ei(m,W,s,c))}},Gi=typeof TextEncoder!="undefined"&&new TextEncoder,ks=typeof TextDecoder!="undefined"&&new TextDecoder,Js=0;try{ks.decode(wr,{stream:!0}),Js=1}catch(n){}var ia=function(n){for(var a="",s=0;;){var c=n[s++],d=(c>127)+(c>223)+(c>239);if(s+d>n.length)return{s:a,r:M(n,s-1)};d?d==3?(c=((c&15)<<18|(n[s++]&63)<<12|(n[s++]&63)<<6|n[s++]&63)-65536,a+=String.fromCharCode(55296|c>>10,56320|c&1023)):d&1?a+=String.fromCharCode((c&31)<<6|n[s++]&63):a+=String.fromCharCode((c&15)<<12|(n[s++]&63)<<6|n[s++]&63):a+=String.fromCharCode(c)}},Ea=null,Mi=null;function sa(n,a){if(a){for(var s=new Me(n.length),c=0;c<n.length;++c)s[c]=n.charCodeAt(c);return s}if(Gi)return Gi.encode(n);for(var d=n.length,m=new Me(n.length+(n.length>>1)),W=0,O=function(he){m[W++]=he},c=0;c<d;++c){if(W+5>m.length){var $=new Me(W+8+(d-c<<1));$.set(m),m=$}var J=n.charCodeAt(c);J<128||a?O(J):J<2048?(O(192|J>>6),O(128|J&63)):J>55295&&J<57344?(J=65536+(J&1047552)|n.charCodeAt(++c)&1023,O(240|J>>18),O(128|J>>12&63),O(128|J>>6&63),O(128|J&63)):(O(224|J>>12),O(128|J>>6&63),O(128|J&63))}return M(m,0,W)}function ds(n,a){if(a){for(var s="",c=0;c<n.length;c+=16384)s+=String.fromCharCode.apply(null,n.subarray(c,c+16384));return s}else{if(ks)return ks.decode(n);var d=ia(n),m=d.s,s=d.r;return s.length&&me(8),m}}var Do=function(n){return n==1?3:n<6?2:n==9?1:0},Va=function(n,a){return a+30+Mt(n,a+26)+Mt(n,a+28)},Qi=function(n,a,s){var c=Mt(n,a+28),d=ds(n.subarray(a+46,a+46+c),!(Mt(n,a+8)&2048)),m=a+46+c,W=Wt(n,a+20),O=s&&W==4294967295?Yi(n,m):[W,Wt(n,a+24),Wt(n,a+42)],$=O[0],J=O[1],he=O[2];return[Mt(n,a+10),$,J,d,m+Mt(n,a+30)+Mt(n,a+32),he]},Yi=function(n,a){for(;Mt(n,a)!=1;a+=4+Mt(n,a+2));return[cr(n,a+12),cr(n,a+4),cr(n,a+20)]},Xi=function(n){var a=0;if(n)for(var s in n){var c=n[s].length;c>65535&&me(9),a+=c+4}return a},ps=function(n,a,s,c,d,m,W,O){var $=c.length,J=s.extra,he=O&&O.length,Ne=Xi(J);qt(n,a,W!=null?33639248:67324752),a+=4,W!=null&&(n[a++]=20,n[a++]=s.os),n[a]=20,a+=2,n[a++]=s.flag<<1|(m<0&&8),n[a++]=d&&8,n[a++]=s.compression&255,n[a++]=s.compression>>8;var Ye=new Date(s.mtime==null?Date.now():s.mtime),ce=Ye.getFullYear()-1980;if((ce<0||ce>119)&&me(10),qt(n,a,ce<<25|Ye.getMonth()+1<<21|Ye.getDate()<<16|Ye.getHours()<<11|Ye.getMinutes()<<5|Ye.getSeconds()>>1),a+=4,m!=-1&&(qt(n,a,s.crc),qt(n,a+4,m<0?-m-2:m),qt(n,a+8,s.size)),qt(n,a+12,$),qt(n,a+14,Ne),a+=16,W!=null&&(qt(n,a,he),qt(n,a+6,s.attrs),qt(n,a+10,W),a+=14),n.set(c,a),a+=$,Ne)for(var wt in J){var pt=J[wt],bt=pt.length;qt(n,a,+wt),qt(n,a+2,bt),n.set(pt,a+4),a+=4+bt}return he&&(n.set(O,a),a+=he),a},ji=function(n,a,s,c,d){qt(n,a,101010256),qt(n,a+8,s),qt(n,a+10,s),qt(n,a+12,c),qt(n,a+16,d)},Vn=null,vo=null,Ks=null,yo=null;function cl(n,a,s){s||(s=a,a={}),typeof s!="function"&&me(7);var c={};Ei(n,"",c,a);var d=Object.keys(c),m=d.length,W=0,O=0,$=m,J=new Array(m),he=[],Ne=function(){for(var bt=0;bt<he.length;++bt)he[bt]()},Ye=function(bt,rt){la(function(){s(bt,rt)})};la(function(){Ye=s});var ce=function(){var bt=new Me(O+22),rt=W,Yt=O-W;O=0;for(var jt=0;jt<$;++jt){var Ut=J[jt];try{var kr=Ut.c.length;ps(bt,O,Ut,Ut.f,Ut.u,kr);var en=30+Ut.f.length+Xi(Ut.extra),Hr=O+en;bt.set(Ut.c,Hr),ps(bt,W,Ut,Ut.f,Ut.u,kr,O,Ut.m),W+=16+en+(Ut.m?Ut.m.length:0),O=Hr+kr}catch(Ar){return Ye(Ar,null)}}ji(bt,W,J.length,Yt,rt),Ye(null,bt)};m||ce();for(var wt=function(bt){var rt=d[bt],Yt=c[rt],jt=Yt[0],Ut=Yt[1],kr=ar(),en=jt.length;kr.p(jt);var Hr=sa(rt),Ar=Hr.length,Nt=Ut.comment,Er=Nt&&sa(Nt),tt=Er&&Er.length,Ct=Xi(Ut.extra),Xt=Ut.level==0?0:8,Gt=function(Ur,Qr){if(Ur)Ne(),Ye(Ur,null);else{var zr=Qr.length;J[bt]=ve(Ut,{size:en,crc:kr.d(),c:Qr,f:Hr,m:Er,u:Ar!=rt.length||Er&&Nt.length!=tt,compression:Xt}),W+=30+Ar+Ct+zr,O+=76+2*(Ar+Ct)+(tt||0)+zr,--m||ce()}};if(Ar>65535&&Gt(me(11,0,1),null),!Xt)Gt(null,jt);else if(en<16e4)try{Gt(null,Wr(jt,Ut))}catch(Ur){Gt(Ur,null)}else he.push(Ke(jt,Ut,Gt))},pt=0;pt<$;++pt)wt(pt);return Ne}function Ju(n,a){a||(a={});var s={},c=[];Ei(n,"",s,a);var d=0,m=0;for(var W in s){var O=s[W],$=O[0],J=O[1],he=J.level==0?0:8,Ne=sa(W),Ye=Ne.length,ce=J.comment,wt=ce&&sa(ce),pt=wt&&wt.length,bt=Xi(J.extra);Ye>65535&&me(11);var rt=he?Wr($,J):$,Yt=rt.length,jt=ar();jt.p($),c.push(ve(J,{size:$.length,crc:jt.d(),c:rt,f:Ne,m:wt,u:Ye!=W.length||wt&&ce.length!=pt,o:d,compression:he})),d+=30+Ye+bt+Yt,m+=76+2*(Ye+bt)+(pt||0)+Yt}for(var Ut=new Me(m+22),kr=d,en=m-d,Hr=0;Hr<c.length;++Hr){var Ne=c[Hr];ps(Ut,Ne.o,Ne,Ne.f,Ne.u,Ne.c.length);var Ar=30+Ne.f.length+Xi(Ne.extra);Ut.set(Ne.c,Ne.o+Ar),ps(Ut,d,Ne,Ne.f,Ne.u,Ne.c.length,Ne.o,Ne.m),d+=16+Ar+(Ne.m?Ne.m.length:0)}return ji(Ut,d,c.length,en,kr),Ut}var Zo=null,xA=null,Bc=null,Dl=null,la=typeof queueMicrotask=="function"?queueMicrotask:typeof setTimeout=="function"?setTimeout:function(n){n()};function Ts(n,a,s){s||(s=a,a={}),typeof s!="function"&&me(7);var c=[],d=function(){for(var bt=0;bt<c.length;++bt)c[bt]()},m={},W=function(bt,rt){la(function(){s(bt,rt)})};la(function(){W=s});for(var O=n.length-22;Wt(n,O)!=101010256;--O)if(!O||n.length-O>65558)return W(me(13,0,1),null),d;var $=Mt(n,O+8);if($){var J=$,he=Wt(n,O+16),Ne=he==4294967295||J==65535;if(Ne){var Ye=Wt(n,O-12);Ne=Wt(n,Ye)==101075792,Ne&&(J=$=Wt(n,Ye+32),he=Wt(n,Ye+48))}for(var ce=a&&a.filter,wt=function(bt){var rt=Qi(n,he,Ne),Yt=rt[0],jt=rt[1],Ut=rt[2],kr=rt[3],en=rt[4],Hr=rt[5],Ar=Va(n,Hr);he=en;var Nt=function(tt,Ct){tt?(d(),W(tt,null)):(Ct&&(m[kr]=Ct),--$||W(null,m))};if(!ce||ce({name:kr,size:jt,originalSize:Ut,compression:Yt}))if(!Yt)Nt(null,M(n,Ar,Ar+jt));else if(Yt==8){var Er=n.subarray(Ar,Ar+jt);if(Ut<524288||jt>.8*Ut)try{Nt(null,Oe(Er,{out:new Me(Ut)}))}catch(tt){Nt(tt,null)}else c.push(Kt(Er,{size:Ut},Nt))}else Nt(me(14,"unknown compression type "+Yt,1),null);else Nt(null,null)},pt=0;pt<J;++pt)wt(pt)}else W(null,{});return d}function Ra(n,a){for(var s={},c=n.length-22;Wt(n,c)!=101010256;--c)(!c||n.length-c>65558)&&me(13);var d=Mt(n,c+8);if(!d)return{};var m=Wt(n,c+16),W=m==4294967295||d==65535;if(W){var O=Wt(n,c-12);W=Wt(n,O)==101075792,W&&(d=Wt(n,O+32),m=Wt(n,O+48))}for(var $=a&&a.filter,J=0;J<d;++J){var he=Qi(n,m,W),Ne=he[0],Ye=he[1],ce=he[2],wt=he[3],pt=he[4],bt=he[5],rt=Va(n,bt);m=pt,(!$||$({name:wt,size:Ye,originalSize:ce,compression:Ne}))&&(Ne?Ne==8?s[wt]=Oe(n.subarray(rt,rt+Ye),{out:new Me(ce)}):me(14,"unknown compression type "+Ne):s[wt]=M(n,rt,rt+Ye))}return s}var VA=je(42978);function oo(n,a="utf8"){return new TextDecoder(a).decode(n)}const bs=new TextEncoder;function Es(n){return bs.encode(n)}const Ua=1024*8,hl=(()=>{const n=new Uint8Array(4),a=new Uint32Array(n.buffer);return!((a[0]=1)&n[0])})(),Wa={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 _o{constructor(a=Ua,s={}){js(this,"buffer");js(this,"byteLength");js(this,"byteOffset");js(this,"length");js(this,"offset");js(this,"lastWrittenByte");js(this,"littleEndian");js(this,"_data");js(this,"_mark");js(this,"_marks");let c=!1;typeof a=="number"?a=new ArrayBuffer(a):(c=!0,this.lastWrittenByte=a.byteLength);const d=s.offset?s.offset>>>0:0,m=a.byteLength-d;let W=d;(ArrayBuffer.isView(a)||a instanceof _o)&&(a.byteLength!==a.buffer.byteLength&&(W=a.byteOffset+d),a=a.buffer),c?this.lastWrittenByte=m:this.lastWrittenByte=0,this.buffer=a,this.length=m,this.byteLength=m,this.byteOffset=W,this.offset=0,this.littleEndian=!0,this._data=new DataView(this.buffer,W,m),this._mark=0,this._marks=[]}available(a=1){return this.offset+a<=this.length}isLittleEndian(){return this.littleEndian}setLittleEndian(){return this.littleEndian=!0,this}isBigEndian(){return!this.littleEndian}setBigEndian(){return this.littleEndian=!1,this}skip(a=1){return this.offset+=a,this}back(a=1){return this.offset-=a,this}seek(a){return this.offset=a,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 a=this._marks.pop();if(a===void 0)throw new Error("Mark stack empty");return this.seek(a),this}rewind(){return this.offset=0,this}ensureAvailable(a=1){if(!this.available(a)){const c=(this.offset+a)*2,d=new Uint8Array(c);d.set(new Uint8Array(this.buffer)),this.buffer=d.buffer,this.length=c,this.byteLength=c,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(a=1){return this.readArray(a,"uint8")}readArray(a,s){const c=Wa[s].BYTES_PER_ELEMENT*a,d=this.byteOffset+this.offset,m=this.buffer.slice(d,d+c);if(this.littleEndian===hl&&s!=="uint8"&&s!=="int8"){const O=new Uint8Array(this.buffer.slice(d,d+c));O.reverse();const $=new Wa[s](O.buffer);return this.offset+=c,$.reverse(),$}const W=new Wa[s](m);return this.offset+=c,W}readInt16(){const a=this._data.getInt16(this.offset,this.littleEndian);return this.offset+=2,a}readUint16(){const a=this._data.getUint16(this.offset,this.littleEndian);return this.offset+=2,a}readInt32(){const a=this._data.getInt32(this.offset,this.littleEndian);return this.offset+=4,a}readUint32(){const a=this._data.getUint32(this.offset,this.littleEndian);return this.offset+=4,a}readFloat32(){const a=this._data.getFloat32(this.offset,this.littleEndian);return this.offset+=4,a}readFloat64(){const a=this._data.getFloat64(this.offset,this.littleEndian);return this.offset+=8,a}readBigInt64(){const a=this._data.getBigInt64(this.offset,this.littleEndian);return this.offset+=8,a}readBigUint64(){const a=this._data.getBigUint64(this.offset,this.littleEndian);return this.offset+=8,a}readChar(){return String.fromCharCode(this.readInt8())}readChars(a=1){let s="";for(let c=0;c<a;c++)s+=this.readChar();return s}readUtf8(a=1){return oo(this.readBytes(a))}decodeText(a=1,s="utf8"){return oo(this.readBytes(a),s)}writeBoolean(a){return this.writeUint8(a?255:0),this}writeInt8(a){return this.ensureAvailable(1),this._data.setInt8(this.offset++,a),this._updateLastWrittenByte(),this}writeUint8(a){return this.ensureAvailable(1),this._data.setUint8(this.offset++,a),this._updateLastWrittenByte(),this}writeByte(a){return this.writeUint8(a)}writeBytes(a){this.ensureAvailable(a.length);for(let s=0;s<a.length;s++)this._data.setUint8(this.offset++,a[s]);return this._updateLastWrittenByte(),this}writeInt16(a){return this.ensureAvailable(2),this._data.setInt16(this.offset,a,this.littleEndian),this.offset+=2,this._updateLastWrittenByte(),this}writeUint16(a){return this.ensureAvailable(2),this._data.setUint16(this.offset,a,this.littleEndian),this.offset+=2,this._updateLastWrittenByte(),this}writeInt32(a){return this.ensureAvailable(4),this._data.setInt32(this.offset,a,this.littleEndian),this.offset+=4,this._updateLastWrittenByte(),this}writeUint32(a){return this.ensureAvailable(4),this._data.setUint32(this.offset,a,this.littleEndian),this.offset+=4,this._updateLastWrittenByte(),this}writeFloat32(a){return this.ensureAvailable(4),this._data.setFloat32(this.offset,a,this.littleEndian),this.offset+=4,this._updateLastWrittenByte(),this}writeFloat64(a){return this.ensureAvailable(8),this._data.setFloat64(this.offset,a,this.littleEndian),this.offset+=8,this._updateLastWrittenByte(),this}writeBigInt64(a){return this.ensureAvailable(8),this._data.setBigInt64(this.offset,a,this.littleEndian),this.offset+=8,this._updateLastWrittenByte(),this}writeBigUint64(a){return this.ensureAvailable(8),this._data.setBigUint64(this.offset,a,this.littleEndian),this.offset+=8,this._updateLastWrittenByte(),this}writeChar(a){return this.writeUint8(a.charCodeAt(0))}writeChars(a){for(let s=0;s<a.length;s++)this.writeUint8(a.charCodeAt(s));return this}writeUtf8(a){return this.writeBytes(Es(a))}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 fl=4,ko=0,CA=1,Rr=2;function hi(n){let a=n.length;for(;--a>=0;)n[a]=0}const Ws=0,Pa=1,WA=2,uA=3,Ao=258,pi=29,ms=256,Ka=ms+1+pi,Ns=30,Cs=19,dl=2*Ka+1,$a=15,Oa=16,In=7,Ba=256,Rs=16,Ro=17,$A=18,SA=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]),YA=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]),cA=new Uint8Array([0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,3,7]),Ms=new Uint8Array([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]),IA=512,ua=new Array((Ka+2)*2);hi(ua);const ca=new Array(Ns*2);hi(ca);const xa=new Array(IA);hi(xa);const Ca=new Array(Ao-uA+1);hi(Ca);const Si=new Array(pi);hi(Si);const hA=new Array(Ns);hi(hA);function fA(n,a,s,c,d){this.static_tree=n,this.extra_bits=a,this.extra_base=s,this.elems=c,this.max_length=d,this.has_stree=n&&n.length}let TA,Na,oi;function kl(n,a){this.dyn_tree=n,this.max_code=0,this.stat_desc=a}const gn=n=>n<256?xa[n]:xa[256+(n>>>7)],ha=(n,a)=>{n.pending_buf[n.pending++]=a&255,n.pending_buf[n.pending++]=a>>>8&255},ga=(n,a,s)=>{n.bi_valid>Oa-s?(n.bi_buf|=a<<n.bi_valid&65535,ha(n,n.bi_buf),n.bi_buf=a>>Oa-n.bi_valid,n.bi_valid+=s-Oa):(n.bi_buf|=a<<n.bi_valid&65535,n.bi_valid+=s)},Ya=(n,a,s)=>{ga(n,s[a*2],s[a*2+1])},Za=(n,a)=>{let s=0;do s|=n&1,n>>>=1,s<<=1;while(--a>0);return s>>>1},wo=n=>{n.bi_valid===16?(ha(n,n.bi_buf),n.bi_buf=0,n.bi_valid=0):n.bi_valid>=8&&(n.pending_buf[n.pending++]=n.bi_buf&255,n.bi_buf>>=8,n.bi_valid-=8)},gi=(n,a)=>{const s=a.dyn_tree,c=a.max_code,d=a.stat_desc.static_tree,m=a.stat_desc.has_stree,W=a.stat_desc.extra_bits,O=a.stat_desc.extra_base,$=a.stat_desc.max_length;let J,he,Ne,Ye,ce,wt,pt=0;for(Ye=0;Ye<=$a;Ye++)n.bl_count[Ye]=0;for(s[n.heap[n.heap_max]*2+1]=0,J=n.heap_max+1;J<dl;J++)he=n.heap[J],Ye=s[s[he*2+1]*2+1]+1,Ye>$&&(Ye=$,pt++),s[he*2+1]=Ye,!(he>c)&&(n.bl_count[Ye]++,ce=0,he>=O&&(ce=W[he-O]),wt=s[he*2],n.opt_len+=wt*(Ye+ce),m&&(n.static_len+=wt*(d[he*2+1]+ce)));if(pt!==0){do{for(Ye=$-1;n.bl_count[Ye]===0;)Ye--;n.bl_count[Ye]--,n.bl_count[Ye+1]+=2,n.bl_count[$]--,pt-=2}while(pt>0);for(Ye=$;Ye!==0;Ye--)for(he=n.bl_count[Ye];he!==0;)Ne=n.heap[--J],!(Ne>c)&&(s[Ne*2+1]!==Ye&&(n.opt_len+=(Ye-s[Ne*2+1])*s[Ne*2],s[Ne*2+1]=Ye),he--)}},Uo=(n,a,s)=>{const c=new Array($a+1);let d=0,m,W;for(m=1;m<=$a;m++)d=d+s[m-1]<<1,c[m]=d;for(W=0;W<=a;W++){let O=n[W*2+1];O!==0&&(n[W*2]=Za(c[O]++,O))}},Rl=()=>{let n,a,s,c,d;const m=new Array($a+1);for(s=0,c=0;c<pi-1;c++)for(Si[c]=s,n=0;n<1<<SA[c];n++)Ca[s++]=c;for(Ca[s-1]=c,d=0,c=0;c<16;c++)for(hA[c]=d,n=0;n<1<<YA[c];n++)xa[d++]=c;for(d>>=7;c<Ns;c++)for(hA[c]=d<<7,n=0;n<1<<YA[c]-7;n++)xa[256+d++]=c;for(a=0;a<=$a;a++)m[a]=0;for(n=0;n<=143;)ua[n*2+1]=8,n++,m[8]++;for(;n<=255;)ua[n*2+1]=9,n++,m[9]++;for(;n<=279;)ua[n*2+1]=7,n++,m[7]++;for(;n<=287;)ua[n*2+1]=8,n++,m[8]++;for(Uo(ua,Ka+1,m),n=0;n<Ns;n++)ca[n*2+1]=5,ca[n*2]=Za(n,5);TA=new fA(ua,SA,ms+1,Ka,$a),Na=new fA(ca,YA,0,Ns,$a),oi=new fA(new Array(0),cA,0,Cs,In)},Jl=n=>{let a;for(a=0;a<Ka;a++)n.dyn_ltree[a*2]=0;for(a=0;a<Ns;a++)n.dyn_dtree[a*2]=0;for(a=0;a<Cs;a++)n.bl_tree[a*2]=0;n.dyn_ltree[Ba*2]=1,n.opt_len=n.static_len=0,n.sym_next=n.matches=0},qa=n=>{n.bi_valid>8?ha(n,n.bi_buf):n.bi_valid>0&&(n.pending_buf[n.pending++]=n.bi_buf),n.bi_buf=0,n.bi_valid=0},pl=(n,a,s,c)=>{const d=a*2,m=s*2;return n[d]<n[m]||n[d]===n[m]&&c[a]<=c[s]},Ul=(n,a,s)=>{const c=n.heap[s];let d=s<<1;for(;d<=n.heap_len&&(d<n.heap_len&&pl(a,n.heap[d+1],n.heap[d],n.depth)&&d++,!pl(a,c,n.heap[d],n.depth));)n.heap[s]=n.heap[d],s=d,d<<=1;n.heap[s]=c},bo=(n,a,s)=>{let c,d,m=0,W,O;if(n.sym_next!==0)do c=n.pending_buf[n.sym_buf+m++]&255,c+=(n.pending_buf[n.sym_buf+m++]&255)<<8,d=n.pending_buf[n.sym_buf+m++],c===0?Ya(n,d,a):(W=Ca[d],Ya(n,W+ms+1,a),O=SA[W],O!==0&&(d-=Si[W],ga(n,d,O)),c--,W=gn(c),Ya(n,W,s),O=YA[W],O!==0&&(c-=hA[W],ga(n,c,O)));while(m<n.sym_next);Ya(n,Ba,a)},Eo=(n,a)=>{const s=a.dyn_tree,c=a.stat_desc.static_tree,d=a.stat_desc.has_stree,m=a.stat_desc.elems;let W,O,$=-1,J;for(n.heap_len=0,n.heap_max=dl,W=0;W<m;W++)s[W*2]!==0?(n.heap[++n.heap_len]=$=W,n.depth[W]=0):s[W*2+1]=0;for(;n.heap_len<2;)J=n.heap[++n.heap_len]=$<2?++$:0,s[J*2]=1,n.depth[J]=0,n.opt_len--,d&&(n.static_len-=c[J*2+1]);for(a.max_code=$,W=n.heap_len>>1;W>=1;W--)Ul(n,s,W);J=m;do W=n.heap[1],n.heap[1]=n.heap[n.heap_len--],Ul(n,s,1),O=n.heap[1],n.heap[--n.heap_max]=W,n.heap[--n.heap_max]=O,s[J*2]=s[W*2]+s[O*2],n.depth[J]=(n.depth[W]>=n.depth[O]?n.depth[W]:n.depth[O])+1,s[W*2+1]=s[O*2+1]=J,n.heap[1]=J++,Ul(n,s,1);while(n.heap_len>=2);n.heap[--n.heap_max]=n.heap[1],gi(n,a),Uo(s,$,n.bl_count)},Po=(n,a,s)=>{let c,d=-1,m,W=a[0*2+1],O=0,$=7,J=4;for(W===0&&($=138,J=3),a[(s+1)*2+1]=65535,c=0;c<=s;c++)m=W,W=a[(c+1)*2+1],!(++O<$&&m===W)&&(O<J?n.bl_tree[m*2]+=O:m!==0?(m!==d&&n.bl_tree[m*2]++,n.bl_tree[Rs*2]++):O<=10?n.bl_tree[Ro*2]++:n.bl_tree[$A*2]++,O=0,d=m,W===0?($=138,J=3):m===W?($=6,J=3):($=7,J=4))},ZA=(n,a,s)=>{let c,d=-1,m,W=a[0*2+1],O=0,$=7,J=4;for(W===0&&($=138,J=3),c=0;c<=s;c++)if(m=W,W=a[(c+1)*2+1],!(++O<$&&m===W)){if(O<J)do Ya(n,m,n.bl_tree);while(--O!==0);else m!==0?(m!==d&&(Ya(n,m,n.bl_tree),O--),Ya(n,Rs,n.bl_tree),ga(n,O-3,2)):O<=10?(Ya(n,Ro,n.bl_tree),ga(n,O-3,3)):(Ya(n,$A,n.bl_tree),ga(n,O-11,7));O=0,d=m,W===0?($=138,J=3):m===W?($=6,J=3):($=7,J=4)}},FA=n=>{let a;for(Po(n,n.dyn_ltree,n.l_desc.max_code),Po(n,n.dyn_dtree,n.d_desc.max_code),Eo(n,n.bl_desc),a=Cs-1;a>=3&&n.bl_tree[Ms[a]*2+1]===0;a--);return n.opt_len+=3*(a+1)+5+5+4,a},dA=(n,a,s,c)=>{let d;for(ga(n,a-257,5),ga(n,s-1,5),ga(n,c-4,4),d=0;d<c;d++)ga(n,n.bl_tree[Ms[d]*2+1],3);ZA(n,n.dyn_ltree,a-1),ZA(n,n.dyn_dtree,s-1)},Ki=n=>{let a=4093624447,s;for(s=0;s<=31;s++,a>>>=1)if(a&1&&n.dyn_ltree[s*2]!==0)return ko;if(n.dyn_ltree[9*2]!==0||n.dyn_ltree[10*2]!==0||n.dyn_ltree[13*2]!==0)return CA;for(s=32;s<ms;s++)if(n.dyn_ltree[s*2]!==0)return CA;return ko};let Nn=!1;const Ai=n=>{Nn||(Rl(),Nn=!0),n.l_desc=new kl(n.dyn_ltree,TA),n.d_desc=new kl(n.dyn_dtree,Na),n.bl_desc=new kl(n.bl_tree,oi),n.bi_buf=0,n.bi_valid=0,Jl(n)},Bs=(n,a,s,c)=>{ga(n,(Ws<<1)+(c?1:0),3),qa(n),ha(n,s),ha(n,~s),s&&n.pending_buf.set(n.window.subarray(a,a+s),n.pending),n.pending+=s},fi=n=>{ga(n,Pa<<1,3),Ya(n,Ba,ua),wo(n)},mi=(n,a,s,c)=>{let d,m,W=0;n.level>0?(n.strm.data_type===Rr&&(n.strm.data_type=Ki(n)),Eo(n,n.l_desc),Eo(n,n.d_desc),W=FA(n),d=n.opt_len+3+7>>>3,m=n.static_len+3+7>>>3,m<=d&&(d=m)):d=m=s+5,s+4<=d&&a!==-1?Bs(n,a,s,c):n.strategy===fl||m===d?(ga(n,(Pa<<1)+(c?1:0),3),bo(n,ua,ca)):(ga(n,(WA<<1)+(c?1:0),3),dA(n,n.l_desc.max_code+1,n.d_desc.max_code+1,W+1),bo(n,n.dyn_ltree,n.dyn_dtree)),Jl(n),c&&qa(n)},qA=(n,a,s)=>(n.pending_buf[n.sym_buf+n.sym_next++]=a,n.pending_buf[n.sym_buf+n.sym_next++]=a>>8,n.pending_buf[n.sym_buf+n.sym_next++]=s,a===0?n.dyn_ltree[s*2]++:(n.matches++,a--,n.dyn_ltree[(Ca[s]+ms+1)*2]++,n.dyn_dtree[gn(a)*2]++),n.sym_next===n.sym_end);var za=Ai,Fs=Bs,gl=mi,Xa=qA,Xc=fi,ml={_tr_init:za,_tr_stored_block:Fs,_tr_flush_block:gl,_tr_tally:Xa,_tr_align:Xc},Ji=(n,a,s,c)=>{let d=n&65535|0,m=n>>>16&65535|0,W=0;for(;s!==0;){W=s>2e3?2e3:s,s-=W;do d=d+a[c++]|0,m=m+d|0;while(--W);d%=65521,m%=65521}return d|m<<16|0};const vl=()=>{let n,a=[];for(var s=0;s<256;s++){n=s;for(var c=0;c<8;c++)n=n&1?3988292384^n>>>1:n>>>1;a[s]=n}return a},xc=new Uint32Array(vl());var ma=(n,a,s,c)=>{const d=xc,m=c+s;n^=-1;for(let W=c;W<m;W++)n=n>>>8^d[(n^a[W])&255];return n^-1},LA={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"},XA={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:$0,_tr_stored_block:Ja,_tr_flush_block:DA,_tr_tally:ea,_tr_align:Ma}=ml,{Z_NO_FLUSH:Bo,Z_PARTIAL_FLUSH:Sc,Z_FULL_FLUSH:Jc,Z_FINISH:lo,Z_BLOCK:ec,Z_OK:eo,Z_STREAM_END:xo,Z_STREAM_ERROR:Sa,Z_DATA_ERROR:Y0,Z_BUF_ERROR:Oo,Z_DEFAULT_COMPRESSION:Iu,Z_FILTERED:Tu,Z_HUFFMAN_ONLY:eu,Z_RLE:Z0,Z_FIXED:Ga,Z_DEFAULT_STRATEGY:e0,Z_UNKNOWN:tu,Z_DEFLATED:ru}=XA,gA=9,t0=15,JA=8,Fu=256+1+29,n0=30,i0=19,Ic=2*Fu+1,Pl=15,ss=3,qo=258,mA=qo+ss+1,X0=32,kA=42,Ol=57,Qa=69,to=73,Tc=91,Zr=103,RA=113,nu=666,fa=1,iu=2,No=3,Mo=4,Jh=3,su=(n,a)=>(n.msg=LA[a],a),tc=n=>n*2-(n>4?9:0),vA=n=>{let a=n.length;for(;--a>=0;)n[a]=0},el=n=>{let a,s,c,d=n.w_size;a=n.hash_size,c=a;do s=n.head[--c],n.head[c]=s>=d?s-d:0;while(--a);a=d,c=a;do s=n.prev[--c],n.prev[c]=s>=d?s-d:0;while(--a)};let Nl=(n,a,s)=>(a<<n.hash_shift^s)&n.hash_mask;const Qo=n=>{const a=n.state;let s=a.pending;s>n.avail_out&&(s=n.avail_out),s!==0&&(n.output.set(a.pending_buf.subarray(a.pending_out,a.pending_out+s),n.next_out),n.next_out+=s,a.pending_out+=s,n.total_out+=s,n.avail_out-=s,a.pending-=s,a.pending===0&&(a.pending_out=0))},Xo=(n,a)=>{DA(n,n.block_start>=0?n.block_start:-1,n.strstart-n.block_start,a),n.block_start=n.strstart,Qo(n.strm)},as=(n,a)=>{n.pending_buf[n.pending++]=a},yl=(n,a)=>{n.pending_buf[n.pending++]=a>>>8&255,n.pending_buf[n.pending++]=a&255},Ml=(n,a,s,c)=>{let d=n.avail_in;return d>c&&(d=c),d===0?0:(n.avail_in-=d,a.set(n.input.subarray(n.next_in,n.next_in+d),s),n.state.wrap===1?n.adler=Ji(n.adler,a,d,s):n.state.wrap===2&&(n.adler=ma(n.adler,a,d,s)),n.next_in+=d,n.total_in+=d,d)},au=(n,a)=>{let s=n.max_chain_length,c=n.strstart,d,m,W=n.prev_length,O=n.nice_match;const $=n.strstart>n.w_size-mA?n.strstart-(n.w_size-mA):0,J=n.window,he=n.w_mask,Ne=n.prev,Ye=n.strstart+qo;let ce=J[c+W-1],wt=J[c+W];n.prev_length>=n.good_match&&(s>>=2),O>n.lookahead&&(O=n.lookahead);do if(d=a,!(J[d+W]!==wt||J[d+W-1]!==ce||J[d]!==J[c]||J[++d]!==J[c+1])){c+=2,d++;do;while(J[++c]===J[++d]&&J[++c]===J[++d]&&J[++c]===J[++d]&&J[++c]===J[++d]&&J[++c]===J[++d]&&J[++c]===J[++d]&&J[++c]===J[++d]&&J[++c]===J[++d]&&c<Ye);if(m=qo-(Ye-c),c=Ye-qo,m>W){if(n.match_start=a,W=m,m>=O)break;ce=J[c+W-1],wt=J[c+W]}}while((a=Ne[a&he])>$&&--s!==0);return W<=n.lookahead?W:n.lookahead},ou=n=>{const a=n.w_size;let s,c,d;do{if(c=n.window_size-n.lookahead-n.strstart,n.strstart>=a+(a-mA)&&(n.window.set(n.window.subarray(a,a+a-c),0),n.match_start-=a,n.strstart-=a,n.block_start-=a,n.insert>n.strstart&&(n.insert=n.strstart),el(n),c+=a),n.strm.avail_in===0)break;if(s=Ml(n.strm,n.window,n.strstart+n.lookahead,c),n.lookahead+=s,n.lookahead+n.insert>=ss)for(d=n.strstart-n.insert,n.ins_h=n.window[d],n.ins_h=Nl(n,n.ins_h,n.window[d+1]);n.insert&&(n.ins_h=Nl(n,n.ins_h,n.window[d+ss-1]),n.prev[d&n.w_mask]=n.head[n.ins_h],n.head[n.ins_h]=d,d++,n.insert--,!(n.lookahead+n.insert<ss)););}while(n.lookahead<mA&&n.strm.avail_in!==0)},Au=(n,a)=>{let s=n.pending_buf_size-5>n.w_size?n.w_size:n.pending_buf_size-5,c,d,m,W=0,O=n.strm.avail_in;do{if(c=65535,m=n.bi_valid+42>>3,n.strm.avail_out<m||(m=n.strm.avail_out-m,d=n.strstart-n.block_start,c>d+n.strm.avail_in&&(c=d+n.strm.avail_in),c>m&&(c=m),c<s&&(c===0&&a!==lo||a===Bo||c!==d+n.strm.avail_in)))break;W=a===lo&&c===d+n.strm.avail_in?1:0,Ja(n,0,0,W),n.pending_buf[n.pending-4]=c,n.pending_buf[n.pending-3]=c>>8,n.pending_buf[n.pending-2]=~c,n.pending_buf[n.pending-1]=~c>>8,Qo(n.strm),d&&(d>c&&(d=c),n.strm.output.set(n.window.subarray(n.block_start,n.block_start+d),n.strm.next_out),n.strm.next_out+=d,n.strm.avail_out-=d,n.strm.total_out+=d,n.block_start+=d,c-=d),c&&(Ml(n.strm,n.strm.output,n.strm.next_out,c),n.strm.next_out+=c,n.strm.avail_out-=c,n.strm.total_out+=c)}while(W===0);return O-=n.strm.avail_in,O&&(O>=n.w_size?(n.matches=2,n.window.set(n.strm.input.subarray(n.strm.next_in-n.w_size,n.strm.next_in),0),n.strstart=n.w_size,n.insert=n.strstart):(n.window_size-n.strstart<=O&&(n.strstart-=n.w_size,n.window.set(n.window.subarray(n.w_size,n.w_size+n.strstart),0),n.matches<2&&n.matches++,n.insert>n.strstart&&(n.insert=n.strstart)),n.window.set(n.strm.input.subarray(n.strm.next_in-O,n.strm.next_in),n.strstart),n.strstart+=O,n.insert+=O>n.w_size-n.insert?n.w_size-n.insert:O),n.block_start=n.strstart),n.high_water<n.strstart&&(n.high_water=n.strstart),W?Mo:a!==Bo&&a!==lo&&n.strm.avail_in===0&&n.strstart===n.block_start?iu:(m=n.window_size-n.strstart,n.strm.avail_in>m&&n.block_start>=n.w_size&&(n.block_start-=n.w_size,n.strstart-=n.w_size,n.window.set(n.window.subarray(n.w_size,n.w_size+n.strstart),0),n.matches<2&&n.matches++,m+=n.w_size,n.insert>n.strstart&&(n.insert=n.strstart)),m>n.strm.avail_in&&(m=n.strm.avail_in),m&&(Ml(n.strm,n.window,n.strstart,m),n.strstart+=m,n.insert+=m>n.w_size-n.insert?n.w_size-n.insert:m),n.high_water<n.strstart&&(n.high_water=n.strstart),m=n.bi_valid+42>>3,m=n.pending_buf_size-m>65535?65535:n.pending_buf_size-m,s=m>n.w_size?n.w_size:m,d=n.strstart-n.block_start,(d>=s||(d||a===lo)&&a!==Bo&&n.strm.avail_in===0&&d<=m)&&(c=d>m?m:d,W=a===lo&&n.strm.avail_in===0&&c===d?1:0,Ja(n,n.block_start,c,W),n.block_start+=c,Qo(n.strm)),W?No:fa)},Fc=(n,a)=>{let s,c;for(;;){if(n.lookahead<mA){if(ou(n),n.lookahead<mA&&a===Bo)return fa;if(n.lookahead===0)break}if(s=0,n.lookahead>=ss&&(n.ins_h=Nl(n,n.ins_h,n.window[n.strstart+ss-1]),s=n.prev[n.strstart&n.w_mask]=n.head[n.ins_h],n.head[n.ins_h]=n.strstart),s!==0&&n.strstart-s<=n.w_size-mA&&(n.match_length=au(n,s)),n.match_length>=ss)if(c=ea(n,n.strstart-n.match_start,n.match_length-ss),n.lookahead-=n.match_length,n.match_length<=n.max_lazy_match&&n.lookahead>=ss){n.match_length--;do n.strstart++,n.ins_h=Nl(n,n.ins_h,n.window[n.strstart+ss-1]),s=n.prev[n.strstart&n.w_mask]=n.head[n.ins_h],n.head[n.ins_h]=n.strstart;while(--n.match_length!==0);n.strstart++}else n.strstart+=n.match_length,n.match_length=0,n.ins_h=n.window[n.strstart],n.ins_h=Nl(n,n.ins_h,n.window[n.strstart+1]);else c=ea(n,0,n.window[n.strstart]),n.lookahead--,n.strstart++;if(c&&(Xo(n,!1),n.strm.avail_out===0))return fa}return n.insert=n.strstart<ss-1?n.strstart:ss-1,a===lo?(Xo(n,!0),n.strm.avail_out===0?No:Mo):n.sym_next&&(Xo(n,!1),n.strm.avail_out===0)?fa:iu},_l=(n,a)=>{let s,c,d;for(;;){if(n.lookahead<mA){if(ou(n),n.lookahead<mA&&a===Bo)return fa;if(n.lookahead===0)break}if(s=0,n.lookahead>=ss&&(n.ins_h=Nl(n,n.ins_h,n.window[n.strstart+ss-1]),s=n.prev[n.strstart&n.w_mask]=n.head[n.ins_h],n.head[n.ins_h]=n.strstart),n.prev_length=n.match_length,n.prev_match=n.match_start,n.match_length=ss-1,s!==0&&n.prev_length<n.max_lazy_match&&n.strstart-s<=n.w_size-mA&&(n.match_length=au(n,s),n.match_length<=5&&(n.strategy===Tu||n.match_length===ss&&n.strstart-n.match_start>4096)&&(n.match_length=ss-1)),n.prev_length>=ss&&n.match_length<=n.prev_length){d=n.strstart+n.lookahead-ss,c=ea(n,n.strstart-1-n.prev_match,n.prev_length-ss),n.lookahead-=n.prev_length-1,n.prev_length-=2;do++n.strstart<=d&&(n.ins_h=Nl(n,n.ins_h,n.window[n.strstart+ss-1]),s=n.prev[n.strstart&n.w_mask]=n.head[n.ins_h],n.head[n.ins_h]=n.strstart);while(--n.prev_length!==0);if(n.match_available=0,n.match_length=ss-1,n.strstart++,c&&(Xo(n,!1),n.strm.avail_out===0))return fa}else if(n.match_available){if(c=ea(n,0,n.window[n.strstart-1]),c&&Xo(n,!1),n.strstart++,n.lookahead--,n.strm.avail_out===0)return fa}else n.match_available=1,n.strstart++,n.lookahead--}return n.match_available&&(c=ea(n,0,n.window[n.strstart-1]),n.match_available=0),n.insert=n.strstart<ss-1?n.strstart:ss-1,a===lo?(Xo(n,!0),n.strm.avail_out===0?No:Mo):n.sym_next&&(Xo(n,!1),n.strm.avail_out===0)?fa:iu},J0=(n,a)=>{let s,c,d,m;const W=n.window;for(;;){if(n.lookahead<=qo){if(ou(n),n.lookahead<=qo&&a===Bo)return fa;if(n.lookahead===0)break}if(n.match_length=0,n.lookahead>=ss&&n.strstart>0&&(d=n.strstart-1,c=W[d],c===W[++d]&&c===W[++d]&&c===W[++d])){m=n.strstart+qo;do;while(c===W[++d]&&c===W[++d]&&c===W[++d]&&c===W[++d]&&c===W[++d]&&c===W[++d]&&c===W[++d]&&c===W[++d]&&d<m);n.match_length=qo-(m-d),n.match_length>n.lookahead&&(n.match_length=n.lookahead)}if(n.match_length>=ss?(s=ea(n,1,n.match_length-ss),n.lookahead-=n.match_length,n.strstart+=n.match_length,n.match_length=0):(s=ea(n,0,n.window[n.strstart]),n.lookahead--,n.strstart++),s&&(Xo(n,!1),n.strm.avail_out===0))return fa}return n.insert=0,a===lo?(Xo(n,!0),n.strm.avail_out===0?No:Mo):n.sym_next&&(Xo(n,!1),n.strm.avail_out===0)?fa:iu},Lc=(n,a)=>{let s;for(;;){if(n.lookahead===0&&(ou(n),n.lookahead===0)){if(a===Bo)return fa;break}if(n.match_length=0,s=ea(n,0,n.window[n.strstart]),n.lookahead--,n.strstart++,s&&(Xo(n,!1),n.strm.avail_out===0))return fa}return n.insert=0,a===lo?(Xo(n,!0),n.strm.avail_out===0?No:Mo):n.sym_next&&(Xo(n,!1),n.strm.avail_out===0)?fa:iu};function Ho(n,a,s,c,d){this.good_length=n,this.max_lazy=a,this.nice_length=s,this.max_chain=c,this.func=d}const lu=[new Ho(0,0,0,0,Au),new Ho(4,4,8,4,Fc),new Ho(4,5,16,8,Fc),new Ho(4,6,32,32,Fc),new Ho(4,4,16,16,_l),new Ho(8,16,32,32,_l),new Ho(8,16,128,128,_l),new Ho(8,32,128,256,_l),new Ho(32,128,258,1024,_l),new Ho(32,258,258,4096,_l)],s0=n=>{n.window_size=2*n.w_size,vA(n.head),n.max_lazy_match=lu[n.level].max_lazy,n.good_match=lu[n.level].good_length,n.nice_match=lu[n.level].nice_length,n.max_chain_length=lu[n.level].max_chain,n.strstart=0,n.block_start=0,n.lookahead=0,n.insert=0,n.match_length=n.prev_length=ss-1,n.match_available=0,n.ins_h=0};function eh(){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=ru,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(Ic*2),this.dyn_dtree=new Uint16Array((2*n0+1)*2),this.bl_tree=new Uint16Array((2*i0+1)*2),vA(this.dyn_ltree),vA(this.dyn_dtree),vA(this.bl_tree),this.l_desc=null,this.d_desc=null,this.bl_desc=null,this.bl_count=new Uint16Array(Pl+1),this.heap=new Uint16Array(2*Fu+1),vA(this.heap),this.heap_len=0,this.heap_max=0,this.depth=new Uint16Array(2*Fu+1),vA(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 rc=n=>{if(!n)return 1;const a=n.state;return!a||a.strm!==n||a.status!==kA&&a.status!==Ol&&a.status!==Qa&&a.status!==to&&a.status!==Tc&&a.status!==Zr&&a.status!==RA&&a.status!==nu?1:0},a0=n=>{if(rc(n))return su(n,Sa);n.total_in=n.total_out=0,n.data_type=tu;const a=n.state;return a.pending=0,a.pending_out=0,a.wrap<0&&(a.wrap=-a.wrap),a.status=a.wrap===2?Ol:a.wrap?kA:RA,n.adler=a.wrap===2?0:1,a.last_flush=-2,$0(a),eo},uu=n=>{const a=a0(n);return a===eo&&s0(n.state),a},tf=(n,a)=>rc(n)||n.state.wrap!==2?Sa:(n.state.gzhead=a,eo),Dc=(n,a,s,c,d,m)=>{if(!n)return Sa;let W=1;if(a===Iu&&(a=6),c<0?(W=0,c=-c):c>15&&(W=2,c-=16),d<1||d>gA||s!==ru||c<8||c>15||a<0||a>9||m<0||m>Ga||c===8&&W!==1)return su(n,Sa);c===8&&(c=9);const O=new eh;return n.state=O,O.strm=n,O.status=kA,O.wrap=W,O.gzhead=null,O.w_bits=c,O.w_size=1<<O.w_bits,O.w_mask=O.w_size-1,O.hash_bits=d+7,O.hash_size=1<<O.hash_bits,O.hash_mask=O.hash_size-1,O.hash_shift=~~((O.hash_bits+ss-1)/ss),O.window=new Uint8Array(O.w_size*2),O.head=new Uint16Array(O.hash_size),O.prev=new Uint16Array(O.w_size),O.lit_bufsize=1<<d+6,O.pending_buf_size=O.lit_bufsize*4,O.pending_buf=new Uint8Array(O.pending_buf_size),O.sym_buf=O.lit_bufsize,O.sym_end=(O.lit_bufsize-1)*3,O.level=a,O.strategy=m,O.method=s,uu(n)},o0=(n,a)=>Dc(n,a,ru,t0,JA,e0),rf=(n,a)=>{if(rc(n)||a>ec||a<0)return n?su(n,Sa):Sa;const s=n.state;if(!n.output||n.avail_in!==0&&!n.input||s.status===nu&&a!==lo)return su(n,n.avail_out===0?Oo:Sa);const c=s.last_flush;if(s.last_flush=a,s.pending!==0){if(Qo(n),n.avail_out===0)return s.last_flush=-1,eo}else if(n.avail_in===0&&tc(a)<=tc(c)&&a!==lo)return su(n,Oo);if(s.status===nu&&n.avail_in!==0)return su(n,Oo);if(s.status===kA&&s.wrap===0&&(s.status=RA),s.status===kA){let d=ru+(s.w_bits-8<<4)<<8,m=-1;if(s.strategy>=eu||s.level<2?m=0:s.level<6?m=1:s.level===6?m=2:m=3,d|=m<<6,s.strstart!==0&&(d|=X0),d+=31-d%31,yl(s,d),s.strstart!==0&&(yl(s,n.adler>>>16),yl(s,n.adler&65535)),n.adler=1,s.status=RA,Qo(n),s.pending!==0)return s.last_flush=-1,eo}if(s.status===Ol){if(n.adler=0,as(s,31),as(s,139),as(s,8),s.gzhead)as(s,(s.gzhead.text?1:0)+(s.gzhead.hcrc?2:0)+(s.gzhead.extra?4:0)+(s.gzhead.name?8:0)+(s.gzhead.comment?16:0)),as(s,s.gzhead.time&255),as(s,s.gzhead.time>>8&255),as(s,s.gzhead.time>>16&255),as(s,s.gzhead.time>>24&255),as(s,s.level===9?2:s.strategy>=eu||s.level<2?4:0),as(s,s.gzhead.os&255),s.gzhead.extra&&s.gzhead.extra.length&&(as(s,s.gzhead.extra.length&255),as(s,s.gzhead.extra.length>>8&255)),s.gzhead.hcrc&&(n.adler=ma(n.adler,s.pending_buf,s.pending,0)),s.gzindex=0,s.status=Qa;else if(as(s,0),as(s,0),as(s,0),as(s,0),as(s,0),as(s,s.level===9?2:s.strategy>=eu||s.level<2?4:0),as(s,Jh),s.status=RA,Qo(n),s.pending!==0)return s.last_flush=-1,eo}if(s.status===Qa){if(s.gzhead.extra){let d=s.pending,m=(s.gzhead.extra.length&65535)-s.gzindex;for(;s.pending+m>s.pending_buf_size;){let O=s.pending_buf_size-s.pending;if(s.pending_buf.set(s.gzhead.extra.subarray(s.gzindex,s.gzindex+O),s.pending),s.pending=s.pending_buf_size,s.gzhead.hcrc&&s.pending>d&&(n.adler=ma(n.adler,s.pending_buf,s.pending-d,d)),s.gzindex+=O,Qo(n),s.pending!==0)return s.last_flush=-1,eo;d=0,m-=O}let W=new Uint8Array(s.gzhead.extra);s.pending_buf.set(W.subarray(s.gzindex,s.gzindex+m),s.pending),s.pending+=m,s.gzhead.hcrc&&s.pending>d&&(n.adler=ma(n.adler,s.pending_buf,s.pending-d,d)),s.gzindex=0}s.status=to}if(s.status===to){if(s.gzhead.name){let d=s.pending,m;do{if(s.pending===s.pending_buf_size){if(s.gzhead.hcrc&&s.pending>d&&(n.adler=ma(n.adler,s.pending_buf,s.pending-d,d)),Qo(n),s.pending!==0)return s.last_flush=-1,eo;d=0}s.gzindex<s.gzhead.name.length?m=s.gzhead.name.charCodeAt(s.gzindex++)&255:m=0,as(s,m)}while(m!==0);s.gzhead.hcrc&&s.pending>d&&(n.adler=ma(n.adler,s.pending_buf,s.pending-d,d)),s.gzindex=0}s.status=Tc}if(s.status===Tc){if(s.gzhead.comment){let d=s.pending,m;do{if(s.pending===s.pending_buf_size){if(s.gzhead.hcrc&&s.pending>d&&(n.adler=ma(n.adler,s.pending_buf,s.pending-d,d)),Qo(n),s.pending!==0)return s.last_flush=-1,eo;d=0}s.gzindex<s.gzhead.comment.length?m=s.gzhead.comment.charCodeAt(s.gzindex++)&255:m=0,as(s,m)}while(m!==0);s.gzhead.hcrc&&s.pending>d&&(n.adler=ma(n.adler,s.pending_buf,s.pending-d,d))}s.status=Zr}if(s.status===Zr){if(s.gzhead.hcrc){if(s.pending+2>s.pending_buf_size&&(Qo(n),s.pending!==0))return s.last_flush=-1,eo;as(s,n.adler&255),as(s,n.adler>>8&255),n.adler=0}if(s.status=RA,Qo(n),s.pending!==0)return s.last_flush=-1,eo}if(n.avail_in!==0||s.lookahead!==0||a!==Bo&&s.status!==nu){let d=s.level===0?Au(s,a):s.strategy===eu?Lc(s,a):s.strategy===Z0?J0(s,a):lu[s.level].func(s,a);if((d===No||d===Mo)&&(s.status=nu),d===fa||d===No)return n.avail_out===0&&(s.last_flush=-1),eo;if(d===iu&&(a===Sc?Ma(s):a!==ec&&(Ja(s,0,0,!1),a===Jc&&(vA(s.head),s.lookahead===0&&(s.strstart=0,s.block_start=0,s.insert=0))),Qo(n),n.avail_out===0))return s.last_flush=-1,eo}return a!==lo?eo:s.wrap<=0?xo:(s.wrap===2?(as(s,n.adler&255),as(s,n.adler>>8&255),as(s,n.adler>>16&255),as(s,n.adler>>24&255),as(s,n.total_in&255),as(s,n.total_in>>8&255),as(s,n.total_in>>16&255),as(s,n.total_in>>24&255)):(yl(s,n.adler>>>16),yl(s,n.adler&65535)),Qo(n),s.wrap>0&&(s.wrap=-s.wrap),s.pending!==0?eo:xo)},th=n=>{if(rc(n))return Sa;const a=n.state.status;return n.state=null,a===RA?su(n,Y0):eo},A0=(n,a)=>{let s=a.length;if(rc(n))return Sa;const c=n.state,d=c.wrap;if(d===2||d===1&&c.status!==kA||c.lookahead)return Sa;if(d===1&&(n.adler=Ji(n.adler,a,s,0)),c.wrap=0,s>=c.w_size){d===0&&(vA(c.head),c.strstart=0,c.block_start=0,c.insert=0);let $=new Uint8Array(c.w_size);$.set(a.subarray(s-c.w_size,s),0),a=$,s=c.w_size}const m=n.avail_in,W=n.next_in,O=n.input;for(n.avail_in=s,n.next_in=0,n.input=a,ou(c);c.lookahead>=ss;){let $=c.strstart,J=c.lookahead-(ss-1);do c.ins_h=Nl(c,c.ins_h,c.window[$+ss-1]),c.prev[$&c.w_mask]=c.head[c.ins_h],c.head[c.ins_h]=$,$++;while(--J);c.strstart=$,c.lookahead=ss-1,ou(c)}return c.strstart+=c.lookahead,c.block_start=c.strstart,c.insert=c.lookahead,c.lookahead=0,c.match_length=c.prev_length=ss-1,c.match_available=0,n.next_in=W,n.input=O,n.avail_in=m,c.wrap=d,eo};var lt=o0,rh=Dc,l0=uu,u0=a0,nh=tf,Lu=rf,ih=th,Du=A0,sh="pako deflate (from Nodeca project)",ku={deflateInit:lt,deflateInit2:rh,deflateReset:l0,deflateResetKeep:u0,deflateSetHeader:nh,deflate:Lu,deflateEnd:ih,deflateSetDictionary:Du,deflateInfo:sh};const kc=(n,a)=>Object.prototype.hasOwnProperty.call(n,a);var uo=function(n){const a=Array.prototype.slice.call(arguments,1);for(;a.length;){const s=a.shift();if(s){if(typeof s!="object")throw new TypeError(s+"must be non-object");for(const c in s)kc(s,c)&&(n[c]=s[c])}}return n},tl=n=>{let a=0;for(let c=0,d=n.length;c<d;c++)a+=n[c].length;const s=new Uint8Array(a);for(let c=0,d=0,m=n.length;c<m;c++){let W=n[c];s.set(W,d),d+=W.length}return s},Ql={assign:uo,flattenChunks:tl};let c0=!0;try{String.fromCharCode.apply(null,new Uint8Array(1))}catch(n){c0=!1}const Hl=new Uint8Array(256);for(let n=0;n<256;n++)Hl[n]=n>=252?6:n>=248?5:n>=240?4:n>=224?3:n>=192?2:1;Hl[254]=Hl[254]=1;var nf=n=>{if(typeof TextEncoder=="function"&&TextEncoder.prototype.encode)return new TextEncoder().encode(n);let a,s,c,d,m,W=n.length,O=0;for(d=0;d<W;d++)s=n.charCodeAt(d),(s&64512)===55296&&d+1<W&&(c=n.charCodeAt(d+1),(c&64512)===56320&&(s=65536+(s-55296<<10)+(c-56320),d++)),O+=s<128?1:s<2048?2:s<65536?3:4;for(a=new Uint8Array(O),m=0,d=0;m<O;d++)s=n.charCodeAt(d),(s&64512)===55296&&d+1<W&&(c=n.charCodeAt(d+1),(c&64512)===56320&&(s=65536+(s-55296<<10)+(c-56320),d++)),s<128?a[m++]=s:s<2048?(a[m++]=192|s>>>6,a[m++]=128|s&63):s<65536?(a[m++]=224|s>>>12,a[m++]=128|s>>>6&63,a[m++]=128|s&63):(a[m++]=240|s>>>18,a[m++]=128|s>>>12&63,a[m++]=128|s>>>6&63,a[m++]=128|s&63);return a};const ah=(n,a)=>{if(a<65534&&n.subarray&&c0)return String.fromCharCode.apply(null,n.length===a?n:n.subarray(0,a));let s="";for(let c=0;c<a;c++)s+=String.fromCharCode(n[c]);return s};var h0=(n,a)=>{const s=a||n.length;if(typeof TextDecoder=="function"&&TextDecoder.prototype.decode)return new TextDecoder().decode(n.subarray(0,a));let c,d;const m=new Array(s*2);for(d=0,c=0;c<s;){let W=n[c++];if(W<128){m[d++]=W;continue}let O=Hl[W];if(O>4){m[d++]=65533,c+=O-1;continue}for(W&=O===2?31:O===3?15:7;O>1&&c<s;)W=W<<6|n[c++]&63,O--;if(O>1){m[d++]=65533;continue}W<65536?m[d++]=W:(W-=65536,m[d++]=55296|W>>10&1023,m[d++]=56320|W&1023)}return ah(m,d)},sf=(n,a)=>{a=a||n.length,a>n.length&&(a=n.length);let s=a-1;for(;s>=0&&(n[s]&192)===128;)s--;return s<0||s===0?a:s+Hl[n[s]]>a?s:a},cu={string2buf:nf,buf2string:h0,utf8border:sf};function af(){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 Ee=af;const f=Object.prototype.toString,{Z_NO_FLUSH:v,Z_SYNC_FLUSH:x,Z_FULL_FLUSH:Q,Z_FINISH:re,Z_OK:be,Z_STREAM_END:Ze,Z_DEFAULT_COMPRESSION:nt,Z_DEFAULT_STRATEGY:St,Z_DEFLATED:Jt}=XA;function dr(n){this.options=Ql.assign({level:nt,method:Jt,chunkSize:16384,windowBits:15,memLevel:8,strategy:St},n||{});let a=this.options;a.raw&&a.windowBits>0?a.windowBits=-a.windowBits:a.gzip&&a.windowBits>0&&a.windowBits<16&&(a.windowBits+=16),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new Ee,this.strm.avail_out=0;let s=ku.deflateInit2(this.strm,a.level,a.method,a.windowBits,a.memLevel,a.strategy);if(s!==be)throw new Error(LA[s]);if(a.header&&ku.deflateSetHeader(this.strm,a.header),a.dictionary){let c;if(typeof a.dictionary=="string"?c=cu.string2buf(a.dictionary):f.call(a.dictionary)==="[object ArrayBuffer]"?c=new Uint8Array(a.dictionary):c=a.dictionary,s=ku.deflateSetDictionary(this.strm,c),s!==be)throw new Error(LA[s]);this._dict_set=!0}}dr.prototype.push=function(n,a){const s=this.strm,c=this.options.chunkSize;let d,m;if(this.ended)return!1;for(a===~~a?m=a:m=a===!0?re:v,typeof n=="string"?s.input=cu.string2buf(n):f.call(n)==="[object ArrayBuffer]"?s.input=new Uint8Array(n):s.input=n,s.next_in=0,s.avail_in=s.input.length;;){if(s.avail_out===0&&(s.output=new Uint8Array(c),s.next_out=0,s.avail_out=c),(m===x||m===Q)&&s.avail_out<=6){this.onData(s.output.subarray(0,s.next_out)),s.avail_out=0;continue}if(d=ku.deflate(s,m),d===Ze)return s.next_out>0&&this.onData(s.output.subarray(0,s.next_out)),d=ku.deflateEnd(this.strm),this.onEnd(d),this.ended=!0,d===be;if(s.avail_out===0){this.onData(s.output);continue}if(m>0&&s.next_out>0){this.onData(s.output.subarray(0,s.next_out)),s.avail_out=0;continue}if(s.avail_in===0)break}return!0},dr.prototype.onData=function(n){this.chunks.push(n)},dr.prototype.onEnd=function(n){n===be&&(this.result=Ql.flattenChunks(this.chunks)),this.chunks=[],this.err=n,this.msg=this.strm.msg};function Or(n,a){const s=new dr(a);if(s.push(n,!0),s.err)throw s.msg||LA[s.err];return s.result}function on(n,a){return a=a||{},a.raw=!0,Or(n,a)}function tn(n,a){return a=a||{},a.gzip=!0,Or(n,a)}var Fn=dr,$n=Or,Zn=on,yi=tn,Oi=XA,Qs={Deflate:Fn,deflate:$n,deflateRaw:Zn,gzip:yi,constants:Oi};const xs=16209,zs=16191;var Gs=function(a,s){let c,d,m,W,O,$,J,he,Ne,Ye,ce,wt,pt,bt,rt,Yt,jt,Ut,kr,en,Hr,Ar,Nt,Er;const tt=a.state;c=a.next_in,Nt=a.input,d=c+(a.avail_in-5),m=a.next_out,Er=a.output,W=m-(s-a.avail_out),O=m+(a.avail_out-257),$=tt.dmax,J=tt.wsize,he=tt.whave,Ne=tt.wnext,Ye=tt.window,ce=tt.hold,wt=tt.bits,pt=tt.lencode,bt=tt.distcode,rt=(1<<tt.lenbits)-1,Yt=(1<<tt.distbits)-1;e:do{wt<15&&(ce+=Nt[c++]<<wt,wt+=8,ce+=Nt[c++]<<wt,wt+=8),jt=pt[ce&rt];t:for(;;){if(Ut=jt>>>24,ce>>>=Ut,wt-=Ut,Ut=jt>>>16&255,Ut===0)Er[m++]=jt&65535;else if(Ut&16){kr=jt&65535,Ut&=15,Ut&&(wt<Ut&&(ce+=Nt[c++]<<wt,wt+=8),kr+=ce&(1<<Ut)-1,ce>>>=Ut,wt-=Ut),wt<15&&(ce+=Nt[c++]<<wt,wt+=8,ce+=Nt[c++]<<wt,wt+=8),jt=bt[ce&Yt];r:for(;;){if(Ut=jt>>>24,ce>>>=Ut,wt-=Ut,Ut=jt>>>16&255,Ut&16){if(en=jt&65535,Ut&=15,wt<Ut&&(ce+=Nt[c++]<<wt,wt+=8,wt<Ut&&(ce+=Nt[c++]<<wt,wt+=8)),en+=ce&(1<<Ut)-1,en>$){a.msg="invalid distance too far back",tt.mode=xs;break e}if(ce>>>=Ut,wt-=Ut,Ut=m-W,en>Ut){if(Ut=en-Ut,Ut>he&&tt.sane){a.msg="invalid distance too far back",tt.mode=xs;break e}if(Hr=0,Ar=Ye,Ne===0){if(Hr+=J-Ut,Ut<kr){kr-=Ut;do Er[m++]=Ye[Hr++];while(--Ut);Hr=m-en,Ar=Er}}else if(Ne<Ut){if(Hr+=J+Ne-Ut,Ut-=Ne,Ut<kr){kr-=Ut;do Er[m++]=Ye[Hr++];while(--Ut);if(Hr=0,Ne<kr){Ut=Ne,kr-=Ut;do Er[m++]=Ye[Hr++];while(--Ut);Hr=m-en,Ar=Er}}}else if(Hr+=Ne-Ut,Ut<kr){kr-=Ut;do Er[m++]=Ye[Hr++];while(--Ut);Hr=m-en,Ar=Er}for(;kr>2;)Er[m++]=Ar[Hr++],Er[m++]=Ar[Hr++],Er[m++]=Ar[Hr++],kr-=3;kr&&(Er[m++]=Ar[Hr++],kr>1&&(Er[m++]=Ar[Hr++]))}else{Hr=m-en;do Er[m++]=Er[Hr++],Er[m++]=Er[Hr++],Er[m++]=Er[Hr++],kr-=3;while(kr>2);kr&&(Er[m++]=Er[Hr++],kr>1&&(Er[m++]=Er[Hr++]))}}else if(Ut&64){a.msg="invalid distance code",tt.mode=xs;break e}else{jt=bt[(jt&65535)+(ce&(1<<Ut)-1)];continue r}break}}else if(Ut&64)if(Ut&32){tt.mode=zs;break e}else{a.msg="invalid literal/length code",tt.mode=xs;break e}else{jt=pt[(jt&65535)+(ce&(1<<Ut)-1)];continue t}break}}while(c<d&&m<O);kr=wt>>3,c-=kr,wt-=kr<<3,ce&=(1<<wt)-1,a.next_in=c,a.next_out=m,a.avail_in=c<d?5+(d-c):5-(c-d),a.avail_out=m<O?257+(O-m):257-(m-O),tt.hold=ce,tt.bits=wt};const ys=15,ro=852,$s=592,rr=0,bn=1,UA=2,PA=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]),da=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]),no=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]),rl=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 wl=(n,a,s,c,d,m,W,O)=>{const $=O.bits;let J=0,he=0,Ne=0,Ye=0,ce=0,wt=0,pt=0,bt=0,rt=0,Yt=0,jt,Ut,kr,en,Hr,Ar=null,Nt;const Er=new Uint16Array(ys+1),tt=new Uint16Array(ys+1);let Ct=null,Xt,Gt,Ur;for(J=0;J<=ys;J++)Er[J]=0;for(he=0;he<c;he++)Er[a[s+he]]++;for(ce=$,Ye=ys;Ye>=1&&Er[Ye]===0;Ye--);if(ce>Ye&&(ce=Ye),Ye===0)return d[m++]=1<<24|64<<16|0,d[m++]=1<<24|64<<16|0,O.bits=1,0;for(Ne=1;Ne<Ye&&Er[Ne]===0;Ne++);for(ce<Ne&&(ce=Ne),bt=1,J=1;J<=ys;J++)if(bt<<=1,bt-=Er[J],bt<0)return-1;if(bt>0&&(n===rr||Ye!==1))return-1;for(tt[1]=0,J=1;J<ys;J++)tt[J+1]=tt[J]+Er[J];for(he=0;he<c;he++)a[s+he]!==0&&(W[tt[a[s+he]]++]=he);if(n===rr?(Ar=Ct=W,Nt=20):n===bn?(Ar=PA,Ct=da,Nt=257):(Ar=no,Ct=rl,Nt=0),Yt=0,he=0,J=Ne,Hr=m,wt=ce,pt=0,kr=-1,rt=1<<ce,en=rt-1,n===bn&&rt>ro||n===UA&&rt>$s)return 1;for(;;){Xt=J-pt,W[he]+1<Nt?(Gt=0,Ur=W[he]):W[he]>=Nt?(Gt=Ct[W[he]-Nt],Ur=Ar[W[he]-Nt]):(Gt=96,Ur=0),jt=1<<J-pt,Ut=1<<wt,Ne=Ut;do Ut-=jt,d[Hr+(Yt>>pt)+Ut]=Xt<<24|Gt<<16|Ur|0;while(Ut!==0);for(jt=1<<J-1;Yt&jt;)jt>>=1;if(jt!==0?(Yt&=jt-1,Yt+=jt):Yt=0,he++,--Er[J]===0){if(J===Ye)break;J=a[s+W[he]]}if(J>ce&&(Yt&en)!==kr){for(pt===0&&(pt=ce),Hr+=Ne,wt=J-pt,bt=1<<wt;wt+pt<Ye&&(bt-=Er[wt+pt],!(bt<=0));)wt++,bt<<=1;if(rt+=1<<wt,n===bn&&rt>ro||n===UA&&rt>$s)return 1;kr=Yt&en,d[kr]=ce<<24|wt<<16|Hr-m|0}}return Yt!==0&&(d[Hr+Yt]=J-pt<<24|64<<16|0),O.bits=ce,0};const bl=0,hu=1,yA=2,{Z_FINISH:fu,Z_BLOCK:OA,Z_TREES:El,Z_OK:va,Z_STREAM_END:of,Z_NEED_DICT:nc,Z_STREAM_ERROR:jo,Z_DATA_ERROR:ic,Z_MEM_ERROR:Ru,Z_BUF_ERROR:Rc,Z_DEFLATED:Af}=XA,nl=16180,f0=16181,lf=16182,ud=16183,Ah=16184,sc=16185,cd=16186,hd=16187,uf=16188,lh=16189,d0=16190,il=16191,p0=16192,g0=16193,du=16194,m0=16195,cf=16196,fd=16197,uh=16198,ac=16199,Uc=16200,hf=16201,ch=16202,ff=16203,v0=16204,Pc=16205,dd=16206,Jo=16207,ep=16208,vs=16209,NA=16210,pd=16211,tp=852,rp=592,gd=15,df=n=>(n>>>24&255)+(n>>>8&65280)+((n&65280)<<8)+((n&255)<<24);function np(){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 oc=n=>{if(!n)return 1;const a=n.state;return!a||a.strm!==n||a.mode<nl||a.mode>pd?1:0},md=n=>{if(oc(n))return jo;const a=n.state;return n.total_in=n.total_out=a.total=0,n.msg="",a.wrap&&(n.adler=a.wrap&1),a.mode=nl,a.last=0,a.havedict=0,a.flags=-1,a.dmax=32768,a.head=null,a.hold=0,a.bits=0,a.lencode=a.lendyn=new Int32Array(tp),a.distcode=a.distdyn=new Int32Array(rp),a.sane=1,a.back=-1,va},pf=n=>{if(oc(n))return jo;const a=n.state;return a.wsize=0,a.whave=0,a.wnext=0,md(n)},vd=(n,a)=>{let s;if(oc(n))return jo;const c=n.state;return a<0?(s=0,a=-a):(s=(a>>4)+5,a<48&&(a&=15)),a&&(a<8||a>15)?jo:(c.window!==null&&c.wbits!==a&&(c.window=null),c.wrap=s,c.wbits=a,pf(n))},hh=(n,a)=>{if(!n)return jo;const s=new np;n.state=s,s.strm=n,s.window=null,s.mode=nl;const c=vd(n,a);return c!==va&&(n.state=null),c},yd=n=>hh(n,gd);let io=!0,Ac,fh;const ip=n=>{if(io){Ac=new Int32Array(512),fh=new Int32Array(32);let a=0;for(;a<144;)n.lens[a++]=8;for(;a<256;)n.lens[a++]=9;for(;a<280;)n.lens[a++]=7;for(;a<288;)n.lens[a++]=8;for(wl(hu,n.lens,0,288,Ac,0,n.work,{bits:9}),a=0;a<32;)n.lens[a++]=5;wl(yA,n.lens,0,32,fh,0,n.work,{bits:5}),io=!1}n.lencode=Ac,n.lenbits=9,n.distcode=fh,n.distbits=5},gf=(n,a,s,c)=>{let d;const m=n.state;return m.window===null&&(m.wsize=1<<m.wbits,m.wnext=0,m.whave=0,m.window=new Uint8Array(m.wsize)),c>=m.wsize?(m.window.set(a.subarray(s-m.wsize,s),0),m.wnext=0,m.whave=m.wsize):(d=m.wsize-m.wnext,d>c&&(d=c),m.window.set(a.subarray(s-c,s-c+d),m.wnext),c-=d,c?(m.window.set(a.subarray(s-c,s),0),m.wnext=c,m.whave=m.wsize):(m.wnext+=d,m.wnext===m.wsize&&(m.wnext=0),m.whave<m.wsize&&(m.whave+=d))),0},mf=(n,a)=>{let s,c,d,m,W,O,$,J,he,Ne,Ye,ce,wt,pt,bt=0,rt,Yt,jt,Ut,kr,en,Hr,Ar;const Nt=new Uint8Array(4);let Er,tt;const Ct=new Uint8Array([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]);if(oc(n)||!n.output||!n.input&&n.avail_in!==0)return jo;s=n.state,s.mode===il&&(s.mode=p0),W=n.next_out,d=n.output,$=n.avail_out,m=n.next_in,c=n.input,O=n.avail_in,J=s.hold,he=s.bits,Ne=O,Ye=$,Ar=va;e:for(;;)switch(s.mode){case nl:if(s.wrap===0){s.mode=p0;break}for(;he<16;){if(O===0)break e;O--,J+=c[m++]<<he,he+=8}if(s.wrap&2&&J===35615){s.wbits===0&&(s.wbits=15),s.check=0,Nt[0]=J&255,Nt[1]=J>>>8&255,s.check=ma(s.check,Nt,2,0),J=0,he=0,s.mode=f0;break}if(s.head&&(s.head.done=!1),!(s.wrap&1)||(((J&255)<<8)+(J>>8))%31){n.msg="incorrect header check",s.mode=vs;break}if((J&15)!==Af){n.msg="unknown compression method",s.mode=vs;break}if(J>>>=4,he-=4,Hr=(J&15)+8,s.wbits===0&&(s.wbits=Hr),Hr>15||Hr>s.wbits){n.msg="invalid window size",s.mode=vs;break}s.dmax=1<<s.wbits,s.flags=0,n.adler=s.check=1,s.mode=J&512?lh:il,J=0,he=0;break;case f0:for(;he<16;){if(O===0)break e;O--,J+=c[m++]<<he,he+=8}if(s.flags=J,(s.flags&255)!==Af){n.msg="unknown compression method",s.mode=vs;break}if(s.flags&57344){n.msg="unknown header flags set",s.mode=vs;break}s.head&&(s.head.text=J>>8&1),s.flags&512&&s.wrap&4&&(Nt[0]=J&255,Nt[1]=J>>>8&255,s.check=ma(s.check,Nt,2,0)),J=0,he=0,s.mode=lf;case lf:for(;he<32;){if(O===0)break e;O--,J+=c[m++]<<he,he+=8}s.head&&(s.head.time=J),s.flags&512&&s.wrap&4&&(Nt[0]=J&255,Nt[1]=J>>>8&255,Nt[2]=J>>>16&255,Nt[3]=J>>>24&255,s.check=ma(s.check,Nt,4,0)),J=0,he=0,s.mode=ud;case ud:for(;he<16;){if(O===0)break e;O--,J+=c[m++]<<he,he+=8}s.head&&(s.head.xflags=J&255,s.head.os=J>>8),s.flags&512&&s.wrap&4&&(Nt[0]=J&255,Nt[1]=J>>>8&255,s.check=ma(s.check,Nt,2,0)),J=0,he=0,s.mode=Ah;case Ah:if(s.flags&1024){for(;he<16;){if(O===0)break e;O--,J+=c[m++]<<he,he+=8}s.length=J,s.head&&(s.head.extra_len=J),s.flags&512&&s.wrap&4&&(Nt[0]=J&255,Nt[1]=J>>>8&255,s.check=ma(s.check,Nt,2,0)),J=0,he=0}else s.head&&(s.head.extra=null);s.mode=sc;case sc:if(s.flags&1024&&(ce=s.length,ce>O&&(ce=O),ce&&(s.head&&(Hr=s.head.extra_len-s.length,s.head.extra||(s.head.extra=new Uint8Array(s.head.extra_len)),s.head.extra.set(c.subarray(m,m+ce),Hr)),s.flags&512&&s.wrap&4&&(s.check=ma(s.check,c,ce,m)),O-=ce,m+=ce,s.length-=ce),s.length))break e;s.length=0,s.mode=cd;case cd:if(s.flags&2048){if(O===0)break e;ce=0;do Hr=c[m+ce++],s.head&&Hr&&s.length<65536&&(s.head.name+=String.fromCharCode(Hr));while(Hr&&ce<O);if(s.flags&512&&s.wrap&4&&(s.check=ma(s.check,c,ce,m)),O-=ce,m+=ce,Hr)break e}else s.head&&(s.head.name=null);s.length=0,s.mode=hd;case hd:if(s.flags&4096){if(O===0)break e;ce=0;do Hr=c[m+ce++],s.head&&Hr&&s.length<65536&&(s.head.comment+=String.fromCharCode(Hr));while(Hr&&ce<O);if(s.flags&512&&s.wrap&4&&(s.check=ma(s.check,c,ce,m)),O-=ce,m+=ce,Hr)break e}else s.head&&(s.head.comment=null);s.mode=uf;case uf:if(s.flags&512){for(;he<16;){if(O===0)break e;O--,J+=c[m++]<<he,he+=8}if(s.wrap&4&&J!==(s.check&65535)){n.msg="header crc mismatch",s.mode=vs;break}J=0,he=0}s.head&&(s.head.hcrc=s.flags>>9&1,s.head.done=!0),n.adler=s.check=0,s.mode=il;break;case lh:for(;he<32;){if(O===0)break e;O--,J+=c[m++]<<he,he+=8}n.adler=s.check=df(J),J=0,he=0,s.mode=d0;case d0:if(s.havedict===0)return n.next_out=W,n.avail_out=$,n.next_in=m,n.avail_in=O,s.hold=J,s.bits=he,nc;n.adler=s.check=1,s.mode=il;case il:if(a===OA||a===El)break e;case p0:if(s.last){J>>>=he&7,he-=he&7,s.mode=dd;break}for(;he<3;){if(O===0)break e;O--,J+=c[m++]<<he,he+=8}switch(s.last=J&1,J>>>=1,he-=1,J&3){case 0:s.mode=g0;break;case 1:if(ip(s),s.mode=ac,a===El){J>>>=2,he-=2;break e}break;case 2:s.mode=cf;break;case 3:n.msg="invalid block type",s.mode=vs}J>>>=2,he-=2;break;case g0:for(J>>>=he&7,he-=he&7;he<32;){if(O===0)break e;O--,J+=c[m++]<<he,he+=8}if((J&65535)!==(J>>>16^65535)){n.msg="invalid stored block lengths",s.mode=vs;break}if(s.length=J&65535,J=0,he=0,s.mode=du,a===El)break e;case du:s.mode=m0;case m0:if(ce=s.length,ce){if(ce>O&&(ce=O),ce>$&&(ce=$),ce===0)break e;d.set(c.subarray(m,m+ce),W),O-=ce,m+=ce,$-=ce,W+=ce,s.length-=ce;break}s.mode=il;break;case cf:for(;he<14;){if(O===0)break e;O--,J+=c[m++]<<he,he+=8}if(s.nlen=(J&31)+257,J>>>=5,he-=5,s.ndist=(J&31)+1,J>>>=5,he-=5,s.ncode=(J&15)+4,J>>>=4,he-=4,s.nlen>286||s.ndist>30){n.msg="too many length or distance symbols",s.mode=vs;break}s.have=0,s.mode=fd;case fd:for(;s.have<s.ncode;){for(;he<3;){if(O===0)break e;O--,J+=c[m++]<<he,he+=8}s.lens[Ct[s.have++]]=J&7,J>>>=3,he-=3}for(;s.have<19;)s.lens[Ct[s.have++]]=0;if(s.lencode=s.lendyn,s.lenbits=7,Er={bits:s.lenbits},Ar=wl(bl,s.lens,0,19,s.lencode,0,s.work,Er),s.lenbits=Er.bits,Ar){n.msg="invalid code lengths set",s.mode=vs;break}s.have=0,s.mode=uh;case uh:for(;s.have<s.nlen+s.ndist;){for(;bt=s.lencode[J&(1<<s.lenbits)-1],rt=bt>>>24,Yt=bt>>>16&255,jt=bt&65535,!(rt<=he);){if(O===0)break e;O--,J+=c[m++]<<he,he+=8}if(jt<16)J>>>=rt,he-=rt,s.lens[s.have++]=jt;else{if(jt===16){for(tt=rt+2;he<tt;){if(O===0)break e;O--,J+=c[m++]<<he,he+=8}if(J>>>=rt,he-=rt,s.have===0){n.msg="invalid bit length repeat",s.mode=vs;break}Hr=s.lens[s.have-1],ce=3+(J&3),J>>>=2,he-=2}else if(jt===17){for(tt=rt+3;he<tt;){if(O===0)break e;O--,J+=c[m++]<<he,he+=8}J>>>=rt,he-=rt,Hr=0,ce=3+(J&7),J>>>=3,he-=3}else{for(tt=rt+7;he<tt;){if(O===0)break e;O--,J+=c[m++]<<he,he+=8}J>>>=rt,he-=rt,Hr=0,ce=11+(J&127),J>>>=7,he-=7}if(s.have+ce>s.nlen+s.ndist){n.msg="invalid bit length repeat",s.mode=vs;break}for(;ce--;)s.lens[s.have++]=Hr}}if(s.mode===vs)break;if(s.lens[256]===0){n.msg="invalid code -- missing end-of-block",s.mode=vs;break}if(s.lenbits=9,Er={bits:s.lenbits},Ar=wl(hu,s.lens,0,s.nlen,s.lencode,0,s.work,Er),s.lenbits=Er.bits,Ar){n.msg="invalid literal/lengths set",s.mode=vs;break}if(s.distbits=6,s.distcode=s.distdyn,Er={bits:s.distbits},Ar=wl(yA,s.lens,s.nlen,s.ndist,s.distcode,0,s.work,Er),s.distbits=Er.bits,Ar){n.msg="invalid distances set",s.mode=vs;break}if(s.mode=ac,a===El)break e;case ac:s.mode=Uc;case Uc:if(O>=6&&$>=258){n.next_out=W,n.avail_out=$,n.next_in=m,n.avail_in=O,s.hold=J,s.bits=he,Gs(n,Ye),W=n.next_out,d=n.output,$=n.avail_out,m=n.next_in,c=n.input,O=n.avail_in,J=s.hold,he=s.bits,s.mode===il&&(s.back=-1);break}for(s.back=0;bt=s.lencode[J&(1<<s.lenbits)-1],rt=bt>>>24,Yt=bt>>>16&255,jt=bt&65535,!(rt<=he);){if(O===0)break e;O--,J+=c[m++]<<he,he+=8}if(Yt&&!(Yt&240)){for(Ut=rt,kr=Yt,en=jt;bt=s.lencode[en+((J&(1<<Ut+kr)-1)>>Ut)],rt=bt>>>24,Yt=bt>>>16&255,jt=bt&65535,!(Ut+rt<=he);){if(O===0)break e;O--,J+=c[m++]<<he,he+=8}J>>>=Ut,he-=Ut,s.back+=Ut}if(J>>>=rt,he-=rt,s.back+=rt,s.length=jt,Yt===0){s.mode=Pc;break}if(Yt&32){s.back=-1,s.mode=il;break}if(Yt&64){n.msg="invalid literal/length code",s.mode=vs;break}s.extra=Yt&15,s.mode=hf;case hf:if(s.extra){for(tt=s.extra;he<tt;){if(O===0)break e;O--,J+=c[m++]<<he,he+=8}s.length+=J&(1<<s.extra)-1,J>>>=s.extra,he-=s.extra,s.back+=s.extra}s.was=s.length,s.mode=ch;case ch:for(;bt=s.distcode[J&(1<<s.distbits)-1],rt=bt>>>24,Yt=bt>>>16&255,jt=bt&65535,!(rt<=he);){if(O===0)break e;O--,J+=c[m++]<<he,he+=8}if(!(Yt&240)){for(Ut=rt,kr=Yt,en=jt;bt=s.distcode[en+((J&(1<<Ut+kr)-1)>>Ut)],rt=bt>>>24,Yt=bt>>>16&255,jt=bt&65535,!(Ut+rt<=he);){if(O===0)break e;O--,J+=c[m++]<<he,he+=8}J>>>=Ut,he-=Ut,s.back+=Ut}if(J>>>=rt,he-=rt,s.back+=rt,Yt&64){n.msg="invalid distance code",s.mode=vs;break}s.offset=jt,s.extra=Yt&15,s.mode=ff;case ff:if(s.extra){for(tt=s.extra;he<tt;){if(O===0)break e;O--,J+=c[m++]<<he,he+=8}s.offset+=J&(1<<s.extra)-1,J>>>=s.extra,he-=s.extra,s.back+=s.extra}if(s.offset>s.dmax){n.msg="invalid distance too far back",s.mode=vs;break}s.mode=v0;case v0:if($===0)break e;if(ce=Ye-$,s.offset>ce){if(ce=s.offset-ce,ce>s.whave&&s.sane){n.msg="invalid distance too far back",s.mode=vs;break}ce>s.wnext?(ce-=s.wnext,wt=s.wsize-ce):wt=s.wnext-ce,ce>s.length&&(ce=s.length),pt=s.window}else pt=d,wt=W-s.offset,ce=s.length;ce>$&&(ce=$),$-=ce,s.length-=ce;do d[W++]=pt[wt++];while(--ce);s.length===0&&(s.mode=Uc);break;case Pc:if($===0)break e;d[W++]=s.length,$--,s.mode=Uc;break;case dd:if(s.wrap){for(;he<32;){if(O===0)break e;O--,J|=c[m++]<<he,he+=8}if(Ye-=$,n.total_out+=Ye,s.total+=Ye,s.wrap&4&&Ye&&(n.adler=s.check=s.flags?ma(s.check,d,Ye,W-Ye):Ji(s.check,d,Ye,W-Ye)),Ye=$,s.wrap&4&&(s.flags?J:df(J))!==s.check){n.msg="incorrect data check",s.mode=vs;break}J=0,he=0}s.mode=Jo;case Jo:if(s.wrap&&s.flags){for(;he<32;){if(O===0)break e;O--,J+=c[m++]<<he,he+=8}if(s.wrap&4&&J!==(s.total&4294967295)){n.msg="incorrect length check",s.mode=vs;break}J=0,he=0}s.mode=ep;case ep:Ar=of;break e;case vs:Ar=ic;break e;case NA:return Ru;case pd:default:return jo}return n.next_out=W,n.avail_out=$,n.next_in=m,n.avail_in=O,s.hold=J,s.bits=he,(s.wsize||Ye!==n.avail_out&&s.mode<vs&&(s.mode<dd||a!==fu))&&gf(n,n.output,n.next_out,Ye-n.avail_out),Ne-=n.avail_in,Ye-=n.avail_out,n.total_in+=Ne,n.total_out+=Ye,s.total+=Ye,s.wrap&4&&Ye&&(n.adler=s.check=s.flags?ma(s.check,d,Ye,n.next_out-Ye):Ji(s.check,d,Ye,n.next_out-Ye)),n.data_type=s.bits+(s.last?64:0)+(s.mode===il?128:0)+(s.mode===ac||s.mode===du?256:0),(Ne===0&&Ye===0||a===fu)&&Ar===va&&(Ar=Rc),Ar},sp=n=>{if(oc(n))return jo;let a=n.state;return a.window&&(a.window=null),n.state=null,va},ap=(n,a)=>{if(oc(n))return jo;const s=n.state;return s.wrap&2?(s.head=a,a.done=!1,va):jo},op=(n,a)=>{const s=a.length;let c,d,m;return oc(n)||(c=n.state,c.wrap!==0&&c.mode!==d0)?jo:c.mode===d0&&(d=1,d=Ji(d,a,s,0),d!==c.check)?ic:(m=gf(n,a,s,s),m?(c.mode=NA,Ru):(c.havedict=1,va))};var Ap=pf,_d=vd,vf=md,lp=yd,yf=hh,dh=mf,_f=sp,wd=ap,bd=op,ph="pako inflate (from Nodeca project)",co={inflateReset:Ap,inflateReset2:_d,inflateResetKeep:vf,inflateInit:lp,inflateInit2:yf,inflate:dh,inflateEnd:_f,inflateGetHeader:wd,inflateSetDictionary:bd,inflateInfo:ph};function Ia(){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 lc=Ia;const gu=Object.prototype.toString,{Z_NO_FLUSH:gh,Z_FINISH:mh,Z_OK:y0,Z_STREAM_END:vh,Z_NEED_DICT:_0,Z_STREAM_ERROR:Ed,Z_DATA_ERROR:yh,Z_MEM_ERROR:Bd}=XA;function Uu(n){this.options=Ql.assign({chunkSize:1024*64,windowBits:15,to:""},n||{});const a=this.options;a.raw&&a.windowBits>=0&&a.windowBits<16&&(a.windowBits=-a.windowBits,a.windowBits===0&&(a.windowBits=-15)),a.windowBits>=0&&a.windowBits<16&&!(n&&n.windowBits)&&(a.windowBits+=32),a.windowBits>15&&a.windowBits<48&&(a.windowBits&15||(a.windowBits|=15)),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new Ee,this.strm.avail_out=0;let s=co.inflateInit2(this.strm,a.windowBits);if(s!==y0)throw new Error(LA[s]);if(this.header=new lc,co.inflateGetHeader(this.strm,this.header),a.dictionary&&(typeof a.dictionary=="string"?a.dictionary=cu.string2buf(a.dictionary):gu.call(a.dictionary)==="[object ArrayBuffer]"&&(a.dictionary=new Uint8Array(a.dictionary)),a.raw&&(s=co.inflateSetDictionary(this.strm,a.dictionary),s!==y0)))throw new Error(LA[s])}Uu.prototype.push=function(n,a){const s=this.strm,c=this.options.chunkSize,d=this.options.dictionary;let m,W,O;if(this.ended)return!1;for(a===~~a?W=a:W=a===!0?mh:gh,gu.call(n)==="[object ArrayBuffer]"?s.input=new Uint8Array(n):s.input=n,s.next_in=0,s.avail_in=s.input.length;;){for(s.avail_out===0&&(s.output=new Uint8Array(c),s.next_out=0,s.avail_out=c),m=co.inflate(s,W),m===_0&&d&&(m=co.inflateSetDictionary(s,d),m===y0?m=co.inflate(s,W):m===yh&&(m=_0));s.avail_in>0&&m===vh&&s.state.wrap>0&&n[s.next_in]!==0;)co.inflateReset(s),m=co.inflate(s,W);switch(m){case Ed:case yh:case _0:case Bd:return this.onEnd(m),this.ended=!0,!1}if(O=s.avail_out,s.next_out&&(s.avail_out===0||m===vh))if(this.options.to==="string"){let $=cu.utf8border(s.output,s.next_out),J=s.next_out-$,he=cu.buf2string(s.output,$);s.next_out=J,s.avail_out=c-J,J&&s.output.set(s.output.subarray($,$+J),0),this.onData(he)}else this.onData(s.output.length===s.next_out?s.output:s.output.subarray(0,s.next_out));if(!(m===y0&&O===0)){if(m===vh)return m=co.inflateEnd(this.strm),this.onEnd(m),this.ended=!0,!0;if(s.avail_in===0)break}}return!0},Uu.prototype.onData=function(n){this.chunks.push(n)},Uu.prototype.onEnd=function(n){n===y0&&(this.options.to==="string"?this.result=this.chunks.join(""):this.result=Ql.flattenChunks(this.chunks)),this.chunks=[],this.err=n,this.msg=this.strm.msg};function Pu(n,a){const s=new Uu(a);if(s.push(n),s.err)throw s.msg||LA[s.err];return s.result}function w0(n,a){return a=a||{},a.raw=!0,Pu(n,a)}var up=Uu,cp=Pu,xd=w0,wf=Pu,Ou=XA,bf={Inflate:up,inflate:cp,inflateRaw:xd,ungzip:wf,constants:Ou};const{Deflate:_h,deflate:wh,deflateRaw:hp,gzip:Cd}=Qs,{Inflate:fp,inflate:Sd,inflateRaw:Ef,ungzip:Id}=bf;var Td=_h,Bf=wh,xf=hp,Fd=Cd,Cf=fp,b0=Sd,bh=Ef,Ld=Id,Dd=XA,dp={Deflate:Td,deflate:Bf,deflateRaw:xf,gzip:Fd,Inflate:Cf,inflate:b0,inflateRaw:bh,ungzip:Ld,constants:Dd};const Sf=[];for(let n=0;n<256;n++){let a=n;for(let s=0;s<8;s++)a&1?a=3988292384^a>>>1:a=a>>>1;Sf[n]=a}const If=4294967295;function pp(n,a,s){let c=n;for(let d=0;d<s;d++)c=Sf[(c^a[d])&255]^c>>>8;return c}function kd(n,a){return(pp(If,n,a)^If)>>>0}function Nu(n,a,s){const c=n.readUint32(),d=kd(new Uint8Array(n.buffer,n.byteOffset+n.offset-a-4,a),a);if(d!==c)throw new Error(`CRC mismatch for chunk ${s}. Expected ${c}, found ${d}`)}function Rd(n,a){n.writeUint32(kd(new Uint8Array(n.buffer,n.byteOffset+n.offset-a,a),a))}function Ys(n,a,s){for(let c=0;c<s;c++)a[c]=n[c]}function Bl(n,a,s,c){let d=0;for(;d<c;d++)a[d]=n[d];for(;d<s;d++)a[d]=n[d]+a[d-c]&255}function uc(n,a,s,c){let d=0;if(s.length===0)for(;d<c;d++)a[d]=n[d];else for(;d<c;d++)a[d]=n[d]+s[d]&255}function Ha(n,a,s,c,d){let m=0;if(s.length===0){for(;m<d;m++)a[m]=n[m];for(;m<c;m++)a[m]=n[m]+(a[m-d]>>1)&255}else{for(;m<d;m++)a[m]=n[m]+(s[m]>>1)&255;for(;m<c;m++)a[m]=n[m]+(a[m-d]+s[m]>>1)&255}}function jl(n,a,s,c,d){let m=0;if(s.length===0){for(;m<d;m++)a[m]=n[m];for(;m<c;m++)a[m]=n[m]+a[m-d]&255}else{for(;m<d;m++)a[m]=n[m]+s[m]&255;for(;m<c;m++)a[m]=n[m]+E0(a[m-d],s[m],s[m-d])&255}}function E0(n,a,s){const c=n+a-s,d=Math.abs(c-n),m=Math.abs(c-a),W=Math.abs(c-s);return d<=m&&d<=W?n:m<=W?a:s}function Kl(n,a,s,c,d,m){switch(n){case 0:Ys(a,s,d);break;case 1:Bl(a,s,d,m);break;case 2:uc(a,s,c,d);break;case 3:Ha(a,s,c,d,m);break;case 4:jl(a,s,c,d,m);break;default:throw new Error(`Unsupported filter: ${n}`)}}const Tf=new Uint16Array([255]),Eh=new Uint8Array(Tf.buffer)[0]===255;function Ff(n){const{data:a,width:s,height:c,channels:d,depth:m}=n,W=[{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}],O=Math.ceil(m/8)*d,$=new Uint8Array(c*s*O);let J=0;for(let he=0;he<7;he++){const Ne=W[he],Ye=Math.ceil((s-Ne.x)/Ne.xStep),ce=Math.ceil((c-Ne.y)/Ne.yStep);if(Ye<=0||ce<=0)continue;const wt=Ye*O,pt=new Uint8Array(wt);for(let bt=0;bt<ce;bt++){const rt=a[J++],Yt=a.subarray(J,J+wt);J+=wt;const jt=new Uint8Array(wt);Kl(rt,Yt,jt,pt,wt,O),pt.set(jt);for(let Ut=0;Ut<Ye;Ut++){const kr=Ne.x+Ut*Ne.xStep,en=Ne.y+bt*Ne.yStep;if(!(kr>=s||en>=c))for(let Hr=0;Hr<O;Hr++)$[(en*s+kr)*O+Hr]=jt[Ut*O+Hr]}}}if(m===16){const he=new Uint16Array($.buffer);if(Eh)for(let Ne=0;Ne<he.length;Ne++)he[Ne]=B0(he[Ne]);return he}else return $}function B0(n){return(n&255)<<8|n>>8&255}const x0=new Uint16Array([255]),C0=new Uint8Array(x0.buffer)[0]===255,S0=new Uint8Array(0);function cc(n){const{data:a,width:s,height:c,channels:d,depth:m}=n,W=Math.ceil(m/8)*d,O=Math.ceil(m/8*d*s),$=new Uint8Array(c*O);let J=S0,he=0,Ne,Ye;for(let ce=0;ce<c;ce++){switch(Ne=a.subarray(he+1,he+1+O),Ye=$.subarray(ce*O,(ce+1)*O),a[he]){case 0:Ys(Ne,Ye,O);break;case 1:Bl(Ne,Ye,O,W);break;case 2:uc(Ne,Ye,J,O);break;case 3:Ha(Ne,Ye,J,O,W);break;case 4:jl(Ne,Ye,J,O,W);break;default:throw new Error(`Unsupported filter: ${a[he]}`)}J=Ye,he+=O+1}if(m===16){const ce=new Uint16Array($.buffer);if(C0)for(let wt=0;wt<ce.length;wt++)ce[wt]=Bh(ce[wt]);return ce}else return $}function Bh(n){return(n&255)<<8|n>>8&255}const I0=Uint8Array.of(137,80,78,71,13,10,26,10);function Zp(n){n.writeBytes(I0)}function Nc(n){if(!Ud(n.readBytes(I0.length)))throw new Error("wrong PNG signature")}function Ud(n){if(n.length<I0.length)return!1;for(let a=0;a<I0.length;a++)if(n[a]!==I0[a])return!1;return!0}const xh="tEXt",Pd=0,hc=new TextDecoder("latin1");function Od(n){if(Sh(n),n.length===0||n.length>79)throw new Error("keyword length must be between 1 and 79")}const Ch=/^[\u0000-\u00FF]*$/;function Sh(n){if(!Ch.test(n))throw new Error("invalid latin1 text")}function sl(n,a,s){const c=Lf(a);n[c]=T0(a,s-c.length-1)}function qp(n,a,s){Od(a),Sh(s);const c=a.length+1+s.length;n.writeUint32(c),n.writeChars(xh),n.writeChars(a),n.writeByte(Pd),n.writeChars(s),writeCrc(n,c+4)}function Lf(n){for(n.mark();n.readByte()!==Pd;);const a=n.offset;n.reset();const s=hc.decode(n.readBytes(a-n.offset-1));return n.skip(1),Od(s),s}function T0(n,a){return hc.decode(n.readBytes(a))}const MA={UNKNOWN:-1,GREYSCALE:0,TRUECOLOUR:2,INDEXED_COLOUR:3,GREYSCALE_ALPHA:4,TRUECOLOUR_ALPHA:6},Ih={UNKNOWN:-1,DEFLATE:0},Nd={UNKNOWN:-1,ADAPTIVE:0},Df={UNKNOWN:-1,NO_INTERLACE:0,ADAM7:1},Th={NONE:0,BACKGROUND:1,PREVIOUS:2},Mc={SOURCE:0,OVER:1};class xl extends _o{constructor(s,c={}){super(s);js(this,"_checkCrc");js(this,"_inflator");js(this,"_png");js(this,"_apng");js(this,"_end");js(this,"_hasPalette");js(this,"_palette");js(this,"_hasTransparency");js(this,"_transparency");js(this,"_compressionMethod");js(this,"_filterMethod");js(this,"_interlaceMethod");js(this,"_colorType");js(this,"_isAnimated");js(this,"_numberOfFrames");js(this,"_numberOfPlays");js(this,"_frames");js(this,"_writingDataChunks");const{checkCrc:d=!1}=c;this._checkCrc=d,this._inflator=new Cf,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=Ih.UNKNOWN,this._filterMethod=Nd.UNKNOWN,this._interlaceMethod=Df.UNKNOWN,this._colorType=MA.UNKNOWN,this._isAnimated=!1,this._numberOfFrames=1,this._numberOfPlays=0,this._frames=[],this._writingDataChunks=!1,this.setBigEndian()}decode(){for(Nc(this);!this._end;){const s=this.readUint32(),c=this.readChars(4);this.decodeChunk(s,c)}return this.decodeImage(),this._png}decodeApng(){for(Nc(this);!this._end;){const s=this.readUint32(),c=this.readChars(4);this.decodeApngChunk(s,c)}return this.decodeApngImage(),this._apng}decodeChunk(s,c){const d=this.offset;switch(c){case"IHDR":this.decodeIHDR();break;case"PLTE":this.decodePLTE(s);break;case"IDAT":this.decodeIDAT(s);break;case"IEND":this._end=!0;break;case"tRNS":this.decodetRNS(s);break;case"iCCP":this.decodeiCCP(s);break;case xh:sl(this._png.text,this,s);break;case"pHYs":this.decodepHYs();break;default:this.skip(s);break}if(this.offset-d!==s)throw new Error(`Length mismatch while decoding chunk ${c}`);this._checkCrc?Nu(this,s+4,c):this.skip(4)}decodeApngChunk(s,c){const d=this.offset;switch(c!=="fdAT"&&c!=="IDAT"&&this._writingDataChunks&&this.pushDataToFrame(),c){case"acTL":this.decodeACTL();break;case"fcTL":this.decodeFCTL();break;case"fdAT":this.decodeFDAT(s);break;default:this.decodeChunk(s,c),this.offset=d+s;break}if(this.offset-d!==s)throw new Error(`Length mismatch while decoding chunk ${c}`);this._checkCrc?Nu(this,s+4,c):this.skip(4)}decodeIHDR(){const s=this._png;s.width=this.readUint32(),s.height=this.readUint32(),s.depth=Cl(this.readUint8());const c=this.readUint8();this._colorType=c;let d;switch(c){case MA.GREYSCALE:d=1;break;case MA.TRUECOLOUR:d=3;break;case MA.INDEXED_COLOUR:d=1;break;case MA.GREYSCALE_ALPHA:d=2;break;case MA.TRUECOLOUR_ALPHA:d=4;break;case MA.UNKNOWN:default:throw new Error(`Unknown color type: ${c}`)}if(this._png.channels=d,this._compressionMethod=this.readUint8(),this._compressionMethod!==Ih.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 s={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(s)}decodePLTE(s){if(s%3!==0)throw new RangeError(`PLTE field length must be a multiple of 3. Got ${s}`);const c=s/3;this._hasPalette=!0;const d=[];this._palette=d;for(let m=0;m<c;m++)d.push([this.readUint8(),this.readUint8(),this.readUint8()])}decodeIDAT(s){this._writingDataChunks=!0;const c=s,d=this.offset+this.byteOffset;if(this._inflator.push(new Uint8Array(this.buffer,d,c)),this._inflator.err)throw new Error(`Error while decompressing the data: ${this._inflator.err}`);this.skip(s)}decodeFDAT(s){this._writingDataChunks=!0;let c=s,d=this.offset+this.byteOffset;if(d+=4,c-=4,this._inflator.push(new Uint8Array(this.buffer,d,c)),this._inflator.err)throw new Error(`Error while decompressing the data: ${this._inflator.err}`);this.skip(s)}decodetRNS(s){switch(this._colorType){case MA.GREYSCALE:case MA.TRUECOLOUR:{if(s%2!==0)throw new RangeError(`tRNS chunk length must be a multiple of 2. Got ${s}`);if(s/2>this._png.width*this._png.height)throw new Error(`tRNS chunk contains more alpha values than there are pixels (${s/2} vs ${this._png.width*this._png.height})`);this._hasTransparency=!0,this._transparency=new Uint16Array(s/2);for(let c=0;c<s/2;c++)this._transparency[c]=this.readUint16();break}case MA.INDEXED_COLOUR:{if(s>this._palette.length)throw new Error(`tRNS chunk contains more alpha values than there are palette colors (${s} vs ${this._palette.length})`);let c=0;for(;c<s;c++){const d=this.readByte();this._palette[c].push(d)}for(;c<this._palette.length;c++)this._palette[c].push(255);break}case MA.UNKNOWN:case MA.GREYSCALE_ALPHA:case MA.TRUECOLOUR_ALPHA:default:throw new Error(`tRNS chunk is not supported for color type ${this._colorType}`)}}decodeiCCP(s){const c=Lf(this),d=this.readUint8();if(d!==Ih.DEFLATE)throw new Error(`Unsupported iCCP compression method: ${d}`);const m=this.readBytes(s-c.length-2);this._png.iccEmbeddedProfile={name:c,profile:b0(m)}}decodepHYs(){const s=this.readUint32(),c=this.readUint32(),d=this.readByte();this._png.resolution={x:s,y:c,unit:d}}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 s=0;s<this._numberOfFrames;s++){const c={sequenceNumber:this._frames[s].sequenceNumber,delayNumber:this._frames[s].delayNumber,delayDenominator:this._frames[s].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)},d=this._frames.at(s);if(d){if(d.data=cc({data:d.data,width:d.width,height:d.height,channels:this._apng.channels,depth:this._apng.depth}),this._hasPalette&&(this._apng.palette=this._palette),this._hasTransparency&&(this._apng.transparency=this._transparency),s===0||d.xOffset===0&&d.yOffset===0&&d.width===this._png.width&&d.height===this._png.height)c.data=d.data;else{const m=this._apng.frames.at(s-1);this.disposeFrame(d,m,c),this.addFrameDataToCanvas(c,d)}this._apng.frames.push(c)}}return this._apng}disposeFrame(s,c,d){switch(s.disposeOp){case Th.NONE:break;case Th.BACKGROUND:for(let m=0;m<this._png.height;m++)for(let W=0;W<this._png.width;W++){const O=(m*s.width+W)*this._png.channels;for(let $=0;$<this._png.channels;$++)d.data[O+$]=0}break;case Th.PREVIOUS:d.data.set(c.data);break;default:throw new Error("Unknown disposeOp")}}addFrameDataToCanvas(s,c){const d=1<<this._png.depth,m=(W,O)=>{const $=((W+c.yOffset)*this._png.width+c.xOffset+O)*this._png.channels,J=(W*c.width+O)*this._png.channels;return{index:$,frameIndex:J}};switch(c.blendOp){case Mc.SOURCE:for(let W=0;W<c.height;W++)for(let O=0;O<c.width;O++){const{index:$,frameIndex:J}=m(W,O);for(let he=0;he<this._png.channels;he++)s.data[$+he]=c.data[J+he]}break;case Mc.OVER:for(let W=0;W<c.height;W++)for(let O=0;O<c.width;O++){const{index:$,frameIndex:J}=m(W,O);for(let he=0;he<this._png.channels;he++){const Ne=c.data[J+this._png.channels-1]/d,Ye=he%(this._png.channels-1)===0?1:c.data[J+he],ce=Math.floor(Ne*Ye+(1-Ne)*s.data[$+he]);s.data[$+he]+=ce}}break;default:throw new Error("Unknown blendOp")}}decodeImage(){var c;if(this._inflator.err)throw new Error(`Error while decompressing the data: ${this._inflator.err}`);const s=this._isAnimated?((c=this._frames)==null?void 0:c.at(0)).data:this._inflator.result;if(this._filterMethod!==Nd.ADAPTIVE)throw new Error(`Filter method ${this._filterMethod} not supported`);if(this._interlaceMethod===Df.NO_INTERLACE)this._png.data=cc({data:s,width:this._png.width,height:this._png.height,channels:this._png.channels,depth:this._png.depth});else if(this._interlaceMethod===Df.ADAM7)this._png.data=Ff({data:s,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 s=this._inflator.result,c=this._frames.at(-1);c?c.data=s:this._frames.push({sequenceNumber:0,width:this._png.width,height:this._png.height,xOffset:0,yOffset:0,delayNumber:0,delayDenominator:0,disposeOp:Th.NONE,blendOp:Mc.SOURCE,data:s}),this._inflator=new Cf,this._writingDataChunks=!1}}function Cl(n){if(n!==1&&n!==2&&n!==4&&n!==8&&n!==16)throw new Error(`invalid bit depth: ${n}`);return n}const mp={level:3};class Qn extends null{constructor(s,c={}){var d;super();js(this,"_png");js(this,"_zlibOptions");js(this,"_colorType");js(this,"_interlaceMethod");this._colorType=ColorType.UNKNOWN,this._zlibOptions=fg(fg({},mp),c.zlib),this._png=this._checkData(s),this._interlaceMethod=(d=c.interlace==="Adam7"?InterlaceMethod.ADAM7:InterlaceMethod.NO_INTERLACE)!=null?d: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[s,c]of Object.entries(this._png.text))encodetEXt(this,s,c);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 c;const s=((c=this._png.palette)==null?void 0:c.length)*3;this.writeUint32(s),this.writeChars("PLTE");for(const d of this._png.palette)this.writeByte(d[0]),this.writeByte(d[1]),this.writeByte(d[2]);writeCrc(this,4+s)}encodeTRNS(){const s=this._png.palette.filter(c=>c.at(-1)!==255);this.writeUint32(s.length),this.writeChars("tRNS");for(const c of s)this.writeByte(c.at(-1));writeCrc(this,4+s.length)}encodeIDAT(s){this.writeUint32(s.length),this.writeChars("IDAT"),this.writeBytes(s),writeCrc(this,s.length+4)}encodeData(){const{width:s,height:c,channels:d,depth:m,data:W}=this._png,O=m<=8?Math.ceil(s*m/8)*d:Math.ceil(s*m/8*d/2),$=new IOBuffer().setBigEndian();let J=0;if(this._interlaceMethod===InterlaceMethod.NO_INTERLACE)for(let Ye=0;Ye<c;Ye++)$.writeByte(0),m===16?J=gs(W,$,O,J):J=al(W,$,O,J);else this._interlaceMethod===InterlaceMethod.ADAM7&&(J=vp(this._png,W,$,J));const he=$.toArray(),Ne=deflate(he,this._zlibOptions);this.encodeIDAT(Ne)}_checkData(s){const{colorType:c,channels:d,depth:m}=Fh(s,s.palette),W={width:fc(s.width,"width"),height:fc(s.height,"height"),channels:d,data:s.data,depth:m,text:s.text,palette:s.palette};this._colorType=c;const O=m<8?Math.ceil(W.width*m/8)*W.height*d:W.width*W.height*d;if(W.data.length!==O)throw new RangeError(`wrong data size. Found ${W.data.length}, expected ${O}`);return W}}function fc(n,a){if(Number.isInteger(n)&&n>0)return n;throw new TypeError(`${a} must be a positive integer`)}function Fh(n,a){const{channels:s=4,depth:c=8}=n;if(s!==4&&s!==3&&s!==2&&s!==1)throw new RangeError(`unsupported number of channels: ${s}`);const d={channels:s,depth:c,colorType:ColorType.UNKNOWN};switch(s){case 4:d.colorType=ColorType.TRUECOLOUR_ALPHA;break;case 3:d.colorType=ColorType.TRUECOLOUR;break;case 1:a?d.colorType=ColorType.INDEXED_COLOUR:d.colorType=ColorType.GREYSCALE;break;case 2:d.colorType=ColorType.GREYSCALE_ALPHA;break;default:throw new Error("unsupported number of channels")}return d}function al(n,a,s,c){for(let d=0;d<s;d++)a.writeByte(n[c++]);return c}function vp(n,a,s,c){const d=[{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:m,height:W,channels:O,depth:$}=n;let J=0;$===16?J=O*$/8/2:J=O*$/8;for(let he=0;he<7;he++){const Ne=d[he],Ye=Math.floor((m-Ne.x+Ne.xStep-1)/Ne.xStep),ce=Math.floor((W-Ne.y+Ne.yStep-1)/Ne.yStep);if(Ye<=0||ce<=0)continue;const wt=Ye*J;for(let pt=0;pt<ce;pt++){const bt=Ne.y+pt*Ne.yStep,rt=$<=8?new Uint8Array(wt):new Uint16Array(wt);let Yt=0;for(let jt=0;jt<Ye;jt++){const Ut=Ne.x+jt*Ne.xStep;if(Ut<m&&bt<W){const kr=(bt*m+Ut)*J;for(let en=0;en<J;en++)rt[Yt++]=a[kr+en]}}if(s.writeByte(0),$===8)s.writeBytes(rt);else if($===16)for(const jt of rt)s.writeByte(jt>>8&255),s.writeByte(jt&255)}}return c}function gs(n,a,s,c){for(let d=0;d<s;d++)a.writeUint16(n[c++]);return c}var ta;(function(n){n[n.UNKNOWN=0]="UNKNOWN",n[n.METRE=1]="METRE"})(ta||(ta={}));function Lh(n,a){return new xl(n,a).decode()}function Xp(n,a){return new PngEncoder(n,a).encode()}function F0(n,a){return new PngDecoder(n,a).decodeApng()}var Ii=function(){return typeof window!="undefined"?window:typeof je.g!="undefined"?je.g:typeof self!="undefined"?self:this}();function dc(){Ii.console&&typeof Ii.console.log=="function"&&Ii.console.log.apply(Ii.console,arguments)}var Us={log:dc,warn:function(n){Ii.console&&(typeof Ii.console.warn=="function"?Ii.console.warn.apply(Ii.console,arguments):dc.call(null,arguments))},error:function(n){Ii.console&&(typeof Ii.console.error=="function"?Ii.console.error.apply(Ii.console,arguments):dc(n))}};function kf(n,a,s){var c=new XMLHttpRequest;c.open("GET",n),c.responseType="blob",c.onload=function(){Mu(c.response,a,s)},c.onerror=function(){Us.error("could not download file")},c.send()}function Rf(n){var a=new XMLHttpRequest;a.open("HEAD",n,!1);try{a.send()}catch(s){}return a.status>=200&&a.status<=299}function Qc(n){try{n.dispatchEvent(new MouseEvent("click"))}catch(s){var a=document.createEvent("MouseEvents");a.initMouseEvent("click",!0,!0,window,0,0,0,80,20,!1,!1,!1,!1,0,null),n.dispatchEvent(a)}}var Mu=Ii.saveAs||((typeof window=="undefined"?"undefined":(0,Ie.Z)(window))!=="object"||window!==Ii?function(){}:typeof HTMLAnchorElement!="undefined"&&"download"in HTMLAnchorElement.prototype?function(n,a,s){var c=Ii.URL||Ii.webkitURL,d=document.createElement("a");a=a||n.name||"download",d.download=a,d.rel="noopener",typeof n=="string"?(d.href=n,d.origin!==location.origin?Rf(d.href)?kf(n,a,s):Qc(d,d.target="_blank"):Qc(d)):(d.href=c.createObjectURL(n),setTimeout(function(){c.revokeObjectURL(d.href)},4e4),setTimeout(function(){Qc(d)},0))}:"msSaveOrOpenBlob"in navigator?function(n,a,s){if(a=a||n.name||"download",typeof n=="string")if(Rf(n))kf(n,a,s);else{var c=document.createElement("a");c.href=n,c.target="_blank",setTimeout(function(){Qc(c)})}else navigator.msSaveOrOpenBlob(function(d,m){return m===void 0?m={autoBom:!1}:(0,Ie.Z)(m)!=="object"&&(Us.warn("Deprecated: Expected third argument to be a object"),m={autoBom:!m}),m.autoBom&&/^\s*(?:text\/\S*|application\/xml|\S*\/\S*\+xml)\s*;.*charset\s*=\s*utf-8/i.test(d.type)?new Blob(["\uFEFF",d],{type:d.type}):d}(n,s),a)}:function(n,a,s,c){if((c=c||open("","_blank"))&&(c.document.title=c.document.body.innerText="downloading..."),typeof n=="string")return kf(n,a,s);var d=n.type==="application/octet-stream",m=/constructor/i.test(Ii.HTMLElement)||Ii.safari,W=/CriOS\/[\d]+/.test(navigator.userAgent);if((W||d&&m)&&(typeof FileReader=="undefined"?"undefined":(0,Ie.Z)(FileReader))==="object"){var O=new FileReader;O.onloadend=function(){var he=O.result;he=W?he:he.replace(/^data:[^;]*;/,"data:attachment/file;"),c?c.location.href=he:location=he,c=null},O.readAsDataURL(n)}else{var $=Ii.URL||Ii.webkitURL,J=$.createObjectURL(n);c?c.location=J:location.href=J,c=null,setTimeout(function(){$.revokeObjectURL(J)},4e4)}});function Uf(n){var a;n=n||"",this.ok=!1,n.charAt(0)=="#"&&(n=n.substr(1,6)),n={aliceblue:"f0f8ff",antiquewhite:"faebd7",aqua:"00ffff",aquamarine:"7fffd4",azure:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"000000",blanchedalmond:"ffebcd",blue:"0000ff",blueviolet:"8a2be2",brown:"a52a2a",burlywood:"deb887",cadetblue:"5f9ea0",chartreuse:"7fff00",chocolate:"d2691e",coral:"ff7f50",cornflowerblue:"6495ed",cornsilk:"fff8dc",crimson:"dc143c",cyan:"00ffff",darkblue:"00008b",darkcyan:"008b8b",darkgoldenrod:"b8860b",darkgray:"a9a9a9",darkgreen:"006400",darkkhaki:"bdb76b",darkmagenta:"8b008b",darkolivegreen:"556b2f",darkorange:"ff8c00",darkorchid:"9932cc",darkred:"8b0000",darksalmon:"e9967a",darkseagreen:"8fbc8f",darkslateblue:"483d8b",darkslategray:"2f4f4f",darkturquoise:"00ced1",darkviolet:"9400d3",deeppink:"ff1493",deepskyblue:"00bfff",dimgray:"696969",dodgerblue:"1e90ff",feldspar:"d19275",firebrick:"b22222",floralwhite:"fffaf0",forestgreen:"228b22",fuchsia:"ff00ff",gainsboro:"dcdcdc",ghostwhite:"f8f8ff",gold:"ffd700",goldenrod:"daa520",gray:"808080",green:"008000",greenyellow:"adff2f",honeydew:"f0fff0",hotpink:"ff69b4",indianred:"cd5c5c",indigo:"4b0082",ivory:"fffff0",khaki:"f0e68c",lavender:"e6e6fa",lavenderblush:"fff0f5",lawngreen:"7cfc00",lemonchiffon:"fffacd",lightblue:"add8e6",lightcoral:"f08080",lightcyan:"e0ffff",lightgoldenrodyellow:"fafad2",lightgrey:"d3d3d3",lightgreen:"90ee90",lightpink:"ffb6c1",lightsalmon:"ffa07a",lightseagreen:"20b2aa",lightskyblue:"87cefa",lightslateblue:"8470ff",lightslategray:"778899",lightsteelblue:"b0c4de",lightyellow:"ffffe0",lime:"00ff00",limegreen:"32cd32",linen:"faf0e6",magenta:"ff00ff",maroon:"800000",mediumaquamarine:"66cdaa",mediumblue:"0000cd",mediumorchid:"ba55d3",mediumpurple:"9370d8",mediumseagreen:"3cb371",mediumslateblue:"7b68ee",mediumspringgreen:"00fa9a",mediumturquoise:"48d1cc",mediumvioletred:"c71585",midnightblue:"191970",mintcream:"f5fffa",mistyrose:"ffe4e1",moccasin:"ffe4b5",navajowhite:"ffdead",navy:"000080",oldlace:"fdf5e6",olive:"808000",olivedrab:"6b8e23",orange:"ffa500",orangered:"ff4500",orchid:"da70d6",palegoldenrod:"eee8aa",palegreen:"98fb98",paleturquoise:"afeeee",palevioletred:"d87093",papayawhip:"ffefd5",peachpuff:"ffdab9",peru:"cd853f",pink:"ffc0cb",plum:"dda0dd",powderblue:"b0e0e6",purple:"800080",red:"ff0000",rosybrown:"bc8f8f",royalblue:"4169e1",saddlebrown:"8b4513",salmon:"fa8072",sandybrown:"f4a460",seagreen:"2e8b57",seashell:"fff5ee",sienna:"a0522d",silver:"c0c0c0",skyblue:"87ceeb",slateblue:"6a5acd",slategray:"708090",snow:"fffafa",springgreen:"00ff7f",steelblue:"4682b4",tan:"d2b48c",teal:"008080",thistle:"d8bfd8",tomato:"ff6347",turquoise:"40e0d0",violet:"ee82ee",violetred:"d02090",wheat:"f5deb3",white:"ffffff",whitesmoke:"f5f5f5",yellow:"ffff00",yellowgreen:"9acd32"}[n=(n=n.replace(/ /g,"")).toLowerCase()]||n;for(var s=[{re:/^rgb\((\d{1,3}),\s*(\d{1,3}),\s*(\d{1,3})\)$/,example:["rgb(123, 234, 45)","rgb(255,234,245)"],process:function(O){return[parseInt(O[1]),parseInt(O[2]),parseInt(O[3])]}},{re:/^(\w{2})(\w{2})(\w{2})$/,example:["#00ff00","336699"],process:function(O){return[parseInt(O[1],16),parseInt(O[2],16),parseInt(O[3],16)]}},{re:/^(\w{1})(\w{1})(\w{1})$/,example:["#fb0","f0f"],process:function(O){return[parseInt(O[1]+O[1],16),parseInt(O[2]+O[2],16),parseInt(O[3]+O[3],16)]}}],c=0;c<s.length;c++){var d=s[c].re,m=s[c].process,W=d.exec(n);W&&(a=m(W),this.r=a[0],this.g=a[1],this.b=a[2],this.ok=!0)}this.r=this.r<0||isNaN(this.r)?0:this.r>255?255:this.r,this.g=this.g<0||isNaN(this.g)?0:this.g>255?255:this.g,this.b=this.b<0||isNaN(this.b)?0:this.b>255?255:this.b,this.toRGB=function(){return"rgb("+this.r+", "+this.g+", "+this.b+")"},this.toHex=function(){var O=this.r.toString(16),$=this.g.toString(16),J=this.b.toString(16);return O.length==1&&(O="0"+O),$.length==1&&($="0"+$),J.length==1&&(J="0"+J),"#"+O+$+J}}var L0=Ii.atob.bind(Ii),Dh=Ii.btoa.bind(Ii);function pc(n,a){var s=n[0],c=n[1],d=n[2],m=n[3];s=Ko(s,c,d,m,a[0],7,-680876936),m=Ko(m,s,c,d,a[1],12,-389564586),d=Ko(d,m,s,c,a[2],17,606105819),c=Ko(c,d,m,s,a[3],22,-1044525330),s=Ko(s,c,d,m,a[4],7,-176418897),m=Ko(m,s,c,d,a[5],12,1200080426),d=Ko(d,m,s,c,a[6],17,-1473231341),c=Ko(c,d,m,s,a[7],22,-45705983),s=Ko(s,c,d,m,a[8],7,1770035416),m=Ko(m,s,c,d,a[9],12,-1958414417),d=Ko(d,m,s,c,a[10],17,-42063),c=Ko(c,d,m,s,a[11],22,-1990404162),s=Ko(s,c,d,m,a[12],7,1804603682),m=Ko(m,s,c,d,a[13],12,-40341101),d=Ko(d,m,s,c,a[14],17,-1502002290),s=ho(s,c=Ko(c,d,m,s,a[15],22,1236535329),d,m,a[1],5,-165796510),m=ho(m,s,c,d,a[6],9,-1069501632),d=ho(d,m,s,c,a[11],14,643717713),c=ho(c,d,m,s,a[0],20,-373897302),s=ho(s,c,d,m,a[5],5,-701558691),m=ho(m,s,c,d,a[10],9,38016083),d=ho(d,m,s,c,a[15],14,-660478335),c=ho(c,d,m,s,a[4],20,-405537848),s=ho(s,c,d,m,a[9],5,568446438),m=ho(m,s,c,d,a[14],9,-1019803690),d=ho(d,m,s,c,a[3],14,-187363961),c=ho(c,d,m,s,a[8],20,1163531501),s=ho(s,c,d,m,a[13],5,-1444681467),m=ho(m,s,c,d,a[2],9,-51403784),d=ho(d,m,s,c,a[7],14,1735328473),s=zo(s,c=ho(c,d,m,s,a[12],20,-1926607734),d,m,a[5],4,-378558),m=zo(m,s,c,d,a[8],11,-2022574463),d=zo(d,m,s,c,a[11],16,1839030562),c=zo(c,d,m,s,a[14],23,-35309556),s=zo(s,c,d,m,a[1],4,-1530992060),m=zo(m,s,c,d,a[4],11,1272893353),d=zo(d,m,s,c,a[7],16,-155497632),c=zo(c,d,m,s,a[10],23,-1094730640),s=zo(s,c,d,m,a[13],4,681279174),m=zo(m,s,c,d,a[0],11,-358537222),d=zo(d,m,s,c,a[3],16,-722521979),c=zo(c,d,m,s,a[6],23,76029189),s=zo(s,c,d,m,a[9],4,-640364487),m=zo(m,s,c,d,a[12],11,-421815835),d=zo(d,m,s,c,a[15],16,530742520),s=Go(s,c=zo(c,d,m,s,a[2],23,-995338651),d,m,a[0],6,-198630844),m=Go(m,s,c,d,a[7],10,1126891415),d=Go(d,m,s,c,a[14],15,-1416354905),c=Go(c,d,m,s,a[5],21,-57434055),s=Go(s,c,d,m,a[12],6,1700485571),m=Go(m,s,c,d,a[3],10,-1894986606),d=Go(d,m,s,c,a[10],15,-1051523),c=Go(c,d,m,s,a[1],21,-2054922799),s=Go(s,c,d,m,a[8],6,1873313359),m=Go(m,s,c,d,a[15],10,-30611744),d=Go(d,m,s,c,a[6],15,-1560198380),c=Go(c,d,m,s,a[13],21,1309151649),s=Go(s,c,d,m,a[4],6,-145523070),m=Go(m,s,c,d,a[11],10,-1120210379),d=Go(d,m,s,c,a[2],15,718787259),c=Go(c,d,m,s,a[9],21,-343485551),n[0]=Sl(s,n[0]),n[1]=Sl(c,n[1]),n[2]=Sl(d,n[2]),n[3]=Sl(m,n[3])}function Qu(n,a,s,c,d,m){return a=Sl(Sl(a,n),Sl(c,m)),Sl(a<<d|a>>>32-d,s)}function Ko(n,a,s,c,d,m,W){return Qu(a&s|~a&c,n,a,d,m,W)}function ho(n,a,s,c,d,m,W){return Qu(a&c|s&~c,n,a,d,m,W)}function zo(n,a,s,c,d,m,W){return Qu(a^s^c,n,a,d,m,W)}function Go(n,a,s,c,d,m,W){return Qu(s^(a|~c),n,a,d,m,W)}function kh(n){var a,s=n.length,c=[1732584193,-271733879,-1732584194,271733878];for(a=64;a<=n.length;a+=64)pc(c,Rh(n.substring(a-64,a)));n=n.substring(a-64);var d=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0];for(a=0;a<n.length;a++)d[a>>2]|=n.charCodeAt(a)<<(a%4<<3);if(d[a>>2]|=128<<(a%4<<3),a>55)for(pc(c,d),a=0;a<16;a++)d[a]=0;return d[14]=8*s,pc(c,d),c}function Rh(n){var a,s=[];for(a=0;a<64;a+=4)s[a>>2]=n.charCodeAt(a)+(n.charCodeAt(a+1)<<8)+(n.charCodeAt(a+2)<<16)+(n.charCodeAt(a+3)<<24);return s}var eA="0123456789abcdef".split("");function Md(n){for(var a="",s=0;s<4;s++)a+=eA[n>>8*s+4&15]+eA[n>>8*s&15];return a}function Uh(n){return String.fromCharCode(255&n,(65280&n)>>8,(16711680&n)>>16,(4278190080&n)>>24)}function D0(n){return kh(n).map(Uh).join("")}var Qd=function(n){for(var a=0;a<n.length;a++)n[a]=Md(n[a]);return n.join("")}(kh("hello"))!="5d41402abc4b2a76b9719d911017c592";function Sl(n,a){if(Qd){var s=(65535&n)+(65535&a);return(n>>16)+(a>>16)+(s>>16)<<16|65535&s}return n+a&4294967295}function Hu(n,a){var s,c,d,m;if(n!==s){for(var W=(d=n,m=1+(256/n.length|0),new Array(m+1).join(d)),O=[],$=0;$<256;$++)O[$]=$;var J=0;for($=0;$<256;$++){var he=O[$];J=(J+he+W.charCodeAt($))%256,O[$]=O[J],O[J]=he}s=n,c=O}else O=c;var Ne=a.length,Ye=0,ce=0,wt="";for($=0;$<Ne;$++)ce=(ce+(he=O[Ye=(Ye+1)%256]))%256,O[Ye]=O[ce],O[ce]=he,W=O[(O[Ye]+O[ce])%256],wt+=String.fromCharCode(a.charCodeAt($)^W);return wt}var Hc={print:4,modify:8,copy:16,"annot-forms":32};function jc(n,a,s,c){this.v=1,this.r=2;var d=192;n.forEach(function(O){if(Hc.perm!==void 0)throw new Error("Invalid permission: "+O);d+=Hc[O]}),this.padding="(\xBFN^Nu\x8AAd\0NV\xFF\xFA\b..\0\xB6\xD0h>\x80/\f\xA9\xFEdSiz";var m=(a+this.padding).substr(0,32),W=(s+this.padding).substr(0,32);this.O=this.processOwnerPassword(m,W),this.P=-(1+(255^d)),this.encryptionKey=D0(m+this.O+this.lsbFirstWord(this.P)+this.hexToBytes(c)).substr(0,5),this.U=Hu(this.encryptionKey,this.padding)}function QA(n){if(/[^\u0000-\u00ff]/.test(n))throw new Error("Invalid PDF Name Object: "+n+", Only accept ASCII characters.");for(var a="",s=n.length,c=0;c<s;c++){var d=n.charCodeAt(c);a+=d<33||d===35||d===37||d===40||d===41||d===47||d===60||d===62||d===91||d===93||d===123||d===125||d>126?"#"+("0"+d.toString(16)).slice(-2):n[c]}return a}function Pf(n){if((0,Ie.Z)(n)!=="object")throw new Error("Invalid Context passed to initialize PubSub (jsPDF-module)");var a={};this.subscribe=function(s,c,d){if(d=d||!1,typeof s!="string"||typeof c!="function"||typeof d!="boolean")throw new Error("Invalid arguments passed to PubSub.subscribe (jsPDF-module)");a.hasOwnProperty(s)||(a[s]={});var m=Math.random().toString(35);return a[s][m]=[c,!!d],m},this.unsubscribe=function(s){for(var c in a)if(a[c][s])return delete a[c][s],Object.keys(a[c]).length===0&&delete a[c],!0;return!1},this.publish=function(s){if(a.hasOwnProperty(s)){var c=Array.prototype.slice.call(arguments,1),d=[];for(var m in a[s]){var W=a[s][m];try{W[0].apply(n,c)}catch(O){Ii.console&&Us.error("jsPDF PubSub Error",O.message,O)}W[1]&&d.push(m)}d.length&&d.forEach(this.unsubscribe)}},this.getTopics=function(){return a}}function Kc(n){if(!(this instanceof Kc))return new Kc(n);var a="opacity,stroke-opacity".split(",");for(var s in n)n.hasOwnProperty(s)&&a.indexOf(s)>=0&&(this[s]=n[s]);this.id="",this.objectNumber=-1}function Of(n,a){this.gState=n,this.matrix=a,this.id="",this.objectNumber=-1}function zl(n,a,s,c,d){if(!(this instanceof zl))return new zl(n,a,s,c,d);this.type=n==="axial"?2:3,this.coords=a,this.colors=s,Of.call(this,c,d)}function mu(n,a,s,c,d){if(!(this instanceof mu))return new mu(n,a,s,c,d);this.boundingBox=n,this.xStep=a,this.yStep=s,this.stream="",this.cloneIndex=0,Of.call(this,c,d)}function Xn(n){var a,s=typeof arguments[0]=="string"?arguments[0]:"p",c=arguments[1],d=arguments[2],m=arguments[3],W=[],O=1,$=16,J="S",he=null;(0,Ie.Z)(n=n||{})==="object"&&(s=n.orientation,c=n.unit||c,d=n.format||d,m=n.compress||n.compressPdf||m,(he=n.encryption||null)!==null&&(he.userPassword=he.userPassword||"",he.ownerPassword=he.ownerPassword||"",he.userPermissions=he.userPermissions||[]),O=typeof n.userUnit=="number"?Math.abs(n.userUnit):1,n.precision!==void 0&&(a=n.precision),n.floatPrecision!==void 0&&($=n.floatPrecision),J=n.defaultPathOperation||"S"),W=n.filters||(m===!0?["FlateEncode"]:W),c=c||"mm",s=(""+(s||"P")).toLowerCase();var Ne=n.putOnlyUsedFonts||!1,Ye={},ce={internal:{},__private__:{}};ce.__private__.PubSub=Pf;var wt="1.3",pt=ce.__private__.getPdfVersion=function(){return wt};ce.__private__.setPdfVersion=function(X){wt=X};var bt={a0:[2383.94,3370.39],a1:[1683.78,2383.94],a2:[1190.55,1683.78],a3:[841.89,1190.55],a4:[595.28,841.89],a5:[419.53,595.28],a6:[297.64,419.53],a7:[209.76,297.64],a8:[147.4,209.76],a9:[104.88,147.4],a10:[73.7,104.88],b0:[2834.65,4008.19],b1:[2004.09,2834.65],b2:[1417.32,2004.09],b3:[1000.63,1417.32],b4:[708.66,1000.63],b5:[498.9,708.66],b6:[354.33,498.9],b7:[249.45,354.33],b8:[175.75,249.45],b9:[124.72,175.75],b10:[87.87,124.72],c0:[2599.37,3676.54],c1:[1836.85,2599.37],c2:[1298.27,1836.85],c3:[918.43,1298.27],c4:[649.13,918.43],c5:[459.21,649.13],c6:[323.15,459.21],c7:[229.61,323.15],c8:[161.57,229.61],c9:[113.39,161.57],c10:[79.37,113.39],dl:[311.81,623.62],letter:[612,792],"government-letter":[576,756],legal:[612,1008],"junior-legal":[576,360],ledger:[1224,792],tabloid:[792,1224],"credit-card":[153,243]};ce.__private__.getPageFormats=function(){return bt};var rt=ce.__private__.getPageFormat=function(X){return bt[X]};d=d||"a4";var Yt="compat",jt="advanced",Ut=Yt;function kr(){this.saveGraphicsState(),Qt(new Ri(Hi,0,0,-Hi,0,Xf()*Hi).toString()+" cm"),this.setFontSize(this.getFontSize()/Hi),J="n",Ut=jt}function en(){this.restoreGraphicsState(),J="S",Ut=Yt}var Hr=ce.__private__.combineFontStyleAndFontWeight=function(X,ze){if(X=="bold"&&ze=="normal"||X=="bold"&&ze==400||X=="normal"&&ze=="italic"||X=="bold"&&ze=="italic")throw new Error("Invalid Combination of fontweight and fontstyle");return ze&&(X=ze==400||ze==="normal"?X==="italic"?"italic":"normal":ze!=700&&ze!=="bold"||X!=="normal"?(ze==700?"bold":ze)+""+X:"bold"),X};ce.advancedAPI=function(X){var ze=Ut===Yt;return ze&&kr.call(this),typeof X!="function"||(X(this),ze&&en.call(this)),this},ce.compatAPI=function(X){var ze=Ut===jt;return ze&&en.call(this),typeof X!="function"||(X(this),ze&&kr.call(this)),this},ce.isAdvancedAPI=function(){return Ut===jt};var Ar,Nt=function(X){if(Ut!==jt)throw new Error(X+" is only available in 'advanced' API mode. You need to call advancedAPI() first.")},Er=ce.roundToPrecision=ce.__private__.roundToPrecision=function(X,ze){var Lt=a||ze;if(isNaN(X)||isNaN(Lt))throw new Error("Invalid argument passed to jsPDF.roundToPrecision");return X.toFixed(Lt).replace(/0+$/,"")};Ar=ce.hpf=ce.__private__.hpf=typeof $=="number"?function(X){if(isNaN(X))throw new Error("Invalid argument passed to jsPDF.hpf");return Er(X,$)}:$==="smart"?function(X){if(isNaN(X))throw new Error("Invalid argument passed to jsPDF.hpf");return Er(X,X>-1&&X<1?16:5)}:function(X){if(isNaN(X))throw new Error("Invalid argument passed to jsPDF.hpf");return Er(X,16)};var tt=ce.f2=ce.__private__.f2=function(X){if(isNaN(X))throw new Error("Invalid argument passed to jsPDF.f2");return Er(X,2)},Ct=ce.__private__.f3=function(X){if(isNaN(X))throw new Error("Invalid argument passed to jsPDF.f3");return Er(X,3)},Xt=ce.scale=ce.__private__.scale=function(X){if(isNaN(X))throw new Error("Invalid argument passed to jsPDF.scale");return Ut===Yt?X*Hi:Ut===jt?X:void 0},Gt=function(X){return Xt(function(ze){return Ut===Yt?Xf()-ze:Ut===jt?ze:void 0}(X))};ce.__private__.setPrecision=ce.setPrecision=function(X){typeof parseInt(X,10)=="number"&&(a=parseInt(X,10))};var Ur,Qr="00000000000000000000000000000000",zr=ce.__private__.getFileId=function(){return Qr},Fr=ce.__private__.setFileId=function(X){return Qr=X!==void 0&&/^[a-fA-F0-9]{32}$/.test(X)?X.toUpperCase():Qr.split("").map(function(){return"ABCDEF0123456789".charAt(Math.floor(16*Math.random()))}).join(""),he!==null&&(So=new jc(he.userPermissions,he.userPassword,he.ownerPassword,Qr)),Qr};ce.setFileId=function(X){return Fr(X),this},ce.getFileId=function(){return zr()};var $r=ce.__private__.convertDateToPDFDate=function(X){var ze=X.getTimezoneOffset(),Lt=ze<0?"+":"-",Zt=Math.floor(Math.abs(ze/60)),_r=Math.abs(ze%60),nn=[Lt,Ht(Zt),"'",Ht(_r),"'"].join("");return["D:",X.getFullYear(),Ht(X.getMonth()+1),Ht(X.getDate()),Ht(X.getHours()),Ht(X.getMinutes()),Ht(X.getSeconds()),nn].join("")},En=ce.__private__.convertPDFDateToDate=function(X){var ze=parseInt(X.substr(2,4),10),Lt=parseInt(X.substr(6,2),10)-1,Zt=parseInt(X.substr(8,2),10),_r=parseInt(X.substr(10,2),10),nn=parseInt(X.substr(12,2),10),hn=parseInt(X.substr(14,2),10);return new Date(ze,Lt,Zt,_r,nn,hn,0)},un=ce.__private__.setCreationDate=function(X){var ze;if(X===void 0&&(X=new Date),X instanceof Date)ze=$r(X);else{if(!/^D:(20[0-2][0-9]|203[0-7]|19[7-9][0-9])(0[0-9]|1[0-2])([0-2][0-9]|3[0-1])(0[0-9]|1[0-9]|2[0-3])(0[0-9]|[1-5][0-9])(0[0-9]|[1-5][0-9])(\+0[0-9]|\+1[0-4]|-0[0-9]|-1[0-1])'(0[0-9]|[1-5][0-9])'?$/.test(X))throw new Error("Invalid argument passed to jsPDF.setCreationDate");ze=X}return Ur=ze},et=ce.__private__.getCreationDate=function(X){var ze=Ur;return X==="jsDate"&&(ze=En(Ur)),ze};ce.setCreationDate=function(X){return un(X),this},ce.getCreationDate=function(X){return et(X)};var Rt,Ht=ce.__private__.padd2=function(X){return("0"+parseInt(X)).slice(-2)},tr=ce.__private__.padd2Hex=function(X){return("00"+(X=X.toString())).substr(X.length)},gr=0,Lr=[],jr=[],Mr=0,an=[],vn=[],Hn=!1,jn=jr;ce.__private__.setCustomOutputDestination=function(X){Hn=!0,jn=X};var Xr=function(X){Hn||(jn=X)};ce.__private__.resetCustomOutputDestination=function(){Hn=!1,jn=jr};var Qt=ce.__private__.out=function(X){return X=X.toString(),Mr+=X.length+1,jn.push(X),jn},Ss=ce.__private__.write=function(X){return Qt(arguments.length===1?X.toString():Array.prototype.join.call(arguments," "))},As=ce.__private__.getArrayBuffer=function(X){for(var ze=X.length,Lt=new ArrayBuffer(ze),Zt=new Uint8Array(Lt);ze--;)Zt[ze]=X.charCodeAt(ze);return Lt},Ti=[["Helvetica","helvetica","normal","WinAnsiEncoding"],["Helvetica-Bold","helvetica","bold","WinAnsiEncoding"],["Helvetica-Oblique","helvetica","italic","WinAnsiEncoding"],["Helvetica-BoldOblique","helvetica","bolditalic","WinAnsiEncoding"],["Courier","courier","normal","WinAnsiEncoding"],["Courier-Bold","courier","bold","WinAnsiEncoding"],["Courier-Oblique","courier","italic","WinAnsiEncoding"],["Courier-BoldOblique","courier","bolditalic","WinAnsiEncoding"],["Times-Roman","times","normal","WinAnsiEncoding"],["Times-Bold","times","bold","WinAnsiEncoding"],["Times-Italic","times","italic","WinAnsiEncoding"],["Times-BoldItalic","times","bolditalic","WinAnsiEncoding"],["ZapfDingbats","zapfdingbats","normal",null],["Symbol","symbol","normal",null]];ce.__private__.getStandardFonts=function(){return Ti};var _n=n.fontSize||16;ce.__private__.setFontSize=ce.setFontSize=function(X){return _n=Ut===jt?X/Hi:X,this};var vi,Gn=ce.__private__.getFontSize=ce.getFontSize=function(){return Ut===Yt?_n:_n*Hi},ls=n.R2L||!1;ce.__private__.setR2L=ce.setR2L=function(X){return ls=X,this},ce.__private__.getR2L=ce.getR2L=function(){return ls};var xi,Zs=ce.__private__.setZoomMode=function(X){if(/^(?:\d+\.\d*|\d*\.\d+|\d+)%$/.test(X))vi=X;else if(isNaN(X)){if([void 0,null,"fullwidth","fullheight","fullpage","original"].indexOf(X)===-1)throw new Error('zoom must be Integer (e.g. 2), a percentage Value (e.g. 300%) or fullwidth, fullheight, fullpage, original. "'+X+'" is not recognized.');vi=X}else vi=parseInt(X,10)};ce.__private__.getZoomMode=function(){return vi};var es,ts=ce.__private__.setPageMode=function(X){if([void 0,null,"UseNone","UseOutlines","UseThumbs","FullScreen"].indexOf(X)==-1)throw new Error('Page mode must be one of UseNone, UseOutlines, UseThumbs, or FullScreen. "'+X+'" is not recognized.');xi=X};ce.__private__.getPageMode=function(){return xi};var pa=ce.__private__.setLayoutMode=function(X){if([void 0,null,"continuous","single","twoleft","tworight","two"].indexOf(X)==-1)throw new Error('Layout mode must be one of continuous, single, twoleft, tworight. "'+X+'" is not recognized.');es=X};ce.__private__.getLayoutMode=function(){return es},ce.__private__.setDisplayMode=ce.setDisplayMode=function(X,ze,Lt){return Zs(X),pa(ze),ts(Lt),this};var us={title:"",subject:"",author:"",keywords:"",creator:""};ce.__private__.getDocumentProperty=function(X){if(Object.keys(us).indexOf(X)===-1)throw new Error("Invalid argument passed to jsPDF.getDocumentProperty");return us[X]},ce.__private__.getDocumentProperties=function(){return us},ce.__private__.setDocumentProperties=ce.setProperties=ce.setDocumentProperties=function(X){for(var ze in us)us.hasOwnProperty(ze)&&X[ze]&&(us[ze]=X[ze]);return this},ce.__private__.setDocumentProperty=function(X,ze){if(Object.keys(us).indexOf(X)===-1)throw new Error("Invalid arguments passed to jsPDF.setDocumentProperty");return us[X]=ze};var wi,Hi,bi,La,qs,ui={},rs={},ya=[],ki={},Ls={},ns={},Co={},iA=null,_a=0,Vi=[],ra=new Pf(ce),Qf=n.hotfixes||[],Al={},R0={},Gc=[],Ri=function X(ze,Lt,Zt,_r,nn,hn){if(!(this instanceof X))return new X(ze,Lt,Zt,_r,nn,hn);isNaN(ze)&&(ze=1),isNaN(Lt)&&(Lt=0),isNaN(Zt)&&(Zt=0),isNaN(_r)&&(_r=1),isNaN(nn)&&(nn=0),isNaN(hn)&&(hn=0),this._matrix=[ze,Lt,Zt,_r,nn,hn]};Object.defineProperty(Ri.prototype,"sx",{get:function(){return this._matrix[0]},set:function(X){this._matrix[0]=X}}),Object.defineProperty(Ri.prototype,"shy",{get:function(){return this._matrix[1]},set:function(X){this._matrix[1]=X}}),Object.defineProperty(Ri.prototype,"shx",{get:function(){return this._matrix[2]},set:function(X){this._matrix[2]=X}}),Object.defineProperty(Ri.prototype,"sy",{get:function(){return this._matrix[3]},set:function(X){this._matrix[3]=X}}),Object.defineProperty(Ri.prototype,"tx",{get:function(){return this._matrix[4]},set:function(X){this._matrix[4]=X}}),Object.defineProperty(Ri.prototype,"ty",{get:function(){return this._matrix[5]},set:function(X){this._matrix[5]=X}}),Object.defineProperty(Ri.prototype,"a",{get:function(){return this._matrix[0]},set:function(X){this._matrix[0]=X}}),Object.defineProperty(Ri.prototype,"b",{get:function(){return this._matrix[1]},set:function(X){this._matrix[1]=X}}),Object.defineProperty(Ri.prototype,"c",{get:function(){return this._matrix[2]},set:function(X){this._matrix[2]=X}}),Object.defineProperty(Ri.prototype,"d",{get:function(){return this._matrix[3]},set:function(X){this._matrix[3]=X}}),Object.defineProperty(Ri.prototype,"e",{get:function(){return this._matrix[4]},set:function(X){this._matrix[4]=X}}),Object.defineProperty(Ri.prototype,"f",{get:function(){return this._matrix[5]},set:function(X){this._matrix[5]=X}}),Object.defineProperty(Ri.prototype,"rotation",{get:function(){return Math.atan2(this.shx,this.sx)}}),Object.defineProperty(Ri.prototype,"scaleX",{get:function(){return this.decompose().scale.sx}}),Object.defineProperty(Ri.prototype,"scaleY",{get:function(){return this.decompose().scale.sy}}),Object.defineProperty(Ri.prototype,"isIdentity",{get:function(){return this.sx===1&&this.shy===0&&this.shx===0&&this.sy===1&&this.tx===0&&this.ty===0}}),Ri.prototype.join=function(X){return[this.sx,this.shy,this.shx,this.sy,this.tx,this.ty].map(Ar).join(X)},Ri.prototype.multiply=function(X){var ze=X.sx*this.sx+X.shy*this.shx,Lt=X.sx*this.shy+X.shy*this.sy,Zt=X.shx*this.sx+X.sy*this.shx,_r=X.shx*this.shy+X.sy*this.sy,nn=X.tx*this.sx+X.ty*this.shx+this.tx,hn=X.tx*this.shy+X.ty*this.sy+this.ty;return new Ri(ze,Lt,Zt,_r,nn,hn)},Ri.prototype.decompose=function(){var X=this.sx,ze=this.shy,Lt=this.shx,Zt=this.sy,_r=this.tx,nn=this.ty,hn=Math.sqrt(X*X+ze*ze),ti=(X/=hn)*Lt+(ze/=hn)*Zt;Lt-=X*ti,Zt-=ze*ti;var li=Math.sqrt(Lt*Lt+Zt*Zt);return ti/=li,X*(Zt/=li)<ze*(Lt/=li)&&(X=-X,ze=-ze,ti=-ti,hn=-hn),{scale:new Ri(hn,0,0,li,0,0),translate:new Ri(1,0,0,1,_r,nn),rotate:new Ri(X,ze,-ze,X,0,0),skew:new Ri(1,0,ti,1,0,0)}},Ri.prototype.toString=function(X){return this.join(" ")},Ri.prototype.inversed=function(){var X=this.sx,ze=this.shy,Lt=this.shx,Zt=this.sy,_r=this.tx,nn=this.ty,hn=1/(X*Zt-ze*Lt),ti=Zt*hn,li=-ze*hn,zi=-Lt*hn,qi=X*hn;return new Ri(ti,li,zi,qi,-ti*_r-zi*nn,-li*_r-qi*nn)},Ri.prototype.applyToPoint=function(X){var ze=X.x*this.sx+X.y*this.shx+this.tx,Lt=X.x*this.shy+X.y*this.sy+this.ty;return new Zf(ze,Lt)},Ri.prototype.applyToRectangle=function(X){var ze=this.applyToPoint(X),Lt=this.applyToPoint(new Zf(X.x+X.w,X.y+X.h));return new Dp(ze.x,ze.y,Lt.x-ze.x,Lt.y-ze.y)},Ri.prototype.clone=function(){var X=this.sx,ze=this.shy,Lt=this.shx,Zt=this.sy,_r=this.tx,nn=this.ty;return new Ri(X,ze,Lt,Zt,_r,nn)},ce.Matrix=Ri;var U0=ce.matrixMult=function(X,ze){return ze.multiply(X)},P0=new Ri(1,0,0,1,0,0);ce.unitMatrix=ce.identityMatrix=P0;var zu=function(X,ze){if(!Ls[X]){var Lt=(ze instanceof zl?"Sh":"P")+(Object.keys(ki).length+1).toString(10);ze.id=Lt,Ls[X]=Lt,ki[Lt]=ze,ra.publish("addPattern",ze)}};ce.ShadingPattern=zl,ce.TilingPattern=mu,ce.addShadingPattern=function(X,ze){return Nt("addShadingPattern()"),zu(X,ze),this},ce.beginTilingPattern=function(X){Nt("beginTilingPattern()"),kp(X.boundingBox[0],X.boundingBox[1],X.boundingBox[2]-X.boundingBox[0],X.boundingBox[3]-X.boundingBox[1],X.matrix)},ce.endTilingPattern=function(X,ze){Nt("endTilingPattern()"),ze.stream=vn[Rt].join(`
|
|
|
`),zu(X,ze),ra.publish("endTilingPattern",ze),Gc.pop().restore()};var Gu,fo=ce.__private__.newObject=function(){var X=BA();return HA(X,!0),X},BA=ce.__private__.newObjectDeferred=function(){return gr++,Lr[gr]=function(){return Mr},gr},HA=function(X,ze){return ze=typeof ze=="boolean"&&ze,Lr[X]=Mr,ze&&Qt(X+" 0 obj"),X},Hf=ce.__private__.newAdditionalObject=function(){var X={objId:BA(),content:""};return an.push(X),X},Ph=BA(),mc=BA(),Vc=ce.__private__.decodeColorString=function(X){var ze=X.split(" ");if(ze.length!==2||ze[1]!=="g"&&ze[1]!=="G")ze.length!==5||ze[4]!=="k"&&ze[4]!=="K"||(ze=[(1-ze[0])*(1-ze[3]),(1-ze[1])*(1-ze[3]),(1-ze[2])*(1-ze[3]),"r"]);else{var Lt=parseFloat(ze[0]);ze=[Lt,Lt,Lt,"r"]}for(var Zt="#",_r=0;_r<3;_r++)Zt+=("0"+Math.floor(255*parseFloat(ze[_r])).toString(16)).slice(-2);return Zt},vc=ce.__private__.encodeColorString=function(X){var ze;typeof X=="string"&&(X={ch1:X});var Lt=X.ch1,Zt=X.ch2,_r=X.ch3,nn=X.ch4,hn=X.pdfColorType==="draw"?["G","RG","K"]:["g","rg","k"];if(typeof Lt=="string"&&Lt.charAt(0)!=="#"){var ti=new Uf(Lt);if(ti.ok)Lt=ti.toHex();else if(!/^\d*\.?\d*$/.test(Lt))throw new Error('Invalid color "'+Lt+'" passed to jsPDF.encodeColorString.')}if(typeof Lt=="string"&&/^#[0-9A-Fa-f]{3}$/.test(Lt)&&(Lt="#"+Lt[1]+Lt[1]+Lt[2]+Lt[2]+Lt[3]+Lt[3]),typeof Lt=="string"&&/^#[0-9A-Fa-f]{6}$/.test(Lt)){var li=parseInt(Lt.substr(1),16);Lt=li>>16&255,Zt=li>>8&255,_r=255&li}if(Zt===void 0||nn===void 0&&Lt===Zt&&Zt===_r)ze=typeof Lt=="string"?Lt+" "+hn[0]:X.precision===2?tt(Lt/255)+" "+hn[0]:Ct(Lt/255)+" "+hn[0];else if(nn===void 0||(0,Ie.Z)(nn)==="object"){if(nn&&!isNaN(nn.a)&&nn.a===0)return["1.","1.","1.",hn[1]].join(" ");ze=typeof Lt=="string"?[Lt,Zt,_r,hn[1]].join(" "):X.precision===2?[tt(Lt/255),tt(Zt/255),tt(_r/255),hn[1]].join(" "):[Ct(Lt/255),Ct(Zt/255),Ct(_r/255),hn[1]].join(" ")}else ze=typeof Lt=="string"?[Lt,Zt,_r,nn,hn[2]].join(" "):X.precision===2?[tt(Lt),tt(Zt),tt(_r),tt(nn),hn[2]].join(" "):[Ct(Lt),Ct(Zt),Ct(_r),Ct(nn),hn[2]].join(" ");return ze},yc=ce.__private__.getFilters=function(){return W},Vu=ce.__private__.putStream=function(X){var ze=(X=X||{}).data||"",Lt=X.filters||yc(),Zt=X.alreadyAppliedFilters||[],_r=X.addLength1||!1,nn=ze.length,hn=X.objectId,ti=function(sA){return sA};if(he!==null&&hn===void 0)throw new Error("ObjectId must be passed to putStream for file encryption");he!==null&&(ti=So.encryptor(hn,0));var li={};Lt===!0&&(Lt=["FlateEncode"]);var zi=X.additionalKeyValues||[],qi=(li=Xn.API.processDataByFilters!==void 0?Xn.API.processDataByFilters(ze,Lt):{data:ze,reverseChain:[]}).reverseChain+(Array.isArray(Zt)?Zt.join(" "):Zt.toString());if(li.data.length!==0&&(zi.push({key:"Length",value:li.data.length}),_r===!0&&zi.push({key:"Length1",value:nn})),qi.length!=0)if(qi.split("/").length-1==1)zi.push({key:"Filter",value:qi});else{zi.push({key:"Filter",value:"["+qi+"]"});for(var Xs=0;Xs<zi.length;Xs+=1)if(zi[Xs].key==="DecodeParms"){for(var ao=[],$o=0;$o<li.reverseChain.split("/").length-1;$o+=1)ao.push("null");ao.push(zi[Xs].value),zi[Xs].value="["+ao.join(" ")+"]"}}Qt("<<");for(var Da=0;Da<zi.length;Da++)Qt("/"+zi[Da].key+" "+zi[Da].value);Qt(">>"),li.data.length!==0&&(Qt("stream"),Qt(ti(li.data)),Qt("endstream"))},jf=ce.__private__.putPage=function(X){var ze=X.number,Lt=X.data,Zt=X.objId,_r=X.contentsObjId;HA(Zt,!0),Qt("<</Type /Page"),Qt("/Parent "+X.rootDictionaryObjId+" 0 R"),Qt("/Resources "+X.resourceDictionaryObjId+" 0 R"),Qt("/MediaBox ["+parseFloat(Ar(X.mediaBox.bottomLeftX))+" "+parseFloat(Ar(X.mediaBox.bottomLeftY))+" "+Ar(X.mediaBox.topRightX)+" "+Ar(X.mediaBox.topRightY)+"]"),X.cropBox!==null&&Qt("/CropBox ["+Ar(X.cropBox.bottomLeftX)+" "+Ar(X.cropBox.bottomLeftY)+" "+Ar(X.cropBox.topRightX)+" "+Ar(X.cropBox.topRightY)+"]"),X.bleedBox!==null&&Qt("/BleedBox ["+Ar(X.bleedBox.bottomLeftX)+" "+Ar(X.bleedBox.bottomLeftY)+" "+Ar(X.bleedBox.topRightX)+" "+Ar(X.bleedBox.topRightY)+"]"),X.trimBox!==null&&Qt("/TrimBox ["+Ar(X.trimBox.bottomLeftX)+" "+Ar(X.trimBox.bottomLeftY)+" "+Ar(X.trimBox.topRightX)+" "+Ar(X.trimBox.topRightY)+"]"),X.artBox!==null&&Qt("/ArtBox ["+Ar(X.artBox.bottomLeftX)+" "+Ar(X.artBox.bottomLeftY)+" "+Ar(X.artBox.topRightX)+" "+Ar(X.artBox.topRightY)+"]"),typeof X.userUnit=="number"&&X.userUnit!==1&&Qt("/UserUnit "+X.userUnit),ra.publish("putPage",{objId:Zt,pageContext:Vi[ze],pageNumber:ze,page:Lt}),Qt("/Contents "+_r+" 0 R"),Qt(">>"),Qt("endobj");var nn=Lt.join(`
|
|
|
`);return Ut===jt&&(nn+=`
|
|
|
Q`),HA(_r,!0),Vu({data:nn,filters:yc(),objectId:_r}),Qt("endobj"),Zt},Wc=ce.__private__.putPages=function(){var X,ze,Lt=[];for(X=1;X<=_a;X++)Vi[X].objId=BA(),Vi[X].contentsObjId=BA();for(X=1;X<=_a;X++)Lt.push(jf({number:X,data:vn[X],objId:Vi[X].objId,contentsObjId:Vi[X].contentsObjId,mediaBox:Vi[X].mediaBox,cropBox:Vi[X].cropBox,bleedBox:Vi[X].bleedBox,trimBox:Vi[X].trimBox,artBox:Vi[X].artBox,userUnit:Vi[X].userUnit,rootDictionaryObjId:Ph,resourceDictionaryObjId:mc}));HA(Ph,!0),Qt("<</Type /Pages");var Zt="/Kids [";for(ze=0;ze<_a;ze++)Zt+=Lt[ze]+" 0 R ";Qt(Zt+"]"),Qt("/Count "+_a),Qt(">>"),Qt("endobj"),ra.publish("postPutPages")},Kf=function(X){ra.publish("putFont",{font:X,out:Qt,newObject:fo,putStream:Vu}),X.isAlreadyPutted!==!0&&(X.objectNumber=fo(),Qt("<<"),Qt("/Type /Font"),Qt("/BaseFont /"+QA(X.postScriptName)),Qt("/Subtype /Type1"),typeof X.encoding=="string"&&Qt("/Encoding /"+X.encoding),Qt("/FirstChar 32"),Qt("/LastChar 255"),Qt(">>"),Qt("endobj"))},Hd=function(X){X.objectNumber=fo();var ze=[];ze.push({key:"Type",value:"/XObject"}),ze.push({key:"Subtype",value:"/Form"}),ze.push({key:"BBox",value:"["+[Ar(X.x),Ar(X.y),Ar(X.x+X.width),Ar(X.y+X.height)].join(" ")+"]"}),ze.push({key:"Matrix",value:"["+X.matrix.toString()+"]"});var Lt=X.pages[1].join(`
|
|
|
`);Vu({data:Lt,additionalKeyValues:ze,objectId:X.objectNumber}),Qt("endobj")},jd=function(X,ze){ze||(ze=21);var Lt=fo(),Zt=function(hn,ti){var li,zi=[],qi=1/(ti-1);for(li=0;li<1;li+=qi)zi.push(li);if(zi.push(1),hn[0].offset!=0){var Xs={offset:0,color:hn[0].color};hn.unshift(Xs)}if(hn[hn.length-1].offset!=1){var ao={offset:1,color:hn[hn.length-1].color};hn.push(ao)}for(var $o="",Da=0,sA=0;sA<zi.length;sA++){for(li=zi[sA];li>hn[Da+1].offset;)Da++;var Yo=hn[Da].offset,jA=(li-Yo)/(hn[Da+1].offset-Yo),$u=hn[Da].color,Zl=hn[Da+1].color;$o+=tr(Math.round((1-jA)*$u[0]+jA*Zl[0]).toString(16))+tr(Math.round((1-jA)*$u[1]+jA*Zl[1]).toString(16))+tr(Math.round((1-jA)*$u[2]+jA*Zl[2]).toString(16))}return $o.trim()}(X.colors,ze),_r=[];_r.push({key:"FunctionType",value:"0"}),_r.push({key:"Domain",value:"[0.0 1.0]"}),_r.push({key:"Size",value:"["+ze+"]"}),_r.push({key:"BitsPerSample",value:"8"}),_r.push({key:"Range",value:"[0.0 1.0 0.0 1.0 0.0 1.0]"}),_r.push({key:"Decode",value:"[0.0 1.0 0.0 1.0 0.0 1.0]"}),Vu({data:Zt,additionalKeyValues:_r,alreadyAppliedFilters:["/ASCIIHexDecode"],objectId:Lt}),Qt("endobj"),X.objectNumber=fo(),Qt("<< /ShadingType "+X.type),Qt("/ColorSpace /DeviceRGB");var nn="/Coords ["+Ar(parseFloat(X.coords[0]))+" "+Ar(parseFloat(X.coords[1]))+" ";X.type===2?nn+=Ar(parseFloat(X.coords[2]))+" "+Ar(parseFloat(X.coords[3])):nn+=Ar(parseFloat(X.coords[2]))+" "+Ar(parseFloat(X.coords[3]))+" "+Ar(parseFloat(X.coords[4]))+" "+Ar(parseFloat(X.coords[5])),Qt(nn+="]"),X.matrix&&Qt("/Matrix ["+X.matrix.toString()+"]"),Qt("/Function "+Lt+" 0 R"),Qt("/Extend [true true]"),Qt(">>"),Qt("endobj")},Kd=function(X,ze){var Lt=BA(),Zt=fo();ze.push({resourcesOid:Lt,objectOid:Zt}),X.objectNumber=Zt;var _r=[];_r.push({key:"Type",value:"/Pattern"}),_r.push({key:"PatternType",value:"1"}),_r.push({key:"PaintType",value:"1"}),_r.push({key:"TilingType",value:"1"}),_r.push({key:"BBox",value:"["+X.boundingBox.map(Ar).join(" ")+"]"}),_r.push({key:"XStep",value:Ar(X.xStep)}),_r.push({key:"YStep",value:Ar(X.yStep)}),_r.push({key:"Resources",value:Lt+" 0 R"}),X.matrix&&_r.push({key:"Matrix",value:"["+X.matrix.toString()+"]"}),Vu({data:X.stream,additionalKeyValues:_r,objectId:X.objectNumber}),Qt("endobj")},R1=function(X){for(var ze in X.objectNumber=fo(),Qt("<<"),X)switch(ze){case"opacity":Qt("/ca "+tt(X[ze]));break;case"stroke-opacity":Qt("/CA "+tt(X[ze]))}Qt(">>"),Qt("endobj")},bp=function(X){HA(X.resourcesOid,!0),Qt("<<"),Qt("/ProcSet [/PDF /Text /ImageB /ImageC /ImageI]"),function(){for(var ze in Qt("/Font <<"),ui)ui.hasOwnProperty(ze)&&(Ne===!1||Ne===!0&&Ye.hasOwnProperty(ze))&&Qt("/"+ze+" "+ui[ze].objectNumber+" 0 R");Qt(">>")}(),function(){if(Object.keys(ki).length>0){for(var ze in Qt("/Shading <<"),ki)ki.hasOwnProperty(ze)&&ki[ze]instanceof zl&&ki[ze].objectNumber>=0&&Qt("/"+ze+" "+ki[ze].objectNumber+" 0 R");ra.publish("putShadingPatternDict"),Qt(">>")}}(),function(ze){if(Object.keys(ki).length>0){for(var Lt in Qt("/Pattern <<"),ki)ki.hasOwnProperty(Lt)&&ki[Lt]instanceof ce.TilingPattern&&ki[Lt].objectNumber>=0&&ki[Lt].objectNumber<ze&&Qt("/"+Lt+" "+ki[Lt].objectNumber+" 0 R");ra.publish("putTilingPatternDict"),Qt(">>")}}(X.objectOid),function(){if(Object.keys(ns).length>0){var ze;for(ze in Qt("/ExtGState <<"),ns)ns.hasOwnProperty(ze)&&ns[ze].objectNumber>=0&&Qt("/"+ze+" "+ns[ze].objectNumber+" 0 R");ra.publish("putGStateDict"),Qt(">>")}}(),function(){for(var ze in Qt("/XObject <<"),Al)Al.hasOwnProperty(ze)&&Al[ze].objectNumber>=0&&Qt("/"+ze+" "+Al[ze].objectNumber+" 0 R");ra.publish("putXobjectDict"),Qt(">>")}(),Qt(">>"),Qt("endobj")},Jp=function(X){rs[X.fontName]=rs[X.fontName]||{},rs[X.fontName][X.fontStyle]=X.id},e1=function(X,ze,Lt,Zt,_r){var nn={id:"F"+(Object.keys(ui).length+1).toString(10),postScriptName:X,fontName:ze,fontStyle:Lt,encoding:Zt,isStandardFont:_r||!1,metadata:{}};return ra.publish("addFont",{font:nn,instance:this}),ui[nn.id]=nn,Jp(nn),nn.id},Wu=ce.__private__.pdfEscape=ce.pdfEscape=function(X,ze){return function(Lt,Zt){var _r,nn,hn,ti,li,zi,qi,Xs,ao;if(hn=(Zt=Zt||{}).sourceEncoding||"Unicode",li=Zt.outputEncoding,(Zt.autoencode||li)&&ui[wi].metadata&&ui[wi].metadata[hn]&&ui[wi].metadata[hn].encoding&&(ti=ui[wi].metadata[hn].encoding,!li&&ui[wi].encoding&&(li=ui[wi].encoding),!li&&ti.codePages&&(li=ti.codePages[0]),typeof li=="string"&&(li=ti[li]),li)){for(qi=!1,zi=[],_r=0,nn=Lt.length;_r<nn;_r++)(Xs=li[Lt.charCodeAt(_r)])?zi.push(String.fromCharCode(Xs)):zi.push(Lt[_r]),zi[_r].charCodeAt(0)>>8&&(qi=!0);Lt=zi.join("")}for(_r=Lt.length;qi===void 0&&_r!==0;)Lt.charCodeAt(_r-1)>>8&&(qi=!0),_r--;if(!qi)return Lt;for(zi=Zt.noBOM?[]:[254,255],_r=0,nn=Lt.length;_r<nn;_r++){if((ao=(Xs=Lt.charCodeAt(_r))>>8)>>8)throw new Error("Character at position "+_r+" of string '"+Lt+"' exceeds 16bits. Cannot be encoded into UCS-2 BE");zi.push(ao),zi.push(Xs-(ao<<8))}return String.fromCharCode.apply(void 0,zi)}(X,ze).replace(/\\/g,"\\\\").replace(/\(/g,"\\(").replace(/\)/g,"\\)")},Ep=ce.__private__.beginPage=function(X){vn[++_a]=[],Vi[_a]={objId:0,contentsObjId:0,userUnit:Number(O),artBox:null,bleedBox:null,cropBox:null,trimBox:null,mediaBox:{bottomLeftX:0,bottomLeftY:0,topRightX:Number(X[0]),topRightY:Number(X[1])}},r1(_a),Xr(vn[Rt])},t1=function(X,ze){var Lt,Zt,_r;switch(s=ze||s,typeof X=="string"&&(Lt=rt(X.toLowerCase()),Array.isArray(Lt)&&(Zt=Lt[0],_r=Lt[1])),Array.isArray(X)&&(Zt=X[0]*Hi,_r=X[1]*Hi),isNaN(Zt)&&(Zt=d[0],_r=d[1]),(Zt>14400||_r>14400)&&(Us.warn("A page in a PDF can not be wider or taller than 14400 userUnit. jsPDF limits the width/height to 14400"),Zt=Math.min(14400,Zt),_r=Math.min(14400,_r)),d=[Zt,_r],s.substr(0,1)){case"l":_r>Zt&&(d=[_r,Zt]);break;case"p":Zt>_r&&(d=[_r,Zt])}Ep(d),K1(Ip),Qt(Gd),Fp!==0&&Qt(Fp+" J"),Lp!==0&&Qt(Lp+" j"),ra.publish("addPage",{pageNumber:_a})},Bp=function(X){X>0&&X<=_a&&(vn.splice(X,1),Vi.splice(X,1),_a--,Rt>_a&&(Rt=_a),this.setPage(Rt))},r1=function(X){X>0&&X<=_a&&(Rt=X)},n1=ce.__private__.getNumberOfPages=ce.getNumberOfPages=function(){return vn.length-1},i1=function(X,ze,Lt){var Zt,_r=void 0;return Lt=Lt||{},X=X!==void 0?X:ui[wi].fontName,ze=ze!==void 0?ze:ui[wi].fontStyle,Zt=X.toLowerCase(),rs[Zt]!==void 0&&rs[Zt][ze]!==void 0?_r=rs[Zt][ze]:rs[X]!==void 0&&rs[X][ze]!==void 0?_r=rs[X][ze]:Lt.disableWarning===!1&&Us.warn("Unable to look up font label for font '"+X+"', '"+ze+"'. Refer to getFontList() for available fonts."),_r||Lt.noFallback||(_r=rs.times[ze])==null&&(_r=rs.times.normal),_r},zd=ce.__private__.putInfo=function(){var X=fo(),ze=function(Zt){return Zt};for(var Lt in he!==null&&(ze=So.encryptor(X,0)),Qt("<<"),Qt("/Producer ("+Wu(ze("jsPDF "+Xn.version))+")"),us)us.hasOwnProperty(Lt)&&us[Lt]&&Qt("/"+Lt.substr(0,1).toUpperCase()+Lt.substr(1)+" ("+Wu(ze(us[Lt]))+")");Qt("/CreationDate ("+Wu(ze(Ur))+")"),Qt(">>"),Qt("endobj")},U1=ce.__private__.putCatalog=function(X){var ze=(X=X||{}).rootDictionaryObjId||Ph;switch(fo(),Qt("<<"),Qt("/Type /Catalog"),Qt("/Pages "+ze+" 0 R"),vi||(vi="fullwidth"),vi){case"fullwidth":Qt("/OpenAction [3 0 R /FitH null]");break;case"fullheight":Qt("/OpenAction [3 0 R /FitV null]");break;case"fullpage":Qt("/OpenAction [3 0 R /Fit]");break;case"original":Qt("/OpenAction [3 0 R /XYZ null null 1]");break;default:var Lt=""+vi;Lt.substr(Lt.length-1)==="%"&&(vi=parseInt(vi)/100),typeof vi=="number"&&Qt("/OpenAction [3 0 R /XYZ null null "+tt(vi)+"]")}switch(es||(es="continuous"),es){case"continuous":Qt("/PageLayout /OneColumn");break;case"single":Qt("/PageLayout /SinglePage");break;case"two":case"twoleft":Qt("/PageLayout /TwoColumnLeft");break;case"tworight":Qt("/PageLayout /TwoColumnRight")}xi&&Qt("/PageMode /"+xi),ra.publish("putCatalog"),Qt(">>"),Qt("endobj")},Wo=ce.__private__.putTrailer=function(){Qt("trailer"),Qt("<<"),Qt("/Size "+(gr+1)),Qt("/Root "+gr+" 0 R"),Qt("/Info "+(gr-1)+" 0 R"),he!==null&&Qt("/Encrypt "+So.oid+" 0 R"),Qt("/ID [ <"+Qr+"> <"+Qr+"> ]"),Qt(">>")},s1=ce.__private__.putHeader=function(){Qt("%PDF-"+wt),Qt("%\xBA\xDF\xAC\xE0")},a1=ce.__private__.putXRef=function(){var X="0000000000";Qt("xref"),Qt("0 "+(gr+1)),Qt("0000000000 65535 f ");for(var ze=1;ze<=gr;ze++)typeof Lr[ze]=="function"?Qt((X+Lr[ze]()).slice(-10)+" 00000 n "):Lr[ze]!==void 0?Qt((X+Lr[ze]).slice(-10)+" 00000 n "):Qt("0000000000 00000 n ")},O0=ce.__private__.buildDocument=function(){var X;gr=0,Mr=0,jr=[],Lr=[],an=[],Ph=BA(),mc=BA(),Xr(jr),ra.publish("buildDocument"),s1(),Wc(),function(){ra.publish("putAdditionalObjects");for(var Lt=0;Lt<an.length;Lt++){var Zt=an[Lt];HA(Zt.objId,!0),Qt(Zt.content),Qt("endobj")}ra.publish("postPutAdditionalObjects")}(),X=[],function(){for(var Lt in ui)ui.hasOwnProperty(Lt)&&(Ne===!1||Ne===!0&&Ye.hasOwnProperty(Lt))&&Kf(ui[Lt])}(),function(){var Lt;for(Lt in ns)ns.hasOwnProperty(Lt)&&R1(ns[Lt])}(),function(){for(var Lt in Al)Al.hasOwnProperty(Lt)&&Hd(Al[Lt])}(),function(Lt){var Zt;for(Zt in ki)ki.hasOwnProperty(Zt)&&(ki[Zt]instanceof zl?jd(ki[Zt]):ki[Zt]instanceof mu&&Kd(ki[Zt],Lt))}(X),ra.publish("putResources"),X.forEach(bp),bp({resourcesOid:mc,objectOid:Number.MAX_SAFE_INTEGER}),ra.publish("postPutResources"),he!==null&&(So.oid=fo(),Qt("<<"),Qt("/Filter /Standard"),Qt("/V "+So.v),Qt("/R "+So.r),Qt("/U <"+So.toHexString(So.U)+">"),Qt("/O <"+So.toHexString(So.O)+">"),Qt("/P "+So.P),Qt(">>"),Qt("endobj")),zd(),U1();var ze=Mr;return a1(),Wo(),Qt("startxref"),Qt(""+ze),Qt("%%EOF"),Xr(vn[Rt]),jr.join(`
|
|
|
`)},zf=ce.__private__.getBlob=function(X){return new Blob([As(X)],{type:"application/pdf"})},_c=ce.output=ce.__private__.output=(Gu=function(X,ze){switch(typeof(ze=ze||{})=="string"?ze={filename:ze}:ze.filename=ze.filename||"generated.pdf",X){case void 0:return O0();case"save":ce.save(ze.filename);break;case"arraybuffer":return As(O0());case"blob":return zf(O0());case"bloburi":case"bloburl":if(Ii.URL!==void 0&&typeof Ii.URL.createObjectURL=="function")return Ii.URL&&Ii.URL.createObjectURL(zf(O0()))||void 0;Us.warn("bloburl is not supported by your system, because URL.createObjectURL is not supported by your browser.");break;case"datauristring":case"dataurlstring":var Lt="",Zt=O0();try{Lt=Dh(Zt)}catch($o){Lt=Dh(unescape(encodeURIComponent(Zt)))}return"data:application/pdf;filename="+ze.filename+";base64,"+Lt;case"pdfobjectnewwindow":if(Object.prototype.toString.call(Ii)==="[object Window]"){var _r="https://cdnjs.cloudflare.com/ajax/libs/pdfobject/2.1.1/pdfobject.min.js",nn=' integrity="sha512-4ze/a9/4jqu+tX9dfOqJYSvyYd5M6qum/3HpCLr+/Jqf0whc37VUbkpNGHR7/8pSnCFw47T1fmIpwBV7UySh3g==" crossorigin="anonymous"';ze.pdfObjectUrl&&(_r=ze.pdfObjectUrl,nn="");var hn='<html><style>html, body { padding: 0; margin: 0; } iframe { width: 100%; height: 100%; border: 0;} </style><body><script src="'+_r+'"'+nn+'><\/script><script >PDFObject.embed("'+this.output("dataurlstring")+'", '+JSON.stringify(ze)+");<\/script></body></html>",ti=Ii.open();return ti!==null&&ti.document.write(hn),ti}throw new Error("The option pdfobjectnewwindow just works in a browser-environment.");case"pdfjsnewwindow":if(Object.prototype.toString.call(Ii)==="[object Window]"){var li='<html><style>html, body { padding: 0; margin: 0; } iframe { width: 100%; height: 100%; border: 0;} </style><body><iframe id="pdfViewer" src="'+(ze.pdfJsUrl||"examples/PDF.js/web/viewer.html")+"?file=&downloadName="+ze.filename+'" width="500px" height="400px" /></body></html>',zi=Ii.open();if(zi!==null){zi.document.write(li);var qi=this;zi.document.documentElement.querySelector("#pdfViewer").onload=function(){zi.document.title=ze.filename,zi.document.documentElement.querySelector("#pdfViewer").contentWindow.PDFViewerApplication.open(qi.output("bloburl"))}}return zi}throw new Error("The option pdfjsnewwindow just works in a browser-environment.");case"dataurlnewwindow":if(Object.prototype.toString.call(Ii)!=="[object Window]")throw new Error("The option dataurlnewwindow just works in a browser-environment.");var Xs='<html><style>html, body { padding: 0; margin: 0; } iframe { width: 100%; height: 100%; border: 0;} </style><body><iframe src="'+this.output("datauristring",ze)+'"></iframe></body></html>',ao=Ii.open();if(ao!==null&&(ao.document.write(Xs),ao.document.title=ze.filename),ao||typeof safari=="undefined")return ao;break;case"datauri":case"dataurl":return Ii.document.location.href=this.output("datauristring",ze);default:return null}},Gu.foo=function(){try{return Gu.apply(this,arguments)}catch(Lt){var X=Lt.stack||"";~X.indexOf(" at ")&&(X=X.split(" at ")[1]);var ze="Error in function "+X.split(`
|
|
|
`)[0].split("<")[0]+": "+Lt.message;if(!Ii.console)throw new Error(ze);Ii.console.error(ze,Lt),Ii.alert&&alert(ze)}},Gu.foo.bar=Gu,Gu.foo),Gf=function(X){return Array.isArray(Qf)===!0&&Qf.indexOf(X)>-1};switch(c){case"pt":Hi=1;break;case"mm":Hi=72/25.4;break;case"cm":Hi=72/2.54;break;case"in":Hi=72;break;case"px":Hi=Gf("px_scaling")==1?.75:96/72;break;case"pc":case"em":Hi=12;break;case"ex":Hi=6;break;default:if(typeof c!="number")throw new Error("Invalid unit: "+c);Hi=c}var So=null;un(),Fr();var xp=ce.__private__.getPageInfo=ce.getPageInfo=function(X){if(isNaN(X)||X%1!=0)throw new Error("Invalid argument passed to jsPDF.getPageInfo");return{objId:Vi[X].objId,pageNumber:X,pageContext:Vi[X]}},P1=ce.__private__.getPageInfoByObjId=function(X){if(isNaN(X)||X%1!=0)throw new Error("Invalid argument passed to jsPDF.getPageInfoByObjId");for(var ze in Vi)if(Vi[ze].objId===X)break;return xp(ze)},O1=ce.__private__.getCurrentPageInfo=ce.getCurrentPageInfo=function(){return{objId:Vi[Rt].objId,pageNumber:Rt,pageContext:Vi[Rt]}};ce.addPage=function(){return t1.apply(this,arguments),this},ce.setPage=function(){return r1.apply(this,arguments),Xr.call(this,vn[Rt]),this},ce.insertPage=function(X){return this.addPage(),this.movePage(Rt,X),this},ce.movePage=function(X,ze){var Lt,Zt;if(X>ze){Lt=vn[X],Zt=Vi[X];for(var _r=X;_r>ze;_r--)vn[_r]=vn[_r-1],Vi[_r]=Vi[_r-1];vn[ze]=Lt,Vi[ze]=Zt,this.setPage(ze)}else if(X<ze){Lt=vn[X],Zt=Vi[X];for(var nn=X;nn<ze;nn++)vn[nn]=vn[nn+1],Vi[nn]=Vi[nn+1];vn[ze]=Lt,Vi[ze]=Zt,this.setPage(ze)}return this},ce.deletePage=function(){return Bp.apply(this,arguments),this},ce.__private__.text=ce.text=function(X,ze,Lt,Zt,_r){var nn,hn,ti,li,zi,qi,Xs,ao,$o,Da=(Zt=Zt||{}).scope||this;if(typeof X=="number"&&typeof ze=="number"&&(typeof Lt=="string"||Array.isArray(Lt))){var sA=Lt;Lt=ze,ze=X,X=sA}if(arguments[3]instanceof Ri==0?(ti=arguments[4],li=arguments[5],(0,Ie.Z)(Xs=arguments[3])==="object"&&Xs!==null||(typeof ti=="string"&&(li=ti,ti=null),typeof Xs=="string"&&(li=Xs,Xs=null),typeof Xs=="number"&&(ti=Xs,Xs=null),Zt={flags:Xs,angle:ti,align:li})):(Nt("The transform parameter of text() with a Matrix value"),$o=_r),isNaN(ze)||isNaN(Lt)||X==null)throw new Error("Invalid arguments passed to jsPDF.text");if(X.length===0)return Da;var Yo,jA="",$u=typeof Zt.lineHeightFactor=="number"?Zt.lineHeightFactor:Wf,Zl=Da.internal.scaleFactor;function d1(na){return na=na.split(" ").join(Array(Zt.TabLen||9).join(" ")),Wu(na,Xs)}function Yd(na){for(var wa,To=na.concat(),aA=[],z0=To.length;z0--;)typeof(wa=To.shift())=="string"?aA.push(wa):Array.isArray(na)&&(wa.length===1||wa[1]===void 0&&wa[2]===void 0)?aA.push(wa[0]):aA.push([wa[0],wa[1],wa[2]]);return aA}function Jf(na,wa){var To;if(typeof na=="string")To=wa(na)[0];else if(Array.isArray(na)){for(var aA,z0,Kp=na.concat(),Xd=[],m1=Kp.length;m1--;)typeof(aA=Kp.shift())=="string"?Xd.push(wa(aA)[0]):Array.isArray(aA)&&typeof aA[0]=="string"&&(z0=wa(aA[0],aA[1],aA[2]),Xd.push([z0[0],z0[1],z0[2]]));To=Xd}return To}var Mh=!1,ed=!0;if(typeof X=="string")Mh=!0;else if(Array.isArray(X)){var td=X.concat();hn=[];for(var rd,ll=td.length;ll--;)(typeof(rd=td.shift())!="string"||Array.isArray(rd)&&typeof rd[0]!="string")&&(ed=!1);Mh=ed}if(Mh===!1)throw new Error('Type of text must be string or Array. "'+X+'" is not recognized.');typeof X=="string"&&(X=X.match(/[\r?\n]/)?X.split(/\r\n|\r|\n/g):[X]);var nd=_n/Da.internal.scaleFactor,id=nd*($u-1);switch(Zt.baseline){case"bottom":Lt-=id;break;case"top":Lt+=nd-id;break;case"hanging":Lt+=nd-2*id;break;case"middle":Lt+=nd/2-id}if((qi=Zt.maxWidth||0)>0&&(typeof X=="string"?X=Da.splitTextToSize(X,qi):Object.prototype.toString.call(X)==="[object Array]"&&(X=X.reduce(function(na,wa){return na.concat(Da.splitTextToSize(wa,qi))},[]))),nn={text:X,x:ze,y:Lt,options:Zt,mutex:{pdfEscape:Wu,activeFontKey:wi,fonts:ui,activeFontSize:_n}},ra.publish("preProcessText",nn),X=nn.text,ti=(Zt=nn.options).angle,$o instanceof Ri==0&&ti&&typeof ti=="number"){ti*=Math.PI/180,Zt.rotationDirection===0&&(ti=-ti),Ut===jt&&(ti=-ti);var Rp=Math.cos(ti),Up=Math.sin(ti);$o=new Ri(Rp,Up,-Up,Rp,0,0)}else ti&&ti instanceof Ri&&($o=ti);Ut!==jt||$o||($o=P0),(zi=Zt.charSpace||Wd)!==void 0&&(jA+=Ar(Xt(zi))+` Tc
|
|
|
`,this.setCharSpace(this.getCharSpace()||0)),(ao=Zt.horizontalScale)!==void 0&&(jA+=Ar(100*ao)+` Tz
|
|
|
`),Zt.lang;var po=-1,j0=Zt.renderingMode!==void 0?Zt.renderingMode:Zt.stroke,Zd=Da.internal.getCurrentPageInfo().pageContext;switch(j0){case 0:case!1:case"fill":po=0;break;case 1:case!0:case"stroke":po=1;break;case 2:case"fillThenStroke":po=2;break;case 3:case"invisible":po=3;break;case 4:case"fillAndAddForClipping":po=4;break;case 5:case"strokeAndAddPathForClipping":po=5;break;case 6:case"fillThenStrokeAndAddToPathForClipping":po=6;break;case 7:case"addToPathForClipping":po=7}var p1=Zd.usedRenderingMode!==void 0?Zd.usedRenderingMode:-1;po!==-1?jA+=po+` Tr
|
|
|
`:p1!==-1&&(jA+=`0 Tr
|
|
|
`),po!==-1&&(Zd.usedRenderingMode=po),li=Zt.align||"left";var Yu,sd=_n*$u,Pp=Da.internal.pageSize.getWidth(),Op=ui[wi];zi=Zt.charSpace||Wd,qi=Zt.maxWidth||0,Xs=Object.assign({autoencode:!0,noBOM:!0},Zt.flags);var Qh=[],ad=function(na){return Da.getStringUnitWidth(na,{font:Op,charSpace:zi,fontSize:_n,doKerning:!1})*_n/Zl};if(Object.prototype.toString.call(X)==="[object Array]"){var _u;hn=Yd(X),li!=="left"&&(Yu=hn.map(ad));var wu,Hh=0;if(li==="right"){ze-=Yu[0],X=[],ll=hn.length;for(var K0=0;K0<ll;K0++)K0===0?(wu=N0(ze),_u=M0(Lt)):(wu=Xt(Hh-Yu[K0]),_u=-sd),X.push([hn[K0],wu,_u]),Hh=Yu[K0]}else if(li==="center"){ze-=Yu[0]/2,X=[],ll=hn.length;for(var jh=0;jh<ll;jh++)jh===0?(wu=N0(ze),_u=M0(Lt)):(wu=Xt((Hh-Yu[jh])/2),_u=-sd),X.push([hn[jh],wu,_u]),Hh=Yu[jh]}else if(li==="left"){X=[],ll=hn.length;for(var Np=0;Np<ll;Np++)X.push(hn[Np])}else if(li==="justify"&&Op.encoding==="Identity-H"){X=[],ll=hn.length,qi=qi!==0?qi:Pp;for(var qd=0,Io=0;Io<ll;Io++)if(_u=Io===0?M0(Lt):-sd,wu=Io===0?N0(ze):qd,Io<ll-1){var g1=Xt((qi-Yu[Io])/(hn[Io].split(" ").length-1)),Yc=hn[Io].split(" ");X.push([Yc[0]+" ",wu,_u]),qd=0;for(var Zc=1;Zc<Yc.length;Zc++){var Mp=(ad(Yc[Zc-1]+" "+Yc[Zc])-ad(Yc[Zc]))*Zl+g1;Zc==Yc.length-1?X.push([Yc[Zc],Mp,0]):X.push([Yc[Zc]+" ",Mp,0]),qd-=Mp}}else X.push([hn[Io],wu,_u]);X.push(["",qd,0])}else{if(li!=="justify")throw new Error('Unrecognized alignment option, use "left", "center", "right" or "justify".');for(X=[],ll=hn.length,qi=qi!==0?qi:Pp,Io=0;Io<ll;Io++){_u=Io===0?M0(Lt):-sd,wu=Io===0?N0(ze):0;var Qp=hn[Io].split(" ").length-1,Hp=Qp>0?(qi-Yu[Io])/Qp:0;Io<ll-1?Qh.push(Ar(Xt(Hp))):Qh.push(0),X.push([hn[Io],wu,_u])}}}(typeof Zt.R2L=="boolean"?Zt.R2L:ls)===!0&&(X=Jf(X,function(na,wa,To){return[na.split("").reverse().join(""),wa,To]})),nn={text:X,x:ze,y:Lt,options:Zt,mutex:{pdfEscape:Wu,activeFontKey:wi,fonts:ui,activeFontSize:_n}},ra.publish("postProcessText",nn),X=nn.text,Yo=nn.mutex.isHex||!1;var jp=ui[wi].encoding;jp!=="WinAnsiEncoding"&&jp!=="StandardEncoding"||(X=Jf(X,function(na,wa,To){return[d1(na),wa,To]})),hn=Yd(X),X=[];for(var Kh,zh,Gh,od=Array.isArray(hn[0])?1:0,Vh="",Ad=function(na,wa,To){var aA="";return To instanceof Ri?(To=typeof Zt.angle=="number"?U0(To,new Ri(1,0,0,1,na,wa)):U0(new Ri(1,0,0,1,na,wa),To),Ut===jt&&(To=U0(new Ri(1,0,0,-1,0,0),To)),aA=To.join(" ")+` Tm
|
|
|
`):aA=Ar(na)+" "+Ar(wa)+` Td
|
|
|
`,aA},Zu=0;Zu<hn.length;Zu++){switch(Vh="",od){case 1:Gh=(Yo?"<":"(")+hn[Zu][0]+(Yo?">":")"),Kh=parseFloat(hn[Zu][1]),zh=parseFloat(hn[Zu][2]);break;case 0:Gh=(Yo?"<":"(")+hn[Zu]+(Yo?">":")"),Kh=N0(ze),zh=M0(Lt)}Qh!==void 0&&Qh[Zu]!==void 0&&(Vh=Qh[Zu]+` Tw
|
|
|
`),Zu===0?X.push(Vh+Ad(Kh,zh,$o)+Gh):od===0?X.push(Vh+Gh):od===1&&X.push(Vh+Ad(Kh,zh,$o)+Gh)}X=od===0?X.join(` Tj
|
|
|
T* `):X.join(` Tj
|
|
|
`),X+=` Tj
|
|
|
`;var qc=`BT
|
|
|
/`;return qc+=wi+" "+_n+` Tf
|
|
|
`,qc+=Ar(_n*$u)+` TL
|
|
|
`,qc+=$f+`
|
|
|
`,qc+=jA,qc+=X,Qt(qc+="ET"),Ye[wi]=!0,Da};var N1=ce.__private__.clip=ce.clip=function(X){return Qt(X==="evenodd"?"W*":"W"),this};ce.clipEvenOdd=function(){return N1("evenodd")},ce.__private__.discardPath=ce.discardPath=function(){return Qt("n"),this};var $c=ce.__private__.isValidStyle=function(X){var ze=!1;return[void 0,null,"S","D","F","DF","FD","f","f*","B","B*","n"].indexOf(X)!==-1&&(ze=!0),ze};ce.__private__.setDefaultPathOperation=ce.setDefaultPathOperation=function(X){return $c(X)&&(J=X),this};var o1=ce.__private__.getStyle=ce.getStyle=function(X){var ze=J;switch(X){case"D":case"S":ze="S";break;case"F":ze="f";break;case"FD":case"DF":ze="B";break;case"f":case"f*":case"B":case"B*":ze=X}return ze},A1=ce.close=function(){return Qt("h"),this};ce.stroke=function(){return Qt("S"),this},ce.fill=function(X){return Oh("f",X),this},ce.fillEvenOdd=function(X){return Oh("f*",X),this},ce.fillStroke=function(X){return Oh("B",X),this},ce.fillStrokeEvenOdd=function(X){return Oh("B*",X),this};var Oh=function(X,ze){(0,Ie.Z)(ze)==="object"?Q1(ze,X):Qt(X)},Cp=function(X){X===null||Ut===jt&&X===void 0||(X=o1(X),Qt(X))};function M1(X,ze,Lt,Zt,_r){var nn=new mu(ze||this.boundingBox,Lt||this.xStep,Zt||this.yStep,this.gState,_r||this.matrix);nn.stream=this.stream;var hn=X+"$$"+this.cloneIndex+++"$$";return zu(hn,nn),nn}var Q1=function(X,ze){var Lt=Ls[X.key],Zt=ki[Lt];if(Zt instanceof zl)Qt("q"),Qt(H1(ze)),Zt.gState&&ce.setGState(Zt.gState),Qt(X.matrix.toString()+" cm"),Qt("/"+Lt+" sh"),Qt("Q");else if(Zt instanceof mu){var _r=new Ri(1,0,0,-1,0,Xf());X.matrix&&(_r=_r.multiply(X.matrix||P0),Lt=M1.call(Zt,X.key,X.boundingBox,X.xStep,X.yStep,_r).id),Qt("q"),Qt("/Pattern cs"),Qt("/"+Lt+" scn"),Zt.gState&&ce.setGState(Zt.gState),Qt(ze),Qt("Q")}},H1=function(X){switch(X){case"f":case"F":case"n":return"W n";case"f*":return"W* n";case"B":case"S":return"W S";case"B*":return"W* S"}},Sp=ce.moveTo=function(X,ze){return Qt(Ar(Xt(X))+" "+Ar(Gt(ze))+" m"),this},Vf=ce.lineTo=function(X,ze){return Qt(Ar(Xt(X))+" "+Ar(Gt(ze))+" l"),this},Nh=ce.curveTo=function(X,ze,Lt,Zt,_r,nn){return Qt([Ar(Xt(X)),Ar(Gt(ze)),Ar(Xt(Lt)),Ar(Gt(Zt)),Ar(Xt(_r)),Ar(Gt(nn)),"c"].join(" ")),this};ce.__private__.line=ce.line=function(X,ze,Lt,Zt,_r){if(isNaN(X)||isNaN(ze)||isNaN(Lt)||isNaN(Zt)||!$c(_r))throw new Error("Invalid arguments passed to jsPDF.line");return Ut===Yt?this.lines([[Lt-X,Zt-ze]],X,ze,[1,1],_r||"S"):this.lines([[Lt-X,Zt-ze]],X,ze,[1,1]).stroke()},ce.__private__.lines=ce.lines=function(X,ze,Lt,Zt,_r,nn){var hn,ti,li,zi,qi,Xs,ao,$o,Da,sA,Yo,jA;if(typeof X=="number"&&(jA=Lt,Lt=ze,ze=X,X=jA),Zt=Zt||[1,1],nn=nn||!1,isNaN(ze)||isNaN(Lt)||!Array.isArray(X)||!Array.isArray(Zt)||!$c(_r)||typeof nn!="boolean")throw new Error("Invalid arguments passed to jsPDF.lines");for(Sp(ze,Lt),hn=Zt[0],ti=Zt[1],zi=X.length,sA=ze,Yo=Lt,li=0;li<zi;li++)(qi=X[li]).length===2?(sA=qi[0]*hn+sA,Yo=qi[1]*ti+Yo,Vf(sA,Yo)):(Xs=qi[0]*hn+sA,ao=qi[1]*ti+Yo,$o=qi[2]*hn+sA,Da=qi[3]*ti+Yo,sA=qi[4]*hn+sA,Yo=qi[5]*ti+Yo,Nh(Xs,ao,$o,Da,sA,Yo));return nn&&A1(),Cp(_r),this},ce.path=function(X){for(var ze=0;ze<X.length;ze++){var Lt=X[ze],Zt=Lt.c;switch(Lt.op){case"m":Sp(Zt[0],Zt[1]);break;case"l":Vf(Zt[0],Zt[1]);break;case"c":Nh.apply(this,Zt);break;case"h":A1()}}return this},ce.__private__.rect=ce.rect=function(X,ze,Lt,Zt,_r){if(isNaN(X)||isNaN(ze)||isNaN(Lt)||isNaN(Zt)||!$c(_r))throw new Error("Invalid arguments passed to jsPDF.rect");return Ut===Yt&&(Zt=-Zt),Qt([Ar(Xt(X)),Ar(Gt(ze)),Ar(Xt(Lt)),Ar(Xt(Zt)),"re"].join(" ")),Cp(_r),this},ce.__private__.triangle=ce.triangle=function(X,ze,Lt,Zt,_r,nn,hn){if(isNaN(X)||isNaN(ze)||isNaN(Lt)||isNaN(Zt)||isNaN(_r)||isNaN(nn)||!$c(hn))throw new Error("Invalid arguments passed to jsPDF.triangle");return this.lines([[Lt-X,Zt-ze],[_r-Lt,nn-Zt],[X-_r,ze-nn]],X,ze,[1,1],hn,!0),this},ce.__private__.roundedRect=ce.roundedRect=function(X,ze,Lt,Zt,_r,nn,hn){if(isNaN(X)||isNaN(ze)||isNaN(Lt)||isNaN(Zt)||isNaN(_r)||isNaN(nn)||!$c(hn))throw new Error("Invalid arguments passed to jsPDF.roundedRect");var ti=4/3*(Math.SQRT2-1);return _r=Math.min(_r,.5*Lt),nn=Math.min(nn,.5*Zt),this.lines([[Lt-2*_r,0],[_r*ti,0,_r,nn-nn*ti,_r,nn],[0,Zt-2*nn],[0,nn*ti,-_r*ti,nn,-_r,nn],[2*_r-Lt,0],[-_r*ti,0,-_r,-nn*ti,-_r,-nn],[0,2*nn-Zt],[0,-nn*ti,_r*ti,-nn,_r,-nn]],X+_r,ze,[1,1],hn,!0),this},ce.__private__.ellipse=ce.ellipse=function(X,ze,Lt,Zt,_r){if(isNaN(X)||isNaN(ze)||isNaN(Lt)||isNaN(Zt)||!$c(_r))throw new Error("Invalid arguments passed to jsPDF.ellipse");var nn=4/3*(Math.SQRT2-1)*Lt,hn=4/3*(Math.SQRT2-1)*Zt;return Sp(X+Lt,ze),Nh(X+Lt,ze-hn,X+nn,ze-Zt,X,ze-Zt),Nh(X-nn,ze-Zt,X-Lt,ze-hn,X-Lt,ze),Nh(X-Lt,ze+hn,X-nn,ze+Zt,X,ze+Zt),Nh(X+nn,ze+Zt,X+Lt,ze+hn,X+Lt,ze),Cp(_r),this},ce.__private__.circle=ce.circle=function(X,ze,Lt,Zt){if(isNaN(X)||isNaN(ze)||isNaN(Lt)||!$c(Zt))throw new Error("Invalid arguments passed to jsPDF.circle");return this.ellipse(X,ze,Lt,Lt,Zt)},ce.setFont=function(X,ze,Lt){return Lt&&(ze=Hr(ze,Lt)),wi=i1(X,ze,{disableWarning:!1}),this};var j1=ce.__private__.getFont=ce.getFont=function(){return ui[i1.apply(ce,arguments)]};ce.__private__.getFontList=ce.getFontList=function(){var X,ze,Lt={};for(X in rs)if(rs.hasOwnProperty(X))for(ze in Lt[X]=[],rs[X])rs[X].hasOwnProperty(ze)&&Lt[X].push(ze);return Lt},ce.addFont=function(X,ze,Lt,Zt,_r){var nn=["StandardEncoding","MacRomanEncoding","Identity-H","WinAnsiEncoding"];return arguments[3]&&nn.indexOf(arguments[3])!==-1?_r=arguments[3]:arguments[3]&&nn.indexOf(arguments[3])==-1&&(Lt=Hr(Lt,Zt)),e1.call(this,X,ze,Lt,_r=_r||"Identity-H")};var Wf,Ip=n.lineWidth||.200025,Wi=ce.__private__.getLineWidth=ce.getLineWidth=function(){return Ip},K1=ce.__private__.setLineWidth=ce.setLineWidth=function(X){return Ip=X,Qt(Ar(Xt(X))+" w"),this};ce.__private__.setLineDash=Xn.API.setLineDash=Xn.API.setLineDashPattern=function(X,ze){if(X=X||[],ze=ze||0,isNaN(ze)||!Array.isArray(X))throw new Error("Invalid arguments passed to jsPDF.setLineDash");return X=X.map(function(Lt){return Ar(Xt(Lt))}).join(" "),ze=Ar(Xt(ze)),Qt("["+X+"] "+ze+" d"),this};var z1=ce.__private__.getLineHeight=ce.getLineHeight=function(){return _n*Wf};ce.__private__.getLineHeight=ce.getLineHeight=function(){return _n*Wf};var G1=ce.__private__.setLineHeightFactor=ce.setLineHeightFactor=function(X){return typeof(X=X||1.15)=="number"&&(Wf=X),this},V1=ce.__private__.getLineHeightFactor=ce.getLineHeightFactor=function(){return Wf};G1(n.lineHeight);var N0=ce.__private__.getHorizontalCoordinate=function(X){return Xt(X)},M0=ce.__private__.getVerticalCoordinate=function(X){return Ut===jt?X:Vi[Rt].mediaBox.topRightY-Vi[Rt].mediaBox.bottomLeftY-Xt(X)},W1=ce.__private__.getHorizontalCoordinateString=ce.getHorizontalCoordinateString=function(X){return Ar(N0(X))},$1=ce.__private__.getVerticalCoordinateString=ce.getVerticalCoordinateString=function(X){return Ar(M0(X))},Gd=n.strokeColor||"0 G";ce.__private__.getStrokeColor=ce.getDrawColor=function(){return Vc(Gd)},ce.__private__.setStrokeColor=ce.setDrawColor=function(X,ze,Lt,Zt){return Gd=vc({ch1:X,ch2:ze,ch3:Lt,ch4:Zt,pdfColorType:"draw",precision:2}),Qt(Gd),this};var Tp=n.fillColor||"0 g";ce.__private__.getFillColor=ce.getFillColor=function(){return Vc(Tp)},ce.__private__.setFillColor=ce.setFillColor=function(X,ze,Lt,Zt){return Tp=vc({ch1:X,ch2:ze,ch3:Lt,ch4:Zt,pdfColorType:"fill",precision:2}),Qt(Tp),this};var $f=n.textColor||"0 g",Vd=ce.__private__.getTextColor=ce.getTextColor=function(){return Vc($f)};ce.__private__.setTextColor=ce.setTextColor=function(X,ze,Lt,Zt){return $f=vc({ch1:X,ch2:ze,ch3:Lt,ch4:Zt,pdfColorType:"text",precision:3}),this};var Wd=n.charSpace,Y1=ce.__private__.getCharSpace=ce.getCharSpace=function(){return parseFloat(Wd||0)};ce.__private__.setCharSpace=ce.setCharSpace=function(X){if(isNaN(X))throw new Error("Invalid argument passed to jsPDF.setCharSpace");return Wd=X,this};var Fp=0;ce.CapJoinStyles={0:0,butt:0,but:0,miter:0,1:1,round:1,rounded:1,circle:1,2:2,projecting:2,project:2,square:2,bevel:2},ce.__private__.setLineCap=ce.setLineCap=function(X){var ze=ce.CapJoinStyles[X];if(ze===void 0)throw new Error("Line cap style of '"+X+"' is not recognized. See or extend .CapJoinStyles property for valid styles");return Fp=ze,Qt(ze+" J"),this};var Lp=0;ce.__private__.setLineJoin=ce.setLineJoin=function(X){var ze=ce.CapJoinStyles[X];if(ze===void 0)throw new Error("Line join style of '"+X+"' is not recognized. See or extend .CapJoinStyles property for valid styles");return Lp=ze,Qt(ze+" j"),this},ce.__private__.setLineMiterLimit=ce.__private__.setMiterLimit=ce.setLineMiterLimit=ce.setMiterLimit=function(X){if(X=X||0,isNaN(X))throw new Error("Invalid argument passed to jsPDF.setLineMiterLimit");return Qt(Ar(Xt(X))+" M"),this},ce.GState=Kc,ce.setGState=function(X){(X=typeof X=="string"?ns[Co[X]]:Yf(null,X)).equals(iA)||(Qt("/"+X.id+" gs"),iA=X)};var Yf=function(X,ze){if(!X||!Co[X]){var Lt=!1;for(var Zt in ns)if(ns.hasOwnProperty(Zt)&&ns[Zt].equals(ze)){Lt=!0;break}if(Lt)ze=ns[Zt];else{var _r="GS"+(Object.keys(ns).length+1).toString(10);ns[_r]=ze,ze.id=_r}return X&&(Co[X]=ze.id),ra.publish("addGState",ze),ze}};ce.addGState=function(X,ze){return Yf(X,ze),this},ce.saveGraphicsState=function(){return Qt("q"),ya.push({key:wi,size:_n,color:$f}),this},ce.restoreGraphicsState=function(){Qt("Q");var X=ya.pop();return wi=X.key,_n=X.size,$f=X.color,iA=null,this},ce.setCurrentTransformationMatrix=function(X){return Qt(X.toString()+" cm"),this},ce.comment=function(X){return Qt("#"+X),this};var Zf=function(X,ze){var Lt=X||0;Object.defineProperty(this,"x",{enumerable:!0,get:function(){return Lt},set:function(nn){isNaN(nn)||(Lt=parseFloat(nn))}});var Zt=ze||0;Object.defineProperty(this,"y",{enumerable:!0,get:function(){return Zt},set:function(nn){isNaN(nn)||(Zt=parseFloat(nn))}});var _r="pt";return Object.defineProperty(this,"type",{enumerable:!0,get:function(){return _r},set:function(nn){_r=nn.toString()}}),this},Dp=function(X,ze,Lt,Zt){Zf.call(this,X,ze),this.type="rect";var _r=Lt||0;Object.defineProperty(this,"w",{enumerable:!0,get:function(){return _r},set:function(hn){isNaN(hn)||(_r=parseFloat(hn))}});var nn=Zt||0;return Object.defineProperty(this,"h",{enumerable:!0,get:function(){return nn},set:function(hn){isNaN(hn)||(nn=parseFloat(hn))}}),this},$d=function(){this.page=_a,this.currentPage=Rt,this.pages=vn.slice(0),this.pagesContext=Vi.slice(0),this.x=bi,this.y=La,this.matrix=qs,this.width=l1(Rt),this.height=Q0(Rt),this.outputDestination=jn,this.id="",this.objectNumber=-1};$d.prototype.restore=function(){_a=this.page,Rt=this.currentPage,Vi=this.pagesContext,vn=this.pages,bi=this.x,La=this.y,qs=this.matrix,u1(Rt,this.width),H0(Rt,this.height),jn=this.outputDestination};var kp=function(X,ze,Lt,Zt,_r){Gc.push(new $d),_a=Rt=0,vn=[],bi=X,La=ze,qs=_r,Ep([Lt,Zt])};for(var qf in ce.beginFormObject=function(X,ze,Lt,Zt,_r){return kp(X,ze,Lt,Zt,_r),this},ce.endFormObject=function(X){return function(ze){if(R0[ze])Gc.pop().restore();else{var Lt=new $d,Zt="Xo"+(Object.keys(Al).length+1).toString(10);Lt.id=Zt,R0[ze]=Zt,Al[Zt]=Lt,ra.publish("addFormObject",Lt),Gc.pop().restore()}}(X),this},ce.doFormObject=function(X,ze){var Lt=Al[R0[X]];return Qt("q"),Qt(ze.toString()+" cm"),Qt("/"+Lt.id+" Do"),Qt("Q"),this},ce.getFormObject=function(X){var ze=Al[R0[X]];return{x:ze.x,y:ze.y,width:ze.width,height:ze.height,matrix:ze.matrix}},ce.save=function(X,ze){return X=X||"generated.pdf",(ze=ze||{}).returnPromise=ze.returnPromise||!1,ze.returnPromise===!1?(Mu(zf(O0()),X),typeof Mu.unload=="function"&&Ii.setTimeout&&setTimeout(Mu.unload,911),this):new Promise(function(Lt,Zt){try{var _r=Mu(zf(O0()),X);typeof Mu.unload=="function"&&Ii.setTimeout&&setTimeout(Mu.unload,911),Lt(_r)}catch(nn){Zt(nn.message)}})},Xn.API)Xn.API.hasOwnProperty(qf)&&(qf==="events"&&Xn.API.events.length?function(X,ze){var Lt,Zt,_r;for(_r=ze.length-1;_r!==-1;_r--)Lt=ze[_r][0],Zt=ze[_r][1],X.subscribe.apply(X,[Lt].concat(typeof Zt=="function"?[Zt]:Zt))}(ra,Xn.API.events):ce[qf]=Xn.API[qf]);function l1(X){return Vi[X].mediaBox.topRightX-Vi[X].mediaBox.bottomLeftX}function u1(X,ze){Vi[X].mediaBox.topRightX=ze+Vi[X].mediaBox.bottomLeftX}function Q0(X){return Vi[X].mediaBox.topRightY-Vi[X].mediaBox.bottomLeftY}function H0(X,ze){Vi[X].mediaBox.topRightY=ze+Vi[X].mediaBox.bottomLeftY}var c1=ce.getPageWidth=function(X){return l1(X=X||Rt)/Hi},h1=ce.setPageWidth=function(X,ze){u1(X,ze*Hi)},Xf=ce.getPageHeight=function(X){return Q0(X=X||Rt)/Hi},f1=ce.setPageHeight=function(X,ze){H0(X,ze*Hi)};return ce.internal={pdfEscape:Wu,getStyle:o1,getFont:j1,getFontSize:Gn,getCharSpace:Y1,getTextColor:Vd,getLineHeight:z1,getLineHeightFactor:V1,getLineWidth:Wi,write:Ss,getHorizontalCoordinate:N0,getVerticalCoordinate:M0,getCoordinateString:W1,getVerticalCoordinateString:$1,collections:{},newObject:fo,newAdditionalObject:Hf,newObjectDeferred:BA,newObjectDeferredBegin:HA,getFilters:yc,putStream:Vu,events:ra,scaleFactor:Hi,pageSize:{getWidth:function(){return c1(Rt)},setWidth:function(X){h1(Rt,X)},getHeight:function(){return Xf(Rt)},setHeight:function(X){f1(Rt,X)}},encryptionOptions:he,encryption:So,getEncryptor:function(X){return he!==null?So.encryptor(X,0):function(ze){return ze}},output:_c,getNumberOfPages:n1,pages:vn,out:Qt,f2:tt,f3:Ct,getPageInfo:xp,getPageInfoByObjId:P1,getCurrentPageInfo:O1,getPDFVersion:pt,Point:Zf,Rectangle:Dp,Matrix:Ri,hasHotfix:Gf},Object.defineProperty(ce.internal.pageSize,"width",{get:function(){return c1(Rt)},set:function(X){h1(Rt,X)},enumerable:!0,configurable:!0}),Object.defineProperty(ce.internal.pageSize,"height",{get:function(){return Xf(Rt)},set:function(X){f1(Rt,X)},enumerable:!0,configurable:!0}),function(X){for(var ze=0,Lt=Ti.length;ze<Lt;ze++){var Zt=e1.call(this,X[ze][0],X[ze][1],X[ze][2],Ti[ze][3],!0);Ne===!1&&(Ye[Zt]=!0);var _r=X[ze][0].split("-");Jp({id:Zt,fontName:_r[0],fontStyle:_r[1]||""})}ra.publish("addFonts",{fonts:ui,dictionary:rs})}.call(ce,Ti),wi="F1",t1(d,s),ra.publish("initialized"),ce}jc.prototype.lsbFirstWord=function(n){return String.fromCharCode(255&n,n>>8&255,n>>16&255,n>>24&255)},jc.prototype.toHexString=function(n){return n.split("").map(function(a){return("0"+(255&a.charCodeAt(0)).toString(16)).slice(-2)}).join("")},jc.prototype.hexToBytes=function(n){for(var a=[],s=0;s<n.length;s+=2)a.push(String.fromCharCode(parseInt(n.substr(s,2),16)));return a.join("")},jc.prototype.processOwnerPassword=function(n,a){return Hu(D0(a).substr(0,5),n)},jc.prototype.encryptor=function(n,a){var s=D0(this.encryptionKey+String.fromCharCode(255&n,n>>8&255,n>>16&255,255&a,a>>8&255)).substr(0,10);return function(c){return Hu(s,c)}},Kc.prototype.equals=function(n){var a,s="id,objectNumber,equals";if(!n||(0,Ie.Z)(n)!==(0,Ie.Z)(this))return!1;var c=0;for(a in this)if(!(s.indexOf(a)>=0)){if(this.hasOwnProperty(a)&&!n.hasOwnProperty(a)||this[a]!==n[a])return!1;c++}for(a in n)n.hasOwnProperty(a)&&s.indexOf(a)<0&&c--;return c===0},Xn.API={events:[]},Xn.version="3.0.3";var Ta=Xn.API,Nf=1,Gl=function(n){return n.replace(/\\/g,"\\\\").replace(/\(/g,"\\(").replace(/\)/g,"\\)")},zc=function(n){return n.replace(/\\\\/g,"\\").replace(/\\\(/g,"(").replace(/\\\)/g,")")},Pi=function(n){return n.toFixed(2)},vu=function(n){return n.toFixed(5)};Ta.__acroform__={};var _A=function(n,a){n.prototype=Object.create(a.prototype),n.prototype.constructor=n},Mf=function(n){return n*Nf},Vl=function(n){var a=new Gr,s=xn.internal.getHeight(n)||0,c=xn.internal.getWidth(n)||0;return a.BBox=[0,0,Number(Pi(c)),Number(Pi(s))],a},yp=Ta.__acroform__.setBit=function(n,a){if(n=n||0,a=a||0,isNaN(n)||isNaN(a))throw new Error("Invalid arguments passed to jsPDF.API.__acroform__.setBit");return n|1<<a},_p=Ta.__acroform__.clearBit=function(n,a){if(n=n||0,a=a||0,isNaN(n)||isNaN(a))throw new Error("Invalid arguments passed to jsPDF.API.__acroform__.clearBit");return n&~(1<<a)},wp=Ta.__acroform__.getBit=function(n,a){if(isNaN(n)||isNaN(a))throw new Error("Invalid arguments passed to jsPDF.API.__acroform__.getBit");return n&1<<a?1:0},Fa=Ta.__acroform__.getBitForPdf=function(n,a){if(isNaN(n)||isNaN(a))throw new Error("Invalid arguments passed to jsPDF.API.__acroform__.getBitForPdf");return wp(n,a-1)},E=Ta.__acroform__.setBitForPdf=function(n,a){if(isNaN(n)||isNaN(a))throw new Error("Invalid arguments passed to jsPDF.API.__acroform__.setBitForPdf");return yp(n,a-1)},p=Ta.__acroform__.clearBitForPdf=function(n,a){if(isNaN(n)||isNaN(a))throw new Error("Invalid arguments passed to jsPDF.API.__acroform__.clearBitForPdf");return _p(n,a-1)},T=Ta.__acroform__.calculateCoordinates=function(n,a){var s=a.internal.getHorizontalCoordinate,c=a.internal.getVerticalCoordinate,d=n[0],m=n[1],W=n[2],O=n[3],$={};return $.lowerLeft_X=s(d)||0,$.lowerLeft_Y=c(m+O)||0,$.upperRight_X=s(d+W)||0,$.upperRight_Y=c(m)||0,[Number(Pi($.lowerLeft_X)),Number(Pi($.lowerLeft_Y)),Number(Pi($.upperRight_X)),Number(Pi($.upperRight_Y))]},S=function(n){if(n.appearanceStreamContent)return n.appearanceStreamContent;if(n.V||n.DV){var a=[],s=n._V||n.DV,c=te(n,s),d=n.scope.internal.getFont(n.fontName,n.fontStyle).id;a.push("/Tx BMC"),a.push("q"),a.push("BT"),a.push(n.scope.__private__.encodeColorString(n.color)),a.push("/"+d+" "+Pi(c.fontSize)+" Tf"),a.push("1 0 0 1 0 0 Tm"),a.push(c.text),a.push("ET"),a.push("Q"),a.push("EMC");var m=Vl(n);return m.scope=n.scope,m.stream=a.join(`
|
|
|
`),m}},te=function(n,a){var s=n.fontSize===0?n.maxFontSize:n.fontSize,c={text:"",fontSize:""},d=(a=(a=a.substr(0,1)=="("?a.substr(1):a).substr(a.length-1)==")"?a.substr(0,a.length-1):a).split(" ");d=n.multiline?d.map(function(tt){return tt.split(`
|
|
|
`)}):d.map(function(tt){return[tt]});var m=s,W=xn.internal.getHeight(n)||0;W=W<0?-W:W;var O=xn.internal.getWidth(n)||0;O=O<0?-O:O;var $=function(tt,Ct,Xt){if(tt+1<d.length){var Gt=Ct+" "+d[tt+1][0];return Ce(Gt,n,Xt).width<=O-4}return!1};m++;e:for(;m>0;){a="",m--;var J,he,Ne=Ce("3",n,m).height,Ye=n.multiline?W-m:(W-Ne)/2,ce=Ye+=2,wt=0,pt=0,bt=0;if(m<=0){a=`(...) Tj
|
|
|
`,a+="% Width of Text: "+Ce(a,n,m=12).width+", FieldWidth:"+O+`
|
|
|
`;break}for(var rt="",Yt=0,jt=0;jt<d.length;jt++)if(d.hasOwnProperty(jt)){var Ut=!1;if(d[jt].length!==1&&bt!==d[jt].length-1){if((Ne+2)*(Yt+2)+2>W)continue e;rt+=d[jt][bt],Ut=!0,pt=jt,jt--}else{rt=(rt+=d[jt][bt]+" ").substr(rt.length-1)==" "?rt.substr(0,rt.length-1):rt;var kr=parseInt(jt),en=$(kr,rt,m),Hr=jt>=d.length-1;if(en&&!Hr){rt+=" ",bt=0;continue}if(en||Hr){if(Hr)pt=kr;else if(n.multiline&&(Ne+2)*(Yt+2)+2>W)continue e}else{if(!n.multiline||(Ne+2)*(Yt+2)+2>W)continue e;pt=kr}}for(var Ar="",Nt=wt;Nt<=pt;Nt++){var Er=d[Nt];if(n.multiline){if(Nt===pt){Ar+=Er[bt]+" ",bt=(bt+1)%Er.length;continue}if(Nt===wt){Ar+=Er[Er.length-1]+" ";continue}}Ar+=Er[0]+" "}switch(Ar=Ar.substr(Ar.length-1)==" "?Ar.substr(0,Ar.length-1):Ar,he=Ce(Ar,n,m).width,n.textAlign){case"right":J=O-he-2;break;case"center":J=(O-he)/2;break;default:J=2}a+=Pi(J)+" "+Pi(ce)+` Td
|
|
|
`,a+="("+Gl(Ar)+`) Tj
|
|
|
`,a+=-Pi(J)+` 0 Td
|
|
|
`,ce=-(m+2),he=0,wt=Ut?pt:pt+1,Yt++,rt=""}break}return c.text=a,c.fontSize=m,c},Ce=function(n,a,s){var c=a.scope.internal.getFont(a.fontName,a.fontStyle),d=a.scope.getStringUnitWidth(n,{font:c,fontSize:parseFloat(s),charSpace:0})*parseFloat(s);return{height:a.scope.getStringUnitWidth("3",{font:c,fontSize:parseFloat(s),charSpace:0})*parseFloat(s)*1.5,width:d}},$e={fields:[],xForms:[],acroFormDictionaryRoot:null,printedOut:!1,internal:null,isInitialized:!1},yt=function(n,a){var s={type:"reference",object:n};a.internal.getPageInfo(n.page).pageContext.annotations.find(function(c){return c.type===s.type&&c.object===s.object})===void 0&&a.internal.getPageInfo(n.page).pageContext.annotations.push(s)},vt=function(n,a){if(a.scope=n,n.internal!==void 0&&(n.internal.acroformPlugin===void 0||n.internal.acroformPlugin.isInitialized===!1)){if(pn.FieldNum=0,n.internal.acroformPlugin=JSON.parse(JSON.stringify($e)),n.internal.acroformPlugin.acroFormDictionaryRoot)throw new Error("Exception while creating AcroformDictionary");Nf=n.internal.scaleFactor,n.internal.acroformPlugin.acroFormDictionaryRoot=new Pn,n.internal.acroformPlugin.acroFormDictionaryRoot.scope=n,n.internal.acroformPlugin.acroFormDictionaryRoot._eventID=n.internal.events.subscribe("postPutResources",function(){(function(s){s.internal.events.unsubscribe(s.internal.acroformPlugin.acroFormDictionaryRoot._eventID),delete s.internal.acroformPlugin.acroFormDictionaryRoot._eventID,s.internal.acroformPlugin.printedOut=!0})(n)}),n.internal.events.subscribe("buildDocument",function(){(function(s){s.internal.acroformPlugin.acroFormDictionaryRoot.objId=void 0;var c=s.internal.acroformPlugin.acroFormDictionaryRoot.Fields;for(var d in c)if(c.hasOwnProperty(d)){var m=c[d];m.objId=void 0,m.hasAnnotation&&yt(m,s)}})(n)}),n.internal.events.subscribe("putCatalog",function(){(function(s){if(s.internal.acroformPlugin.acroFormDictionaryRoot===void 0)throw new Error("putCatalogCallback: Root missing.");s.internal.write("/AcroForm "+s.internal.acroformPlugin.acroFormDictionaryRoot.objId+" 0 R")})(n)}),n.internal.events.subscribe("postPutPages",function(s){(function(c,d){var m=!c;for(var W in c||(d.internal.newObjectDeferredBegin(d.internal.acroformPlugin.acroFormDictionaryRoot.objId,!0),d.internal.acroformPlugin.acroFormDictionaryRoot.putStream()),c=c||d.internal.acroformPlugin.acroFormDictionaryRoot.Kids)if(c.hasOwnProperty(W)){var O=c[W],$=[],J=O.Rect;if(O.Rect&&(O.Rect=T(O.Rect,d)),d.internal.newObjectDeferredBegin(O.objId,!0),O.DA=xn.createDefaultAppearanceStream(O),(0,Ie.Z)(O)==="object"&&typeof O.getKeyValueListForStream=="function"&&($=O.getKeyValueListForStream()),O.Rect=J,O.hasAppearanceStream&&!O.appearanceStreamContent){var he=S(O);$.push({key:"AP",value:"<</N "+he+">>"}),d.internal.acroformPlugin.xForms.push(he)}if(O.appearanceStreamContent){var Ne="";for(var Ye in O.appearanceStreamContent)if(O.appearanceStreamContent.hasOwnProperty(Ye)){var ce=O.appearanceStreamContent[Ye];if(Ne+="/"+Ye+" ",Ne+="<<",Object.keys(ce).length>=1||Array.isArray(ce)){for(var W in ce)if(ce.hasOwnProperty(W)){var wt=ce[W];typeof wt=="function"&&(wt=wt.call(d,O)),Ne+="/"+W+" "+wt+" ",d.internal.acroformPlugin.xForms.indexOf(wt)>=0||d.internal.acroformPlugin.xForms.push(wt)}}else typeof(wt=ce)=="function"&&(wt=wt.call(d,O)),Ne+="/"+W+" "+wt,d.internal.acroformPlugin.xForms.indexOf(wt)>=0||d.internal.acroformPlugin.xForms.push(wt);Ne+=">>"}$.push({key:"AP",value:`<<
|
|
|
`+Ne+">>"})}d.internal.putStream({additionalKeyValues:$,objectId:O.objId}),d.internal.out("endobj")}m&&function(pt,bt){for(var rt in pt)if(pt.hasOwnProperty(rt)){var Yt=rt,jt=pt[rt];bt.internal.newObjectDeferredBegin(jt.objId,!0),(0,Ie.Z)(jt)==="object"&&typeof jt.putStream=="function"&&jt.putStream(),delete pt[Yt]}}(d.internal.acroformPlugin.xForms,d)})(s,n)}),n.internal.acroformPlugin.isInitialized=!0}},er=Ta.__acroform__.arrayToPdfArray=function(n,a,s){var c=function(W){return W};if(Array.isArray(n)){for(var d="[",m=0;m<n.length;m++)switch(m!==0&&(d+=" "),(0,Ie.Z)(n[m])){case"boolean":case"number":case"object":d+=n[m].toString();break;case"string":n[m].substr(0,1)!=="/"?(a!==void 0&&s&&(c=s.internal.getEncryptor(a)),d+="("+Gl(c(n[m].toString()))+")"):d+=n[m].toString()}return d+"]"}throw new Error("Invalid argument passed to jsPDF.__acroform__.arrayToPdfArray")},lr=function(n,a,s){var c=function(d){return d};return a!==void 0&&s&&(c=s.internal.getEncryptor(a)),(n=n||"").toString(),"("+Gl(c(n))+")"},mr=function(){this._objId=void 0,this._scope=void 0,Object.defineProperty(this,"objId",{get:function(){if(this._objId===void 0){if(this.scope===void 0)return;this._objId=this.scope.internal.newObjectDeferred()}return this._objId},set:function(n){this._objId=n}}),Object.defineProperty(this,"scope",{value:this._scope,writable:!0})};mr.prototype.toString=function(){return this.objId+" 0 R"},mr.prototype.putStream=function(){var n=this.getKeyValueListForStream();this.scope.internal.putStream({data:this.stream,additionalKeyValues:n,objectId:this.objId}),this.scope.internal.out("endobj")},mr.prototype.getKeyValueListForStream=function(){var n=[],a=Object.getOwnPropertyNames(this).filter(function(m){return m!="content"&&m!="appearanceStreamContent"&&m!="scope"&&m!="objId"&&m.substring(0,1)!="_"});for(var s in a)if(Object.getOwnPropertyDescriptor(this,a[s]).configurable===!1){var c=a[s],d=this[c];d&&(Array.isArray(d)?n.push({key:c,value:er(d,this.objId,this.scope)}):d instanceof mr?(d.scope=this.scope,n.push({key:c,value:d.objId+" 0 R"})):typeof d!="function"&&n.push({key:c,value:d}))}return n};var Gr=function(){mr.call(this),Object.defineProperty(this,"Type",{value:"/XObject",configurable:!1,writable:!0}),Object.defineProperty(this,"Subtype",{value:"/Form",configurable:!1,writable:!0}),Object.defineProperty(this,"FormType",{value:1,configurable:!1,writable:!0});var n,a=[];Object.defineProperty(this,"BBox",{configurable:!1,get:function(){return a},set:function(s){a=s}}),Object.defineProperty(this,"Resources",{value:"2 0 R",configurable:!1,writable:!0}),Object.defineProperty(this,"stream",{enumerable:!1,configurable:!0,set:function(s){n=s.trim()},get:function(){return n||null}})};_A(Gr,mr);var Pn=function(){mr.call(this);var n,a=[];Object.defineProperty(this,"Kids",{enumerable:!1,configurable:!0,get:function(){return a.length>0?a:void 0}}),Object.defineProperty(this,"Fields",{enumerable:!1,configurable:!1,get:function(){return a}}),Object.defineProperty(this,"DA",{enumerable:!1,configurable:!1,get:function(){if(n){var s=function(c){return c};return this.scope&&(s=this.scope.internal.getEncryptor(this.objId)),"("+Gl(s(n))+")"}},set:function(s){n=s}})};_A(Pn,mr);var pn=function n(){mr.call(this);var a=4;Object.defineProperty(this,"F",{enumerable:!1,configurable:!1,get:function(){return a},set:function(rt){if(isNaN(rt))throw new Error('Invalid value "'+rt+'" for attribute F supplied.');a=rt}}),Object.defineProperty(this,"showWhenPrinted",{enumerable:!0,configurable:!0,get:function(){return!!Fa(a,3)},set:function(rt){rt?this.F=E(a,3):this.F=p(a,3)}});var s=0;Object.defineProperty(this,"Ff",{enumerable:!1,configurable:!1,get:function(){return s},set:function(rt){if(isNaN(rt))throw new Error('Invalid value "'+rt+'" for attribute Ff supplied.');s=rt}});var c=[];Object.defineProperty(this,"Rect",{enumerable:!1,configurable:!1,get:function(){if(c.length!==0)return c},set:function(rt){c=rt!==void 0?rt:[]}}),Object.defineProperty(this,"x",{enumerable:!0,configurable:!0,get:function(){return!c||isNaN(c[0])?0:c[0]},set:function(rt){c[0]=rt}}),Object.defineProperty(this,"y",{enumerable:!0,configurable:!0,get:function(){return!c||isNaN(c[1])?0:c[1]},set:function(rt){c[1]=rt}}),Object.defineProperty(this,"width",{enumerable:!0,configurable:!0,get:function(){return!c||isNaN(c[2])?0:c[2]},set:function(rt){c[2]=rt}}),Object.defineProperty(this,"height",{enumerable:!0,configurable:!0,get:function(){return!c||isNaN(c[3])?0:c[3]},set:function(rt){c[3]=rt}});var d="";Object.defineProperty(this,"FT",{enumerable:!0,configurable:!1,get:function(){return d},set:function(rt){switch(rt){case"/Btn":case"/Tx":case"/Ch":case"/Sig":d=rt;break;default:throw new Error('Invalid value "'+rt+'" for attribute FT supplied.')}}});var m=null;Object.defineProperty(this,"T",{enumerable:!0,configurable:!1,get:function(){if(!m||m.length<1){if(this instanceof Rn)return;m="FieldObject"+n.FieldNum++}var rt=function(Yt){return Yt};return this.scope&&(rt=this.scope.internal.getEncryptor(this.objId)),"("+Gl(rt(m))+")"},set:function(rt){m=rt.toString()}}),Object.defineProperty(this,"fieldName",{configurable:!0,enumerable:!0,get:function(){return m},set:function(rt){m=rt}});var W="helvetica";Object.defineProperty(this,"fontName",{enumerable:!0,configurable:!0,get:function(){return W},set:function(rt){W=rt}});var O="normal";Object.defineProperty(this,"fontStyle",{enumerable:!0,configurable:!0,get:function(){return O},set:function(rt){O=rt}});var $=0;Object.defineProperty(this,"fontSize",{enumerable:!0,configurable:!0,get:function(){return $},set:function(rt){$=rt}});var J=void 0;Object.defineProperty(this,"maxFontSize",{enumerable:!0,configurable:!0,get:function(){return J===void 0?50/Nf:J},set:function(rt){J=rt}});var he="black";Object.defineProperty(this,"color",{enumerable:!0,configurable:!0,get:function(){return he},set:function(rt){he=rt}});var Ne="/F1 0 Tf 0 g";Object.defineProperty(this,"DA",{enumerable:!0,configurable:!1,get:function(){if(!(!Ne||this instanceof Rn||this instanceof Ni))return lr(Ne,this.objId,this.scope)},set:function(rt){rt=rt.toString(),Ne=rt}});var Ye=null;Object.defineProperty(this,"DV",{enumerable:!1,configurable:!1,get:function(){if(Ye)return this instanceof _i==0?lr(Ye,this.objId,this.scope):Ye},set:function(rt){rt=rt.toString(),Ye=this instanceof _i==0?rt.substr(0,1)==="("?zc(rt.substr(1,rt.length-2)):zc(rt):rt}}),Object.defineProperty(this,"defaultValue",{enumerable:!0,configurable:!0,get:function(){return this instanceof _i==1?zc(Ye.substr(1,Ye.length-1)):Ye},set:function(rt){rt=rt.toString(),Ye=this instanceof _i==1?"/"+rt:rt}});var ce=null;Object.defineProperty(this,"_V",{enumerable:!1,configurable:!1,get:function(){if(ce)return ce},set:function(rt){this.V=rt}}),Object.defineProperty(this,"V",{enumerable:!1,configurable:!1,get:function(){if(ce)return this instanceof _i==0?lr(ce,this.objId,this.scope):ce},set:function(rt){rt=rt.toString(),ce=this instanceof _i==0?rt.substr(0,1)==="("?zc(rt.substr(1,rt.length-2)):zc(rt):rt}}),Object.defineProperty(this,"value",{enumerable:!0,configurable:!0,get:function(){return this instanceof _i==1?zc(ce.substr(1,ce.length-1)):ce},set:function(rt){rt=rt.toString(),ce=this instanceof _i==1?"/"+rt:rt}}),Object.defineProperty(this,"hasAnnotation",{enumerable:!0,configurable:!0,get:function(){return this.Rect}}),Object.defineProperty(this,"Type",{enumerable:!0,configurable:!1,get:function(){return this.hasAnnotation?"/Annot":null}}),Object.defineProperty(this,"Subtype",{enumerable:!0,configurable:!1,get:function(){return this.hasAnnotation?"/Widget":null}});var wt,pt=!1;Object.defineProperty(this,"hasAppearanceStream",{enumerable:!0,configurable:!0,get:function(){return pt},set:function(rt){rt=!!rt,pt=rt}}),Object.defineProperty(this,"page",{enumerable:!0,configurable:!0,get:function(){if(wt)return wt},set:function(rt){wt=rt}}),Object.defineProperty(this,"readOnly",{enumerable:!0,configurable:!0,get:function(){return!!Fa(this.Ff,1)},set:function(rt){rt?this.Ff=E(this.Ff,1):this.Ff=p(this.Ff,1)}}),Object.defineProperty(this,"required",{enumerable:!0,configurable:!0,get:function(){return!!Fa(this.Ff,2)},set:function(rt){rt?this.Ff=E(this.Ff,2):this.Ff=p(this.Ff,2)}}),Object.defineProperty(this,"noExport",{enumerable:!0,configurable:!0,get:function(){return!!Fa(this.Ff,3)},set:function(rt){rt?this.Ff=E(this.Ff,3):this.Ff=p(this.Ff,3)}});var bt=null;Object.defineProperty(this,"Q",{enumerable:!0,configurable:!1,get:function(){if(bt!==null)return bt},set:function(rt){if([0,1,2].indexOf(rt)===-1)throw new Error('Invalid value "'+rt+'" for attribute Q supplied.');bt=rt}}),Object.defineProperty(this,"textAlign",{get:function(){var rt;switch(bt){case 0:default:rt="left";break;case 1:rt="center";break;case 2:rt="right"}return rt},configurable:!0,enumerable:!0,set:function(rt){switch(rt){case"right":case 2:bt=2;break;case"center":case 1:bt=1;break;default:bt=0}}})};_A(pn,mr);var Ln=function(){pn.call(this),this.FT="/Ch",this.V="()",this.fontName="zapfdingbats";var n=0;Object.defineProperty(this,"TI",{enumerable:!0,configurable:!1,get:function(){return n},set:function(s){n=s}}),Object.defineProperty(this,"topIndex",{enumerable:!0,configurable:!0,get:function(){return n},set:function(s){n=s}});var a=[];Object.defineProperty(this,"Opt",{enumerable:!0,configurable:!1,get:function(){return er(a,this.objId,this.scope)},set:function(s){var c,d;d=[],typeof(c=s)=="string"&&(d=function(m,W,O){O||(O=1);for(var $,J=[];$=W.exec(m);)J.push($[O]);return J}(c,/\((.*?)\)/g)),a=d}}),this.getOptions=function(){return a},this.setOptions=function(s){a=s,this.sort&&a.sort()},this.addOption=function(s){s=(s=s||"").toString(),a.push(s),this.sort&&a.sort()},this.removeOption=function(s,c){for(c=c||!1,s=(s=s||"").toString();a.indexOf(s)!==-1&&(a.splice(a.indexOf(s),1),c!==!1););},Object.defineProperty(this,"combo",{enumerable:!0,configurable:!0,get:function(){return!!Fa(this.Ff,18)},set:function(s){s?this.Ff=E(this.Ff,18):this.Ff=p(this.Ff,18)}}),Object.defineProperty(this,"edit",{enumerable:!0,configurable:!0,get:function(){return!!Fa(this.Ff,19)},set:function(s){this.combo===!0&&(s?this.Ff=E(this.Ff,19):this.Ff=p(this.Ff,19))}}),Object.defineProperty(this,"sort",{enumerable:!0,configurable:!0,get:function(){return!!Fa(this.Ff,20)},set:function(s){s?(this.Ff=E(this.Ff,20),a.sort()):this.Ff=p(this.Ff,20)}}),Object.defineProperty(this,"multiSelect",{enumerable:!0,configurable:!0,get:function(){return!!Fa(this.Ff,22)},set:function(s){s?this.Ff=E(this.Ff,22):this.Ff=p(this.Ff,22)}}),Object.defineProperty(this,"doNotSpellCheck",{enumerable:!0,configurable:!0,get:function(){return!!Fa(this.Ff,23)},set:function(s){s?this.Ff=E(this.Ff,23):this.Ff=p(this.Ff,23)}}),Object.defineProperty(this,"commitOnSelChange",{enumerable:!0,configurable:!0,get:function(){return!!Fa(this.Ff,27)},set:function(s){s?this.Ff=E(this.Ff,27):this.Ff=p(this.Ff,27)}}),this.hasAppearanceStream=!1};_A(Ln,pn);var Fi=function(){Ln.call(this),this.fontName="helvetica",this.combo=!1};_A(Fi,Ln);var Wn=function(){Fi.call(this),this.combo=!0};_A(Wn,Fi);var zn=function(){Wn.call(this),this.edit=!0};_A(zn,Wn);var _i=function(){pn.call(this),this.FT="/Btn",Object.defineProperty(this,"noToggleToOff",{enumerable:!0,configurable:!0,get:function(){return!!Fa(this.Ff,15)},set:function(s){s?this.Ff=E(this.Ff,15):this.Ff=p(this.Ff,15)}}),Object.defineProperty(this,"radio",{enumerable:!0,configurable:!0,get:function(){return!!Fa(this.Ff,16)},set:function(s){s?this.Ff=E(this.Ff,16):this.Ff=p(this.Ff,16)}}),Object.defineProperty(this,"pushButton",{enumerable:!0,configurable:!0,get:function(){return!!Fa(this.Ff,17)},set:function(s){s?this.Ff=E(this.Ff,17):this.Ff=p(this.Ff,17)}}),Object.defineProperty(this,"radioIsUnison",{enumerable:!0,configurable:!0,get:function(){return!!Fa(this.Ff,26)},set:function(s){s?this.Ff=E(this.Ff,26):this.Ff=p(this.Ff,26)}});var n,a={};Object.defineProperty(this,"MK",{enumerable:!1,configurable:!1,get:function(){var s=function(m){return m};if(this.scope&&(s=this.scope.internal.getEncryptor(this.objId)),Object.keys(a).length!==0){var c,d=[];for(c in d.push("<<"),a)d.push("/"+c+" ("+Gl(s(a[c]))+")");return d.push(">>"),d.join(`
|
|
|
`)}},set:function(s){(0,Ie.Z)(s)==="object"&&(a=s)}}),Object.defineProperty(this,"caption",{enumerable:!0,configurable:!0,get:function(){return a.CA||""},set:function(s){typeof s=="string"&&(a.CA=s)}}),Object.defineProperty(this,"AS",{enumerable:!1,configurable:!1,get:function(){return n},set:function(s){n=s}}),Object.defineProperty(this,"appearanceState",{enumerable:!0,configurable:!0,get:function(){return n.substr(1,n.length-1)},set:function(s){n="/"+s}})};_A(_i,pn);var Li=function(){_i.call(this),this.pushButton=!0};_A(Li,_i);var di=function(){_i.call(this),this.radio=!0,this.pushButton=!1;var n=[];Object.defineProperty(this,"Kids",{enumerable:!0,configurable:!1,get:function(){return n},set:function(a){n=a!==void 0?a:[]}})};_A(di,_i);var Rn=function(){var n,a;pn.call(this),Object.defineProperty(this,"Parent",{enumerable:!1,configurable:!1,get:function(){return n},set:function(d){n=d}}),Object.defineProperty(this,"optionName",{enumerable:!1,configurable:!0,get:function(){return a},set:function(d){a=d}});var s,c={};Object.defineProperty(this,"MK",{enumerable:!1,configurable:!1,get:function(){var d=function(O){return O};this.scope&&(d=this.scope.internal.getEncryptor(this.objId));var m,W=[];for(m in W.push("<<"),c)W.push("/"+m+" ("+Gl(d(c[m]))+")");return W.push(">>"),W.join(`
|
|
|
`)},set:function(d){(0,Ie.Z)(d)==="object"&&(c=d)}}),Object.defineProperty(this,"caption",{enumerable:!0,configurable:!0,get:function(){return c.CA||""},set:function(d){typeof d=="string"&&(c.CA=d)}}),Object.defineProperty(this,"AS",{enumerable:!1,configurable:!1,get:function(){return s},set:function(d){s=d}}),Object.defineProperty(this,"appearanceState",{enumerable:!0,configurable:!0,get:function(){return s.substr(1,s.length-1)},set:function(d){s="/"+d}}),this.caption="l",this.appearanceState="Off",this._AppearanceType=xn.RadioButton.Circle,this.appearanceStreamContent=this._AppearanceType.createAppearanceStream(this.optionName)};_A(Rn,pn),di.prototype.setAppearance=function(n){if(!("createAppearanceStream"in n)||!("getCA"in n))throw new Error("Couldn't assign Appearance to RadioButton. Appearance was Invalid!");for(var a in this.Kids)if(this.Kids.hasOwnProperty(a)){var s=this.Kids[a];s.appearanceStreamContent=n.createAppearanceStream(s.optionName),s.caption=n.getCA()}},di.prototype.createOption=function(n){var a=new Rn;return a.Parent=this,a.optionName=n,this.Kids.push(a),wA.call(this.scope,a),a};var Zi=function(){_i.call(this),this.fontName="zapfdingbats",this.caption="3",this.appearanceState="On",this.value="On",this.textAlign="center",this.appearanceStreamContent=xn.CheckBox.createAppearanceStream()};_A(Zi,_i);var Ni=function(){pn.call(this),this.FT="/Tx",Object.defineProperty(this,"multiline",{enumerable:!0,configurable:!0,get:function(){return!!Fa(this.Ff,13)},set:function(a){a?this.Ff=E(this.Ff,13):this.Ff=p(this.Ff,13)}}),Object.defineProperty(this,"fileSelect",{enumerable:!0,configurable:!0,get:function(){return!!Fa(this.Ff,21)},set:function(a){a?this.Ff=E(this.Ff,21):this.Ff=p(this.Ff,21)}}),Object.defineProperty(this,"doNotSpellCheck",{enumerable:!0,configurable:!0,get:function(){return!!Fa(this.Ff,23)},set:function(a){a?this.Ff=E(this.Ff,23):this.Ff=p(this.Ff,23)}}),Object.defineProperty(this,"doNotScroll",{enumerable:!0,configurable:!0,get:function(){return!!Fa(this.Ff,24)},set:function(a){a?this.Ff=E(this.Ff,24):this.Ff=p(this.Ff,24)}}),Object.defineProperty(this,"comb",{enumerable:!0,configurable:!0,get:function(){return!!Fa(this.Ff,25)},set:function(a){a?this.Ff=E(this.Ff,25):this.Ff=p(this.Ff,25)}}),Object.defineProperty(this,"richText",{enumerable:!0,configurable:!0,get:function(){return!!Fa(this.Ff,26)},set:function(a){a?this.Ff=E(this.Ff,26):this.Ff=p(this.Ff,26)}});var n=null;Object.defineProperty(this,"MaxLen",{enumerable:!0,configurable:!1,get:function(){return n},set:function(a){n=a}}),Object.defineProperty(this,"maxLength",{enumerable:!0,configurable:!0,get:function(){return n},set:function(a){Number.isInteger(a)&&(n=a)}}),Object.defineProperty(this,"hasAppearanceStream",{enumerable:!0,configurable:!0,get:function(){return this.V||this.DV}})};_A(Ni,pn);var Bi=function(){Ni.call(this),Object.defineProperty(this,"password",{enumerable:!0,configurable:!0,get:function(){return!!Fa(this.Ff,14)},set:function(n){n?this.Ff=E(this.Ff,14):this.Ff=p(this.Ff,14)}}),this.password=!0};_A(Bi,Ni);var xn={CheckBox:{createAppearanceStream:function(){return{N:{On:xn.CheckBox.YesNormal},D:{On:xn.CheckBox.YesPushDown,Off:xn.CheckBox.OffPushDown}}},YesPushDown:function(n){var a=Vl(n);a.scope=n.scope;var s=[],c=n.scope.internal.getFont(n.fontName,n.fontStyle).id,d=n.scope.__private__.encodeColorString(n.color),m=te(n,n.caption);return s.push("0.749023 g"),s.push("0 0 "+Pi(xn.internal.getWidth(n))+" "+Pi(xn.internal.getHeight(n))+" re"),s.push("f"),s.push("BMC"),s.push("q"),s.push("0 0 1 rg"),s.push("/"+c+" "+Pi(m.fontSize)+" Tf "+d),s.push("BT"),s.push(m.text),s.push("ET"),s.push("Q"),s.push("EMC"),a.stream=s.join(`
|
|
|
`),a},YesNormal:function(n){var a=Vl(n);a.scope=n.scope;var s=n.scope.internal.getFont(n.fontName,n.fontStyle).id,c=n.scope.__private__.encodeColorString(n.color),d=[],m=xn.internal.getHeight(n),W=xn.internal.getWidth(n),O=te(n,n.caption);return d.push("1 g"),d.push("0 0 "+Pi(W)+" "+Pi(m)+" re"),d.push("f"),d.push("q"),d.push("0 0 1 rg"),d.push("0 0 "+Pi(W-1)+" "+Pi(m-1)+" re"),d.push("W"),d.push("n"),d.push("0 g"),d.push("BT"),d.push("/"+s+" "+Pi(O.fontSize)+" Tf "+c),d.push(O.text),d.push("ET"),d.push("Q"),a.stream=d.join(`
|
|
|
`),a},OffPushDown:function(n){var a=Vl(n);a.scope=n.scope;var s=[];return s.push("0.749023 g"),s.push("0 0 "+Pi(xn.internal.getWidth(n))+" "+Pi(xn.internal.getHeight(n))+" re"),s.push("f"),a.stream=s.join(`
|
|
|
`),a}},RadioButton:{Circle:{createAppearanceStream:function(n){var a={D:{Off:xn.RadioButton.Circle.OffPushDown},N:{}};return a.N[n]=xn.RadioButton.Circle.YesNormal,a.D[n]=xn.RadioButton.Circle.YesPushDown,a},getCA:function(){return"l"},YesNormal:function(n){var a=Vl(n);a.scope=n.scope;var s=[],c=xn.internal.getWidth(n)<=xn.internal.getHeight(n)?xn.internal.getWidth(n)/4:xn.internal.getHeight(n)/4;c=Number((.9*c).toFixed(5));var d=xn.internal.Bezier_C,m=Number((c*d).toFixed(5));return s.push("q"),s.push("1 0 0 1 "+vu(xn.internal.getWidth(n)/2)+" "+vu(xn.internal.getHeight(n)/2)+" cm"),s.push(c+" 0 m"),s.push(c+" "+m+" "+m+" "+c+" 0 "+c+" c"),s.push("-"+m+" "+c+" -"+c+" "+m+" -"+c+" 0 c"),s.push("-"+c+" -"+m+" -"+m+" -"+c+" 0 -"+c+" c"),s.push(m+" -"+c+" "+c+" -"+m+" "+c+" 0 c"),s.push("f"),s.push("Q"),a.stream=s.join(`
|
|
|
`),a},YesPushDown:function(n){var a=Vl(n);a.scope=n.scope;var s=[],c=xn.internal.getWidth(n)<=xn.internal.getHeight(n)?xn.internal.getWidth(n)/4:xn.internal.getHeight(n)/4;c=Number((.9*c).toFixed(5));var d=Number((2*c).toFixed(5)),m=Number((d*xn.internal.Bezier_C).toFixed(5)),W=Number((c*xn.internal.Bezier_C).toFixed(5));return s.push("0.749023 g"),s.push("q"),s.push("1 0 0 1 "+vu(xn.internal.getWidth(n)/2)+" "+vu(xn.internal.getHeight(n)/2)+" cm"),s.push(d+" 0 m"),s.push(d+" "+m+" "+m+" "+d+" 0 "+d+" c"),s.push("-"+m+" "+d+" -"+d+" "+m+" -"+d+" 0 c"),s.push("-"+d+" -"+m+" -"+m+" -"+d+" 0 -"+d+" c"),s.push(m+" -"+d+" "+d+" -"+m+" "+d+" 0 c"),s.push("f"),s.push("Q"),s.push("0 g"),s.push("q"),s.push("1 0 0 1 "+vu(xn.internal.getWidth(n)/2)+" "+vu(xn.internal.getHeight(n)/2)+" cm"),s.push(c+" 0 m"),s.push(c+" "+W+" "+W+" "+c+" 0 "+c+" c"),s.push("-"+W+" "+c+" -"+c+" "+W+" -"+c+" 0 c"),s.push("-"+c+" -"+W+" -"+W+" -"+c+" 0 -"+c+" c"),s.push(W+" -"+c+" "+c+" -"+W+" "+c+" 0 c"),s.push("f"),s.push("Q"),a.stream=s.join(`
|
|
|
`),a},OffPushDown:function(n){var a=Vl(n);a.scope=n.scope;var s=[],c=xn.internal.getWidth(n)<=xn.internal.getHeight(n)?xn.internal.getWidth(n)/4:xn.internal.getHeight(n)/4;c=Number((.9*c).toFixed(5));var d=Number((2*c).toFixed(5)),m=Number((d*xn.internal.Bezier_C).toFixed(5));return s.push("0.749023 g"),s.push("q"),s.push("1 0 0 1 "+vu(xn.internal.getWidth(n)/2)+" "+vu(xn.internal.getHeight(n)/2)+" cm"),s.push(d+" 0 m"),s.push(d+" "+m+" "+m+" "+d+" 0 "+d+" c"),s.push("-"+m+" "+d+" -"+d+" "+m+" -"+d+" 0 c"),s.push("-"+d+" -"+m+" -"+m+" -"+d+" 0 -"+d+" c"),s.push(m+" -"+d+" "+d+" -"+m+" "+d+" 0 c"),s.push("f"),s.push("Q"),a.stream=s.join(`
|
|
|
`),a}},Cross:{createAppearanceStream:function(n){var a={D:{Off:xn.RadioButton.Cross.OffPushDown},N:{}};return a.N[n]=xn.RadioButton.Cross.YesNormal,a.D[n]=xn.RadioButton.Cross.YesPushDown,a},getCA:function(){return"8"},YesNormal:function(n){var a=Vl(n);a.scope=n.scope;var s=[],c=xn.internal.calculateCross(n);return s.push("q"),s.push("1 1 "+Pi(xn.internal.getWidth(n)-2)+" "+Pi(xn.internal.getHeight(n)-2)+" re"),s.push("W"),s.push("n"),s.push(Pi(c.x1.x)+" "+Pi(c.x1.y)+" m"),s.push(Pi(c.x2.x)+" "+Pi(c.x2.y)+" l"),s.push(Pi(c.x4.x)+" "+Pi(c.x4.y)+" m"),s.push(Pi(c.x3.x)+" "+Pi(c.x3.y)+" l"),s.push("s"),s.push("Q"),a.stream=s.join(`
|
|
|
`),a},YesPushDown:function(n){var a=Vl(n);a.scope=n.scope;var s=xn.internal.calculateCross(n),c=[];return c.push("0.749023 g"),c.push("0 0 "+Pi(xn.internal.getWidth(n))+" "+Pi(xn.internal.getHeight(n))+" re"),c.push("f"),c.push("q"),c.push("1 1 "+Pi(xn.internal.getWidth(n)-2)+" "+Pi(xn.internal.getHeight(n)-2)+" re"),c.push("W"),c.push("n"),c.push(Pi(s.x1.x)+" "+Pi(s.x1.y)+" m"),c.push(Pi(s.x2.x)+" "+Pi(s.x2.y)+" l"),c.push(Pi(s.x4.x)+" "+Pi(s.x4.y)+" m"),c.push(Pi(s.x3.x)+" "+Pi(s.x3.y)+" l"),c.push("s"),c.push("Q"),a.stream=c.join(`
|
|
|
`),a},OffPushDown:function(n){var a=Vl(n);a.scope=n.scope;var s=[];return s.push("0.749023 g"),s.push("0 0 "+Pi(xn.internal.getWidth(n))+" "+Pi(xn.internal.getHeight(n))+" re"),s.push("f"),a.stream=s.join(`
|
|
|
`),a}}},createDefaultAppearanceStream:function(n){var a=n.scope.internal.getFont(n.fontName,n.fontStyle).id,s=n.scope.__private__.encodeColorString(n.color);return"/"+a+" "+n.fontSize+" Tf "+s}};xn.internal={Bezier_C:.551915024494,calculateCross:function(n){var a=xn.internal.getWidth(n),s=xn.internal.getHeight(n),c=Math.min(a,s);return{x1:{x:(a-c)/2,y:(s-c)/2+c},x2:{x:(a-c)/2+c,y:(s-c)/2},x3:{x:(a-c)/2,y:(s-c)/2},x4:{x:(a-c)/2+c,y:(s-c)/2+c}}}},xn.internal.getWidth=function(n){var a=0;return(0,Ie.Z)(n)==="object"&&(a=Mf(n.Rect[2])),a},xn.internal.getHeight=function(n){var a=0;return(0,Ie.Z)(n)==="object"&&(a=Mf(n.Rect[3])),a};var wA=Ta.addField=function(n){if(vt(this,n),!(n instanceof pn))throw new Error("Invalid argument passed to jsPDF.addField.");var a;return(a=n).scope.internal.acroformPlugin.printedOut&&(a.scope.internal.acroformPlugin.printedOut=!1,a.scope.internal.acroformPlugin.acroFormDictionaryRoot=null),a.scope.internal.acroformPlugin.acroFormDictionaryRoot.Fields.push(a),n.page=n.scope.internal.getCurrentPageInfo().pageNumber,this};Ta.AcroFormChoiceField=Ln,Ta.AcroFormListBox=Fi,Ta.AcroFormComboBox=Wn,Ta.AcroFormEditBox=zn,Ta.AcroFormButton=_i,Ta.AcroFormPushButton=Li,Ta.AcroFormRadioButton=di,Ta.AcroFormCheckBox=Zi,Ta.AcroFormTextField=Ni,Ta.AcroFormPasswordField=Bi,Ta.AcroFormAppearance=xn,Ta.AcroForm={ChoiceField:Ln,ListBox:Fi,ComboBox:Wn,EditBox:zn,Button:_i,PushButton:Li,RadioButton:di,CheckBox:Zi,TextField:Ni,PasswordField:Bi,Appearance:xn},Xn.AcroForm={ChoiceField:Ln,ListBox:Fi,ComboBox:Wn,EditBox:zn,Button:_i,PushButton:Li,RadioButton:di,CheckBox:Zi,TextField:Ni,PasswordField:Bi,Appearance:xn};var bA=Xn.AcroForm;function Ps(n){return n.reduce(function(a,s,c){return a[s]=c,a},{})}(function(n){var a="addImage_";n.__addimage__={};var s="UNKNOWN",c={PNG:[[137,80,78,71]],TIFF:[[77,77,0,42],[73,73,42,0]],JPEG:[[255,216,255,224,void 0,void 0,74,70,73,70,0],[255,216,255,225,void 0,void 0,69,120,105,102,0,0],[255,216,255,219],[255,216,255,238]],JPEG2000:[[0,0,0,12,106,80,32,32]],GIF87a:[[71,73,70,56,55,97]],GIF89a:[[71,73,70,56,57,97]],WEBP:[[82,73,70,70,void 0,void 0,void 0,void 0,87,69,66,80]],BMP:[[66,77],[66,65],[67,73],[67,80],[73,67],[80,84]]},d=n.__addimage__.getImageFileTypeByImageData=function(tt,Ct){var Xt,Gt,Ur,Qr,zr,Fr=s;if((Ct=Ct||s)==="RGBA"||tt.data!==void 0&&tt.data instanceof Uint8ClampedArray&&"height"in tt&&"width"in tt)return"RGBA";if(en(tt))for(zr in c)for(Ur=c[zr],Xt=0;Xt<Ur.length;Xt+=1){for(Qr=!0,Gt=0;Gt<Ur[Xt].length;Gt+=1)if(Ur[Xt][Gt]!==void 0&&Ur[Xt][Gt]!==tt[Gt]){Qr=!1;break}if(Qr===!0){Fr=zr;break}}else for(zr in c)for(Ur=c[zr],Xt=0;Xt<Ur.length;Xt+=1){for(Qr=!0,Gt=0;Gt<Ur[Xt].length;Gt+=1)if(Ur[Xt][Gt]!==void 0&&Ur[Xt][Gt]!==tt.charCodeAt(Gt)){Qr=!1;break}if(Qr===!0){Fr=zr;break}}return Fr===s&&Ct!==s&&(Fr=Ct),Fr},m=function tt(Ct){for(var Xt=this.internal.write,Gt=this.internal.putStream,Ur=(0,this.internal.getFilters)();Ur.indexOf("FlateEncode")!==-1;)Ur.splice(Ur.indexOf("FlateEncode"),1);Ct.objectId=this.internal.newObject();var Qr=[];if(Qr.push({key:"Type",value:"/XObject"}),Qr.push({key:"Subtype",value:"/Image"}),Qr.push({key:"Width",value:Ct.width}),Qr.push({key:"Height",value:Ct.height}),Ct.colorSpace===rt.INDEXED?Qr.push({key:"ColorSpace",value:"[/Indexed /DeviceRGB "+(Ct.palette.length/3-1)+" "+("sMask"in Ct&&Ct.sMask!==void 0?Ct.objectId+2:Ct.objectId+1)+" 0 R]"}):(Qr.push({key:"ColorSpace",value:"/"+Ct.colorSpace}),Ct.colorSpace===rt.DEVICE_CMYK&&Qr.push({key:"Decode",value:"[1 0 1 0 1 0 1 0]"})),Qr.push({key:"BitsPerComponent",value:Ct.bitsPerComponent}),"decodeParameters"in Ct&&Ct.decodeParameters!==void 0&&Qr.push({key:"DecodeParms",value:"<<"+Ct.decodeParameters+">>"}),"transparency"in Ct&&Array.isArray(Ct.transparency)&&Ct.transparency.length>0){for(var zr="",Fr=0,$r=Ct.transparency.length;Fr<$r;Fr++)zr+=Ct.transparency[Fr]+" "+Ct.transparency[Fr]+" ";Qr.push({key:"Mask",value:"["+zr+"]"})}Ct.sMask!==void 0&&Qr.push({key:"SMask",value:Ct.objectId+1+" 0 R"});var En=Ct.filter!==void 0?["/"+Ct.filter]:void 0;if(Gt({data:Ct.data,additionalKeyValues:Qr,alreadyAppliedFilters:En,objectId:Ct.objectId}),Xt("endobj"),"sMask"in Ct&&Ct.sMask!==void 0){var un,et=(un=Ct.sMaskBitsPerComponent)!==null&&un!==void 0?un:Ct.bitsPerComponent,Rt={width:Ct.width,height:Ct.height,colorSpace:"DeviceGray",bitsPerComponent:et,data:Ct.sMask};"filter"in Ct&&(Rt.decodeParameters="/Predictor ".concat(Ct.predictor," /Colors 1 /BitsPerComponent ").concat(et," /Columns ").concat(Ct.width),Rt.filter=Ct.filter),tt.call(this,Rt)}if(Ct.colorSpace===rt.INDEXED){var Ht=this.internal.newObject();Gt({data:Ar(new Uint8Array(Ct.palette)),objectId:Ht}),Xt("endobj")}},W=function(){var tt=this.internal.collections[a+"images"];for(var Ct in tt)m.call(this,tt[Ct])},O=function(){var tt,Ct=this.internal.collections[a+"images"],Xt=this.internal.write;for(var Gt in Ct)Xt("/I"+(tt=Ct[Gt]).index,tt.objectId,"0","R")},$=function(){this.internal.collections[a+"images"]||(this.internal.collections[a+"images"]={},this.internal.events.subscribe("putResources",W),this.internal.events.subscribe("putXobjectDict",O))},J=function(){var tt=this.internal.collections[a+"images"];return $.call(this),tt},he=function(){return Object.keys(this.internal.collections[a+"images"]).length},Ne=function(tt){return typeof n["process"+tt.toUpperCase()]=="function"},Ye=function(tt){return(0,Ie.Z)(tt)==="object"&&tt.nodeType===1},ce=function(tt,Ct){if(tt.nodeName==="IMG"&&tt.hasAttribute("src")){var Xt=""+tt.getAttribute("src");if(Xt.indexOf("data:image/")===0)return L0(unescape(Xt).split("base64,").pop());var Gt=n.loadFile(Xt,!0);if(Gt!==void 0)return Gt}if(tt.nodeName==="CANVAS"){if(tt.width===0||tt.height===0)throw new Error("Given canvas must have data. Canvas width: "+tt.width+", height: "+tt.height);var Ur;switch(Ct){case"PNG":Ur="image/png";break;case"WEBP":Ur="image/webp";break;default:Ur="image/jpeg"}return L0(tt.toDataURL(Ur,1).split("base64,").pop())}},wt=function(tt){var Ct=this.internal.collections[a+"images"];if(Ct){for(var Xt in Ct)if(tt===Ct[Xt].alias)return Ct[Xt]}},pt=function(tt,Ct,Xt){return tt||Ct||(tt=-96,Ct=-96),tt<0&&(tt=-1*Xt.width*72/tt/this.internal.scaleFactor),Ct<0&&(Ct=-1*Xt.height*72/Ct/this.internal.scaleFactor),tt===0&&(tt=Ct*Xt.width/Xt.height),Ct===0&&(Ct=tt*Xt.height/Xt.width),[tt,Ct]},bt=function(tt,Ct,Xt,Gt,Ur,Qr){var zr=pt.call(this,Xt,Gt,Ur),Fr=this.internal.getCoordinateString,$r=this.internal.getVerticalCoordinateString,En=J.call(this);if(Xt=zr[0],Gt=zr[1],En[Ur.index]=Ur,Qr){Qr*=Math.PI/180;var un=Math.cos(Qr),et=Math.sin(Qr),Rt=function(tr){return tr.toFixed(4)},Ht=[Rt(un),Rt(et),Rt(-1*et),Rt(un),0,0,"cm"]}this.internal.write("q"),Qr?(this.internal.write([1,"0","0",1,Fr(tt),$r(Ct+Gt),"cm"].join(" ")),this.internal.write(Ht.join(" ")),this.internal.write([Fr(Xt),"0","0",Fr(Gt),"0","0","cm"].join(" "))):this.internal.write([Fr(Xt),"0","0",Fr(Gt),Fr(tt),$r(Ct+Gt),"cm"].join(" ")),this.isAdvancedAPI()&&this.internal.write([1,0,0,-1,0,0,"cm"].join(" ")),this.internal.write("/I"+Ur.index+" Do"),this.internal.write("Q")},rt=n.color_spaces={DEVICE_RGB:"DeviceRGB",DEVICE_GRAY:"DeviceGray",DEVICE_CMYK:"DeviceCMYK",CAL_GREY:"CalGray",CAL_RGB:"CalRGB",LAB:"Lab",ICC_BASED:"ICCBased",INDEXED:"Indexed",PATTERN:"Pattern",SEPARATION:"Separation",DEVICE_N:"DeviceN"};n.decode={DCT_DECODE:"DCTDecode",FLATE_DECODE:"FlateDecode",LZW_DECODE:"LZWDecode",JPX_DECODE:"JPXDecode",JBIG2_DECODE:"JBIG2Decode",ASCII85_DECODE:"ASCII85Decode",ASCII_HEX_DECODE:"ASCIIHexDecode",RUN_LENGTH_DECODE:"RunLengthDecode",CCITT_FAX_DECODE:"CCITTFaxDecode"};var Yt=n.image_compression={NONE:"NONE",FAST:"FAST",MEDIUM:"MEDIUM",SLOW:"SLOW"},jt=n.__addimage__.sHashCode=function(tt){var Ct,Xt,Gt=0;if(typeof tt=="string")for(Xt=tt.length,Ct=0;Ct<Xt;Ct++)Gt=(Gt<<5)-Gt+tt.charCodeAt(Ct),Gt|=0;else if(en(tt))for(Xt=tt.byteLength/2,Ct=0;Ct<Xt;Ct++)Gt=(Gt<<5)-Gt+tt[Ct],Gt|=0;return Gt},Ut=n.__addimage__.validateStringAsBase64=function(tt){(tt=tt||"").toString().trim();var Ct=!0;return tt.length===0&&(Ct=!1),tt.length%4!=0&&(Ct=!1),/^[A-Za-z0-9+/]+$/.test(tt.substr(0,tt.length-2))===!1&&(Ct=!1),/^[A-Za-z0-9/][A-Za-z0-9+/]|[A-Za-z0-9+/]=|==$/.test(tt.substr(-2))===!1&&(Ct=!1),Ct},kr=n.__addimage__.extractImageFromDataUrl=function(tt){if(tt==null||!(tt=tt.trim()).startsWith("data:"))return null;var Ct=tt.indexOf(",");return Ct<0?null:tt.substring(0,Ct).trim().endsWith("base64")?tt.substring(Ct+1):null};n.__addimage__.isArrayBuffer=function(tt){return tt instanceof ArrayBuffer};var en=n.__addimage__.isArrayBufferView=function(tt){return tt instanceof Int8Array||tt instanceof Uint8Array||tt instanceof Uint8ClampedArray||tt instanceof Int16Array||tt instanceof Uint16Array||tt instanceof Int32Array||tt instanceof Uint32Array||tt instanceof Float32Array||tt instanceof Float64Array},Hr=n.__addimage__.binaryStringToUint8Array=function(tt){for(var Ct=tt.length,Xt=new Uint8Array(Ct),Gt=0;Gt<Ct;Gt++)Xt[Gt]=tt.charCodeAt(Gt);return Xt},Ar=n.__addimage__.arrayBufferToBinaryString=function(tt){for(var Ct="",Xt=en(tt)?tt:new Uint8Array(tt),Gt=0;Gt<Xt.length;Gt+=8192)Ct+=String.fromCharCode.apply(null,Xt.subarray(Gt,Gt+8192));return Ct};n.addImage=function(){var tt,Ct,Xt,Gt,Ur,Qr,zr,Fr,$r;if(typeof arguments[1]=="number"?(Ct=s,Xt=arguments[1],Gt=arguments[2],Ur=arguments[3],Qr=arguments[4],zr=arguments[5],Fr=arguments[6],$r=arguments[7]):(Ct=arguments[1],Xt=arguments[2],Gt=arguments[3],Ur=arguments[4],Qr=arguments[5],zr=arguments[6],Fr=arguments[7],$r=arguments[8]),(0,Ie.Z)(tt=arguments[0])==="object"&&!Ye(tt)&&"imageData"in tt){var En=tt;tt=En.imageData,Ct=En.format||Ct||s,Xt=En.x||Xt||0,Gt=En.y||Gt||0,Ur=En.w||En.width||Ur,Qr=En.h||En.height||Qr,zr=En.alias||zr,Fr=En.compression||Fr,$r=En.rotation||En.angle||$r}var un=this.internal.getFilters();if(Fr===void 0&&un.indexOf("FlateEncode")!==-1&&(Fr="SLOW"),isNaN(Xt)||isNaN(Gt))throw new Error("Invalid coordinates passed to jsPDF.addImage");$.call(this);var et=Nt.call(this,tt,Ct,zr,Fr);return bt.call(this,Xt,Gt,Ur,Qr,et,$r),this};var Nt=function(tt,Ct,Xt,Gt){var Ur,Qr,zr;if(typeof tt=="string"&&d(tt)===s){tt=unescape(tt);var Fr=Er(tt,!1);(Fr!==""||(Fr=n.loadFile(tt,!0))!==void 0)&&(tt=Fr)}if(Ye(tt)&&(tt=ce(tt,Ct)),Ct=d(tt,Ct),!Ne(Ct))throw new Error("addImage does not support files of type '"+Ct+"', please ensure that a plugin for '"+Ct+"' support is added.");if(((zr=Xt)==null||zr.length===0)&&(Xt=function($r){return typeof $r=="string"||en($r)?jt($r):en($r.data)?jt($r.data):null}(tt)),(Ur=wt.call(this,Xt))||(tt instanceof Uint8Array||Ct==="RGBA"||(Qr=tt,tt=Hr(tt)),Ur=this["process"+Ct.toUpperCase()](tt,he.call(this),Xt,function($r){return $r&&typeof $r=="string"&&($r=$r.toUpperCase()),$r in n.image_compression?$r:Yt.NONE}(Gt),Qr)),!Ur)throw new Error("An unknown error occurred whilst processing the image.");return Ur},Er=n.__addimage__.convertBase64ToBinaryString=function(tt,Ct){Ct=typeof Ct!="boolean"||Ct;var Xt,Gt="";if(typeof tt=="string"){var Ur;Xt=(Ur=kr(tt))!==null&&Ur!==void 0?Ur:tt;try{Gt=L0(Xt)}catch(Qr){if(Ct)throw Ut(Xt)?new Error("atob-Error in jsPDF.convertBase64ToBinaryString "+Qr.message):new Error("Supplied Data is not a valid base64-String jsPDF.convertBase64ToBinaryString ")}}return Gt};n.getImageProperties=function(tt){var Ct,Xt,Gt="";if(Ye(tt)&&(tt=ce(tt)),typeof tt=="string"&&d(tt)===s&&((Gt=Er(tt,!1))===""&&(Gt=n.loadFile(tt)||""),tt=Gt),Xt=d(tt),!Ne(Xt))throw new Error("addImage does not support files of type '"+Xt+"', please ensure that a plugin for '"+Xt+"' support is added.");if(tt instanceof Uint8Array||(tt=Hr(tt)),!(Ct=this["process"+Xt.toUpperCase()](tt)))throw new Error("An unknown error occurred whilst processing the image");return Ct.fileType=Xt,Ct}})(Xn.API),function(n){var a=function(s){if(s!==void 0&&s!="")return!0};Xn.API.events.push(["addPage",function(s){this.internal.getPageInfo(s.pageNumber).pageContext.annotations=[]}]),n.events.push(["putPage",function(s){for(var c,d,m,W=this.internal.getCoordinateString,O=this.internal.getVerticalCoordinateString,$=this.internal.getPageInfoByObjId(s.objId),J=s.pageContext.annotations,he=!1,Ne=0;Ne<J.length&&!he;Ne++)switch((c=J[Ne]).type){case"link":(a(c.options.url)||a(c.options.pageNumber))&&(he=!0);break;case"reference":case"text":case"freetext":he=!0}if(he!=0){this.internal.write("/Annots [");for(var Ye=0;Ye<J.length;Ye++){c=J[Ye];var ce=this.internal.pdfEscape,wt=this.internal.getEncryptor(s.objId);switch(c.type){case"reference":this.internal.write(" "+c.object.objId+" 0 R ");break;case"text":var pt=this.internal.newAdditionalObject(),bt=this.internal.newAdditionalObject(),rt=this.internal.getEncryptor(pt.objId),Yt=c.title||"Note";m="<</Type /Annot /Subtype /Text "+(d="/Rect ["+W(c.bounds.x)+" "+O(c.bounds.y+c.bounds.h)+" "+W(c.bounds.x+c.bounds.w)+" "+O(c.bounds.y)+"] ")+"/Contents ("+ce(rt(c.contents))+")",m+=" /Popup "+bt.objId+" 0 R",m+=" /P "+$.objId+" 0 R",m+=" /T ("+ce(rt(Yt))+") >>",pt.content=m;var jt=pt.objId+" 0 R";m="<</Type /Annot /Subtype /Popup "+(d="/Rect ["+W(c.bounds.x+30)+" "+O(c.bounds.y+c.bounds.h)+" "+W(c.bounds.x+c.bounds.w+30)+" "+O(c.bounds.y)+"] ")+" /Parent "+jt,c.open&&(m+=" /Open true"),m+=" >>",bt.content=m,this.internal.write(pt.objId,"0 R",bt.objId,"0 R");break;case"freetext":d="/Rect ["+W(c.bounds.x)+" "+O(c.bounds.y)+" "+W(c.bounds.x+c.bounds.w)+" "+O(c.bounds.y+c.bounds.h)+"] ";var Ut=c.color||"#000000";m="<</Type /Annot /Subtype /FreeText "+d+"/Contents ("+ce(wt(c.contents))+")",m+=" /DS(font: Helvetica,sans-serif 12.0pt; text-align:left; color:#"+Ut+")",m+=" /Border [0 0 0]",m+=" >>",this.internal.write(m);break;case"link":if(c.options.name){var kr=this.annotations._nameMap[c.options.name];c.options.pageNumber=kr.page,c.options.top=kr.y}else c.options.top||(c.options.top=0);if(d="/Rect ["+c.finalBounds.x+" "+c.finalBounds.y+" "+c.finalBounds.w+" "+c.finalBounds.h+"] ",m="",c.options.url)m="<</Type /Annot /Subtype /Link "+d+"/Border [0 0 0] /A <</S /URI /URI ("+ce(wt(c.options.url))+") >>";else if(c.options.pageNumber)switch(m="<</Type /Annot /Subtype /Link "+d+"/Border [0 0 0] /Dest ["+this.internal.getPageInfo(c.options.pageNumber).objId+" 0 R",c.options.magFactor=c.options.magFactor||"XYZ",c.options.magFactor){case"Fit":m+=" /Fit]";break;case"FitH":m+=" /FitH "+c.options.top+"]";break;case"FitV":c.options.left=c.options.left||0,m+=" /FitV "+c.options.left+"]";break;default:var en=O(c.options.top);c.options.left=c.options.left||0,c.options.zoom===void 0&&(c.options.zoom=0),m+=" /XYZ "+c.options.left+" "+en+" "+c.options.zoom+"]"}m!=""&&(m+=" >>",this.internal.write(m))}}this.internal.write("]")}}]),n.createAnnotation=function(s){var c=this.internal.getCurrentPageInfo();switch(s.type){case"link":this.link(s.bounds.x,s.bounds.y,s.bounds.w,s.bounds.h,s);break;case"text":case"freetext":c.pageContext.annotations.push(s)}},n.link=function(s,c,d,m,W){var O=this.internal.getCurrentPageInfo(),$=this.internal.getCoordinateString,J=this.internal.getVerticalCoordinateString;O.pageContext.annotations.push({finalBounds:{x:$(s),y:J(c),w:$(s+d),h:J(c+m)},options:W,type:"link"})},n.textWithLink=function(s,c,d,m){var W,O,$=this.getTextWidth(s),J=this.internal.getLineHeight()/this.internal.scaleFactor;if(m.maxWidth!==void 0){O=m.maxWidth;var he=this.splitTextToSize(s,O).length;W=Math.ceil(J*he)}else O=$,W=J;return this.text(s,c,d,m),d+=.2*J,m.align==="center"&&(c-=$/2),m.align==="right"&&(c-=$),this.link(c,d-J,O,W,m),$},n.getTextWidth=function(s){var c=this.internal.getFontSize();return this.getStringUnitWidth(s)*c/this.internal.scaleFactor}}(Xn.API),function(n){var a={1569:[65152],1570:[65153,65154],1571:[65155,65156],1572:[65157,65158],1573:[65159,65160],1574:[65161,65162,65163,65164],1575:[65165,65166],1576:[65167,65168,65169,65170],1577:[65171,65172],1578:[65173,65174,65175,65176],1579:[65177,65178,65179,65180],1580:[65181,65182,65183,65184],1581:[65185,65186,65187,65188],1582:[65189,65190,65191,65192],1583:[65193,65194],1584:[65195,65196],1585:[65197,65198],1586:[65199,65200],1587:[65201,65202,65203,65204],1588:[65205,65206,65207,65208],1589:[65209,65210,65211,65212],1590:[65213,65214,65215,65216],1591:[65217,65218,65219,65220],1592:[65221,65222,65223,65224],1593:[65225,65226,65227,65228],1594:[65229,65230,65231,65232],1601:[65233,65234,65235,65236],1602:[65237,65238,65239,65240],1603:[65241,65242,65243,65244],1604:[65245,65246,65247,65248],1605:[65249,65250,65251,65252],1606:[65253,65254,65255,65256],1607:[65257,65258,65259,65260],1608:[65261,65262],1609:[65263,65264,64488,64489],1610:[65265,65266,65267,65268],1649:[64336,64337],1655:[64477],1657:[64358,64359,64360,64361],1658:[64350,64351,64352,64353],1659:[64338,64339,64340,64341],1662:[64342,64343,64344,64345],1663:[64354,64355,64356,64357],1664:[64346,64347,64348,64349],1667:[64374,64375,64376,64377],1668:[64370,64371,64372,64373],1670:[64378,64379,64380,64381],1671:[64382,64383,64384,64385],1672:[64392,64393],1676:[64388,64389],1677:[64386,64387],1678:[64390,64391],1681:[64396,64397],1688:[64394,64395],1700:[64362,64363,64364,64365],1702:[64366,64367,64368,64369],1705:[64398,64399,64400,64401],1709:[64467,64468,64469,64470],1711:[64402,64403,64404,64405],1713:[64410,64411,64412,64413],1715:[64406,64407,64408,64409],1722:[64414,64415],1723:[64416,64417,64418,64419],1726:[64426,64427,64428,64429],1728:[64420,64421],1729:[64422,64423,64424,64425],1733:[64480,64481],1734:[64473,64474],1735:[64471,64472],1736:[64475,64476],1737:[64482,64483],1739:[64478,64479],1740:[64508,64509,64510,64511],1744:[64484,64485,64486,64487],1746:[64430,64431],1747:[64432,64433]},s={65247:{65154:65269,65156:65271,65160:65273,65166:65275},65248:{65154:65270,65156:65272,65160:65274,65166:65276},65165:{65247:{65248:{65258:65010}}},1617:{1612:64606,1613:64607,1614:64608,1615:64609,1616:64610}},c={1612:64606,1613:64607,1614:64608,1615:64609,1616:64610},d=[1570,1571,1573,1575];n.__arabicParser__={};var m=n.__arabicParser__.isInArabicSubstitutionA=function(pt){return a[pt.charCodeAt(0)]!==void 0},W=n.__arabicParser__.isArabicLetter=function(pt){return typeof pt=="string"&&/^[\u0600-\u06FF\u0750-\u077F\u08A0-\u08FF\uFB50-\uFDFF\uFE70-\uFEFF]+$/.test(pt)},O=n.__arabicParser__.isArabicEndLetter=function(pt){return W(pt)&&m(pt)&&a[pt.charCodeAt(0)].length<=2},$=n.__arabicParser__.isArabicAlfLetter=function(pt){return W(pt)&&d.indexOf(pt.charCodeAt(0))>=0};n.__arabicParser__.arabicLetterHasIsolatedForm=function(pt){return W(pt)&&m(pt)&&a[pt.charCodeAt(0)].length>=1};var J=n.__arabicParser__.arabicLetterHasFinalForm=function(pt){return W(pt)&&m(pt)&&a[pt.charCodeAt(0)].length>=2};n.__arabicParser__.arabicLetterHasInitialForm=function(pt){return W(pt)&&m(pt)&&a[pt.charCodeAt(0)].length>=3};var he=n.__arabicParser__.arabicLetterHasMedialForm=function(pt){return W(pt)&&m(pt)&&a[pt.charCodeAt(0)].length==4},Ne=n.__arabicParser__.resolveLigatures=function(pt){var bt=0,rt=s,Yt="",jt=0;for(bt=0;bt<pt.length;bt+=1)rt[pt.charCodeAt(bt)]!==void 0?(jt++,typeof(rt=rt[pt.charCodeAt(bt)])=="number"&&(Yt+=String.fromCharCode(rt),rt=s,jt=0),bt===pt.length-1&&(rt=s,Yt+=pt.charAt(bt-(jt-1)),bt-=jt-1,jt=0)):(rt=s,Yt+=pt.charAt(bt-jt),bt-=jt,jt=0);return Yt};n.__arabicParser__.isArabicDiacritic=function(pt){return pt!==void 0&&c[pt.charCodeAt(0)]!==void 0};var Ye=n.__arabicParser__.getCorrectForm=function(pt,bt,rt){return W(pt)?m(pt)===!1?-1:!J(pt)||!W(bt)&&!W(rt)||!W(rt)&&O(bt)||O(pt)&&!W(bt)||O(pt)&&$(bt)||O(pt)&&O(bt)?0:he(pt)&&W(bt)&&!O(bt)&&W(rt)&&J(rt)?3:O(pt)||!W(rt)?1:2:-1},ce=function(pt){var bt=0,rt=0,Yt=0,jt="",Ut="",kr="",en=(pt=pt||"").split("\\s+"),Hr=[];for(bt=0;bt<en.length;bt+=1){for(Hr.push(""),rt=0;rt<en[bt].length;rt+=1)jt=en[bt][rt],Ut=en[bt][rt-1],kr=en[bt][rt+1],W(jt)?(Yt=Ye(jt,Ut,kr),Hr[bt]+=Yt!==-1?String.fromCharCode(a[jt.charCodeAt(0)][Yt]):jt):Hr[bt]+=jt;Hr[bt]=Ne(Hr[bt])}return Hr.join(" ")},wt=n.__arabicParser__.processArabic=n.processArabic=function(){var pt,bt=typeof arguments[0]=="string"?arguments[0]:arguments[0].text,rt=[];if(Array.isArray(bt)){var Yt=0;for(rt=[],Yt=0;Yt<bt.length;Yt+=1)Array.isArray(bt[Yt])?rt.push([ce(bt[Yt][0]),bt[Yt][1],bt[Yt][2]]):rt.push([ce(bt[Yt])]);pt=rt}else pt=ce(bt);return typeof arguments[0]=="string"?pt:(arguments[0].text=pt,arguments[0])};n.events.push(["preProcessText",wt])}(Xn.API),Xn.API.autoPrint=function(n){var a;return(n=n||{}).variant=n.variant||"non-conform",n.variant==="javascript"?this.addJS("print({});"):(this.internal.events.subscribe("postPutResources",function(){a=this.internal.newObject(),this.internal.out("<<"),this.internal.out("/S /Named"),this.internal.out("/Type /Action"),this.internal.out("/N /Print"),this.internal.out(">>"),this.internal.out("endobj")}),this.internal.events.subscribe("putCatalog",function(){this.internal.out("/OpenAction "+a+" 0 R")})),this},function(n){var a=function(){var s=void 0;Object.defineProperty(this,"pdf",{get:function(){return s},set:function(O){s=O}});var c=150;Object.defineProperty(this,"width",{get:function(){return c},set:function(O){c=isNaN(O)||Number.isInteger(O)===!1||O<0?150:O,this.getContext("2d").pageWrapXEnabled&&(this.getContext("2d").pageWrapX=c+1)}});var d=300;Object.defineProperty(this,"height",{get:function(){return d},set:function(O){d=isNaN(O)||Number.isInteger(O)===!1||O<0?300:O,this.getContext("2d").pageWrapYEnabled&&(this.getContext("2d").pageWrapY=d+1)}});var m=[];Object.defineProperty(this,"childNodes",{get:function(){return m},set:function(O){m=O}});var W={};Object.defineProperty(this,"style",{get:function(){return W},set:function(O){W=O}}),Object.defineProperty(this,"parentNode",{})};a.prototype.getContext=function(s,c){var d;if((s=s||"2d")!=="2d")return null;for(d in c)this.pdf.context2d.hasOwnProperty(d)&&(this.pdf.context2d[d]=c[d]);return this.pdf.context2d._canvas=this,this.pdf.context2d},a.prototype.toDataURL=function(){throw new Error("toDataURL is not implemented.")},n.events.push(["initialized",function(){this.canvas=new a,this.canvas.pdf=this}])}(Xn.API),function(n){var a={left:0,top:0,bottom:0,right:0},s=!1,c=function(){this.internal.__cell__===void 0&&(this.internal.__cell__={},this.internal.__cell__.padding=3,this.internal.__cell__.headerFunction=void 0,this.internal.__cell__.margins=Object.assign({},a),this.internal.__cell__.margins.width=this.getPageWidth(),d.call(this))},d=function(){this.internal.__cell__.lastCell=new m,this.internal.__cell__.pages=1},m=function(){var $=arguments[0];Object.defineProperty(this,"x",{enumerable:!0,get:function(){return $},set:function(pt){$=pt}});var J=arguments[1];Object.defineProperty(this,"y",{enumerable:!0,get:function(){return J},set:function(pt){J=pt}});var he=arguments[2];Object.defineProperty(this,"width",{enumerable:!0,get:function(){return he},set:function(pt){he=pt}});var Ne=arguments[3];Object.defineProperty(this,"height",{enumerable:!0,get:function(){return Ne},set:function(pt){Ne=pt}});var Ye=arguments[4];Object.defineProperty(this,"text",{enumerable:!0,get:function(){return Ye},set:function(pt){Ye=pt}});var ce=arguments[5];Object.defineProperty(this,"lineNumber",{enumerable:!0,get:function(){return ce},set:function(pt){ce=pt}});var wt=arguments[6];return Object.defineProperty(this,"align",{enumerable:!0,get:function(){return wt},set:function(pt){wt=pt}}),this};m.prototype.clone=function(){return new m(this.x,this.y,this.width,this.height,this.text,this.lineNumber,this.align)},m.prototype.toArray=function(){return[this.x,this.y,this.width,this.height,this.text,this.lineNumber,this.align]},n.setHeaderFunction=function($){return c.call(this),this.internal.__cell__.headerFunction=typeof $=="function"?$:void 0,this},n.getTextDimensions=function($,J){c.call(this);var he=(J=J||{}).fontSize||this.getFontSize(),Ne=J.font||this.getFont(),Ye=J.scaleFactor||this.internal.scaleFactor,ce=0,wt=0,pt=0,bt=this;if(!Array.isArray($)&&typeof $!="string"){if(typeof $!="number")throw new Error("getTextDimensions expects text-parameter to be of type String or type Number or an Array of Strings.");$=String($)}var rt=J.maxWidth;rt>0?typeof $=="string"?$=this.splitTextToSize($,rt):Object.prototype.toString.call($)==="[object Array]"&&($=$.reduce(function(jt,Ut){return jt.concat(bt.splitTextToSize(Ut,rt))},[])):$=Array.isArray($)?$:[$];for(var Yt=0;Yt<$.length;Yt++)ce<(pt=this.getStringUnitWidth($[Yt],{font:Ne})*he)&&(ce=pt);return ce!==0&&(wt=$.length),{w:ce/=Ye,h:Math.max((wt*he*this.getLineHeightFactor()-he*(this.getLineHeightFactor()-1))/Ye,0)}},n.cellAddPage=function(){c.call(this),this.addPage();var $=this.internal.__cell__.margins||a;return this.internal.__cell__.lastCell=new m($.left,$.top,void 0,void 0),this.internal.__cell__.pages+=1,this};var W=n.cell=function(){var $;$=arguments[0]instanceof m?arguments[0]:new m(arguments[0],arguments[1],arguments[2],arguments[3],arguments[4],arguments[5]),c.call(this);var J=this.internal.__cell__.lastCell,he=this.internal.__cell__.padding,Ne=this.internal.__cell__.margins||a,Ye=this.internal.__cell__.tableHeaderRow,ce=this.internal.__cell__.printHeaders;return J.lineNumber!==void 0&&(J.lineNumber===$.lineNumber?($.x=(J.x||0)+(J.width||0),$.y=J.y||0):J.y+J.height+$.height+Ne.bottom>this.getPageHeight()?(this.cellAddPage(),$.y=Ne.top,ce&&Ye&&(this.printHeaderRow($.lineNumber,!0),$.y+=Ye[0].height)):$.y=J.y+J.height||$.y),$.text[0]!==void 0&&(this.rect($.x,$.y,$.width,$.height,s===!0?"FD":void 0),$.align==="right"?this.text($.text,$.x+$.width-he,$.y+he,{align:"right",baseline:"top"}):$.align==="center"?this.text($.text,$.x+$.width/2,$.y+he,{align:"center",baseline:"top",maxWidth:$.width-he-he}):this.text($.text,$.x+he,$.y+he,{align:"left",baseline:"top",maxWidth:$.width-he-he})),this.internal.__cell__.lastCell=$,this};n.table=function($,J,he,Ne,Ye){if(c.call(this),!he)throw new Error("No data for PDF table.");var ce,wt,pt,bt,rt=[],Yt=[],jt=[],Ut={},kr={},en=[],Hr=[],Ar=(Ye=Ye||{}).autoSize||!1,Nt=Ye.printHeaders!==!1,Er=Ye.css&&Ye.css["font-size"]!==void 0?16*Ye.css["font-size"]:Ye.fontSize||12,tt=Ye.margins||Object.assign({width:this.getPageWidth()},a),Ct=typeof Ye.padding=="number"?Ye.padding:3,Xt=Ye.headerBackgroundColor||"#c8c8c8",Gt=Ye.headerTextColor||"#000";if(d.call(this),this.internal.__cell__.printHeaders=Nt,this.internal.__cell__.margins=tt,this.internal.__cell__.table_font_size=Er,this.internal.__cell__.padding=Ct,this.internal.__cell__.headerBackgroundColor=Xt,this.internal.__cell__.headerTextColor=Gt,this.setFontSize(Er),Ne==null)Yt=rt=Object.keys(he[0]),jt=rt.map(function(){return"left"});else if(Array.isArray(Ne)&&(0,Ie.Z)(Ne[0])==="object")for(rt=Ne.map(function(En){return En.name}),Yt=Ne.map(function(En){return En.prompt||En.name||""}),jt=Ne.map(function(En){return En.align||"left"}),ce=0;ce<Ne.length;ce+=1)kr[Ne[ce].name]=.7499990551181103*Ne[ce].width;else Array.isArray(Ne)&&typeof Ne[0]=="string"&&(Yt=rt=Ne,jt=rt.map(function(){return"left"}));if(Ar||Array.isArray(Ne)&&typeof Ne[0]=="string")for(ce=0;ce<rt.length;ce+=1){for(Ut[bt=rt[ce]]=he.map(function(En){return En[bt]}),this.setFont(void 0,"bold"),en.push(this.getTextDimensions(Yt[ce],{fontSize:this.internal.__cell__.table_font_size,scaleFactor:this.internal.scaleFactor}).w),wt=Ut[bt],this.setFont(void 0,"normal"),pt=0;pt<wt.length;pt+=1)en.push(this.getTextDimensions(wt[pt],{fontSize:this.internal.__cell__.table_font_size,scaleFactor:this.internal.scaleFactor}).w);kr[bt]=Math.max.apply(null,en)+Ct+Ct,en=[]}if(Nt){var Ur={};for(ce=0;ce<rt.length;ce+=1)Ur[rt[ce]]={},Ur[rt[ce]].text=Yt[ce],Ur[rt[ce]].align=jt[ce];var Qr=O.call(this,Ur,kr);Hr=rt.map(function(En){return new m($,J,kr[En],Qr,Ur[En].text,void 0,Ur[En].align)}),this.setTableHeaderRow(Hr),this.printHeaderRow(1,!1)}var zr=Ne.reduce(function(En,un){return En[un.name]=un.align,En},{});for(ce=0;ce<he.length;ce+=1){"rowStart"in Ye&&Ye.rowStart instanceof Function&&Ye.rowStart({row:ce,data:he[ce]},this);var Fr=O.call(this,he[ce],kr);for(pt=0;pt<rt.length;pt+=1){var $r=he[ce][rt[pt]];"cellStart"in Ye&&Ye.cellStart instanceof Function&&Ye.cellStart({row:ce,col:pt,data:$r},this),W.call(this,new m($,J,kr[rt[pt]],Fr,$r,ce+2,zr[rt[pt]]))}}return this.internal.__cell__.table_x=$,this.internal.__cell__.table_y=J,this};var O=function($,J){var he=this.internal.__cell__.padding,Ne=this.internal.__cell__.table_font_size,Ye=this.internal.scaleFactor;return Object.keys($).map(function(ce){var wt=$[ce];return this.splitTextToSize(wt.hasOwnProperty("text")?wt.text:wt,J[ce]-he-he)},this).map(function(ce){return this.getLineHeightFactor()*ce.length*Ne/Ye+he+he},this).reduce(function(ce,wt){return Math.max(ce,wt)},0)};n.setTableHeaderRow=function($){c.call(this),this.internal.__cell__.tableHeaderRow=$},n.printHeaderRow=function($,J){if(c.call(this),!this.internal.__cell__.tableHeaderRow)throw new Error("Property tableHeaderRow does not exist.");var he;if(s=!0,typeof this.internal.__cell__.headerFunction=="function"){var Ne=this.internal.__cell__.headerFunction(this,this.internal.__cell__.pages);this.internal.__cell__.lastCell=new m(Ne[0],Ne[1],Ne[2],Ne[3],void 0,-1)}this.setFont(void 0,"bold");for(var Ye=[],ce=0;ce<this.internal.__cell__.tableHeaderRow.length;ce+=1){he=this.internal.__cell__.tableHeaderRow[ce].clone(),J&&(he.y=this.internal.__cell__.margins.top||0,Ye.push(he)),he.lineNumber=$;var wt=this.getTextColor();this.setTextColor(this.internal.__cell__.headerTextColor),this.setFillColor(this.internal.__cell__.headerBackgroundColor),W.call(this,he),this.setTextColor(wt)}Ye.length>0&&this.setTableHeaderRow(Ye),this.setFont(void 0,"normal"),s=!1}}(Xn.API);var so={italic:["italic","oblique","normal"],oblique:["oblique","italic","normal"],normal:["normal","oblique","italic"]},yu=["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded"],Vo=Ps(yu),tA=[100,200,300,400,500,600,700,800,900],gc=Ps(tA);function ol(n){var a=n.family.replace(/"|'/g,"").toLowerCase(),s=function(m){return so[m=m||"normal"]?m:"normal"}(n.style),c=function(m){return m?typeof m=="number"?m>=100&&m<=900&&m%100==0?m:400:/^\d00$/.test(m)?parseInt(m):m==="bold"?700:400:400}(n.weight),d=function(m){return typeof Vo[m=m||"normal"]=="number"?m:"normal"}(n.stretch);return{family:a,style:s,weight:c,stretch:d,src:n.src||[],ref:n.ref||{name:a,style:[d,s,c].join(" ")}}}function Il(n,a,s,c){var d;for(d=s;d>=0&&d<a.length;d+=c)if(n[a[d]])return n[a[d]];for(d=s;d>=0&&d<a.length;d-=c)if(n[a[d]])return n[a[d]]}var ju={"sans-serif":"helvetica",fixed:"courier",monospace:"courier",terminal:"courier",cursive:"times",fantasy:"times",serif:"times"},Wl={caption:"times",icon:"times",menu:"times","message-box":"times","small-caption":"times","status-bar":"times"};function $l(n){return[n.stretch,n.style,n.weight,n.family].join(" ")}function rA(n){return n.trimLeft()}function l(n,a){for(var s=0;s<n.length;){if(n.charAt(s)===a)return[n.substring(0,s),n.substring(s+1)];s+=1}return null}function e(n){var a=n.match(/^(-[a-z_]|[a-z_])[a-z0-9_-]*/i);return a===null?null:[a[0],n.substring(a[0].length)]}var t,r,i,o,A,h,y,g,F=["times"];function N(n,a,s,c,d){var m=4,W=ue;switch(d){case Xn.API.image_compression.FAST:m=1,W=Ae;break;case Xn.API.image_compression.MEDIUM:m=6,W=Re;break;case Xn.API.image_compression.SLOW:m=9,W=ke}n=function($,J,he,Ne){for(var Ye,ce=$.length/J,wt=new Uint8Array($.length+ce),pt=[q,Ae,ue,Re,ke],bt=0;bt<ce;bt+=1){var rt=bt*J,Yt=$.subarray(rt,rt+J);if(Ne)wt.set(Ne(Yt,he,Ye),rt+bt);else{for(var jt=pt.length,Ut=[],kr=0;kr<jt;kr+=1)Ut[kr]=pt[kr](Yt,he,Ye);var en=ft(Ut.concat());wt.set(Ut[en],rt+bt)}Ye=Yt}return wt}(n,a,Math.ceil(s*c/8),W);var O=Kn(n,{level:m});return Xn.API.__addimage__.arrayBufferToBinaryString(O)}function q(n){var a=Array.apply([],n);return a.unshift(0),a}function Ae(n,a){var s=n.length,c=[];c[0]=1;for(var d=0;d<s;d+=1){var m=n[d-a]||0;c[d+1]=n[d]-m+256&255}return c}function ue(n,a,s){var c=n.length,d=[];d[0]=2;for(var m=0;m<c;m+=1){var W=s&&s[m]||0;d[m+1]=n[m]-W+256&255}return d}function Re(n,a,s){var c=n.length,d=[];d[0]=3;for(var m=0;m<c;m+=1){var W=n[m-a]||0,O=s&&s[m]||0;d[m+1]=n[m]+256-(W+O>>>1)&255}return d}function ke(n,a,s){var c=n.length,d=[];d[0]=4;for(var m=0;m<c;m+=1){var W=it(n[m-a]||0,s&&s[m]||0,s&&s[m-a]||0);d[m+1]=n[m]-W+256&255}return d}function it(n,a,s){if(n===a&&a===s)return n;var c=Math.abs(a-s),d=Math.abs(n-s),m=Math.abs(n+a-s-s);return c<=d&&c<=m?n:d<=m?a:s}function ft(n){var a=n.map(function(s){return s.reduce(function(c,d){return c+Math.abs(d)},0)});return a.indexOf(Math.min.apply(null,a))}function _t(n,a,s){var c=a*s,d=Math.floor(c/8),m=16-(c-8*d+s),W=(1<<s)-1;return ir(n,d)>>m&W}function zt(n,a,s,c){var d=s*c,m=Math.floor(d/8),W=16-(d-8*m+c),O=(1<<c)-1,$=(a&O)<<W;(function(J,he,Ne){if(he+1<J.byteLength)J.setUint16(he,Ne,!1);else{var Ye=Ne>>8&255;J.setUint8(he,Ye)}})(n,m,ir(n,m)&~(O<<W)&65535|$)}function ir(n,a){return a+1<n.byteLength?n.getUint16(a,!1):n.getUint8(a)<<8}function Nr(n){var a=0;if(n[a++]!==71||n[a++]!==73||n[a++]!==70||n[a++]!==56||(n[a++]+1&253)!=56||n[a++]!==97)throw new Error("Invalid GIF 87a/89a header.");var s=n[a++]|n[a++]<<8,c=n[a++]|n[a++]<<8,d=n[a++],m=d>>7,W=1<<1+(7&d);n[a++],n[a++];var O=null,$=null;m&&(O=a,$=W,a+=3*W);var J=!0,he=[],Ne=0,Ye=null,ce=0,wt=null;for(this.width=s,this.height=c;J&&a<n.length;)switch(n[a++]){case 33:switch(n[a++]){case 255:if(n[a]!==11||n[a+1]==78&&n[a+2]==69&&n[a+3]==84&&n[a+4]==83&&n[a+5]==67&&n[a+6]==65&&n[a+7]==80&&n[a+8]==69&&n[a+9]==50&&n[a+10]==46&&n[a+11]==48&&n[a+12]==3&&n[a+13]==1&&n[a+16]==0)a+=14,wt=n[a++]|n[a++]<<8,a++;else for(a+=12;;){if(!((tt=n[a++])>=0))throw Error("Invalid block size");if(tt===0)break;a+=tt}break;case 249:if(n[a++]!==4||n[a+4]!==0)throw new Error("Invalid graphics extension block.");var pt=n[a++];Ne=n[a++]|n[a++]<<8,Ye=n[a++],1&pt||(Ye=null),ce=pt>>2&7,a++;break;case 254:for(;;){if(!((tt=n[a++])>=0))throw Error("Invalid block size");if(tt===0)break;a+=tt}break;default:throw new Error("Unknown graphic control label: 0x"+n[a-1].toString(16))}break;case 44:var bt=n[a++]|n[a++]<<8,rt=n[a++]|n[a++]<<8,Yt=n[a++]|n[a++]<<8,jt=n[a++]|n[a++]<<8,Ut=n[a++],kr=Ut>>6&1,en=1<<1+(7&Ut),Hr=O,Ar=$,Nt=!1;Ut>>7&&(Nt=!0,Hr=a,Ar=en,a+=3*en);var Er=a;for(a++;;){var tt;if(!((tt=n[a++])>=0))throw Error("Invalid block size");if(tt===0)break;a+=tt}he.push({x:bt,y:rt,width:Yt,height:jt,has_local_palette:Nt,palette_offset:Hr,palette_size:Ar,data_offset:Er,data_length:a-Er,transparent_index:Ye,interlaced:!!kr,delay:Ne,disposal:ce});break;case 59:J=!1;break;default:throw new Error("Unknown gif block: 0x"+n[a-1].toString(16))}this.numFrames=function(){return he.length},this.loopCount=function(){return wt},this.frameInfo=function(Ct){if(Ct<0||Ct>=he.length)throw new Error("Frame index out of range.");return he[Ct]},this.decodeAndBlitFrameBGRA=function(Ct,Xt){var Gt=this.frameInfo(Ct),Ur=Gt.width*Gt.height,Qr=new Uint8Array(Ur);or(n,Gt.data_offset,Qr,Ur);var zr=Gt.palette_offset,Fr=Gt.transparent_index;Fr===null&&(Fr=256);var $r=Gt.width,En=s-$r,un=$r,et=4*(Gt.y*s+Gt.x),Rt=4*((Gt.y+Gt.height)*s+Gt.x),Ht=et,tr=4*En;Gt.interlaced===!0&&(tr+=4*s*7);for(var gr=8,Lr=0,jr=Qr.length;Lr<jr;++Lr){var Mr=Qr[Lr];if(un===0&&(un=$r,(Ht+=tr)>=Rt&&(tr=4*En+4*s*(gr-1),Ht=et+($r+En)*(gr<<1),gr>>=1)),Mr===Fr)Ht+=4;else{var an=n[zr+3*Mr],vn=n[zr+3*Mr+1],Hn=n[zr+3*Mr+2];Xt[Ht++]=Hn,Xt[Ht++]=vn,Xt[Ht++]=an,Xt[Ht++]=255}--un}},this.decodeAndBlitFrameRGBA=function(Ct,Xt){var Gt=this.frameInfo(Ct),Ur=Gt.width*Gt.height,Qr=new Uint8Array(Ur);or(n,Gt.data_offset,Qr,Ur);var zr=Gt.palette_offset,Fr=Gt.transparent_index;Fr===null&&(Fr=256);var $r=Gt.width,En=s-$r,un=$r,et=4*(Gt.y*s+Gt.x),Rt=4*((Gt.y+Gt.height)*s+Gt.x),Ht=et,tr=4*En;Gt.interlaced===!0&&(tr+=4*s*7);for(var gr=8,Lr=0,jr=Qr.length;Lr<jr;++Lr){var Mr=Qr[Lr];if(un===0&&(un=$r,(Ht+=tr)>=Rt&&(tr=4*En+4*s*(gr-1),Ht=et+($r+En)*(gr<<1),gr>>=1)),Mr===Fr)Ht+=4;else{var an=n[zr+3*Mr],vn=n[zr+3*Mr+1],Hn=n[zr+3*Mr+2];Xt[Ht++]=an,Xt[Ht++]=vn,Xt[Ht++]=Hn,Xt[Ht++]=255}--un}}}function or(n,a,s,c){for(var d=n[a++],m=1<<d,W=m+1,O=W+1,$=d+1,J=(1<<$)-1,he=0,Ne=0,Ye=0,ce=n[a++],wt=new Int32Array(4096),pt=null;;){for(;he<16&&ce!==0;)Ne|=n[a++]<<he,he+=8,ce===1?ce=n[a++]:--ce;if(he<$)break;var bt=Ne&J;if(Ne>>=$,he-=$,bt!==m){if(bt===W)break;for(var rt=bt<O?bt:pt,Yt=0,jt=rt;jt>m;)jt=wt[jt]>>8,++Yt;var Ut=jt;if(Ye+Yt+(rt!==bt?1:0)>c)return void Us.log("Warning, gif stream longer than expected.");s[Ye++]=Ut;var kr=Ye+=Yt;for(rt!==bt&&(s[Ye++]=Ut),jt=rt;Yt--;)jt=wt[jt],s[--kr]=255&jt,jt>>=8;pt!==null&&O<4096&&(wt[O++]=pt<<8|Ut,O>=J+1&&$<12&&(++$,J=J<<1|1)),pt=bt}else O=W+1,J=(1<<($=d+1))-1,pt=null}return Ye!==c&&Us.log("Warning, gif stream shorter than expected."),s}function Cr(n){var a,s,c,d,m,W=Math.floor,O=new Array(64),$=new Array(64),J=new Array(64),he=new Array(64),Ne=new Array(65535),Ye=new Array(65535),ce=new Array(64),wt=new Array(64),pt=[],bt=0,rt=7,Yt=new Array(64),jt=new Array(64),Ut=new Array(64),kr=new Array(256),en=new Array(2048),Hr=[0,1,5,6,14,15,27,28,2,4,7,13,16,26,29,42,3,8,12,17,25,30,41,43,9,11,18,24,31,40,44,53,10,19,23,32,39,45,52,54,20,22,33,38,46,51,55,60,21,34,37,47,50,56,59,61,35,36,48,49,57,58,62,63],Ar=[0,0,1,5,1,1,1,1,1,1,0,0,0,0,0,0,0],Nt=[0,1,2,3,4,5,6,7,8,9,10,11],Er=[0,0,2,1,3,3,2,4,3,5,5,4,4,0,0,1,125],tt=[1,2,3,0,4,17,5,18,33,49,65,6,19,81,97,7,34,113,20,50,129,145,161,8,35,66,177,193,21,82,209,240,36,51,98,114,130,9,10,22,23,24,25,26,37,38,39,40,41,42,52,53,54,55,56,57,58,67,68,69,70,71,72,73,74,83,84,85,86,87,88,89,90,99,100,101,102,103,104,105,106,115,116,117,118,119,120,121,122,131,132,133,134,135,136,137,138,146,147,148,149,150,151,152,153,154,162,163,164,165,166,167,168,169,170,178,179,180,181,182,183,184,185,186,194,195,196,197,198,199,200,201,202,210,211,212,213,214,215,216,217,218,225,226,227,228,229,230,231,232,233,234,241,242,243,244,245,246,247,248,249,250],Ct=[0,0,3,1,1,1,1,1,1,1,1,1,0,0,0,0,0],Xt=[0,1,2,3,4,5,6,7,8,9,10,11],Gt=[0,0,2,1,2,4,4,3,4,7,5,4,4,0,1,2,119],Ur=[0,1,2,3,17,4,5,33,49,6,18,65,81,7,97,113,19,34,50,129,8,20,66,145,161,177,193,9,35,51,82,240,21,98,114,209,10,22,36,52,225,37,241,23,24,25,26,38,39,40,41,42,53,54,55,56,57,58,67,68,69,70,71,72,73,74,83,84,85,86,87,88,89,90,99,100,101,102,103,104,105,106,115,116,117,118,119,120,121,122,130,131,132,133,134,135,136,137,138,146,147,148,149,150,151,152,153,154,162,163,164,165,166,167,168,169,170,178,179,180,181,182,183,184,185,186,194,195,196,197,198,199,200,201,202,210,211,212,213,214,215,216,217,218,226,227,228,229,230,231,232,233,234,242,243,244,245,246,247,248,249,250];function Qr(et,Rt){for(var Ht=0,tr=0,gr=new Array,Lr=1;Lr<=16;Lr++){for(var jr=1;jr<=et[Lr];jr++)gr[Rt[tr]]=[],gr[Rt[tr]][0]=Ht,gr[Rt[tr]][1]=Lr,tr++,Ht++;Ht*=2}return gr}function zr(et){for(var Rt=et[0],Ht=et[1]-1;Ht>=0;)Rt&1<<Ht&&(bt|=1<<rt),Ht--,--rt<0&&(bt==255?(Fr(255),Fr(0)):Fr(bt),rt=7,bt=0)}function Fr(et){pt.push(et)}function $r(et){Fr(et>>8&255),Fr(255&et)}function En(et,Rt,Ht,tr,gr){for(var Lr,jr=gr[0],Mr=gr[240],an=function(_n,vi){var Gn,ls,xi,Zs,es,ts,pa,us,wi,Hi,bi=0;for(wi=0;wi<8;++wi){Gn=_n[bi],ls=_n[bi+1],xi=_n[bi+2],Zs=_n[bi+3],es=_n[bi+4],ts=_n[bi+5],pa=_n[bi+6];var La=Gn+(us=_n[bi+7]),qs=Gn-us,ui=ls+pa,rs=ls-pa,ya=xi+ts,ki=xi-ts,Ls=Zs+es,ns=Zs-es,Co=La+Ls,iA=La-Ls,_a=ui+ya,Vi=ui-ya;_n[bi]=Co+_a,_n[bi+4]=Co-_a;var ra=.707106781*(Vi+iA);_n[bi+2]=iA+ra,_n[bi+6]=iA-ra;var Qf=.382683433*((Co=ns+ki)-(Vi=rs+qs)),Al=.5411961*Co+Qf,R0=1.306562965*Vi+Qf,Gc=.707106781*(_a=ki+rs),Ri=qs+Gc,U0=qs-Gc;_n[bi+5]=U0+Al,_n[bi+3]=U0-Al,_n[bi+1]=Ri+R0,_n[bi+7]=Ri-R0,bi+=8}for(bi=0,wi=0;wi<8;++wi){Gn=_n[bi],ls=_n[bi+8],xi=_n[bi+16],Zs=_n[bi+24],es=_n[bi+32],ts=_n[bi+40],pa=_n[bi+48];var P0=Gn+(us=_n[bi+56]),zu=Gn-us,Gu=ls+pa,fo=ls-pa,BA=xi+ts,HA=xi-ts,Hf=Zs+es,Ph=Zs-es,mc=P0+Hf,Vc=P0-Hf,vc=Gu+BA,yc=Gu-BA;_n[bi]=mc+vc,_n[bi+32]=mc-vc;var Vu=.707106781*(yc+Vc);_n[bi+16]=Vc+Vu,_n[bi+48]=Vc-Vu;var jf=.382683433*((mc=Ph+HA)-(yc=fo+zu)),Wc=.5411961*mc+jf,Kf=1.306562965*yc+jf,Hd=.707106781*(vc=HA+fo),jd=zu+Hd,Kd=zu-Hd;_n[bi+40]=Kd+Wc,_n[bi+24]=Kd-Wc,_n[bi+8]=jd+Kf,_n[bi+56]=jd-Kf,bi++}for(wi=0;wi<64;++wi)Hi=_n[wi]*vi[wi],ce[wi]=Hi>0?Hi+.5|0:Hi-.5|0;return ce}(et,Rt),vn=0;vn<64;++vn)wt[Hr[vn]]=an[vn];var Hn=wt[0]-Ht;Ht=wt[0],Hn==0?zr(tr[0]):(zr(tr[Ye[Lr=32767+Hn]]),zr(Ne[Lr]));for(var jn=63;jn>0&&wt[jn]==0;)jn--;if(jn==0)return zr(jr),Ht;for(var Xr,Qt=1;Qt<=jn;){for(var Ss=Qt;wt[Qt]==0&&Qt<=jn;)++Qt;var As=Qt-Ss;if(As>=16){Xr=As>>4;for(var Ti=1;Ti<=Xr;++Ti)zr(Mr);As&=15}Lr=32767+wt[Qt],zr(gr[(As<<4)+Ye[Lr]]),zr(Ne[Lr]),Qt++}return jn!=63&&zr(jr),Ht}function un(et){et=Math.min(Math.max(et,1),100),m!=et&&(function(Rt){for(var Ht=[16,11,10,16,24,40,51,61,12,12,14,19,26,58,60,55,14,13,16,24,40,57,69,56,14,17,22,29,51,87,80,62,18,22,37,56,68,109,103,77,24,35,55,64,81,104,113,92,49,64,78,87,103,121,120,101,72,92,95,98,112,100,103,99],tr=0;tr<64;tr++){var gr=W((Ht[tr]*Rt+50)/100);gr=Math.min(Math.max(gr,1),255),O[Hr[tr]]=gr}for(var Lr=[17,18,24,47,99,99,99,99,18,21,26,66,99,99,99,99,24,26,56,99,99,99,99,99,47,66,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99],jr=0;jr<64;jr++){var Mr=W((Lr[jr]*Rt+50)/100);Mr=Math.min(Math.max(Mr,1),255),$[Hr[jr]]=Mr}for(var an=[1,1.387039845,1.306562965,1.175875602,1,.785694958,.5411961,.275899379],vn=0,Hn=0;Hn<8;Hn++)for(var jn=0;jn<8;jn++)J[vn]=1/(O[Hr[vn]]*an[Hn]*an[jn]*8),he[vn]=1/($[Hr[vn]]*an[Hn]*an[jn]*8),vn++}(et<50?Math.floor(5e3/et):Math.floor(200-2*et)),m=et)}this.encode=function(et,Rt){Rt&&un(Rt),pt=new Array,bt=0,rt=7,$r(65496),$r(65504),$r(16),Fr(74),Fr(70),Fr(73),Fr(70),Fr(0),Fr(1),Fr(1),Fr(0),$r(1),$r(1),Fr(0),Fr(0),function(){$r(65499),$r(132),Fr(0);for(var ls=0;ls<64;ls++)Fr(O[ls]);Fr(1);for(var xi=0;xi<64;xi++)Fr($[xi])}(),function(ls,xi){$r(65472),$r(17),Fr(8),$r(xi),$r(ls),Fr(3),Fr(1),Fr(17),Fr(0),Fr(2),Fr(17),Fr(1),Fr(3),Fr(17),Fr(1)}(et.width,et.height),function(){$r(65476),$r(418),Fr(0);for(var ls=0;ls<16;ls++)Fr(Ar[ls+1]);for(var xi=0;xi<=11;xi++)Fr(Nt[xi]);Fr(16);for(var Zs=0;Zs<16;Zs++)Fr(Er[Zs+1]);for(var es=0;es<=161;es++)Fr(tt[es]);Fr(1);for(var ts=0;ts<16;ts++)Fr(Ct[ts+1]);for(var pa=0;pa<=11;pa++)Fr(Xt[pa]);Fr(17);for(var us=0;us<16;us++)Fr(Gt[us+1]);for(var wi=0;wi<=161;wi++)Fr(Ur[wi])}(),$r(65498),$r(12),Fr(3),Fr(1),Fr(0),Fr(2),Fr(17),Fr(3),Fr(17),Fr(0),Fr(63),Fr(0);var Ht=0,tr=0,gr=0;bt=0,rt=7,this.encode.displayName="_encode_";for(var Lr,jr,Mr,an,vn,Hn,jn,Xr,Qt,Ss=et.data,As=et.width,Ti=et.height,_n=4*As,vi=0;vi<Ti;){for(Lr=0;Lr<_n;){for(vn=_n*vi+Lr,jn=-1,Xr=0,Qt=0;Qt<64;Qt++)Hn=vn+(Xr=Qt>>3)*_n+(jn=4*(7&Qt)),vi+Xr>=Ti&&(Hn-=_n*(vi+1+Xr-Ti)),Lr+jn>=_n&&(Hn-=Lr+jn-_n+4),jr=Ss[Hn++],Mr=Ss[Hn++],an=Ss[Hn++],Yt[Qt]=(en[jr]+en[Mr+256|0]+en[an+512|0]>>16)-128,jt[Qt]=(en[jr+768|0]+en[Mr+1024|0]+en[an+1280|0]>>16)-128,Ut[Qt]=(en[jr+1280|0]+en[Mr+1536|0]+en[an+1792|0]>>16)-128;Ht=En(Yt,J,Ht,a,c),tr=En(jt,he,tr,s,d),gr=En(Ut,he,gr,s,d),Lr+=32}vi+=8}if(rt>=0){var Gn=[];Gn[1]=rt+1,Gn[0]=(1<<rt+1)-1,zr(Gn)}return $r(65497),new Uint8Array(pt)},n=n||50,function(){for(var et=String.fromCharCode,Rt=0;Rt<256;Rt++)kr[Rt]=et(Rt)}(),a=Qr(Ar,Nt),s=Qr(Ct,Xt),c=Qr(Er,tt),d=Qr(Gt,Ur),function(){for(var et=1,Rt=2,Ht=1;Ht<=15;Ht++){for(var tr=et;tr<Rt;tr++)Ye[32767+tr]=Ht,Ne[32767+tr]=[],Ne[32767+tr][1]=Ht,Ne[32767+tr][0]=tr;for(var gr=-(Rt-1);gr<=-et;gr++)Ye[32767+gr]=Ht,Ne[32767+gr]=[],Ne[32767+gr][1]=Ht,Ne[32767+gr][0]=Rt-1+gr;et<<=1,Rt<<=1}}(),function(){for(var et=0;et<256;et++)en[et]=19595*et,en[et+256|0]=38470*et,en[et+512|0]=7471*et+32768,en[et+768|0]=-11059*et,en[et+1024|0]=-21709*et,en[et+1280|0]=32768*et+8421375,en[et+1536|0]=-27439*et,en[et+1792|0]=-5329*et}(),un(n)}function br(n,a){if(this.pos=0,this.buffer=n,this.datav=new DataView(n.buffer),this.is_with_alpha=!!a,this.bottom_up=!0,this.flag=String.fromCharCode(this.buffer[0])+String.fromCharCode(this.buffer[1]),this.pos+=2,["BM","BA","CI","CP","IC","PT"].indexOf(this.flag)===-1)throw new Error("Invalid BMP File");this.parseHeader(),this.parseBGR()}function pr(n){function a(Nt){if(!Nt)throw Error("assert :P")}function s(Nt,Er,tt){for(var Ct=0;4>Ct;Ct++)if(Nt[Er+Ct]!=tt.charCodeAt(Ct))return!0;return!1}function c(Nt,Er,tt,Ct,Xt){for(var Gt=0;Gt<Xt;Gt++)Nt[Er+Gt]=tt[Ct+Gt]}function d(Nt,Er,tt,Ct){for(var Xt=0;Xt<Ct;Xt++)Nt[Er+Xt]=tt}function m(Nt){return new Int32Array(Nt)}function W(Nt,Er){for(var tt=[],Ct=0;Ct<Nt;Ct++)tt.push(new Er);return tt}function O(Nt,Er){var tt=[];return function Ct(Xt,Gt,Ur){for(var Qr=Ur[Gt],zr=0;zr<Qr&&(Xt.push(Ur.length>Gt+1?[]:new Er),!(Ur.length<Gt+1));zr++)Ct(Xt[zr],Gt+1,Ur)}(tt,0,Nt),tt}var $=function(){var Nt=this;function Er(b,U){for(var ne=1<<U-1>>>0;b≠)ne>>>=1;return ne?(b&ne-1)+ne:b}function tt(b,U,ne,we,Ge){a(!(we%ne));do b[U+(we-=ne)]=Ge;while(0<we)}function Ct(b,U,ne,we,Ge){if(a(2328>=Ge),512>=Ge)var Xe=m(512);else if((Xe=m(Ge))==null)return 0;return function(Je,ot,dt,It,sr,Dr){var Tt,hr,Br=ot,Jr=1<<dt,Ir=m(16),rn=m(16);for(a(sr!=0),a(It!=null),a(Je!=null),a(0<dt),hr=0;hr<sr;++hr){if(15<It[hr])return 0;++Ir[It[hr]]}if(Ir[0]==sr)return 0;for(rn[1]=0,Tt=1;15>Tt;++Tt){if(Ir[Tt]>1<<Tt)return 0;rn[Tt+1]=rn[Tt]+Ir[Tt]}for(hr=0;hr<sr;++hr)Tt=It[hr],0<It[hr]&&(Dr[rn[Tt]++]=hr);if(rn[15]==1)return(It=new Xt).g=0,It.value=Dr[0],tt(Je,Br,1,Jr,It),Jr;var sn,yn=-1,cn=Jr-1,ci=0,Jn=1,hs=1,si=1<<dt;for(hr=0,Tt=1,sr=2;Tt<=dt;++Tt,sr<<=1){if(Jn+=hs<<=1,0>(hs-=Ir[Tt]))return 0;for(;0<Ir[Tt];--Ir[Tt])(It=new Xt).g=Tt,It.value=Dr[hr++],tt(Je,Br+ci,sr,si,It),ci=Er(ci,Tt)}for(Tt=dt+1,sr=2;15>=Tt;++Tt,sr<<=1){if(Jn+=hs<<=1,0>(hs-=Ir[Tt]))return 0;for(;0<Ir[Tt];--Ir[Tt]){if(It=new Xt,(ci&cn)!=yn){for(Br+=si,sn=1<<(yn=Tt)-dt;15>yn&&!(0>=(sn-=Ir[yn]));)++yn,sn<<=1;Jr+=si=1<<(sn=yn-dt),Je[ot+(yn=ci&cn)].g=sn+dt,Je[ot+yn].value=Br-ot-yn}It.g=Tt-dt,It.value=Dr[hr++],tt(Je,Br+(ci>>dt),sr,si,It),ci=Er(ci,Tt)}}return Jn!=2*rn[15]-1?0:Jr}(b,U,ne,we,Ge,Xe)}function Xt(){this.value=this.g=0}function Gt(){this.value=this.g=0}function Ur(){this.G=W(5,Xt),this.H=m(5),this.jc=this.Qb=this.qb=this.nd=0,this.pd=W(ad,Gt)}function Qr(b,U,ne,we){a(b!=null),a(U!=null),a(2147483648>we),b.Ca=254,b.I=0,b.b=-8,b.Ka=0,b.oa=U,b.pa=ne,b.Jd=U,b.Yc=ne+we,b.Zc=4<=we?ne+we-4+1:ne,jr(b)}function zr(b,U){for(var ne=0;0<U--;)ne|=an(b,128)<<U;return ne}function Fr(b,U){var ne=zr(b,U);return Mr(b)?-ne:ne}function $r(b,U,ne,we){var Ge,Xe=0;for(a(b!=null),a(U!=null),a(4294967288>we),b.Sb=we,b.Ra=0,b.u=0,b.h=0,4<we&&(we=4),Ge=0;Ge<we;++Ge)Xe+=U[ne+Ge]<<8*Ge;b.Ra=Xe,b.bb=we,b.oa=U,b.pa=ne}function En(b){for(;8<=b.u&&b.bb<b.Sb;)b.Ra>>>=8,b.Ra+=b.oa[b.pa+b.bb]<<Hh-8>>>0,++b.bb,b.u-=8;tr(b)&&(b.h=1,b.u=0)}function un(b,U){if(a(0<=U),!b.h&&U<=wu){var ne=Ht(b)&_u[U];return b.u+=U,En(b),ne}return b.h=1,b.u=0}function et(){this.b=this.Ca=this.I=0,this.oa=[],this.pa=0,this.Jd=[],this.Yc=0,this.Zc=[],this.Ka=0}function Rt(){this.Ra=0,this.oa=[],this.h=this.u=this.bb=this.Sb=this.pa=0}function Ht(b){return b.Ra>>>(b.u&Hh-1)>>>0}function tr(b){return a(b.bb<=b.Sb),b.h||b.bb==b.Sb&&b.u>Hh}function gr(b,U){b.u=U,b.h=tr(b)}function Lr(b){b.u>=K0&&(a(b.u>=K0),En(b))}function jr(b){a(b!=null&&b.oa!=null),b.pa<b.Zc?(b.I=(b.oa[b.pa++]|b.I<<8)>>>0,b.b+=8):(a(b!=null&&b.oa!=null),b.pa<b.Yc?(b.b+=8,b.I=b.oa[b.pa++]|b.I<<8):b.Ka?b.b=0:(b.I<<=8,b.b+=8,b.Ka=1))}function Mr(b){return zr(b,1)}function an(b,U){var ne=b.Ca;0>b.b&&jr(b);var we=b.b,Ge=ne*U>>>8,Xe=(b.I>>>we>Ge)+0;for(Xe?(ne-=Ge,b.I-=Ge+1<<we>>>0):ne=Ge+1,we=ne,Ge=0;256<=we;)Ge+=8,we>>=8;return we=7^Ge+jh[we],b.b-=we,b.Ca=(ne<<we)-1,Xe}function vn(b,U,ne){b[U+0]=ne>>24&255,b[U+1]=ne>>16&255,b[U+2]=ne>>8&255,b[U+3]=255&ne}function Hn(b,U){return b[U+0]|b[U+1]<<8}function jn(b,U){return Hn(b,U)|b[U+2]<<16}function Xr(b,U){return Hn(b,U)|Hn(b,U+2)<<16}function Qt(b,U){var ne=1<<U;return a(b!=null),a(0<U),b.X=m(ne),b.X==null?0:(b.Mb=32-U,b.Xa=U,1)}function Ss(b,U){a(b!=null),a(U!=null),a(b.Xa==U.Xa),c(U.X,0,b.X,0,1<<U.Xa)}function As(){this.X=[],this.Xa=this.Mb=0}function Ti(b,U,ne,we){a(ne!=null),a(we!=null);var Ge=ne[0],Xe=we[0];return Ge==0&&(Ge=(b*Xe+U/2)/U),Xe==0&&(Xe=(U*Ge+b/2)/b),0>=Ge||0>=Xe?0:(ne[0]=Ge,we[0]=Xe,1)}function _n(b,U){return b+(1<<U)-1>>>U}function vi(b,U){return((4278255360&b)+(4278255360&U)>>>0&4278255360)+((16711935&b)+(16711935&U)>>>0&16711935)>>>0}function Gn(b,U){Nt[U]=function(ne,we,Ge,Xe,Je,ot,dt){var It;for(It=0;It<Je;++It){var sr=Nt[b](ot[dt+It-1],Ge,Xe+It);ot[dt+It]=vi(ne[we+It],sr)}}}function ls(){this.ud=this.hd=this.jd=0}function xi(b,U){return((4278124286&(b^U))>>>1)+(b&U)>>>0}function Zs(b){return 0<=b&&256>b?b:0>b?0:255<b?255:void 0}function es(b,U){return Zs(b+(b-U+.5>>1))}function ts(b,U,ne){return Math.abs(U-ne)-Math.abs(b-ne)}function pa(b,U,ne,we,Ge,Xe,Je){for(we=Xe[Je-1],ne=0;ne<Ge;++ne)Xe[Je+ne]=we=vi(b[U+ne],we)}function us(b,U,ne,we,Ge){var Xe;for(Xe=0;Xe<ne;++Xe){var Je=b[U+Xe],ot=Je>>8&255,dt=16711935&(dt=(dt=16711935&Je)+((ot<<16)+ot));we[Ge+Xe]=(4278255360&Je)+dt>>>0}}function wi(b,U){U.jd=255&b,U.hd=b>>8&255,U.ud=b>>16&255}function Hi(b,U,ne,we,Ge,Xe){var Je;for(Je=0;Je<we;++Je){var ot=U[ne+Je],dt=ot>>>8,It=ot,sr=255&(sr=(sr=ot>>>16)+((b.jd<<24>>24)*(dt<<24>>24)>>>5));It=255&(It=(It+=(b.hd<<24>>24)*(dt<<24>>24)>>>5)+((b.ud<<24>>24)*(sr<<24>>24)>>>5)),Ge[Xe+Je]=(4278255360&ot)+(sr<<16)+It}}function bi(b,U,ne,we,Ge){Nt[U]=function(Xe,Je,ot,dt,It,sr,Dr,Tt,hr){for(dt=Dr;dt<Tt;++dt)for(Dr=0;Dr<hr;++Dr)It[sr++]=Ge(ot[we(Xe[Je++])])},Nt[b]=function(Xe,Je,ot,dt,It,sr,Dr){var Tt=8>>Xe.b,hr=Xe.Ea,Br=Xe.K[0],Jr=Xe.w;if(8>Tt)for(Xe=(1<<Xe.b)-1,Jr=(1<<Tt)-1;Je<ot;++Je){var Ir,rn=0;for(Ir=0;Ir<hr;++Ir)Ir&Xe||(rn=we(dt[It++])),sr[Dr++]=Ge(Br[rn&Jr]),rn>>=Tt}else Nt["VP8LMapColor"+ne](dt,It,Br,Jr,sr,Dr,Je,ot,hr)}}function La(b,U,ne,we,Ge){for(ne=U+ne;U<ne;){var Xe=b[U++];we[Ge++]=Xe>>16&255,we[Ge++]=Xe>>8&255,we[Ge++]=255&Xe}}function qs(b,U,ne,we,Ge){for(ne=U+ne;U<ne;){var Xe=b[U++];we[Ge++]=Xe>>16&255,we[Ge++]=Xe>>8&255,we[Ge++]=255&Xe,we[Ge++]=Xe>>24&255}}function ui(b,U,ne,we,Ge){for(ne=U+ne;U<ne;){var Xe=(Je=b[U++])>>16&240|Je>>12&15,Je=240&Je|Je>>28&15;we[Ge++]=Xe,we[Ge++]=Je}}function rs(b,U,ne,we,Ge){for(ne=U+ne;U<ne;){var Xe=(Je=b[U++])>>16&248|Je>>13&7,Je=Je>>5&224|Je>>3&31;we[Ge++]=Xe,we[Ge++]=Je}}function ya(b,U,ne,we,Ge){for(ne=U+ne;U<ne;){var Xe=b[U++];we[Ge++]=255&Xe,we[Ge++]=Xe>>8&255,we[Ge++]=Xe>>16&255}}function ki(b,U,ne,we,Ge,Xe){if(Xe==0)for(ne=U+ne;U<ne;)vn(we,((Xe=b[U++])[0]>>24|Xe[1]>>8&65280|Xe[2]<<8&16711680|Xe[3]<<24)>>>0),Ge+=32;else c(we,Ge,b,U,ne)}function Ls(b,U){Nt[U][0]=Nt[b+"0"],Nt[U][1]=Nt[b+"1"],Nt[U][2]=Nt[b+"2"],Nt[U][3]=Nt[b+"3"],Nt[U][4]=Nt[b+"4"],Nt[U][5]=Nt[b+"5"],Nt[U][6]=Nt[b+"6"],Nt[U][7]=Nt[b+"7"],Nt[U][8]=Nt[b+"8"],Nt[U][9]=Nt[b+"9"],Nt[U][10]=Nt[b+"10"],Nt[U][11]=Nt[b+"11"],Nt[U][12]=Nt[b+"12"],Nt[U][13]=Nt[b+"13"],Nt[U][14]=Nt[b+"0"],Nt[U][15]=Nt[b+"0"]}function ns(b){return b==X1||b==J1||b==E1||b==eg}function Co(){this.eb=[],this.size=this.A=this.fb=0}function iA(){this.y=[],this.f=[],this.ea=[],this.F=[],this.Tc=this.Ed=this.Cd=this.Fd=this.lb=this.Db=this.Ab=this.fa=this.J=this.W=this.N=this.O=0}function _a(){this.Rd=this.height=this.width=this.S=0,this.f={},this.f.RGBA=new Co,this.f.kb=new iA,this.sd=null}function Vi(){this.width=[0],this.height=[0],this.Pd=[0],this.Qd=[0],this.format=[0]}function ra(){this.Id=this.fd=this.Md=this.hb=this.ib=this.da=this.bd=this.cd=this.j=this.v=this.Da=this.Sd=this.ob=0}function Qf(b){return alert("todo:WebPSamplerProcessPlane"),b.T}function Al(b,U){var ne=b.T,we=U.ba.f.RGBA,Ge=we.eb,Xe=we.fb+b.ka*we.A,Je=Xu[U.ba.S],ot=b.y,dt=b.O,It=b.f,sr=b.N,Dr=b.ea,Tt=b.W,hr=U.cc,Br=U.dc,Jr=U.Mc,Ir=U.Nc,rn=b.ka,sn=b.ka+b.T,yn=b.U,cn=yn+1>>1;for(rn==0?Je(ot,dt,null,null,It,sr,Dr,Tt,It,sr,Dr,Tt,Ge,Xe,null,null,yn):(Je(U.ec,U.fc,ot,dt,hr,Br,Jr,Ir,It,sr,Dr,Tt,Ge,Xe-we.A,Ge,Xe,yn),++ne);rn+2<sn;rn+=2)hr=It,Br=sr,Jr=Dr,Ir=Tt,sr+=b.Rc,Tt+=b.Rc,Xe+=2*we.A,Je(ot,(dt+=2*b.fa)-b.fa,ot,dt,hr,Br,Jr,Ir,It,sr,Dr,Tt,Ge,Xe-we.A,Ge,Xe,yn);return dt+=b.fa,b.j+sn<b.o?(c(U.ec,U.fc,ot,dt,yn),c(U.cc,U.dc,It,sr,cn),c(U.Mc,U.Nc,Dr,Tt,cn),ne--):1&sn||Je(ot,dt,null,null,It,sr,Dr,Tt,It,sr,Dr,Tt,Ge,Xe+we.A,null,null,yn),ne}function R0(b,U,ne){var we=b.F,Ge=[b.J];if(we!=null){var Xe=b.U,Je=U.ba.S,ot=Je==b1||Je==E1;U=U.ba.f.RGBA;var dt=[0],It=b.ka;dt[0]=b.T,b.Kb&&(It==0?--dt[0]:(--It,Ge[0]-=b.width),b.j+b.ka+b.T==b.o&&(dt[0]=b.o-b.j-It));var sr=U.eb;It=U.fb+It*U.A,b=wg(we,Ge[0],b.width,Xe,dt,sr,It+(ot?0:3),U.A),a(ne==dt),b&&ns(Je)&&zp(sr,It,ot,Xe,dt,U.A)}return 0}function Gc(b){var U=b.ma,ne=U.ba.S,we=11>ne,Ge=ne==_1||ne==w1||ne==b1||ne==q1||ne==12||ns(ne);if(U.memory=null,U.Ib=null,U.Jb=null,U.Nd=null,!Pp(U.Oa,b,Ge?11:12))return 0;if(Ge&&ns(ne)&&d1(),b.da)alert("todo:use_scaling");else{if(we){if(U.Ib=Qf,b.Kb){if(ne=b.U+1>>1,U.memory=m(b.U+2*ne),U.memory==null)return 0;U.ec=U.memory,U.fc=0,U.cc=U.ec,U.dc=U.fc+b.U,U.Mc=U.cc,U.Nc=U.dc+ne,U.Ib=Al,d1()}}else alert("todo:EmitYUV");Ge&&(U.Jb=R0,we&&$u())}if(we&&!Ng){for(b=0;256>b;++b)_m[b]=89858*(b-128)+x1>>B1,Em[b]=-22014*(b-128)+x1,bm[b]=-45773*(b-128),wm[b]=113618*(b-128)+x1>>B1;for(b=Vp;b<ng;++b)U=76283*(b-16)+x1>>B1,Bm[b-Vp]=po(U,255),xm[b-Vp]=po(U+8>>4,15);Ng=1}return 1}function Ri(b){var U=b.ma,ne=b.U,we=b.T;return a(!(1&b.ka)),0>=ne||0>=we?0:(ne=U.Ib(b,U),U.Jb!=null&&U.Jb(b,U,ne),U.Dc+=ne,1)}function U0(b){b.ma.memory=null}function P0(b,U,ne,we){return un(b,8)!=47?0:(U[0]=un(b,14)+1,ne[0]=un(b,14)+1,we[0]=un(b,1),un(b,3)!=0?0:!b.h)}function zu(b,U){if(4>b)return b+1;var ne=b-2>>1;return(2+(1&b)<<ne)+un(U,ne)+1}function Gu(b,U){return 120<U?U-120:1<=(ne=((ne=am[U-1])>>4)*b+(8-(15&ne)))?ne:1;var ne}function fo(b,U,ne){var we=Ht(ne),Ge=b[U+=255&we].g-8;return 0<Ge&&(gr(ne,ne.u+8),we=Ht(ne),U+=b[U].value,U+=we&(1<<Ge)-1),gr(ne,ne.u+b[U].g),b[U].value}function BA(b,U,ne){return ne.g+=b.g,ne.value+=b.value<<U>>>0,a(8>=ne.g),b.g}function HA(b,U,ne){var we=b.xc;return a((U=we==0?0:b.vc[b.md*(ne>>we)+(U>>we)])<b.Wb),b.Ya[U]}function Hf(b,U,ne,we){var Ge=b.ab,Xe=b.c*U,Je=b.C;U=Je+U;var ot=ne,dt=we;for(we=b.Ta,ne=b.Ua;0<Ge--;){var It=b.gc[Ge],sr=Je,Dr=U,Tt=ot,hr=dt,Br=(dt=we,ot=ne,It.Ea);switch(a(sr<Dr),a(Dr<=It.nc),It.hc){case 2:Io(Tt,hr,(Dr-sr)*Br,dt,ot);break;case 0:var Jr=sr,Ir=Dr,rn=dt,sn=ot,yn=(si=It).Ea;Jr==0&&(Np(Tt,hr,null,null,1,rn,sn),pa(Tt,hr+1,0,0,yn-1,rn,sn+1),hr+=yn,sn+=yn,++Jr);for(var cn=1<<si.b,ci=cn-1,Jn=_n(yn,si.b),hs=si.K,si=si.w+(Jr>>si.b)*Jn;Jr<Ir;){var Ds=hs,oA=si,fs=1;for(qd(Tt,hr,rn,sn-yn,1,rn,sn);fs<yn;){var ai=(fs&~ci)+cn;ai>yn&&(ai=yn),(0,Qp[Ds[oA++]>>8&15])(Tt,hr+ +fs,rn,sn+fs-yn,ai-fs,rn,sn+fs),fs=ai}hr+=yn,sn+=yn,++Jr&ci||(si+=Jn)}Dr!=It.nc&&c(dt,ot-Br,dt,ot+(Dr-sr-1)*Br,Br);break;case 1:for(Br=Tt,Ir=hr,yn=(Tt=It.Ea)-(sn=Tt&~(rn=(hr=1<<It.b)-1)),Jr=_n(Tt,It.b),cn=It.K,It=It.w+(sr>>It.b)*Jr;sr<Dr;){for(ci=cn,Jn=It,hs=new ls,si=Ir+sn,Ds=Ir+Tt;Ir<si;)wi(ci[Jn++],hs),Hp(hs,Br,Ir,hr,dt,ot),Ir+=hr,ot+=hr;Ir<Ds&&(wi(ci[Jn++],hs),Hp(hs,Br,Ir,yn,dt,ot),Ir+=yn,ot+=yn),++sr&rn||(It+=Jr)}break;case 3:if(Tt==dt&&hr==ot&&0<It.b){for(Ir=dt,Tt=Br=ot+(Dr-sr)*Br-(sn=(Dr-sr)*_n(It.Ea,It.b)),hr=dt,rn=ot,Jr=[],sn=(yn=sn)-1;0<=sn;--sn)Jr[sn]=hr[rn+sn];for(sn=yn-1;0<=sn;--sn)Ir[Tt+sn]=Jr[sn];g1(It,sr,Dr,dt,Br,dt,ot)}else g1(It,sr,Dr,Tt,hr,dt,ot)}ot=we,dt=ne}dt!=ne&&c(we,ne,ot,dt,Xe)}function Ph(b,U){var ne=b.V,we=b.Ba+b.c*b.C,Ge=U-b.C;if(a(U<=b.l.o),a(16>=Ge),0<Ge){var Xe=b.l,Je=b.Ta,ot=b.Ua,dt=Xe.width;if(Hf(b,Ge,ne,we),Ge=ot=[ot],a((ne=b.C)<(we=U)),a(Xe.v<Xe.va),we>Xe.o&&(we=Xe.o),ne<Xe.j){var It=Xe.j-ne;ne=Xe.j,Ge[0]+=It*dt}if(ne>=we?ne=0:(Ge[0]+=4*Xe.v,Xe.ka=ne-Xe.j,Xe.U=Xe.va-Xe.v,Xe.T=we-ne,ne=1),ne){if(ot=ot[0],11>(ne=b.ca).S){var sr=ne.f.RGBA,Dr=(we=ne.S,Ge=Xe.U,Xe=Xe.T,It=sr.eb,sr.A),Tt=Xe;for(sr=sr.fb+b.Ma*sr.A;0<Tt--;){var hr=Je,Br=ot,Jr=Ge,Ir=It,rn=sr;switch(we){case y1:jp(hr,Br,Jr,Ir,rn);break;case _1:Kh(hr,Br,Jr,Ir,rn);break;case X1:Kh(hr,Br,Jr,Ir,rn),zp(Ir,rn,0,Jr,1,0);break;case Ig:od(hr,Br,Jr,Ir,rn);break;case w1:ki(hr,Br,Jr,Ir,rn,1);break;case J1:ki(hr,Br,Jr,Ir,rn,1),zp(Ir,rn,0,Jr,1,0);break;case b1:ki(hr,Br,Jr,Ir,rn,0);break;case E1:ki(hr,Br,Jr,Ir,rn,0),zp(Ir,rn,1,Jr,1,0);break;case q1:zh(hr,Br,Jr,Ir,rn);break;case eg:zh(hr,Br,Jr,Ir,rn),_g(Ir,rn,Jr,1,0);break;case Tg:Gh(hr,Br,Jr,Ir,rn);break;default:a(0)}ot+=dt,sr+=Dr}b.Ma+=Xe}else alert("todo:EmitRescaledRowsYUVA");a(b.Ma<=ne.height)}}b.C=U,a(b.C<=b.i)}function mc(b){var U;if(0<b.ua)return 0;for(U=0;U<b.Wb;++U){var ne=b.Ya[U].G,we=b.Ya[U].H;if(0<ne[1][we[1]+0].g||0<ne[2][we[2]+0].g||0<ne[3][we[3]+0].g)return 0}return 1}function Vc(b,U,ne,we,Ge,Xe){if(b.Z!=0){var Je=b.qd,ot=b.rd;for(a($h[b.Z]!=null);U<ne;++U)$h[b.Z](Je,ot,we,Ge,we,Ge,Xe),Je=we,ot=Ge,Ge+=Xe;b.qd=Je,b.rd=ot}}function vc(b,U){var ne=b.l.ma,we=ne.Z==0||ne.Z==1?b.l.j:b.C;if(we=b.C<we?we:b.C,a(U<=b.l.o),U>we){var Ge=b.l.width,Xe=ne.ca,Je=ne.tb+Ge*we,ot=b.V,dt=b.Ba+b.c*we,It=b.gc;a(b.ab==1),a(It[0].hc==3),Zc(It[0],we,U,ot,dt,Xe,Je),Vc(ne,we,U,Xe,Je,Ge)}b.C=b.Ma=U}function yc(b,U,ne,we,Ge,Xe,Je){var ot=b.$/we,dt=b.$%we,It=b.m,sr=b.s,Dr=ne+b.$,Tt=Dr;Ge=ne+we*Ge;var hr=ne+we*Xe,Br=280+sr.ua,Jr=b.Pb?ot:16777216,Ir=0<sr.ua?sr.Wa:null,rn=sr.wc,sn=Dr<hr?HA(sr,dt,ot):null;a(b.C<Xe),a(hr<=Ge);var yn=!1;e:for(;;){for(;yn||Dr<hr;){var cn=0;if(ot>=Jr){var ci=Dr-ne;a((Jr=b).Pb),Jr.wd=Jr.m,Jr.xd=ci,0<Jr.s.ua&&Ss(Jr.s.Wa,Jr.s.vb),Jr=ot+Am}if(dt&rn||(sn=HA(sr,dt,ot)),a(sn!=null),sn.Qb&&(U[Dr]=sn.qb,yn=!0),!yn)if(Lr(It),sn.jc){cn=It,ci=U;var Jn=Dr,hs=sn.pd[Ht(cn)&ad-1];a(sn.jc),256>hs.g?(gr(cn,cn.u+hs.g),ci[Jn]=hs.value,cn=0):(gr(cn,cn.u+hs.g-256),a(256<=hs.value),cn=hs.value),cn==0&&(yn=!0)}else cn=fo(sn.G[0],sn.H[0],It);if(It.h)break;if(yn||256>cn){if(!yn)if(sn.nd)U[Dr]=(sn.qb|cn<<8)>>>0;else{if(Lr(It),yn=fo(sn.G[1],sn.H[1],It),Lr(It),ci=fo(sn.G[2],sn.H[2],It),Jn=fo(sn.G[3],sn.H[3],It),It.h)break;U[Dr]=(Jn<<24|yn<<16|cn<<8|ci)>>>0}if(yn=!1,++Dr,++dt>=we&&(dt=0,++ot,Je!=null&&ot<=Xe&&!(ot%16)&&Je(b,ot),Ir!=null))for(;Tt<Dr;)cn=U[Tt++],Ir.X[(506832829*cn&4294967295)>>>Ir.Mb]=cn}else if(280>cn){if(cn=zu(cn-256,It),ci=fo(sn.G[4],sn.H[4],It),Lr(It),ci=Gu(we,ci=zu(ci,It)),It.h)break;if(Dr-ne<ci||Ge-Dr<cn)break e;for(Jn=0;Jn<cn;++Jn)U[Dr+Jn]=U[Dr+Jn-ci];for(Dr+=cn,dt+=cn;dt>=we;)dt-=we,++ot,Je!=null&&ot<=Xe&&!(ot%16)&&Je(b,ot);if(a(Dr<=Ge),dt&rn&&(sn=HA(sr,dt,ot)),Ir!=null)for(;Tt<Dr;)cn=U[Tt++],Ir.X[(506832829*cn&4294967295)>>>Ir.Mb]=cn}else{if(!(cn<Br))break e;for(yn=cn-280,a(Ir!=null);Tt<Dr;)cn=U[Tt++],Ir.X[(506832829*cn&4294967295)>>>Ir.Mb]=cn;cn=Dr,a(!(yn>>>(ci=Ir).Xa)),U[cn]=ci.X[yn],yn=!0}yn||a(It.h==tr(It))}if(b.Pb&&It.h&&Dr<Ge)a(b.m.h),b.a=5,b.m=b.wd,b.$=b.xd,0<b.s.ua&&Ss(b.s.vb,b.s.Wa);else{if(It.h)break e;Je!=null&&Je(b,ot>Xe?Xe:ot),b.a=0,b.$=Dr-ne}return 1}return b.a=3,0}function Vu(b){a(b!=null),b.vc=null,b.yc=null,b.Ya=null;var U=b.Wa;U!=null&&(U.X=null),b.vb=null,a(b!=null)}function jf(){var b=new li;return b==null?null:(b.a=0,b.xb=Dg,Ls("Predictor","VP8LPredictors"),Ls("Predictor","VP8LPredictors_C"),Ls("PredictorAdd","VP8LPredictorsAdd"),Ls("PredictorAdd","VP8LPredictorsAdd_C"),Io=us,Hp=Hi,jp=La,Kh=qs,zh=ui,Gh=rs,od=ya,Nt.VP8LMapColor32b=Yc,Nt.VP8LMapColor8b=Mp,b)}function Wc(b,U,ne,we,Ge){var Xe=1,Je=[b],ot=[U],dt=we.m,It=we.s,sr=null,Dr=0;e:for(;;){if(ne)for(;Xe&&un(dt,1);){var Tt=Je,hr=ot,Br=we,Jr=1,Ir=Br.m,rn=Br.gc[Br.ab],sn=un(Ir,2);if(Br.Oc&1<<sn)Xe=0;else{switch(Br.Oc|=1<<sn,rn.hc=sn,rn.Ea=Tt[0],rn.nc=hr[0],rn.K=[null],++Br.ab,a(4>=Br.ab),sn){case 0:case 1:rn.b=un(Ir,3)+2,Jr=Wc(_n(rn.Ea,rn.b),_n(rn.nc,rn.b),0,Br,rn.K),rn.K=rn.K[0];break;case 3:var yn,cn=un(Ir,8)+1,ci=16<cn?0:4<cn?1:2<cn?2:3;if(Tt[0]=_n(rn.Ea,ci),rn.b=ci,yn=Jr=Wc(cn,1,0,Br,rn.K)){var Jn,hs=cn,si=rn,Ds=1<<(8>>si.b),oA=m(Ds);if(oA==null)yn=0;else{var fs=si.K[0],ai=si.w;for(oA[0]=si.K[0][0],Jn=1;Jn<1*hs;++Jn)oA[Jn]=vi(fs[ai+Jn],oA[Jn-1]);for(;Jn<4*Ds;++Jn)oA[Jn]=0;si.K[0]=null,si.K[0]=oA,yn=1}}Jr=yn;break;case 2:break;default:a(0)}Xe=Jr}}if(Je=Je[0],ot=ot[0],Xe&&un(dt,1)&&!(Xe=1<=(Dr=un(dt,4))&&11>=Dr)){we.a=3;break e}var Un;if(Un=Xe)t:{var Fo,is,Os,ja=we,KA=Je,Tl=ot,go=Dr,ul=ne,Fl=ja.m,AA=ja.s,Hs=[null],aa=1,mo=0,oa=om[go];r:for(;;){if(ul&&un(Fl,1)){var zA=un(Fl,3)+2,bc=_n(KA,zA),Lo=_n(Tl,zA),ql=bc*Lo;if(!Wc(bc,Lo,0,ja,Hs))break r;for(Hs=Hs[0],AA.xc=zA,Fo=0;Fo<ql;++Fo){var ba=Hs[Fo]>>8&65535;Hs[Fo]=ba,ba>=aa&&(aa=ba+1)}}if(Fl.h)break r;for(is=0;5>is;++is){var lA=Fg[is];!is&&0<go&&(lA+=1<<go),mo<lA&&(mo=lA)}var Eu=W(aa*oa,Xt),Ll=aa,Bu=W(Ll,Ur);if(Bu==null)var xu=null;else a(65536>=Ll),xu=Bu;var Xl=m(mo);if(xu==null||Xl==null||Eu==null){ja.a=1;break r}var Cu=Eu;for(Fo=Os=0;Fo<aa;++Fo){var ka=xu[Fo],Su=ka.G,Ec=ka.H,ld=0,V0=1,GA=0;for(is=0;5>is;++is){lA=Fg[is],Su[is]=Cu,Ec[is]=Os,!is&&0<go&&(lA+=1<<go);i:{var S1,ig=lA,I1=ja,Wp=Xl,Im=Cu,Tm=Os,sg=0,Yh=I1.m,Fm=un(Yh,1);if(d(Wp,0,0,ig),Fm){var Lm=un(Yh,1)+1,Dm=un(Yh,1),Hg=un(Yh,Dm==0?1:8);Wp[Hg]=1,Lm==2&&(Wp[Hg=un(Yh,8)]=1);var T1=1}else{var jg=m(19),Kg=un(Yh,4)+4;if(19<Kg){I1.a=3;var F1=0;break i}for(S1=0;S1<Kg;++S1)jg[sm[S1]]=un(Yh,3);var ag=void 0,$p=void 0,zg=I1,km=jg,L1=ig,Gg=Wp,og=0,Zh=zg.m,Vg=8,Wg=W(128,Xt);n:for(;Ct(Wg,0,7,km,19);){if(un(Zh,1)){var Rm=2+2*un(Zh,3);if((ag=2+un(Zh,Rm))>L1)break n}else ag=L1;for($p=0;$p<L1&&ag--;){Lr(Zh);var $g=Wg[0+(127&Ht(Zh))];gr(Zh,Zh.u+$g.g);var Jd=$g.value;if(16>Jd)Gg[$p++]=Jd,Jd!=0&&(Vg=Jd);else{var Um=Jd==16,Yg=Jd-16,Pm=nm[Yg],Zg=un(Zh,rm[Yg])+Pm;if($p+Zg>L1)break n;for(var Om=Um?Vg:0;0<Zg--;)Gg[$p++]=Om}}og=1;break n}og||(zg.a=3),T1=og}(T1=T1&&!Yh.h)&&(sg=Ct(Im,Tm,8,Wp,ig)),T1&&sg!=0?F1=sg:(I1.a=3,F1=0)}if(F1==0)break r;if(V0&&im[is]==1&&(V0=Cu[Os].g==0),ld+=Cu[Os].g,Os+=F1,3>=is){var Yp,Ag=Xl[0];for(Yp=1;Yp<lA;++Yp)Xl[Yp]>Ag&&(Ag=Xl[Yp]);GA+=Ag}}if(ka.nd=V0,ka.Qb=0,V0&&(ka.qb=(Su[3][Ec[3]+0].value<<24|Su[1][Ec[1]+0].value<<16|Su[2][Ec[2]+0].value)>>>0,ld==0&&256>Su[0][Ec[0]+0].value&&(ka.Qb=1,ka.qb+=Su[0][Ec[0]+0].value<<8)),ka.jc=!ka.Qb&&6>GA,ka.jc){var D1,W0=ka;for(D1=0;D1<ad;++D1){var qh=D1,Xh=W0.pd[qh],k1=W0.G[0][W0.H[0]+qh];256<=k1.value?(Xh.g=k1.g+256,Xh.value=k1.value):(Xh.g=0,Xh.value=0,qh>>=BA(k1,8,Xh),qh>>=BA(W0.G[1][W0.H[1]+qh],16,Xh),qh>>=BA(W0.G[2][W0.H[2]+qh],0,Xh),BA(W0.G[3][W0.H[3]+qh],24,Xh))}}}AA.vc=Hs,AA.Wb=aa,AA.Ya=xu,AA.yc=Eu,Un=1;break t}Un=0}if(!(Xe=Un)){we.a=3;break e}if(0<Dr){if(It.ua=1<<Dr,!Qt(It.Wa,Dr)){we.a=1,Xe=0;break e}}else It.ua=0;var lg=we,qg=Je,Nm=ot,ug=lg.s,cg=ug.xc;if(lg.c=qg,lg.i=Nm,ug.md=_n(qg,cg),ug.wc=cg==0?-1:(1<<cg)-1,ne){we.xb=pm;break e}if((sr=m(Je*ot))==null){we.a=1,Xe=0;break e}Xe=(Xe=yc(we,sr,0,Je,ot,ot,null))&&!dt.h;break e}return Xe?(Ge!=null?Ge[0]=sr:(a(sr==null),a(ne)),we.$=0,ne||Vu(It)):Vu(It),Xe}function Kf(b,U){var ne=b.c*b.i,we=ne+U+16*U;return a(b.c<=U),b.V=m(we),b.V==null?(b.Ta=null,b.Ua=0,b.a=1,0):(b.Ta=b.V,b.Ua=b.Ba+ne+U,1)}function Hd(b,U){var ne=b.C,we=U-ne,Ge=b.V,Xe=b.Ba+b.c*ne;for(a(U<=b.l.o);0<we;){var Je=16<we?16:we,ot=b.l.ma,dt=b.l.width,It=dt*Je,sr=ot.ca,Dr=ot.tb+dt*ne,Tt=b.Ta,hr=b.Ua;Hf(b,Je,Ge,Xe),bg(Tt,hr,sr,Dr,It),Vc(ot,ne,ne+Je,sr,Dr,dt),we-=Je,Ge+=Je*b.c,ne+=Je}a(ne==U),b.C=b.Ma=U}function jd(){this.ub=this.yd=this.td=this.Rb=0}function Kd(){this.Kd=this.Ld=this.Ud=this.Td=this.i=this.c=0}function R1(){this.Fb=this.Bb=this.Cb=0,this.Zb=m(4),this.Lb=m(4)}function bp(){this.Yb=function(){var b=[];return function U(ne,we,Ge){for(var Xe=Ge[we],Je=0;Je<Xe&&(ne.push(Ge.length>we+1?[]:0),!(Ge.length<we+1));Je++)U(ne[Je],we+1,Ge)}(b,0,[3,11]),b}()}function Jp(){this.jb=m(3),this.Wc=O([4,8],bp),this.Xc=O([4,17],bp)}function e1(){this.Pc=this.wb=this.Tb=this.zd=0,this.vd=new m(4),this.od=new m(4)}function Wu(){this.ld=this.La=this.dd=this.tc=0}function Ep(){this.Na=this.la=0}function t1(){this.Sc=[0,0],this.Eb=[0,0],this.Qc=[0,0],this.ia=this.lc=0}function Bp(){this.ad=m(384),this.Za=0,this.Ob=m(16),this.$b=this.Ad=this.ia=this.Gc=this.Hc=this.Dd=0}function r1(){this.uc=this.M=this.Nb=0,this.wa=Array(new Wu),this.Y=0,this.ya=Array(new Bp),this.aa=0,this.l=new zd}function n1(){this.y=m(16),this.f=m(8),this.ea=m(8)}function i1(){this.cb=this.a=0,this.sc="",this.m=new et,this.Od=new jd,this.Kc=new Kd,this.ed=new e1,this.Qa=new R1,this.Ic=this.$c=this.Aa=0,this.D=new r1,this.Xb=this.Va=this.Hb=this.zb=this.yb=this.Ub=this.za=0,this.Jc=W(8,et),this.ia=0,this.pb=W(4,t1),this.Pa=new Jp,this.Bd=this.kc=0,this.Ac=[],this.Bc=0,this.zc=[0,0,0,0],this.Gd=Array(new n1),this.Hd=0,this.rb=Array(new Ep),this.sb=0,this.wa=Array(new Wu),this.Y=0,this.oc=[],this.pc=0,this.sa=[],this.ta=0,this.qa=[],this.ra=0,this.Ha=[],this.B=this.R=this.Ia=0,this.Ec=[],this.M=this.ja=this.Vb=this.Fc=0,this.ya=Array(new Bp),this.L=this.aa=0,this.gd=O([4,2],Wu),this.ga=null,this.Fa=[],this.Cc=this.qc=this.P=0,this.Gb=[],this.Uc=0,this.mb=[],this.nb=0,this.rc=[],this.Ga=this.Vc=0}function zd(){this.T=this.U=this.ka=this.height=this.width=0,this.y=[],this.f=[],this.ea=[],this.Rc=this.fa=this.W=this.N=this.O=0,this.ma="void",this.put="VP8IoPutHook",this.ac="VP8IoSetupHook",this.bc="VP8IoTeardownHook",this.ha=this.Kb=0,this.data=[],this.hb=this.ib=this.da=this.o=this.j=this.va=this.v=this.Da=this.ob=this.w=0,this.F=[],this.J=0}function U1(){var b=new i1;return b!=null&&(b.a=0,b.sc="OK",b.cb=0,b.Xb=0,Gp||(Gp=O0)),b}function Wo(b,U,ne){return b.a==0&&(b.a=U,b.sc=ne,b.cb=0),0}function s1(b,U,ne){return 3<=ne&&b[U+0]==157&&b[U+1]==1&&b[U+2]==42}function a1(b,U){if(b==null)return 0;if(b.a=0,b.sc="OK",U==null)return Wo(b,2,"null VP8Io passed to VP8GetHeaders()");var ne=U.data,we=U.w,Ge=U.ha;if(4>Ge)return Wo(b,7,"Truncated header.");var Xe=ne[we+0]|ne[we+1]<<8|ne[we+2]<<16,Je=b.Od;if(Je.Rb=!(1&Xe),Je.td=Xe>>1&7,Je.yd=Xe>>4&1,Je.ub=Xe>>5,3<Je.td)return Wo(b,3,"Incorrect keyframe parameters.");if(!Je.yd)return Wo(b,4,"Frame not displayable.");we+=3,Ge-=3;var ot=b.Kc;if(Je.Rb){if(7>Ge)return Wo(b,7,"cannot parse picture header");if(!s1(ne,we,Ge))return Wo(b,3,"Bad code word");ot.c=16383&(ne[we+4]<<8|ne[we+3]),ot.Td=ne[we+4]>>6,ot.i=16383&(ne[we+6]<<8|ne[we+5]),ot.Ud=ne[we+6]>>6,we+=7,Ge-=7,b.za=ot.c+15>>4,b.Ub=ot.i+15>>4,U.width=ot.c,U.height=ot.i,U.Da=0,U.j=0,U.v=0,U.va=U.width,U.o=U.height,U.da=0,U.ib=U.width,U.hb=U.height,U.U=U.width,U.T=U.height,d((Xe=b.Pa).jb,0,255,Xe.jb.length),a((Xe=b.Qa)!=null),Xe.Cb=0,Xe.Bb=0,Xe.Fb=1,d(Xe.Zb,0,0,Xe.Zb.length),d(Xe.Lb,0,0,Xe.Lb)}if(Je.ub>Ge)return Wo(b,7,"bad partition length");Qr(Xe=b.m,ne,we,Je.ub),we+=Je.ub,Ge-=Je.ub,Je.Rb&&(ot.Ld=Mr(Xe),ot.Kd=Mr(Xe)),ot=b.Qa;var dt,It=b.Pa;if(a(Xe!=null),a(ot!=null),ot.Cb=Mr(Xe),ot.Cb){if(ot.Bb=Mr(Xe),Mr(Xe)){for(ot.Fb=Mr(Xe),dt=0;4>dt;++dt)ot.Zb[dt]=Mr(Xe)?Fr(Xe,7):0;for(dt=0;4>dt;++dt)ot.Lb[dt]=Mr(Xe)?Fr(Xe,6):0}if(ot.Bb)for(dt=0;3>dt;++dt)It.jb[dt]=Mr(Xe)?zr(Xe,8):255}else ot.Bb=0;if(Xe.Ka)return Wo(b,3,"cannot parse segment header");if((ot=b.ed).zd=Mr(Xe),ot.Tb=zr(Xe,6),ot.wb=zr(Xe,3),ot.Pc=Mr(Xe),ot.Pc&&Mr(Xe)){for(It=0;4>It;++It)Mr(Xe)&&(ot.vd[It]=Fr(Xe,6));for(It=0;4>It;++It)Mr(Xe)&&(ot.od[It]=Fr(Xe,6))}if(b.L=ot.Tb==0?0:ot.zd?1:2,Xe.Ka)return Wo(b,3,"cannot parse filter header");var sr=Ge;if(Ge=dt=we,we=dt+sr,ot=sr,b.Xb=(1<<zr(b.m,2))-1,sr<3*(It=b.Xb))ne=7;else{for(dt+=3*It,ot-=3*It,sr=0;sr<It;++sr){var Dr=ne[Ge+0]|ne[Ge+1]<<8|ne[Ge+2]<<16;Dr>ot&&(Dr=ot),Qr(b.Jc[+sr],ne,dt,Dr),dt+=Dr,ot-=Dr,Ge+=3}Qr(b.Jc[+It],ne,dt,ot),ne=dt<we?0:5}if(ne!=0)return Wo(b,ne,"cannot parse partitions");for(ne=zr(dt=b.m,7),Ge=Mr(dt)?Fr(dt,4):0,we=Mr(dt)?Fr(dt,4):0,ot=Mr(dt)?Fr(dt,4):0,It=Mr(dt)?Fr(dt,4):0,dt=Mr(dt)?Fr(dt,4):0,sr=b.Qa,Dr=0;4>Dr;++Dr){if(sr.Cb){var Tt=sr.Zb[Dr];sr.Fb||(Tt+=ne)}else{if(0<Dr){b.pb[Dr]=b.pb[0];continue}Tt=ne}var hr=b.pb[Dr];hr.Sc[0]=tg[po(Tt+Ge,127)],hr.Sc[1]=rg[po(Tt+0,127)],hr.Eb[0]=2*tg[po(Tt+we,127)],hr.Eb[1]=101581*rg[po(Tt+ot,127)]>>16,8>hr.Eb[1]&&(hr.Eb[1]=8),hr.Qc[0]=tg[po(Tt+It,117)],hr.Qc[1]=rg[po(Tt+dt,127)],hr.lc=Tt+dt}if(!Je.Rb)return Wo(b,4,"Not a key frame.");for(Mr(Xe),Je=b.Pa,ne=0;4>ne;++ne){for(Ge=0;8>Ge;++Ge)for(we=0;3>we;++we)for(ot=0;11>ot;++ot)It=an(Xe,fm[ne][Ge][we][ot])?zr(Xe,8):cm[ne][Ge][we][ot],Je.Wc[ne][Ge].Yb[we][ot]=It;for(Ge=0;17>Ge;++Ge)Je.Xc[ne][Ge]=Je.Wc[ne][dm[Ge]]}return b.kc=Mr(Xe),b.kc&&(b.Bd=zr(Xe,8)),b.cb=1}function O0(b,U,ne,we,Ge,Xe,Je){var ot=U[Ge].Yb[ne];for(ne=0;16>Ge;++Ge){if(!an(b,ot[ne+0]))return Ge;for(;!an(b,ot[ne+1]);)if(ot=U[++Ge].Yb[0],ne=0,Ge==16)return 16;var dt=U[Ge+1].Yb;if(an(b,ot[ne+2])){var It=b,sr=0;if(an(It,(Tt=ot)[(Dr=ne)+3]))if(an(It,Tt[Dr+6])){for(ot=0,Dr=2*(sr=an(It,Tt[Dr+8]))+(Tt=an(It,Tt[Dr+9+sr])),sr=0,Tt=lm[Dr];Tt[ot];++ot)sr+=sr+an(It,Tt[ot]);sr+=3+(8<<Dr)}else an(It,Tt[Dr+7])?(sr=7+2*an(It,165),sr+=an(It,145)):sr=5+an(It,159);else sr=an(It,Tt[Dr+4])?3+an(It,Tt[Dr+5]):2;ot=dt[2]}else sr=1,ot=dt[1];dt=Je+um[Ge],0>(It=b).b&&jr(It);var Dr,Tt=It.b,hr=(Dr=It.Ca>>1)-(It.I>>Tt)>>31;--It.b,It.Ca+=hr,It.Ca|=1,It.I-=(Dr+1&hr)<<Tt,Xe[dt]=((sr^hr)-hr)*we[(0<Ge)+0]}return 16}function zf(b){var U=b.rb[b.sb-1];U.la=0,U.Na=0,d(b.zc,0,0,b.zc.length),b.ja=0}function _c(b,U,ne,we,Ge){Ge=b[U+ne+32*we]+(Ge>>3),b[U+ne+32*we]=-256&Ge?0>Ge?0:255:Ge}function Gf(b,U,ne,we,Ge,Xe){_c(b,U,0,ne,we+Ge),_c(b,U,1,ne,we+Xe),_c(b,U,2,ne,we-Xe),_c(b,U,3,ne,we-Ge)}function So(b){return(20091*b>>16)+b}function xp(b,U,ne,we){var Ge,Xe=0,Je=m(16);for(Ge=0;4>Ge;++Ge){var ot=b[U+0]+b[U+8],dt=b[U+0]-b[U+8],It=(35468*b[U+4]>>16)-So(b[U+12]),sr=So(b[U+4])+(35468*b[U+12]>>16);Je[Xe+0]=ot+sr,Je[Xe+1]=dt+It,Je[Xe+2]=dt-It,Je[Xe+3]=ot-sr,Xe+=4,U++}for(Ge=Xe=0;4>Ge;++Ge)ot=(b=Je[Xe+0]+4)+Je[Xe+8],dt=b-Je[Xe+8],It=(35468*Je[Xe+4]>>16)-So(Je[Xe+12]),_c(ne,we,0,0,ot+(sr=So(Je[Xe+4])+(35468*Je[Xe+12]>>16))),_c(ne,we,1,0,dt+It),_c(ne,we,2,0,dt-It),_c(ne,we,3,0,ot-sr),Xe++,we+=32}function P1(b,U,ne,we){var Ge=b[U+0]+4,Xe=35468*b[U+4]>>16,Je=So(b[U+4]),ot=35468*b[U+1]>>16;Gf(ne,we,0,Ge+Je,b=So(b[U+1]),ot),Gf(ne,we,1,Ge+Xe,b,ot),Gf(ne,we,2,Ge-Xe,b,ot),Gf(ne,we,3,Ge-Je,b,ot)}function O1(b,U,ne,we,Ge){xp(b,U,ne,we),Ge&&xp(b,U+16,ne,we+4)}function N1(b,U,ne,we){Ad(b,U+0,ne,we,1),Ad(b,U+32,ne,we+128,1)}function $c(b,U,ne,we){var Ge;for(b=b[U+0]+4,Ge=0;4>Ge;++Ge)for(U=0;4>U;++U)_c(ne,we,U,Ge,b)}function o1(b,U,ne,we){b[U+0]&&na(b,U+0,ne,we),b[U+16]&&na(b,U+16,ne,we+4),b[U+32]&&na(b,U+32,ne,we+128),b[U+48]&&na(b,U+48,ne,we+128+4)}function A1(b,U,ne,we){var Ge,Xe=m(16);for(Ge=0;4>Ge;++Ge){var Je=b[U+0+Ge]+b[U+12+Ge],ot=b[U+4+Ge]+b[U+8+Ge],dt=b[U+4+Ge]-b[U+8+Ge],It=b[U+0+Ge]-b[U+12+Ge];Xe[0+Ge]=Je+ot,Xe[8+Ge]=Je-ot,Xe[4+Ge]=It+dt,Xe[12+Ge]=It-dt}for(Ge=0;4>Ge;++Ge)Je=(b=Xe[0+4*Ge]+3)+Xe[3+4*Ge],ot=Xe[1+4*Ge]+Xe[2+4*Ge],dt=Xe[1+4*Ge]-Xe[2+4*Ge],It=b-Xe[3+4*Ge],ne[we+0]=Je+ot>>3,ne[we+16]=It+dt>>3,ne[we+32]=Je-ot>>3,ne[we+48]=It-dt>>3,we+=64}function Oh(b,U,ne){var we,Ge=U-32,Xe=bu,Je=255-b[Ge-1];for(we=0;we<ne;++we){var ot,dt=Xe,It=Je+b[U-1];for(ot=0;ot<ne;++ot)b[U+ot]=dt[It+b[Ge+ot]];U+=32}}function Cp(b,U){Oh(b,U,4)}function M1(b,U){Oh(b,U,8)}function Q1(b,U){Oh(b,U,16)}function H1(b,U){var ne;for(ne=0;16>ne;++ne)c(b,U+32*ne,b,U-32,16)}function Sp(b,U){var ne;for(ne=16;0<ne;--ne)d(b,U,b[U-1],16),U+=32}function Vf(b,U,ne){var we;for(we=0;16>we;++we)d(U,ne+32*we,b,16)}function Nh(b,U){var ne,we=16;for(ne=0;16>ne;++ne)we+=b[U-1+32*ne]+b[U+ne-32];Vf(we>>5,b,U)}function j1(b,U){var ne,we=8;for(ne=0;16>ne;++ne)we+=b[U-1+32*ne];Vf(we>>4,b,U)}function Wf(b,U){var ne,we=8;for(ne=0;16>ne;++ne)we+=b[U+ne-32];Vf(we>>4,b,U)}function Ip(b,U){Vf(128,b,U)}function Wi(b,U,ne){return b+2*U+ne+2>>2}function K1(b,U){var ne,we=U-32;for(we=new Uint8Array([Wi(b[we-1],b[we+0],b[we+1]),Wi(b[we+0],b[we+1],b[we+2]),Wi(b[we+1],b[we+2],b[we+3]),Wi(b[we+2],b[we+3],b[we+4])]),ne=0;4>ne;++ne)c(b,U+32*ne,we,0,we.length)}function z1(b,U){var ne=b[U-1],we=b[U-1+32],Ge=b[U-1+64],Xe=b[U-1+96];vn(b,U+0,16843009*Wi(b[U-1-32],ne,we)),vn(b,U+32,16843009*Wi(ne,we,Ge)),vn(b,U+64,16843009*Wi(we,Ge,Xe)),vn(b,U+96,16843009*Wi(Ge,Xe,Xe))}function G1(b,U){var ne,we=4;for(ne=0;4>ne;++ne)we+=b[U+ne-32]+b[U-1+32*ne];for(we>>=3,ne=0;4>ne;++ne)d(b,U+32*ne,we,4)}function V1(b,U){var ne=b[U-1+0],we=b[U-1+32],Ge=b[U-1+64],Xe=b[U-1-32],Je=b[U+0-32],ot=b[U+1-32],dt=b[U+2-32],It=b[U+3-32];b[U+0+96]=Wi(we,Ge,b[U-1+96]),b[U+1+96]=b[U+0+64]=Wi(ne,we,Ge),b[U+2+96]=b[U+1+64]=b[U+0+32]=Wi(Xe,ne,we),b[U+3+96]=b[U+2+64]=b[U+1+32]=b[U+0+0]=Wi(Je,Xe,ne),b[U+3+64]=b[U+2+32]=b[U+1+0]=Wi(ot,Je,Xe),b[U+3+32]=b[U+2+0]=Wi(dt,ot,Je),b[U+3+0]=Wi(It,dt,ot)}function N0(b,U){var ne=b[U+1-32],we=b[U+2-32],Ge=b[U+3-32],Xe=b[U+4-32],Je=b[U+5-32],ot=b[U+6-32],dt=b[U+7-32];b[U+0+0]=Wi(b[U+0-32],ne,we),b[U+1+0]=b[U+0+32]=Wi(ne,we,Ge),b[U+2+0]=b[U+1+32]=b[U+0+64]=Wi(we,Ge,Xe),b[U+3+0]=b[U+2+32]=b[U+1+64]=b[U+0+96]=Wi(Ge,Xe,Je),b[U+3+32]=b[U+2+64]=b[U+1+96]=Wi(Xe,Je,ot),b[U+3+64]=b[U+2+96]=Wi(Je,ot,dt),b[U+3+96]=Wi(ot,dt,dt)}function M0(b,U){var ne=b[U-1+0],we=b[U-1+32],Ge=b[U-1+64],Xe=b[U-1-32],Je=b[U+0-32],ot=b[U+1-32],dt=b[U+2-32],It=b[U+3-32];b[U+0+0]=b[U+1+64]=Xe+Je+1>>1,b[U+1+0]=b[U+2+64]=Je+ot+1>>1,b[U+2+0]=b[U+3+64]=ot+dt+1>>1,b[U+3+0]=dt+It+1>>1,b[U+0+96]=Wi(Ge,we,ne),b[U+0+64]=Wi(we,ne,Xe),b[U+0+32]=b[U+1+96]=Wi(ne,Xe,Je),b[U+1+32]=b[U+2+96]=Wi(Xe,Je,ot),b[U+2+32]=b[U+3+96]=Wi(Je,ot,dt),b[U+3+32]=Wi(ot,dt,It)}function W1(b,U){var ne=b[U+0-32],we=b[U+1-32],Ge=b[U+2-32],Xe=b[U+3-32],Je=b[U+4-32],ot=b[U+5-32],dt=b[U+6-32],It=b[U+7-32];b[U+0+0]=ne+we+1>>1,b[U+1+0]=b[U+0+64]=we+Ge+1>>1,b[U+2+0]=b[U+1+64]=Ge+Xe+1>>1,b[U+3+0]=b[U+2+64]=Xe+Je+1>>1,b[U+0+32]=Wi(ne,we,Ge),b[U+1+32]=b[U+0+96]=Wi(we,Ge,Xe),b[U+2+32]=b[U+1+96]=Wi(Ge,Xe,Je),b[U+3+32]=b[U+2+96]=Wi(Xe,Je,ot),b[U+3+64]=Wi(Je,ot,dt),b[U+3+96]=Wi(ot,dt,It)}function $1(b,U){var ne=b[U-1+0],we=b[U-1+32],Ge=b[U-1+64],Xe=b[U-1+96];b[U+0+0]=ne+we+1>>1,b[U+2+0]=b[U+0+32]=we+Ge+1>>1,b[U+2+32]=b[U+0+64]=Ge+Xe+1>>1,b[U+1+0]=Wi(ne,we,Ge),b[U+3+0]=b[U+1+32]=Wi(we,Ge,Xe),b[U+3+32]=b[U+1+64]=Wi(Ge,Xe,Xe),b[U+3+64]=b[U+2+64]=b[U+0+96]=b[U+1+96]=b[U+2+96]=b[U+3+96]=Xe}function Gd(b,U){var ne=b[U-1+0],we=b[U-1+32],Ge=b[U-1+64],Xe=b[U-1+96],Je=b[U-1-32],ot=b[U+0-32],dt=b[U+1-32],It=b[U+2-32];b[U+0+0]=b[U+2+32]=ne+Je+1>>1,b[U+0+32]=b[U+2+64]=we+ne+1>>1,b[U+0+64]=b[U+2+96]=Ge+we+1>>1,b[U+0+96]=Xe+Ge+1>>1,b[U+3+0]=Wi(ot,dt,It),b[U+2+0]=Wi(Je,ot,dt),b[U+1+0]=b[U+3+32]=Wi(ne,Je,ot),b[U+1+32]=b[U+3+64]=Wi(we,ne,Je),b[U+1+64]=b[U+3+96]=Wi(Ge,we,ne),b[U+1+96]=Wi(Xe,Ge,we)}function Tp(b,U){var ne;for(ne=0;8>ne;++ne)c(b,U+32*ne,b,U-32,8)}function $f(b,U){var ne;for(ne=0;8>ne;++ne)d(b,U,b[U-1],8),U+=32}function Vd(b,U,ne){var we;for(we=0;8>we;++we)d(U,ne+32*we,b,8)}function Wd(b,U){var ne,we=8;for(ne=0;8>ne;++ne)we+=b[U+ne-32]+b[U-1+32*ne];Vd(we>>4,b,U)}function Y1(b,U){var ne,we=4;for(ne=0;8>ne;++ne)we+=b[U+ne-32];Vd(we>>3,b,U)}function Fp(b,U){var ne,we=4;for(ne=0;8>ne;++ne)we+=b[U-1+32*ne];Vd(we>>3,b,U)}function Lp(b,U){Vd(128,b,U)}function Yf(b,U,ne){var we=b[U-ne],Ge=b[U+0],Xe=3*(Ge-we)+Z1[1020+b[U-2*ne]-b[U+ne]],Je=v1[112+(Xe+4>>3)];b[U-ne]=bu[255+we+v1[112+(Xe+3>>3)]],b[U+0]=bu[255+Ge-Je]}function Zf(b,U,ne,we){var Ge=b[U+0],Xe=b[U+ne];return qu[255+b[U-2*ne]-b[U-ne]]>we||qu[255+Xe-Ge]>we}function Dp(b,U,ne,we){return 4*qu[255+b[U-ne]-b[U+0]]+qu[255+b[U-2*ne]-b[U+ne]]<=we}function $d(b,U,ne,we,Ge){var Xe=b[U-3*ne],Je=b[U-2*ne],ot=b[U-ne],dt=b[U+0],It=b[U+ne],sr=b[U+2*ne],Dr=b[U+3*ne];return 4*qu[255+ot-dt]+qu[255+Je-It]>we?0:qu[255+b[U-4*ne]-Xe]<=Ge&&qu[255+Xe-Je]<=Ge&&qu[255+Je-ot]<=Ge&&qu[255+Dr-sr]<=Ge&&qu[255+sr-It]<=Ge&&qu[255+It-dt]<=Ge}function kp(b,U,ne,we){var Ge=2*we+1;for(we=0;16>we;++we)Dp(b,U+we,ne,Ge)&&Yf(b,U+we,ne)}function qf(b,U,ne,we){var Ge=2*we+1;for(we=0;16>we;++we)Dp(b,U+we*ne,1,Ge)&&Yf(b,U+we*ne,1)}function l1(b,U,ne,we){var Ge;for(Ge=3;0<Ge;--Ge)kp(b,U+=4*ne,ne,we)}function u1(b,U,ne,we){var Ge;for(Ge=3;0<Ge;--Ge)qf(b,U+=4,ne,we)}function Q0(b,U,ne,we,Ge,Xe,Je,ot){for(Xe=2*Xe+1;0<Ge--;){if($d(b,U,ne,Xe,Je))if(Zf(b,U,ne,ot))Yf(b,U,ne);else{var dt=b,It=U,sr=ne,Dr=dt[It-2*sr],Tt=dt[It-sr],hr=dt[It+0],Br=dt[It+sr],Jr=dt[It+2*sr],Ir=27*(sn=Z1[1020+3*(hr-Tt)+Z1[1020+Dr-Br]])+63>>7,rn=18*sn+63>>7,sn=9*sn+63>>7;dt[It-3*sr]=bu[255+dt[It-3*sr]+sn],dt[It-2*sr]=bu[255+Dr+rn],dt[It-sr]=bu[255+Tt+Ir],dt[It+0]=bu[255+hr-Ir],dt[It+sr]=bu[255+Br-rn],dt[It+2*sr]=bu[255+Jr-sn]}U+=we}}function H0(b,U,ne,we,Ge,Xe,Je,ot){for(Xe=2*Xe+1;0<Ge--;){if($d(b,U,ne,Xe,Je))if(Zf(b,U,ne,ot))Yf(b,U,ne);else{var dt=b,It=U,sr=ne,Dr=dt[It-sr],Tt=dt[It+0],hr=dt[It+sr],Br=v1[112+(4+(Jr=3*(Tt-Dr))>>3)],Jr=v1[112+(Jr+3>>3)],Ir=Br+1>>1;dt[It-2*sr]=bu[255+dt[It-2*sr]+Ir],dt[It-sr]=bu[255+Dr+Jr],dt[It+0]=bu[255+Tt-Br],dt[It+sr]=bu[255+hr-Ir]}U+=we}}function c1(b,U,ne,we,Ge,Xe){Q0(b,U,ne,1,16,we,Ge,Xe)}function h1(b,U,ne,we,Ge,Xe){Q0(b,U,1,ne,16,we,Ge,Xe)}function Xf(b,U,ne,we,Ge,Xe){var Je;for(Je=3;0<Je;--Je)H0(b,U+=4*ne,ne,1,16,we,Ge,Xe)}function f1(b,U,ne,we,Ge,Xe){var Je;for(Je=3;0<Je;--Je)H0(b,U+=4,1,ne,16,we,Ge,Xe)}function X(b,U,ne,we,Ge,Xe,Je,ot){Q0(b,U,Ge,1,8,Xe,Je,ot),Q0(ne,we,Ge,1,8,Xe,Je,ot)}function ze(b,U,ne,we,Ge,Xe,Je,ot){Q0(b,U,1,Ge,8,Xe,Je,ot),Q0(ne,we,1,Ge,8,Xe,Je,ot)}function Lt(b,U,ne,we,Ge,Xe,Je,ot){H0(b,U+4*Ge,Ge,1,8,Xe,Je,ot),H0(ne,we+4*Ge,Ge,1,8,Xe,Je,ot)}function Zt(b,U,ne,we,Ge,Xe,Je,ot){H0(b,U+4,1,Ge,8,Xe,Je,ot),H0(ne,we+4,1,Ge,8,Xe,Je,ot)}function _r(){this.ba=new _a,this.ec=[],this.cc=[],this.Mc=[],this.Dc=this.Nc=this.dc=this.fc=0,this.Oa=new ra,this.memory=0,this.Ib="OutputFunc",this.Jb="OutputAlphaFunc",this.Nd="OutputRowFunc"}function nn(){this.data=[],this.offset=this.kd=this.ha=this.w=0,this.na=[],this.xa=this.gb=this.Ja=this.Sa=this.P=0}function hn(){this.nc=this.Ea=this.b=this.hc=0,this.K=[],this.w=0}function ti(){this.ua=0,this.Wa=new As,this.vb=new As,this.md=this.xc=this.wc=0,this.vc=[],this.Wb=0,this.Ya=new Ur,this.yc=new Xt}function li(){this.xb=this.a=0,this.l=new zd,this.ca=new _a,this.V=[],this.Ba=0,this.Ta=[],this.Ua=0,this.m=new Rt,this.Pb=0,this.wd=new Rt,this.Ma=this.$=this.C=this.i=this.c=this.xd=0,this.s=new ti,this.ab=0,this.gc=W(4,hn),this.Oc=0}function zi(){this.Lc=this.Z=this.$a=this.i=this.c=0,this.l=new zd,this.ic=0,this.ca=[],this.tb=0,this.qd=null,this.rd=0}function qi(b,U,ne,we,Ge,Xe,Je){for(b=b==null?0:b[U+0],U=0;U<Je;++U)Ge[Xe+U]=b+ne[we+U]&255,b=Ge[Xe+U]}function Xs(b,U,ne,we,Ge,Xe,Je){var ot;if(b==null)qi(null,null,ne,we,Ge,Xe,Je);else for(ot=0;ot<Je;++ot)Ge[Xe+ot]=b[U+ot]+ne[we+ot]&255}function ao(b,U,ne,we,Ge,Xe,Je){if(b==null)qi(null,null,ne,we,Ge,Xe,Je);else{var ot,dt=b[U+0],It=dt,sr=dt;for(ot=0;ot<Je;++ot)It=sr+(dt=b[U+ot])-It,sr=ne[we+ot]+(-256&It?0>It?0:255:It)&255,It=dt,Ge[Xe+ot]=sr}}function $o(b,U,ne,we){var Ge=U.width,Xe=U.o;if(a(b!=null&&U!=null),0>ne||0>=we||ne+we>Xe)return null;if(!b.Cc){if(b.ga==null){var Je;if(b.ga=new zi,(Je=b.ga==null)||(Je=U.width*U.o,a(b.Gb.length==0),b.Gb=m(Je),b.Uc=0,b.Gb==null?Je=0:(b.mb=b.Gb,b.nb=b.Uc,b.rc=null,Je=1),Je=!Je),!Je){Je=b.ga;var ot=b.Fa,dt=b.P,It=b.qc,sr=b.mb,Dr=b.nb,Tt=dt+1,hr=It-1,Br=Je.l;if(a(ot!=null&&sr!=null&&U!=null),$h[0]=null,$h[1]=qi,$h[2]=Xs,$h[3]=ao,Je.ca=sr,Je.tb=Dr,Je.c=U.width,Je.i=U.height,a(0<Je.c&&0<Je.i),1>=It)U=0;else if(Je.$a=3&ot[dt+0],Je.Z=ot[dt+0]>>2&3,Je.Lc=ot[dt+0]>>4&3,dt=ot[dt+0]>>6&3,0>Je.$a||1<Je.$a||4<=Je.Z||1<Je.Lc||dt)U=0;else if(Br.put=Ri,Br.ac=Gc,Br.bc=U0,Br.ma=Je,Br.width=U.width,Br.height=U.height,Br.Da=U.Da,Br.v=U.v,Br.va=U.va,Br.j=U.j,Br.o=U.o,Je.$a)e:{a(Je.$a==1),U=jf();t:for(;;){if(U==null){U=0;break e}if(a(Je!=null),Je.mc=U,U.c=Je.c,U.i=Je.i,U.l=Je.l,U.l.ma=Je,U.l.width=Je.c,U.l.height=Je.i,U.a=0,$r(U.m,ot,Tt,hr),!Wc(Je.c,Je.i,1,U,null)||(U.ab==1&&U.gc[0].hc==3&&mc(U.s)?(Je.ic=1,ot=U.c*U.i,U.Ta=null,U.Ua=0,U.V=m(ot),U.Ba=0,U.V==null?(U.a=1,U=0):U=1):(Je.ic=0,U=Kf(U,Je.c)),!U))break t;U=1;break e}Je.mc=null,U=0}else U=hr>=Je.c*Je.i;Je=!U}if(Je)return null;b.ga.Lc!=1?b.Ga=0:we=Xe-ne}a(b.ga!=null),a(ne+we<=Xe);e:{if(U=(ot=b.ga).c,Xe=ot.l.o,ot.$a==0){if(Tt=b.rc,hr=b.Vc,Br=b.Fa,dt=b.P+1+ne*U,It=b.mb,sr=b.nb+ne*U,a(dt<=b.P+b.qc),ot.Z!=0)for(a($h[ot.Z]!=null),Je=0;Je<we;++Je)$h[ot.Z](Tt,hr,Br,dt,It,sr,U),Tt=It,hr=sr,sr+=U,dt+=U;else for(Je=0;Je<we;++Je)c(It,sr,Br,dt,U),Tt=It,hr=sr,sr+=U,dt+=U;b.rc=Tt,b.Vc=hr}else{if(a(ot.mc!=null),U=ne+we,a((Je=ot.mc)!=null),a(U<=Je.i),Je.C>=U)U=1;else if(ot.ic||$u(),ot.ic){ot=Je.V,Tt=Je.Ba,hr=Je.c;var Jr=Je.i,Ir=(Br=1,dt=Je.$/hr,It=Je.$%hr,sr=Je.m,Dr=Je.s,Je.$),rn=hr*Jr,sn=hr*U,yn=Dr.wc,cn=Ir<sn?HA(Dr,It,dt):null;a(Ir<=rn),a(U<=Jr),a(mc(Dr));t:for(;;){for(;!sr.h&&Ir<sn;){if(It&yn||(cn=HA(Dr,It,dt)),a(cn!=null),Lr(sr),256>(Jr=fo(cn.G[0],cn.H[0],sr)))ot[Tt+Ir]=Jr,++Ir,++It>=hr&&(It=0,++dt<=U&&!(dt%16)&&vc(Je,dt));else{if(!(280>Jr)){Br=0;break t}Jr=zu(Jr-256,sr);var ci,Jn=fo(cn.G[4],cn.H[4],sr);if(Lr(sr),!(Ir>=(Jn=Gu(hr,Jn=zu(Jn,sr)))&&rn-Ir>=Jr)){Br=0;break t}for(ci=0;ci<Jr;++ci)ot[Tt+Ir+ci]=ot[Tt+Ir+ci-Jn];for(Ir+=Jr,It+=Jr;It>=hr;)It-=hr,++dt<=U&&!(dt%16)&&vc(Je,dt);Ir<sn&&It&yn&&(cn=HA(Dr,It,dt))}a(sr.h==tr(sr))}vc(Je,dt>U?U:dt);break t}!Br||sr.h&&Ir<rn?(Br=0,Je.a=sr.h?5:3):Je.$=Ir,U=Br}else U=yc(Je,Je.V,Je.Ba,Je.c,Je.i,U,Hd);if(!U){we=0;break e}}ne+we>=Xe&&(b.Cc=1),we=1}if(!we)return null;if(b.Cc&&((we=b.ga)!=null&&(we.mc=null),b.ga=null,0<b.Ga))return alert("todo:WebPDequantizeLevels"),null}return b.nb+ne*Ge}function Da(b,U,ne,we,Ge,Xe){for(;0<Ge--;){var Je,ot=b,dt=U+(ne?1:0),It=b,sr=U+(ne?0:3);for(Je=0;Je<we;++Je){var Dr=It[sr+4*Je];Dr!=255&&(Dr*=32897,ot[dt+4*Je+0]=ot[dt+4*Je+0]*Dr>>23,ot[dt+4*Je+1]=ot[dt+4*Je+1]*Dr>>23,ot[dt+4*Je+2]=ot[dt+4*Je+2]*Dr>>23)}U+=Xe}}function sA(b,U,ne,we,Ge){for(;0<we--;){var Xe;for(Xe=0;Xe<ne;++Xe){var Je=b[U+2*Xe+0],ot=15&(It=b[U+2*Xe+1]),dt=4369*ot,It=(240&It|It>>4)*dt>>16;b[U+2*Xe+0]=(240&Je|Je>>4)*dt>>16&240|(15&Je|Je<<4)*dt>>16>>4&15,b[U+2*Xe+1]=240&It|ot}U+=Ge}}function Yo(b,U,ne,we,Ge,Xe,Je,ot){var dt,It,sr=255;for(It=0;It<Ge;++It){for(dt=0;dt<we;++dt){var Dr=b[U+dt];Xe[Je+4*dt]=Dr,sr&=Dr}U+=ne,Je+=ot}return sr!=255}function jA(b,U,ne,we,Ge){var Xe;for(Xe=0;Xe<Ge;++Xe)ne[we+Xe]=b[U+Xe]>>8}function $u(){zp=Da,_g=sA,wg=Yo,bg=jA}function Zl(b,U,ne){Nt[b]=function(we,Ge,Xe,Je,ot,dt,It,sr,Dr,Tt,hr,Br,Jr,Ir,rn,sn,yn){var cn,ci=yn-1>>1,Jn=ot[dt+0]|It[sr+0]<<16,hs=Dr[Tt+0]|hr[Br+0]<<16;a(we!=null);var si=3*Jn+hs+131074>>2;for(U(we[Ge+0],255&si,si>>16,Jr,Ir),Xe!=null&&(si=3*hs+Jn+131074>>2,U(Xe[Je+0],255&si,si>>16,rn,sn)),cn=1;cn<=ci;++cn){var Ds=ot[dt+cn]|It[sr+cn]<<16,oA=Dr[Tt+cn]|hr[Br+cn]<<16,fs=Jn+Ds+hs+oA+524296,ai=fs+2*(Ds+hs)>>3;si=ai+Jn>>1,Jn=(fs=fs+2*(Jn+oA)>>3)+Ds>>1,U(we[Ge+2*cn-1],255&si,si>>16,Jr,Ir+(2*cn-1)*ne),U(we[Ge+2*cn-0],255&Jn,Jn>>16,Jr,Ir+(2*cn-0)*ne),Xe!=null&&(si=fs+hs>>1,Jn=ai+oA>>1,U(Xe[Je+2*cn-1],255&si,si>>16,rn,sn+(2*cn-1)*ne),U(Xe[Je+2*cn+0],255&Jn,Jn>>16,rn,sn+(2*cn+0)*ne)),Jn=Ds,hs=oA}1&yn||(si=3*Jn+hs+131074>>2,U(we[Ge+yn-1],255&si,si>>16,Jr,Ir+(yn-1)*ne),Xe!=null&&(si=3*hs+Jn+131074>>2,U(Xe[Je+yn-1],255&si,si>>16,rn,sn+(yn-1)*ne)))}}function d1(){Xu[y1]=gm,Xu[_1]=kg,Xu[Ig]=mm,Xu[w1]=Rg,Xu[b1]=Ug,Xu[q1]=Pg,Xu[Tg]=vm,Xu[X1]=kg,Xu[J1]=Rg,Xu[E1]=Ug,Xu[eg]=Pg}function Yd(b){return b&~ym?0>b?0:255:b>>Og}function Jf(b,U){return Yd((19077*b>>8)+(26149*U>>8)-14234)}function Mh(b,U,ne){return Yd((19077*b>>8)-(6419*U>>8)-(13320*ne>>8)+8708)}function ed(b,U){return Yd((19077*b>>8)+(33050*U>>8)-17685)}function td(b,U,ne,we,Ge){we[Ge+0]=Jf(b,ne),we[Ge+1]=Mh(b,U,ne),we[Ge+2]=ed(b,U)}function rd(b,U,ne,we,Ge){we[Ge+0]=ed(b,U),we[Ge+1]=Mh(b,U,ne),we[Ge+2]=Jf(b,ne)}function ll(b,U,ne,we,Ge){var Xe=Mh(b,U,ne);U=Xe<<3&224|ed(b,U)>>3,we[Ge+0]=248&Jf(b,ne)|Xe>>5,we[Ge+1]=U}function nd(b,U,ne,we,Ge){var Xe=240&ed(b,U)|15;we[Ge+0]=240&Jf(b,ne)|Mh(b,U,ne)>>4,we[Ge+1]=Xe}function id(b,U,ne,we,Ge){we[Ge+0]=255,td(b,U,ne,we,Ge+1)}function Rp(b,U,ne,we,Ge){rd(b,U,ne,we,Ge),we[Ge+3]=255}function Up(b,U,ne,we,Ge){td(b,U,ne,we,Ge),we[Ge+3]=255}function po(b,U){return 0>b?0:b>U?U:b}function j0(b,U,ne){Nt[b]=function(we,Ge,Xe,Je,ot,dt,It,sr,Dr){for(var Tt=sr+(-2&Dr)*ne;sr!=Tt;)U(we[Ge+0],Xe[Je+0],ot[dt+0],It,sr),U(we[Ge+1],Xe[Je+0],ot[dt+0],It,sr+ne),Ge+=2,++Je,++dt,sr+=2*ne;1&Dr&&U(we[Ge+0],Xe[Je+0],ot[dt+0],It,sr)}}function Zd(b,U,ne){return ne==0?b==0?U==0?6:5:U==0?4:0:ne}function p1(b,U,ne,we,Ge){switch(b>>>30){case 3:Ad(U,ne,we,Ge,0);break;case 2:Zu(U,ne,we,Ge);break;case 1:na(U,ne,we,Ge)}}function Yu(b,U){var ne,we,Ge=U.M,Xe=U.Nb,Je=b.oc,ot=b.pc+40,dt=b.oc,It=b.pc+584,sr=b.oc,Dr=b.pc+600;for(ne=0;16>ne;++ne)Je[ot+32*ne-1]=129;for(ne=0;8>ne;++ne)dt[It+32*ne-1]=129,sr[Dr+32*ne-1]=129;for(0<Ge?Je[ot-1-32]=dt[It-1-32]=sr[Dr-1-32]=129:(d(Je,ot-32-1,127,21),d(dt,It-32-1,127,9),d(sr,Dr-32-1,127,9)),we=0;we<b.za;++we){var Tt=U.ya[U.aa+we];if(0<we){for(ne=-1;16>ne;++ne)c(Je,ot+32*ne-4,Je,ot+32*ne+12,4);for(ne=-1;8>ne;++ne)c(dt,It+32*ne-4,dt,It+32*ne+4,4),c(sr,Dr+32*ne-4,sr,Dr+32*ne+4,4)}var hr=b.Gd,Br=b.Hd+we,Jr=Tt.ad,Ir=Tt.Hc;if(0<Ge&&(c(Je,ot-32,hr[Br].y,0,16),c(dt,It-32,hr[Br].f,0,8),c(sr,Dr-32,hr[Br].ea,0,8)),Tt.Za){var rn=Je,sn=ot-32+16;for(0<Ge&&(we>=b.za-1?d(rn,sn,hr[Br].y[15],4):c(rn,sn,hr[Br+1].y,0,4)),ne=0;4>ne;ne++)rn[sn+128+ne]=rn[sn+256+ne]=rn[sn+384+ne]=rn[sn+0+ne];for(ne=0;16>ne;++ne,Ir<<=2)rn=Je,sn=ot+Mg[ne],wc[Tt.Ob[ne]](rn,sn),p1(Ir,Jr,16*+ne,rn,sn)}else if(rn=Zd(we,Ge,Tt.Ob[0]),Wh[rn](Je,ot),Ir!=0)for(ne=0;16>ne;++ne,Ir<<=2)p1(Ir,Jr,16*+ne,Je,ot+Mg[ne]);for(ne=Tt.Gc,rn=Zd(we,Ge,Tt.Dd),G0[rn](dt,It),G0[rn](sr,Dr),Ir=Jr,rn=dt,sn=It,255&(Tt=0|ne)&&(170&Tt?qc(Ir,256,rn,sn):wa(Ir,256,rn,sn)),Tt=sr,Ir=Dr,255&(ne>>=8)&&(170&ne?qc(Jr,320,Tt,Ir):wa(Jr,320,Tt,Ir)),Ge<b.Ub-1&&(c(hr[Br].y,0,Je,ot+480,16),c(hr[Br].f,0,dt,It+224,8),c(hr[Br].ea,0,sr,Dr+224,8)),ne=8*Xe*b.B,hr=b.sa,Br=b.ta+16*we+16*Xe*b.R,Jr=b.qa,Tt=b.ra+8*we+ne,Ir=b.Ha,rn=b.Ia+8*we+ne,ne=0;16>ne;++ne)c(hr,Br+ne*b.R,Je,ot+32*ne,16);for(ne=0;8>ne;++ne)c(Jr,Tt+ne*b.B,dt,It+32*ne,8),c(Ir,rn+ne*b.B,sr,Dr+32*ne,8)}}function sd(b,U,ne,we,Ge,Xe,Je,ot,dt){var It=[0],sr=[0],Dr=0,Tt=dt!=null?dt.kd:0,hr=dt!=null?dt:new nn;if(b==null||12>ne)return 7;hr.data=b,hr.w=U,hr.ha=ne,U=[U],ne=[ne],hr.gb=[hr.gb];e:{var Br=U,Jr=ne,Ir=hr.gb;if(a(b!=null),a(Jr!=null),a(Ir!=null),Ir[0]=0,12<=Jr[0]&&!s(b,Br[0],"RIFF")){if(s(b,Br[0]+8,"WEBP")){Ir=3;break e}var rn=Xr(b,Br[0]+4);if(12>rn||4294967286<rn){Ir=3;break e}if(Tt&&rn>Jr[0]-8){Ir=7;break e}Ir[0]=rn,Br[0]+=12,Jr[0]-=12}Ir=0}if(Ir!=0)return Ir;for(rn=0<hr.gb[0],ne=ne[0];;){e:{var sn=b;Jr=U,Ir=ne;var yn=It,cn=sr,ci=Br=[0];if((si=Dr=[Dr])[0]=0,8>Ir[0])Ir=7;else{if(!s(sn,Jr[0],"VP8X")){if(Xr(sn,Jr[0]+4)!=10){Ir=3;break e}if(18>Ir[0]){Ir=7;break e}var Jn=Xr(sn,Jr[0]+8),hs=1+jn(sn,Jr[0]+12);if(2147483648<=hs*(sn=1+jn(sn,Jr[0]+15))){Ir=3;break e}ci!=null&&(ci[0]=Jn),yn!=null&&(yn[0]=hs),cn!=null&&(cn[0]=sn),Jr[0]+=18,Ir[0]-=18,si[0]=1}Ir=0}}if(Dr=Dr[0],Br=Br[0],Ir!=0)return Ir;if(Jr=!!(2&Br),!rn&&Dr)return 3;if(Xe!=null&&(Xe[0]=!!(16&Br)),Je!=null&&(Je[0]=Jr),ot!=null&&(ot[0]=0),Je=It[0],Br=sr[0],Dr&&Jr&&dt==null){Ir=0;break}if(4>ne){Ir=7;break}if(rn&&Dr||!rn&&!Dr&&!s(b,U[0],"ALPH")){ne=[ne],hr.na=[hr.na],hr.P=[hr.P],hr.Sa=[hr.Sa];e:{Jn=b,Ir=U,rn=ne;var si=hr.gb;yn=hr.na,cn=hr.P,ci=hr.Sa,hs=22,a(Jn!=null),a(rn!=null),sn=Ir[0];var Ds=rn[0];for(a(yn!=null),a(ci!=null),yn[0]=null,cn[0]=null,ci[0]=0;;){if(Ir[0]=sn,rn[0]=Ds,8>Ds){Ir=7;break e}var oA=Xr(Jn,sn+4);if(4294967286<oA){Ir=3;break e}var fs=8+oA+1&-2;if(hs+=fs,0<si&&hs>si){Ir=3;break e}if(!s(Jn,sn,"VP8 ")||!s(Jn,sn,"VP8L")){Ir=0;break e}if(Ds[0]<fs){Ir=7;break e}s(Jn,sn,"ALPH")||(yn[0]=Jn,cn[0]=sn+8,ci[0]=oA),sn+=fs,Ds-=fs}}if(ne=ne[0],hr.na=hr.na[0],hr.P=hr.P[0],hr.Sa=hr.Sa[0],Ir!=0)break}ne=[ne],hr.Ja=[hr.Ja],hr.xa=[hr.xa];e:if(si=b,Ir=U,rn=ne,yn=hr.gb[0],cn=hr.Ja,ci=hr.xa,Jn=Ir[0],sn=!s(si,Jn,"VP8 "),hs=!s(si,Jn,"VP8L"),a(si!=null),a(rn!=null),a(cn!=null),a(ci!=null),8>rn[0])Ir=7;else{if(sn||hs){if(si=Xr(si,Jn+4),12<=yn&&si>yn-12){Ir=3;break e}if(Tt&&si>rn[0]-8){Ir=7;break e}cn[0]=si,Ir[0]+=8,rn[0]-=8,ci[0]=hs}else ci[0]=5<=rn[0]&&si[Jn+0]==47&&!(si[Jn+4]>>5),cn[0]=rn[0];Ir=0}if(ne=ne[0],hr.Ja=hr.Ja[0],hr.xa=hr.xa[0],U=U[0],Ir!=0)break;if(4294967286<hr.Ja)return 3;if(ot==null||Jr||(ot[0]=hr.xa?2:1),Je=[Je],Br=[Br],hr.xa){if(5>ne){Ir=7;break}ot=Je,Tt=Br,Jr=Xe,b==null||5>ne?b=0:5<=ne&&b[U+0]==47&&!(b[U+4]>>5)?(rn=[0],si=[0],yn=[0],$r(cn=new Rt,b,U,ne),P0(cn,rn,si,yn)?(ot!=null&&(ot[0]=rn[0]),Tt!=null&&(Tt[0]=si[0]),Jr!=null&&(Jr[0]=yn[0]),b=1):b=0):b=0}else{if(10>ne){Ir=7;break}ot=Br,b==null||10>ne||!s1(b,U+3,ne-3)?b=0:(Tt=b[U+0]|b[U+1]<<8|b[U+2]<<16,Jr=16383&(b[U+7]<<8|b[U+6]),b=16383&(b[U+9]<<8|b[U+8]),1&Tt||3<(Tt>>1&7)||!(Tt>>4&1)||Tt>>5>=hr.Ja||!Jr||!b?b=0:(Je&&(Je[0]=Jr),ot&&(ot[0]=b),b=1))}if(!b||(Je=Je[0],Br=Br[0],Dr&&(It[0]!=Je||sr[0]!=Br)))return 3;dt!=null&&(dt[0]=hr,dt.offset=U-dt.w,a(4294967286>U-dt.w),a(dt.offset==dt.ha-ne));break}return Ir==0||Ir==7&&Dr&&dt==null?(Xe!=null&&(Xe[0]|=hr.na!=null&&0<hr.na.length),we!=null&&(we[0]=Je),Ge!=null&&(Ge[0]=Br),0):Ir}function Pp(b,U,ne){var we=U.width,Ge=U.height,Xe=0,Je=0,ot=we,dt=Ge;if(U.Da=b!=null&&0<b.Da,U.Da&&(ot=b.cd,dt=b.bd,Xe=b.v,Je=b.j,11>ne||(Xe&=-2,Je&=-2),0>Xe||0>Je||0>=ot||0>=dt||Xe+ot>we||Je+dt>Ge))return 0;if(U.v=Xe,U.j=Je,U.va=Xe+ot,U.o=Je+dt,U.U=ot,U.T=dt,U.da=b!=null&&0<b.da,U.da){if(!Ti(ot,dt,ne=[b.ib],Xe=[b.hb]))return 0;U.ib=ne[0],U.hb=Xe[0]}return U.ob=b!=null&&b.ob,U.Kb=b==null||!b.Sd,U.da&&(U.ob=U.ib<3*we/4&&U.hb<3*Ge/4,U.Kb=0),1}function Op(b){if(b==null)return 2;if(11>b.S){var U=b.f.RGBA;U.fb+=(b.height-1)*U.A,U.A=-U.A}else U=b.f.kb,b=b.height,U.O+=(b-1)*U.fa,U.fa=-U.fa,U.N+=(b-1>>1)*U.Ab,U.Ab=-U.Ab,U.W+=(b-1>>1)*U.Db,U.Db=-U.Db,U.F!=null&&(U.J+=(b-1)*U.lb,U.lb=-U.lb);return 0}function Qh(b,U,ne,we){if(we==null||0>=b||0>=U)return 2;if(ne!=null){if(ne.Da){var Ge=ne.cd,Xe=ne.bd,Je=-2&ne.v,ot=-2&ne.j;if(0>Je||0>ot||0>=Ge||0>=Xe||Je+Ge>b||ot+Xe>U)return 2;b=Ge,U=Xe}if(ne.da){if(!Ti(b,U,Ge=[ne.ib],Xe=[ne.hb]))return 2;b=Ge[0],U=Xe[0]}}we.width=b,we.height=U;e:{var dt=we.width,It=we.height;if(b=we.S,0>=dt||0>=It||!(b>=y1&&13>b))b=2;else{if(0>=we.Rd&&we.sd==null){Je=Xe=Ge=U=0;var sr=(ot=dt*Qg[b])*It;if(11>b||(Xe=(It+1)/2*(U=(dt+1)/2),b==12&&(Je=(Ge=dt)*It)),(It=m(sr+2*Xe+Je))==null){b=1;break e}we.sd=It,11>b?((dt=we.f.RGBA).eb=It,dt.fb=0,dt.A=ot,dt.size=sr):((dt=we.f.kb).y=It,dt.O=0,dt.fa=ot,dt.Fd=sr,dt.f=It,dt.N=0+sr,dt.Ab=U,dt.Cd=Xe,dt.ea=It,dt.W=0+sr+Xe,dt.Db=U,dt.Ed=Xe,b==12&&(dt.F=It,dt.J=0+sr+2*Xe),dt.Tc=Je,dt.lb=Ge)}if(U=1,Ge=we.S,Xe=we.width,Je=we.height,Ge>=y1&&13>Ge)if(11>Ge)b=we.f.RGBA,U&=(ot=Math.abs(b.A))*(Je-1)+Xe<=b.size,U&=ot>=Xe*Qg[Ge],U&=b.eb!=null;else{b=we.f.kb,ot=(Xe+1)/2,sr=(Je+1)/2,dt=Math.abs(b.fa),It=Math.abs(b.Ab);var Dr=Math.abs(b.Db),Tt=Math.abs(b.lb),hr=Tt*(Je-1)+Xe;U&=dt*(Je-1)+Xe<=b.Fd,U&=It*(sr-1)+ot<=b.Cd,U=(U&=Dr*(sr-1)+ot<=b.Ed)&dt>=Xe&It>=ot&Dr>=ot,U&=b.y!=null,U&=b.f!=null,U&=b.ea!=null,Ge==12&&(U&=Tt>=Xe,U&=hr<=b.Tc,U&=b.F!=null)}else U=0;b=U?0:2}}return b!=0||ne!=null&&ne.fd&&(b=Op(we)),b}var ad=64,_u=[0,1,3,7,15,31,63,127,255,511,1023,2047,4095,8191,16383,32767,65535,131071,262143,524287,1048575,2097151,4194303,8388607,16777215],wu=24,Hh=32,K0=8,jh=[0,0,1,1,2,2,2,2,3,3,3,3,3,3,3,3,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7];Gn("Predictor0","PredictorAdd0"),Nt.Predictor0=function(){return 4278190080},Nt.Predictor1=function(b){return b},Nt.Predictor2=function(b,U,ne){return U[ne+0]},Nt.Predictor3=function(b,U,ne){return U[ne+1]},Nt.Predictor4=function(b,U,ne){return U[ne-1]},Nt.Predictor5=function(b,U,ne){return xi(xi(b,U[ne+1]),U[ne+0])},Nt.Predictor6=function(b,U,ne){return xi(b,U[ne-1])},Nt.Predictor7=function(b,U,ne){return xi(b,U[ne+0])},Nt.Predictor8=function(b,U,ne){return xi(U[ne-1],U[ne+0])},Nt.Predictor9=function(b,U,ne){return xi(U[ne+0],U[ne+1])},Nt.Predictor10=function(b,U,ne){return xi(xi(b,U[ne-1]),xi(U[ne+0],U[ne+1]))},Nt.Predictor11=function(b,U,ne){var we=U[ne+0];return 0>=ts(we>>24&255,b>>24&255,(U=U[ne-1])>>24&255)+ts(we>>16&255,b>>16&255,U>>16&255)+ts(we>>8&255,b>>8&255,U>>8&255)+ts(255&we,255&b,255&U)?we:b},Nt.Predictor12=function(b,U,ne){var we=U[ne+0];return(Zs((b>>24&255)+(we>>24&255)-((U=U[ne-1])>>24&255))<<24|Zs((b>>16&255)+(we>>16&255)-(U>>16&255))<<16|Zs((b>>8&255)+(we>>8&255)-(U>>8&255))<<8|Zs((255&b)+(255&we)-(255&U)))>>>0},Nt.Predictor13=function(b,U,ne){var we=U[ne-1];return(es((b=xi(b,U[ne+0]))>>24&255,we>>24&255)<<24|es(b>>16&255,we>>16&255)<<16|es(b>>8&255,we>>8&255)<<8|es(255&b,255&we))>>>0};var Np=Nt.PredictorAdd0;Nt.PredictorAdd1=pa,Gn("Predictor2","PredictorAdd2"),Gn("Predictor3","PredictorAdd3"),Gn("Predictor4","PredictorAdd4"),Gn("Predictor5","PredictorAdd5"),Gn("Predictor6","PredictorAdd6"),Gn("Predictor7","PredictorAdd7"),Gn("Predictor8","PredictorAdd8"),Gn("Predictor9","PredictorAdd9"),Gn("Predictor10","PredictorAdd10"),Gn("Predictor11","PredictorAdd11"),Gn("Predictor12","PredictorAdd12"),Gn("Predictor13","PredictorAdd13");var qd=Nt.PredictorAdd2;bi("ColorIndexInverseTransform","MapARGB","32b",function(b){return b>>8&255},function(b){return b}),bi("VP8LColorIndexInverseTransformAlpha","MapAlpha","8b",function(b){return b},function(b){return b>>8&255});var Io,g1=Nt.ColorIndexInverseTransform,Yc=Nt.MapARGB,Zc=Nt.VP8LColorIndexInverseTransformAlpha,Mp=Nt.MapAlpha,Qp=Nt.VP8LPredictorsAdd=[];Qp.length=16,(Nt.VP8LPredictors=[]).length=16,(Nt.VP8LPredictorsAdd_C=[]).length=16,(Nt.VP8LPredictors_C=[]).length=16;var Hp,jp,Kh,zh,Gh,od,Vh,Ad,Zu,qc,na,wa,To,aA,z0,Kp,Xd,m1,dg,pg,gg,mg,vg,yg,zp,_g,wg,bg,Eg=m(511),Bg=m(2041),xg=m(225),Cg=m(767),Sg=0,Z1=Bg,v1=xg,bu=Cg,qu=Eg,y1=0,_1=1,Ig=2,w1=3,b1=4,q1=5,Tg=6,X1=7,J1=8,E1=9,eg=10,rm=[2,3,7],nm=[3,3,11],Fg=[280,256,256,256,40],im=[0,1,1,1,0],sm=[17,18,0,1,2,3,4,5,16,6,7,8,9,10,11,12,13,14,15],am=[24,7,23,25,40,6,39,41,22,26,38,42,56,5,55,57,21,27,54,58,37,43,72,4,71,73,20,28,53,59,70,74,36,44,88,69,75,52,60,3,87,89,19,29,86,90,35,45,68,76,85,91,51,61,104,2,103,105,18,30,102,106,34,46,84,92,67,77,101,107,50,62,120,1,119,121,83,93,17,31,100,108,66,78,118,122,33,47,117,123,49,63,99,109,82,94,0,116,124,65,79,16,32,98,110,48,115,125,81,95,64,114,126,97,111,80,113,127,96,112],om=[2954,2956,2958,2962,2970,2986,3018,3082,3212,3468,3980,5004],Am=8,tg=[4,5,6,7,8,9,10,10,11,12,13,14,15,16,17,17,18,19,20,20,21,21,22,22,23,23,24,25,25,26,27,28,29,30,31,32,33,34,35,36,37,37,38,39,40,41,42,43,44,45,46,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,76,77,78,79,80,81,82,83,84,85,86,87,88,89,91,93,95,96,98,100,101,102,104,106,108,110,112,114,116,118,122,124,126,128,130,132,134,136,138,140,143,145,148,151,154,157],rg=[4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,60,62,64,66,68,70,72,74,76,78,80,82,84,86,88,90,92,94,96,98,100,102,104,106,108,110,112,114,116,119,122,125,128,131,134,137,140,143,146,149,152,155,158,161,164,167,170,173,177,181,185,189,193,197,201,205,209,213,217,221,225,229,234,239,245,249,254,259,264,269,274,279,284],Gp=null,lm=[[173,148,140,0],[176,155,140,135,0],[180,157,141,134,130,0],[254,254,243,230,196,177,153,140,133,130,129,0]],um=[0,1,4,8,5,2,3,6,9,12,13,10,7,11,14,15],Lg=[-0,1,-1,2,-2,3,4,6,-3,5,-4,-5,-6,7,-7,8,-8,-9],cm=[[[[128,128,128,128,128,128,128,128,128,128,128],[128,128,128,128,128,128,128,128,128,128,128],[128,128,128,128,128,128,128,128,128,128,128]],[[253,136,254,255,228,219,128,128,128,128,128],[189,129,242,255,227,213,255,219,128,128,128],[106,126,227,252,214,209,255,255,128,128,128]],[[1,98,248,255,236,226,255,255,128,128,128],[181,133,238,254,221,234,255,154,128,128,128],[78,134,202,247,198,180,255,219,128,128,128]],[[1,185,249,255,243,255,128,128,128,128,128],[184,150,247,255,236,224,128,128,128,128,128],[77,110,216,255,236,230,128,128,128,128,128]],[[1,101,251,255,241,255,128,128,128,128,128],[170,139,241,252,236,209,255,255,128,128,128],[37,116,196,243,228,255,255,255,128,128,128]],[[1,204,254,255,245,255,128,128,128,128,128],[207,160,250,255,238,128,128,128,128,128,128],[102,103,231,255,211,171,128,128,128,128,128]],[[1,152,252,255,240,255,128,128,128,128,128],[177,135,243,255,234,225,128,128,128,128,128],[80,129,211,255,194,224,128,128,128,128,128]],[[1,1,255,128,128,128,128,128,128,128,128],[246,1,255,128,128,128,128,128,128,128,128],[255,128,128,128,128,128,128,128,128,128,128]]],[[[198,35,237,223,193,187,162,160,145,155,62],[131,45,198,221,172,176,220,157,252,221,1],[68,47,146,208,149,167,221,162,255,223,128]],[[1,149,241,255,221,224,255,255,128,128,128],[184,141,234,253,222,220,255,199,128,128,128],[81,99,181,242,176,190,249,202,255,255,128]],[[1,129,232,253,214,197,242,196,255,255,128],[99,121,210,250,201,198,255,202,128,128,128],[23,91,163,242,170,187,247,210,255,255,128]],[[1,200,246,255,234,255,128,128,128,128,128],[109,178,241,255,231,245,255,255,128,128,128],[44,130,201,253,205,192,255,255,128,128,128]],[[1,132,239,251,219,209,255,165,128,128,128],[94,136,225,251,218,190,255,255,128,128,128],[22,100,174,245,186,161,255,199,128,128,128]],[[1,182,249,255,232,235,128,128,128,128,128],[124,143,241,255,227,234,128,128,128,128,128],[35,77,181,251,193,211,255,205,128,128,128]],[[1,157,247,255,236,231,255,255,128,128,128],[121,141,235,255,225,227,255,255,128,128,128],[45,99,188,251,195,217,255,224,128,128,128]],[[1,1,251,255,213,255,128,128,128,128,128],[203,1,248,255,255,128,128,128,128,128,128],[137,1,177,255,224,255,128,128,128,128,128]]],[[[253,9,248,251,207,208,255,192,128,128,128],[175,13,224,243,193,185,249,198,255,255,128],[73,17,171,221,161,179,236,167,255,234,128]],[[1,95,247,253,212,183,255,255,128,128,128],[239,90,244,250,211,209,255,255,128,128,128],[155,77,195,248,188,195,255,255,128,128,128]],[[1,24,239,251,218,219,255,205,128,128,128],[201,51,219,255,196,186,128,128,128,128,128],[69,46,190,239,201,218,255,228,128,128,128]],[[1,191,251,255,255,128,128,128,128,128,128],[223,165,249,255,213,255,128,128,128,128,128],[141,124,248,255,255,128,128,128,128,128,128]],[[1,16,248,255,255,128,128,128,128,128,128],[190,36,230,255,236,255,128,128,128,128,128],[149,1,255,128,128,128,128,128,128,128,128]],[[1,226,255,128,128,128,128,128,128,128,128],[247,192,255,128,128,128,128,128,128,128,128],[240,128,255,128,128,128,128,128,128,128,128]],[[1,134,252,255,255,128,128,128,128,128,128],[213,62,250,255,255,128,128,128,128,128,128],[55,93,255,128,128,128,128,128,128,128,128]],[[128,128,128,128,128,128,128,128,128,128,128],[128,128,128,128,128,128,128,128,128,128,128],[128,128,128,128,128,128,128,128,128,128,128]]],[[[202,24,213,235,186,191,220,160,240,175,255],[126,38,182,232,169,184,228,174,255,187,128],[61,46,138,219,151,178,240,170,255,216,128]],[[1,112,230,250,199,191,247,159,255,255,128],[166,109,228,252,211,215,255,174,128,128,128],[39,77,162,232,172,180,245,178,255,255,128]],[[1,52,220,246,198,199,249,220,255,255,128],[124,74,191,243,183,193,250,221,255,255,128],[24,71,130,219,154,170,243,182,255,255,128]],[[1,182,225,249,219,240,255,224,128,128,128],[149,150,226,252,216,205,255,171,128,128,128],[28,108,170,242,183,194,254,223,255,255,128]],[[1,81,230,252,204,203,255,192,128,128,128],[123,102,209,247,188,196,255,233,128,128,128],[20,95,153,243,164,173,255,203,128,128,128]],[[1,222,248,255,216,213,128,128,128,128,128],[168,175,246,252,235,205,255,255,128,128,128],[47,116,215,255,211,212,255,255,128,128,128]],[[1,121,236,253,212,214,255,255,128,128,128],[141,84,213,252,201,202,255,219,128,128,128],[42,80,160,240,162,185,255,205,128,128,128]],[[1,1,255,128,128,128,128,128,128,128,128],[244,1,255,128,128,128,128,128,128,128,128],[238,1,255,128,128,128,128,128,128,128,128]]]],hm=[[[231,120,48,89,115,113,120,152,112],[152,179,64,126,170,118,46,70,95],[175,69,143,80,85,82,72,155,103],[56,58,10,171,218,189,17,13,152],[114,26,17,163,44,195,21,10,173],[121,24,80,195,26,62,44,64,85],[144,71,10,38,171,213,144,34,26],[170,46,55,19,136,160,33,206,71],[63,20,8,114,114,208,12,9,226],[81,40,11,96,182,84,29,16,36]],[[134,183,89,137,98,101,106,165,148],[72,187,100,130,157,111,32,75,80],[66,102,167,99,74,62,40,234,128],[41,53,9,178,241,141,26,8,107],[74,43,26,146,73,166,49,23,157],[65,38,105,160,51,52,31,115,128],[104,79,12,27,217,255,87,17,7],[87,68,71,44,114,51,15,186,23],[47,41,14,110,182,183,21,17,194],[66,45,25,102,197,189,23,18,22]],[[88,88,147,150,42,46,45,196,205],[43,97,183,117,85,38,35,179,61],[39,53,200,87,26,21,43,232,171],[56,34,51,104,114,102,29,93,77],[39,28,85,171,58,165,90,98,64],[34,22,116,206,23,34,43,166,73],[107,54,32,26,51,1,81,43,31],[68,25,106,22,64,171,36,225,114],[34,19,21,102,132,188,16,76,124],[62,18,78,95,85,57,50,48,51]],[[193,101,35,159,215,111,89,46,111],[60,148,31,172,219,228,21,18,111],[112,113,77,85,179,255,38,120,114],[40,42,1,196,245,209,10,25,109],[88,43,29,140,166,213,37,43,154],[61,63,30,155,67,45,68,1,209],[100,80,8,43,154,1,51,26,71],[142,78,78,16,255,128,34,197,171],[41,40,5,102,211,183,4,1,221],[51,50,17,168,209,192,23,25,82]],[[138,31,36,171,27,166,38,44,229],[67,87,58,169,82,115,26,59,179],[63,59,90,180,59,166,93,73,154],[40,40,21,116,143,209,34,39,175],[47,15,16,183,34,223,49,45,183],[46,17,33,183,6,98,15,32,183],[57,46,22,24,128,1,54,17,37],[65,32,73,115,28,128,23,128,205],[40,3,9,115,51,192,18,6,223],[87,37,9,115,59,77,64,21,47]],[[104,55,44,218,9,54,53,130,226],[64,90,70,205,40,41,23,26,57],[54,57,112,184,5,41,38,166,213],[30,34,26,133,152,116,10,32,134],[39,19,53,221,26,114,32,73,255],[31,9,65,234,2,15,1,118,73],[75,32,12,51,192,255,160,43,51],[88,31,35,67,102,85,55,186,85],[56,21,23,111,59,205,45,37,192],[55,38,70,124,73,102,1,34,98]],[[125,98,42,88,104,85,117,175,82],[95,84,53,89,128,100,113,101,45],[75,79,123,47,51,128,81,171,1],[57,17,5,71,102,57,53,41,49],[38,33,13,121,57,73,26,1,85],[41,10,67,138,77,110,90,47,114],[115,21,2,10,102,255,166,23,6],[101,29,16,10,85,128,101,196,26],[57,18,10,102,102,213,34,20,43],[117,20,15,36,163,128,68,1,26]],[[102,61,71,37,34,53,31,243,192],[69,60,71,38,73,119,28,222,37],[68,45,128,34,1,47,11,245,171],[62,17,19,70,146,85,55,62,70],[37,43,37,154,100,163,85,160,1],[63,9,92,136,28,64,32,201,85],[75,15,9,9,64,255,184,119,16],[86,6,28,5,64,255,25,248,1],[56,8,17,132,137,255,55,116,128],[58,15,20,82,135,57,26,121,40]],[[164,50,31,137,154,133,25,35,218],[51,103,44,131,131,123,31,6,158],[86,40,64,135,148,224,45,183,128],[22,26,17,131,240,154,14,1,209],[45,16,21,91,64,222,7,1,197],[56,21,39,155,60,138,23,102,213],[83,12,13,54,192,255,68,47,28],[85,26,85,85,128,128,32,146,171],[18,11,7,63,144,171,4,4,246],[35,27,10,146,174,171,12,26,128]],[[190,80,35,99,180,80,126,54,45],[85,126,47,87,176,51,41,20,32],[101,75,128,139,118,146,116,128,85],[56,41,15,176,236,85,37,9,62],[71,30,17,119,118,255,17,18,138],[101,38,60,138,55,70,43,26,142],[146,36,19,30,171,255,97,27,20],[138,45,61,62,219,1,81,188,64],[32,41,20,117,151,142,20,21,163],[112,19,12,61,195,128,48,4,24]]],fm=[[[[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]],[[176,246,255,255,255,255,255,255,255,255,255],[223,241,252,255,255,255,255,255,255,255,255],[249,253,253,255,255,255,255,255,255,255,255]],[[255,244,252,255,255,255,255,255,255,255,255],[234,254,254,255,255,255,255,255,255,255,255],[253,255,255,255,255,255,255,255,255,255,255]],[[255,246,254,255,255,255,255,255,255,255,255],[239,253,254,255,255,255,255,255,255,255,255],[254,255,254,255,255,255,255,255,255,255,255]],[[255,248,254,255,255,255,255,255,255,255,255],[251,255,254,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]],[[255,253,254,255,255,255,255,255,255,255,255],[251,254,254,255,255,255,255,255,255,255,255],[254,255,254,255,255,255,255,255,255,255,255]],[[255,254,253,255,254,255,255,255,255,255,255],[250,255,254,255,254,255,255,255,255,255,255],[254,255,255,255,255,255,255,255,255,255,255]],[[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]]],[[[217,255,255,255,255,255,255,255,255,255,255],[225,252,241,253,255,255,254,255,255,255,255],[234,250,241,250,253,255,253,254,255,255,255]],[[255,254,255,255,255,255,255,255,255,255,255],[223,254,254,255,255,255,255,255,255,255,255],[238,253,254,254,255,255,255,255,255,255,255]],[[255,248,254,255,255,255,255,255,255,255,255],[249,254,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]],[[255,253,255,255,255,255,255,255,255,255,255],[247,254,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]],[[255,253,254,255,255,255,255,255,255,255,255],[252,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]],[[255,254,254,255,255,255,255,255,255,255,255],[253,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]],[[255,254,253,255,255,255,255,255,255,255,255],[250,255,255,255,255,255,255,255,255,255,255],[254,255,255,255,255,255,255,255,255,255,255]],[[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]]],[[[186,251,250,255,255,255,255,255,255,255,255],[234,251,244,254,255,255,255,255,255,255,255],[251,251,243,253,254,255,254,255,255,255,255]],[[255,253,254,255,255,255,255,255,255,255,255],[236,253,254,255,255,255,255,255,255,255,255],[251,253,253,254,254,255,255,255,255,255,255]],[[255,254,254,255,255,255,255,255,255,255,255],[254,254,254,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]],[[255,254,255,255,255,255,255,255,255,255,255],[254,254,255,255,255,255,255,255,255,255,255],[254,255,255,255,255,255,255,255,255,255,255]],[[255,255,255,255,255,255,255,255,255,255,255],[254,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]],[[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]],[[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]],[[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]]],[[[248,255,255,255,255,255,255,255,255,255,255],[250,254,252,254,255,255,255,255,255,255,255],[248,254,249,253,255,255,255,255,255,255,255]],[[255,253,253,255,255,255,255,255,255,255,255],[246,253,253,255,255,255,255,255,255,255,255],[252,254,251,254,254,255,255,255,255,255,255]],[[255,254,252,255,255,255,255,255,255,255,255],[248,254,253,255,255,255,255,255,255,255,255],[253,255,254,254,255,255,255,255,255,255,255]],[[255,251,254,255,255,255,255,255,255,255,255],[245,251,254,255,255,255,255,255,255,255,255],[253,253,254,255,255,255,255,255,255,255,255]],[[255,251,253,255,255,255,255,255,255,255,255],[252,253,254,255,255,255,255,255,255,255,255],[255,254,255,255,255,255,255,255,255,255,255]],[[255,252,255,255,255,255,255,255,255,255,255],[249,255,254,255,255,255,255,255,255,255,255],[255,255,254,255,255,255,255,255,255,255,255]],[[255,255,253,255,255,255,255,255,255,255,255],[250,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]],[[255,255,255,255,255,255,255,255,255,255,255],[254,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]]]],dm=[0,1,2,3,6,4,5,6,6,6,6,6,6,6,6,7,0],Wh=[],wc=[],G0=[],pm=1,Dg=2,$h=[],Xu=[];Zl("UpsampleRgbLinePair",td,3),Zl("UpsampleBgrLinePair",rd,3),Zl("UpsampleRgbaLinePair",Up,4),Zl("UpsampleBgraLinePair",Rp,4),Zl("UpsampleArgbLinePair",id,4),Zl("UpsampleRgba4444LinePair",nd,2),Zl("UpsampleRgb565LinePair",ll,2);var gm=Nt.UpsampleRgbLinePair,mm=Nt.UpsampleBgrLinePair,kg=Nt.UpsampleRgbaLinePair,Rg=Nt.UpsampleBgraLinePair,Ug=Nt.UpsampleArgbLinePair,Pg=Nt.UpsampleRgba4444LinePair,vm=Nt.UpsampleRgb565LinePair,B1=16,x1=1<<B1-1,Vp=-227,ng=482,Og=6,ym=(256<<Og)-1,Ng=0,_m=m(256),wm=m(256),bm=m(256),Em=m(256),Bm=m(ng-Vp),xm=m(ng-Vp);j0("YuvToRgbRow",td,3),j0("YuvToBgrRow",rd,3),j0("YuvToRgbaRow",Up,4),j0("YuvToBgraRow",Rp,4),j0("YuvToArgbRow",id,4),j0("YuvToRgba4444Row",nd,2),j0("YuvToRgb565Row",ll,2);var Mg=[0,4,8,12,128,132,136,140,256,260,264,268,384,388,392,396],C1=[0,2,8],Cm=[8,7,6,4,4,2,2,2,1,1,1,1],Sm=1;this.WebPDecodeRGBA=function(b,U,ne,we,Ge){var Xe=_1,Je=new _r,ot=new _a;Je.ba=ot,ot.S=Xe,ot.width=[ot.width],ot.height=[ot.height];var dt=ot.width,It=ot.height,sr=new Vi;if(sr==null||b==null)var Dr=2;else a(sr!=null),Dr=sd(b,U,ne,sr.width,sr.height,sr.Pd,sr.Qd,sr.format,null);if(Dr!=0?dt=0:(dt!=null&&(dt[0]=sr.width[0]),It!=null&&(It[0]=sr.height[0]),dt=1),dt){ot.width=ot.width[0],ot.height=ot.height[0],we!=null&&(we[0]=ot.width),Ge!=null&&(Ge[0]=ot.height);e:{if(we=new zd,(Ge=new nn).data=b,Ge.w=U,Ge.ha=ne,Ge.kd=1,U=[0],a(Ge!=null),((b=sd(Ge.data,Ge.w,Ge.ha,null,null,null,U,null,Ge))==0||b==7)&&U[0]&&(b=4),(U=b)==0){if(a(Je!=null),we.data=Ge.data,we.w=Ge.w+Ge.offset,we.ha=Ge.ha-Ge.offset,we.put=Ri,we.ac=Gc,we.bc=U0,we.ma=Je,Ge.xa){if((b=jf())==null){Je=1;break e}if(function(Tt,hr){var Br=[0],Jr=[0],Ir=[0];t:for(;;){if(Tt==null)return 0;if(hr==null)return Tt.a=2,0;if(Tt.l=hr,Tt.a=0,$r(Tt.m,hr.data,hr.w,hr.ha),!P0(Tt.m,Br,Jr,Ir)){Tt.a=3;break t}if(Tt.xb=Dg,hr.width=Br[0],hr.height=Jr[0],!Wc(Br[0],Jr[0],1,Tt,null))break t;return 1}return a(Tt.a!=0),0}(b,we)){if(we=(U=Qh(we.width,we.height,Je.Oa,Je.ba))==0){t:{we=b;r:for(;;){if(we==null){we=0;break t}if(a(we.s.yc!=null),a(we.s.Ya!=null),a(0<we.s.Wb),a((ne=we.l)!=null),a((Ge=ne.ma)!=null),we.xb!=0){if(we.ca=Ge.ba,we.tb=Ge.tb,a(we.ca!=null),!Pp(Ge.Oa,ne,w1)){we.a=2;break r}if(!Kf(we,ne.width)||ne.da)break r;if((ne.da||ns(we.ca.S))&&$u(),11>we.ca.S||(alert("todo:WebPInitConvertARGBToYUV"),we.ca.f.kb.F!=null&&$u()),we.Pb&&0<we.s.ua&&we.s.vb.X==null&&!Qt(we.s.vb,we.s.Wa.Xa)){we.a=1;break r}we.xb=0}if(!yc(we,we.V,we.Ba,we.c,we.i,ne.o,Ph))break r;Ge.Dc=we.Ma,we=1;break t}a(we.a!=0),we=0}we=!we}we&&(U=b.a)}else U=b.a}else{if((b=new U1)==null){Je=1;break e}if(b.Fa=Ge.na,b.P=Ge.P,b.qc=Ge.Sa,a1(b,we)){if((U=Qh(we.width,we.height,Je.Oa,Je.ba))==0){if(b.Aa=0,ne=Je.Oa,a((Ge=b)!=null),ne!=null){if(0<(dt=0>(dt=ne.Md)?0:100<dt?255:255*dt/100)){for(It=sr=0;4>It;++It)12>(Dr=Ge.pb[It]).lc&&(Dr.ia=dt*Cm[0>Dr.lc?0:Dr.lc]>>3),sr|=Dr.ia;sr&&(alert("todo:VP8InitRandom"),Ge.ia=1)}Ge.Ga=ne.Id,100<Ge.Ga?Ge.Ga=100:0>Ge.Ga&&(Ge.Ga=0)}(function(Tt,hr){if(Tt==null)return 0;if(hr==null)return Wo(Tt,2,"NULL VP8Io parameter in VP8Decode().");if(!Tt.cb&&!a1(Tt,hr))return 0;if(a(Tt.cb),hr.ac==null||hr.ac(hr)){hr.ob&&(Tt.L=0);var Br=C1[Tt.L];if(Tt.L==2?(Tt.yb=0,Tt.zb=0):(Tt.yb=hr.v-Br>>4,Tt.zb=hr.j-Br>>4,0>Tt.yb&&(Tt.yb=0),0>Tt.zb&&(Tt.zb=0)),Tt.Va=hr.o+15+Br>>4,Tt.Hb=hr.va+15+Br>>4,Tt.Hb>Tt.za&&(Tt.Hb=Tt.za),Tt.Va>Tt.Ub&&(Tt.Va=Tt.Ub),0<Tt.L){var Jr=Tt.ed;for(Br=0;4>Br;++Br){var Ir;if(Tt.Qa.Cb){var rn=Tt.Qa.Lb[Br];Tt.Qa.Fb||(rn+=Jr.Tb)}else rn=Jr.Tb;for(Ir=0;1>=Ir;++Ir){var sn=Tt.gd[Br][Ir],yn=rn;if(Jr.Pc&&(yn+=Jr.vd[0],Ir&&(yn+=Jr.od[0])),0<(yn=0>yn?0:63<yn?63:yn)){var cn=yn;0<Jr.wb&&(cn=4<Jr.wb?cn>>2:cn>>1)>9-Jr.wb&&(cn=9-Jr.wb),1>cn&&(cn=1),sn.dd=cn,sn.tc=2*yn+cn,sn.ld=40<=yn?2:15<=yn?1:0}else sn.tc=0;sn.La=Ir}}}Br=0}else Wo(Tt,6,"Frame setup failed"),Br=Tt.a;if(Br=Br==0){if(Br){Tt.$c=0,0<Tt.Aa||(Tt.Ic=Sm);t:{Br=Tt.Ic,Jr=4*(cn=Tt.za);var ci=32*cn,Jn=cn+1,hs=0<Tt.L?cn*(0<Tt.Aa?2:1):0,si=(Tt.Aa==2?2:1)*cn;if((sn=Jr+832+(Ir=3*(16*Br+C1[Tt.L])/2*ci)+(rn=Tt.Fa!=null&&0<Tt.Fa.length?Tt.Kc.c*Tt.Kc.i:0))!=sn)Br=0;else{if(sn>Tt.Vb){if(Tt.Vb=0,Tt.Ec=m(sn),Tt.Fc=0,Tt.Ec==null){Br=Wo(Tt,1,"no memory during frame initialization.");break t}Tt.Vb=sn}sn=Tt.Ec,yn=Tt.Fc,Tt.Ac=sn,Tt.Bc=yn,yn+=Jr,Tt.Gd=W(ci,n1),Tt.Hd=0,Tt.rb=W(Jn+1,Ep),Tt.sb=1,Tt.wa=hs?W(hs,Wu):null,Tt.Y=0,Tt.D.Nb=0,Tt.D.wa=Tt.wa,Tt.D.Y=Tt.Y,0<Tt.Aa&&(Tt.D.Y+=cn),a(!0),Tt.oc=sn,Tt.pc=yn,yn+=832,Tt.ya=W(si,Bp),Tt.aa=0,Tt.D.ya=Tt.ya,Tt.D.aa=Tt.aa,Tt.Aa==2&&(Tt.D.aa+=cn),Tt.R=16*cn,Tt.B=8*cn,cn=(ci=C1[Tt.L])*Tt.R,ci=ci/2*Tt.B,Tt.sa=sn,Tt.ta=yn+cn,Tt.qa=Tt.sa,Tt.ra=Tt.ta+16*Br*Tt.R+ci,Tt.Ha=Tt.qa,Tt.Ia=Tt.ra+8*Br*Tt.B+ci,Tt.$c=0,yn+=Ir,Tt.mb=rn?sn:null,Tt.nb=rn?yn:null,a(yn+rn<=Tt.Fc+Tt.Vb),zf(Tt),d(Tt.Ac,Tt.Bc,0,Jr),Br=1}}if(Br){if(hr.ka=0,hr.y=Tt.sa,hr.O=Tt.ta,hr.f=Tt.qa,hr.N=Tt.ra,hr.ea=Tt.Ha,hr.Vd=Tt.Ia,hr.fa=Tt.R,hr.Rc=Tt.B,hr.F=null,hr.J=0,!Sg){for(Br=-255;255>=Br;++Br)Eg[255+Br]=0>Br?-Br:Br;for(Br=-1020;1020>=Br;++Br)Bg[1020+Br]=-128>Br?-128:127<Br?127:Br;for(Br=-112;112>=Br;++Br)xg[112+Br]=-16>Br?-16:15<Br?15:Br;for(Br=-255;510>=Br;++Br)Cg[255+Br]=0>Br?0:255<Br?255:Br;Sg=1}Vh=A1,Ad=O1,qc=N1,na=$c,wa=o1,Zu=P1,To=c1,aA=h1,z0=X,Kp=ze,Xd=Xf,m1=f1,dg=Lt,pg=Zt,gg=kp,mg=qf,vg=l1,yg=u1,wc[0]=G1,wc[1]=Cp,wc[2]=K1,wc[3]=z1,wc[4]=V1,wc[5]=M0,wc[6]=N0,wc[7]=W1,wc[8]=Gd,wc[9]=$1,Wh[0]=Nh,Wh[1]=Q1,Wh[2]=H1,Wh[3]=Sp,Wh[4]=j1,Wh[5]=Wf,Wh[6]=Ip,G0[0]=Wd,G0[1]=M1,G0[2]=Tp,G0[3]=$f,G0[4]=Fp,G0[5]=Y1,G0[6]=Lp,Br=1}else Br=0}Br&&(Br=function(Ds,oA){for(Ds.M=0;Ds.M<Ds.Va;++Ds.M){var fs,ai=Ds.Jc[Ds.M&Ds.Xb],Un=Ds.m,Fo=Ds;for(fs=0;fs<Fo.za;++fs){var is=Un,Os=Fo,ja=Os.Ac,KA=Os.Bc+4*fs,Tl=Os.zc,go=Os.ya[Os.aa+fs];if(Os.Qa.Bb?go.$b=an(is,Os.Pa.jb[0])?2+an(is,Os.Pa.jb[2]):an(is,Os.Pa.jb[1]):go.$b=0,Os.kc&&(go.Ad=an(is,Os.Bd)),go.Za=!an(is,145)+0,go.Za){var ul=go.Ob,Fl=0;for(Os=0;4>Os;++Os){var AA,Hs=Tl[0+Os];for(AA=0;4>AA;++AA){Hs=hm[ja[KA+AA]][Hs];for(var aa=Lg[an(is,Hs[0])];0<aa;)aa=Lg[2*aa+an(is,Hs[aa])];Hs=-aa,ja[KA+AA]=Hs}c(ul,Fl,ja,KA,4),Fl+=4,Tl[0+Os]=Hs}}else Hs=an(is,156)?an(is,128)?1:3:an(is,163)?2:0,go.Ob[0]=Hs,d(ja,KA,Hs,4),d(Tl,0,Hs,4);go.Dd=an(is,142)?an(is,114)?an(is,183)?1:3:2:0}if(Fo.m.Ka)return Wo(Ds,7,"Premature end-of-partition0 encountered.");for(;Ds.ja<Ds.za;++Ds.ja){if(Fo=ai,is=(Un=Ds).rb[Un.sb-1],ja=Un.rb[Un.sb+Un.ja],fs=Un.ya[Un.aa+Un.ja],KA=Un.kc?fs.Ad:0)is.la=ja.la=0,fs.Za||(is.Na=ja.Na=0),fs.Hc=0,fs.Gc=0,fs.ia=0;else{var mo,oa;if(is=ja,ja=Fo,KA=Un.Pa.Xc,Tl=Un.ya[Un.aa+Un.ja],go=Un.pb[Tl.$b],Os=Tl.ad,ul=0,Fl=Un.rb[Un.sb-1],Hs=AA=0,d(Os,ul,0,384),Tl.Za)var zA=0,bc=KA[3];else{aa=m(16);var Lo=is.Na+Fl.Na;if(Lo=Gp(ja,KA[1],Lo,go.Eb,0,aa,0),is.Na=Fl.Na=(0<Lo)+0,1<Lo)Vh(aa,0,Os,ul);else{var ql=aa[0]+3>>3;for(aa=0;256>aa;aa+=16)Os[ul+aa]=ql}zA=1,bc=KA[0]}var ba=15&is.la,lA=15&Fl.la;for(aa=0;4>aa;++aa){var Eu=1&lA;for(ql=oa=0;4>ql;++ql)ba=ba>>1|(Eu=(Lo=Gp(ja,bc,Lo=Eu+(1&ba),go.Sc,zA,Os,ul))>zA)<<7,oa=oa<<2|(3<Lo?3:1<Lo?2:Os[ul+0]!=0),ul+=16;ba>>=4,lA=lA>>1|Eu<<7,AA=(AA<<8|oa)>>>0}for(bc=ba,zA=lA>>4,mo=0;4>mo;mo+=2){for(oa=0,ba=is.la>>4+mo,lA=Fl.la>>4+mo,aa=0;2>aa;++aa){for(Eu=1&lA,ql=0;2>ql;++ql)Lo=Eu+(1&ba),ba=ba>>1|(Eu=0<(Lo=Gp(ja,KA[2],Lo,go.Qc,0,Os,ul)))<<3,oa=oa<<2|(3<Lo?3:1<Lo?2:Os[ul+0]!=0),ul+=16;ba>>=2,lA=lA>>1|Eu<<5}Hs|=oa<<4*mo,bc|=ba<<4<<mo,zA|=(240&lA)<<mo}is.la=bc,Fl.la=zA,Tl.Hc=AA,Tl.Gc=Hs,Tl.ia=43690&Hs?0:go.ia,KA=!(AA|Hs)}if(0<Un.L&&(Un.wa[Un.Y+Un.ja]=Un.gd[fs.$b][fs.Za],Un.wa[Un.Y+Un.ja].La|=!KA),Fo.Ka)return Wo(Ds,7,"Premature end-of-file encountered.")}if(zf(Ds),Un=oA,Fo=1,fs=(ai=Ds).D,is=0<ai.L&&ai.M>=ai.zb&&ai.M<=ai.Va,ai.Aa==0)t:{if(fs.M=ai.M,fs.uc=is,Yu(ai,fs),Fo=1,fs=(oa=ai.D).Nb,is=(Hs=C1[ai.L])*ai.R,ja=Hs/2*ai.B,aa=16*fs*ai.R,ql=8*fs*ai.B,KA=ai.sa,Tl=ai.ta-is+aa,go=ai.qa,Os=ai.ra-ja+ql,ul=ai.Ha,Fl=ai.Ia-ja+ql,lA=(ba=oa.M)==0,AA=ba>=ai.Va-1,ai.Aa==2&&Yu(ai,oa),oa.uc)for(Eu=(Lo=ai).D.M,a(Lo.D.uc),oa=Lo.yb;oa<Lo.Hb;++oa){zA=oa,bc=Eu;var Ll=(Bu=(GA=Lo).D).Nb;mo=GA.R;var Bu=Bu.wa[Bu.Y+zA],xu=GA.sa,Xl=GA.ta+16*Ll*mo+16*zA,Cu=Bu.dd,ka=Bu.tc;if(ka!=0)if(a(3<=ka),GA.L==1)0<zA&&mg(xu,Xl,mo,ka+4),Bu.La&&yg(xu,Xl,mo,ka),0<bc&&gg(xu,Xl,mo,ka+4),Bu.La&&vg(xu,Xl,mo,ka);else{var Su=GA.B,Ec=GA.qa,ld=GA.ra+8*Ll*Su+8*zA,V0=GA.Ha,GA=GA.Ia+8*Ll*Su+8*zA;Ll=Bu.ld,0<zA&&(aA(xu,Xl,mo,ka+4,Cu,Ll),Kp(Ec,ld,V0,GA,Su,ka+4,Cu,Ll)),Bu.La&&(m1(xu,Xl,mo,ka,Cu,Ll),pg(Ec,ld,V0,GA,Su,ka,Cu,Ll)),0<bc&&(To(xu,Xl,mo,ka+4,Cu,Ll),z0(Ec,ld,V0,GA,Su,ka+4,Cu,Ll)),Bu.La&&(Xd(xu,Xl,mo,ka,Cu,Ll),dg(Ec,ld,V0,GA,Su,ka,Cu,Ll))}}if(ai.ia&&alert("todo:DitherRow"),Un.put!=null){if(oa=16*ba,ba=16*(ba+1),lA?(Un.y=ai.sa,Un.O=ai.ta+aa,Un.f=ai.qa,Un.N=ai.ra+ql,Un.ea=ai.Ha,Un.W=ai.Ia+ql):(oa-=Hs,Un.y=KA,Un.O=Tl,Un.f=go,Un.N=Os,Un.ea=ul,Un.W=Fl),AA||(ba-=Hs),ba>Un.o&&(ba=Un.o),Un.F=null,Un.J=null,ai.Fa!=null&&0<ai.Fa.length&&oa<ba&&(Un.J=$o(ai,Un,oa,ba-oa),Un.F=ai.mb,Un.F==null&&Un.F.length==0)){Fo=Wo(ai,3,"Could not decode alpha data.");break t}oa<Un.j&&(Hs=Un.j-oa,oa=Un.j,a(!(1&Hs)),Un.O+=ai.R*Hs,Un.N+=ai.B*(Hs>>1),Un.W+=ai.B*(Hs>>1),Un.F!=null&&(Un.J+=Un.width*Hs)),oa<ba&&(Un.O+=Un.v,Un.N+=Un.v>>1,Un.W+=Un.v>>1,Un.F!=null&&(Un.J+=Un.v),Un.ka=oa-Un.j,Un.U=Un.va-Un.v,Un.T=ba-oa,Fo=Un.put(Un))}fs+1!=ai.Ic||AA||(c(ai.sa,ai.ta-is,KA,Tl+16*ai.R,is),c(ai.qa,ai.ra-ja,go,Os+8*ai.B,ja),c(ai.Ha,ai.Ia-ja,ul,Fl+8*ai.B,ja))}if(!Fo)return Wo(Ds,6,"Output aborted.")}return 1}(Tt,hr)),hr.bc!=null&&hr.bc(hr),Br&=1}return Br?(Tt.cb=0,Br):0})(b,we)||(U=b.a)}}else U=b.a}U==0&&Je.Oa!=null&&Je.Oa.fd&&(U=Op(Je.ba))}Je=U}Xe=Je!=0?null:11>Xe?ot.f.RGBA.eb:ot.f.kb.y}else Xe=null;return Xe};var Qg=[3,4,3,4,4,2,2,4,4,4,2,1,1]};function J(Nt,Er){for(var tt="",Ct=0;Ct<4;Ct++)tt+=String.fromCharCode(Nt[Er++]);return tt}function he(Nt,Er){return Nt[Er+0]|Nt[Er+1]<<8}function Ne(Nt,Er){return(Nt[Er+0]|Nt[Er+1]<<8|Nt[Er+2]<<16)>>>0}function Ye(Nt,Er){return(Nt[Er+0]|Nt[Er+1]<<8|Nt[Er+2]<<16|Nt[Er+3]<<24)>>>0}new $;var ce=[0],wt=[0],pt=[],bt=new $,rt=n,Yt=function(Nt,Er){var tt={},Ct=0,Xt=!1,Gt=0,Ur=0;if(tt.frames=[],!function(et,Rt){for(var Ht=0;Ht<4;Ht++)if(et[Rt+Ht]!="RIFF".charCodeAt(Ht))return!0;return!1}(Nt,Er)){for(Ye(Nt,Er+=4),Er+=8;Er<Nt.length;){var Qr=J(Nt,Er),zr=Ye(Nt,Er+=4);Er+=4;var Fr=zr+(1&zr);switch(Qr){case"VP8 ":case"VP8L":tt.frames[Ct]===void 0&&(tt.frames[Ct]={}),(un=tt.frames[Ct]).src_off=Xt?Ur:Er-8,un.src_size=Gt+zr+8,Ct++,Xt&&(Xt=!1,Gt=0,Ur=0);break;case"VP8X":(un=tt.header={}).feature_flags=Nt[Er];var $r=Er+4;un.canvas_width=1+Ne(Nt,$r),$r+=3,un.canvas_height=1+Ne(Nt,$r),$r+=3;break;case"ALPH":Xt=!0,Gt=Fr+8,Ur=Er-8;break;case"ANIM":(un=tt.header).bgcolor=Ye(Nt,Er),$r=Er+4,un.loop_count=he(Nt,$r),$r+=2;break;case"ANMF":var En,un;(un=tt.frames[Ct]={}).offset_x=2*Ne(Nt,Er),Er+=3,un.offset_y=2*Ne(Nt,Er),Er+=3,un.width=1+Ne(Nt,Er),Er+=3,un.height=1+Ne(Nt,Er),Er+=3,un.duration=Ne(Nt,Er),Er+=3,En=Nt[Er++],un.dispose=1&En,un.blend=En>>1&1}Qr!="ANMF"&&(Er+=Fr)}return tt}}(rt,0);Yt.response=rt,Yt.rgbaoutput=!0,Yt.dataurl=!1;var jt=Yt.header?Yt.header:null,Ut=Yt.frames?Yt.frames:null;if(jt){jt.loop_counter=jt.loop_count,ce=[jt.canvas_height],wt=[jt.canvas_width];for(var kr=0;kr<Ut.length&&Ut[kr].blend!=0;kr++);}var en=Ut[0],Hr=bt.WebPDecodeRGBA(rt,en.src_off,en.src_size,wt,ce);en.rgba=Hr,en.imgwidth=wt[0],en.imgheight=ce[0];for(var Ar=0;Ar<wt[0]*ce[0]*4;Ar++)pt[Ar]=Hr[Ar];return this.width=wt,this.height=ce,this.data=pt,this}(function(n){var a,s,c,d,m,W,O,$,J,he=function(et){return et=et||{},this.isStrokeTransparent=et.isStrokeTransparent||!1,this.strokeOpacity=et.strokeOpacity||1,this.strokeStyle=et.strokeStyle||"#000000",this.fillStyle=et.fillStyle||"#000000",this.isFillTransparent=et.isFillTransparent||!1,this.fillOpacity=et.fillOpacity||1,this.font=et.font||"10px sans-serif",this.textBaseline=et.textBaseline||"alphabetic",this.textAlign=et.textAlign||"left",this.lineWidth=et.lineWidth||1,this.lineJoin=et.lineJoin||"miter",this.lineCap=et.lineCap||"butt",this.path=et.path||[],this.transform=et.transform!==void 0?et.transform.clone():new $,this.globalCompositeOperation=et.globalCompositeOperation||"normal",this.globalAlpha=et.globalAlpha||1,this.clip_path=et.clip_path||[],this.currentPoint=et.currentPoint||new W,this.miterLimit=et.miterLimit||10,this.lastPoint=et.lastPoint||new W,this.lineDashOffset=et.lineDashOffset||0,this.lineDash=et.lineDash||[],this.margin=et.margin||[0,0,0,0],this.prevPageLastElemOffset=et.prevPageLastElemOffset||0,this.ignoreClearRect=typeof et.ignoreClearRect!="boolean"||et.ignoreClearRect,this};n.events.push(["initialized",function(){this.context2d=new Ne(this),a=this.internal.f2,s=this.internal.getCoordinateString,c=this.internal.getVerticalCoordinateString,d=this.internal.getHorizontalCoordinate,m=this.internal.getVerticalCoordinate,W=this.internal.Point,O=this.internal.Rectangle,$=this.internal.Matrix,J=new he}]);var Ne=function(et){Object.defineProperty(this,"canvas",{get:function(){return{parentNode:!1,style:!1}}});var Rt=et;Object.defineProperty(this,"pdf",{get:function(){return Rt}});var Ht=!1;Object.defineProperty(this,"pageWrapXEnabled",{get:function(){return Ht},set:function(Xr){Ht=!!Xr}});var tr=!1;Object.defineProperty(this,"pageWrapYEnabled",{get:function(){return tr},set:function(Xr){tr=!!Xr}});var gr=0;Object.defineProperty(this,"posX",{get:function(){return gr},set:function(Xr){isNaN(Xr)||(gr=Xr)}});var Lr=0;Object.defineProperty(this,"posY",{get:function(){return Lr},set:function(Xr){isNaN(Xr)||(Lr=Xr)}}),Object.defineProperty(this,"margin",{get:function(){return J.margin},set:function(Xr){var Qt;typeof Xr=="number"?Qt=[Xr,Xr,Xr,Xr]:((Qt=new Array(4))[0]=Xr[0],Qt[1]=Xr.length>=2?Xr[1]:Qt[0],Qt[2]=Xr.length>=3?Xr[2]:Qt[0],Qt[3]=Xr.length>=4?Xr[3]:Qt[1]),J.margin=Qt}});var jr=!1;Object.defineProperty(this,"autoPaging",{get:function(){return jr},set:function(Xr){jr=Xr}});var Mr=0;Object.defineProperty(this,"lastBreak",{get:function(){return Mr},set:function(Xr){Mr=Xr}});var an=[];Object.defineProperty(this,"pageBreaks",{get:function(){return an},set:function(Xr){an=Xr}}),Object.defineProperty(this,"ctx",{get:function(){return J},set:function(Xr){Xr instanceof he&&(J=Xr)}}),Object.defineProperty(this,"path",{get:function(){return J.path},set:function(Xr){J.path=Xr}});var vn=[];Object.defineProperty(this,"ctxStack",{get:function(){return vn},set:function(Xr){vn=Xr}}),Object.defineProperty(this,"fillStyle",{get:function(){return this.ctx.fillStyle},set:function(Xr){var Qt;Qt=Ye(Xr),this.ctx.fillStyle=Qt.style,this.ctx.isFillTransparent=Qt.a===0,this.ctx.fillOpacity=Qt.a,this.pdf.setFillColor(Qt.r,Qt.g,Qt.b,{a:Qt.a}),this.pdf.setTextColor(Qt.r,Qt.g,Qt.b,{a:Qt.a})}}),Object.defineProperty(this,"strokeStyle",{get:function(){return this.ctx.strokeStyle},set:function(Xr){var Qt=Ye(Xr);this.ctx.strokeStyle=Qt.style,this.ctx.isStrokeTransparent=Qt.a===0,this.ctx.strokeOpacity=Qt.a,Qt.a===0?this.pdf.setDrawColor(255,255,255):(Qt.a,this.pdf.setDrawColor(Qt.r,Qt.g,Qt.b))}}),Object.defineProperty(this,"lineCap",{get:function(){return this.ctx.lineCap},set:function(Xr){["butt","round","square"].indexOf(Xr)!==-1&&(this.ctx.lineCap=Xr,this.pdf.setLineCap(Xr))}}),Object.defineProperty(this,"lineWidth",{get:function(){return this.ctx.lineWidth},set:function(Xr){isNaN(Xr)||(this.ctx.lineWidth=Xr,this.pdf.setLineWidth(Xr))}}),Object.defineProperty(this,"lineJoin",{get:function(){return this.ctx.lineJoin},set:function(Xr){["bevel","round","miter"].indexOf(Xr)!==-1&&(this.ctx.lineJoin=Xr,this.pdf.setLineJoin(Xr))}}),Object.defineProperty(this,"miterLimit",{get:function(){return this.ctx.miterLimit},set:function(Xr){isNaN(Xr)||(this.ctx.miterLimit=Xr,this.pdf.setMiterLimit(Xr))}}),Object.defineProperty(this,"textBaseline",{get:function(){return this.ctx.textBaseline},set:function(Xr){this.ctx.textBaseline=Xr}}),Object.defineProperty(this,"textAlign",{get:function(){return this.ctx.textAlign},set:function(Xr){["right","end","center","left","start"].indexOf(Xr)!==-1&&(this.ctx.textAlign=Xr)}});var Hn=null,jn=null;Object.defineProperty(this,"fontFaces",{get:function(){return jn},set:function(Xr){Hn=null,jn=Xr}}),Object.defineProperty(this,"font",{get:function(){return this.ctx.font},set:function(Xr){var Qt;if(this.ctx.font=Xr,(Qt=/^\s*(?=(?:(?:[-a-z]+\s*){0,2}(italic|oblique))?)(?=(?:(?:[-a-z]+\s*){0,2}(small-caps))?)(?=(?:(?:[-a-z]+\s*){0,2}(bold(?:er)?|lighter|[1-9]00))?)(?:(?:normal|\1|\2|\3)\s*){0,3}((?:xx?-)?(?:small|large)|medium|smaller|larger|[.\d]+(?:\%|in|[cem]m|ex|p[ctx]))(?:\s*\/\s*(normal|[.\d]+(?:\%|in|[cem]m|ex|p[ctx])))?\s*([-_,\"\'\sa-z]+?)\s*$/i.exec(Xr))!==null){var Ss=Qt[1];Qt[2];var As=Qt[3],Ti=Qt[4];Qt[5];var _n=Qt[6],vi=/^([.\d]+)((?:%|in|[cem]m|ex|p[ctx]))$/i.exec(Ti)[2];Ti=Math.floor(vi==="px"?parseFloat(Ti)*this.pdf.internal.scaleFactor:vi==="em"?parseFloat(Ti)*this.pdf.getFontSize():parseFloat(Ti)*this.pdf.internal.scaleFactor),this.pdf.setFontSize(Ti);var Gn=function(Hi){var bi,La,qs=[],ui=Hi.trim();if(ui==="")return F;if(ui in Wl)return[Wl[ui]];for(;ui!=="";){switch(La=null,bi=(ui=rA(ui)).charAt(0)){case'"':case"'":La=l(ui.substring(1),bi);break;default:La=e(ui)}if(La===null||(qs.push(La[0]),(ui=rA(La[1]))!==""&&ui.charAt(0)!==","))return F;ui=ui.replace(/^,/,"")}return qs}(_n);if(this.fontFaces){var ls=function(Hi,bi){if(Hn===null){var La=function(qs){var ui=[];return Object.keys(qs).forEach(function(rs){qs[rs].forEach(function(ya){var ki=null;switch(ya){case"bold":ki={family:rs,weight:"bold"};break;case"italic":ki={family:rs,style:"italic"};break;case"bolditalic":ki={family:rs,weight:"bold",style:"italic"};break;case"":case"normal":ki={family:rs}}ki!==null&&(ki.ref={name:rs,style:ya},ui.push(ki))})}),ui}(Hi.getFontList());Hn=function(qs){for(var ui={},rs=0;rs<qs.length;++rs){var ya=ol(qs[rs]),ki=ya.family,Ls=ya.stretch,ns=ya.style,Co=ya.weight;ui[ki]=ui[ki]||{},ui[ki][Ls]=ui[ki][Ls]||{},ui[ki][Ls][ns]=ui[ki][Ls][ns]||{},ui[ki][Ls][ns][Co]=ya}return ui}(La.concat(bi))}return Hn}(this.pdf,this.fontFaces),xi=Gn.map(function(Hi){return{family:Hi,stretch:"normal",weight:As,style:Ss}}),Zs=function(Hi,bi,La){for(var qs=(La=La||{}).defaultFontFamily||"times",ui=Object.assign({},ju,La.genericFontFamilies||{}),rs=null,ya=null,ki=0;ki<bi.length;++ki)if(ui[(rs=ol(bi[ki])).family]&&(rs.family=ui[rs.family]),Hi.hasOwnProperty(rs.family)){ya=Hi[rs.family];break}if(!(ya=ya||Hi[qs]))throw new Error("Could not find a font-family for the rule '"+$l(rs)+"' and default family '"+qs+"'.");if(ya=function(Ls,ns){if(ns[Ls])return ns[Ls];var Co=Vo[Ls],iA=Co<=Vo.normal?-1:1,_a=Il(ns,yu,Co,iA);if(!_a)throw new Error("Could not find a matching font-stretch value for "+Ls);return _a}(rs.stretch,ya),ya=function(Ls,ns){if(ns[Ls])return ns[Ls];for(var Co=so[Ls],iA=0;iA<Co.length;++iA)if(ns[Co[iA]])return ns[Co[iA]];throw new Error("Could not find a matching font-style for "+Ls)}(rs.style,ya),!(ya=function(Ls,ns){if(ns[Ls])return ns[Ls];if(Ls===400&&ns[500])return ns[500];if(Ls===500&&ns[400])return ns[400];var Co=gc[Ls],iA=Il(ns,tA,Co,Ls<400?-1:1);if(!iA)throw new Error("Could not find a matching font-weight for value "+Ls);return iA}(rs.weight,ya)))throw new Error("Failed to resolve a font for the rule '"+$l(rs)+"'.");return ya}(ls,xi);this.pdf.setFont(Zs.ref.name,Zs.ref.style)}else{var es="";(As==="bold"||parseInt(As,10)>=700||Ss==="bold")&&(es="bold"),Ss==="italic"&&(es+="italic"),es.length===0&&(es="normal");for(var ts="",pa={arial:"Helvetica",Arial:"Helvetica",verdana:"Helvetica",Verdana:"Helvetica",helvetica:"Helvetica",Helvetica:"Helvetica","sans-serif":"Helvetica",fixed:"Courier",monospace:"Courier",terminal:"Courier",cursive:"Times",fantasy:"Times",serif:"Times"},us=0;us<Gn.length;us++){if(this.pdf.internal.getFont(Gn[us],es,{noFallback:!0,disableWarning:!0})!==void 0){ts=Gn[us];break}if(es==="bolditalic"&&this.pdf.internal.getFont(Gn[us],"bold",{noFallback:!0,disableWarning:!0})!==void 0)ts=Gn[us],es="bold";else if(this.pdf.internal.getFont(Gn[us],"normal",{noFallback:!0,disableWarning:!0})!==void 0){ts=Gn[us],es="normal";break}}if(ts===""){for(var wi=0;wi<Gn.length;wi++)if(pa[Gn[wi]]){ts=pa[Gn[wi]];break}}ts=ts===""?"Times":ts,this.pdf.setFont(ts,es)}}}}),Object.defineProperty(this,"globalCompositeOperation",{get:function(){return this.ctx.globalCompositeOperation},set:function(Xr){this.ctx.globalCompositeOperation=Xr}}),Object.defineProperty(this,"globalAlpha",{get:function(){return this.ctx.globalAlpha},set:function(Xr){this.ctx.globalAlpha=Xr}}),Object.defineProperty(this,"lineDashOffset",{get:function(){return this.ctx.lineDashOffset},set:function(Xr){this.ctx.lineDashOffset=Xr,un.call(this)}}),Object.defineProperty(this,"lineDash",{get:function(){return this.ctx.lineDash},set:function(Xr){this.ctx.lineDash=Xr,un.call(this)}}),Object.defineProperty(this,"ignoreClearRect",{get:function(){return this.ctx.ignoreClearRect},set:function(Xr){this.ctx.ignoreClearRect=!!Xr}})};Ne.prototype.setLineDash=function(et){this.lineDash=et},Ne.prototype.getLineDash=function(){return this.lineDash.length%2?this.lineDash.concat(this.lineDash):this.lineDash.slice()},Ne.prototype.fill=function(){Ut.call(this,"fill",!1)},Ne.prototype.stroke=function(){Ut.call(this,"stroke",!1)},Ne.prototype.beginPath=function(){this.path=[{type:"begin"}]},Ne.prototype.moveTo=function(et,Rt){if(isNaN(et)||isNaN(Rt))throw Us.error("jsPDF.context2d.moveTo: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.moveTo");var Ht=this.ctx.transform.applyToPoint(new W(et,Rt));this.path.push({type:"mt",x:Ht.x,y:Ht.y}),this.ctx.lastPoint=new W(et,Rt)},Ne.prototype.closePath=function(){var et=new W(0,0),Rt=0;for(Rt=this.path.length-1;Rt!==-1;Rt--)if(this.path[Rt].type==="begin"&&(0,Ie.Z)(this.path[Rt+1])==="object"&&typeof this.path[Rt+1].x=="number"){et=new W(this.path[Rt+1].x,this.path[Rt+1].y);break}this.path.push({type:"close"}),this.ctx.lastPoint=new W(et.x,et.y)},Ne.prototype.lineTo=function(et,Rt){if(isNaN(et)||isNaN(Rt))throw Us.error("jsPDF.context2d.lineTo: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.lineTo");var Ht=this.ctx.transform.applyToPoint(new W(et,Rt));this.path.push({type:"lt",x:Ht.x,y:Ht.y}),this.ctx.lastPoint=new W(Ht.x,Ht.y)},Ne.prototype.clip=function(){this.ctx.clip_path=JSON.parse(JSON.stringify(this.path)),Ut.call(this,null,!0)},Ne.prototype.quadraticCurveTo=function(et,Rt,Ht,tr){if(isNaN(Ht)||isNaN(tr)||isNaN(et)||isNaN(Rt))throw Us.error("jsPDF.context2d.quadraticCurveTo: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.quadraticCurveTo");var gr=this.ctx.transform.applyToPoint(new W(Ht,tr)),Lr=this.ctx.transform.applyToPoint(new W(et,Rt));this.path.push({type:"qct",x1:Lr.x,y1:Lr.y,x:gr.x,y:gr.y}),this.ctx.lastPoint=new W(gr.x,gr.y)},Ne.prototype.bezierCurveTo=function(et,Rt,Ht,tr,gr,Lr){if(isNaN(gr)||isNaN(Lr)||isNaN(et)||isNaN(Rt)||isNaN(Ht)||isNaN(tr))throw Us.error("jsPDF.context2d.bezierCurveTo: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.bezierCurveTo");var jr=this.ctx.transform.applyToPoint(new W(gr,Lr)),Mr=this.ctx.transform.applyToPoint(new W(et,Rt)),an=this.ctx.transform.applyToPoint(new W(Ht,tr));this.path.push({type:"bct",x1:Mr.x,y1:Mr.y,x2:an.x,y2:an.y,x:jr.x,y:jr.y}),this.ctx.lastPoint=new W(jr.x,jr.y)},Ne.prototype.arc=function(et,Rt,Ht,tr,gr,Lr){if(isNaN(et)||isNaN(Rt)||isNaN(Ht)||isNaN(tr)||isNaN(gr))throw Us.error("jsPDF.context2d.arc: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.arc");if(Lr=!!Lr,!this.ctx.transform.isIdentity){var jr=this.ctx.transform.applyToPoint(new W(et,Rt));et=jr.x,Rt=jr.y;var Mr=this.ctx.transform.applyToPoint(new W(0,Ht)),an=this.ctx.transform.applyToPoint(new W(0,0));Ht=Math.sqrt(Math.pow(Mr.x-an.x,2)+Math.pow(Mr.y-an.y,2))}Math.abs(gr-tr)>=2*Math.PI&&(tr=0,gr=2*Math.PI),this.path.push({type:"arc",x:et,y:Rt,radius:Ht,startAngle:tr,endAngle:gr,counterclockwise:Lr})},Ne.prototype.arcTo=function(et,Rt,Ht,tr,gr){throw new Error("arcTo not implemented.")},Ne.prototype.rect=function(et,Rt,Ht,tr){if(isNaN(et)||isNaN(Rt)||isNaN(Ht)||isNaN(tr))throw Us.error("jsPDF.context2d.rect: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.rect");this.moveTo(et,Rt),this.lineTo(et+Ht,Rt),this.lineTo(et+Ht,Rt+tr),this.lineTo(et,Rt+tr),this.lineTo(et,Rt),this.lineTo(et+Ht,Rt),this.lineTo(et,Rt)},Ne.prototype.fillRect=function(et,Rt,Ht,tr){if(isNaN(et)||isNaN(Rt)||isNaN(Ht)||isNaN(tr))throw Us.error("jsPDF.context2d.fillRect: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.fillRect");if(!ce.call(this)){var gr={};this.lineCap!=="butt"&&(gr.lineCap=this.lineCap,this.lineCap="butt"),this.lineJoin!=="miter"&&(gr.lineJoin=this.lineJoin,this.lineJoin="miter"),this.beginPath(),this.rect(et,Rt,Ht,tr),this.fill(),gr.hasOwnProperty("lineCap")&&(this.lineCap=gr.lineCap),gr.hasOwnProperty("lineJoin")&&(this.lineJoin=gr.lineJoin)}},Ne.prototype.strokeRect=function(et,Rt,Ht,tr){if(isNaN(et)||isNaN(Rt)||isNaN(Ht)||isNaN(tr))throw Us.error("jsPDF.context2d.strokeRect: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.strokeRect");wt.call(this)||(this.beginPath(),this.rect(et,Rt,Ht,tr),this.stroke())},Ne.prototype.clearRect=function(et,Rt,Ht,tr){if(isNaN(et)||isNaN(Rt)||isNaN(Ht)||isNaN(tr))throw Us.error("jsPDF.context2d.clearRect: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.clearRect");this.ignoreClearRect||(this.fillStyle="#ffffff",this.fillRect(et,Rt,Ht,tr))},Ne.prototype.save=function(et){et=typeof et!="boolean"||et;for(var Rt=this.pdf.internal.getCurrentPageInfo().pageNumber,Ht=0;Ht<this.pdf.internal.getNumberOfPages();Ht++)this.pdf.setPage(Ht+1),this.pdf.internal.out("q");if(this.pdf.setPage(Rt),et){this.ctx.fontSize=this.pdf.internal.getFontSize();var tr=new he(this.ctx);this.ctxStack.push(this.ctx),this.ctx=tr}},Ne.prototype.restore=function(et){et=typeof et!="boolean"||et;for(var Rt=this.pdf.internal.getCurrentPageInfo().pageNumber,Ht=0;Ht<this.pdf.internal.getNumberOfPages();Ht++)this.pdf.setPage(Ht+1),this.pdf.internal.out("Q");this.pdf.setPage(Rt),et&&this.ctxStack.length!==0&&(this.ctx=this.ctxStack.pop(),this.fillStyle=this.ctx.fillStyle,this.strokeStyle=this.ctx.strokeStyle,this.font=this.ctx.font,this.lineCap=this.ctx.lineCap,this.lineWidth=this.ctx.lineWidth,this.lineJoin=this.ctx.lineJoin,this.lineDash=this.ctx.lineDash,this.lineDashOffset=this.ctx.lineDashOffset)},Ne.prototype.toDataURL=function(){throw new Error("toDataUrl not implemented.")};var Ye=function(et){var Rt,Ht,tr,gr;if(et.isCanvasGradient===!0&&(et=et.getColor()),!et)return{r:0,g:0,b:0,a:0,style:et};if(/transparent|rgba\s*\(\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*,\s*0+\s*\)/.test(et))Rt=0,Ht=0,tr=0,gr=0;else{var Lr=/rgb\s*\(\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*\)/.exec(et);if(Lr!==null)Rt=parseInt(Lr[1]),Ht=parseInt(Lr[2]),tr=parseInt(Lr[3]),gr=1;else if((Lr=/rgba\s*\(\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*,\s*([\d.]+)\s*\)/.exec(et))!==null)Rt=parseInt(Lr[1]),Ht=parseInt(Lr[2]),tr=parseInt(Lr[3]),gr=parseFloat(Lr[4]);else{if(gr=1,typeof et=="string"&&et.charAt(0)!=="#"){var jr=new Uf(et);et=jr.ok?jr.toHex():"#000000"}et.length===4?(Rt=et.substring(1,2),Rt+=Rt,Ht=et.substring(2,3),Ht+=Ht,tr=et.substring(3,4),tr+=tr):(Rt=et.substring(1,3),Ht=et.substring(3,5),tr=et.substring(5,7)),Rt=parseInt(Rt,16),Ht=parseInt(Ht,16),tr=parseInt(tr,16)}}return{r:Rt,g:Ht,b:tr,a:gr,style:et}},ce=function(){return this.ctx.isFillTransparent||this.globalAlpha==0},wt=function(){return!!(this.ctx.isStrokeTransparent||this.globalAlpha==0)};Ne.prototype.fillText=function(et,Rt,Ht,tr){if(isNaN(Rt)||isNaN(Ht)||typeof et!="string")throw Us.error("jsPDF.context2d.fillText: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.fillText");if(tr=isNaN(tr)?void 0:tr,!ce.call(this)){var gr=Fr(this.ctx.transform.rotation),Lr=this.ctx.transform.scaleX;Ct.call(this,{text:et,x:Rt,y:Ht,scale:Lr,angle:gr,align:this.textAlign,maxWidth:tr})}},Ne.prototype.strokeText=function(et,Rt,Ht,tr){if(isNaN(Rt)||isNaN(Ht)||typeof et!="string")throw Us.error("jsPDF.context2d.strokeText: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.strokeText");if(!wt.call(this)){tr=isNaN(tr)?void 0:tr;var gr=Fr(this.ctx.transform.rotation),Lr=this.ctx.transform.scaleX;Ct.call(this,{text:et,x:Rt,y:Ht,scale:Lr,renderingMode:"stroke",angle:gr,align:this.textAlign,maxWidth:tr})}},Ne.prototype.measureText=function(et){if(typeof et!="string")throw Us.error("jsPDF.context2d.measureText: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.measureText");var Rt=this.pdf,Ht=this.pdf.internal.scaleFactor,tr=Rt.internal.getFontSize(),gr=Rt.getStringUnitWidth(et)*tr/Rt.internal.scaleFactor;return new function(Lr){var jr=(Lr=Lr||{}).width||0;return Object.defineProperty(this,"width",{get:function(){return jr}}),this}({width:gr*=Math.round(96*Ht/72*1e4)/1e4})},Ne.prototype.scale=function(et,Rt){if(isNaN(et)||isNaN(Rt))throw Us.error("jsPDF.context2d.scale: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.scale");var Ht=new $(et,0,0,Rt,0,0);this.ctx.transform=this.ctx.transform.multiply(Ht)},Ne.prototype.rotate=function(et){if(isNaN(et))throw Us.error("jsPDF.context2d.rotate: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.rotate");var Rt=new $(Math.cos(et),Math.sin(et),-Math.sin(et),Math.cos(et),0,0);this.ctx.transform=this.ctx.transform.multiply(Rt)},Ne.prototype.translate=function(et,Rt){if(isNaN(et)||isNaN(Rt))throw Us.error("jsPDF.context2d.translate: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.translate");var Ht=new $(1,0,0,1,et,Rt);this.ctx.transform=this.ctx.transform.multiply(Ht)},Ne.prototype.transform=function(et,Rt,Ht,tr,gr,Lr){if(isNaN(et)||isNaN(Rt)||isNaN(Ht)||isNaN(tr)||isNaN(gr)||isNaN(Lr))throw Us.error("jsPDF.context2d.transform: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.transform");var jr=new $(et,Rt,Ht,tr,gr,Lr);this.ctx.transform=this.ctx.transform.multiply(jr)},Ne.prototype.setTransform=function(et,Rt,Ht,tr,gr,Lr){et=isNaN(et)?1:et,Rt=isNaN(Rt)?0:Rt,Ht=isNaN(Ht)?0:Ht,tr=isNaN(tr)?1:tr,gr=isNaN(gr)?0:gr,Lr=isNaN(Lr)?0:Lr,this.ctx.transform=new $(et,Rt,Ht,tr,gr,Lr)};var pt=function(){return this.margin[0]>0||this.margin[1]>0||this.margin[2]>0||this.margin[3]>0};Ne.prototype.drawImage=function(et,Rt,Ht,tr,gr,Lr,jr,Mr,an){var vn=this.pdf.getImageProperties(et),Hn=1,jn=1,Xr=1,Qt=1;tr!==void 0&&Mr!==void 0&&(Xr=Mr/tr,Qt=an/gr,Hn=vn.width/tr*Mr/tr,jn=vn.height/gr*an/gr),Lr===void 0&&(Lr=Rt,jr=Ht,Rt=0,Ht=0),tr!==void 0&&Mr===void 0&&(Mr=tr,an=gr),tr===void 0&&Mr===void 0&&(Mr=vn.width,an=vn.height);for(var Ss,As=this.ctx.transform.decompose(),Ti=Fr(As.rotate.shx),_n=new $,vi=(_n=(_n=(_n=_n.multiply(As.translate)).multiply(As.skew)).multiply(As.scale)).applyToRectangle(new O(Lr-Rt*Xr,jr-Ht*Qt,tr*Hn,gr*jn)),Gn=bt.call(this,vi),ls=[],xi=0;xi<Gn.length;xi+=1)ls.indexOf(Gn[xi])===-1&&ls.push(Gn[xi]);if(jt(ls),this.autoPaging)for(var Zs=ls[0],es=ls[ls.length-1],ts=Zs;ts<es+1;ts++){this.pdf.setPage(ts);var pa=this.pdf.internal.pageSize.width-this.margin[3]-this.margin[1],us=ts===1?this.posY+this.margin[0]:this.margin[0],wi=this.pdf.internal.pageSize.height-this.posY-this.margin[0]-this.margin[2],Hi=this.pdf.internal.pageSize.height-this.margin[0]-this.margin[2],bi=ts===1?0:wi+(ts-2)*Hi;if(this.ctx.clip_path.length!==0){var La=this.path;Ss=JSON.parse(JSON.stringify(this.ctx.clip_path)),this.path=Yt(Ss,this.posX+this.margin[3],-bi+us+this.ctx.prevPageLastElemOffset),kr.call(this,"fill",!0),this.path=La}var qs=JSON.parse(JSON.stringify(vi));qs=Yt([qs],this.posX+this.margin[3],-bi+us+this.ctx.prevPageLastElemOffset)[0];var ui=(ts>Zs||ts<es)&&pt.call(this);ui&&(this.pdf.saveGraphicsState(),this.pdf.rect(this.margin[3],this.margin[0],pa,Hi,null).clip().discardPath()),this.pdf.addImage(et,"JPEG",qs.x,qs.y,qs.w,qs.h,null,null,Ti),ui&&this.pdf.restoreGraphicsState()}else this.pdf.addImage(et,"JPEG",vi.x,vi.y,vi.w,vi.h,null,null,Ti)};var bt=function(et,Rt,Ht){var tr=[];Rt=Rt||this.pdf.internal.pageSize.width,Ht=Ht||this.pdf.internal.pageSize.height-this.margin[0]-this.margin[2];var gr=this.posY+this.ctx.prevPageLastElemOffset;switch(et.type){default:case"mt":case"lt":tr.push(Math.floor((et.y+gr)/Ht)+1);break;case"arc":tr.push(Math.floor((et.y+gr-et.radius)/Ht)+1),tr.push(Math.floor((et.y+gr+et.radius)/Ht)+1);break;case"qct":var Lr=$r(this.ctx.lastPoint.x,this.ctx.lastPoint.y,et.x1,et.y1,et.x,et.y);tr.push(Math.floor((Lr.y+gr)/Ht)+1),tr.push(Math.floor((Lr.y+Lr.h+gr)/Ht)+1);break;case"bct":var jr=En(this.ctx.lastPoint.x,this.ctx.lastPoint.y,et.x1,et.y1,et.x2,et.y2,et.x,et.y);tr.push(Math.floor((jr.y+gr)/Ht)+1),tr.push(Math.floor((jr.y+jr.h+gr)/Ht)+1);break;case"rect":tr.push(Math.floor((et.y+gr)/Ht)+1),tr.push(Math.floor((et.y+et.h+gr)/Ht)+1)}for(var Mr=0;Mr<tr.length;Mr+=1)for(;this.pdf.internal.getNumberOfPages()<tr[Mr];)rt.call(this);return tr},rt=function(){var et=this.fillStyle,Rt=this.strokeStyle,Ht=this.font,tr=this.lineCap,gr=this.lineWidth,Lr=this.lineJoin;this.pdf.addPage(),this.fillStyle=et,this.strokeStyle=Rt,this.font=Ht,this.lineCap=tr,this.lineWidth=gr,this.lineJoin=Lr},Yt=function(et,Rt,Ht){for(var tr=0;tr<et.length;tr++)switch(et[tr].type){case"bct":et[tr].x2+=Rt,et[tr].y2+=Ht;case"qct":et[tr].x1+=Rt,et[tr].y1+=Ht;default:et[tr].x+=Rt,et[tr].y+=Ht}return et},jt=function(et){return et.sort(function(Rt,Ht){return Rt-Ht})},Ut=function(et,Rt){for(var Ht,tr,gr=this.fillStyle,Lr=this.strokeStyle,jr=this.lineCap,Mr=this.lineWidth,an=Math.abs(Mr*this.ctx.transform.scaleX),vn=this.lineJoin,Hn=JSON.parse(JSON.stringify(this.path)),jn=JSON.parse(JSON.stringify(this.path)),Xr=[],Qt=0;Qt<jn.length;Qt++)if(jn[Qt].x!==void 0)for(var Ss=bt.call(this,jn[Qt]),As=0;As<Ss.length;As+=1)Xr.indexOf(Ss[As])===-1&&Xr.push(Ss[As]);for(var Ti=0;Ti<Xr.length;Ti++)for(;this.pdf.internal.getNumberOfPages()<Xr[Ti];)rt.call(this);if(jt(Xr),this.autoPaging)for(var _n=Xr[0],vi=Xr[Xr.length-1],Gn=_n;Gn<vi+1;Gn++){this.pdf.setPage(Gn),this.fillStyle=gr,this.strokeStyle=Lr,this.lineCap=jr,this.lineWidth=an,this.lineJoin=vn;var ls=this.pdf.internal.pageSize.width-this.margin[3]-this.margin[1],xi=Gn===1?this.posY+this.margin[0]:this.margin[0],Zs=this.pdf.internal.pageSize.height-this.posY-this.margin[0]-this.margin[2],es=this.pdf.internal.pageSize.height-this.margin[0]-this.margin[2],ts=Gn===1?0:Zs+(Gn-2)*es;if(this.ctx.clip_path.length!==0){var pa=this.path;Ht=JSON.parse(JSON.stringify(this.ctx.clip_path)),this.path=Yt(Ht,this.posX+this.margin[3],-ts+xi+this.ctx.prevPageLastElemOffset),kr.call(this,et,!0),this.path=pa}if(tr=JSON.parse(JSON.stringify(Hn)),this.path=Yt(tr,this.posX+this.margin[3],-ts+xi+this.ctx.prevPageLastElemOffset),Rt===!1||Gn===0){var us=(Gn>_n||Gn<vi)&&pt.call(this);us&&(this.pdf.saveGraphicsState(),this.pdf.rect(this.margin[3],this.margin[0],ls,es,null).clip().discardPath()),kr.call(this,et,Rt),us&&this.pdf.restoreGraphicsState()}this.lineWidth=Mr}else this.lineWidth=an,kr.call(this,et,Rt),this.lineWidth=Mr;this.path=Hn},kr=function(et,Rt){if((et!=="stroke"||Rt||!wt.call(this))&&(et==="stroke"||Rt||!ce.call(this))){for(var Ht,tr,gr=[],Lr=this.path,jr=0;jr<Lr.length;jr++){var Mr=Lr[jr];switch(Mr.type){case"begin":gr.push({begin:!0});break;case"close":gr.push({close:!0});break;case"mt":gr.push({start:Mr,deltas:[],abs:[]});break;case"lt":var an=gr.length;if(Lr[jr-1]&&!isNaN(Lr[jr-1].x)&&(Ht=[Mr.x-Lr[jr-1].x,Mr.y-Lr[jr-1].y],an>0)){for(;an>=0;an--)if(gr[an-1].close!==!0&&gr[an-1].begin!==!0){gr[an-1].deltas.push(Ht),gr[an-1].abs.push(Mr);break}}break;case"bct":Ht=[Mr.x1-Lr[jr-1].x,Mr.y1-Lr[jr-1].y,Mr.x2-Lr[jr-1].x,Mr.y2-Lr[jr-1].y,Mr.x-Lr[jr-1].x,Mr.y-Lr[jr-1].y],gr[gr.length-1].deltas.push(Ht);break;case"qct":var vn=Lr[jr-1].x+2/3*(Mr.x1-Lr[jr-1].x),Hn=Lr[jr-1].y+2/3*(Mr.y1-Lr[jr-1].y),jn=Mr.x+2/3*(Mr.x1-Mr.x),Xr=Mr.y+2/3*(Mr.y1-Mr.y),Qt=Mr.x,Ss=Mr.y;Ht=[vn-Lr[jr-1].x,Hn-Lr[jr-1].y,jn-Lr[jr-1].x,Xr-Lr[jr-1].y,Qt-Lr[jr-1].x,Ss-Lr[jr-1].y],gr[gr.length-1].deltas.push(Ht);break;case"arc":gr.push({deltas:[],abs:[],arc:!0}),Array.isArray(gr[gr.length-1].abs)&&gr[gr.length-1].abs.push(Mr)}}tr=Rt?null:et==="stroke"?"stroke":"fill";for(var As=!1,Ti=0;Ti<gr.length;Ti++)if(gr[Ti].arc)for(var _n=gr[Ti].abs,vi=0;vi<_n.length;vi++){var Gn=_n[vi];Gn.type==="arc"?Ar.call(this,Gn.x,Gn.y,Gn.radius,Gn.startAngle,Gn.endAngle,Gn.counterclockwise,void 0,Rt,!As):Xt.call(this,Gn.x,Gn.y),As=!0}else if(gr[Ti].close===!0)this.pdf.internal.out("h"),As=!1;else if(gr[Ti].begin!==!0){var ls=gr[Ti].start.x,xi=gr[Ti].start.y;Gt.call(this,gr[Ti].deltas,ls,xi),As=!0}tr&&Nt.call(this,tr),Rt&&Er.call(this)}},en=function(et){var Rt=this.pdf.internal.getFontSize()/this.pdf.internal.scaleFactor,Ht=Rt*(this.pdf.internal.getLineHeightFactor()-1);switch(this.ctx.textBaseline){case"bottom":return et-Ht;case"top":return et+Rt-Ht;case"hanging":return et+Rt-2*Ht;case"middle":return et+Rt/2-Ht;default:return et}},Hr=function(et){return et+this.pdf.internal.getFontSize()/this.pdf.internal.scaleFactor*(this.pdf.internal.getLineHeightFactor()-1)};Ne.prototype.createLinearGradient=function(){var et=function(){};return et.colorStops=[],et.addColorStop=function(Rt,Ht){this.colorStops.push([Rt,Ht])},et.getColor=function(){return this.colorStops.length===0?"#000000":this.colorStops[0][1]},et.isCanvasGradient=!0,et},Ne.prototype.createPattern=function(){return this.createLinearGradient()},Ne.prototype.createRadialGradient=function(){return this.createLinearGradient()};var Ar=function(et,Rt,Ht,tr,gr,Lr,jr,Mr,an){for(var vn=Qr.call(this,Ht,tr,gr,Lr),Hn=0;Hn<vn.length;Hn++){var jn=vn[Hn];Hn===0&&(an?tt.call(this,jn.x1+et,jn.y1+Rt):Xt.call(this,jn.x1+et,jn.y1+Rt)),Ur.call(this,et,Rt,jn.x2,jn.y2,jn.x3,jn.y3,jn.x4,jn.y4)}Mr?Er.call(this):Nt.call(this,jr)},Nt=function(et){switch(et){case"stroke":this.pdf.internal.out("S");break;case"fill":this.pdf.internal.out("f")}},Er=function(){this.pdf.clip(),this.pdf.discardPath()},tt=function(et,Rt){this.pdf.internal.out(s(et)+" "+c(Rt)+" m")},Ct=function(et){var Rt;switch(et.align){case"right":case"end":Rt="right";break;case"center":Rt="center";break;default:Rt="left"}var Ht=this.pdf.getTextDimensions(et.text),tr=en.call(this,et.y),gr=Hr.call(this,tr)-Ht.h,Lr=this.ctx.transform.applyToPoint(new W(et.x,tr)),jr=this.ctx.transform.decompose(),Mr=new $;Mr=(Mr=(Mr=Mr.multiply(jr.translate)).multiply(jr.skew)).multiply(jr.scale);for(var an,vn,Hn,jn=this.ctx.transform.applyToRectangle(new O(et.x,tr,Ht.w,Ht.h)),Xr=Mr.applyToRectangle(new O(et.x,gr,Ht.w,Ht.h)),Qt=bt.call(this,Xr),Ss=[],As=0;As<Qt.length;As+=1)Ss.indexOf(Qt[As])===-1&&Ss.push(Qt[As]);if(jt(Ss),this.autoPaging)for(var Ti=Ss[0],_n=Ss[Ss.length-1],vi=Ti;vi<_n+1;vi++){this.pdf.setPage(vi);var Gn=vi===1?this.posY+this.margin[0]:this.margin[0],ls=this.pdf.internal.pageSize.height-this.posY-this.margin[0]-this.margin[2],xi=this.pdf.internal.pageSize.height-this.margin[2],Zs=xi-this.margin[0],es=this.pdf.internal.pageSize.width-this.margin[1],ts=es-this.margin[3],pa=vi===1?0:ls+(vi-2)*Zs;if(this.ctx.clip_path.length!==0){var us=this.path;an=JSON.parse(JSON.stringify(this.ctx.clip_path)),this.path=Yt(an,this.posX+this.margin[3],-1*pa+Gn),kr.call(this,"fill",!0),this.path=us}var wi=Yt([JSON.parse(JSON.stringify(Xr))],this.posX+this.margin[3],-pa+Gn+this.ctx.prevPageLastElemOffset)[0];et.scale>=.01&&(vn=this.pdf.internal.getFontSize(),this.pdf.setFontSize(vn*et.scale),Hn=this.lineWidth,this.lineWidth=Hn*et.scale);var Hi=this.autoPaging!=="text";if(Hi||wi.y+wi.h<=xi){if(Hi||wi.y>=Gn&&wi.x<=es){var bi=Hi?et.text:this.pdf.splitTextToSize(et.text,et.maxWidth||es-wi.x)[0],La=Yt([JSON.parse(JSON.stringify(jn))],this.posX+this.margin[3],-pa+Gn+this.ctx.prevPageLastElemOffset)[0],qs=Hi&&(vi>Ti||vi<_n)&&pt.call(this);qs&&(this.pdf.saveGraphicsState(),this.pdf.rect(this.margin[3],this.margin[0],ts,Zs,null).clip().discardPath()),this.pdf.text(bi,La.x,La.y,{angle:et.angle,align:Rt,renderingMode:et.renderingMode}),qs&&this.pdf.restoreGraphicsState()}}else wi.y<xi&&(this.ctx.prevPageLastElemOffset+=xi-wi.y);et.scale>=.01&&(this.pdf.setFontSize(vn),this.lineWidth=Hn)}else et.scale>=.01&&(vn=this.pdf.internal.getFontSize(),this.pdf.setFontSize(vn*et.scale),Hn=this.lineWidth,this.lineWidth=Hn*et.scale),this.pdf.text(et.text,Lr.x+this.posX,Lr.y+this.posY,{angle:et.angle,align:Rt,renderingMode:et.renderingMode,maxWidth:et.maxWidth}),et.scale>=.01&&(this.pdf.setFontSize(vn),this.lineWidth=Hn)},Xt=function(et,Rt,Ht,tr){Ht=Ht||0,tr=tr||0,this.pdf.internal.out(s(et+Ht)+" "+c(Rt+tr)+" l")},Gt=function(et,Rt,Ht){return this.pdf.lines(et,Rt,Ht,null,null)},Ur=function(et,Rt,Ht,tr,gr,Lr,jr,Mr){this.pdf.internal.out([a(d(Ht+et)),a(m(tr+Rt)),a(d(gr+et)),a(m(Lr+Rt)),a(d(jr+et)),a(m(Mr+Rt)),"c"].join(" "))},Qr=function(et,Rt,Ht,tr){for(var gr=2*Math.PI,Lr=Math.PI/2;Rt>Ht;)Rt-=gr;var jr=Math.abs(Ht-Rt);jr<gr&&tr&&(jr=gr-jr);for(var Mr=[],an=tr?-1:1,vn=Rt;jr>1e-5;){var Hn=vn+an*Math.min(jr,Lr);Mr.push(zr.call(this,et,vn,Hn)),jr-=Math.abs(Hn-vn),vn=Hn}return Mr},zr=function(et,Rt,Ht){var tr=(Ht-Rt)/2,gr=et*Math.cos(tr),Lr=et*Math.sin(tr),jr=gr,Mr=-Lr,an=jr*jr+Mr*Mr,vn=an+jr*gr+Mr*Lr,Hn=4/3*(Math.sqrt(2*an*vn)-vn)/(jr*Lr-Mr*gr),jn=jr-Hn*Mr,Xr=Mr+Hn*jr,Qt=jn,Ss=-Xr,As=tr+Rt,Ti=Math.cos(As),_n=Math.sin(As);return{x1:et*Math.cos(Rt),y1:et*Math.sin(Rt),x2:jn*Ti-Xr*_n,y2:jn*_n+Xr*Ti,x3:Qt*Ti-Ss*_n,y3:Qt*_n+Ss*Ti,x4:et*Math.cos(Ht),y4:et*Math.sin(Ht)}},Fr=function(et){return 180*et/Math.PI},$r=function(et,Rt,Ht,tr,gr,Lr){var jr=et+.5*(Ht-et),Mr=Rt+.5*(tr-Rt),an=gr+.5*(Ht-gr),vn=Lr+.5*(tr-Lr),Hn=Math.min(et,gr,jr,an),jn=Math.max(et,gr,jr,an),Xr=Math.min(Rt,Lr,Mr,vn),Qt=Math.max(Rt,Lr,Mr,vn);return new O(Hn,Xr,jn-Hn,Qt-Xr)},En=function(et,Rt,Ht,tr,gr,Lr,jr,Mr){var an,vn,Hn,jn,Xr,Qt,Ss,As,Ti,_n,vi,Gn,ls,xi,Zs=Ht-et,es=tr-Rt,ts=gr-Ht,pa=Lr-tr,us=jr-gr,wi=Mr-Lr;for(vn=0;vn<41;vn++)Ti=(Ss=(Hn=et+(an=vn/40)*Zs)+an*((Xr=Ht+an*ts)-Hn))+an*(Xr+an*(gr+an*us-Xr)-Ss),_n=(As=(jn=Rt+an*es)+an*((Qt=tr+an*pa)-jn))+an*(Qt+an*(Lr+an*wi-Qt)-As),vn==0?(vi=Ti,Gn=_n,ls=Ti,xi=_n):(vi=Math.min(vi,Ti),Gn=Math.min(Gn,_n),ls=Math.max(ls,Ti),xi=Math.max(xi,_n));return new O(Math.round(vi),Math.round(Gn),Math.round(ls-vi),Math.round(xi-Gn))},un=function(){if(this.prevLineDash||this.ctx.lineDash.length||this.ctx.lineDashOffset){var et,Rt,Ht=(et=this.ctx.lineDash,Rt=this.ctx.lineDashOffset,JSON.stringify({lineDash:et,lineDashOffset:Rt}));this.prevLineDash!==Ht&&(this.pdf.setLineDash(this.ctx.lineDash,this.ctx.lineDashOffset),this.prevLineDash=Ht)}}})(Xn.API),function(n){var a=function(W){var O,$,J,he,Ne,Ye,ce,wt,pt,bt;for(/[^\x00-\xFF]/.test(W),$=[],J=0,he=(W+=O="\0\0\0\0".slice(W.length%4||4)).length;he>J;J+=4)(Ne=(W.charCodeAt(J)<<24)+(W.charCodeAt(J+1)<<16)+(W.charCodeAt(J+2)<<8)+W.charCodeAt(J+3))!==0?(Ye=(Ne=((Ne=((Ne=((Ne=(Ne-(bt=Ne%85))/85)-(pt=Ne%85))/85)-(wt=Ne%85))/85)-(ce=Ne%85))/85)%85,$.push(Ye+33,ce+33,wt+33,pt+33,bt+33)):$.push(122);return function(rt,Yt){for(var jt=Yt;jt>0;jt--)rt.pop()}($,O.length),String.fromCharCode.apply(String,$)+"~>"},s=function(W){var O,$,J,he,Ne,Ye=String,ce="length",wt=255,pt="charCodeAt",bt="slice",rt="replace";for(W[bt](-2),W=W[bt](0,-2)[rt](/\s/g,"")[rt]("z","!!!!!"),J=[],he=0,Ne=(W+=O="uuuuu"[bt](W[ce]%5||5))[ce];Ne>he;he+=5)$=52200625*(W[pt](he)-33)+614125*(W[pt](he+1)-33)+7225*(W[pt](he+2)-33)+85*(W[pt](he+3)-33)+(W[pt](he+4)-33),J.push(wt&$>>24,wt&$>>16,wt&$>>8,wt&$);return function(Yt,jt){for(var Ut=jt;Ut>0;Ut--)Yt.pop()}(J,O[ce]),Ye.fromCharCode.apply(Ye,J)},c=function(W){return W.split("").map(function(O){return("0"+O.charCodeAt().toString(16)).slice(-2)}).join("")+">"},d=function(W){var O=new RegExp(/^([0-9A-Fa-f]{2})+$/);if((W=W.replace(/\s/g,"")).indexOf(">")!==-1&&(W=W.substr(0,W.indexOf(">"))),W.length%2&&(W+="0"),O.test(W)===!1)return"";for(var $="",J=0;J<W.length;J+=2)$+=String.fromCharCode("0x"+(W[J]+W[J+1]));return $},m=function(W){for(var O=new Uint8Array(W.length),$=W.length;$--;)O[$]=W.charCodeAt($);return(O=Kn(O)).reduce(function(J,he){return J+String.fromCharCode(he)},"")};n.processDataByFilters=function(W,O){var $=0,J=W||"",he=[];for(typeof(O=O||[])=="string"&&(O=[O]),$=0;$<O.length;$+=1)switch(O[$]){case"ASCII85Decode":case"/ASCII85Decode":J=s(J),he.push("/ASCII85Encode");break;case"ASCII85Encode":case"/ASCII85Encode":J=a(J),he.push("/ASCII85Decode");break;case"ASCIIHexDecode":case"/ASCIIHexDecode":J=d(J),he.push("/ASCIIHexEncode");break;case"ASCIIHexEncode":case"/ASCIIHexEncode":J=c(J),he.push("/ASCIIHexDecode");break;case"FlateEncode":case"/FlateEncode":J=m(J),he.push("/FlateDecode");break;default:throw new Error('The filter: "'+O[$]+'" is not implemented')}return{data:J,reverseChain:he.reverse().join(" ")}}}(Xn.API),function(n){n.loadFile=function(a,s,c){return function(d,m,W){m=m!==!1,W=typeof W=="function"?W:function(){};var O=void 0;try{O=function($,J,he){var Ne=new XMLHttpRequest,Ye=0,ce=function(wt){var pt=wt.length,bt=[],rt=String.fromCharCode;for(Ye=0;Ye<pt;Ye+=1)bt.push(rt(255&wt.charCodeAt(Ye)));return bt.join("")};if(Ne.open("GET",$,!J),Ne.overrideMimeType("text/plain; charset=x-user-defined"),J===!1&&(Ne.onload=function(){Ne.status===200?he(ce(this.responseText)):he(void 0)}),Ne.send(null),J&&Ne.status===200)return ce(Ne.responseText)}(d,m,W)}catch($){}return O}(a,s,c)},n.loadImageFile=n.loadFile}(Xn.API),function(n){function a(){return(Ii.html2canvas?Promise.resolve(Ii.html2canvas):Promise.resolve().then(je.t.bind(je,64270,23))).catch(function(O){return Promise.reject(new Error("Could not load html2canvas: "+O))}).then(function(O){return O.default?O.default:O})}function s(){return(Ii.DOMPurify?Promise.resolve(Ii.DOMPurify):je.e(7573).then(je.bind(je,7573))).catch(function(O){return Promise.reject(new Error("Could not load dompurify: "+O))}).then(function(O){return O.default?O.default:O})}var c=function(O){var $=(0,Ie.Z)(O);return $==="undefined"?"undefined":$==="string"||O instanceof String?"string":$==="number"||O instanceof Number?"number":$==="function"||O instanceof Function?"function":O&&O.constructor===Array?"array":O&&O.nodeType===1?"element":$==="object"?"object":"unknown"},d=function(O,$){var J=document.createElement(O);for(var he in $.className&&(J.className=$.className),$.innerHTML&&$.dompurify&&(J.innerHTML=$.dompurify.sanitize($.innerHTML)),$.style)J.style[he]=$.style[he];return J},m=function O($,J){for(var he=$.nodeType===3?document.createTextNode($.nodeValue):$.cloneNode(!1),Ne=$.firstChild;Ne;Ne=Ne.nextSibling)J!==!0&&Ne.nodeType===1&&Ne.nodeName==="SCRIPT"||he.appendChild(O(Ne,J));return $.nodeType===1&&($.nodeName==="CANVAS"?(he.width=$.width,he.height=$.height,he.getContext("2d").drawImage($,0,0)):$.nodeName!=="TEXTAREA"&&$.nodeName!=="SELECT"||(he.value=$.value),he.addEventListener("load",function(){he.scrollTop=$.scrollTop,he.scrollLeft=$.scrollLeft},!0)),he},W=function O($){var J=Object.assign(O.convert(Promise.resolve()),JSON.parse(JSON.stringify(O.template))),he=O.convert(Promise.resolve(),J);return(he=he.setProgress(1,O,1,[O])).set($)};(W.prototype=Object.create(Promise.prototype)).constructor=W,W.convert=function(O,$){return O.__proto__=$||W.prototype,O},W.template={prop:{src:null,container:null,overlay:null,canvas:null,img:null,pdf:null,pageSize:null,callback:function(){}},progress:{val:0,state:null,n:0,stack:[]},opt:{filename:"file.pdf",margin:[0,0,0,0],enableLinks:!0,x:0,y:0,html2canvas:{},jsPDF:{},backgroundColor:"transparent"}},W.prototype.from=function(O,$){return this.then(function(){switch($=$||function(J){switch(c(J)){case"string":return"string";case"element":return J.nodeName.toLowerCase()==="canvas"?"canvas":"element";default:return"unknown"}}(O),$){case"string":return this.then(s).then(function(J){return this.set({src:d("div",{innerHTML:O,dompurify:J})})});case"element":return this.set({src:O});case"canvas":return this.set({canvas:O});case"img":return this.set({img:O});default:return this.error("Unknown source type.")}})},W.prototype.to=function(O){switch(O){case"container":return this.toContainer();case"canvas":return this.toCanvas();case"img":return this.toImg();case"pdf":return this.toPdf();default:return this.error("Invalid target.")}},W.prototype.toContainer=function(){return this.thenList([function(){return this.prop.src||this.error("Cannot duplicate - no source HTML.")},function(){return this.prop.pageSize||this.setPageSize()}]).then(function(){var O={position:"relative",display:"inline-block",width:(typeof this.opt.width!="number"||isNaN(this.opt.width)||typeof this.opt.windowWidth!="number"||isNaN(this.opt.windowWidth)?Math.max(this.prop.src.clientWidth,this.prop.src.scrollWidth,this.prop.src.offsetWidth):this.opt.windowWidth)+"px",left:0,right:0,top:0,margin:"auto",backgroundColor:this.opt.backgroundColor},$=m(this.prop.src,this.opt.html2canvas.javascriptEnabled);$.tagName==="BODY"&&(O.height=Math.max(document.body.scrollHeight,document.body.offsetHeight,document.documentElement.clientHeight,document.documentElement.scrollHeight,document.documentElement.offsetHeight)+"px"),this.prop.overlay=d("div",{className:"html2pdf__overlay",style:{position:"fixed",overflow:"hidden",zIndex:1e3,left:"-100000px",right:0,bottom:0,top:0}}),this.prop.container=d("div",{className:"html2pdf__container",style:O}),this.prop.container.appendChild($),this.prop.container.firstChild.appendChild(d("div",{style:{clear:"both",border:"0 none transparent",margin:0,padding:0,height:0}})),this.prop.container.style.float="none",this.prop.overlay.appendChild(this.prop.container),document.body.appendChild(this.prop.overlay),this.prop.container.firstChild.style.position="relative",this.prop.container.height=Math.max(this.prop.container.firstChild.clientHeight,this.prop.container.firstChild.scrollHeight,this.prop.container.firstChild.offsetHeight)+"px"})},W.prototype.toCanvas=function(){var O=[function(){return document.body.contains(this.prop.container)||this.toContainer()}];return this.thenList(O).then(a).then(function($){var J=Object.assign({},this.opt.html2canvas);return delete J.onrendered,$(this.prop.container,J)}).then(function($){(this.opt.html2canvas.onrendered||function(){})($),this.prop.canvas=$,document.body.removeChild(this.prop.overlay)})},W.prototype.toContext2d=function(){var O=[function(){return document.body.contains(this.prop.container)||this.toContainer()}];return this.thenList(O).then(a).then(function($){var J=this.opt.jsPDF,he=this.opt.fontFaces,Ne=typeof this.opt.width!="number"||isNaN(this.opt.width)||typeof this.opt.windowWidth!="number"||isNaN(this.opt.windowWidth)?1:this.opt.width/this.opt.windowWidth,Ye=Object.assign({async:!0,allowTaint:!0,scale:Ne,scrollX:this.opt.scrollX||0,scrollY:this.opt.scrollY||0,backgroundColor:"#ffffff",imageTimeout:15e3,logging:!0,proxy:null,removeContainer:!0,foreignObjectRendering:!1,useCORS:!1},this.opt.html2canvas);if(delete Ye.onrendered,J.context2d.autoPaging=this.opt.autoPaging===void 0||this.opt.autoPaging,J.context2d.posX=this.opt.x,J.context2d.posY=this.opt.y,J.context2d.margin=this.opt.margin,J.context2d.fontFaces=he,he)for(var ce=0;ce<he.length;++ce){var wt=he[ce],pt=wt.src.find(function(bt){return bt.format==="truetype"});pt&&J.addFont(pt.url,wt.ref.name,wt.ref.style)}return Ye.windowHeight=Ye.windowHeight||0,Ye.windowHeight=Ye.windowHeight==0?Math.max(this.prop.container.clientHeight,this.prop.container.scrollHeight,this.prop.container.offsetHeight):Ye.windowHeight,J.context2d.save(!0),$(this.prop.container,Ye)}).then(function($){this.opt.jsPDF.context2d.restore(!0),(this.opt.html2canvas.onrendered||function(){})($),this.prop.canvas=$,document.body.removeChild(this.prop.overlay)})},W.prototype.toImg=function(){return this.thenList([function(){return this.prop.canvas||this.toCanvas()}]).then(function(){var O=this.prop.canvas.toDataURL("image/"+this.opt.image.type,this.opt.image.quality);this.prop.img=document.createElement("img"),this.prop.img.src=O})},W.prototype.toPdf=function(){return this.thenList([function(){return this.toContext2d()}]).then(function(){this.prop.pdf=this.prop.pdf||this.opt.jsPDF})},W.prototype.output=function(O,$,J){return(J=J||"pdf").toLowerCase()==="img"||J.toLowerCase()==="image"?this.outputImg(O,$):this.outputPdf(O,$)},W.prototype.outputPdf=function(O,$){return this.thenList([function(){return this.prop.pdf||this.toPdf()}]).then(function(){return this.prop.pdf.output(O,$)})},W.prototype.outputImg=function(O){return this.thenList([function(){return this.prop.img||this.toImg()}]).then(function(){switch(O){case void 0:case"img":return this.prop.img;case"datauristring":case"dataurlstring":return this.prop.img.src;case"datauri":case"dataurl":return document.location.href=this.prop.img.src;default:throw'Image output type "'+O+'" is not supported.'}})},W.prototype.save=function(O){return this.thenList([function(){return this.prop.pdf||this.toPdf()}]).set(O?{filename:O}:null).then(function(){this.prop.pdf.save(this.opt.filename)})},W.prototype.doCallback=function(){return this.thenList([function(){return this.prop.pdf||this.toPdf()}]).then(function(){this.prop.callback(this.prop.pdf)})},W.prototype.set=function(O){if(c(O)!=="object")return this;var $=Object.keys(O||{}).map(function(J){if(J in W.template.prop)return function(){this.prop[J]=O[J]};switch(J){case"margin":return this.setMargin.bind(this,O.margin);case"jsPDF":return function(){return this.opt.jsPDF=O.jsPDF,this.setPageSize()};case"pageSize":return this.setPageSize.bind(this,O.pageSize);default:return function(){this.opt[J]=O[J]}}},this);return this.then(function(){return this.thenList($)})},W.prototype.get=function(O,$){return this.then(function(){var J=O in W.template.prop?this.prop[O]:this.opt[O];return $?$(J):J})},W.prototype.setMargin=function(O){return this.then(function(){switch(c(O)){case"number":O=[O,O,O,O];case"array":if(O.length===2&&(O=[O[0],O[1],O[0],O[1]]),O.length===4)break;default:return this.error("Invalid margin array.")}this.opt.margin=O}).then(this.setPageSize)},W.prototype.setPageSize=function(O){function $(J,he){return Math.floor(J*he/72*96)}return this.then(function(){(O=O||Xn.getPageSize(this.opt.jsPDF)).hasOwnProperty("inner")||(O.inner={width:O.width-this.opt.margin[1]-this.opt.margin[3],height:O.height-this.opt.margin[0]-this.opt.margin[2]},O.inner.px={width:$(O.inner.width,O.k),height:$(O.inner.height,O.k)},O.inner.ratio=O.inner.height/O.inner.width),this.prop.pageSize=O})},W.prototype.setProgress=function(O,$,J,he){return O!=null&&(this.progress.val=O),$!=null&&(this.progress.state=$),J!=null&&(this.progress.n=J),he!=null&&(this.progress.stack=he),this.progress.ratio=this.progress.val/this.progress.state,this},W.prototype.updateProgress=function(O,$,J,he){return this.setProgress(O?this.progress.val+O:null,$||null,J?this.progress.n+J:null,he?this.progress.stack.concat(he):null)},W.prototype.then=function(O,$){var J=this;return this.thenCore(O,$,function(he,Ne){return J.updateProgress(null,null,1,[he]),Promise.prototype.then.call(this,function(Ye){return J.updateProgress(null,he),Ye}).then(he,Ne).then(function(Ye){return J.updateProgress(1),Ye})})},W.prototype.thenCore=function(O,$,J){J=J||Promise.prototype.then;var he=this;O&&(O=O.bind(he)),$&&($=$.bind(he));var Ne=Promise.toString().indexOf("[native code]")!==-1&&Promise.name==="Promise"?he:W.convert(Object.assign({},he),Promise.prototype),Ye=J.call(Ne,O,$);return W.convert(Ye,he.__proto__)},W.prototype.thenExternal=function(O,$){return Promise.prototype.then.call(this,O,$)},W.prototype.thenList=function(O){var $=this;return O.forEach(function(J){$=$.thenCore(J)}),$},W.prototype.catch=function(O){O&&(O=O.bind(this));var $=Promise.prototype.catch.call(this,O);return W.convert($,this)},W.prototype.catchExternal=function(O){return Promise.prototype.catch.call(this,O)},W.prototype.error=function(O){return this.then(function(){throw new Error(O)})},W.prototype.using=W.prototype.set,W.prototype.saveAs=W.prototype.save,W.prototype.export=W.prototype.output,W.prototype.run=W.prototype.then,Xn.getPageSize=function(O,$,J){if((0,Ie.Z)(O)==="object"){var he=O;O=he.orientation,$=he.unit||$,J=he.format||J}$=$||"mm",J=J||"a4",O=(""+(O||"P")).toLowerCase();var Ne,Ye=(""+J).toLowerCase(),ce={a0:[2383.94,3370.39],a1:[1683.78,2383.94],a2:[1190.55,1683.78],a3:[841.89,1190.55],a4:[595.28,841.89],a5:[419.53,595.28],a6:[297.64,419.53],a7:[209.76,297.64],a8:[147.4,209.76],a9:[104.88,147.4],a10:[73.7,104.88],b0:[2834.65,4008.19],b1:[2004.09,2834.65],b2:[1417.32,2004.09],b3:[1000.63,1417.32],b4:[708.66,1000.63],b5:[498.9,708.66],b6:[354.33,498.9],b7:[249.45,354.33],b8:[175.75,249.45],b9:[124.72,175.75],b10:[87.87,124.72],c0:[2599.37,3676.54],c1:[1836.85,2599.37],c2:[1298.27,1836.85],c3:[918.43,1298.27],c4:[649.13,918.43],c5:[459.21,649.13],c6:[323.15,459.21],c7:[229.61,323.15],c8:[161.57,229.61],c9:[113.39,161.57],c10:[79.37,113.39],dl:[311.81,623.62],letter:[612,792],"government-letter":[576,756],legal:[612,1008],"junior-legal":[576,360],ledger:[1224,792],tabloid:[792,1224],"credit-card":[153,243]};switch($){case"pt":Ne=1;break;case"mm":Ne=72/25.4;break;case"cm":Ne=72/2.54;break;case"in":Ne=72;break;case"px":Ne=.75;break;case"pc":case"em":Ne=12;break;case"ex":Ne=6;break;default:throw"Invalid unit: "+$}var wt,pt=0,bt=0;if(ce.hasOwnProperty(Ye))pt=ce[Ye][1]/Ne,bt=ce[Ye][0]/Ne;else try{pt=J[1],bt=J[0]}catch(rt){throw new Error("Invalid format: "+J)}if(O==="p"||O==="portrait")O="p",bt>pt&&(wt=bt,bt=pt,pt=wt);else{if(O!=="l"&&O!=="landscape")throw"Invalid orientation: "+O;O="l",pt>bt&&(wt=bt,bt=pt,pt=wt)}return{width:bt,height:pt,unit:$,k:Ne,orientation:O}},n.html=function(O,$){($=$||{}).callback=$.callback||function(){},$.html2canvas=$.html2canvas||{},$.html2canvas.canvas=$.html2canvas.canvas||this.canvas,$.jsPDF=$.jsPDF||this,$.fontFaces=$.fontFaces?$.fontFaces.map(ol):null;var J=new W($);return $.worker?J:J.from(O).doCallback()}}(Xn.API),Xn.API.addJS=function(n){return i=n,this.internal.events.subscribe("postPutResources",function(){t=this.internal.newObject(),this.internal.out("<<"),this.internal.out("/Names [(EmbeddedJS) "+(t+1)+" 0 R]"),this.internal.out(">>"),this.internal.out("endobj"),r=this.internal.newObject(),this.internal.out("<<"),this.internal.out("/S /JavaScript"),this.internal.out("/JS ("+i+")"),this.internal.out(">>"),this.internal.out("endobj")}),this.internal.events.subscribe("putCatalog",function(){t!==void 0&&r!==void 0&&this.internal.out("/Names <</JavaScript "+t+" 0 R>>")}),this},function(n){var a;n.events.push(["postPutResources",function(){var s=this,c=/^(\d+) 0 obj$/;if(this.outline.root.children.length>0)for(var d=s.outline.render().split(/\r\n/),m=0;m<d.length;m++){var W=d[m],O=c.exec(W);if(O!=null){var $=O[1];s.internal.newObjectDeferredBegin($,!1)}s.internal.write(W)}if(this.outline.createNamedDestinations){var J=this.internal.pages.length,he=[];for(m=0;m<J;m++){var Ne=s.internal.newObject();he.push(Ne);var Ye=s.internal.getPageInfo(m+1);s.internal.write("<< /D["+Ye.objId+" 0 R /XYZ null null null]>> endobj")}var ce=s.internal.newObject();for(s.internal.write("<< /Names [ "),m=0;m<he.length;m++)s.internal.write("(page_"+(m+1)+")"+he[m]+" 0 R");s.internal.write(" ] >>","endobj"),a=s.internal.newObject(),s.internal.write("<< /Dests "+ce+" 0 R"),s.internal.write(">>","endobj")}}]),n.events.push(["putCatalog",function(){var s=this;s.outline.root.children.length>0&&(s.internal.write("/Outlines",this.outline.makeRef(this.outline.root)),this.outline.createNamedDestinations&&s.internal.write("/Names "+a+" 0 R"))}]),n.events.push(["initialized",function(){var s=this;s.outline={createNamedDestinations:!1,root:{children:[]}},s.outline.add=function(c,d,m){var W={title:d,options:m,children:[]};return c==null&&(c=this.root),c.children.push(W),W},s.outline.render=function(){return this.ctx={},this.ctx.val="",this.ctx.pdf=s,this.genIds_r(this.root),this.renderRoot(this.root),this.renderItems(this.root),this.ctx.val},s.outline.genIds_r=function(c){c.id=s.internal.newObjectDeferred();for(var d=0;d<c.children.length;d++)this.genIds_r(c.children[d])},s.outline.renderRoot=function(c){this.objStart(c),this.line("/Type /Outlines"),c.children.length>0&&(this.line("/First "+this.makeRef(c.children[0])),this.line("/Last "+this.makeRef(c.children[c.children.length-1]))),this.line("/Count "+this.count_r({count:0},c)),this.objEnd()},s.outline.renderItems=function(c){for(var d=this.ctx.pdf.internal.getVerticalCoordinateString,m=0;m<c.children.length;m++){var W=c.children[m];this.objStart(W),this.line("/Title "+this.makeString(W.title)),this.line("/Parent "+this.makeRef(c)),m>0&&this.line("/Prev "+this.makeRef(c.children[m-1])),m<c.children.length-1&&this.line("/Next "+this.makeRef(c.children[m+1])),W.children.length>0&&(this.line("/First "+this.makeRef(W.children[0])),this.line("/Last "+this.makeRef(W.children[W.children.length-1])));var O=this.count=this.count_r({count:0},W);if(O>0&&this.line("/Count "+O),W.options&&W.options.pageNumber){var $=s.internal.getPageInfo(W.options.pageNumber);this.line("/Dest ["+$.objId+" 0 R /XYZ 0 "+d(0)+" 0]")}this.objEnd()}for(var J=0;J<c.children.length;J++)this.renderItems(c.children[J])},s.outline.line=function(c){this.ctx.val+=c+`\r
|
|
|
`},s.outline.makeRef=function(c){return c.id+" 0 R"},s.outline.makeString=function(c){return"("+s.internal.pdfEscape(c)+")"},s.outline.objStart=function(c){this.ctx.val+=`\r
|
|
|
`+c.id+` 0 obj\r
|
|
|
<<\r
|
|
|
`},s.outline.objEnd=function(){this.ctx.val+=`>> \r
|
|
|
endobj\r
|
|
|
`},s.outline.count_r=function(c,d){for(var m=0;m<d.children.length;m++)c.count++,this.count_r(c,d.children[m]);return c.count}}])}(Xn.API),function(n){var a=[192,193,194,195,196,197,198,199];n.processJPEG=function(s,c,d,m,W,O){var $,J=this.decode.DCT_DECODE,he=null;if(typeof s=="string"||this.__addimage__.isArrayBuffer(s)||this.__addimage__.isArrayBufferView(s)){switch(s=W||s,s=this.__addimage__.isArrayBuffer(s)?new Uint8Array(s):s,$=function(Ne){for(var Ye,ce=256*Ne.charCodeAt(4)+Ne.charCodeAt(5),wt=Ne.length,pt={width:0,height:0,numcomponents:1},bt=4;bt<wt;bt+=2){if(bt+=ce,a.indexOf(Ne.charCodeAt(bt+1))!==-1){Ye=256*Ne.charCodeAt(bt+5)+Ne.charCodeAt(bt+6),pt={width:256*Ne.charCodeAt(bt+7)+Ne.charCodeAt(bt+8),height:Ye,numcomponents:Ne.charCodeAt(bt+9)};break}ce=256*Ne.charCodeAt(bt+2)+Ne.charCodeAt(bt+3)}return pt}(s=this.__addimage__.isArrayBufferView(s)?this.__addimage__.arrayBufferToBinaryString(s):s),$.numcomponents){case 1:O=this.color_spaces.DEVICE_GRAY;break;case 4:O=this.color_spaces.DEVICE_CMYK;break;case 3:O=this.color_spaces.DEVICE_RGB}he={data:s,width:$.width,height:$.height,colorSpace:O,bitsPerComponent:8,filter:J,index:c,alias:d}}return he}}(Xn.API),Xn.API.processPNG=function(n,a,s,c){if(this.__addimage__.isArrayBuffer(n)&&(n=new Uint8Array(n)),this.__addimage__.isArrayBufferView(n)){var d,m=Lh(n,{checkCrc:!0}),W=m.width,O=m.height,$=m.channels,J=m.palette,he=m.depth;d=J&&$===1?function(Ar){for(var Nt=Ar.width,Er=Ar.height,tt=Ar.data,Ct=Ar.palette,Xt=Ar.depth,Gt=!1,Ur=[],Qr=[],zr=void 0,Fr=!1,$r=0,En=0;En<Ct.length;En++){var un=(0,VA.Z)(Ct[En],4),et=un[0],Rt=un[1],Ht=un[2],tr=un[3];Ur.push(et,Rt,Ht),tr!=null&&(tr===0?($r++,Qr.length<1&&Qr.push(En)):tr<255&&(Fr=!0))}if(Fr||$r>1){Gt=!0,Qr=void 0;var gr=Nt*Er;zr=new Uint8Array(gr);for(var Lr=new DataView(tt.buffer),jr=0;jr<gr;jr++){var Mr=_t(Lr,jr,Xt),an=(0,VA.Z)(Ct[Mr],4)[3];zr[jr]=an}}else $r===0&&(Qr=void 0);return{colorSpace:"Indexed",colorsPerPixel:1,sMaskBitsPerComponent:Gt?8:void 0,colorBytes:tt,alphaBytes:zr,needSMask:Gt,palette:Ur,mask:Qr}}(m):$===2||$===4?function(Ar){for(var Nt=Ar.data,Er=Ar.width,tt=Ar.height,Ct=Ar.channels,Xt=Ar.depth,Gt=Ct===2?"DeviceGray":"DeviceRGB",Ur=Ct-1,Qr=Er*tt,zr=Ur,Fr=Qr*zr,$r=1*Qr,En=Math.ceil(Fr*Xt/8),un=Math.ceil($r*Xt/8),et=new Uint8Array(En),Rt=new Uint8Array(un),Ht=new DataView(Nt.buffer),tr=new DataView(et.buffer),gr=new DataView(Rt.buffer),Lr=!1,jr=0;jr<Qr;jr++){for(var Mr=jr*Ct,an=0;an<zr;an++)zt(tr,_t(Ht,Mr+an,Xt),jr*zr+an,Xt);var vn=_t(Ht,Mr+zr,Xt);vn<(1<<Xt)-1&&(Lr=!0),zt(gr,vn,1*jr,Xt)}return{colorSpace:Gt,colorsPerPixel:Ur,sMaskBitsPerComponent:Lr?Xt:void 0,colorBytes:et,alphaBytes:Rt,needSMask:Lr}}(m):function(Ar){var Nt=Ar.data,Er=Ar.channels===1?"DeviceGray":"DeviceRGB";return{colorSpace:Er,colorsPerPixel:Er==="DeviceGray"?1:3,colorBytes:Nt instanceof Uint16Array?function(tt){for(var Ct=tt.length,Xt=new Uint8Array(2*Ct),Gt=new DataView(Xt.buffer,Xt.byteOffset,Xt.byteLength),Ur=0;Ur<Ct;Ur++)Gt.setUint16(2*Ur,tt[Ur],!1);return Xt}(Nt):Nt,needSMask:!1}}(m);var Ne,Ye,ce,wt=d,pt=wt.colorSpace,bt=wt.colorsPerPixel,rt=wt.sMaskBitsPerComponent,Yt=wt.colorBytes,jt=wt.alphaBytes,Ut=wt.needSMask,kr=wt.palette,en=wt.mask,Hr=null;return c!==Xn.API.image_compression.NONE&&typeof Kn=="function"?(Hr=function(Ar){var Nt;switch(Ar){case Xn.API.image_compression.FAST:Nt=11;break;case Xn.API.image_compression.MEDIUM:Nt=13;break;case Xn.API.image_compression.SLOW:Nt=14;break;default:Nt=12}return Nt}(c),Ne=this.decode.FLATE_DECODE,Ye="/Predictor ".concat(Hr," /Colors ").concat(bt," /BitsPerComponent ").concat(he," /Columns ").concat(W),n=N(Yt,Math.ceil(W*bt*he/8),bt,he,c),Ut&&(ce=N(jt,Math.ceil(W*rt/8),1,rt,c))):(Ne=void 0,Ye=void 0,n=Yt,Ut&&(ce=jt)),(this.__addimage__.isArrayBuffer(n)||this.__addimage__.isArrayBufferView(n))&&(n=this.__addimage__.arrayBufferToBinaryString(n)),(ce&&this.__addimage__.isArrayBuffer(ce)||this.__addimage__.isArrayBufferView(ce))&&(ce=this.__addimage__.arrayBufferToBinaryString(ce)),{alias:s,data:n,index:a,filter:Ne,decodeParameters:Ye,transparency:en,palette:kr,sMask:ce,predictor:Hr,width:W,height:O,bitsPerComponent:he,sMaskBitsPerComponent:rt,colorSpace:pt}}},function(n){n.processGIF89A=function(a,s,c,d){var m=new Nr(a),W=m.width,O=m.height,$=[];m.decodeAndBlitFrameRGBA(0,$);var J={data:$,width:W,height:O},he=new Cr(100).encode(J,100);return n.processJPEG.call(this,he,s,c,d)},n.processGIF87A=n.processGIF89A}(Xn.API),br.prototype.parseHeader=function(){if(this.fileSize=this.datav.getUint32(this.pos,!0),this.pos+=4,this.reserved=this.datav.getUint32(this.pos,!0),this.pos+=4,this.offset=this.datav.getUint32(this.pos,!0),this.pos+=4,this.headerSize=this.datav.getUint32(this.pos,!0),this.pos+=4,this.width=this.datav.getUint32(this.pos,!0),this.pos+=4,this.height=this.datav.getInt32(this.pos,!0),this.pos+=4,this.planes=this.datav.getUint16(this.pos,!0),this.pos+=2,this.bitPP=this.datav.getUint16(this.pos,!0),this.pos+=2,this.compress=this.datav.getUint32(this.pos,!0),this.pos+=4,this.rawSize=this.datav.getUint32(this.pos,!0),this.pos+=4,this.hr=this.datav.getUint32(this.pos,!0),this.pos+=4,this.vr=this.datav.getUint32(this.pos,!0),this.pos+=4,this.colors=this.datav.getUint32(this.pos,!0),this.pos+=4,this.importantColors=this.datav.getUint32(this.pos,!0),this.pos+=4,this.bitPP===16&&this.is_with_alpha&&(this.bitPP=15),this.bitPP<15){var n=this.colors===0?1<<this.bitPP:this.colors;this.palette=new Array(n);for(var a=0;a<n;a++){var s=this.datav.getUint8(this.pos++,!0),c=this.datav.getUint8(this.pos++,!0),d=this.datav.getUint8(this.pos++,!0),m=this.datav.getUint8(this.pos++,!0);this.palette[a]={red:d,green:c,blue:s,quad:m}}}this.height<0&&(this.height*=-1,this.bottom_up=!1)},br.prototype.parseBGR=function(){this.pos=this.offset;try{var n="bit"+this.bitPP,a=this.width*this.height*4;this.data=new Uint8Array(a),this[n]()}catch(s){Us.log("bit decode error:"+s)}},br.prototype.bit1=function(){var n,a=Math.ceil(this.width/8),s=a%4;for(n=this.height-1;n>=0;n--){for(var c=this.bottom_up?n:this.height-1-n,d=0;d<a;d++)for(var m=this.datav.getUint8(this.pos++,!0),W=c*this.width*4+8*d*4,O=0;O<8&&8*d+O<this.width;O++){var $=this.palette[m>>7-O&1];this.data[W+4*O]=$.blue,this.data[W+4*O+1]=$.green,this.data[W+4*O+2]=$.red,this.data[W+4*O+3]=255}s!==0&&(this.pos+=4-s)}},br.prototype.bit4=function(){for(var n=Math.ceil(this.width/2),a=n%4,s=this.height-1;s>=0;s--){for(var c=this.bottom_up?s:this.height-1-s,d=0;d<n;d++){var m=this.datav.getUint8(this.pos++,!0),W=c*this.width*4+2*d*4,O=m>>4,$=15&m,J=this.palette[O];if(this.data[W]=J.blue,this.data[W+1]=J.green,this.data[W+2]=J.red,this.data[W+3]=255,2*d+1>=this.width)break;J=this.palette[$],this.data[W+4]=J.blue,this.data[W+4+1]=J.green,this.data[W+4+2]=J.red,this.data[W+4+3]=255}a!==0&&(this.pos+=4-a)}},br.prototype.bit8=function(){for(var n=this.width%4,a=this.height-1;a>=0;a--){for(var s=this.bottom_up?a:this.height-1-a,c=0;c<this.width;c++){var d=this.datav.getUint8(this.pos++,!0),m=s*this.width*4+4*c;if(d<this.palette.length){var W=this.palette[d];this.data[m]=W.red,this.data[m+1]=W.green,this.data[m+2]=W.blue,this.data[m+3]=255}else this.data[m]=255,this.data[m+1]=255,this.data[m+2]=255,this.data[m+3]=255}n!==0&&(this.pos+=4-n)}},br.prototype.bit15=function(){for(var n=this.width%3,a=parseInt("11111",2),s=this.height-1;s>=0;s--){for(var c=this.bottom_up?s:this.height-1-s,d=0;d<this.width;d++){var m=this.datav.getUint16(this.pos,!0);this.pos+=2;var W=(m&a)/a*255|0,O=(m>>5&a)/a*255|0,$=(m>>10&a)/a*255|0,J=m>>15?255:0,he=c*this.width*4+4*d;this.data[he]=$,this.data[he+1]=O,this.data[he+2]=W,this.data[he+3]=J}this.pos+=n}},br.prototype.bit16=function(){for(var n=this.width%3,a=parseInt("11111",2),s=parseInt("111111",2),c=this.height-1;c>=0;c--){for(var d=this.bottom_up?c:this.height-1-c,m=0;m<this.width;m++){var W=this.datav.getUint16(this.pos,!0);this.pos+=2;var O=(W&a)/a*255|0,$=(W>>5&s)/s*255|0,J=(W>>11)/a*255|0,he=d*this.width*4+4*m;this.data[he]=J,this.data[he+1]=$,this.data[he+2]=O,this.data[he+3]=255}this.pos+=n}},br.prototype.bit24=function(){for(var n=this.height-1;n>=0;n--){for(var a=this.bottom_up?n:this.height-1-n,s=0;s<this.width;s++){var c=this.datav.getUint8(this.pos++,!0),d=this.datav.getUint8(this.pos++,!0),m=this.datav.getUint8(this.pos++,!0),W=a*this.width*4+4*s;this.data[W]=m,this.data[W+1]=d,this.data[W+2]=c,this.data[W+3]=255}this.pos+=this.width%4}},br.prototype.bit32=function(){for(var n=this.height-1;n>=0;n--)for(var a=this.bottom_up?n:this.height-1-n,s=0;s<this.width;s++){var c=this.datav.getUint8(this.pos++,!0),d=this.datav.getUint8(this.pos++,!0),m=this.datav.getUint8(this.pos++,!0),W=this.datav.getUint8(this.pos++,!0),O=a*this.width*4+4*s;this.data[O]=m,this.data[O+1]=d,this.data[O+2]=c,this.data[O+3]=W}},br.prototype.getData=function(){return this.data},function(n){n.processBMP=function(a,s,c,d){var m=new br(a,!1),W=m.width,O=m.height,$={data:m.getData(),width:W,height:O},J=new Cr(100).encode($,100);return n.processJPEG.call(this,J,s,c,d)}}(Xn.API),pr.prototype.getData=function(){return this.data},function(n){n.processWEBP=function(a,s,c,d){var m=new pr(a),W=m.width,O=m.height,$={data:m.getData(),width:W,height:O},J=new Cr(100).encode($,100);return n.processJPEG.call(this,J,s,c,d)}}(Xn.API),Xn.API.processRGBA=function(n,a,s){for(var c=n.data,d=c.length,m=new Uint8Array(d/4*3),W=new Uint8Array(d/4),O=0,$=0,J=0;J<d;J+=4){var he=c[J],Ne=c[J+1],Ye=c[J+2],ce=c[J+3];m[O++]=he,m[O++]=Ne,m[O++]=Ye,W[$++]=ce}var wt=this.__addimage__.arrayBufferToBinaryString(m);return{alpha:this.__addimage__.arrayBufferToBinaryString(W),data:wt,index:a,alias:s,colorSpace:"DeviceRGB",bitsPerComponent:8,width:n.width,height:n.height}},Xn.API.setLanguage=function(n){return this.internal.languageSettings===void 0&&(this.internal.languageSettings={},this.internal.languageSettings.isSubscribed=!1),{af:"Afrikaans",sq:"Albanian",ar:"Arabic (Standard)","ar-DZ":"Arabic (Algeria)","ar-BH":"Arabic (Bahrain)","ar-EG":"Arabic (Egypt)","ar-IQ":"Arabic (Iraq)","ar-JO":"Arabic (Jordan)","ar-KW":"Arabic (Kuwait)","ar-LB":"Arabic (Lebanon)","ar-LY":"Arabic (Libya)","ar-MA":"Arabic (Morocco)","ar-OM":"Arabic (Oman)","ar-QA":"Arabic (Qatar)","ar-SA":"Arabic (Saudi Arabia)","ar-SY":"Arabic (Syria)","ar-TN":"Arabic (Tunisia)","ar-AE":"Arabic (U.A.E.)","ar-YE":"Arabic (Yemen)",an:"Aragonese",hy:"Armenian",as:"Assamese",ast:"Asturian",az:"Azerbaijani",eu:"Basque",be:"Belarusian",bn:"Bengali",bs:"Bosnian",br:"Breton",bg:"Bulgarian",my:"Burmese",ca:"Catalan",ch:"Chamorro",ce:"Chechen",zh:"Chinese","zh-HK":"Chinese (Hong Kong)","zh-CN":"Chinese (PRC)","zh-SG":"Chinese (Singapore)","zh-TW":"Chinese (Taiwan)",cv:"Chuvash",co:"Corsican",cr:"Cree",hr:"Croatian",cs:"Czech",da:"Danish",nl:"Dutch (Standard)","nl-BE":"Dutch (Belgian)",en:"English","en-AU":"English (Australia)","en-BZ":"English (Belize)","en-CA":"English (Canada)","en-IE":"English (Ireland)","en-JM":"English (Jamaica)","en-NZ":"English (New Zealand)","en-PH":"English (Philippines)","en-ZA":"English (South Africa)","en-TT":"English (Trinidad & Tobago)","en-GB":"English (United Kingdom)","en-US":"English (United States)","en-ZW":"English (Zimbabwe)",eo:"Esperanto",et:"Estonian",fo:"Faeroese",fj:"Fijian",fi:"Finnish",fr:"French (Standard)","fr-BE":"French (Belgium)","fr-CA":"French (Canada)","fr-FR":"French (France)","fr-LU":"French (Luxembourg)","fr-MC":"French (Monaco)","fr-CH":"French (Switzerland)",fy:"Frisian",fur:"Friulian",gd:"Gaelic (Scots)","gd-IE":"Gaelic (Irish)",gl:"Galacian",ka:"Georgian",de:"German (Standard)","de-AT":"German (Austria)","de-DE":"German (Germany)","de-LI":"German (Liechtenstein)","de-LU":"German (Luxembourg)","de-CH":"German (Switzerland)",el:"Greek",gu:"Gujurati",ht:"Haitian",he:"Hebrew",hi:"Hindi",hu:"Hungarian",is:"Icelandic",id:"Indonesian",iu:"Inuktitut",ga:"Irish",it:"Italian (Standard)","it-CH":"Italian (Switzerland)",ja:"Japanese",kn:"Kannada",ks:"Kashmiri",kk:"Kazakh",km:"Khmer",ky:"Kirghiz",tlh:"Klingon",ko:"Korean","ko-KP":"Korean (North Korea)","ko-KR":"Korean (South Korea)",la:"Latin",lv:"Latvian",lt:"Lithuanian",lb:"Luxembourgish",mk:"North Macedonia",ms:"Malay",ml:"Malayalam",mt:"Maltese",mi:"Maori",mr:"Marathi",mo:"Moldavian",nv:"Navajo",ng:"Ndonga",ne:"Nepali",no:"Norwegian",nb:"Norwegian (Bokmal)",nn:"Norwegian (Nynorsk)",oc:"Occitan",or:"Oriya",om:"Oromo",fa:"Persian","fa-IR":"Persian/Iran",pl:"Polish",pt:"Portuguese","pt-BR":"Portuguese (Brazil)",pa:"Punjabi","pa-IN":"Punjabi (India)","pa-PK":"Punjabi (Pakistan)",qu:"Quechua",rm:"Rhaeto-Romanic",ro:"Romanian","ro-MO":"Romanian (Moldavia)",ru:"Russian","ru-MO":"Russian (Moldavia)",sz:"Sami (Lappish)",sg:"Sango",sa:"Sanskrit",sc:"Sardinian",sd:"Sindhi",si:"Singhalese",sr:"Serbian",sk:"Slovak",sl:"Slovenian",so:"Somani",sb:"Sorbian",es:"Spanish","es-AR":"Spanish (Argentina)","es-BO":"Spanish (Bolivia)","es-CL":"Spanish (Chile)","es-CO":"Spanish (Colombia)","es-CR":"Spanish (Costa Rica)","es-DO":"Spanish (Dominican Republic)","es-EC":"Spanish (Ecuador)","es-SV":"Spanish (El Salvador)","es-GT":"Spanish (Guatemala)","es-HN":"Spanish (Honduras)","es-MX":"Spanish (Mexico)","es-NI":"Spanish (Nicaragua)","es-PA":"Spanish (Panama)","es-PY":"Spanish (Paraguay)","es-PE":"Spanish (Peru)","es-PR":"Spanish (Puerto Rico)","es-ES":"Spanish (Spain)","es-UY":"Spanish (Uruguay)","es-VE":"Spanish (Venezuela)",sx:"Sutu",sw:"Swahili",sv:"Swedish","sv-FI":"Swedish (Finland)","sv-SV":"Swedish (Sweden)",ta:"Tamil",tt:"Tatar",te:"Teluga",th:"Thai",tig:"Tigre",ts:"Tsonga",tn:"Tswana",tr:"Turkish",tk:"Turkmen",uk:"Ukrainian",hsb:"Upper Sorbian",ur:"Urdu",ve:"Venda",vi:"Vietnamese",vo:"Volapuk",wa:"Walloon",cy:"Welsh",xh:"Xhosa",ji:"Yiddish",zu:"Zulu"}[n]!==void 0&&(this.internal.languageSettings.languageCode=n,this.internal.languageSettings.isSubscribed===!1&&(this.internal.events.subscribe("putCatalog",function(){this.internal.write("/Lang ("+this.internal.languageSettings.languageCode+")")}),this.internal.languageSettings.isSubscribed=!0)),this},o=Xn.API,A=o.getCharWidthsArray=function(n,a){var s,c,d=(a=a||{}).font||this.internal.getFont(),m=a.fontSize||this.internal.getFontSize(),W=a.charSpace||this.internal.getCharSpace(),O=a.widths?a.widths:d.metadata.Unicode.widths,$=O.fof?O.fof:1,J=a.kerning?a.kerning:d.metadata.Unicode.kerning,he=J.fof?J.fof:1,Ne=a.doKerning!==!1,Ye=0,ce=n.length,wt=0,pt=O[0]||$,bt=[];for(s=0;s<ce;s++)c=n.charCodeAt(s),typeof d.metadata.widthOfString=="function"?bt.push((d.metadata.widthOfGlyph(d.metadata.characterToGlyph(c))+W*(1e3/m)||0)/1e3):(Ye=Ne&&(0,Ie.Z)(J[c])==="object"&&!isNaN(parseInt(J[c][wt],10))?J[c][wt]/he:0,bt.push((O[c]||pt)/$+Ye)),wt=c;return bt},h=o.getStringUnitWidth=function(n,a){var s=(a=a||{}).fontSize||this.internal.getFontSize(),c=a.font||this.internal.getFont(),d=a.charSpace||this.internal.getCharSpace();return o.processArabic&&(n=o.processArabic(n)),typeof c.metadata.widthOfString=="function"?c.metadata.widthOfString(n,s,d)/s:A.apply(this,arguments).reduce(function(m,W){return m+W},0)},y=function(n,a,s,c){for(var d=[],m=0,W=n.length,O=0;m!==W&&O+a[m]<s;)O+=a[m],m++;d.push(n.slice(0,m));var $=m;for(O=0;m!==W;)O+a[m]>c&&(d.push(n.slice($,m)),O=0,$=m),O+=a[m],m++;return $!==m&&d.push(n.slice($,m)),d},g=function(n,a,s){s||(s={});var c,d,m,W,O,$,J,he=[],Ne=[he],Ye=s.textIndent||0,ce=0,wt=0,pt=n.split(" "),bt=A.apply(this,[" ",s])[0];if($=s.lineIndent===-1?pt[0].length+2:s.lineIndent||0){var rt=Array($).join(" "),Yt=[];pt.map(function(Ut){(Ut=Ut.split(/\s*\n/)).length>1?Yt=Yt.concat(Ut.map(function(kr,en){return(en&&kr.length?`
|
|
|
`:"")+kr})):Yt.push(Ut[0])}),pt=Yt,$=h.apply(this,[rt,s])}for(m=0,W=pt.length;m<W;m++){var jt=0;if(c=pt[m],$&&c[0]==`
|
|
|
`&&(c=c.substr(1),jt=1),Ye+ce+(wt=(d=A.apply(this,[c,s])).reduce(function(Ut,kr){return Ut+kr},0))>a||jt){if(wt>a){for(O=y.apply(this,[c,d,a-(Ye+ce),a]),he.push(O.shift()),he=[O.pop()];O.length;)Ne.push([O.shift()]);wt=d.slice(c.length-(he[0]?he[0].length:0)).reduce(function(Ut,kr){return Ut+kr},0)}else he=[c];Ne.push(he),Ye=wt+$,ce=bt}else he.push(c),Ye+=ce+wt,ce=bt}return J=$?function(Ut,kr){return(kr?rt:"")+Ut.join(" ")}:function(Ut){return Ut.join(" ")},Ne.map(J)},o.splitTextToSize=function(n,a,s){var c,d=(s=s||{}).fontSize||this.internal.getFontSize(),m=function(he){if(he.widths&&he.kerning)return{widths:he.widths,kerning:he.kerning};var Ne=this.internal.getFont(he.fontName,he.fontStyle),Ye="Unicode";return Ne.metadata[Ye]?{widths:Ne.metadata[Ye].widths||{0:1},kerning:Ne.metadata[Ye].kerning||{}}:{font:Ne.metadata,fontSize:this.internal.getFontSize(),charSpace:this.internal.getCharSpace()}}.call(this,s);c=Array.isArray(n)?n:String(n).split(/\r?\n/);var W=1*this.internal.scaleFactor*a/d;m.textIndent=s.textIndent?1*s.textIndent*this.internal.scaleFactor/d:0,m.lineIndent=s.lineIndent;var O,$,J=[];for(O=0,$=c.length;O<$;O++)J=J.concat(g.apply(this,[c[O],W,m]));return J},function(n){n.__fontmetrics__=n.__fontmetrics__||{};for(var a="0123456789abcdef",s="klmnopqrstuvwxyz",c={},d={},m=0;m<16;m++)c[s[m]]=a[m],d[a[m]]=s[m];var W=function(Ye){return"0x"+parseInt(Ye,10).toString(16)},O=n.__fontmetrics__.compress=function(Ye){var ce,wt,pt,bt,rt=["{"];for(var Yt in Ye){if(ce=Ye[Yt],isNaN(parseInt(Yt,10))?wt="'"+Yt+"'":(Yt=parseInt(Yt,10),wt=(wt=W(Yt).slice(2)).slice(0,-1)+d[wt.slice(-1)]),typeof ce=="number")ce<0?(pt=W(ce).slice(3),bt="-"):(pt=W(ce).slice(2),bt=""),pt=bt+pt.slice(0,-1)+d[pt.slice(-1)];else{if((0,Ie.Z)(ce)!=="object")throw new Error("Don't know what to do with value type "+(0,Ie.Z)(ce)+".");pt=O(ce)}rt.push(wt+pt)}return rt.push("}"),rt.join("")},$=n.__fontmetrics__.uncompress=function(Ye){if(typeof Ye!="string")throw new Error("Invalid argument passed to uncompress.");for(var ce,wt,pt,bt,rt={},Yt=1,jt=rt,Ut=[],kr="",en="",Hr=Ye.length-1,Ar=1;Ar<Hr;Ar+=1)(bt=Ye[Ar])=="'"?ce?(pt=ce.join(""),ce=void 0):ce=[]:ce?ce.push(bt):bt=="{"?(Ut.push([jt,pt]),jt={},pt=void 0):bt=="}"?((wt=Ut.pop())[0][wt[1]]=jt,pt=void 0,jt=wt[0]):bt=="-"?Yt=-1:pt===void 0?c.hasOwnProperty(bt)?(kr+=c[bt],pt=parseInt(kr,16)*Yt,Yt=1,kr=""):kr+=bt:c.hasOwnProperty(bt)?(en+=c[bt],jt[pt]=parseInt(en,16)*Yt,Yt=1,pt=void 0,en=""):en+=bt;return rt},J={codePages:["WinAnsiEncoding"],WinAnsiEncoding:$("{19m8n201n9q201o9r201s9l201t9m201u8m201w9n201x9o201y8o202k8q202l8r202m9p202q8p20aw8k203k8t203t8v203u9v2cq8s212m9t15m8w15n9w2dw9s16k8u16l9u17s9z17x8y17y9y}")},he={Unicode:{Courier:J,"Courier-Bold":J,"Courier-BoldOblique":J,"Courier-Oblique":J,Helvetica:J,"Helvetica-Bold":J,"Helvetica-BoldOblique":J,"Helvetica-Oblique":J,"Times-Roman":J,"Times-Bold":J,"Times-BoldItalic":J,"Times-Italic":J}},Ne={Unicode:{"Courier-Oblique":$("{'widths'{k3w'fof'6o}'kerning'{'fof'-6o}}"),"Times-BoldItalic":$("{'widths'{k3o2q4ycx2r201n3m201o6o201s2l201t2l201u2l201w3m201x3m201y3m2k1t2l2r202m2n2n3m2o3m2p5n202q6o2r1w2s2l2t2l2u3m2v3t2w1t2x2l2y1t2z1w3k3m3l3m3m3m3n3m3o3m3p3m3q3m3r3m3s3m203t2l203u2l3v2l3w3t3x3t3y3t3z3m4k5n4l4m4m4m4n4m4o4s4p4m4q4m4r4s4s4y4t2r4u3m4v4m4w3x4x5t4y4s4z4s5k3x5l4s5m4m5n3r5o3x5p4s5q4m5r5t5s4m5t3x5u3x5v2l5w1w5x2l5y3t5z3m6k2l6l3m6m3m6n2w6o3m6p2w6q2l6r3m6s3r6t1w6u1w6v3m6w1w6x4y6y3r6z3m7k3m7l3m7m2r7n2r7o1w7p3r7q2w7r4m7s3m7t2w7u2r7v2n7w1q7x2n7y3t202l3mcl4mal2ram3man3mao3map3mar3mas2lat4uau1uav3maw3way4uaz2lbk2sbl3t'fof'6obo2lbp3tbq3mbr1tbs2lbu1ybv3mbz3mck4m202k3mcm4mcn4mco4mcp4mcq5ycr4mcs4mct4mcu4mcv4mcw2r2m3rcy2rcz2rdl4sdm4sdn4sdo4sdp4sdq4sds4sdt4sdu4sdv4sdw4sdz3mek3mel3mem3men3meo3mep3meq4ser2wes2wet2weu2wev2wew1wex1wey1wez1wfl3rfm3mfn3mfo3mfp3mfq3mfr3tfs3mft3rfu3rfv3rfw3rfz2w203k6o212m6o2dw2l2cq2l3t3m3u2l17s3x19m3m}'kerning'{cl{4qu5kt5qt5rs17ss5ts}201s{201ss}201t{cks4lscmscnscoscpscls2wu2yu201ts}201x{2wu2yu}2k{201ts}2w{4qx5kx5ou5qx5rs17su5tu}2x{17su5tu5ou}2y{4qx5kx5ou5qx5rs17ss5ts}'fof'-6ofn{17sw5tw5ou5qw5rs}7t{cksclscmscnscoscps4ls}3u{17su5tu5os5qs}3v{17su5tu5os5qs}7p{17su5tu}ck{4qu5kt5qt5rs17ss5ts}4l{4qu5kt5qt5rs17ss5ts}cm{4qu5kt5qt5rs17ss5ts}cn{4qu5kt5qt5rs17ss5ts}co{4qu5kt5qt5rs17ss5ts}cp{4qu5kt5qt5rs17ss5ts}6l{4qu5ou5qw5rt17su5tu}5q{ckuclucmucnucoucpu4lu}5r{ckuclucmucnucoucpu4lu}7q{cksclscmscnscoscps4ls}6p{4qu5ou5qw5rt17sw5tw}ek{4qu5ou5qw5rt17su5tu}el{4qu5ou5qw5rt17su5tu}em{4qu5ou5qw5rt17su5tu}en{4qu5ou5qw5rt17su5tu}eo{4qu5ou5qw5rt17su5tu}ep{4qu5ou5qw5rt17su5tu}es{17ss5ts5qs4qu}et{4qu5ou5qw5rt17sw5tw}eu{4qu5ou5qw5rt17ss5ts}ev{17ss5ts5qs4qu}6z{17sw5tw5ou5qw5rs}fm{17sw5tw5ou5qw5rs}7n{201ts}fo{17sw5tw5ou5qw5rs}fp{17sw5tw5ou5qw5rs}fq{17sw5tw5ou5qw5rs}7r{cksclscmscnscoscps4ls}fs{17sw5tw5ou5qw5rs}ft{17su5tu}fu{17su5tu}fv{17su5tu}fw{17su5tu}fz{cksclscmscnscoscps4ls}}}"),"Helvetica-Bold":$("{'widths'{k3s2q4scx1w201n3r201o6o201s1w201t1w201u1w201w3m201x3m201y3m2k1w2l2l202m2n2n3r2o3r2p5t202q6o2r1s2s2l2t2l2u2r2v3u2w1w2x2l2y1w2z1w3k3r3l3r3m3r3n3r3o3r3p3r3q3r3r3r3s3r203t2l203u2l3v2l3w3u3x3u3y3u3z3x4k6l4l4s4m4s4n4s4o4s4p4m4q3x4r4y4s4s4t1w4u3r4v4s4w3x4x5n4y4s4z4y5k4m5l4y5m4s5n4m5o3x5p4s5q4m5r5y5s4m5t4m5u3x5v2l5w1w5x2l5y3u5z3r6k2l6l3r6m3x6n3r6o3x6p3r6q2l6r3x6s3x6t1w6u1w6v3r6w1w6x5t6y3x6z3x7k3x7l3x7m2r7n3r7o2l7p3x7q3r7r4y7s3r7t3r7u3m7v2r7w1w7x2r7y3u202l3rcl4sal2lam3ran3rao3rap3rar3ras2lat4tau2pav3raw3uay4taz2lbk2sbl3u'fof'6obo2lbp3xbq3rbr1wbs2lbu2obv3rbz3xck4s202k3rcm4scn4sco4scp4scq6ocr4scs4mct4mcu4mcv4mcw1w2m2zcy1wcz1wdl4sdm4ydn4ydo4ydp4ydq4yds4ydt4sdu4sdv4sdw4sdz3xek3rel3rem3ren3reo3rep3req5ter3res3ret3reu3rev3rew1wex1wey1wez1wfl3xfm3xfn3xfo3xfp3xfq3xfr3ufs3xft3xfu3xfv3xfw3xfz3r203k6o212m6o2dw2l2cq2l3t3r3u2l17s4m19m3r}'kerning'{cl{4qs5ku5ot5qs17sv5tv}201t{2ww4wy2yw}201w{2ks}201x{2ww4wy2yw}2k{201ts201xs}2w{7qs4qu5kw5os5qw5rs17su5tu7tsfzs}2x{5ow5qs}2y{7qs4qu5kw5os5qw5rs17su5tu7tsfzs}'fof'-6o7p{17su5tu5ot}ck{4qs5ku5ot5qs17sv5tv}4l{4qs5ku5ot5qs17sv5tv}cm{4qs5ku5ot5qs17sv5tv}cn{4qs5ku5ot5qs17sv5tv}co{4qs5ku5ot5qs17sv5tv}cp{4qs5ku5ot5qs17sv5tv}6l{17st5tt5os}17s{2kwclvcmvcnvcovcpv4lv4wwckv}5o{2kucltcmtcntcotcpt4lt4wtckt}5q{2ksclscmscnscoscps4ls4wvcks}5r{2ks4ws}5t{2kwclvcmvcnvcovcpv4lv4wwckv}eo{17st5tt5os}fu{17su5tu5ot}6p{17ss5ts}ek{17st5tt5os}el{17st5tt5os}em{17st5tt5os}en{17st5tt5os}6o{201ts}ep{17st5tt5os}es{17ss5ts}et{17ss5ts}eu{17ss5ts}ev{17ss5ts}6z{17su5tu5os5qt}fm{17su5tu5os5qt}fn{17su5tu5os5qt}fo{17su5tu5os5qt}fp{17su5tu5os5qt}fq{17su5tu5os5qt}fs{17su5tu5os5qt}ft{17su5tu5ot}7m{5os}fv{17su5tu5ot}fw{17su5tu5ot}}}"),Courier:$("{'widths'{k3w'fof'6o}'kerning'{'fof'-6o}}"),"Courier-BoldOblique":$("{'widths'{k3w'fof'6o}'kerning'{'fof'-6o}}"),"Times-Bold":$("{'widths'{k3q2q5ncx2r201n3m201o6o201s2l201t2l201u2l201w3m201x3m201y3m2k1t2l2l202m2n2n3m2o3m2p6o202q6o2r1w2s2l2t2l2u3m2v3t2w1t2x2l2y1t2z1w3k3m3l3m3m3m3n3m3o3m3p3m3q3m3r3m3s3m203t2l203u2l3v2l3w3t3x3t3y3t3z3m4k5x4l4s4m4m4n4s4o4s4p4m4q3x4r4y4s4y4t2r4u3m4v4y4w4m4x5y4y4s4z4y5k3x5l4y5m4s5n3r5o4m5p4s5q4s5r6o5s4s5t4s5u4m5v2l5w1w5x2l5y3u5z3m6k2l6l3m6m3r6n2w6o3r6p2w6q2l6r3m6s3r6t1w6u2l6v3r6w1w6x5n6y3r6z3m7k3r7l3r7m2w7n2r7o2l7p3r7q3m7r4s7s3m7t3m7u2w7v2r7w1q7x2r7y3o202l3mcl4sal2lam3man3mao3map3mar3mas2lat4uau1yav3maw3tay4uaz2lbk2sbl3t'fof'6obo2lbp3rbr1tbs2lbu2lbv3mbz3mck4s202k3mcm4scn4sco4scp4scq6ocr4scs4mct4mcu4mcv4mcw2r2m3rcy2rcz2rdl4sdm4ydn4ydo4ydp4ydq4yds4ydt4sdu4sdv4sdw4sdz3rek3mel3mem3men3meo3mep3meq4ser2wes2wet2weu2wev2wew1wex1wey1wez1wfl3rfm3mfn3mfo3mfp3mfq3mfr3tfs3mft3rfu3rfv3rfw3rfz3m203k6o212m6o2dw2l2cq2l3t3m3u2l17s4s19m3m}'kerning'{cl{4qt5ks5ot5qy5rw17sv5tv}201t{cks4lscmscnscoscpscls4wv}2k{201ts}2w{4qu5ku7mu5os5qx5ru17su5tu}2x{17su5tu5ou5qs}2y{4qv5kv7mu5ot5qz5ru17su5tu}'fof'-6o7t{cksclscmscnscoscps4ls}3u{17su5tu5os5qu}3v{17su5tu5os5qu}fu{17su5tu5ou5qu}7p{17su5tu5ou5qu}ck{4qt5ks5ot5qy5rw17sv5tv}4l{4qt5ks5ot5qy5rw17sv5tv}cm{4qt5ks5ot5qy5rw17sv5tv}cn{4qt5ks5ot5qy5rw17sv5tv}co{4qt5ks5ot5qy5rw17sv5tv}cp{4qt5ks5ot5qy5rw17sv5tv}6l{17st5tt5ou5qu}17s{ckuclucmucnucoucpu4lu4wu}5o{ckuclucmucnucoucpu4lu4wu}5q{ckzclzcmzcnzcozcpz4lz4wu}5r{ckxclxcmxcnxcoxcpx4lx4wu}5t{ckuclucmucnucoucpu4lu4wu}7q{ckuclucmucnucoucpu4lu}6p{17sw5tw5ou5qu}ek{17st5tt5qu}el{17st5tt5ou5qu}em{17st5tt5qu}en{17st5tt5qu}eo{17st5tt5qu}ep{17st5tt5ou5qu}es{17ss5ts5qu}et{17sw5tw5ou5qu}eu{17sw5tw5ou5qu}ev{17ss5ts5qu}6z{17sw5tw5ou5qu5rs}fm{17sw5tw5ou5qu5rs}fn{17sw5tw5ou5qu5rs}fo{17sw5tw5ou5qu5rs}fp{17sw5tw5ou5qu5rs}fq{17sw5tw5ou5qu5rs}7r{cktcltcmtcntcotcpt4lt5os}fs{17sw5tw5ou5qu5rs}ft{17su5tu5ou5qu}7m{5os}fv{17su5tu5ou5qu}fw{17su5tu5ou5qu}fz{cksclscmscnscoscps4ls}}}"),Symbol:$("{'widths'{k3uaw4r19m3m2k1t2l2l202m2y2n3m2p5n202q6o3k3m2s2l2t2l2v3r2w1t3m3m2y1t2z1wbk2sbl3r'fof'6o3n3m3o3m3p3m3q3m3r3m3s3m3t3m3u1w3v1w3w3r3x3r3y3r3z2wbp3t3l3m5v2l5x2l5z3m2q4yfr3r7v3k7w1o7x3k}'kerning'{'fof'-6o}}"),Helvetica:$("{'widths'{k3p2q4mcx1w201n3r201o6o201s1q201t1q201u1q201w2l201x2l201y2l2k1w2l1w202m2n2n3r2o3r2p5t202q6o2r1n2s2l2t2l2u2r2v3u2w1w2x2l2y1w2z1w3k3r3l3r3m3r3n3r3o3r3p3r3q3r3r3r3s3r203t2l203u2l3v1w3w3u3x3u3y3u3z3r4k6p4l4m4m4m4n4s4o4s4p4m4q3x4r4y4s4s4t1w4u3m4v4m4w3r4x5n4y4s4z4y5k4m5l4y5m4s5n4m5o3x5p4s5q4m5r5y5s4m5t4m5u3x5v1w5w1w5x1w5y2z5z3r6k2l6l3r6m3r6n3m6o3r6p3r6q1w6r3r6s3r6t1q6u1q6v3m6w1q6x5n6y3r6z3r7k3r7l3r7m2l7n3m7o1w7p3r7q3m7r4s7s3m7t3m7u3m7v2l7w1u7x2l7y3u202l3rcl4mal2lam3ran3rao3rap3rar3ras2lat4tau2pav3raw3uay4taz2lbk2sbl3u'fof'6obo2lbp3rbr1wbs2lbu2obv3rbz3xck4m202k3rcm4mcn4mco4mcp4mcq6ocr4scs4mct4mcu4mcv4mcw1w2m2ncy1wcz1wdl4sdm4ydn4ydo4ydp4ydq4yds4ydt4sdu4sdv4sdw4sdz3xek3rel3rem3ren3reo3rep3req5ter3mes3ret3reu3rev3rew1wex1wey1wez1wfl3rfm3rfn3rfo3rfp3rfq3rfr3ufs3xft3rfu3rfv3rfw3rfz3m203k6o212m6o2dw2l2cq2l3t3r3u1w17s4m19m3r}'kerning'{5q{4wv}cl{4qs5kw5ow5qs17sv5tv}201t{2wu4w1k2yu}201x{2wu4wy2yu}17s{2ktclucmucnu4otcpu4lu4wycoucku}2w{7qs4qz5k1m17sy5ow5qx5rsfsu5ty7tufzu}2x{17sy5ty5oy5qs}2y{7qs4qz5k1m17sy5ow5qx5rsfsu5ty7tufzu}'fof'-6o7p{17sv5tv5ow}ck{4qs5kw5ow5qs17sv5tv}4l{4qs5kw5ow5qs17sv5tv}cm{4qs5kw5ow5qs17sv5tv}cn{4qs5kw5ow5qs17sv5tv}co{4qs5kw5ow5qs17sv5tv}cp{4qs5kw5ow5qs17sv5tv}6l{17sy5ty5ow}do{17st5tt}4z{17st5tt}7s{fst}dm{17st5tt}dn{17st5tt}5o{ckwclwcmwcnwcowcpw4lw4wv}dp{17st5tt}dq{17st5tt}7t{5ow}ds{17st5tt}5t{2ktclucmucnu4otcpu4lu4wycoucku}fu{17sv5tv5ow}6p{17sy5ty5ow5qs}ek{17sy5ty5ow}el{17sy5ty5ow}em{17sy5ty5ow}en{5ty}eo{17sy5ty5ow}ep{17sy5ty5ow}es{17sy5ty5qs}et{17sy5ty5ow5qs}eu{17sy5ty5ow5qs}ev{17sy5ty5ow5qs}6z{17sy5ty5ow5qs}fm{17sy5ty5ow5qs}fn{17sy5ty5ow5qs}fo{17sy5ty5ow5qs}fp{17sy5ty5qs}fq{17sy5ty5ow5qs}7r{5ow}fs{17sy5ty5ow5qs}ft{17sv5tv5ow}7m{5ow}fv{17sv5tv5ow}fw{17sv5tv5ow}}}"),"Helvetica-BoldOblique":$("{'widths'{k3s2q4scx1w201n3r201o6o201s1w201t1w201u1w201w3m201x3m201y3m2k1w2l2l202m2n2n3r2o3r2p5t202q6o2r1s2s2l2t2l2u2r2v3u2w1w2x2l2y1w2z1w3k3r3l3r3m3r3n3r3o3r3p3r3q3r3r3r3s3r203t2l203u2l3v2l3w3u3x3u3y3u3z3x4k6l4l4s4m4s4n4s4o4s4p4m4q3x4r4y4s4s4t1w4u3r4v4s4w3x4x5n4y4s4z4y5k4m5l4y5m4s5n4m5o3x5p4s5q4m5r5y5s4m5t4m5u3x5v2l5w1w5x2l5y3u5z3r6k2l6l3r6m3x6n3r6o3x6p3r6q2l6r3x6s3x6t1w6u1w6v3r6w1w6x5t6y3x6z3x7k3x7l3x7m2r7n3r7o2l7p3x7q3r7r4y7s3r7t3r7u3m7v2r7w1w7x2r7y3u202l3rcl4sal2lam3ran3rao3rap3rar3ras2lat4tau2pav3raw3uay4taz2lbk2sbl3u'fof'6obo2lbp3xbq3rbr1wbs2lbu2obv3rbz3xck4s202k3rcm4scn4sco4scp4scq6ocr4scs4mct4mcu4mcv4mcw1w2m2zcy1wcz1wdl4sdm4ydn4ydo4ydp4ydq4yds4ydt4sdu4sdv4sdw4sdz3xek3rel3rem3ren3reo3rep3req5ter3res3ret3reu3rev3rew1wex1wey1wez1wfl3xfm3xfn3xfo3xfp3xfq3xfr3ufs3xft3xfu3xfv3xfw3xfz3r203k6o212m6o2dw2l2cq2l3t3r3u2l17s4m19m3r}'kerning'{cl{4qs5ku5ot5qs17sv5tv}201t{2ww4wy2yw}201w{2ks}201x{2ww4wy2yw}2k{201ts201xs}2w{7qs4qu5kw5os5qw5rs17su5tu7tsfzs}2x{5ow5qs}2y{7qs4qu5kw5os5qw5rs17su5tu7tsfzs}'fof'-6o7p{17su5tu5ot}ck{4qs5ku5ot5qs17sv5tv}4l{4qs5ku5ot5qs17sv5tv}cm{4qs5ku5ot5qs17sv5tv}cn{4qs5ku5ot5qs17sv5tv}co{4qs5ku5ot5qs17sv5tv}cp{4qs5ku5ot5qs17sv5tv}6l{17st5tt5os}17s{2kwclvcmvcnvcovcpv4lv4wwckv}5o{2kucltcmtcntcotcpt4lt4wtckt}5q{2ksclscmscnscoscps4ls4wvcks}5r{2ks4ws}5t{2kwclvcmvcnvcovcpv4lv4wwckv}eo{17st5tt5os}fu{17su5tu5ot}6p{17ss5ts}ek{17st5tt5os}el{17st5tt5os}em{17st5tt5os}en{17st5tt5os}6o{201ts}ep{17st5tt5os}es{17ss5ts}et{17ss5ts}eu{17ss5ts}ev{17ss5ts}6z{17su5tu5os5qt}fm{17su5tu5os5qt}fn{17su5tu5os5qt}fo{17su5tu5os5qt}fp{17su5tu5os5qt}fq{17su5tu5os5qt}fs{17su5tu5os5qt}ft{17su5tu5ot}7m{5os}fv{17su5tu5ot}fw{17su5tu5ot}}}"),ZapfDingbats:$("{'widths'{k4u2k1w'fof'6o}'kerning'{'fof'-6o}}"),"Courier-Bold":$("{'widths'{k3w'fof'6o}'kerning'{'fof'-6o}}"),"Times-Italic":$("{'widths'{k3n2q4ycx2l201n3m201o5t201s2l201t2l201u2l201w3r201x3r201y3r2k1t2l2l202m2n2n3m2o3m2p5n202q5t2r1p2s2l2t2l2u3m2v4n2w1t2x2l2y1t2z1w3k3m3l3m3m3m3n3m3o3m3p3m3q3m3r3m3s3m203t2l203u2l3v2l3w4n3x4n3y4n3z3m4k5w4l3x4m3x4n4m4o4s4p3x4q3x4r4s4s4s4t2l4u2w4v4m4w3r4x5n4y4m4z4s5k3x5l4s5m3x5n3m5o3r5p4s5q3x5r5n5s3x5t3r5u3r5v2r5w1w5x2r5y2u5z3m6k2l6l3m6m3m6n2w6o3m6p2w6q1w6r3m6s3m6t1w6u1w6v2w6w1w6x4s6y3m6z3m7k3m7l3m7m2r7n2r7o1w7p3m7q2w7r4m7s2w7t2w7u2r7v2s7w1v7x2s7y3q202l3mcl3xal2ram3man3mao3map3mar3mas2lat4wau1vav3maw4nay4waz2lbk2sbl4n'fof'6obo2lbp3mbq3obr1tbs2lbu1zbv3mbz3mck3x202k3mcm3xcn3xco3xcp3xcq5tcr4mcs3xct3xcu3xcv3xcw2l2m2ucy2lcz2ldl4mdm4sdn4sdo4sdp4sdq4sds4sdt4sdu4sdv4sdw4sdz3mek3mel3mem3men3meo3mep3meq4mer2wes2wet2weu2wev2wew1wex1wey1wez1wfl3mfm3mfn3mfo3mfp3mfq3mfr4nfs3mft3mfu3mfv3mfw3mfz2w203k6o212m6m2dw2l2cq2l3t3m3u2l17s3r19m3m}'kerning'{cl{5kt4qw}201s{201sw}201t{201tw2wy2yy6q-t}201x{2wy2yy}2k{201tw}2w{7qs4qy7rs5ky7mw5os5qx5ru17su5tu}2x{17ss5ts5os}2y{7qs4qy7rs5ky7mw5os5qx5ru17su5tu}'fof'-6o6t{17ss5ts5qs}7t{5os}3v{5qs}7p{17su5tu5qs}ck{5kt4qw}4l{5kt4qw}cm{5kt4qw}cn{5kt4qw}co{5kt4qw}cp{5kt4qw}6l{4qs5ks5ou5qw5ru17su5tu}17s{2ks}5q{ckvclvcmvcnvcovcpv4lv}5r{ckuclucmucnucoucpu4lu}5t{2ks}6p{4qs5ks5ou5qw5ru17su5tu}ek{4qs5ks5ou5qw5ru17su5tu}el{4qs5ks5ou5qw5ru17su5tu}em{4qs5ks5ou5qw5ru17su5tu}en{4qs5ks5ou5qw5ru17su5tu}eo{4qs5ks5ou5qw5ru17su5tu}ep{4qs5ks5ou5qw5ru17su5tu}es{5ks5qs4qs}et{4qs5ks5ou5qw5ru17su5tu}eu{4qs5ks5qw5ru17su5tu}ev{5ks5qs4qs}ex{17ss5ts5qs}6z{4qv5ks5ou5qw5ru17su5tu}fm{4qv5ks5ou5qw5ru17su5tu}fn{4qv5ks5ou5qw5ru17su5tu}fo{4qv5ks5ou5qw5ru17su5tu}fp{4qv5ks5ou5qw5ru17su5tu}fq{4qv5ks5ou5qw5ru17su5tu}7r{5os}fs{4qv5ks5ou5qw5ru17su5tu}ft{17su5tu5qs}fu{17su5tu5qs}fv{17su5tu5qs}fw{17su5tu5qs}}}"),"Times-Roman":$("{'widths'{k3n2q4ycx2l201n3m201o6o201s2l201t2l201u2l201w2w201x2w201y2w2k1t2l2l202m2n2n3m2o3m2p5n202q6o2r1m2s2l2t2l2u3m2v3s2w1t2x2l2y1t2z1w3k3m3l3m3m3m3n3m3o3m3p3m3q3m3r3m3s3m203t2l203u2l3v1w3w3s3x3s3y3s3z2w4k5w4l4s4m4m4n4m4o4s4p3x4q3r4r4s4s4s4t2l4u2r4v4s4w3x4x5t4y4s4z4s5k3r5l4s5m4m5n3r5o3x5p4s5q4s5r5y5s4s5t4s5u3x5v2l5w1w5x2l5y2z5z3m6k2l6l2w6m3m6n2w6o3m6p2w6q2l6r3m6s3m6t1w6u1w6v3m6w1w6x4y6y3m6z3m7k3m7l3m7m2l7n2r7o1w7p3m7q3m7r4s7s3m7t3m7u2w7v3k7w1o7x3k7y3q202l3mcl4sal2lam3man3mao3map3mar3mas2lat4wau1vav3maw3say4waz2lbk2sbl3s'fof'6obo2lbp3mbq2xbr1tbs2lbu1zbv3mbz2wck4s202k3mcm4scn4sco4scp4scq5tcr4mcs3xct3xcu3xcv3xcw2l2m2tcy2lcz2ldl4sdm4sdn4sdo4sdp4sdq4sds4sdt4sdu4sdv4sdw4sdz3mek2wel2wem2wen2weo2wep2weq4mer2wes2wet2weu2wev2wew1wex1wey1wez1wfl3mfm3mfn3mfo3mfp3mfq3mfr3sfs3mft3mfu3mfv3mfw3mfz3m203k6o212m6m2dw2l2cq2l3t3m3u1w17s4s19m3m}'kerning'{cl{4qs5ku17sw5ou5qy5rw201ss5tw201ws}201s{201ss}201t{ckw4lwcmwcnwcowcpwclw4wu201ts}2k{201ts}2w{4qs5kw5os5qx5ru17sx5tx}2x{17sw5tw5ou5qu}2y{4qs5kw5os5qx5ru17sx5tx}'fof'-6o7t{ckuclucmucnucoucpu4lu5os5rs}3u{17su5tu5qs}3v{17su5tu5qs}7p{17sw5tw5qs}ck{4qs5ku17sw5ou5qy5rw201ss5tw201ws}4l{4qs5ku17sw5ou5qy5rw201ss5tw201ws}cm{4qs5ku17sw5ou5qy5rw201ss5tw201ws}cn{4qs5ku17sw5ou5qy5rw201ss5tw201ws}co{4qs5ku17sw5ou5qy5rw201ss5tw201ws}cp{4qs5ku17sw5ou5qy5rw201ss5tw201ws}6l{17su5tu5os5qw5rs}17s{2ktclvcmvcnvcovcpv4lv4wuckv}5o{ckwclwcmwcnwcowcpw4lw4wu}5q{ckyclycmycnycoycpy4ly4wu5ms}5r{cktcltcmtcntcotcpt4lt4ws}5t{2ktclvcmvcnvcovcpv4lv4wuckv}7q{cksclscmscnscoscps4ls}6p{17su5tu5qw5rs}ek{5qs5rs}el{17su5tu5os5qw5rs}em{17su5tu5os5qs5rs}en{17su5qs5rs}eo{5qs5rs}ep{17su5tu5os5qw5rs}es{5qs}et{17su5tu5qw5rs}eu{17su5tu5qs5rs}ev{5qs}6z{17sv5tv5os5qx5rs}fm{5os5qt5rs}fn{17sv5tv5os5qx5rs}fo{17sv5tv5os5qx5rs}fp{5os5qt5rs}fq{5os5qt5rs}7r{ckuclucmucnucoucpu4lu5os}fs{17sv5tv5os5qx5rs}ft{17ss5ts5qs}fu{17sw5tw5qs}fv{17sw5tw5qs}fw{17ss5ts5qs}fz{ckuclucmucnucoucpu4lu5os5rs}}}"),"Helvetica-Oblique":$("{'widths'{k3p2q4mcx1w201n3r201o6o201s1q201t1q201u1q201w2l201x2l201y2l2k1w2l1w202m2n2n3r2o3r2p5t202q6o2r1n2s2l2t2l2u2r2v3u2w1w2x2l2y1w2z1w3k3r3l3r3m3r3n3r3o3r3p3r3q3r3r3r3s3r203t2l203u2l3v1w3w3u3x3u3y3u3z3r4k6p4l4m4m4m4n4s4o4s4p4m4q3x4r4y4s4s4t1w4u3m4v4m4w3r4x5n4y4s4z4y5k4m5l4y5m4s5n4m5o3x5p4s5q4m5r5y5s4m5t4m5u3x5v1w5w1w5x1w5y2z5z3r6k2l6l3r6m3r6n3m6o3r6p3r6q1w6r3r6s3r6t1q6u1q6v3m6w1q6x5n6y3r6z3r7k3r7l3r7m2l7n3m7o1w7p3r7q3m7r4s7s3m7t3m7u3m7v2l7w1u7x2l7y3u202l3rcl4mal2lam3ran3rao3rap3rar3ras2lat4tau2pav3raw3uay4taz2lbk2sbl3u'fof'6obo2lbp3rbr1wbs2lbu2obv3rbz3xck4m202k3rcm4mcn4mco4mcp4mcq6ocr4scs4mct4mcu4mcv4mcw1w2m2ncy1wcz1wdl4sdm4ydn4ydo4ydp4ydq4yds4ydt4sdu4sdv4sdw4sdz3xek3rel3rem3ren3reo3rep3req5ter3mes3ret3reu3rev3rew1wex1wey1wez1wfl3rfm3rfn3rfo3rfp3rfq3rfr3ufs3xft3rfu3rfv3rfw3rfz3m203k6o212m6o2dw2l2cq2l3t3r3u1w17s4m19m3r}'kerning'{5q{4wv}cl{4qs5kw5ow5qs17sv5tv}201t{2wu4w1k2yu}201x{2wu4wy2yu}17s{2ktclucmucnu4otcpu4lu4wycoucku}2w{7qs4qz5k1m17sy5ow5qx5rsfsu5ty7tufzu}2x{17sy5ty5oy5qs}2y{7qs4qz5k1m17sy5ow5qx5rsfsu5ty7tufzu}'fof'-6o7p{17sv5tv5ow}ck{4qs5kw5ow5qs17sv5tv}4l{4qs5kw5ow5qs17sv5tv}cm{4qs5kw5ow5qs17sv5tv}cn{4qs5kw5ow5qs17sv5tv}co{4qs5kw5ow5qs17sv5tv}cp{4qs5kw5ow5qs17sv5tv}6l{17sy5ty5ow}do{17st5tt}4z{17st5tt}7s{fst}dm{17st5tt}dn{17st5tt}5o{ckwclwcmwcnwcowcpw4lw4wv}dp{17st5tt}dq{17st5tt}7t{5ow}ds{17st5tt}5t{2ktclucmucnu4otcpu4lu4wycoucku}fu{17sv5tv5ow}6p{17sy5ty5ow5qs}ek{17sy5ty5ow}el{17sy5ty5ow}em{17sy5ty5ow}en{5ty}eo{17sy5ty5ow}ep{17sy5ty5ow}es{17sy5ty5qs}et{17sy5ty5ow5qs}eu{17sy5ty5ow5qs}ev{17sy5ty5ow5qs}6z{17sy5ty5ow5qs}fm{17sy5ty5ow5qs}fn{17sy5ty5ow5qs}fo{17sy5ty5ow5qs}fp{17sy5ty5qs}fq{17sy5ty5ow5qs}7r{5ow}fs{17sy5ty5ow5qs}ft{17sv5tv5ow}7m{5ow}fv{17sv5tv5ow}fw{17sv5tv5ow}}}")}};n.events.push(["addFont",function(Ye){var ce=Ye.font,wt=Ne.Unicode[ce.postScriptName];wt&&(ce.metadata.Unicode={},ce.metadata.Unicode.widths=wt.widths,ce.metadata.Unicode.kerning=wt.kerning);var pt=he.Unicode[ce.postScriptName];pt&&(ce.metadata.Unicode.encoding=pt,ce.encoding=pt.codePages[0])}])}(Xn.API),function(n){var a=function(s){for(var c=s.length,d=new Uint8Array(c),m=0;m<c;m++)d[m]=s.charCodeAt(m);return d};n.API.events.push(["addFont",function(s){var c=void 0,d=s.font,m=s.instance;if(!d.isStandardFont){if(m===void 0)throw new Error("Font does not exist in vFS, import fonts or remove declaration doc.addFont('"+d.postScriptName+"').");if(typeof(c=m.existsFileInVFS(d.postScriptName)===!1?m.loadFile(d.postScriptName):m.getFileFromVFS(d.postScriptName))!="string")throw new Error("Font is not stored as string-data in vFS, import fonts or remove declaration doc.addFont('"+d.postScriptName+"').");(function(W,O){O=/^\x00\x01\x00\x00/.test(O)?a(O):a(L0(O)),W.metadata=n.API.TTFFont.open(O),W.metadata.Unicode=W.metadata.Unicode||{encoding:{},kerning:{},widths:[]},W.metadata.glyIdsUsed=[0]})(d,c)}}])}(Xn),Xn.API.addSvgAsImage=function(n,a,s,c,d,m,W,O){if(isNaN(a)||isNaN(s))throw Us.error("jsPDF.addSvgAsImage: Invalid coordinates",arguments),new Error("Invalid coordinates passed to jsPDF.addSvgAsImage");if(isNaN(c)||isNaN(d))throw Us.error("jsPDF.addSvgAsImage: Invalid measurements",arguments),new Error("Invalid measurements (width and/or height) passed to jsPDF.addSvgAsImage");var $=document.createElement("canvas");$.width=c,$.height=d;var J=$.getContext("2d");J.fillStyle="#fff",J.fillRect(0,0,$.width,$.height);var he={ignoreMouse:!0,ignoreAnimation:!0,ignoreDimensions:!0},Ne=this;return(Ii.canvg?Promise.resolve(Ii.canvg):je.e(3754).then(je.bind(je,63754))).catch(function(Ye){return Promise.reject(new Error("Could not load canvg: "+Ye))}).then(function(Ye){return Ye.default?Ye.default:Ye}).then(function(Ye){return Ye.fromString(J,n,he)},function(){return Promise.reject(new Error("Could not load canvg."))}).then(function(Ye){return Ye.render(he)}).then(function(){Ne.addImage($.toDataURL("image/jpeg",1),a,s,c,d,W,O)})},Xn.API.putTotalPages=function(n){var a,s=0;parseInt(this.internal.getFont().id.substr(1),10)<15?(a=new RegExp(n,"g"),s=this.internal.getNumberOfPages()):(a=new RegExp(this.pdfEscape16(n,this.internal.getFont()),"g"),s=this.pdfEscape16(this.internal.getNumberOfPages()+"",this.internal.getFont()));for(var c=1;c<=this.internal.getNumberOfPages();c++)for(var d=0;d<this.internal.pages[c].length;d++)this.internal.pages[c][d]=this.internal.pages[c][d].replace(a,s);return this},Xn.API.viewerPreferences=function(n,a){var s;n=n||{},a=a||!1;var c,d,m,W={HideToolbar:{defaultValue:!1,value:!1,type:"boolean",explicitSet:!1,valueSet:[!0,!1],pdfVersion:1.3},HideMenubar:{defaultValue:!1,value:!1,type:"boolean",explicitSet:!1,valueSet:[!0,!1],pdfVersion:1.3},HideWindowUI:{defaultValue:!1,value:!1,type:"boolean",explicitSet:!1,valueSet:[!0,!1],pdfVersion:1.3},FitWindow:{defaultValue:!1,value:!1,type:"boolean",explicitSet:!1,valueSet:[!0,!1],pdfVersion:1.3},CenterWindow:{defaultValue:!1,value:!1,type:"boolean",explicitSet:!1,valueSet:[!0,!1],pdfVersion:1.3},DisplayDocTitle:{defaultValue:!1,value:!1,type:"boolean",explicitSet:!1,valueSet:[!0,!1],pdfVersion:1.4},NonFullScreenPageMode:{defaultValue:"UseNone",value:"UseNone",type:"name",explicitSet:!1,valueSet:["UseNone","UseOutlines","UseThumbs","UseOC"],pdfVersion:1.3},Direction:{defaultValue:"L2R",value:"L2R",type:"name",explicitSet:!1,valueSet:["L2R","R2L"],pdfVersion:1.3},ViewArea:{defaultValue:"CropBox",value:"CropBox",type:"name",explicitSet:!1,valueSet:["MediaBox","CropBox","TrimBox","BleedBox","ArtBox"],pdfVersion:1.4},ViewClip:{defaultValue:"CropBox",value:"CropBox",type:"name",explicitSet:!1,valueSet:["MediaBox","CropBox","TrimBox","BleedBox","ArtBox"],pdfVersion:1.4},PrintArea:{defaultValue:"CropBox",value:"CropBox",type:"name",explicitSet:!1,valueSet:["MediaBox","CropBox","TrimBox","BleedBox","ArtBox"],pdfVersion:1.4},PrintClip:{defaultValue:"CropBox",value:"CropBox",type:"name",explicitSet:!1,valueSet:["MediaBox","CropBox","TrimBox","BleedBox","ArtBox"],pdfVersion:1.4},PrintScaling:{defaultValue:"AppDefault",value:"AppDefault",type:"name",explicitSet:!1,valueSet:["AppDefault","None"],pdfVersion:1.6},Duplex:{defaultValue:"",value:"none",type:"name",explicitSet:!1,valueSet:["Simplex","DuplexFlipShortEdge","DuplexFlipLongEdge","none"],pdfVersion:1.7},PickTrayByPDFSize:{defaultValue:!1,value:!1,type:"boolean",explicitSet:!1,valueSet:[!0,!1],pdfVersion:1.7},PrintPageRange:{defaultValue:"",value:"",type:"array",explicitSet:!1,valueSet:null,pdfVersion:1.7},NumCopies:{defaultValue:1,value:1,type:"integer",explicitSet:!1,valueSet:null,pdfVersion:1.7}},O=Object.keys(W),$=[],J=0,he=0,Ne=0;function Ye(wt,pt){var bt,rt=!1;for(bt=0;bt<wt.length;bt+=1)wt[bt]===pt&&(rt=!0);return rt}if(this.internal.viewerpreferences===void 0&&(this.internal.viewerpreferences={},this.internal.viewerpreferences.configuration=JSON.parse(JSON.stringify(W)),this.internal.viewerpreferences.isSubscribed=!1),s=this.internal.viewerpreferences.configuration,n==="reset"||a===!0){var ce=O.length;for(Ne=0;Ne<ce;Ne+=1)s[O[Ne]].value=s[O[Ne]].defaultValue,s[O[Ne]].explicitSet=!1}if((0,Ie.Z)(n)==="object"){for(d in n)if(m=n[d],Ye(O,d)&&m!==void 0){if(s[d].type==="boolean"&&typeof m=="boolean")s[d].value=m;else if(s[d].type==="name"&&Ye(s[d].valueSet,m))s[d].value=m;else if(s[d].type==="integer"&&Number.isInteger(m))s[d].value=m;else if(s[d].type==="array"){for(J=0;J<m.length;J+=1)if(c=!0,m[J].length===1&&typeof m[J][0]=="number")$.push(String(m[J]-1));else if(m[J].length>1){for(he=0;he<m[J].length;he+=1)typeof m[J][he]!="number"&&(c=!1);c===!0&&$.push([m[J][0]-1,m[J][1]-1].join(" "))}s[d].value="["+$.join(" ")+"]"}else s[d].value=s[d].defaultValue;s[d].explicitSet=!0}}return this.internal.viewerpreferences.isSubscribed===!1&&(this.internal.events.subscribe("putCatalog",function(){var wt,pt=[];for(wt in s)s[wt].explicitSet===!0&&(s[wt].type==="name"?pt.push("/"+wt+" /"+s[wt].value):pt.push("/"+wt+" "+s[wt].value));pt.length!==0&&this.internal.write(`/ViewerPreferences
|
|
|
<<
|
|
|
`+pt.join(`
|
|
|
`)+`
|
|
|
>>`)}),this.internal.viewerpreferences.isSubscribed=!0),this.internal.viewerpreferences.configuration=s,this},function(n){var a=function(){var c='<rdf:RDF xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"><rdf:Description rdf:about="" xmlns:jspdf="'+this.internal.__metadata__.namespaceuri+'"><jspdf:metadata>',d=unescape(encodeURIComponent('<x:xmpmeta xmlns:x="adobe:ns:meta/">')),m=unescape(encodeURIComponent(c)),W=unescape(encodeURIComponent(this.internal.__metadata__.metadata)),O=unescape(encodeURIComponent("</jspdf:metadata></rdf:Description></rdf:RDF>")),$=unescape(encodeURIComponent("</x:xmpmeta>")),J=m.length+W.length+O.length+d.length+$.length;this.internal.__metadata__.metadata_object_number=this.internal.newObject(),this.internal.write("<< /Type /Metadata /Subtype /XML /Length "+J+" >>"),this.internal.write("stream"),this.internal.write(d+m+W+O+$),this.internal.write("endstream"),this.internal.write("endobj")},s=function(){this.internal.__metadata__.metadata_object_number&&this.internal.write("/Metadata "+this.internal.__metadata__.metadata_object_number+" 0 R")};n.addMetadata=function(c,d){return this.internal.__metadata__===void 0&&(this.internal.__metadata__={metadata:c,namespaceuri:d||"http://jspdf.default.namespaceuri/"},this.internal.events.subscribe("putCatalog",s),this.internal.events.subscribe("postPutResources",a)),this}}(Xn.API),function(n){var a=n.API,s=a.pdfEscape16=function(m,W){for(var O,$=W.metadata.Unicode.widths,J=["","0","00","000","0000"],he=[""],Ne=0,Ye=m.length;Ne<Ye;++Ne){if(O=W.metadata.characterToGlyph(m.charCodeAt(Ne)),W.metadata.glyIdsUsed.push(O),W.metadata.toUnicode[O]=m.charCodeAt(Ne),$.indexOf(O)==-1&&($.push(O),$.push([parseInt(W.metadata.widthOfGlyph(O),10)])),O=="0")return he.join("");O=O.toString(16),he.push(J[4-O.length],O)}return he.join("")},c=function(m){var W,O,$,J,he,Ne,Ye;for(he=`/CIDInit /ProcSet findresource begin
|
|
|
12 dict begin
|
|
|
begincmap
|
|
|
/CIDSystemInfo <<
|
|
|
/Registry (Adobe)
|
|
|
/Ordering (UCS)
|
|
|
/Supplement 0
|
|
|
>> def
|
|
|
/CMapName /Adobe-Identity-UCS def
|
|
|
/CMapType 2 def
|
|
|
1 begincodespacerange
|
|
|
<0000><ffff>
|
|
|
endcodespacerange`,$=[],Ne=0,Ye=(O=Object.keys(m).sort(function(ce,wt){return ce-wt})).length;Ne<Ye;Ne++)W=O[Ne],$.length>=100&&(he+=`
|
|
|
`+$.length+` beginbfchar
|
|
|
`+$.join(`
|
|
|
`)+`
|
|
|
endbfchar`,$=[]),m[W]!==void 0&&m[W]!==null&&typeof m[W].toString=="function"&&(J=("0000"+m[W].toString(16)).slice(-4),W=("0000"+(+W).toString(16)).slice(-4),$.push("<"+W+"><"+J+">"));return $.length&&(he+=`
|
|
|
`+$.length+` beginbfchar
|
|
|
`+$.join(`
|
|
|
`)+`
|
|
|
endbfchar
|
|
|
`),he+`endcmap
|
|
|
CMapName currentdict /CMap defineresource pop
|
|
|
end
|
|
|
end`};a.events.push(["putFont",function(m){(function(W){var O=W.font,$=W.out,J=W.newObject,he=W.putStream;if(O.metadata instanceof n.API.TTFFont&&O.encoding==="Identity-H"){for(var Ne=O.metadata.Unicode.widths,Ye=O.metadata.subset.encode(O.metadata.glyIdsUsed,1),ce="",wt=0;wt<Ye.length;wt++)ce+=String.fromCharCode(Ye[wt]);var pt=J();he({data:ce,addLength1:!0,objectId:pt}),$("endobj");var bt=J();he({data:c(O.metadata.toUnicode),addLength1:!0,objectId:bt}),$("endobj");var rt=J();$("<<"),$("/Type /FontDescriptor"),$("/FontName /"+QA(O.fontName)),$("/FontFile2 "+pt+" 0 R"),$("/FontBBox "+n.API.PDFObject.convert(O.metadata.bbox)),$("/Flags "+O.metadata.flags),$("/StemV "+O.metadata.stemV),$("/ItalicAngle "+O.metadata.italicAngle),$("/Ascent "+O.metadata.ascender),$("/Descent "+O.metadata.decender),$("/CapHeight "+O.metadata.capHeight),$(">>"),$("endobj");var Yt=J();$("<<"),$("/Type /Font"),$("/BaseFont /"+QA(O.fontName)),$("/FontDescriptor "+rt+" 0 R"),$("/W "+n.API.PDFObject.convert(Ne)),$("/CIDToGIDMap /Identity"),$("/DW 1000"),$("/Subtype /CIDFontType2"),$("/CIDSystemInfo"),$("<<"),$("/Supplement 0"),$("/Registry (Adobe)"),$("/Ordering ("+O.encoding+")"),$(">>"),$(">>"),$("endobj"),O.objectNumber=J(),$("<<"),$("/Type /Font"),$("/Subtype /Type0"),$("/ToUnicode "+bt+" 0 R"),$("/BaseFont /"+QA(O.fontName)),$("/Encoding /"+O.encoding),$("/DescendantFonts ["+Yt+" 0 R]"),$(">>"),$("endobj"),O.isAlreadyPutted=!0}})(m)}]),a.events.push(["putFont",function(m){(function(W){var O=W.font,$=W.out,J=W.newObject,he=W.putStream;if(O.metadata instanceof n.API.TTFFont&&O.encoding==="WinAnsiEncoding"){for(var Ne=O.metadata.rawData,Ye="",ce=0;ce<Ne.length;ce++)Ye+=String.fromCharCode(Ne[ce]);var wt=J();he({data:Ye,addLength1:!0,objectId:wt}),$("endobj");var pt=J();he({data:c(O.metadata.toUnicode),addLength1:!0,objectId:pt}),$("endobj");var bt=J();$("<<"),$("/Descent "+O.metadata.decender),$("/CapHeight "+O.metadata.capHeight),$("/StemV "+O.metadata.stemV),$("/Type /FontDescriptor"),$("/FontFile2 "+wt+" 0 R"),$("/Flags 96"),$("/FontBBox "+n.API.PDFObject.convert(O.metadata.bbox)),$("/FontName /"+QA(O.fontName)),$("/ItalicAngle "+O.metadata.italicAngle),$("/Ascent "+O.metadata.ascender),$(">>"),$("endobj"),O.objectNumber=J();for(var rt=0;rt<O.metadata.hmtx.widths.length;rt++)O.metadata.hmtx.widths[rt]=parseInt(O.metadata.hmtx.widths[rt]*(1e3/O.metadata.head.unitsPerEm));$("<</Subtype/TrueType/Type/Font/ToUnicode "+pt+" 0 R/BaseFont/"+QA(O.fontName)+"/FontDescriptor "+bt+" 0 R/Encoding/"+O.encoding+" /FirstChar 29 /LastChar 255 /Widths "+n.API.PDFObject.convert(O.metadata.hmtx.widths)+">>"),$("endobj"),O.isAlreadyPutted=!0}})(m)}]);var d=function(m){var W,O=m.text||"",$=m.x,J=m.y,he=m.options||{},Ne=m.mutex||{},Ye=Ne.pdfEscape,ce=Ne.activeFontKey,wt=Ne.fonts,pt=ce,bt="",rt=0,Yt="",jt=wt[pt].encoding;if(wt[pt].encoding!=="Identity-H")return{text:O,x:$,y:J,options:he,mutex:Ne};for(Yt=O,pt=ce,Array.isArray(O)&&(Yt=O[0]),rt=0;rt<Yt.length;rt+=1)wt[pt].metadata.hasOwnProperty("cmap")&&(W=wt[pt].metadata.cmap.unicode.codeMap[Yt[rt].charCodeAt(0)]),W||Yt[rt].charCodeAt(0)<256&&wt[pt].metadata.hasOwnProperty("Unicode")?bt+=Yt[rt]:bt+="";var Ut="";return parseInt(pt.slice(1))<14||jt==="WinAnsiEncoding"?Ut=Ye(bt,pt).split("").map(function(kr){return kr.charCodeAt(0).toString(16)}).join(""):jt==="Identity-H"&&(Ut=s(bt,wt[pt])),Ne.isHex=!0,{text:Ut,x:$,y:J,options:he,mutex:Ne}};a.events.push(["postProcessText",function(m){var W=m.text||"",O=[],$={text:W,x:m.x,y:m.y,options:m.options,mutex:m.mutex};if(Array.isArray(W)){var J=0;for(J=0;J<W.length;J+=1)Array.isArray(W[J])&&W[J].length===3?O.push([d(Object.assign({},$,{text:W[J][0]})).text,W[J][1],W[J][2]]):O.push(d(Object.assign({},$,{text:W[J]})).text);m.text=O}else m.text=d(Object.assign({},$,{text:W})).text}])}(Xn),function(n){var a=function(){return this.internal.vFS===void 0&&(this.internal.vFS={}),!0};n.existsFileInVFS=function(s){return a.call(this),this.internal.vFS[s]!==void 0},n.addFileToVFS=function(s,c){return a.call(this),this.internal.vFS[s]=c,this},n.getFileFromVFS=function(s){return a.call(this),this.internal.vFS[s]!==void 0?this.internal.vFS[s]:null}}(Xn.API),function(n){n.__bidiEngine__=n.prototype.__bidiEngine__=function(c){var d,m,W,O,$,J,he,Ne=a,Ye=[[0,3,0,1,0,0,0],[0,3,0,1,2,2,0],[0,3,0,17,2,0,1],[0,3,5,5,4,1,0],[0,3,21,21,4,0,1],[0,3,5,5,4,2,0]],ce=[[2,0,1,1,0,1,0],[2,0,1,1,0,2,0],[2,0,2,1,3,2,0],[2,0,2,33,3,1,1]],wt={L:0,R:1,EN:2,AN:3,N:4,B:5,S:6},pt={0:0,5:1,6:2,7:3,32:4,251:5,254:6,255:7},bt=["(",")","(","<",">","<","[","]","[","{","}","{","\xAB","\xBB","\xAB","\u2039","\u203A","\u2039","\u2045","\u2046","\u2045","\u207D","\u207E","\u207D","\u208D","\u208E","\u208D","\u2264","\u2265","\u2264","\u2329","\u232A","\u2329","\uFE59","\uFE5A","\uFE59","\uFE5B","\uFE5C","\uFE5B","\uFE5D","\uFE5E","\uFE5D","\uFE64","\uFE65","\uFE64"],rt=new RegExp(/^([1-4|9]|1[0-9]|2[0-9]|3[0168]|4[04589]|5[012]|7[78]|159|16[0-9]|17[0-2]|21[569]|22[03489]|250)$/),Yt=!1,jt=0;this.__bidiEngine__={};var Ut=function(tt){var Ct=tt.charCodeAt(),Xt=Ct>>8,Gt=pt[Xt];return Gt!==void 0?Ne[256*Gt+(255&Ct)]:Xt===252||Xt===253?"AL":rt.test(Xt)?"L":Xt===8?"R":"N"},kr=function(tt){for(var Ct,Xt=0;Xt<tt.length;Xt++){if((Ct=Ut(tt.charAt(Xt)))==="L")return!1;if(Ct==="R")return!0}return!1},en=function(tt,Ct,Xt,Gt){var Ur,Qr,zr,Fr,$r=Ct[Gt];switch($r){case"L":case"R":case"LRE":case"RLE":case"LRO":case"RLO":case"PDF":Yt=!1;break;case"N":case"AN":break;case"EN":Yt&&($r="AN");break;case"AL":Yt=!0,$r="R";break;case"WS":case"BN":$r="N";break;case"CS":Gt<1||Gt+1>=Ct.length||(Ur=Xt[Gt-1])!=="EN"&&Ur!=="AN"||(Qr=Ct[Gt+1])!=="EN"&&Qr!=="AN"?$r="N":Yt&&(Qr="AN"),$r=Qr===Ur?Qr:"N";break;case"ES":$r=(Ur=Gt>0?Xt[Gt-1]:"B")==="EN"&&Gt+1<Ct.length&&Ct[Gt+1]==="EN"?"EN":"N";break;case"ET":if(Gt>0&&Xt[Gt-1]==="EN"){$r="EN";break}if(Yt){$r="N";break}for(zr=Gt+1,Fr=Ct.length;zr<Fr&&Ct[zr]==="ET";)zr++;$r=zr<Fr&&Ct[zr]==="EN"?"EN":"N";break;case"NSM":if(W&&!O){for(Fr=Ct.length,zr=Gt+1;zr<Fr&&Ct[zr]==="NSM";)zr++;if(zr<Fr){var En=tt[Gt],un=En>=1425&&En<=2303||En===64286;if(Ur=Ct[zr],un&&(Ur==="R"||Ur==="AL")){$r="R";break}}}$r=Gt<1||(Ur=Ct[Gt-1])==="B"?"N":Xt[Gt-1];break;case"B":Yt=!1,d=!0,$r=jt;break;case"S":m=!0,$r="N"}return $r},Hr=function(tt,Ct,Xt){var Gt=tt.split("");return Xt&&Ar(Gt,Xt,{hiLevel:jt}),Gt.reverse(),Ct&&Ct.reverse(),Gt.join("")},Ar=function(tt,Ct,Xt){var Gt,Ur,Qr,zr,Fr,$r=-1,En=tt.length,un=0,et=[],Rt=jt?ce:Ye,Ht=[];for(Yt=!1,d=!1,m=!1,Ur=0;Ur<En;Ur++)Ht[Ur]=Ut(tt[Ur]);for(Qr=0;Qr<En;Qr++){if(Fr=un,et[Qr]=en(tt,Ht,et,Qr),Gt=240&(un=Rt[Fr][wt[et[Qr]]]),un&=15,Ct[Qr]=zr=Rt[un][5],Gt>0)if(Gt===16){for(Ur=$r;Ur<Qr;Ur++)Ct[Ur]=1;$r=-1}else $r=-1;if(Rt[un][6])$r===-1&&($r=Qr);else if($r>-1){for(Ur=$r;Ur<Qr;Ur++)Ct[Ur]=zr;$r=-1}Ht[Qr]==="B"&&(Ct[Qr]=0),Xt.hiLevel|=zr}m&&function(tr,gr,Lr){for(var jr=0;jr<Lr;jr++)if(tr[jr]==="S"){gr[jr]=jt;for(var Mr=jr-1;Mr>=0&&tr[Mr]==="WS";Mr--)gr[Mr]=jt}}(Ht,Ct,En)},Nt=function(tt,Ct,Xt,Gt,Ur){if(!(Ur.hiLevel<tt)){if(tt===1&&jt===1&&!d)return Ct.reverse(),void(Xt&&Xt.reverse());for(var Qr,zr,Fr,$r,En=Ct.length,un=0;un<En;){if(Gt[un]>=tt){for(Fr=un+1;Fr<En&&Gt[Fr]>=tt;)Fr++;for($r=un,zr=Fr-1;$r<zr;$r++,zr--)Qr=Ct[$r],Ct[$r]=Ct[zr],Ct[zr]=Qr,Xt&&(Qr=Xt[$r],Xt[$r]=Xt[zr],Xt[zr]=Qr);un=Fr}un++}}},Er=function(tt,Ct,Xt){var Gt=tt.split(""),Ur={hiLevel:jt};return Xt||(Xt=[]),Ar(Gt,Xt,Ur),function(Qr,zr,Fr){if(Fr.hiLevel!==0&&he)for(var $r,En=0;En<Qr.length;En++)zr[En]===1&&($r=bt.indexOf(Qr[En]))>=0&&(Qr[En]=bt[$r+1])}(Gt,Xt,Ur),Nt(2,Gt,Ct,Xt,Ur),Nt(1,Gt,Ct,Xt,Ur),Gt.join("")};return this.__bidiEngine__.doBidiReorder=function(tt,Ct,Xt){if(function(Ur,Qr){if(Qr)for(var zr=0;zr<Ur.length;zr++)Qr[zr]=zr;O===void 0&&(O=kr(Ur)),J===void 0&&(J=kr(Ur))}(tt,Ct),W||!$||J)if(W&&$&&O^J)jt=O?1:0,tt=Hr(tt,Ct,Xt);else if(!W&&$&&J)jt=O?1:0,tt=Er(tt,Ct,Xt),tt=Hr(tt,Ct);else if(!W||O||$||J){if(W&&!$&&O^J)tt=Hr(tt,Ct),O?(jt=0,tt=Er(tt,Ct,Xt)):(jt=1,tt=Er(tt,Ct,Xt),tt=Hr(tt,Ct));else if(W&&O&&!$&&J)jt=1,tt=Er(tt,Ct,Xt),tt=Hr(tt,Ct);else if(!W&&!$&&O^J){var Gt=he;O?(jt=1,tt=Er(tt,Ct,Xt),jt=0,he=!1,tt=Er(tt,Ct,Xt),he=Gt):(jt=0,tt=Er(tt,Ct,Xt),tt=Hr(tt,Ct),jt=1,he=!1,tt=Er(tt,Ct,Xt),he=Gt,tt=Hr(tt,Ct))}}else jt=0,tt=Er(tt,Ct,Xt);else jt=O?1:0,tt=Er(tt,Ct,Xt);return tt},this.__bidiEngine__.setOptions=function(tt){tt&&(W=tt.isInputVisual,$=tt.isOutputVisual,O=tt.isInputRtl,J=tt.isOutputRtl,he=tt.isSymmetricSwapping)},this.__bidiEngine__.setOptions(c),this.__bidiEngine__};var a=["BN","BN","BN","BN","BN","BN","BN","BN","BN","S","B","S","WS","B","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","B","B","B","S","WS","N","N","ET","ET","ET","N","N","N","N","N","ES","CS","ES","CS","CS","EN","EN","EN","EN","EN","EN","EN","EN","EN","EN","CS","N","N","N","N","N","N","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","N","N","N","N","N","N","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","N","N","N","N","BN","BN","BN","BN","BN","BN","B","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","CS","N","ET","ET","ET","ET","N","N","N","N","L","N","N","BN","N","N","ET","ET","EN","EN","N","L","N","N","N","EN","L","N","N","N","N","N","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","N","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","N","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","N","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","N","N","L","L","L","L","L","L","L","N","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","N","L","N","N","N","N","N","ET","N","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","R","NSM","R","NSM","NSM","R","NSM","NSM","R","NSM","N","N","N","N","N","N","N","N","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","N","N","N","N","N","R","R","R","R","R","N","N","N","N","N","N","N","N","N","N","N","AN","AN","AN","AN","AN","AN","N","N","AL","ET","ET","AL","CS","AL","N","N","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","AL","AL","N","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","AN","AN","AN","AN","AN","AN","AN","AN","AN","AN","ET","AN","AN","AL","AL","AL","NSM","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","NSM","NSM","NSM","NSM","NSM","NSM","NSM","AN","N","NSM","NSM","NSM","NSM","NSM","NSM","AL","AL","NSM","NSM","N","NSM","NSM","NSM","NSM","AL","AL","EN","EN","EN","EN","EN","EN","EN","EN","EN","EN","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","N","AL","AL","NSM","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","N","N","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","AL","N","N","N","N","N","N","N","N","N","N","N","N","N","N","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","R","R","N","N","N","N","R","N","N","N","N","N","WS","WS","WS","WS","WS","WS","WS","WS","WS","WS","WS","BN","BN","BN","L","R","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","WS","B","LRE","RLE","PDF","LRO","RLO","CS","ET","ET","ET","ET","ET","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","CS","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","WS","BN","BN","BN","BN","BN","N","LRI","RLI","FSI","PDI","BN","BN","BN","BN","BN","BN","EN","L","N","N","EN","EN","EN","EN","EN","EN","ES","ES","N","N","N","L","EN","EN","EN","EN","EN","EN","EN","EN","EN","EN","ES","ES","N","N","N","N","L","L","L","L","L","L","L","L","L","L","L","L","L","N","N","N","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","L","L","L","L","L","L","L","N","N","N","N","N","N","N","N","N","N","N","N","L","L","L","L","L","N","N","N","N","N","R","NSM","R","R","R","R","R","R","R","R","R","R","ES","R","R","R","R","R","R","R","R","R","R","R","R","R","N","R","R","R","R","R","N","R","N","R","R","N","R","R","N","R","R","R","R","R","R","R","R","R","R","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","CS","N","CS","N","N","CS","N","N","N","N","N","N","N","N","N","ET","N","N","ES","ES","N","N","N","N","N","ET","ET","N","N","N","N","N","AL","AL","AL","AL","AL","N","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","N","N","BN","N","N","N","ET","ET","ET","N","N","N","N","N","ES","CS","ES","CS","CS","EN","EN","EN","EN","EN","EN","EN","EN","EN","EN","CS","N","N","N","N","N","N","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","N","N","N","N","N","N","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","N","N","N","N","N","N","N","N","N","N","N","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","N","N","N","L","L","L","L","L","L","N","N","L","L","L","L","L","L","N","N","L","L","L","L","L","L","N","N","L","L","L","N","N","N","ET","ET","N","N","N","ET","ET","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N"],s=new n.__bidiEngine__({isInputVisual:!0});n.API.events.push(["postProcessText",function(c){var d=c.text;c.x,c.y;var m=c.options||{};c.mutex,m.lang;var W=[];if(m.isInputVisual=typeof m.isInputVisual!="boolean"||m.isInputVisual,s.setOptions(m),Object.prototype.toString.call(d)==="[object Array]"){var O=0;for(W=[],O=0;O<d.length;O+=1)Object.prototype.toString.call(d[O])==="[object Array]"?W.push([s.doBidiReorder(d[O][0]),d[O][1],d[O][2]]):W.push([s.doBidiReorder(d[O])]);c.text=W}else c.text=s.doBidiReorder(d);s.setOptions({isInputVisual:!0})}])}(Xn),Xn.API.TTFFont=function(){function n(a){var s;if(this.rawData=a,s=this.contents=new Cn(a),this.contents.pos=4,s.readString(4)==="ttcf")throw new Error("TTCF not supported.");s.pos=0,this.parse(),this.subset=new k0(this),this.registerTTF()}return n.open=function(a){return new n(a)},n.prototype.parse=function(){return this.directory=new Yn(this.contents),this.head=new Tn(this),this.name=new os(this),this.cmap=new Mn(this),this.toUnicode={},this.hhea=new ei(this),this.maxp=new Vs(this),this.hmtx=new cs(this),this.post=new Dn(this),this.os2=new Di(this),this.loca=new Ku(this),this.glyf=new EA(this),this.ascender=this.os2.exists&&this.os2.ascender||this.hhea.ascender,this.decender=this.os2.exists&&this.os2.decender||this.hhea.decender,this.lineGap=this.os2.exists&&this.os2.lineGap||this.hhea.lineGap,this.bbox=[this.head.xMin,this.head.yMin,this.head.xMax,this.head.yMax]},n.prototype.registerTTF=function(){var a,s,c,d,m;if(this.scaleFactor=1e3/this.head.unitsPerEm,this.bbox=function(){var W,O,$,J;for(J=[],W=0,O=($=this.bbox).length;W<O;W++)a=$[W],J.push(Math.round(a*this.scaleFactor));return J}.call(this),this.stemV=0,this.post.exists?(c=255&(d=this.post.italic_angle),32768&(s=d>>16)&&(s=-(1+(65535^s))),this.italicAngle=+(s+"."+c)):this.italicAngle=0,this.ascender=Math.round(this.ascender*this.scaleFactor),this.decender=Math.round(this.decender*this.scaleFactor),this.lineGap=Math.round(this.lineGap*this.scaleFactor),this.capHeight=this.os2.exists&&this.os2.capHeight||this.ascender,this.xHeight=this.os2.exists&&this.os2.xHeight||0,this.familyClass=(this.os2.exists&&this.os2.familyClass||0)>>8,this.isSerif=(m=this.familyClass)===1||m===2||m===3||m===4||m===5||m===7,this.isScript=this.familyClass===10,this.flags=0,this.post.isFixedPitch&&(this.flags|=1),this.isSerif&&(this.flags|=2),this.isScript&&(this.flags|=8),this.italicAngle!==0&&(this.flags|=64),this.flags|=32,!this.cmap.unicode)throw new Error("No unicode cmap for font")},n.prototype.characterToGlyph=function(a){var s;return((s=this.cmap.unicode)!=null?s.codeMap[a]:void 0)||0},n.prototype.widthOfGlyph=function(a){var s;return s=1e3/this.head.unitsPerEm,this.hmtx.forGlyph(a).advance*s},n.prototype.widthOfString=function(a,s,c){var d,m,W,O;for(W=0,m=0,O=(a=""+a).length;0<=O?m<O:m>O;m=0<=O?++m:--m)d=a.charCodeAt(m),W+=this.widthOfGlyph(this.characterToGlyph(d))+c*(1e3/s)||0;return W*(s/1e3)},n.prototype.lineHeight=function(a,s){var c;return s==null&&(s=!1),c=s?this.lineGap:0,(this.ascender+c-this.decender)/1e3*a},n}();var qr,Cn=function(){function n(a){this.data=a!=null?a:[],this.pos=0,this.length=this.data.length}return n.prototype.readByte=function(){return this.data[this.pos++]},n.prototype.writeByte=function(a){return this.data[this.pos++]=a},n.prototype.readUInt32=function(){return 16777216*this.readByte()+(this.readByte()<<16)+(this.readByte()<<8)+this.readByte()},n.prototype.writeUInt32=function(a){return this.writeByte(a>>>24&255),this.writeByte(a>>16&255),this.writeByte(a>>8&255),this.writeByte(255&a)},n.prototype.readInt32=function(){var a;return(a=this.readUInt32())>=2147483648?a-4294967296:a},n.prototype.writeInt32=function(a){return a<0&&(a+=4294967296),this.writeUInt32(a)},n.prototype.readUInt16=function(){return this.readByte()<<8|this.readByte()},n.prototype.writeUInt16=function(a){return this.writeByte(a>>8&255),this.writeByte(255&a)},n.prototype.readInt16=function(){var a;return(a=this.readUInt16())>=32768?a-65536:a},n.prototype.writeInt16=function(a){return a<0&&(a+=65536),this.writeUInt16(a)},n.prototype.readString=function(a){var s,c;for(c=[],s=0;0<=a?s<a:s>a;s=0<=a?++s:--s)c[s]=String.fromCharCode(this.readByte());return c.join("")},n.prototype.writeString=function(a){var s,c,d;for(d=[],s=0,c=a.length;0<=c?s<c:s>c;s=0<=c?++s:--s)d.push(this.writeByte(a.charCodeAt(s)));return d},n.prototype.readShort=function(){return this.readInt16()},n.prototype.writeShort=function(a){return this.writeInt16(a)},n.prototype.readLongLong=function(){var a,s,c,d,m,W,O,$;return a=this.readByte(),s=this.readByte(),c=this.readByte(),d=this.readByte(),m=this.readByte(),W=this.readByte(),O=this.readByte(),$=this.readByte(),128&a?-1*(72057594037927940*(255^a)+281474976710656*(255^s)+1099511627776*(255^c)+4294967296*(255^d)+16777216*(255^m)+65536*(255^W)+256*(255^O)+(255^$)+1):72057594037927940*a+281474976710656*s+1099511627776*c+4294967296*d+16777216*m+65536*W+256*O+$},n.prototype.writeLongLong=function(a){var s,c;return s=Math.floor(a/4294967296),c=4294967295&a,this.writeByte(s>>24&255),this.writeByte(s>>16&255),this.writeByte(s>>8&255),this.writeByte(255&s),this.writeByte(c>>24&255),this.writeByte(c>>16&255),this.writeByte(c>>8&255),this.writeByte(255&c)},n.prototype.readInt=function(){return this.readInt32()},n.prototype.writeInt=function(a){return this.writeInt32(a)},n.prototype.read=function(a){var s,c;for(s=[],c=0;0<=a?c<a:c>a;c=0<=a?++c:--c)s.push(this.readByte());return s},n.prototype.write=function(a){var s,c,d,m;for(m=[],c=0,d=a.length;c<d;c++)s=a[c],m.push(this.writeByte(s));return m},n}(),Yn=function(){var n;function a(s){var c,d,m;for(this.scalarType=s.readInt(),this.tableCount=s.readShort(),this.searchRange=s.readShort(),this.entrySelector=s.readShort(),this.rangeShift=s.readShort(),this.tables={},d=0,m=this.tableCount;0<=m?d<m:d>m;d=0<=m?++d:--d)c={tag:s.readString(4),checksum:s.readInt(),offset:s.readInt(),length:s.readInt()},this.tables[c.tag]=c}return a.prototype.encode=function(s){var c,d,m,W,O,$,J,he,Ne,Ye,ce,wt,pt;for(pt in ce=Object.keys(s).length,$=Math.log(2),Ne=16*Math.floor(Math.log(ce)/$),W=Math.floor(Ne/$),he=16*ce-Ne,(d=new Cn).writeInt(this.scalarType),d.writeShort(ce),d.writeShort(Ne),d.writeShort(W),d.writeShort(he),m=16*ce,J=d.pos+m,O=null,wt=[],s)for(Ye=s[pt],d.writeString(pt),d.writeInt(n(Ye)),d.writeInt(J),d.writeInt(Ye.length),wt=wt.concat(Ye),pt==="head"&&(O=J),J+=Ye.length;J%4;)wt.push(0),J++;return d.write(wt),c=2981146554-n(d.data),d.pos=O+8,d.writeUInt32(c),d.data},n=function(s){var c,d,m,W;for(s=_s.call(s);s.length%4;)s.push(0);for(m=new Cn(s),d=0,c=0,W=s.length;c<W;c=c+=4)d+=m.readUInt32();return 4294967295&d},a}(),ii={}.hasOwnProperty,On=function(n,a){for(var s in a)ii.call(a,s)&&(n[s]=a[s]);function c(){this.constructor=n}return c.prototype=a.prototype,n.prototype=new c,n.__super__=a.prototype,n};qr=function(){function n(a){var s;this.file=a,s=this.file.directory.tables[this.tag],this.exists=!!s,s&&(this.offset=s.offset,this.length=s.length,this.parse(this.file.contents))}return n.prototype.parse=function(){},n.prototype.encode=function(){},n.prototype.raw=function(){return this.exists?(this.file.contents.pos=this.offset,this.file.contents.read(this.length)):null},n}();var Tn=function(){function n(){return n.__super__.constructor.apply(this,arguments)}return On(n,qr),n.prototype.tag="head",n.prototype.parse=function(a){return a.pos=this.offset,this.version=a.readInt(),this.revision=a.readInt(),this.checkSumAdjustment=a.readInt(),this.magicNumber=a.readInt(),this.flags=a.readShort(),this.unitsPerEm=a.readShort(),this.created=a.readLongLong(),this.modified=a.readLongLong(),this.xMin=a.readShort(),this.yMin=a.readShort(),this.xMax=a.readShort(),this.yMax=a.readShort(),this.macStyle=a.readShort(),this.lowestRecPPEM=a.readShort(),this.fontDirectionHint=a.readShort(),this.indexToLocFormat=a.readShort(),this.glyphDataFormat=a.readShort()},n.prototype.encode=function(a){var s;return(s=new Cn).writeInt(this.version),s.writeInt(this.revision),s.writeInt(this.checkSumAdjustment),s.writeInt(this.magicNumber),s.writeShort(this.flags),s.writeShort(this.unitsPerEm),s.writeLongLong(this.created),s.writeLongLong(this.modified),s.writeShort(this.xMin),s.writeShort(this.yMin),s.writeShort(this.xMax),s.writeShort(this.yMax),s.writeShort(this.macStyle),s.writeShort(this.lowestRecPPEM),s.writeShort(this.fontDirectionHint),s.writeShort(a),s.writeShort(this.glyphDataFormat),s.data},n}(),qn=function(){function n(a,s){var c,d,m,W,O,$,J,he,Ne,Ye,ce,wt,pt,bt,rt,Yt,jt;switch(this.platformID=a.readUInt16(),this.encodingID=a.readShort(),this.offset=s+a.readInt(),Ne=a.pos,a.pos=this.offset,this.format=a.readUInt16(),this.length=a.readUInt16(),this.language=a.readUInt16(),this.isUnicode=this.platformID===3&&this.encodingID===1&&this.format===4||this.platformID===0&&this.format===4,this.codeMap={},this.format){case 0:for($=0;$<256;++$)this.codeMap[$]=a.readByte();break;case 4:for(ce=a.readUInt16(),Ye=ce/2,a.pos+=6,m=function(){var Ut,kr;for(kr=[],$=Ut=0;0<=Ye?Ut<Ye:Ut>Ye;$=0<=Ye?++Ut:--Ut)kr.push(a.readUInt16());return kr}(),a.pos+=2,pt=function(){var Ut,kr;for(kr=[],$=Ut=0;0<=Ye?Ut<Ye:Ut>Ye;$=0<=Ye?++Ut:--Ut)kr.push(a.readUInt16());return kr}(),J=function(){var Ut,kr;for(kr=[],$=Ut=0;0<=Ye?Ut<Ye:Ut>Ye;$=0<=Ye?++Ut:--Ut)kr.push(a.readUInt16());return kr}(),he=function(){var Ut,kr;for(kr=[],$=Ut=0;0<=Ye?Ut<Ye:Ut>Ye;$=0<=Ye?++Ut:--Ut)kr.push(a.readUInt16());return kr}(),d=(this.length-a.pos+this.offset)/2,O=function(){var Ut,kr;for(kr=[],$=Ut=0;0<=d?Ut<d:Ut>d;$=0<=d?++Ut:--Ut)kr.push(a.readUInt16());return kr}(),$=rt=0,jt=m.length;rt<jt;$=++rt)for(bt=m[$],c=Yt=wt=pt[$];wt<=bt?Yt<=bt:Yt>=bt;c=wt<=bt?++Yt:--Yt)he[$]===0?W=c+J[$]:(W=O[he[$]/2+(c-wt)-(Ye-$)]||0)!==0&&(W+=J[$]),this.codeMap[c]=65535&W}a.pos=Ne}return n.encode=function(a,s){var c,d,m,W,O,$,J,he,Ne,Ye,ce,wt,pt,bt,rt,Yt,jt,Ut,kr,en,Hr,Ar,Nt,Er,tt,Ct,Xt,Gt,Ur,Qr,zr,Fr,$r,En,un,et,Rt,Ht,tr,gr,Lr,jr,Mr,an,vn,Hn;switch(Gt=new Cn,W=Object.keys(a).sort(function(jn,Xr){return jn-Xr}),s){case"macroman":for(pt=0,bt=function(){var jn=[];for(wt=0;wt<256;++wt)jn.push(0);return jn}(),Yt={0:0},m={},Ur=0,$r=W.length;Ur<$r;Ur++)Yt[Mr=a[d=W[Ur]]]==null&&(Yt[Mr]=++pt),m[d]={old:a[d],new:Yt[a[d]]},bt[d]=Yt[a[d]];return Gt.writeUInt16(1),Gt.writeUInt16(0),Gt.writeUInt32(12),Gt.writeUInt16(0),Gt.writeUInt16(262),Gt.writeUInt16(0),Gt.write(bt),{charMap:m,subtable:Gt.data,maxGlyphID:pt+1};case"unicode":for(Ct=[],Ne=[],jt=0,Yt={},c={},rt=J=null,Qr=0,En=W.length;Qr<En;Qr++)Yt[kr=a[d=W[Qr]]]==null&&(Yt[kr]=++jt),c[d]={old:kr,new:Yt[kr]},O=Yt[kr]-d,rt!=null&&O===J||(rt&&Ne.push(rt),Ct.push(d),J=O),rt=d;for(rt&&Ne.push(rt),Ne.push(65535),Ct.push(65535),Er=2*(Nt=Ct.length),Ar=2*Math.pow(Math.log(Nt)/Math.LN2,2),Ye=Math.log(Ar/2)/Math.LN2,Hr=2*Nt-Ar,$=[],en=[],ce=[],wt=zr=0,un=Ct.length;zr<un;wt=++zr){if(tt=Ct[wt],he=Ne[wt],tt===65535){$.push(0),en.push(0);break}if(tt-(Xt=c[tt].new)>=32768)for($.push(0),en.push(2*(ce.length+Nt-wt)),d=Fr=tt;tt<=he?Fr<=he:Fr>=he;d=tt<=he?++Fr:--Fr)ce.push(c[d].new);else $.push(Xt-tt),en.push(0)}for(Gt.writeUInt16(3),Gt.writeUInt16(1),Gt.writeUInt32(12),Gt.writeUInt16(4),Gt.writeUInt16(16+8*Nt+2*ce.length),Gt.writeUInt16(0),Gt.writeUInt16(Er),Gt.writeUInt16(Ar),Gt.writeUInt16(Ye),Gt.writeUInt16(Hr),Lr=0,et=Ne.length;Lr<et;Lr++)d=Ne[Lr],Gt.writeUInt16(d);for(Gt.writeUInt16(0),jr=0,Rt=Ct.length;jr<Rt;jr++)d=Ct[jr],Gt.writeUInt16(d);for(an=0,Ht=$.length;an<Ht;an++)O=$[an],Gt.writeUInt16(O);for(vn=0,tr=en.length;vn<tr;vn++)Ut=en[vn],Gt.writeUInt16(Ut);for(Hn=0,gr=ce.length;Hn<gr;Hn++)pt=ce[Hn],Gt.writeUInt16(pt);return{charMap:c,subtable:Gt.data,maxGlyphID:jt+1}}},n}(),Mn=function(){function n(){return n.__super__.constructor.apply(this,arguments)}return On(n,qr),n.prototype.tag="cmap",n.prototype.parse=function(a){var s,c,d;for(a.pos=this.offset,this.version=a.readUInt16(),d=a.readUInt16(),this.tables=[],this.unicode=null,c=0;0<=d?c<d:c>d;c=0<=d?++c:--c)s=new qn(a,this.offset),this.tables.push(s),s.isUnicode&&this.unicode==null&&(this.unicode=s);return!0},n.encode=function(a,s){var c,d;return s==null&&(s="macroman"),c=qn.encode(a,s),(d=new Cn).writeUInt16(0),d.writeUInt16(1),c.table=d.data.concat(c.subtable),c},n}(),ei=function(){function n(){return n.__super__.constructor.apply(this,arguments)}return On(n,qr),n.prototype.tag="hhea",n.prototype.parse=function(a){return a.pos=this.offset,this.version=a.readInt(),this.ascender=a.readShort(),this.decender=a.readShort(),this.lineGap=a.readShort(),this.advanceWidthMax=a.readShort(),this.minLeftSideBearing=a.readShort(),this.minRightSideBearing=a.readShort(),this.xMaxExtent=a.readShort(),this.caretSlopeRise=a.readShort(),this.caretSlopeRun=a.readShort(),this.caretOffset=a.readShort(),a.pos+=8,this.metricDataFormat=a.readShort(),this.numberOfMetrics=a.readUInt16()},n}(),Di=function(){function n(){return n.__super__.constructor.apply(this,arguments)}return On(n,qr),n.prototype.tag="OS/2",n.prototype.parse=function(a){if(a.pos=this.offset,this.version=a.readUInt16(),this.averageCharWidth=a.readShort(),this.weightClass=a.readUInt16(),this.widthClass=a.readUInt16(),this.type=a.readShort(),this.ySubscriptXSize=a.readShort(),this.ySubscriptYSize=a.readShort(),this.ySubscriptXOffset=a.readShort(),this.ySubscriptYOffset=a.readShort(),this.ySuperscriptXSize=a.readShort(),this.ySuperscriptYSize=a.readShort(),this.ySuperscriptXOffset=a.readShort(),this.ySuperscriptYOffset=a.readShort(),this.yStrikeoutSize=a.readShort(),this.yStrikeoutPosition=a.readShort(),this.familyClass=a.readShort(),this.panose=function(){var s,c;for(c=[],s=0;s<10;++s)c.push(a.readByte());return c}(),this.charRange=function(){var s,c;for(c=[],s=0;s<4;++s)c.push(a.readInt());return c}(),this.vendorID=a.readString(4),this.selection=a.readShort(),this.firstCharIndex=a.readShort(),this.lastCharIndex=a.readShort(),this.version>0&&(this.ascent=a.readShort(),this.descent=a.readShort(),this.lineGap=a.readShort(),this.winAscent=a.readShort(),this.winDescent=a.readShort(),this.codePageRange=function(){var s,c;for(c=[],s=0;s<2;s=++s)c.push(a.readInt());return c}(),this.version>1))return this.xHeight=a.readShort(),this.capHeight=a.readShort(),this.defaultChar=a.readShort(),this.breakChar=a.readShort(),this.maxContext=a.readShort()},n}(),Dn=function(){function n(){return n.__super__.constructor.apply(this,arguments)}return On(n,qr),n.prototype.tag="post",n.prototype.parse=function(a){var s,c,d;switch(a.pos=this.offset,this.format=a.readInt(),this.italicAngle=a.readInt(),this.underlinePosition=a.readShort(),this.underlineThickness=a.readShort(),this.isFixedPitch=a.readInt(),this.minMemType42=a.readInt(),this.maxMemType42=a.readInt(),this.minMemType1=a.readInt(),this.maxMemType1=a.readInt(),this.format){case 65536:case 196608:break;case 131072:var m;for(c=a.readUInt16(),this.glyphNameIndex=[],m=0;0<=c?m<c:m>c;m=0<=c?++m:--m)this.glyphNameIndex.push(a.readUInt16());for(this.names=[],d=[];a.pos<this.offset+this.length;)s=a.readByte(),d.push(this.names.push(a.readString(s)));return d;case 151552:return c=a.readUInt16(),this.offsets=a.read(c);case 262144:return this.map=function(){var W,O,$;for($=[],m=W=0,O=this.file.maxp.numGlyphs;0<=O?W<O:W>O;m=0<=O?++W:--W)$.push(a.readUInt32());return $}.call(this)}},n}(),kn=function(n,a){this.raw=n,this.length=n.length,this.platformID=a.platformID,this.encodingID=a.encodingID,this.languageID=a.languageID},os=function(){function n(){return n.__super__.constructor.apply(this,arguments)}return On(n,qr),n.prototype.tag="name",n.prototype.parse=function(a){var s,c,d,m,W,O,$,J,he,Ne,Ye;for(a.pos=this.offset,a.readShort(),s=a.readShort(),O=a.readShort(),c=[],m=0;0<=s?m<s:m>s;m=0<=s?++m:--m)c.push({platformID:a.readShort(),encodingID:a.readShort(),languageID:a.readShort(),nameID:a.readShort(),length:a.readShort(),offset:this.offset+O+a.readShort()});for($={},m=he=0,Ne=c.length;he<Ne;m=++he)d=c[m],a.pos=d.offset,J=a.readString(d.length),W=new kn(J,d),$[Ye=d.nameID]==null&&($[Ye]=[]),$[d.nameID].push(W);this.strings=$,this.copyright=$[0],this.fontFamily=$[1],this.fontSubfamily=$[2],this.uniqueSubfamily=$[3],this.fontName=$[4],this.version=$[5];try{this.postscriptName=$[6][0].raw.replace(/[\x00-\x19\x80-\xff]/g,"")}catch(ce){this.postscriptName=$[4][0].raw.replace(/[\x00-\x19\x80-\xff]/g,"")}return this.trademark=$[7],this.manufacturer=$[8],this.designer=$[9],this.description=$[10],this.vendorUrl=$[11],this.designerUrl=$[12],this.license=$[13],this.licenseUrl=$[14],this.preferredFamily=$[15],this.preferredSubfamily=$[17],this.compatibleFull=$[18],this.sampleText=$[19]},n}(),Vs=function(){function n(){return n.__super__.constructor.apply(this,arguments)}return On(n,qr),n.prototype.tag="maxp",n.prototype.parse=function(a){return a.pos=this.offset,this.version=a.readInt(),this.numGlyphs=a.readUInt16(),this.maxPoints=a.readUInt16(),this.maxContours=a.readUInt16(),this.maxCompositePoints=a.readUInt16(),this.maxComponentContours=a.readUInt16(),this.maxZones=a.readUInt16(),this.maxTwilightPoints=a.readUInt16(),this.maxStorage=a.readUInt16(),this.maxFunctionDefs=a.readUInt16(),this.maxInstructionDefs=a.readUInt16(),this.maxStackElements=a.readUInt16(),this.maxSizeOfInstructions=a.readUInt16(),this.maxComponentElements=a.readUInt16(),this.maxComponentDepth=a.readUInt16()},n}(),cs=function(){function n(){return n.__super__.constructor.apply(this,arguments)}return On(n,qr),n.prototype.tag="hmtx",n.prototype.parse=function(a){var s,c,d,m,W,O,$;for(a.pos=this.offset,this.metrics=[],s=0,O=this.file.hhea.numberOfMetrics;0<=O?s<O:s>O;s=0<=O?++s:--s)this.metrics.push({advance:a.readUInt16(),lsb:a.readInt16()});for(d=this.file.maxp.numGlyphs-this.file.hhea.numberOfMetrics,this.leftSideBearings=function(){var J,he;for(he=[],s=J=0;0<=d?J<d:J>d;s=0<=d?++J:--J)he.push(a.readInt16());return he}(),this.widths=function(){var J,he,Ne,Ye;for(Ye=[],J=0,he=(Ne=this.metrics).length;J<he;J++)m=Ne[J],Ye.push(m.advance);return Ye}.call(this),c=this.widths[this.widths.length-1],$=[],s=W=0;0<=d?W<d:W>d;s=0<=d?++W:--W)$.push(this.widths.push(c));return $},n.prototype.forGlyph=function(a){return a in this.metrics?this.metrics[a]:{advance:this.metrics[this.metrics.length-1].advance,lsb:this.leftSideBearings[a-this.metrics.length]}},n}(),_s=[].slice,EA=function(){function n(){return n.__super__.constructor.apply(this,arguments)}return On(n,qr),n.prototype.tag="glyf",n.prototype.parse=function(){return this.cache={}},n.prototype.glyphFor=function(a){var s,c,d,m,W,O,$,J,he,Ne;return a in this.cache?this.cache[a]:(m=this.file.loca,s=this.file.contents,c=m.indexOf(a),(d=m.lengthOf(a))===0?this.cache[a]=null:(s.pos=this.offset+c,W=(O=new Cn(s.read(d))).readShort(),J=O.readShort(),Ne=O.readShort(),$=O.readShort(),he=O.readShort(),this.cache[a]=W===-1?new Yl(O,J,Ne,$,he):new nA(O,W,J,Ne,$,he),this.cache[a]))},n.prototype.encode=function(a,s,c){var d,m,W,O,$;for(W=[],m=[],O=0,$=s.length;O<$;O++)d=a[s[O]],m.push(W.length),d&&(W=W.concat(d.encode(c)));return m.push(W.length),{table:W,offsets:m}},n}(),nA=function(){function n(a,s,c,d,m,W){this.raw=a,this.numberOfContours=s,this.xMin=c,this.yMin=d,this.xMax=m,this.yMax=W,this.compound=!1}return n.prototype.encode=function(){return this.raw.data},n}(),Yl=function(){function n(a,s,c,d,m){var W,O;for(this.raw=a,this.xMin=s,this.yMin=c,this.xMax=d,this.yMax=m,this.compound=!0,this.glyphIDs=[],this.glyphOffsets=[],W=this.raw;O=W.readShort(),this.glyphOffsets.push(W.pos),this.glyphIDs.push(W.readUInt16()),32&O;)W.pos+=1&O?4:2,128&O?W.pos+=8:64&O?W.pos+=4:8&O&&(W.pos+=2)}return n.prototype.encode=function(){var a,s,c;for(s=new Cn(_s.call(this.raw.data)),a=0,c=this.glyphIDs.length;a<c;++a)s.pos=this.glyphOffsets[a];return s.data},n}(),Ku=function(){function n(){return n.__super__.constructor.apply(this,arguments)}return On(n,qr),n.prototype.tag="loca",n.prototype.parse=function(a){var s,c;return a.pos=this.offset,s=this.file.head.indexToLocFormat,this.offsets=s===0?function(){var d,m;for(m=[],c=0,d=this.length;c<d;c+=2)m.push(2*a.readUInt16());return m}.call(this):function(){var d,m;for(m=[],c=0,d=this.length;c<d;c+=4)m.push(a.readUInt32());return m}.call(this)},n.prototype.indexOf=function(a){return this.offsets[a]},n.prototype.lengthOf=function(a){return this.offsets[a+1]-this.offsets[a]},n.prototype.encode=function(a,s){for(var c=new Uint32Array(this.offsets.length),d=0,m=0,W=0;W<c.length;++W)if(c[W]=d,m<s.length&&s[m]==W){++m,c[W]=d;var O=this.offsets[W],$=this.offsets[W+1]-O;$>0&&(d+=$)}for(var J=new Array(4*c.length),he=0;he<c.length;++he)J[4*he+3]=255&c[he],J[4*he+2]=(65280&c[he])>>8,J[4*he+1]=(16711680&c[he])>>16,J[4*he]=(4278190080&c[he])>>24;return J},n}(),k0=function(){function n(a){this.font=a,this.subset={},this.unicodes={},this.next=33}return n.prototype.generateCmap=function(){var a,s,c,d,m;for(s in d=this.font.cmap.tables[0].codeMap,a={},m=this.subset)c=m[s],a[s]=d[c];return a},n.prototype.glyphsFor=function(a){var s,c,d,m,W,O,$;for(d={},W=0,O=a.length;W<O;W++)d[m=a[W]]=this.font.glyf.glyphFor(m);for(m in s=[],d)(c=d[m])!=null&&c.compound&&s.push.apply(s,c.glyphIDs);if(s.length>0)for(m in $=this.glyphsFor(s))c=$[m],d[m]=c;return d},n.prototype.encode=function(a,s){var c,d,m,W,O,$,J,he,Ne,Ye,ce,wt,pt,bt,rt;for(d in c=Mn.encode(this.generateCmap(),"unicode"),W=this.glyphsFor(a),ce={0:0},rt=c.charMap)ce[($=rt[d]).old]=$.new;for(wt in Ye=c.maxGlyphID,W)wt in ce||(ce[wt]=Ye++);return he=function(Yt){var jt,Ut;for(jt in Ut={},Yt)Ut[Yt[jt]]=jt;return Ut}(ce),Ne=Object.keys(he).sort(function(Yt,jt){return Yt-jt}),pt=function(){var Yt,jt,Ut;for(Ut=[],Yt=0,jt=Ne.length;Yt<jt;Yt++)O=Ne[Yt],Ut.push(he[O]);return Ut}(),m=this.font.glyf.encode(W,pt,ce),J=this.font.loca.encode(m.offsets,pt),bt={cmap:this.font.cmap.raw(),glyf:m.table,loca:J,hmtx:this.font.hmtx.raw(),hhea:this.font.hhea.raw(),maxp:this.font.maxp.raw(),post:this.font.post.raw(),name:this.font.name.raw(),head:this.font.head.encode(s)},this.font.os2.exists&&(bt["OS/2"]=this.font.os2.raw()),this.font.directory.encode(bt)},n}();Xn.API.PDFObject=function(){var n;function a(){}return n=function(s,c){return(Array(c+1).join("0")+s).slice(-c)},a.convert=function(s){var c,d,m,W;if(Array.isArray(s))return"["+function(){var O,$,J;for(J=[],O=0,$=s.length;O<$;O++)c=s[O],J.push(a.convert(c));return J}().join(" ")+"]";if(typeof s=="string")return"/"+s;if(s!=null&&s.isString)return"("+s+")";if(s instanceof Date)return"(D:"+n(s.getUTCFullYear(),4)+n(s.getUTCMonth(),2)+n(s.getUTCDate(),2)+n(s.getUTCHours(),2)+n(s.getUTCMinutes(),2)+n(s.getUTCSeconds(),2)+"Z)";if({}.toString.call(s)==="[object Object]"){for(d in m=["<<"],s)W=s[d],m.push("/"+d+" "+a.convert(W));return m.push(">>"),m.join(`
|
|
|
`)}return""+s},a}()},86129:function(wn,Sr,je){var Ie=je(19208).lW,mt=je(97671);(function(Fe){wn.exports=Fe()})(function(){return function Fe(Me,de,I){function Be(C,H){if(!de[C]){if(!Me[C]){var w=void 0;if(!H&&w)return require(C,!0);if(R)return R(C,!0);var L=new Error("Cannot find module '"+C+"'");throw L.code="MODULE_NOT_FOUND",L}var B=de[C]={exports:{}};Me[C][0].call(B.exports,function(k){var K=Me[C][1][k];return Be(K||k)},B,B.exports,Fe,Me,de,I)}return de[C].exports}for(var R=void 0,u=0;u<I.length;u++)Be(I[u]);return Be}({1:[function(Fe,Me,de){"use strict";var I=Fe("./utils"),Be=Fe("./support"),R="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=";de.encode=function(u){for(var C,H,w,L,B,k,K,V=[],P=0,G=u.length,Z=G,se=I.getTypeOf(u)!=="string";P<u.length;)Z=G-P,w=se?(C=u[P++],H=P<G?u[P++]:0,P<G?u[P++]:0):(C=u.charCodeAt(P++),H=P<G?u.charCodeAt(P++):0,P<G?u.charCodeAt(P++):0),L=C>>2,B=(3&C)<<4|H>>4,k=1<Z?(15&H)<<2|w>>6:64,K=2<Z?63&w:64,V.push(R.charAt(L)+R.charAt(B)+R.charAt(k)+R.charAt(K));return V.join("")},de.decode=function(u){var C,H,w,L,B,k,K=0,V=0,P="data:";if(u.substr(0,P.length)===P)throw new Error("Invalid base64 input, it looks like a data url.");var G,Z=3*(u=u.replace(/[^A-Za-z0-9+/=]/g,"")).length/4;if(u.charAt(u.length-1)===R.charAt(64)&&Z--,u.charAt(u.length-2)===R.charAt(64)&&Z--,Z%1!=0)throw new Error("Invalid base64 input, bad content length.");for(G=Be.uint8array?new Uint8Array(0|Z):new Array(0|Z);K<u.length;)C=R.indexOf(u.charAt(K++))<<2|(L=R.indexOf(u.charAt(K++)))>>4,H=(15&L)<<4|(B=R.indexOf(u.charAt(K++)))>>2,w=(3&B)<<6|(k=R.indexOf(u.charAt(K++))),G[V++]=C,B!==64&&(G[V++]=H),k!==64&&(G[V++]=w);return G}},{"./support":30,"./utils":32}],2:[function(Fe,Me,de){"use strict";var I=Fe("./external"),Be=Fe("./stream/DataWorker"),R=Fe("./stream/Crc32Probe"),u=Fe("./stream/DataLengthProbe");function C(H,w,L,B,k){this.compressedSize=H,this.uncompressedSize=w,this.crc32=L,this.compression=B,this.compressedContent=k}C.prototype={getContentWorker:function(){var H=new Be(I.Promise.resolve(this.compressedContent)).pipe(this.compression.uncompressWorker()).pipe(new u("data_length")),w=this;return H.on("end",function(){if(this.streamInfo.data_length!==w.uncompressedSize)throw new Error("Bug : uncompressed data size mismatch")}),H},getCompressedWorker:function(){return new Be(I.Promise.resolve(this.compressedContent)).withStreamInfo("compressedSize",this.compressedSize).withStreamInfo("uncompressedSize",this.uncompressedSize).withStreamInfo("crc32",this.crc32).withStreamInfo("compression",this.compression)}},C.createWorkerFrom=function(H,w,L){return H.pipe(new R).pipe(new u("uncompressedSize")).pipe(w.compressWorker(L)).pipe(new u("compressedSize")).withStreamInfo("compression",w)},Me.exports=C},{"./external":6,"./stream/Crc32Probe":25,"./stream/DataLengthProbe":26,"./stream/DataWorker":27}],3:[function(Fe,Me,de){"use strict";var I=Fe("./stream/GenericWorker");de.STORE={magic:"\0\0",compressWorker:function(){return new I("STORE compression")},uncompressWorker:function(){return new I("STORE decompression")}},de.DEFLATE=Fe("./flate")},{"./flate":7,"./stream/GenericWorker":28}],4:[function(Fe,Me,de){"use strict";var I=Fe("./utils"),Be=function(){for(var R,u=[],C=0;C<256;C++){R=C;for(var H=0;H<8;H++)R=1&R?3988292384^R>>>1:R>>>1;u[C]=R}return u}();Me.exports=function(R,u){return R!==void 0&&R.length?I.getTypeOf(R)!=="string"?function(C,H,w,L){var B=Be,k=L+w;C^=-1;for(var K=L;K<k;K++)C=C>>>8^B[255&(C^H[K])];return-1^C}(0|u,R,R.length,0):function(C,H,w,L){var B=Be,k=L+w;C^=-1;for(var K=L;K<k;K++)C=C>>>8^B[255&(C^H.charCodeAt(K))];return-1^C}(0|u,R,R.length,0):0}},{"./utils":32}],5:[function(Fe,Me,de){"use strict";de.base64=!1,de.binary=!1,de.dir=!1,de.createFolders=!0,de.date=null,de.compression=null,de.compressionOptions=null,de.comment=null,de.unixPermissions=null,de.dosPermissions=null},{}],6:[function(Fe,Me,de){"use strict";var I=null;I=typeof Promise!="undefined"?Promise:Fe("lie"),Me.exports={Promise:I}},{lie:37}],7:[function(Fe,Me,de){"use strict";var I=typeof Uint8Array!="undefined"&&typeof Uint16Array!="undefined"&&typeof Uint32Array!="undefined",Be=Fe("pako"),R=Fe("./utils"),u=Fe("./stream/GenericWorker"),C=I?"uint8array":"array";function H(w,L){u.call(this,"FlateWorker/"+w),this._pako=null,this._pakoAction=w,this._pakoOptions=L,this.meta={}}de.magic="\b\0",R.inherits(H,u),H.prototype.processChunk=function(w){this.meta=w.meta,this._pako===null&&this._createPako(),this._pako.push(R.transformTo(C,w.data),!1)},H.prototype.flush=function(){u.prototype.flush.call(this),this._pako===null&&this._createPako(),this._pako.push([],!0)},H.prototype.cleanUp=function(){u.prototype.cleanUp.call(this),this._pako=null},H.prototype._createPako=function(){this._pako=new Be[this._pakoAction]({raw:!0,level:this._pakoOptions.level||-1});var w=this;this._pako.onData=function(L){w.push({data:L,meta:w.meta})}},de.compressWorker=function(w){return new H("Deflate",w)},de.uncompressWorker=function(){return new H("Inflate",{})}},{"./stream/GenericWorker":28,"./utils":32,pako:38}],8:[function(Fe,Me,de){"use strict";function I(B,k){var K,V="";for(K=0;K<k;K++)V+=String.fromCharCode(255&B),B>>>=8;return V}function Be(B,k,K,V,P,G){var Z,se,oe=B.file,De=B.compression,He=G!==C.utf8encode,Qe=R.transformTo("string",G(oe.name)),Ue=R.transformTo("string",C.utf8encode(oe.name)),qe=oe.comment,st=R.transformTo("string",G(qe)),Pe=R.transformTo("string",C.utf8encode(qe)),pe=Ue.length!==oe.name.length,M=Pe.length!==qe.length,ye="",Te="",me="",xe=oe.dir,z=oe.date,j={crc32:0,compressedSize:0,uncompressedSize:0};k&&!K||(j.crc32=B.crc32,j.compressedSize=B.compressedSize,j.uncompressedSize=B.uncompressedSize);var ee=0;k&&(ee|=8),He||!pe&&!M||(ee|=2048);var _e=0,ut=0;xe&&(_e|=16),P==="UNIX"?(ut=798,_e|=function(Vt,vr){var Yr=Vt;return Vt||(Yr=vr?16893:33204),(65535&Yr)<<16}(oe.unixPermissions,xe)):(ut=20,_e|=function(Vt){return 63&(Vt||0)}(oe.dosPermissions)),Z=z.getUTCHours(),Z<<=6,Z|=z.getUTCMinutes(),Z<<=5,Z|=z.getUTCSeconds()/2,se=z.getUTCFullYear()-1980,se<<=4,se|=z.getUTCMonth()+1,se<<=5,se|=z.getUTCDate(),pe&&(Te=I(1,1)+I(H(Qe),4)+Ue,ye+="up"+I(Te.length,2)+Te),M&&(me=I(1,1)+I(H(st),4)+Pe,ye+="uc"+I(me.length,2)+me);var Ft="";return Ft+=`
|
|
|
\0`,Ft+=I(ee,2),Ft+=De.magic,Ft+=I(Z,2),Ft+=I(se,2),Ft+=I(j.crc32,4),Ft+=I(j.compressedSize,4),Ft+=I(j.uncompressedSize,4),Ft+=I(Qe.length,2),Ft+=I(ye.length,2),{fileRecord:w.LOCAL_FILE_HEADER+Ft+Qe+ye,dirRecord:w.CENTRAL_FILE_HEADER+I(ut,2)+Ft+I(st.length,2)+"\0\0\0\0"+I(_e,4)+I(V,4)+Qe+ye+st}}var R=Fe("../utils"),u=Fe("../stream/GenericWorker"),C=Fe("../utf8"),H=Fe("../crc32"),w=Fe("../signature");function L(B,k,K,V){u.call(this,"ZipFileWorker"),this.bytesWritten=0,this.zipComment=k,this.zipPlatform=K,this.encodeFileName=V,this.streamFiles=B,this.accumulate=!1,this.contentBuffer=[],this.dirRecords=[],this.currentSourceOffset=0,this.entriesCount=0,this.currentFile=null,this._sources=[]}R.inherits(L,u),L.prototype.push=function(B){var k=B.meta.percent||0,K=this.entriesCount,V=this._sources.length;this.accumulate?this.contentBuffer.push(B):(this.bytesWritten+=B.data.length,u.prototype.push.call(this,{data:B.data,meta:{currentFile:this.currentFile,percent:K?(k+100*(K-V-1))/K:100}}))},L.prototype.openedSource=function(B){this.currentSourceOffset=this.bytesWritten,this.currentFile=B.file.name;var k=this.streamFiles&&!B.file.dir;if(k){var K=Be(B,k,!1,this.currentSourceOffset,this.zipPlatform,this.encodeFileName);this.push({data:K.fileRecord,meta:{percent:0}})}else this.accumulate=!0},L.prototype.closedSource=function(B){this.accumulate=!1;var k=this.streamFiles&&!B.file.dir,K=Be(B,k,!0,this.currentSourceOffset,this.zipPlatform,this.encodeFileName);if(this.dirRecords.push(K.dirRecord),k)this.push({data:function(V){return w.DATA_DESCRIPTOR+I(V.crc32,4)+I(V.compressedSize,4)+I(V.uncompressedSize,4)}(B),meta:{percent:100}});else for(this.push({data:K.fileRecord,meta:{percent:0}});this.contentBuffer.length;)this.push(this.contentBuffer.shift());this.currentFile=null},L.prototype.flush=function(){for(var B=this.bytesWritten,k=0;k<this.dirRecords.length;k++)this.push({data:this.dirRecords[k],meta:{percent:100}});var K=this.bytesWritten-B,V=function(P,G,Z,se,oe){var De=R.transformTo("string",oe(se));return w.CENTRAL_DIRECTORY_END+"\0\0\0\0"+I(P,2)+I(P,2)+I(G,4)+I(Z,4)+I(De.length,2)+De}(this.dirRecords.length,K,B,this.zipComment,this.encodeFileName);this.push({data:V,meta:{percent:100}})},L.prototype.prepareNextSource=function(){this.previous=this._sources.shift(),this.openedSource(this.previous.streamInfo),this.isPaused?this.previous.pause():this.previous.resume()},L.prototype.registerPrevious=function(B){this._sources.push(B);var k=this;return B.on("data",function(K){k.processChunk(K)}),B.on("end",function(){k.closedSource(k.previous.streamInfo),k._sources.length?k.prepareNextSource():k.end()}),B.on("error",function(K){k.error(K)}),this},L.prototype.resume=function(){return!!u.prototype.resume.call(this)&&(!this.previous&&this._sources.length?(this.prepareNextSource(),!0):this.previous||this._sources.length||this.generatedError?void 0:(this.end(),!0))},L.prototype.error=function(B){var k=this._sources;if(!u.prototype.error.call(this,B))return!1;for(var K=0;K<k.length;K++)try{k[K].error(B)}catch(V){}return!0},L.prototype.lock=function(){u.prototype.lock.call(this);for(var B=this._sources,k=0;k<B.length;k++)B[k].lock()},Me.exports=L},{"../crc32":4,"../signature":23,"../stream/GenericWorker":28,"../utf8":31,"../utils":32}],9:[function(Fe,Me,de){"use strict";var I=Fe("../compressions"),Be=Fe("./ZipFileWorker");de.generateWorker=function(R,u,C){var H=new Be(u.streamFiles,C,u.platform,u.encodeFileName),w=0;try{R.forEach(function(L,B){w++;var k=function(G,Z){var se=G||Z,oe=I[se];if(!oe)throw new Error(se+" is not a valid compression method !");return oe}(B.options.compression,u.compression),K=B.options.compressionOptions||u.compressionOptions||{},V=B.dir,P=B.date;B._compressWorker(k,K).withStreamInfo("file",{name:L,dir:V,date:P,comment:B.comment||"",unixPermissions:B.unixPermissions,dosPermissions:B.dosPermissions}).pipe(H)}),H.entriesCount=w}catch(L){H.error(L)}return H}},{"../compressions":3,"./ZipFileWorker":8}],10:[function(Fe,Me,de){"use strict";function I(){if(!(this instanceof I))return new I;if(arguments.length)throw new Error("The constructor with parameters has been removed in JSZip 3.0, please check the upgrade guide.");this.files=Object.create(null),this.comment=null,this.root="",this.clone=function(){var Be=new I;for(var R in this)typeof this[R]!="function"&&(Be[R]=this[R]);return Be}}(I.prototype=Fe("./object")).loadAsync=Fe("./load"),I.support=Fe("./support"),I.defaults=Fe("./defaults"),I.version="3.10.1",I.loadAsync=function(Be,R){return new I().loadAsync(Be,R)},I.external=Fe("./external"),Me.exports=I},{"./defaults":5,"./external":6,"./load":11,"./object":15,"./support":30}],11:[function(Fe,Me,de){"use strict";var I=Fe("./utils"),Be=Fe("./external"),R=Fe("./utf8"),u=Fe("./zipEntries"),C=Fe("./stream/Crc32Probe"),H=Fe("./nodejsUtils");function w(L){return new Be.Promise(function(B,k){var K=L.decompressed.getContentWorker().pipe(new C);K.on("error",function(V){k(V)}).on("end",function(){K.streamInfo.crc32!==L.decompressed.crc32?k(new Error("Corrupted zip : CRC32 mismatch")):B()}).resume()})}Me.exports=function(L,B){var k=this;return B=I.extend(B||{},{base64:!1,checkCRC32:!1,optimizedBinaryString:!1,createFolders:!1,decodeFileName:R.utf8decode}),H.isNode&&H.isStream(L)?Be.Promise.reject(new Error("JSZip can't accept a stream when loading a zip file.")):I.prepareContent("the loaded zip file",L,!0,B.optimizedBinaryString,B.base64).then(function(K){var V=new u(B);return V.load(K),V}).then(function(K){var V=[Be.Promise.resolve(K)],P=K.files;if(B.checkCRC32)for(var G=0;G<P.length;G++)V.push(w(P[G]));return Be.Promise.all(V)}).then(function(K){for(var V=K.shift(),P=V.files,G=0;G<P.length;G++){var Z=P[G],se=Z.fileNameStr,oe=I.resolve(Z.fileNameStr);k.file(oe,Z.decompressed,{binary:!0,optimizedBinaryString:!0,date:Z.date,dir:Z.dir,comment:Z.fileCommentStr.length?Z.fileCommentStr:null,unixPermissions:Z.unixPermissions,dosPermissions:Z.dosPermissions,createFolders:B.createFolders}),Z.dir||(k.file(oe).unsafeOriginalName=se)}return V.zipComment.length&&(k.comment=V.zipComment),k})}},{"./external":6,"./nodejsUtils":14,"./stream/Crc32Probe":25,"./utf8":31,"./utils":32,"./zipEntries":33}],12:[function(Fe,Me,de){"use strict";var I=Fe("../utils"),Be=Fe("../stream/GenericWorker");function R(u,C){Be.call(this,"Nodejs stream input adapter for "+u),this._upstreamEnded=!1,this._bindStream(C)}I.inherits(R,Be),R.prototype._bindStream=function(u){var C=this;(this._stream=u).pause(),u.on("data",function(H){C.push({data:H,meta:{percent:0}})}).on("error",function(H){C.isPaused?this.generatedError=H:C.error(H)}).on("end",function(){C.isPaused?C._upstreamEnded=!0:C.end()})},R.prototype.pause=function(){return!!Be.prototype.pause.call(this)&&(this._stream.pause(),!0)},R.prototype.resume=function(){return!!Be.prototype.resume.call(this)&&(this._upstreamEnded?this.end():this._stream.resume(),!0)},Me.exports=R},{"../stream/GenericWorker":28,"../utils":32}],13:[function(Fe,Me,de){"use strict";var I=Fe("readable-stream").Readable;function Be(R,u,C){I.call(this,u),this._helper=R;var H=this;R.on("data",function(w,L){H.push(w)||H._helper.pause(),C&&C(L)}).on("error",function(w){H.emit("error",w)}).on("end",function(){H.push(null)})}Fe("../utils").inherits(Be,I),Be.prototype._read=function(){this._helper.resume()},Me.exports=Be},{"../utils":32,"readable-stream":16}],14:[function(Fe,Me,de){"use strict";Me.exports={isNode:typeof Ie!="undefined",newBufferFrom:function(I,Be){if(Ie.from&&Ie.from!==Uint8Array.from)return Ie.from(I,Be);if(typeof I=="number")throw new Error('The "data" argument must not be a number');return new Ie(I,Be)},allocBuffer:function(I){if(Ie.alloc)return Ie.alloc(I);var Be=new Ie(I);return Be.fill(0),Be},isBuffer:function(I){return Ie.isBuffer(I)},isStream:function(I){return I&&typeof I.on=="function"&&typeof I.pause=="function"&&typeof I.resume=="function"}}},{}],15:[function(Fe,Me,de){"use strict";function I(oe,De,He){var Qe,Ue=R.getTypeOf(De),qe=R.extend(He||{},H);qe.date=qe.date||new Date,qe.compression!==null&&(qe.compression=qe.compression.toUpperCase()),typeof qe.unixPermissions=="string"&&(qe.unixPermissions=parseInt(qe.unixPermissions,8)),qe.unixPermissions&&16384&qe.unixPermissions&&(qe.dir=!0),qe.dosPermissions&&16&qe.dosPermissions&&(qe.dir=!0),qe.dir&&(oe=P(oe)),qe.createFolders&&(Qe=V(oe))&&G.call(this,Qe,!0);var st=Ue==="string"&&qe.binary===!1&&qe.base64===!1;He&&He.binary!==void 0||(qe.binary=!st),(De instanceof w&&De.uncompressedSize===0||qe.dir||!De||De.length===0)&&(qe.base64=!1,qe.binary=!0,De="",qe.compression="STORE",Ue="string");var Pe=null;Pe=De instanceof w||De instanceof u?De:k.isNode&&k.isStream(De)?new K(oe,De):R.prepareContent(oe,De,qe.binary,qe.optimizedBinaryString,qe.base64);var pe=new L(oe,Pe,qe);this.files[oe]=pe}var Be=Fe("./utf8"),R=Fe("./utils"),u=Fe("./stream/GenericWorker"),C=Fe("./stream/StreamHelper"),H=Fe("./defaults"),w=Fe("./compressedObject"),L=Fe("./zipObject"),B=Fe("./generate"),k=Fe("./nodejsUtils"),K=Fe("./nodejs/NodejsStreamInputAdapter"),V=function(oe){oe.slice(-1)==="/"&&(oe=oe.substring(0,oe.length-1));var De=oe.lastIndexOf("/");return 0<De?oe.substring(0,De):""},P=function(oe){return oe.slice(-1)!=="/"&&(oe+="/"),oe},G=function(oe,De){return De=De!==void 0?De:H.createFolders,oe=P(oe),this.files[oe]||I.call(this,oe,null,{dir:!0,createFolders:De}),this.files[oe]};function Z(oe){return Object.prototype.toString.call(oe)==="[object RegExp]"}var se={load:function(){throw new Error("This method has been removed in JSZip 3.0, please check the upgrade guide.")},forEach:function(oe){var De,He,Qe;for(De in this.files)Qe=this.files[De],(He=De.slice(this.root.length,De.length))&&De.slice(0,this.root.length)===this.root&&oe(He,Qe)},filter:function(oe){var De=[];return this.forEach(function(He,Qe){oe(He,Qe)&&De.push(Qe)}),De},file:function(oe,De,He){if(arguments.length!==1)return oe=this.root+oe,I.call(this,oe,De,He),this;if(Z(oe)){var Qe=oe;return this.filter(function(qe,st){return!st.dir&&Qe.test(qe)})}var Ue=this.files[this.root+oe];return Ue&&!Ue.dir?Ue:null},folder:function(oe){if(!oe)return this;if(Z(oe))return this.filter(function(Ue,qe){return qe.dir&&oe.test(Ue)});var De=this.root+oe,He=G.call(this,De),Qe=this.clone();return Qe.root=He.name,Qe},remove:function(oe){oe=this.root+oe;var De=this.files[oe];if(De||(oe.slice(-1)!=="/"&&(oe+="/"),De=this.files[oe]),De&&!De.dir)delete this.files[oe];else for(var He=this.filter(function(Ue,qe){return qe.name.slice(0,oe.length)===oe}),Qe=0;Qe<He.length;Qe++)delete this.files[He[Qe].name];return this},generate:function(){throw new Error("This method has been removed in JSZip 3.0, please check the upgrade guide.")},generateInternalStream:function(oe){var De,He={};try{if((He=R.extend(oe||{},{streamFiles:!1,compression:"STORE",compressionOptions:null,type:"",platform:"DOS",comment:null,mimeType:"application/zip",encodeFileName:Be.utf8encode})).type=He.type.toLowerCase(),He.compression=He.compression.toUpperCase(),He.type==="binarystring"&&(He.type="string"),!He.type)throw new Error("No output type specified.");R.checkSupport(He.type),He.platform!=="darwin"&&He.platform!=="freebsd"&&He.platform!=="linux"&&He.platform!=="sunos"||(He.platform="UNIX"),He.platform==="win32"&&(He.platform="DOS");var Qe=He.comment||this.comment||"";De=B.generateWorker(this,He,Qe)}catch(Ue){(De=new u("error")).error(Ue)}return new C(De,He.type||"string",He.mimeType)},generateAsync:function(oe,De){return this.generateInternalStream(oe).accumulate(De)},generateNodeStream:function(oe,De){return(oe=oe||{}).type||(oe.type="nodebuffer"),this.generateInternalStream(oe).toNodejsStream(De)}};Me.exports=se},{"./compressedObject":2,"./defaults":5,"./generate":9,"./nodejs/NodejsStreamInputAdapter":12,"./nodejsUtils":14,"./stream/GenericWorker":28,"./stream/StreamHelper":29,"./utf8":31,"./utils":32,"./zipObject":35}],16:[function(Fe,Me,de){"use strict";Me.exports=Fe("stream")},{stream:void 0}],17:[function(Fe,Me,de){"use strict";var I=Fe("./DataReader");function Be(R){I.call(this,R);for(var u=0;u<this.data.length;u++)R[u]=255&R[u]}Fe("../utils").inherits(Be,I),Be.prototype.byteAt=function(R){return this.data[this.zero+R]},Be.prototype.lastIndexOfSignature=function(R){for(var u=R.charCodeAt(0),C=R.charCodeAt(1),H=R.charCodeAt(2),w=R.charCodeAt(3),L=this.length-4;0<=L;--L)if(this.data[L]===u&&this.data[L+1]===C&&this.data[L+2]===H&&this.data[L+3]===w)return L-this.zero;return-1},Be.prototype.readAndCheckSignature=function(R){var u=R.charCodeAt(0),C=R.charCodeAt(1),H=R.charCodeAt(2),w=R.charCodeAt(3),L=this.readData(4);return u===L[0]&&C===L[1]&&H===L[2]&&w===L[3]},Be.prototype.readData=function(R){if(this.checkOffset(R),R===0)return[];var u=this.data.slice(this.zero+this.index,this.zero+this.index+R);return this.index+=R,u},Me.exports=Be},{"../utils":32,"./DataReader":18}],18:[function(Fe,Me,de){"use strict";var I=Fe("../utils");function Be(R){this.data=R,this.length=R.length,this.index=0,this.zero=0}Be.prototype={checkOffset:function(R){this.checkIndex(this.index+R)},checkIndex:function(R){if(this.length<this.zero+R||R<0)throw new Error("End of data reached (data length = "+this.length+", asked index = "+R+"). Corrupted zip ?")},setIndex:function(R){this.checkIndex(R),this.index=R},skip:function(R){this.setIndex(this.index+R)},byteAt:function(){},readInt:function(R){var u,C=0;for(this.checkOffset(R),u=this.index+R-1;u>=this.index;u--)C=(C<<8)+this.byteAt(u);return this.index+=R,C},readString:function(R){return I.transformTo("string",this.readData(R))},readData:function(){},lastIndexOfSignature:function(){},readAndCheckSignature:function(){},readDate:function(){var R=this.readInt(4);return new Date(Date.UTC(1980+(R>>25&127),(R>>21&15)-1,R>>16&31,R>>11&31,R>>5&63,(31&R)<<1))}},Me.exports=Be},{"../utils":32}],19:[function(Fe,Me,de){"use strict";var I=Fe("./Uint8ArrayReader");function Be(R){I.call(this,R)}Fe("../utils").inherits(Be,I),Be.prototype.readData=function(R){this.checkOffset(R);var u=this.data.slice(this.zero+this.index,this.zero+this.index+R);return this.index+=R,u},Me.exports=Be},{"../utils":32,"./Uint8ArrayReader":21}],20:[function(Fe,Me,de){"use strict";var I=Fe("./DataReader");function Be(R){I.call(this,R)}Fe("../utils").inherits(Be,I),Be.prototype.byteAt=function(R){return this.data.charCodeAt(this.zero+R)},Be.prototype.lastIndexOfSignature=function(R){return this.data.lastIndexOf(R)-this.zero},Be.prototype.readAndCheckSignature=function(R){return R===this.readData(4)},Be.prototype.readData=function(R){this.checkOffset(R);var u=this.data.slice(this.zero+this.index,this.zero+this.index+R);return this.index+=R,u},Me.exports=Be},{"../utils":32,"./DataReader":18}],21:[function(Fe,Me,de){"use strict";var I=Fe("./ArrayReader");function Be(R){I.call(this,R)}Fe("../utils").inherits(Be,I),Be.prototype.readData=function(R){if(this.checkOffset(R),R===0)return new Uint8Array(0);var u=this.data.subarray(this.zero+this.index,this.zero+this.index+R);return this.index+=R,u},Me.exports=Be},{"../utils":32,"./ArrayReader":17}],22:[function(Fe,Me,de){"use strict";var I=Fe("../utils"),Be=Fe("../support"),R=Fe("./ArrayReader"),u=Fe("./StringReader"),C=Fe("./NodeBufferReader"),H=Fe("./Uint8ArrayReader");Me.exports=function(w){var L=I.getTypeOf(w);return I.checkSupport(L),L!=="string"||Be.uint8array?L==="nodebuffer"?new C(w):Be.uint8array?new H(I.transformTo("uint8array",w)):new R(I.transformTo("array",w)):new u(w)}},{"../support":30,"../utils":32,"./ArrayReader":17,"./NodeBufferReader":19,"./StringReader":20,"./Uint8ArrayReader":21}],23:[function(Fe,Me,de){"use strict";de.LOCAL_FILE_HEADER="PK",de.CENTRAL_FILE_HEADER="PK",de.CENTRAL_DIRECTORY_END="PK",de.ZIP64_CENTRAL_DIRECTORY_LOCATOR="PK\x07",de.ZIP64_CENTRAL_DIRECTORY_END="PK",de.DATA_DESCRIPTOR="PK\x07\b"},{}],24:[function(Fe,Me,de){"use strict";var I=Fe("./GenericWorker"),Be=Fe("../utils");function R(u){I.call(this,"ConvertWorker to "+u),this.destType=u}Be.inherits(R,I),R.prototype.processChunk=function(u){this.push({data:Be.transformTo(this.destType,u.data),meta:u.meta})},Me.exports=R},{"../utils":32,"./GenericWorker":28}],25:[function(Fe,Me,de){"use strict";var I=Fe("./GenericWorker"),Be=Fe("../crc32");function R(){I.call(this,"Crc32Probe"),this.withStreamInfo("crc32",0)}Fe("../utils").inherits(R,I),R.prototype.processChunk=function(u){this.streamInfo.crc32=Be(u.data,this.streamInfo.crc32||0),this.push(u)},Me.exports=R},{"../crc32":4,"../utils":32,"./GenericWorker":28}],26:[function(Fe,Me,de){"use strict";var I=Fe("../utils"),Be=Fe("./GenericWorker");function R(u){Be.call(this,"DataLengthProbe for "+u),this.propName=u,this.withStreamInfo(u,0)}I.inherits(R,Be),R.prototype.processChunk=function(u){if(u){var C=this.streamInfo[this.propName]||0;this.streamInfo[this.propName]=C+u.data.length}Be.prototype.processChunk.call(this,u)},Me.exports=R},{"../utils":32,"./GenericWorker":28}],27:[function(Fe,Me,de){"use strict";var I=Fe("../utils"),Be=Fe("./GenericWorker");function R(u){Be.call(this,"DataWorker");var C=this;this.dataIsReady=!1,this.index=0,this.max=0,this.data=null,this.type="",this._tickScheduled=!1,u.then(function(H){C.dataIsReady=!0,C.data=H,C.max=H&&H.length||0,C.type=I.getTypeOf(H),C.isPaused||C._tickAndRepeat()},function(H){C.error(H)})}I.inherits(R,Be),R.prototype.cleanUp=function(){Be.prototype.cleanUp.call(this),this.data=null},R.prototype.resume=function(){return!!Be.prototype.resume.call(this)&&(!this._tickScheduled&&this.dataIsReady&&(this._tickScheduled=!0,I.delay(this._tickAndRepeat,[],this)),!0)},R.prototype._tickAndRepeat=function(){this._tickScheduled=!1,this.isPaused||this.isFinished||(this._tick(),this.isFinished||(I.delay(this._tickAndRepeat,[],this),this._tickScheduled=!0))},R.prototype._tick=function(){if(this.isPaused||this.isFinished)return!1;var u=null,C=Math.min(this.max,this.index+16384);if(this.index>=this.max)return this.end();switch(this.type){case"string":u=this.data.substring(this.index,C);break;case"uint8array":u=this.data.subarray(this.index,C);break;case"array":case"nodebuffer":u=this.data.slice(this.index,C)}return this.index=C,this.push({data:u,meta:{percent:this.max?this.index/this.max*100:0}})},Me.exports=R},{"../utils":32,"./GenericWorker":28}],28:[function(Fe,Me,de){"use strict";function I(Be){this.name=Be||"default",this.streamInfo={},this.generatedError=null,this.extraStreamInfo={},this.isPaused=!0,this.isFinished=!1,this.isLocked=!1,this._listeners={data:[],end:[],error:[]},this.previous=null}I.prototype={push:function(Be){this.emit("data",Be)},end:function(){if(this.isFinished)return!1;this.flush();try{this.emit("end"),this.cleanUp(),this.isFinished=!0}catch(Be){this.emit("error",Be)}return!0},error:function(Be){return!this.isFinished&&(this.isPaused?this.generatedError=Be:(this.isFinished=!0,this.emit("error",Be),this.previous&&this.previous.error(Be),this.cleanUp()),!0)},on:function(Be,R){return this._listeners[Be].push(R),this},cleanUp:function(){this.streamInfo=this.generatedError=this.extraStreamInfo=null,this._listeners=[]},emit:function(Be,R){if(this._listeners[Be])for(var u=0;u<this._listeners[Be].length;u++)this._listeners[Be][u].call(this,R)},pipe:function(Be){return Be.registerPrevious(this)},registerPrevious:function(Be){if(this.isLocked)throw new Error("The stream '"+this+"' has already been used.");this.streamInfo=Be.streamInfo,this.mergeStreamInfo(),this.previous=Be;var R=this;return Be.on("data",function(u){R.processChunk(u)}),Be.on("end",function(){R.end()}),Be.on("error",function(u){R.error(u)}),this},pause:function(){return!this.isPaused&&!this.isFinished&&(this.isPaused=!0,this.previous&&this.previous.pause(),!0)},resume:function(){if(!this.isPaused||this.isFinished)return!1;var Be=this.isPaused=!1;return this.generatedError&&(this.error(this.generatedError),Be=!0),this.previous&&this.previous.resume(),!Be},flush:function(){},processChunk:function(Be){this.push(Be)},withStreamInfo:function(Be,R){return this.extraStreamInfo[Be]=R,this.mergeStreamInfo(),this},mergeStreamInfo:function(){for(var Be in this.extraStreamInfo)Object.prototype.hasOwnProperty.call(this.extraStreamInfo,Be)&&(this.streamInfo[Be]=this.extraStreamInfo[Be])},lock:function(){if(this.isLocked)throw new Error("The stream '"+this+"' has already been used.");this.isLocked=!0,this.previous&&this.previous.lock()},toString:function(){var Be="Worker "+this.name;return this.previous?this.previous+" -> "+Be:Be}},Me.exports=I},{}],29:[function(Fe,Me,de){"use strict";var I=Fe("../utils"),Be=Fe("./ConvertWorker"),R=Fe("./GenericWorker"),u=Fe("../base64"),C=Fe("../support"),H=Fe("../external"),w=null;if(C.nodestream)try{w=Fe("../nodejs/NodejsStreamOutputAdapter")}catch(k){}function L(k,K){return new H.Promise(function(V,P){var G=[],Z=k._internalType,se=k._outputType,oe=k._mimeType;k.on("data",function(De,He){G.push(De),K&&K(He)}).on("error",function(De){G=[],P(De)}).on("end",function(){try{var De=function(He,Qe,Ue){switch(He){case"blob":return I.newBlob(I.transformTo("arraybuffer",Qe),Ue);case"base64":return u.encode(Qe);default:return I.transformTo(He,Qe)}}(se,function(He,Qe){var Ue,qe=0,st=null,Pe=0;for(Ue=0;Ue<Qe.length;Ue++)Pe+=Qe[Ue].length;switch(He){case"string":return Qe.join("");case"array":return Array.prototype.concat.apply([],Qe);case"uint8array":for(st=new Uint8Array(Pe),Ue=0;Ue<Qe.length;Ue++)st.set(Qe[Ue],qe),qe+=Qe[Ue].length;return st;case"nodebuffer":return Ie.concat(Qe);default:throw new Error("concat : unsupported type '"+He+"'")}}(Z,G),oe);V(De)}catch(He){P(He)}G=[]}).resume()})}function B(k,K,V){var P=K;switch(K){case"blob":case"arraybuffer":P="uint8array";break;case"base64":P="string"}try{this._internalType=P,this._outputType=K,this._mimeType=V,I.checkSupport(P),this._worker=k.pipe(new Be(P)),k.lock()}catch(G){this._worker=new R("error"),this._worker.error(G)}}B.prototype={accumulate:function(k){return L(this,k)},on:function(k,K){var V=this;return k==="data"?this._worker.on(k,function(P){K.call(V,P.data,P.meta)}):this._worker.on(k,function(){I.delay(K,arguments,V)}),this},resume:function(){return I.delay(this._worker.resume,[],this._worker),this},pause:function(){return this._worker.pause(),this},toNodejsStream:function(k){if(I.checkSupport("nodestream"),this._outputType!=="nodebuffer")throw new Error(this._outputType+" is not supported by this method");return new w(this,{objectMode:this._outputType!=="nodebuffer"},k)}},Me.exports=B},{"../base64":1,"../external":6,"../nodejs/NodejsStreamOutputAdapter":13,"../support":30,"../utils":32,"./ConvertWorker":24,"./GenericWorker":28}],30:[function(Fe,Me,de){"use strict";if(de.base64=!0,de.array=!0,de.string=!0,de.arraybuffer=typeof ArrayBuffer!="undefined"&&typeof Uint8Array!="undefined",de.nodebuffer=typeof Ie!="undefined",de.uint8array=typeof Uint8Array!="undefined",typeof ArrayBuffer=="undefined")de.blob=!1;else{var I=new ArrayBuffer(0);try{de.blob=new Blob([I],{type:"application/zip"}).size===0}catch(R){try{var Be=new(self.BlobBuilder||self.WebKitBlobBuilder||self.MozBlobBuilder||self.MSBlobBuilder);Be.append(I),de.blob=Be.getBlob("application/zip").size===0}catch(u){de.blob=!1}}}try{de.nodestream=!!Fe("readable-stream").Readable}catch(R){de.nodestream=!1}},{"readable-stream":16}],31:[function(Fe,Me,de){"use strict";for(var I=Fe("./utils"),Be=Fe("./support"),R=Fe("./nodejsUtils"),u=Fe("./stream/GenericWorker"),C=new Array(256),H=0;H<256;H++)C[H]=252<=H?6:248<=H?5:240<=H?4:224<=H?3:192<=H?2:1;C[254]=C[254]=1;function w(){u.call(this,"utf-8 decode"),this.leftOver=null}function L(){u.call(this,"utf-8 encode")}de.utf8encode=function(B){return Be.nodebuffer?R.newBufferFrom(B,"utf-8"):function(k){var K,V,P,G,Z,se=k.length,oe=0;for(G=0;G<se;G++)(64512&(V=k.charCodeAt(G)))==55296&&G+1<se&&(64512&(P=k.charCodeAt(G+1)))==56320&&(V=65536+(V-55296<<10)+(P-56320),G++),oe+=V<128?1:V<2048?2:V<65536?3:4;for(K=Be.uint8array?new Uint8Array(oe):new Array(oe),G=Z=0;Z<oe;G++)(64512&(V=k.charCodeAt(G)))==55296&&G+1<se&&(64512&(P=k.charCodeAt(G+1)))==56320&&(V=65536+(V-55296<<10)+(P-56320),G++),V<128?K[Z++]=V:(V<2048?K[Z++]=192|V>>>6:(V<65536?K[Z++]=224|V>>>12:(K[Z++]=240|V>>>18,K[Z++]=128|V>>>12&63),K[Z++]=128|V>>>6&63),K[Z++]=128|63&V);return K}(B)},de.utf8decode=function(B){return Be.nodebuffer?I.transformTo("nodebuffer",B).toString("utf-8"):function(k){var K,V,P,G,Z=k.length,se=new Array(2*Z);for(K=V=0;K<Z;)if((P=k[K++])<128)se[V++]=P;else if(4<(G=C[P]))se[V++]=65533,K+=G-1;else{for(P&=G===2?31:G===3?15:7;1<G&&K<Z;)P=P<<6|63&k[K++],G--;1<G?se[V++]=65533:P<65536?se[V++]=P:(P-=65536,se[V++]=55296|P>>10&1023,se[V++]=56320|1023&P)}return se.length!==V&&(se.subarray?se=se.subarray(0,V):se.length=V),I.applyFromCharCode(se)}(B=I.transformTo(Be.uint8array?"uint8array":"array",B))},I.inherits(w,u),w.prototype.processChunk=function(B){var k=I.transformTo(Be.uint8array?"uint8array":"array",B.data);if(this.leftOver&&this.leftOver.length){if(Be.uint8array){var K=k;(k=new Uint8Array(K.length+this.leftOver.length)).set(this.leftOver,0),k.set(K,this.leftOver.length)}else k=this.leftOver.concat(k);this.leftOver=null}var V=function(G,Z){var se;for((Z=Z||G.length)>G.length&&(Z=G.length),se=Z-1;0<=se&&(192&G[se])==128;)se--;return se<0||se===0?Z:se+C[G[se]]>Z?se:Z}(k),P=k;V!==k.length&&(Be.uint8array?(P=k.subarray(0,V),this.leftOver=k.subarray(V,k.length)):(P=k.slice(0,V),this.leftOver=k.slice(V,k.length))),this.push({data:de.utf8decode(P),meta:B.meta})},w.prototype.flush=function(){this.leftOver&&this.leftOver.length&&(this.push({data:de.utf8decode(this.leftOver),meta:{}}),this.leftOver=null)},de.Utf8DecodeWorker=w,I.inherits(L,u),L.prototype.processChunk=function(B){this.push({data:de.utf8encode(B.data),meta:B.meta})},de.Utf8EncodeWorker=L},{"./nodejsUtils":14,"./stream/GenericWorker":28,"./support":30,"./utils":32}],32:[function(Fe,Me,de){"use strict";var I=Fe("./support"),Be=Fe("./base64"),R=Fe("./nodejsUtils"),u=Fe("./external");function C(K){return K}function H(K,V){for(var P=0;P<K.length;++P)V[P]=255&K.charCodeAt(P);return V}Fe("setimmediate"),de.newBlob=function(K,V){de.checkSupport("blob");try{return new Blob([K],{type:V})}catch(G){try{var P=new(self.BlobBuilder||self.WebKitBlobBuilder||self.MozBlobBuilder||self.MSBlobBuilder);return P.append(K),P.getBlob(V)}catch(Z){throw new Error("Bug : can't construct the Blob.")}}};var w={stringifyByChunk:function(K,V,P){var G=[],Z=0,se=K.length;if(se<=P)return String.fromCharCode.apply(null,K);for(;Z<se;)V==="array"||V==="nodebuffer"?G.push(String.fromCharCode.apply(null,K.slice(Z,Math.min(Z+P,se)))):G.push(String.fromCharCode.apply(null,K.subarray(Z,Math.min(Z+P,se)))),Z+=P;return G.join("")},stringifyByChar:function(K){for(var V="",P=0;P<K.length;P++)V+=String.fromCharCode(K[P]);return V},applyCanBeUsed:{uint8array:function(){try{return I.uint8array&&String.fromCharCode.apply(null,new Uint8Array(1)).length===1}catch(K){return!1}}(),nodebuffer:function(){try{return I.nodebuffer&&String.fromCharCode.apply(null,R.allocBuffer(1)).length===1}catch(K){return!1}}()}};function L(K){var V=65536,P=de.getTypeOf(K),G=!0;if(P==="uint8array"?G=w.applyCanBeUsed.uint8array:P==="nodebuffer"&&(G=w.applyCanBeUsed.nodebuffer),G)for(;1<V;)try{return w.stringifyByChunk(K,P,V)}catch(Z){V=Math.floor(V/2)}return w.stringifyByChar(K)}function B(K,V){for(var P=0;P<K.length;P++)V[P]=K[P];return V}de.applyFromCharCode=L;var k={};k.string={string:C,array:function(K){return H(K,new Array(K.length))},arraybuffer:function(K){return k.string.uint8array(K).buffer},uint8array:function(K){return H(K,new Uint8Array(K.length))},nodebuffer:function(K){return H(K,R.allocBuffer(K.length))}},k.array={string:L,array:C,arraybuffer:function(K){return new Uint8Array(K).buffer},uint8array:function(K){return new Uint8Array(K)},nodebuffer:function(K){return R.newBufferFrom(K)}},k.arraybuffer={string:function(K){return L(new Uint8Array(K))},array:function(K){return B(new Uint8Array(K),new Array(K.byteLength))},arraybuffer:C,uint8array:function(K){return new Uint8Array(K)},nodebuffer:function(K){return R.newBufferFrom(new Uint8Array(K))}},k.uint8array={string:L,array:function(K){return B(K,new Array(K.length))},arraybuffer:function(K){return K.buffer},uint8array:C,nodebuffer:function(K){return R.newBufferFrom(K)}},k.nodebuffer={string:L,array:function(K){return B(K,new Array(K.length))},arraybuffer:function(K){return k.nodebuffer.uint8array(K).buffer},uint8array:function(K){return B(K,new Uint8Array(K.length))},nodebuffer:C},de.transformTo=function(K,V){if(V=V||"",!K)return V;de.checkSupport(K);var P=de.getTypeOf(V);return k[P][K](V)},de.resolve=function(K){for(var V=K.split("/"),P=[],G=0;G<V.length;G++){var Z=V[G];Z==="."||Z===""&&G!==0&&G!==V.length-1||(Z===".."?P.pop():P.push(Z))}return P.join("/")},de.getTypeOf=function(K){return typeof K=="string"?"string":Object.prototype.toString.call(K)==="[object Array]"?"array":I.nodebuffer&&R.isBuffer(K)?"nodebuffer":I.uint8array&&K instanceof Uint8Array?"uint8array":I.arraybuffer&&K instanceof ArrayBuffer?"arraybuffer":void 0},de.checkSupport=function(K){if(!I[K.toLowerCase()])throw new Error(K+" is not supported by this platform")},de.MAX_VALUE_16BITS=65535,de.MAX_VALUE_32BITS=-1,de.pretty=function(K){var V,P,G="";for(P=0;P<(K||"").length;P++)G+="\\x"+((V=K.charCodeAt(P))<16?"0":"")+V.toString(16).toUpperCase();return G},de.delay=function(K,V,P){setImmediate(function(){K.apply(P||null,V||[])})},de.inherits=function(K,V){function P(){}P.prototype=V.prototype,K.prototype=new P},de.extend=function(){var K,V,P={};for(K=0;K<arguments.length;K++)for(V in arguments[K])Object.prototype.hasOwnProperty.call(arguments[K],V)&&P[V]===void 0&&(P[V]=arguments[K][V]);return P},de.prepareContent=function(K,V,P,G,Z){return u.Promise.resolve(V).then(function(se){return I.blob&&(se instanceof Blob||["[object File]","[object Blob]"].indexOf(Object.prototype.toString.call(se))!==-1)&&typeof FileReader!="undefined"?new u.Promise(function(oe,De){var He=new FileReader;He.onload=function(Qe){oe(Qe.target.result)},He.onerror=function(Qe){De(Qe.target.error)},He.readAsArrayBuffer(se)}):se}).then(function(se){var oe=de.getTypeOf(se);return oe?(oe==="arraybuffer"?se=de.transformTo("uint8array",se):oe==="string"&&(Z?se=Be.decode(se):P&&G!==!0&&(se=function(De){return H(De,I.uint8array?new Uint8Array(De.length):new Array(De.length))}(se))),se):u.Promise.reject(new Error("Can't read the data of '"+K+"'. Is it in a supported JavaScript type (String, Blob, ArrayBuffer, etc) ?"))})}},{"./base64":1,"./external":6,"./nodejsUtils":14,"./support":30,setimmediate:54}],33:[function(Fe,Me,de){"use strict";var I=Fe("./reader/readerFor"),Be=Fe("./utils"),R=Fe("./signature"),u=Fe("./zipEntry"),C=Fe("./support");function H(w){this.files=[],this.loadOptions=w}H.prototype={checkSignature:function(w){if(!this.reader.readAndCheckSignature(w)){this.reader.index-=4;var L=this.reader.readString(4);throw new Error("Corrupted zip or bug: unexpected signature ("+Be.pretty(L)+", expected "+Be.pretty(w)+")")}},isSignature:function(w,L){var B=this.reader.index;this.reader.setIndex(w);var k=this.reader.readString(4)===L;return this.reader.setIndex(B),k},readBlockEndOfCentral:function(){this.diskNumber=this.reader.readInt(2),this.diskWithCentralDirStart=this.reader.readInt(2),this.centralDirRecordsOnThisDisk=this.reader.readInt(2),this.centralDirRecords=this.reader.readInt(2),this.centralDirSize=this.reader.readInt(4),this.centralDirOffset=this.reader.readInt(4),this.zipCommentLength=this.reader.readInt(2);var w=this.reader.readData(this.zipCommentLength),L=C.uint8array?"uint8array":"array",B=Be.transformTo(L,w);this.zipComment=this.loadOptions.decodeFileName(B)},readBlockZip64EndOfCentral:function(){this.zip64EndOfCentralSize=this.reader.readInt(8),this.reader.skip(4),this.diskNumber=this.reader.readInt(4),this.diskWithCentralDirStart=this.reader.readInt(4),this.centralDirRecordsOnThisDisk=this.reader.readInt(8),this.centralDirRecords=this.reader.readInt(8),this.centralDirSize=this.reader.readInt(8),this.centralDirOffset=this.reader.readInt(8),this.zip64ExtensibleData={};for(var w,L,B,k=this.zip64EndOfCentralSize-44;0<k;)w=this.reader.readInt(2),L=this.reader.readInt(4),B=this.reader.readData(L),this.zip64ExtensibleData[w]={id:w,length:L,value:B}},readBlockZip64EndOfCentralLocator:function(){if(this.diskWithZip64CentralDirStart=this.reader.readInt(4),this.relativeOffsetEndOfZip64CentralDir=this.reader.readInt(8),this.disksCount=this.reader.readInt(4),1<this.disksCount)throw new Error("Multi-volumes zip are not supported")},readLocalFiles:function(){var w,L;for(w=0;w<this.files.length;w++)L=this.files[w],this.reader.setIndex(L.localHeaderOffset),this.checkSignature(R.LOCAL_FILE_HEADER),L.readLocalPart(this.reader),L.handleUTF8(),L.processAttributes()},readCentralDir:function(){var w;for(this.reader.setIndex(this.centralDirOffset);this.reader.readAndCheckSignature(R.CENTRAL_FILE_HEADER);)(w=new u({zip64:this.zip64},this.loadOptions)).readCentralPart(this.reader),this.files.push(w);if(this.centralDirRecords!==this.files.length&&this.centralDirRecords!==0&&this.files.length===0)throw new Error("Corrupted zip or bug: expected "+this.centralDirRecords+" records in central dir, got "+this.files.length)},readEndOfCentral:function(){var w=this.reader.lastIndexOfSignature(R.CENTRAL_DIRECTORY_END);if(w<0)throw this.isSignature(0,R.LOCAL_FILE_HEADER)?new Error("Corrupted zip: can't find end of central directory"):new Error("Can't find end of central directory : is this a zip file ? If it is, see https://stuk.github.io/jszip/documentation/howto/read_zip.html");this.reader.setIndex(w);var L=w;if(this.checkSignature(R.CENTRAL_DIRECTORY_END),this.readBlockEndOfCentral(),this.diskNumber===Be.MAX_VALUE_16BITS||this.diskWithCentralDirStart===Be.MAX_VALUE_16BITS||this.centralDirRecordsOnThisDisk===Be.MAX_VALUE_16BITS||this.centralDirRecords===Be.MAX_VALUE_16BITS||this.centralDirSize===Be.MAX_VALUE_32BITS||this.centralDirOffset===Be.MAX_VALUE_32BITS){if(this.zip64=!0,(w=this.reader.lastIndexOfSignature(R.ZIP64_CENTRAL_DIRECTORY_LOCATOR))<0)throw new Error("Corrupted zip: can't find the ZIP64 end of central directory locator");if(this.reader.setIndex(w),this.checkSignature(R.ZIP64_CENTRAL_DIRECTORY_LOCATOR),this.readBlockZip64EndOfCentralLocator(),!this.isSignature(this.relativeOffsetEndOfZip64CentralDir,R.ZIP64_CENTRAL_DIRECTORY_END)&&(this.relativeOffsetEndOfZip64CentralDir=this.reader.lastIndexOfSignature(R.ZIP64_CENTRAL_DIRECTORY_END),this.relativeOffsetEndOfZip64CentralDir<0))throw new Error("Corrupted zip: can't find the ZIP64 end of central directory");this.reader.setIndex(this.relativeOffsetEndOfZip64CentralDir),this.checkSignature(R.ZIP64_CENTRAL_DIRECTORY_END),this.readBlockZip64EndOfCentral()}var B=this.centralDirOffset+this.centralDirSize;this.zip64&&(B+=20,B+=12+this.zip64EndOfCentralSize);var k=L-B;if(0<k)this.isSignature(L,R.CENTRAL_FILE_HEADER)||(this.reader.zero=k);else if(k<0)throw new Error("Corrupted zip: missing "+Math.abs(k)+" bytes.")},prepareReader:function(w){this.reader=I(w)},load:function(w){this.prepareReader(w),this.readEndOfCentral(),this.readCentralDir(),this.readLocalFiles()}},Me.exports=H},{"./reader/readerFor":22,"./signature":23,"./support":30,"./utils":32,"./zipEntry":34}],34:[function(Fe,Me,de){"use strict";var I=Fe("./reader/readerFor"),Be=Fe("./utils"),R=Fe("./compressedObject"),u=Fe("./crc32"),C=Fe("./utf8"),H=Fe("./compressions"),w=Fe("./support");function L(B,k){this.options=B,this.loadOptions=k}L.prototype={isEncrypted:function(){return(1&this.bitFlag)==1},useUTF8:function(){return(2048&this.bitFlag)==2048},readLocalPart:function(B){var k,K;if(B.skip(22),this.fileNameLength=B.readInt(2),K=B.readInt(2),this.fileName=B.readData(this.fileNameLength),B.skip(K),this.compressedSize===-1||this.uncompressedSize===-1)throw new Error("Bug or corrupted zip : didn't get enough information from the central directory (compressedSize === -1 || uncompressedSize === -1)");if((k=function(V){for(var P in H)if(Object.prototype.hasOwnProperty.call(H,P)&&H[P].magic===V)return H[P];return null}(this.compressionMethod))===null)throw new Error("Corrupted zip : compression "+Be.pretty(this.compressionMethod)+" unknown (inner file : "+Be.transformTo("string",this.fileName)+")");this.decompressed=new R(this.compressedSize,this.uncompressedSize,this.crc32,k,B.readData(this.compressedSize))},readCentralPart:function(B){this.versionMadeBy=B.readInt(2),B.skip(2),this.bitFlag=B.readInt(2),this.compressionMethod=B.readString(2),this.date=B.readDate(),this.crc32=B.readInt(4),this.compressedSize=B.readInt(4),this.uncompressedSize=B.readInt(4);var k=B.readInt(2);if(this.extraFieldsLength=B.readInt(2),this.fileCommentLength=B.readInt(2),this.diskNumberStart=B.readInt(2),this.internalFileAttributes=B.readInt(2),this.externalFileAttributes=B.readInt(4),this.localHeaderOffset=B.readInt(4),this.isEncrypted())throw new Error("Encrypted zip are not supported");B.skip(k),this.readExtraFields(B),this.parseZIP64ExtraField(B),this.fileComment=B.readData(this.fileCommentLength)},processAttributes:function(){this.unixPermissions=null,this.dosPermissions=null;var B=this.versionMadeBy>>8;this.dir=!!(16&this.externalFileAttributes),B==0&&(this.dosPermissions=63&this.externalFileAttributes),B==3&&(this.unixPermissions=this.externalFileAttributes>>16&65535),this.dir||this.fileNameStr.slice(-1)!=="/"||(this.dir=!0)},parseZIP64ExtraField:function(){if(this.extraFields[1]){var B=I(this.extraFields[1].value);this.uncompressedSize===Be.MAX_VALUE_32BITS&&(this.uncompressedSize=B.readInt(8)),this.compressedSize===Be.MAX_VALUE_32BITS&&(this.compressedSize=B.readInt(8)),this.localHeaderOffset===Be.MAX_VALUE_32BITS&&(this.localHeaderOffset=B.readInt(8)),this.diskNumberStart===Be.MAX_VALUE_32BITS&&(this.diskNumberStart=B.readInt(4))}},readExtraFields:function(B){var k,K,V,P=B.index+this.extraFieldsLength;for(this.extraFields||(this.extraFields={});B.index+4<P;)k=B.readInt(2),K=B.readInt(2),V=B.readData(K),this.extraFields[k]={id:k,length:K,value:V};B.setIndex(P)},handleUTF8:function(){var B=w.uint8array?"uint8array":"array";if(this.useUTF8())this.fileNameStr=C.utf8decode(this.fileName),this.fileCommentStr=C.utf8decode(this.fileComment);else{var k=this.findExtraFieldUnicodePath();if(k!==null)this.fileNameStr=k;else{var K=Be.transformTo(B,this.fileName);this.fileNameStr=this.loadOptions.decodeFileName(K)}var V=this.findExtraFieldUnicodeComment();if(V!==null)this.fileCommentStr=V;else{var P=Be.transformTo(B,this.fileComment);this.fileCommentStr=this.loadOptions.decodeFileName(P)}}},findExtraFieldUnicodePath:function(){var B=this.extraFields[28789];if(B){var k=I(B.value);return k.readInt(1)!==1||u(this.fileName)!==k.readInt(4)?null:C.utf8decode(k.readData(B.length-5))}return null},findExtraFieldUnicodeComment:function(){var B=this.extraFields[25461];if(B){var k=I(B.value);return k.readInt(1)!==1||u(this.fileComment)!==k.readInt(4)?null:C.utf8decode(k.readData(B.length-5))}return null}},Me.exports=L},{"./compressedObject":2,"./compressions":3,"./crc32":4,"./reader/readerFor":22,"./support":30,"./utf8":31,"./utils":32}],35:[function(Fe,Me,de){"use strict";function I(k,K,V){this.name=k,this.dir=V.dir,this.date=V.date,this.comment=V.comment,this.unixPermissions=V.unixPermissions,this.dosPermissions=V.dosPermissions,this._data=K,this._dataBinary=V.binary,this.options={compression:V.compression,compressionOptions:V.compressionOptions}}var Be=Fe("./stream/StreamHelper"),R=Fe("./stream/DataWorker"),u=Fe("./utf8"),C=Fe("./compressedObject"),H=Fe("./stream/GenericWorker");I.prototype={internalStream:function(k){var K=null,V="string";try{if(!k)throw new Error("No output type specified.");var P=(V=k.toLowerCase())==="string"||V==="text";V!=="binarystring"&&V!=="text"||(V="string"),K=this._decompressWorker();var G=!this._dataBinary;G&&!P&&(K=K.pipe(new u.Utf8EncodeWorker)),!G&&P&&(K=K.pipe(new u.Utf8DecodeWorker))}catch(Z){(K=new H("error")).error(Z)}return new Be(K,V,"")},async:function(k,K){return this.internalStream(k).accumulate(K)},nodeStream:function(k,K){return this.internalStream(k||"nodebuffer").toNodejsStream(K)},_compressWorker:function(k,K){if(this._data instanceof C&&this._data.compression.magic===k.magic)return this._data.getCompressedWorker();var V=this._decompressWorker();return this._dataBinary||(V=V.pipe(new u.Utf8EncodeWorker)),C.createWorkerFrom(V,k,K)},_decompressWorker:function(){return this._data instanceof C?this._data.getContentWorker():this._data instanceof H?this._data:new R(this._data)}};for(var w=["asText","asBinary","asNodeBuffer","asUint8Array","asArrayBuffer"],L=function(){throw new Error("This method has been removed in JSZip 3.0, please check the upgrade guide.")},B=0;B<w.length;B++)I.prototype[w[B]]=L;Me.exports=I},{"./compressedObject":2,"./stream/DataWorker":27,"./stream/GenericWorker":28,"./stream/StreamHelper":29,"./utf8":31}],36:[function(Fe,Me,de){(function(I){"use strict";var Be,R,u=I.MutationObserver||I.WebKitMutationObserver;if(u){var C=0,H=new u(k),w=I.document.createTextNode("");H.observe(w,{characterData:!0}),Be=function(){w.data=C=++C%2}}else if(I.setImmediate||I.MessageChannel===void 0)Be="document"in I&&"onreadystatechange"in I.document.createElement("script")?function(){var K=I.document.createElement("script");K.onreadystatechange=function(){k(),K.onreadystatechange=null,K.parentNode.removeChild(K),K=null},I.document.documentElement.appendChild(K)}:function(){setTimeout(k,0)};else{var L=new I.MessageChannel;L.port1.onmessage=k,Be=function(){L.port2.postMessage(0)}}var B=[];function k(){var K,V;R=!0;for(var P=B.length;P;){for(V=B,B=[],K=-1;++K<P;)V[K]();P=B.length}R=!1}Me.exports=function(K){B.push(K)!==1||R||Be()}}).call(this,typeof je.g!="undefined"?je.g:typeof self!="undefined"?self:typeof window!="undefined"?window:{})},{}],37:[function(Fe,Me,de){"use strict";var I=Fe("immediate");function Be(){}var R={},u=["REJECTED"],C=["FULFILLED"],H=["PENDING"];function w(P){if(typeof P!="function")throw new TypeError("resolver must be a function");this.state=H,this.queue=[],this.outcome=void 0,P!==Be&&K(this,P)}function L(P,G,Z){this.promise=P,typeof G=="function"&&(this.onFulfilled=G,this.callFulfilled=this.otherCallFulfilled),typeof Z=="function"&&(this.onRejected=Z,this.callRejected=this.otherCallRejected)}function B(P,G,Z){I(function(){var se;try{se=G(Z)}catch(oe){return R.reject(P,oe)}se===P?R.reject(P,new TypeError("Cannot resolve promise with itself")):R.resolve(P,se)})}function k(P){var G=P&&P.then;if(P&&(typeof P=="object"||typeof P=="function")&&typeof G=="function")return function(){G.apply(P,arguments)}}function K(P,G){var Z=!1;function se(He){Z||(Z=!0,R.reject(P,He))}function oe(He){Z||(Z=!0,R.resolve(P,He))}var De=V(function(){G(oe,se)});De.status==="error"&&se(De.value)}function V(P,G){var Z={};try{Z.value=P(G),Z.status="success"}catch(se){Z.status="error",Z.value=se}return Z}(Me.exports=w).prototype.finally=function(P){if(typeof P!="function")return this;var G=this.constructor;return this.then(function(Z){return G.resolve(P()).then(function(){return Z})},function(Z){return G.resolve(P()).then(function(){throw Z})})},w.prototype.catch=function(P){return this.then(null,P)},w.prototype.then=function(P,G){if(typeof P!="function"&&this.state===C||typeof G!="function"&&this.state===u)return this;var Z=new this.constructor(Be);return this.state!==H?B(Z,this.state===C?P:G,this.outcome):this.queue.push(new L(Z,P,G)),Z},L.prototype.callFulfilled=function(P){R.resolve(this.promise,P)},L.prototype.otherCallFulfilled=function(P){B(this.promise,this.onFulfilled,P)},L.prototype.callRejected=function(P){R.reject(this.promise,P)},L.prototype.otherCallRejected=function(P){B(this.promise,this.onRejected,P)},R.resolve=function(P,G){var Z=V(k,G);if(Z.status==="error")return R.reject(P,Z.value);var se=Z.value;if(se)K(P,se);else{P.state=C,P.outcome=G;for(var oe=-1,De=P.queue.length;++oe<De;)P.queue[oe].callFulfilled(G)}return P},R.reject=function(P,G){P.state=u,P.outcome=G;for(var Z=-1,se=P.queue.length;++Z<se;)P.queue[Z].callRejected(G);return P},w.resolve=function(P){return P instanceof this?P:R.resolve(new this(Be),P)},w.reject=function(P){var G=new this(Be);return R.reject(G,P)},w.all=function(P){var G=this;if(Object.prototype.toString.call(P)!=="[object Array]")return this.reject(new TypeError("must be an array"));var Z=P.length,se=!1;if(!Z)return this.resolve([]);for(var oe=new Array(Z),De=0,He=-1,Qe=new this(Be);++He<Z;)Ue(P[He],He);return Qe;function Ue(qe,st){G.resolve(qe).then(function(Pe){oe[st]=Pe,++De!==Z||se||(se=!0,R.resolve(Qe,oe))},function(Pe){se||(se=!0,R.reject(Qe,Pe))})}},w.race=function(P){var G=this;if(Object.prototype.toString.call(P)!=="[object Array]")return this.reject(new TypeError("must be an array"));var Z=P.length,se=!1;if(!Z)return this.resolve([]);for(var oe=-1,De=new this(Be);++oe<Z;)He=P[oe],G.resolve(He).then(function(Qe){se||(se=!0,R.resolve(De,Qe))},function(Qe){se||(se=!0,R.reject(De,Qe))});var He;return De}},{immediate:36}],38:[function(Fe,Me,de){"use strict";var I={};(0,Fe("./lib/utils/common").assign)(I,Fe("./lib/deflate"),Fe("./lib/inflate"),Fe("./lib/zlib/constants")),Me.exports=I},{"./lib/deflate":39,"./lib/inflate":40,"./lib/utils/common":41,"./lib/zlib/constants":44}],39:[function(Fe,Me,de){"use strict";var I=Fe("./zlib/deflate"),Be=Fe("./utils/common"),R=Fe("./utils/strings"),u=Fe("./zlib/messages"),C=Fe("./zlib/zstream"),H=Object.prototype.toString,w=0,L=-1,B=0,k=8;function K(P){if(!(this instanceof K))return new K(P);this.options=Be.assign({level:L,method:k,chunkSize:16384,windowBits:15,memLevel:8,strategy:B,to:""},P||{});var G=this.options;G.raw&&0<G.windowBits?G.windowBits=-G.windowBits:G.gzip&&0<G.windowBits&&G.windowBits<16&&(G.windowBits+=16),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new C,this.strm.avail_out=0;var Z=I.deflateInit2(this.strm,G.level,G.method,G.windowBits,G.memLevel,G.strategy);if(Z!==w)throw new Error(u[Z]);if(G.header&&I.deflateSetHeader(this.strm,G.header),G.dictionary){var se;if(se=typeof G.dictionary=="string"?R.string2buf(G.dictionary):H.call(G.dictionary)==="[object ArrayBuffer]"?new Uint8Array(G.dictionary):G.dictionary,(Z=I.deflateSetDictionary(this.strm,se))!==w)throw new Error(u[Z]);this._dict_set=!0}}function V(P,G){var Z=new K(G);if(Z.push(P,!0),Z.err)throw Z.msg||u[Z.err];return Z.result}K.prototype.push=function(P,G){var Z,se,oe=this.strm,De=this.options.chunkSize;if(this.ended)return!1;se=G===~~G?G:G===!0?4:0,typeof P=="string"?oe.input=R.string2buf(P):H.call(P)==="[object ArrayBuffer]"?oe.input=new Uint8Array(P):oe.input=P,oe.next_in=0,oe.avail_in=oe.input.length;do{if(oe.avail_out===0&&(oe.output=new Be.Buf8(De),oe.next_out=0,oe.avail_out=De),(Z=I.deflate(oe,se))!==1&&Z!==w)return this.onEnd(Z),!(this.ended=!0);oe.avail_out!==0&&(oe.avail_in!==0||se!==4&&se!==2)||(this.options.to==="string"?this.onData(R.buf2binstring(Be.shrinkBuf(oe.output,oe.next_out))):this.onData(Be.shrinkBuf(oe.output,oe.next_out)))}while((0<oe.avail_in||oe.avail_out===0)&&Z!==1);return se===4?(Z=I.deflateEnd(this.strm),this.onEnd(Z),this.ended=!0,Z===w):se!==2||(this.onEnd(w),!(oe.avail_out=0))},K.prototype.onData=function(P){this.chunks.push(P)},K.prototype.onEnd=function(P){P===w&&(this.options.to==="string"?this.result=this.chunks.join(""):this.result=Be.flattenChunks(this.chunks)),this.chunks=[],this.err=P,this.msg=this.strm.msg},de.Deflate=K,de.deflate=V,de.deflateRaw=function(P,G){return(G=G||{}).raw=!0,V(P,G)},de.gzip=function(P,G){return(G=G||{}).gzip=!0,V(P,G)}},{"./utils/common":41,"./utils/strings":42,"./zlib/deflate":46,"./zlib/messages":51,"./zlib/zstream":53}],40:[function(Fe,Me,de){"use strict";var I=Fe("./zlib/inflate"),Be=Fe("./utils/common"),R=Fe("./utils/strings"),u=Fe("./zlib/constants"),C=Fe("./zlib/messages"),H=Fe("./zlib/zstream"),w=Fe("./zlib/gzheader"),L=Object.prototype.toString;function B(K){if(!(this instanceof B))return new B(K);this.options=Be.assign({chunkSize:16384,windowBits:0,to:""},K||{});var V=this.options;V.raw&&0<=V.windowBits&&V.windowBits<16&&(V.windowBits=-V.windowBits,V.windowBits===0&&(V.windowBits=-15)),!(0<=V.windowBits&&V.windowBits<16)||K&&K.windowBits||(V.windowBits+=32),15<V.windowBits&&V.windowBits<48&&!(15&V.windowBits)&&(V.windowBits|=15),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new H,this.strm.avail_out=0;var P=I.inflateInit2(this.strm,V.windowBits);if(P!==u.Z_OK)throw new Error(C[P]);this.header=new w,I.inflateGetHeader(this.strm,this.header)}function k(K,V){var P=new B(V);if(P.push(K,!0),P.err)throw P.msg||C[P.err];return P.result}B.prototype.push=function(K,V){var P,G,Z,se,oe,De,He=this.strm,Qe=this.options.chunkSize,Ue=this.options.dictionary,qe=!1;if(this.ended)return!1;G=V===~~V?V:V===!0?u.Z_FINISH:u.Z_NO_FLUSH,typeof K=="string"?He.input=R.binstring2buf(K):L.call(K)==="[object ArrayBuffer]"?He.input=new Uint8Array(K):He.input=K,He.next_in=0,He.avail_in=He.input.length;do{if(He.avail_out===0&&(He.output=new Be.Buf8(Qe),He.next_out=0,He.avail_out=Qe),(P=I.inflate(He,u.Z_NO_FLUSH))===u.Z_NEED_DICT&&Ue&&(De=typeof Ue=="string"?R.string2buf(Ue):L.call(Ue)==="[object ArrayBuffer]"?new Uint8Array(Ue):Ue,P=I.inflateSetDictionary(this.strm,De)),P===u.Z_BUF_ERROR&&qe===!0&&(P=u.Z_OK,qe=!1),P!==u.Z_STREAM_END&&P!==u.Z_OK)return this.onEnd(P),!(this.ended=!0);He.next_out&&(He.avail_out!==0&&P!==u.Z_STREAM_END&&(He.avail_in!==0||G!==u.Z_FINISH&&G!==u.Z_SYNC_FLUSH)||(this.options.to==="string"?(Z=R.utf8border(He.output,He.next_out),se=He.next_out-Z,oe=R.buf2string(He.output,Z),He.next_out=se,He.avail_out=Qe-se,se&&Be.arraySet(He.output,He.output,Z,se,0),this.onData(oe)):this.onData(Be.shrinkBuf(He.output,He.next_out)))),He.avail_in===0&&He.avail_out===0&&(qe=!0)}while((0<He.avail_in||He.avail_out===0)&&P!==u.Z_STREAM_END);return P===u.Z_STREAM_END&&(G=u.Z_FINISH),G===u.Z_FINISH?(P=I.inflateEnd(this.strm),this.onEnd(P),this.ended=!0,P===u.Z_OK):G!==u.Z_SYNC_FLUSH||(this.onEnd(u.Z_OK),!(He.avail_out=0))},B.prototype.onData=function(K){this.chunks.push(K)},B.prototype.onEnd=function(K){K===u.Z_OK&&(this.options.to==="string"?this.result=this.chunks.join(""):this.result=Be.flattenChunks(this.chunks)),this.chunks=[],this.err=K,this.msg=this.strm.msg},de.Inflate=B,de.inflate=k,de.inflateRaw=function(K,V){return(V=V||{}).raw=!0,k(K,V)},de.ungzip=k},{"./utils/common":41,"./utils/strings":42,"./zlib/constants":44,"./zlib/gzheader":47,"./zlib/inflate":49,"./zlib/messages":51,"./zlib/zstream":53}],41:[function(Fe,Me,de){"use strict";var I=typeof Uint8Array!="undefined"&&typeof Uint16Array!="undefined"&&typeof Int32Array!="undefined";de.assign=function(u){for(var C=Array.prototype.slice.call(arguments,1);C.length;){var H=C.shift();if(H){if(typeof H!="object")throw new TypeError(H+"must be non-object");for(var w in H)H.hasOwnProperty(w)&&(u[w]=H[w])}}return u},de.shrinkBuf=function(u,C){return u.length===C?u:u.subarray?u.subarray(0,C):(u.length=C,u)};var Be={arraySet:function(u,C,H,w,L){if(C.subarray&&u.subarray)u.set(C.subarray(H,H+w),L);else for(var B=0;B<w;B++)u[L+B]=C[H+B]},flattenChunks:function(u){var C,H,w,L,B,k;for(C=w=0,H=u.length;C<H;C++)w+=u[C].length;for(k=new Uint8Array(w),C=L=0,H=u.length;C<H;C++)B=u[C],k.set(B,L),L+=B.length;return k}},R={arraySet:function(u,C,H,w,L){for(var B=0;B<w;B++)u[L+B]=C[H+B]},flattenChunks:function(u){return[].concat.apply([],u)}};de.setTyped=function(u){u?(de.Buf8=Uint8Array,de.Buf16=Uint16Array,de.Buf32=Int32Array,de.assign(de,Be)):(de.Buf8=Array,de.Buf16=Array,de.Buf32=Array,de.assign(de,R))},de.setTyped(I)},{}],42:[function(Fe,Me,de){"use strict";var I=Fe("./common"),Be=!0,R=!0;try{String.fromCharCode.apply(null,[0])}catch(w){Be=!1}try{String.fromCharCode.apply(null,new Uint8Array(1))}catch(w){R=!1}for(var u=new I.Buf8(256),C=0;C<256;C++)u[C]=252<=C?6:248<=C?5:240<=C?4:224<=C?3:192<=C?2:1;function H(w,L){if(L<65537&&(w.subarray&&R||!w.subarray&&Be))return String.fromCharCode.apply(null,I.shrinkBuf(w,L));for(var B="",k=0;k<L;k++)B+=String.fromCharCode(w[k]);return B}u[254]=u[254]=1,de.string2buf=function(w){var L,B,k,K,V,P=w.length,G=0;for(K=0;K<P;K++)(64512&(B=w.charCodeAt(K)))==55296&&K+1<P&&(64512&(k=w.charCodeAt(K+1)))==56320&&(B=65536+(B-55296<<10)+(k-56320),K++),G+=B<128?1:B<2048?2:B<65536?3:4;for(L=new I.Buf8(G),K=V=0;V<G;K++)(64512&(B=w.charCodeAt(K)))==55296&&K+1<P&&(64512&(k=w.charCodeAt(K+1)))==56320&&(B=65536+(B-55296<<10)+(k-56320),K++),B<128?L[V++]=B:(B<2048?L[V++]=192|B>>>6:(B<65536?L[V++]=224|B>>>12:(L[V++]=240|B>>>18,L[V++]=128|B>>>12&63),L[V++]=128|B>>>6&63),L[V++]=128|63&B);return L},de.buf2binstring=function(w){return H(w,w.length)},de.binstring2buf=function(w){for(var L=new I.Buf8(w.length),B=0,k=L.length;B<k;B++)L[B]=w.charCodeAt(B);return L},de.buf2string=function(w,L){var B,k,K,V,P=L||w.length,G=new Array(2*P);for(B=k=0;B<P;)if((K=w[B++])<128)G[k++]=K;else if(4<(V=u[K]))G[k++]=65533,B+=V-1;else{for(K&=V===2?31:V===3?15:7;1<V&&B<P;)K=K<<6|63&w[B++],V--;1<V?G[k++]=65533:K<65536?G[k++]=K:(K-=65536,G[k++]=55296|K>>10&1023,G[k++]=56320|1023&K)}return H(G,k)},de.utf8border=function(w,L){var B;for((L=L||w.length)>w.length&&(L=w.length),B=L-1;0<=B&&(192&w[B])==128;)B--;return B<0||B===0?L:B+u[w[B]]>L?B:L}},{"./common":41}],43:[function(Fe,Me,de){"use strict";Me.exports=function(I,Be,R,u){for(var C=65535&I|0,H=I>>>16&65535|0,w=0;R!==0;){for(R-=w=2e3<R?2e3:R;H=H+(C=C+Be[u++]|0)|0,--w;);C%=65521,H%=65521}return C|H<<16|0}},{}],44:[function(Fe,Me,de){"use strict";Me.exports={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_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}},{}],45:[function(Fe,Me,de){"use strict";var I=function(){for(var Be,R=[],u=0;u<256;u++){Be=u;for(var C=0;C<8;C++)Be=1&Be?3988292384^Be>>>1:Be>>>1;R[u]=Be}return R}();Me.exports=function(Be,R,u,C){var H=I,w=C+u;Be^=-1;for(var L=C;L<w;L++)Be=Be>>>8^H[255&(Be^R[L])];return-1^Be}},{}],46:[function(Fe,Me,de){"use strict";var I,Be=Fe("../utils/common"),R=Fe("./trees"),u=Fe("./adler32"),C=Fe("./crc32"),H=Fe("./messages"),w=0,L=4,B=0,k=-2,K=-1,V=4,P=2,G=8,Z=9,se=286,oe=30,De=19,He=2*se+1,Qe=15,Ue=3,qe=258,st=qe+Ue+1,Pe=42,pe=113,M=1,ye=2,Te=3,me=4;function xe(ve,At){return ve.msg=H[At],At}function z(ve){return(ve<<1)-(4<ve?9:0)}function j(ve){for(var At=ve.length;0<=--At;)ve[At]=0}function ee(ve){var At=ve.state,le=At.pending;le>ve.avail_out&&(le=ve.avail_out),le!==0&&(Be.arraySet(ve.output,At.pending_buf,At.pending_out,le,ve.next_out),ve.next_out+=le,At.pending_out+=le,ve.total_out+=le,ve.avail_out-=le,At.pending-=le,At.pending===0&&(At.pending_out=0))}function _e(ve,At){R._tr_flush_block(ve,0<=ve.block_start?ve.block_start:-1,ve.strstart-ve.block_start,At),ve.block_start=ve.strstart,ee(ve.strm)}function ut(ve,At){ve.pending_buf[ve.pending++]=At}function Ft(ve,At){ve.pending_buf[ve.pending++]=At>>>8&255,ve.pending_buf[ve.pending++]=255&At}function Vt(ve,At){var le,_,D=ve.max_chain_length,ae=ve.strstart,We=ve.prev_length,ge=ve.nice_match,Se=ve.strstart>ve.w_size-st?ve.strstart-(ve.w_size-st):0,gt=ve.window,xt=ve.w_mask,Et=ve.prev,nr=ve.strstart+qe,xr=gt[ae+We-1],Tr=gt[ae+We];ve.prev_length>=ve.good_match&&(D>>=2),ge>ve.lookahead&&(ge=ve.lookahead);do if(gt[(le=At)+We]===Tr&>[le+We-1]===xr&>[le]===gt[ae]&>[++le]===gt[ae+1]){ae+=2,le++;do;while(gt[++ae]===gt[++le]&>[++ae]===gt[++le]&>[++ae]===gt[++le]&>[++ae]===gt[++le]&>[++ae]===gt[++le]&>[++ae]===gt[++le]&>[++ae]===gt[++le]&>[++ae]===gt[++le]&&ae<nr);if(_=qe-(nr-ae),ae=nr-qe,We<_){if(ve.match_start=At,ge<=(We=_))break;xr=gt[ae+We-1],Tr=gt[ae+We]}}while((At=Et[At&xt])>Se&&--D!=0);return We<=ve.lookahead?We:ve.lookahead}function vr(ve){var At,le,_,D,ae,We,ge,Se,gt,xt,Et=ve.w_size;do{if(D=ve.window_size-ve.lookahead-ve.strstart,ve.strstart>=Et+(Et-st)){for(Be.arraySet(ve.window,ve.window,Et,Et,0),ve.match_start-=Et,ve.strstart-=Et,ve.block_start-=Et,At=le=ve.hash_size;_=ve.head[--At],ve.head[At]=Et<=_?_-Et:0,--le;);for(At=le=Et;_=ve.prev[--At],ve.prev[At]=Et<=_?_-Et:0,--le;);D+=Et}if(ve.strm.avail_in===0)break;if(We=ve.strm,ge=ve.window,Se=ve.strstart+ve.lookahead,gt=D,xt=void 0,xt=We.avail_in,gt<xt&&(xt=gt),le=xt===0?0:(We.avail_in-=xt,Be.arraySet(ge,We.input,We.next_in,xt,Se),We.state.wrap===1?We.adler=u(We.adler,ge,xt,Se):We.state.wrap===2&&(We.adler=C(We.adler,ge,xt,Se)),We.next_in+=xt,We.total_in+=xt,xt),ve.lookahead+=le,ve.lookahead+ve.insert>=Ue)for(ae=ve.strstart-ve.insert,ve.ins_h=ve.window[ae],ve.ins_h=(ve.ins_h<<ve.hash_shift^ve.window[ae+1])&ve.hash_mask;ve.insert&&(ve.ins_h=(ve.ins_h<<ve.hash_shift^ve.window[ae+Ue-1])&ve.hash_mask,ve.prev[ae&ve.w_mask]=ve.head[ve.ins_h],ve.head[ve.ins_h]=ae,ae++,ve.insert--,!(ve.lookahead+ve.insert<Ue)););}while(ve.lookahead<st&&ve.strm.avail_in!==0)}function Yr(ve,At){for(var le,_;;){if(ve.lookahead<st){if(vr(ve),ve.lookahead<st&&At===w)return M;if(ve.lookahead===0)break}if(le=0,ve.lookahead>=Ue&&(ve.ins_h=(ve.ins_h<<ve.hash_shift^ve.window[ve.strstart+Ue-1])&ve.hash_mask,le=ve.prev[ve.strstart&ve.w_mask]=ve.head[ve.ins_h],ve.head[ve.ins_h]=ve.strstart),le!==0&&ve.strstart-le<=ve.w_size-st&&(ve.match_length=Vt(ve,le)),ve.match_length>=Ue)if(_=R._tr_tally(ve,ve.strstart-ve.match_start,ve.match_length-Ue),ve.lookahead-=ve.match_length,ve.match_length<=ve.max_lazy_match&&ve.lookahead>=Ue){for(ve.match_length--;ve.strstart++,ve.ins_h=(ve.ins_h<<ve.hash_shift^ve.window[ve.strstart+Ue-1])&ve.hash_mask,le=ve.prev[ve.strstart&ve.w_mask]=ve.head[ve.ins_h],ve.head[ve.ins_h]=ve.strstart,--ve.match_length!=0;);ve.strstart++}else ve.strstart+=ve.match_length,ve.match_length=0,ve.ins_h=ve.window[ve.strstart],ve.ins_h=(ve.ins_h<<ve.hash_shift^ve.window[ve.strstart+1])&ve.hash_mask;else _=R._tr_tally(ve,0,ve.window[ve.strstart]),ve.lookahead--,ve.strstart++;if(_&&(_e(ve,!1),ve.strm.avail_out===0))return M}return ve.insert=ve.strstart<Ue-1?ve.strstart:Ue-1,At===L?(_e(ve,!0),ve.strm.avail_out===0?Te:me):ve.last_lit&&(_e(ve,!1),ve.strm.avail_out===0)?M:ye}function wr(ve,At){for(var le,_,D;;){if(ve.lookahead<st){if(vr(ve),ve.lookahead<st&&At===w)return M;if(ve.lookahead===0)break}if(le=0,ve.lookahead>=Ue&&(ve.ins_h=(ve.ins_h<<ve.hash_shift^ve.window[ve.strstart+Ue-1])&ve.hash_mask,le=ve.prev[ve.strstart&ve.w_mask]=ve.head[ve.ins_h],ve.head[ve.ins_h]=ve.strstart),ve.prev_length=ve.match_length,ve.prev_match=ve.match_start,ve.match_length=Ue-1,le!==0&&ve.prev_length<ve.max_lazy_match&&ve.strstart-le<=ve.w_size-st&&(ve.match_length=Vt(ve,le),ve.match_length<=5&&(ve.strategy===1||ve.match_length===Ue&&4096<ve.strstart-ve.match_start)&&(ve.match_length=Ue-1)),ve.prev_length>=Ue&&ve.match_length<=ve.prev_length){for(D=ve.strstart+ve.lookahead-Ue,_=R._tr_tally(ve,ve.strstart-1-ve.prev_match,ve.prev_length-Ue),ve.lookahead-=ve.prev_length-1,ve.prev_length-=2;++ve.strstart<=D&&(ve.ins_h=(ve.ins_h<<ve.hash_shift^ve.window[ve.strstart+Ue-1])&ve.hash_mask,le=ve.prev[ve.strstart&ve.w_mask]=ve.head[ve.ins_h],ve.head[ve.ins_h]=ve.strstart),--ve.prev_length!=0;);if(ve.match_available=0,ve.match_length=Ue-1,ve.strstart++,_&&(_e(ve,!1),ve.strm.avail_out===0))return M}else if(ve.match_available){if((_=R._tr_tally(ve,0,ve.window[ve.strstart-1]))&&_e(ve,!1),ve.strstart++,ve.lookahead--,ve.strm.avail_out===0)return M}else ve.match_available=1,ve.strstart++,ve.lookahead--}return ve.match_available&&(_=R._tr_tally(ve,0,ve.window[ve.strstart-1]),ve.match_available=0),ve.insert=ve.strstart<Ue-1?ve.strstart:Ue-1,At===L?(_e(ve,!0),ve.strm.avail_out===0?Te:me):ve.last_lit&&(_e(ve,!1),ve.strm.avail_out===0)?M:ye}function fr(ve,At,le,_,D){this.good_length=ve,this.max_lazy=At,this.nice_length=le,this.max_chain=_,this.func=D}function dn(){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=G,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 Be.Buf16(2*He),this.dyn_dtree=new Be.Buf16(2*(2*oe+1)),this.bl_tree=new Be.Buf16(2*(2*De+1)),j(this.dyn_ltree),j(this.dyn_dtree),j(this.bl_tree),this.l_desc=null,this.d_desc=null,this.bl_desc=null,this.bl_count=new Be.Buf16(Qe+1),this.heap=new Be.Buf16(2*se+1),j(this.heap),this.heap_len=0,this.heap_max=0,this.depth=new Be.Buf16(2*se+1),j(this.depth),this.l_buf=0,this.lit_bufsize=0,this.last_lit=0,this.d_buf=0,this.opt_len=0,this.static_len=0,this.matches=0,this.insert=0,this.bi_buf=0,this.bi_valid=0}function ar(ve){var At;return ve&&ve.state?(ve.total_in=ve.total_out=0,ve.data_type=P,(At=ve.state).pending=0,At.pending_out=0,At.wrap<0&&(At.wrap=-At.wrap),At.status=At.wrap?Pe:pe,ve.adler=At.wrap===2?0:1,At.last_flush=w,R._tr_init(At),B):xe(ve,k)}function Vr(ve){var At=ar(ve);return At===B&&function(le){le.window_size=2*le.w_size,j(le.head),le.max_lazy_match=I[le.level].max_lazy,le.good_match=I[le.level].good_length,le.nice_match=I[le.level].nice_length,le.max_chain_length=I[le.level].max_chain,le.strstart=0,le.block_start=0,le.lookahead=0,le.insert=0,le.match_length=le.prev_length=Ue-1,le.match_available=0,le.ins_h=0}(ve.state),At}function ur(ve,At,le,_,D,ae){if(!ve)return k;var We=1;if(At===K&&(At=6),_<0?(We=0,_=-_):15<_&&(We=2,_-=16),D<1||Z<D||le!==G||_<8||15<_||At<0||9<At||ae<0||V<ae)return xe(ve,k);_===8&&(_=9);var ge=new dn;return(ve.state=ge).strm=ve,ge.wrap=We,ge.gzhead=null,ge.w_bits=_,ge.w_size=1<<ge.w_bits,ge.w_mask=ge.w_size-1,ge.hash_bits=D+7,ge.hash_size=1<<ge.hash_bits,ge.hash_mask=ge.hash_size-1,ge.hash_shift=~~((ge.hash_bits+Ue-1)/Ue),ge.window=new Be.Buf8(2*ge.w_size),ge.head=new Be.Buf16(ge.hash_size),ge.prev=new Be.Buf16(ge.w_size),ge.lit_bufsize=1<<D+6,ge.pending_buf_size=4*ge.lit_bufsize,ge.pending_buf=new Be.Buf8(ge.pending_buf_size),ge.d_buf=1*ge.lit_bufsize,ge.l_buf=3*ge.lit_bufsize,ge.level=At,ge.strategy=ae,ge.method=le,Vr(ve)}I=[new fr(0,0,0,0,function(ve,At){var le=65535;for(le>ve.pending_buf_size-5&&(le=ve.pending_buf_size-5);;){if(ve.lookahead<=1){if(vr(ve),ve.lookahead===0&&At===w)return M;if(ve.lookahead===0)break}ve.strstart+=ve.lookahead,ve.lookahead=0;var _=ve.block_start+le;if((ve.strstart===0||ve.strstart>=_)&&(ve.lookahead=ve.strstart-_,ve.strstart=_,_e(ve,!1),ve.strm.avail_out===0)||ve.strstart-ve.block_start>=ve.w_size-st&&(_e(ve,!1),ve.strm.avail_out===0))return M}return ve.insert=0,At===L?(_e(ve,!0),ve.strm.avail_out===0?Te:me):(ve.strstart>ve.block_start&&(_e(ve,!1),ve.strm.avail_out),M)}),new fr(4,4,8,4,Yr),new fr(4,5,16,8,Yr),new fr(4,6,32,32,Yr),new fr(4,4,16,16,wr),new fr(8,16,32,32,wr),new fr(8,16,128,128,wr),new fr(8,32,128,256,wr),new fr(32,128,258,1024,wr),new fr(32,258,258,4096,wr)],de.deflateInit=function(ve,At){return ur(ve,At,G,15,8,0)},de.deflateInit2=ur,de.deflateReset=Vr,de.deflateResetKeep=ar,de.deflateSetHeader=function(ve,At){return ve&&ve.state?ve.state.wrap!==2?k:(ve.state.gzhead=At,B):k},de.deflate=function(ve,At){var le,_,D,ae;if(!ve||!ve.state||5<At||At<0)return ve?xe(ve,k):k;if(_=ve.state,!ve.output||!ve.input&&ve.avail_in!==0||_.status===666&&At!==L)return xe(ve,ve.avail_out===0?-5:k);if(_.strm=ve,le=_.last_flush,_.last_flush=At,_.status===Pe)if(_.wrap===2)ve.adler=0,ut(_,31),ut(_,139),ut(_,8),_.gzhead?(ut(_,(_.gzhead.text?1:0)+(_.gzhead.hcrc?2:0)+(_.gzhead.extra?4:0)+(_.gzhead.name?8:0)+(_.gzhead.comment?16:0)),ut(_,255&_.gzhead.time),ut(_,_.gzhead.time>>8&255),ut(_,_.gzhead.time>>16&255),ut(_,_.gzhead.time>>24&255),ut(_,_.level===9?2:2<=_.strategy||_.level<2?4:0),ut(_,255&_.gzhead.os),_.gzhead.extra&&_.gzhead.extra.length&&(ut(_,255&_.gzhead.extra.length),ut(_,_.gzhead.extra.length>>8&255)),_.gzhead.hcrc&&(ve.adler=C(ve.adler,_.pending_buf,_.pending,0)),_.gzindex=0,_.status=69):(ut(_,0),ut(_,0),ut(_,0),ut(_,0),ut(_,0),ut(_,_.level===9?2:2<=_.strategy||_.level<2?4:0),ut(_,3),_.status=pe);else{var We=G+(_.w_bits-8<<4)<<8;We|=(2<=_.strategy||_.level<2?0:_.level<6?1:_.level===6?2:3)<<6,_.strstart!==0&&(We|=32),We+=31-We%31,_.status=pe,Ft(_,We),_.strstart!==0&&(Ft(_,ve.adler>>>16),Ft(_,65535&ve.adler)),ve.adler=1}if(_.status===69)if(_.gzhead.extra){for(D=_.pending;_.gzindex<(65535&_.gzhead.extra.length)&&(_.pending!==_.pending_buf_size||(_.gzhead.hcrc&&_.pending>D&&(ve.adler=C(ve.adler,_.pending_buf,_.pending-D,D)),ee(ve),D=_.pending,_.pending!==_.pending_buf_size));)ut(_,255&_.gzhead.extra[_.gzindex]),_.gzindex++;_.gzhead.hcrc&&_.pending>D&&(ve.adler=C(ve.adler,_.pending_buf,_.pending-D,D)),_.gzindex===_.gzhead.extra.length&&(_.gzindex=0,_.status=73)}else _.status=73;if(_.status===73)if(_.gzhead.name){D=_.pending;do{if(_.pending===_.pending_buf_size&&(_.gzhead.hcrc&&_.pending>D&&(ve.adler=C(ve.adler,_.pending_buf,_.pending-D,D)),ee(ve),D=_.pending,_.pending===_.pending_buf_size)){ae=1;break}ae=_.gzindex<_.gzhead.name.length?255&_.gzhead.name.charCodeAt(_.gzindex++):0,ut(_,ae)}while(ae!==0);_.gzhead.hcrc&&_.pending>D&&(ve.adler=C(ve.adler,_.pending_buf,_.pending-D,D)),ae===0&&(_.gzindex=0,_.status=91)}else _.status=91;if(_.status===91)if(_.gzhead.comment){D=_.pending;do{if(_.pending===_.pending_buf_size&&(_.gzhead.hcrc&&_.pending>D&&(ve.adler=C(ve.adler,_.pending_buf,_.pending-D,D)),ee(ve),D=_.pending,_.pending===_.pending_buf_size)){ae=1;break}ae=_.gzindex<_.gzhead.comment.length?255&_.gzhead.comment.charCodeAt(_.gzindex++):0,ut(_,ae)}while(ae!==0);_.gzhead.hcrc&&_.pending>D&&(ve.adler=C(ve.adler,_.pending_buf,_.pending-D,D)),ae===0&&(_.status=103)}else _.status=103;if(_.status===103&&(_.gzhead.hcrc?(_.pending+2>_.pending_buf_size&&ee(ve),_.pending+2<=_.pending_buf_size&&(ut(_,255&ve.adler),ut(_,ve.adler>>8&255),ve.adler=0,_.status=pe)):_.status=pe),_.pending!==0){if(ee(ve),ve.avail_out===0)return _.last_flush=-1,B}else if(ve.avail_in===0&&z(At)<=z(le)&&At!==L)return xe(ve,-5);if(_.status===666&&ve.avail_in!==0)return xe(ve,-5);if(ve.avail_in!==0||_.lookahead!==0||At!==w&&_.status!==666){var ge=_.strategy===2?function(Se,gt){for(var xt;;){if(Se.lookahead===0&&(vr(Se),Se.lookahead===0)){if(gt===w)return M;break}if(Se.match_length=0,xt=R._tr_tally(Se,0,Se.window[Se.strstart]),Se.lookahead--,Se.strstart++,xt&&(_e(Se,!1),Se.strm.avail_out===0))return M}return Se.insert=0,gt===L?(_e(Se,!0),Se.strm.avail_out===0?Te:me):Se.last_lit&&(_e(Se,!1),Se.strm.avail_out===0)?M:ye}(_,At):_.strategy===3?function(Se,gt){for(var xt,Et,nr,xr,Tr=Se.window;;){if(Se.lookahead<=qe){if(vr(Se),Se.lookahead<=qe&>===w)return M;if(Se.lookahead===0)break}if(Se.match_length=0,Se.lookahead>=Ue&&0<Se.strstart&&(Et=Tr[nr=Se.strstart-1])===Tr[++nr]&&Et===Tr[++nr]&&Et===Tr[++nr]){xr=Se.strstart+qe;do;while(Et===Tr[++nr]&&Et===Tr[++nr]&&Et===Tr[++nr]&&Et===Tr[++nr]&&Et===Tr[++nr]&&Et===Tr[++nr]&&Et===Tr[++nr]&&Et===Tr[++nr]&&nr<xr);Se.match_length=qe-(xr-nr),Se.match_length>Se.lookahead&&(Se.match_length=Se.lookahead)}if(Se.match_length>=Ue?(xt=R._tr_tally(Se,1,Se.match_length-Ue),Se.lookahead-=Se.match_length,Se.strstart+=Se.match_length,Se.match_length=0):(xt=R._tr_tally(Se,0,Se.window[Se.strstart]),Se.lookahead--,Se.strstart++),xt&&(_e(Se,!1),Se.strm.avail_out===0))return M}return Se.insert=0,gt===L?(_e(Se,!0),Se.strm.avail_out===0?Te:me):Se.last_lit&&(_e(Se,!1),Se.strm.avail_out===0)?M:ye}(_,At):I[_.level].func(_,At);if(ge!==Te&&ge!==me||(_.status=666),ge===M||ge===Te)return ve.avail_out===0&&(_.last_flush=-1),B;if(ge===ye&&(At===1?R._tr_align(_):At!==5&&(R._tr_stored_block(_,0,0,!1),At===3&&(j(_.head),_.lookahead===0&&(_.strstart=0,_.block_start=0,_.insert=0))),ee(ve),ve.avail_out===0))return _.last_flush=-1,B}return At!==L?B:_.wrap<=0?1:(_.wrap===2?(ut(_,255&ve.adler),ut(_,ve.adler>>8&255),ut(_,ve.adler>>16&255),ut(_,ve.adler>>24&255),ut(_,255&ve.total_in),ut(_,ve.total_in>>8&255),ut(_,ve.total_in>>16&255),ut(_,ve.total_in>>24&255)):(Ft(_,ve.adler>>>16),Ft(_,65535&ve.adler)),ee(ve),0<_.wrap&&(_.wrap=-_.wrap),_.pending!==0?B:1)},de.deflateEnd=function(ve){var At;return ve&&ve.state?(At=ve.state.status)!==Pe&&At!==69&&At!==73&&At!==91&&At!==103&&At!==pe&&At!==666?xe(ve,k):(ve.state=null,At===pe?xe(ve,-3):B):k},de.deflateSetDictionary=function(ve,At){var le,_,D,ae,We,ge,Se,gt,xt=At.length;if(!ve||!ve.state||(ae=(le=ve.state).wrap)===2||ae===1&&le.status!==Pe||le.lookahead)return k;for(ae===1&&(ve.adler=u(ve.adler,At,xt,0)),le.wrap=0,xt>=le.w_size&&(ae===0&&(j(le.head),le.strstart=0,le.block_start=0,le.insert=0),gt=new Be.Buf8(le.w_size),Be.arraySet(gt,At,xt-le.w_size,le.w_size,0),At=gt,xt=le.w_size),We=ve.avail_in,ge=ve.next_in,Se=ve.input,ve.avail_in=xt,ve.next_in=0,ve.input=At,vr(le);le.lookahead>=Ue;){for(_=le.strstart,D=le.lookahead-(Ue-1);le.ins_h=(le.ins_h<<le.hash_shift^le.window[_+Ue-1])&le.hash_mask,le.prev[_&le.w_mask]=le.head[le.ins_h],le.head[le.ins_h]=_,_++,--D;);le.strstart=_,le.lookahead=Ue-1,vr(le)}return le.strstart+=le.lookahead,le.block_start=le.strstart,le.insert=le.lookahead,le.lookahead=0,le.match_length=le.prev_length=Ue-1,le.match_available=0,ve.next_in=ge,ve.input=Se,ve.avail_in=We,le.wrap=ae,B},de.deflateInfo="pako deflate (from Nodeca project)"},{"../utils/common":41,"./adler32":43,"./crc32":45,"./messages":51,"./trees":52}],47:[function(Fe,Me,de){"use strict";Me.exports=function(){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}},{}],48:[function(Fe,Me,de){"use strict";Me.exports=function(I,Be){var R,u,C,H,w,L,B,k,K,V,P,G,Z,se,oe,De,He,Qe,Ue,qe,st,Pe,pe,M,ye;R=I.state,u=I.next_in,M=I.input,C=u+(I.avail_in-5),H=I.next_out,ye=I.output,w=H-(Be-I.avail_out),L=H+(I.avail_out-257),B=R.dmax,k=R.wsize,K=R.whave,V=R.wnext,P=R.window,G=R.hold,Z=R.bits,se=R.lencode,oe=R.distcode,De=(1<<R.lenbits)-1,He=(1<<R.distbits)-1;e:do{Z<15&&(G+=M[u++]<<Z,Z+=8,G+=M[u++]<<Z,Z+=8),Qe=se[G&De];t:for(;;){if(G>>>=Ue=Qe>>>24,Z-=Ue,(Ue=Qe>>>16&255)===0)ye[H++]=65535&Qe;else{if(!(16&Ue)){if(!(64&Ue)){Qe=se[(65535&Qe)+(G&(1<<Ue)-1)];continue t}if(32&Ue){R.mode=12;break e}I.msg="invalid literal/length code",R.mode=30;break e}qe=65535&Qe,(Ue&=15)&&(Z<Ue&&(G+=M[u++]<<Z,Z+=8),qe+=G&(1<<Ue)-1,G>>>=Ue,Z-=Ue),Z<15&&(G+=M[u++]<<Z,Z+=8,G+=M[u++]<<Z,Z+=8),Qe=oe[G&He];r:for(;;){if(G>>>=Ue=Qe>>>24,Z-=Ue,!(16&(Ue=Qe>>>16&255))){if(!(64&Ue)){Qe=oe[(65535&Qe)+(G&(1<<Ue)-1)];continue r}I.msg="invalid distance code",R.mode=30;break e}if(st=65535&Qe,Z<(Ue&=15)&&(G+=M[u++]<<Z,(Z+=8)<Ue&&(G+=M[u++]<<Z,Z+=8)),B<(st+=G&(1<<Ue)-1)){I.msg="invalid distance too far back",R.mode=30;break e}if(G>>>=Ue,Z-=Ue,(Ue=H-w)<st){if(K<(Ue=st-Ue)&&R.sane){I.msg="invalid distance too far back",R.mode=30;break e}if(pe=P,(Pe=0)===V){if(Pe+=k-Ue,Ue<qe){for(qe-=Ue;ye[H++]=P[Pe++],--Ue;);Pe=H-st,pe=ye}}else if(V<Ue){if(Pe+=k+V-Ue,(Ue-=V)<qe){for(qe-=Ue;ye[H++]=P[Pe++],--Ue;);if(Pe=0,V<qe){for(qe-=Ue=V;ye[H++]=P[Pe++],--Ue;);Pe=H-st,pe=ye}}}else if(Pe+=V-Ue,Ue<qe){for(qe-=Ue;ye[H++]=P[Pe++],--Ue;);Pe=H-st,pe=ye}for(;2<qe;)ye[H++]=pe[Pe++],ye[H++]=pe[Pe++],ye[H++]=pe[Pe++],qe-=3;qe&&(ye[H++]=pe[Pe++],1<qe&&(ye[H++]=pe[Pe++]))}else{for(Pe=H-st;ye[H++]=ye[Pe++],ye[H++]=ye[Pe++],ye[H++]=ye[Pe++],2<(qe-=3););qe&&(ye[H++]=ye[Pe++],1<qe&&(ye[H++]=ye[Pe++]))}break}}break}}while(u<C&&H<L);u-=qe=Z>>3,G&=(1<<(Z-=qe<<3))-1,I.next_in=u,I.next_out=H,I.avail_in=u<C?C-u+5:5-(u-C),I.avail_out=H<L?L-H+257:257-(H-L),R.hold=G,R.bits=Z}},{}],49:[function(Fe,Me,de){"use strict";var I=Fe("../utils/common"),Be=Fe("./adler32"),R=Fe("./crc32"),u=Fe("./inffast"),C=Fe("./inftrees"),H=1,w=2,L=0,B=-2,k=1,K=852,V=592;function P(Pe){return(Pe>>>24&255)+(Pe>>>8&65280)+((65280&Pe)<<8)+((255&Pe)<<24)}function G(){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 I.Buf16(320),this.work=new I.Buf16(288),this.lendyn=null,this.distdyn=null,this.sane=0,this.back=0,this.was=0}function Z(Pe){var pe;return Pe&&Pe.state?(pe=Pe.state,Pe.total_in=Pe.total_out=pe.total=0,Pe.msg="",pe.wrap&&(Pe.adler=1&pe.wrap),pe.mode=k,pe.last=0,pe.havedict=0,pe.dmax=32768,pe.head=null,pe.hold=0,pe.bits=0,pe.lencode=pe.lendyn=new I.Buf32(K),pe.distcode=pe.distdyn=new I.Buf32(V),pe.sane=1,pe.back=-1,L):B}function se(Pe){var pe;return Pe&&Pe.state?((pe=Pe.state).wsize=0,pe.whave=0,pe.wnext=0,Z(Pe)):B}function oe(Pe,pe){var M,ye;return Pe&&Pe.state?(ye=Pe.state,pe<0?(M=0,pe=-pe):(M=1+(pe>>4),pe<48&&(pe&=15)),pe&&(pe<8||15<pe)?B:(ye.window!==null&&ye.wbits!==pe&&(ye.window=null),ye.wrap=M,ye.wbits=pe,se(Pe))):B}function De(Pe,pe){var M,ye;return Pe?(ye=new G,(Pe.state=ye).window=null,(M=oe(Pe,pe))!==L&&(Pe.state=null),M):B}var He,Qe,Ue=!0;function qe(Pe){if(Ue){var pe;for(He=new I.Buf32(512),Qe=new I.Buf32(32),pe=0;pe<144;)Pe.lens[pe++]=8;for(;pe<256;)Pe.lens[pe++]=9;for(;pe<280;)Pe.lens[pe++]=7;for(;pe<288;)Pe.lens[pe++]=8;for(C(H,Pe.lens,0,288,He,0,Pe.work,{bits:9}),pe=0;pe<32;)Pe.lens[pe++]=5;C(w,Pe.lens,0,32,Qe,0,Pe.work,{bits:5}),Ue=!1}Pe.lencode=He,Pe.lenbits=9,Pe.distcode=Qe,Pe.distbits=5}function st(Pe,pe,M,ye){var Te,me=Pe.state;return me.window===null&&(me.wsize=1<<me.wbits,me.wnext=0,me.whave=0,me.window=new I.Buf8(me.wsize)),ye>=me.wsize?(I.arraySet(me.window,pe,M-me.wsize,me.wsize,0),me.wnext=0,me.whave=me.wsize):(ye<(Te=me.wsize-me.wnext)&&(Te=ye),I.arraySet(me.window,pe,M-ye,Te,me.wnext),(ye-=Te)?(I.arraySet(me.window,pe,M-ye,ye,0),me.wnext=ye,me.whave=me.wsize):(me.wnext+=Te,me.wnext===me.wsize&&(me.wnext=0),me.whave<me.wsize&&(me.whave+=Te))),0}de.inflateReset=se,de.inflateReset2=oe,de.inflateResetKeep=Z,de.inflateInit=function(Pe){return De(Pe,15)},de.inflateInit2=De,de.inflate=function(Pe,pe){var M,ye,Te,me,xe,z,j,ee,_e,ut,Ft,Vt,vr,Yr,wr,fr,dn,ar,Vr,ur,ve,At,le,_,D=0,ae=new I.Buf8(4),We=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15];if(!Pe||!Pe.state||!Pe.output||!Pe.input&&Pe.avail_in!==0)return B;(M=Pe.state).mode===12&&(M.mode=13),xe=Pe.next_out,Te=Pe.output,j=Pe.avail_out,me=Pe.next_in,ye=Pe.input,z=Pe.avail_in,ee=M.hold,_e=M.bits,ut=z,Ft=j,At=L;e:for(;;)switch(M.mode){case k:if(M.wrap===0){M.mode=13;break}for(;_e<16;){if(z===0)break e;z--,ee+=ye[me++]<<_e,_e+=8}if(2&M.wrap&&ee===35615){ae[M.check=0]=255&ee,ae[1]=ee>>>8&255,M.check=R(M.check,ae,2,0),_e=ee=0,M.mode=2;break}if(M.flags=0,M.head&&(M.head.done=!1),!(1&M.wrap)||(((255&ee)<<8)+(ee>>8))%31){Pe.msg="incorrect header check",M.mode=30;break}if((15&ee)!=8){Pe.msg="unknown compression method",M.mode=30;break}if(_e-=4,ve=8+(15&(ee>>>=4)),M.wbits===0)M.wbits=ve;else if(ve>M.wbits){Pe.msg="invalid window size",M.mode=30;break}M.dmax=1<<ve,Pe.adler=M.check=1,M.mode=512&ee?10:12,_e=ee=0;break;case 2:for(;_e<16;){if(z===0)break e;z--,ee+=ye[me++]<<_e,_e+=8}if(M.flags=ee,(255&M.flags)!=8){Pe.msg="unknown compression method",M.mode=30;break}if(57344&M.flags){Pe.msg="unknown header flags set",M.mode=30;break}M.head&&(M.head.text=ee>>8&1),512&M.flags&&(ae[0]=255&ee,ae[1]=ee>>>8&255,M.check=R(M.check,ae,2,0)),_e=ee=0,M.mode=3;case 3:for(;_e<32;){if(z===0)break e;z--,ee+=ye[me++]<<_e,_e+=8}M.head&&(M.head.time=ee),512&M.flags&&(ae[0]=255&ee,ae[1]=ee>>>8&255,ae[2]=ee>>>16&255,ae[3]=ee>>>24&255,M.check=R(M.check,ae,4,0)),_e=ee=0,M.mode=4;case 4:for(;_e<16;){if(z===0)break e;z--,ee+=ye[me++]<<_e,_e+=8}M.head&&(M.head.xflags=255&ee,M.head.os=ee>>8),512&M.flags&&(ae[0]=255&ee,ae[1]=ee>>>8&255,M.check=R(M.check,ae,2,0)),_e=ee=0,M.mode=5;case 5:if(1024&M.flags){for(;_e<16;){if(z===0)break e;z--,ee+=ye[me++]<<_e,_e+=8}M.length=ee,M.head&&(M.head.extra_len=ee),512&M.flags&&(ae[0]=255&ee,ae[1]=ee>>>8&255,M.check=R(M.check,ae,2,0)),_e=ee=0}else M.head&&(M.head.extra=null);M.mode=6;case 6:if(1024&M.flags&&(z<(Vt=M.length)&&(Vt=z),Vt&&(M.head&&(ve=M.head.extra_len-M.length,M.head.extra||(M.head.extra=new Array(M.head.extra_len)),I.arraySet(M.head.extra,ye,me,Vt,ve)),512&M.flags&&(M.check=R(M.check,ye,Vt,me)),z-=Vt,me+=Vt,M.length-=Vt),M.length))break e;M.length=0,M.mode=7;case 7:if(2048&M.flags){if(z===0)break e;for(Vt=0;ve=ye[me+Vt++],M.head&&ve&&M.length<65536&&(M.head.name+=String.fromCharCode(ve)),ve&&Vt<z;);if(512&M.flags&&(M.check=R(M.check,ye,Vt,me)),z-=Vt,me+=Vt,ve)break e}else M.head&&(M.head.name=null);M.length=0,M.mode=8;case 8:if(4096&M.flags){if(z===0)break e;for(Vt=0;ve=ye[me+Vt++],M.head&&ve&&M.length<65536&&(M.head.comment+=String.fromCharCode(ve)),ve&&Vt<z;);if(512&M.flags&&(M.check=R(M.check,ye,Vt,me)),z-=Vt,me+=Vt,ve)break e}else M.head&&(M.head.comment=null);M.mode=9;case 9:if(512&M.flags){for(;_e<16;){if(z===0)break e;z--,ee+=ye[me++]<<_e,_e+=8}if(ee!==(65535&M.check)){Pe.msg="header crc mismatch",M.mode=30;break}_e=ee=0}M.head&&(M.head.hcrc=M.flags>>9&1,M.head.done=!0),Pe.adler=M.check=0,M.mode=12;break;case 10:for(;_e<32;){if(z===0)break e;z--,ee+=ye[me++]<<_e,_e+=8}Pe.adler=M.check=P(ee),_e=ee=0,M.mode=11;case 11:if(M.havedict===0)return Pe.next_out=xe,Pe.avail_out=j,Pe.next_in=me,Pe.avail_in=z,M.hold=ee,M.bits=_e,2;Pe.adler=M.check=1,M.mode=12;case 12:if(pe===5||pe===6)break e;case 13:if(M.last){ee>>>=7&_e,_e-=7&_e,M.mode=27;break}for(;_e<3;){if(z===0)break e;z--,ee+=ye[me++]<<_e,_e+=8}switch(M.last=1&ee,_e-=1,3&(ee>>>=1)){case 0:M.mode=14;break;case 1:if(qe(M),M.mode=20,pe!==6)break;ee>>>=2,_e-=2;break e;case 2:M.mode=17;break;case 3:Pe.msg="invalid block type",M.mode=30}ee>>>=2,_e-=2;break;case 14:for(ee>>>=7&_e,_e-=7&_e;_e<32;){if(z===0)break e;z--,ee+=ye[me++]<<_e,_e+=8}if((65535&ee)!=(ee>>>16^65535)){Pe.msg="invalid stored block lengths",M.mode=30;break}if(M.length=65535&ee,_e=ee=0,M.mode=15,pe===6)break e;case 15:M.mode=16;case 16:if(Vt=M.length){if(z<Vt&&(Vt=z),j<Vt&&(Vt=j),Vt===0)break e;I.arraySet(Te,ye,me,Vt,xe),z-=Vt,me+=Vt,j-=Vt,xe+=Vt,M.length-=Vt;break}M.mode=12;break;case 17:for(;_e<14;){if(z===0)break e;z--,ee+=ye[me++]<<_e,_e+=8}if(M.nlen=257+(31&ee),ee>>>=5,_e-=5,M.ndist=1+(31&ee),ee>>>=5,_e-=5,M.ncode=4+(15&ee),ee>>>=4,_e-=4,286<M.nlen||30<M.ndist){Pe.msg="too many length or distance symbols",M.mode=30;break}M.have=0,M.mode=18;case 18:for(;M.have<M.ncode;){for(;_e<3;){if(z===0)break e;z--,ee+=ye[me++]<<_e,_e+=8}M.lens[We[M.have++]]=7&ee,ee>>>=3,_e-=3}for(;M.have<19;)M.lens[We[M.have++]]=0;if(M.lencode=M.lendyn,M.lenbits=7,le={bits:M.lenbits},At=C(0,M.lens,0,19,M.lencode,0,M.work,le),M.lenbits=le.bits,At){Pe.msg="invalid code lengths set",M.mode=30;break}M.have=0,M.mode=19;case 19:for(;M.have<M.nlen+M.ndist;){for(;fr=(D=M.lencode[ee&(1<<M.lenbits)-1])>>>16&255,dn=65535&D,!((wr=D>>>24)<=_e);){if(z===0)break e;z--,ee+=ye[me++]<<_e,_e+=8}if(dn<16)ee>>>=wr,_e-=wr,M.lens[M.have++]=dn;else{if(dn===16){for(_=wr+2;_e<_;){if(z===0)break e;z--,ee+=ye[me++]<<_e,_e+=8}if(ee>>>=wr,_e-=wr,M.have===0){Pe.msg="invalid bit length repeat",M.mode=30;break}ve=M.lens[M.have-1],Vt=3+(3&ee),ee>>>=2,_e-=2}else if(dn===17){for(_=wr+3;_e<_;){if(z===0)break e;z--,ee+=ye[me++]<<_e,_e+=8}_e-=wr,ve=0,Vt=3+(7&(ee>>>=wr)),ee>>>=3,_e-=3}else{for(_=wr+7;_e<_;){if(z===0)break e;z--,ee+=ye[me++]<<_e,_e+=8}_e-=wr,ve=0,Vt=11+(127&(ee>>>=wr)),ee>>>=7,_e-=7}if(M.have+Vt>M.nlen+M.ndist){Pe.msg="invalid bit length repeat",M.mode=30;break}for(;Vt--;)M.lens[M.have++]=ve}}if(M.mode===30)break;if(M.lens[256]===0){Pe.msg="invalid code -- missing end-of-block",M.mode=30;break}if(M.lenbits=9,le={bits:M.lenbits},At=C(H,M.lens,0,M.nlen,M.lencode,0,M.work,le),M.lenbits=le.bits,At){Pe.msg="invalid literal/lengths set",M.mode=30;break}if(M.distbits=6,M.distcode=M.distdyn,le={bits:M.distbits},At=C(w,M.lens,M.nlen,M.ndist,M.distcode,0,M.work,le),M.distbits=le.bits,At){Pe.msg="invalid distances set",M.mode=30;break}if(M.mode=20,pe===6)break e;case 20:M.mode=21;case 21:if(6<=z&&258<=j){Pe.next_out=xe,Pe.avail_out=j,Pe.next_in=me,Pe.avail_in=z,M.hold=ee,M.bits=_e,u(Pe,Ft),xe=Pe.next_out,Te=Pe.output,j=Pe.avail_out,me=Pe.next_in,ye=Pe.input,z=Pe.avail_in,ee=M.hold,_e=M.bits,M.mode===12&&(M.back=-1);break}for(M.back=0;fr=(D=M.lencode[ee&(1<<M.lenbits)-1])>>>16&255,dn=65535&D,!((wr=D>>>24)<=_e);){if(z===0)break e;z--,ee+=ye[me++]<<_e,_e+=8}if(fr&&!(240&fr)){for(ar=wr,Vr=fr,ur=dn;fr=(D=M.lencode[ur+((ee&(1<<ar+Vr)-1)>>ar)])>>>16&255,dn=65535&D,!(ar+(wr=D>>>24)<=_e);){if(z===0)break e;z--,ee+=ye[me++]<<_e,_e+=8}ee>>>=ar,_e-=ar,M.back+=ar}if(ee>>>=wr,_e-=wr,M.back+=wr,M.length=dn,fr===0){M.mode=26;break}if(32&fr){M.back=-1,M.mode=12;break}if(64&fr){Pe.msg="invalid literal/length code",M.mode=30;break}M.extra=15&fr,M.mode=22;case 22:if(M.extra){for(_=M.extra;_e<_;){if(z===0)break e;z--,ee+=ye[me++]<<_e,_e+=8}M.length+=ee&(1<<M.extra)-1,ee>>>=M.extra,_e-=M.extra,M.back+=M.extra}M.was=M.length,M.mode=23;case 23:for(;fr=(D=M.distcode[ee&(1<<M.distbits)-1])>>>16&255,dn=65535&D,!((wr=D>>>24)<=_e);){if(z===0)break e;z--,ee+=ye[me++]<<_e,_e+=8}if(!(240&fr)){for(ar=wr,Vr=fr,ur=dn;fr=(D=M.distcode[ur+((ee&(1<<ar+Vr)-1)>>ar)])>>>16&255,dn=65535&D,!(ar+(wr=D>>>24)<=_e);){if(z===0)break e;z--,ee+=ye[me++]<<_e,_e+=8}ee>>>=ar,_e-=ar,M.back+=ar}if(ee>>>=wr,_e-=wr,M.back+=wr,64&fr){Pe.msg="invalid distance code",M.mode=30;break}M.offset=dn,M.extra=15&fr,M.mode=24;case 24:if(M.extra){for(_=M.extra;_e<_;){if(z===0)break e;z--,ee+=ye[me++]<<_e,_e+=8}M.offset+=ee&(1<<M.extra)-1,ee>>>=M.extra,_e-=M.extra,M.back+=M.extra}if(M.offset>M.dmax){Pe.msg="invalid distance too far back",M.mode=30;break}M.mode=25;case 25:if(j===0)break e;if(Vt=Ft-j,M.offset>Vt){if((Vt=M.offset-Vt)>M.whave&&M.sane){Pe.msg="invalid distance too far back",M.mode=30;break}vr=Vt>M.wnext?(Vt-=M.wnext,M.wsize-Vt):M.wnext-Vt,Vt>M.length&&(Vt=M.length),Yr=M.window}else Yr=Te,vr=xe-M.offset,Vt=M.length;for(j<Vt&&(Vt=j),j-=Vt,M.length-=Vt;Te[xe++]=Yr[vr++],--Vt;);M.length===0&&(M.mode=21);break;case 26:if(j===0)break e;Te[xe++]=M.length,j--,M.mode=21;break;case 27:if(M.wrap){for(;_e<32;){if(z===0)break e;z--,ee|=ye[me++]<<_e,_e+=8}if(Ft-=j,Pe.total_out+=Ft,M.total+=Ft,Ft&&(Pe.adler=M.check=M.flags?R(M.check,Te,Ft,xe-Ft):Be(M.check,Te,Ft,xe-Ft)),Ft=j,(M.flags?ee:P(ee))!==M.check){Pe.msg="incorrect data check",M.mode=30;break}_e=ee=0}M.mode=28;case 28:if(M.wrap&&M.flags){for(;_e<32;){if(z===0)break e;z--,ee+=ye[me++]<<_e,_e+=8}if(ee!==(4294967295&M.total)){Pe.msg="incorrect length check",M.mode=30;break}_e=ee=0}M.mode=29;case 29:At=1;break e;case 30:At=-3;break e;case 31:return-4;case 32:default:return B}return Pe.next_out=xe,Pe.avail_out=j,Pe.next_in=me,Pe.avail_in=z,M.hold=ee,M.bits=_e,(M.wsize||Ft!==Pe.avail_out&&M.mode<30&&(M.mode<27||pe!==4))&&st(Pe,Pe.output,Pe.next_out,Ft-Pe.avail_out)?(M.mode=31,-4):(ut-=Pe.avail_in,Ft-=Pe.avail_out,Pe.total_in+=ut,Pe.total_out+=Ft,M.total+=Ft,M.wrap&&Ft&&(Pe.adler=M.check=M.flags?R(M.check,Te,Ft,Pe.next_out-Ft):Be(M.check,Te,Ft,Pe.next_out-Ft)),Pe.data_type=M.bits+(M.last?64:0)+(M.mode===12?128:0)+(M.mode===20||M.mode===15?256:0),(ut==0&&Ft===0||pe===4)&&At===L&&(At=-5),At)},de.inflateEnd=function(Pe){if(!Pe||!Pe.state)return B;var pe=Pe.state;return pe.window&&(pe.window=null),Pe.state=null,L},de.inflateGetHeader=function(Pe,pe){var M;return Pe&&Pe.state&&2&(M=Pe.state).wrap?((M.head=pe).done=!1,L):B},de.inflateSetDictionary=function(Pe,pe){var M,ye=pe.length;return Pe&&Pe.state?(M=Pe.state).wrap!==0&&M.mode!==11?B:M.mode===11&&Be(1,pe,ye,0)!==M.check?-3:st(Pe,pe,ye,ye)?(M.mode=31,-4):(M.havedict=1,L):B},de.inflateInfo="pako inflate (from Nodeca project)"},{"../utils/common":41,"./adler32":43,"./crc32":45,"./inffast":48,"./inftrees":50}],50:[function(Fe,Me,de){"use strict";var I=Fe("../utils/common"),Be=[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],R=[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],u=[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],C=[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];Me.exports=function(H,w,L,B,k,K,V,P){var G,Z,se,oe,De,He,Qe,Ue,qe,st=P.bits,Pe=0,pe=0,M=0,ye=0,Te=0,me=0,xe=0,z=0,j=0,ee=0,_e=null,ut=0,Ft=new I.Buf16(16),Vt=new I.Buf16(16),vr=null,Yr=0;for(Pe=0;Pe<=15;Pe++)Ft[Pe]=0;for(pe=0;pe<B;pe++)Ft[w[L+pe]]++;for(Te=st,ye=15;1<=ye&&Ft[ye]===0;ye--);if(ye<Te&&(Te=ye),ye===0)return k[K++]=20971520,k[K++]=20971520,P.bits=1,0;for(M=1;M<ye&&Ft[M]===0;M++);for(Te<M&&(Te=M),Pe=z=1;Pe<=15;Pe++)if(z<<=1,(z-=Ft[Pe])<0)return-1;if(0<z&&(H===0||ye!==1))return-1;for(Vt[1]=0,Pe=1;Pe<15;Pe++)Vt[Pe+1]=Vt[Pe]+Ft[Pe];for(pe=0;pe<B;pe++)w[L+pe]!==0&&(V[Vt[w[L+pe]]++]=pe);if(He=H===0?(_e=vr=V,19):H===1?(_e=Be,ut-=257,vr=R,Yr-=257,256):(_e=u,vr=C,-1),Pe=M,De=K,xe=pe=ee=0,se=-1,oe=(j=1<<(me=Te))-1,H===1&&852<j||H===2&&592<j)return 1;for(;;){for(Qe=Pe-xe,qe=V[pe]<He?(Ue=0,V[pe]):V[pe]>He?(Ue=vr[Yr+V[pe]],_e[ut+V[pe]]):(Ue=96,0),G=1<<Pe-xe,M=Z=1<<me;k[De+(ee>>xe)+(Z-=G)]=Qe<<24|Ue<<16|qe|0,Z!==0;);for(G=1<<Pe-1;ee&G;)G>>=1;if(G!==0?(ee&=G-1,ee+=G):ee=0,pe++,--Ft[Pe]==0){if(Pe===ye)break;Pe=w[L+V[pe]]}if(Te<Pe&&(ee&oe)!==se){for(xe===0&&(xe=Te),De+=M,z=1<<(me=Pe-xe);me+xe<ye&&!((z-=Ft[me+xe])<=0);)me++,z<<=1;if(j+=1<<me,H===1&&852<j||H===2&&592<j)return 1;k[se=ee&oe]=Te<<24|me<<16|De-K|0}}return ee!==0&&(k[De+ee]=Pe-xe<<24|64<<16|0),P.bits=Te,0}},{"../utils/common":41}],51:[function(Fe,Me,de){"use strict";Me.exports={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"}},{}],52:[function(Fe,Me,de){"use strict";var I=Fe("../utils/common"),Be=0,R=1;function u(D){for(var ae=D.length;0<=--ae;)D[ae]=0}var C=0,H=29,w=256,L=w+1+H,B=30,k=19,K=2*L+1,V=15,P=16,G=7,Z=256,se=16,oe=17,De=18,He=[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],Qe=[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],Ue=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,3,7],qe=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15],st=new Array(2*(L+2));u(st);var Pe=new Array(2*B);u(Pe);var pe=new Array(512);u(pe);var M=new Array(256);u(M);var ye=new Array(H);u(ye);var Te,me,xe,z=new Array(B);function j(D,ae,We,ge,Se){this.static_tree=D,this.extra_bits=ae,this.extra_base=We,this.elems=ge,this.max_length=Se,this.has_stree=D&&D.length}function ee(D,ae){this.dyn_tree=D,this.max_code=0,this.stat_desc=ae}function _e(D){return D<256?pe[D]:pe[256+(D>>>7)]}function ut(D,ae){D.pending_buf[D.pending++]=255&ae,D.pending_buf[D.pending++]=ae>>>8&255}function Ft(D,ae,We){D.bi_valid>P-We?(D.bi_buf|=ae<<D.bi_valid&65535,ut(D,D.bi_buf),D.bi_buf=ae>>P-D.bi_valid,D.bi_valid+=We-P):(D.bi_buf|=ae<<D.bi_valid&65535,D.bi_valid+=We)}function Vt(D,ae,We){Ft(D,We[2*ae],We[2*ae+1])}function vr(D,ae){for(var We=0;We|=1&D,D>>>=1,We<<=1,0<--ae;);return We>>>1}function Yr(D,ae,We){var ge,Se,gt=new Array(V+1),xt=0;for(ge=1;ge<=V;ge++)gt[ge]=xt=xt+We[ge-1]<<1;for(Se=0;Se<=ae;Se++){var Et=D[2*Se+1];Et!==0&&(D[2*Se]=vr(gt[Et]++,Et))}}function wr(D){var ae;for(ae=0;ae<L;ae++)D.dyn_ltree[2*ae]=0;for(ae=0;ae<B;ae++)D.dyn_dtree[2*ae]=0;for(ae=0;ae<k;ae++)D.bl_tree[2*ae]=0;D.dyn_ltree[2*Z]=1,D.opt_len=D.static_len=0,D.last_lit=D.matches=0}function fr(D){8<D.bi_valid?ut(D,D.bi_buf):0<D.bi_valid&&(D.pending_buf[D.pending++]=D.bi_buf),D.bi_buf=0,D.bi_valid=0}function dn(D,ae,We,ge){var Se=2*ae,gt=2*We;return D[Se]<D[gt]||D[Se]===D[gt]&&ge[ae]<=ge[We]}function ar(D,ae,We){for(var ge=D.heap[We],Se=We<<1;Se<=D.heap_len&&(Se<D.heap_len&&dn(ae,D.heap[Se+1],D.heap[Se],D.depth)&&Se++,!dn(ae,ge,D.heap[Se],D.depth));)D.heap[We]=D.heap[Se],We=Se,Se<<=1;D.heap[We]=ge}function Vr(D,ae,We){var ge,Se,gt,xt,Et=0;if(D.last_lit!==0)for(;ge=D.pending_buf[D.d_buf+2*Et]<<8|D.pending_buf[D.d_buf+2*Et+1],Se=D.pending_buf[D.l_buf+Et],Et++,ge===0?Vt(D,Se,ae):(Vt(D,(gt=M[Se])+w+1,ae),(xt=He[gt])!==0&&Ft(D,Se-=ye[gt],xt),Vt(D,gt=_e(--ge),We),(xt=Qe[gt])!==0&&Ft(D,ge-=z[gt],xt)),Et<D.last_lit;);Vt(D,Z,ae)}function ur(D,ae){var We,ge,Se,gt=ae.dyn_tree,xt=ae.stat_desc.static_tree,Et=ae.stat_desc.has_stree,nr=ae.stat_desc.elems,xr=-1;for(D.heap_len=0,D.heap_max=K,We=0;We<nr;We++)gt[2*We]!==0?(D.heap[++D.heap_len]=xr=We,D.depth[We]=0):gt[2*We+1]=0;for(;D.heap_len<2;)gt[2*(Se=D.heap[++D.heap_len]=xr<2?++xr:0)]=1,D.depth[Se]=0,D.opt_len--,Et&&(D.static_len-=xt[2*Se+1]);for(ae.max_code=xr,We=D.heap_len>>1;1<=We;We--)ar(D,gt,We);for(Se=nr;We=D.heap[1],D.heap[1]=D.heap[D.heap_len--],ar(D,gt,1),ge=D.heap[1],D.heap[--D.heap_max]=We,D.heap[--D.heap_max]=ge,gt[2*Se]=gt[2*We]+gt[2*ge],D.depth[Se]=(D.depth[We]>=D.depth[ge]?D.depth[We]:D.depth[ge])+1,gt[2*We+1]=gt[2*ge+1]=Se,D.heap[1]=Se++,ar(D,gt,1),2<=D.heap_len;);D.heap[--D.heap_max]=D.heap[1],function(Tr,Bt){var Mt,Wt,cr,qt,kt,Pr,$t=Bt.dyn_tree,yr=Bt.max_code,An=Bt.stat_desc.static_tree,Y=Bt.stat_desc.has_stree,ie=Bt.stat_desc.extra_bits,Ot=Bt.stat_desc.extra_base,fe=Bt.stat_desc.max_length,Ke=0;for(qt=0;qt<=V;qt++)Tr.bl_count[qt]=0;for($t[2*Tr.heap[Tr.heap_max]+1]=0,Mt=Tr.heap_max+1;Mt<K;Mt++)fe<(qt=$t[2*$t[2*(Wt=Tr.heap[Mt])+1]+1]+1)&&(qt=fe,Ke++),$t[2*Wt+1]=qt,yr<Wt||(Tr.bl_count[qt]++,kt=0,Ot<=Wt&&(kt=ie[Wt-Ot]),Pr=$t[2*Wt],Tr.opt_len+=Pr*(qt+kt),Y&&(Tr.static_len+=Pr*(An[2*Wt+1]+kt)));if(Ke!==0){do{for(qt=fe-1;Tr.bl_count[qt]===0;)qt--;Tr.bl_count[qt]--,Tr.bl_count[qt+1]+=2,Tr.bl_count[fe]--,Ke-=2}while(0<Ke);for(qt=fe;qt!==0;qt--)for(Wt=Tr.bl_count[qt];Wt!==0;)yr<(cr=Tr.heap[--Mt])||($t[2*cr+1]!==qt&&(Tr.opt_len+=(qt-$t[2*cr+1])*$t[2*cr],$t[2*cr+1]=qt),Wt--)}}(D,ae),Yr(gt,xr,D.bl_count)}function ve(D,ae,We){var ge,Se,gt=-1,xt=ae[1],Et=0,nr=7,xr=4;for(xt===0&&(nr=138,xr=3),ae[2*(We+1)+1]=65535,ge=0;ge<=We;ge++)Se=xt,xt=ae[2*(ge+1)+1],++Et<nr&&Se===xt||(Et<xr?D.bl_tree[2*Se]+=Et:Se!==0?(Se!==gt&&D.bl_tree[2*Se]++,D.bl_tree[2*se]++):Et<=10?D.bl_tree[2*oe]++:D.bl_tree[2*De]++,gt=Se,xr=(Et=0)===xt?(nr=138,3):Se===xt?(nr=6,3):(nr=7,4))}function At(D,ae,We){var ge,Se,gt=-1,xt=ae[1],Et=0,nr=7,xr=4;for(xt===0&&(nr=138,xr=3),ge=0;ge<=We;ge++)if(Se=xt,xt=ae[2*(ge+1)+1],!(++Et<nr&&Se===xt)){if(Et<xr)for(;Vt(D,Se,D.bl_tree),--Et!=0;);else Se!==0?(Se!==gt&&(Vt(D,Se,D.bl_tree),Et--),Vt(D,se,D.bl_tree),Ft(D,Et-3,2)):Et<=10?(Vt(D,oe,D.bl_tree),Ft(D,Et-3,3)):(Vt(D,De,D.bl_tree),Ft(D,Et-11,7));gt=Se,xr=(Et=0)===xt?(nr=138,3):Se===xt?(nr=6,3):(nr=7,4)}}u(z);var le=!1;function _(D,ae,We,ge){Ft(D,(C<<1)+(ge?1:0),3),function(Se,gt,xt,Et){fr(Se),Et&&(ut(Se,xt),ut(Se,~xt)),I.arraySet(Se.pending_buf,Se.window,gt,xt,Se.pending),Se.pending+=xt}(D,ae,We,!0)}de._tr_init=function(D){le||(function(){var ae,We,ge,Se,gt,xt=new Array(V+1);for(Se=ge=0;Se<H-1;Se++)for(ye[Se]=ge,ae=0;ae<1<<He[Se];ae++)M[ge++]=Se;for(M[ge-1]=Se,Se=gt=0;Se<16;Se++)for(z[Se]=gt,ae=0;ae<1<<Qe[Se];ae++)pe[gt++]=Se;for(gt>>=7;Se<B;Se++)for(z[Se]=gt<<7,ae=0;ae<1<<Qe[Se]-7;ae++)pe[256+gt++]=Se;for(We=0;We<=V;We++)xt[We]=0;for(ae=0;ae<=143;)st[2*ae+1]=8,ae++,xt[8]++;for(;ae<=255;)st[2*ae+1]=9,ae++,xt[9]++;for(;ae<=279;)st[2*ae+1]=7,ae++,xt[7]++;for(;ae<=287;)st[2*ae+1]=8,ae++,xt[8]++;for(Yr(st,L+1,xt),ae=0;ae<B;ae++)Pe[2*ae+1]=5,Pe[2*ae]=vr(ae,5);Te=new j(st,He,w+1,L,V),me=new j(Pe,Qe,0,B,V),xe=new j(new Array(0),Ue,0,k,G)}(),le=!0),D.l_desc=new ee(D.dyn_ltree,Te),D.d_desc=new ee(D.dyn_dtree,me),D.bl_desc=new ee(D.bl_tree,xe),D.bi_buf=0,D.bi_valid=0,wr(D)},de._tr_stored_block=_,de._tr_flush_block=function(D,ae,We,ge){var Se,gt,xt=0;0<D.level?(D.strm.data_type===2&&(D.strm.data_type=function(Et){var nr,xr=4093624447;for(nr=0;nr<=31;nr++,xr>>>=1)if(1&xr&&Et.dyn_ltree[2*nr]!==0)return Be;if(Et.dyn_ltree[18]!==0||Et.dyn_ltree[20]!==0||Et.dyn_ltree[26]!==0)return R;for(nr=32;nr<w;nr++)if(Et.dyn_ltree[2*nr]!==0)return R;return Be}(D)),ur(D,D.l_desc),ur(D,D.d_desc),xt=function(Et){var nr;for(ve(Et,Et.dyn_ltree,Et.l_desc.max_code),ve(Et,Et.dyn_dtree,Et.d_desc.max_code),ur(Et,Et.bl_desc),nr=k-1;3<=nr&&Et.bl_tree[2*qe[nr]+1]===0;nr--);return Et.opt_len+=3*(nr+1)+5+5+4,nr}(D),Se=D.opt_len+3+7>>>3,(gt=D.static_len+3+7>>>3)<=Se&&(Se=gt)):Se=gt=We+5,We+4<=Se&&ae!==-1?_(D,ae,We,ge):D.strategy===4||gt===Se?(Ft(D,2+(ge?1:0),3),Vr(D,st,Pe)):(Ft(D,4+(ge?1:0),3),function(Et,nr,xr,Tr){var Bt;for(Ft(Et,nr-257,5),Ft(Et,xr-1,5),Ft(Et,Tr-4,4),Bt=0;Bt<Tr;Bt++)Ft(Et,Et.bl_tree[2*qe[Bt]+1],3);At(Et,Et.dyn_ltree,nr-1),At(Et,Et.dyn_dtree,xr-1)}(D,D.l_desc.max_code+1,D.d_desc.max_code+1,xt+1),Vr(D,D.dyn_ltree,D.dyn_dtree)),wr(D),ge&&fr(D)},de._tr_tally=function(D,ae,We){return D.pending_buf[D.d_buf+2*D.last_lit]=ae>>>8&255,D.pending_buf[D.d_buf+2*D.last_lit+1]=255&ae,D.pending_buf[D.l_buf+D.last_lit]=255&We,D.last_lit++,ae===0?D.dyn_ltree[2*We]++:(D.matches++,ae--,D.dyn_ltree[2*(M[We]+w+1)]++,D.dyn_dtree[2*_e(ae)]++),D.last_lit===D.lit_bufsize-1},de._tr_align=function(D){Ft(D,2,3),Vt(D,Z,st),function(ae){ae.bi_valid===16?(ut(ae,ae.bi_buf),ae.bi_buf=0,ae.bi_valid=0):8<=ae.bi_valid&&(ae.pending_buf[ae.pending++]=255&ae.bi_buf,ae.bi_buf>>=8,ae.bi_valid-=8)}(D)}},{"../utils/common":41}],53:[function(Fe,Me,de){"use strict";Me.exports=function(){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}},{}],54:[function(Fe,Me,de){(function(I){(function(Be,R){"use strict";if(!Be.setImmediate){var u,C,H,w,L=1,B={},k=!1,K=Be.document,V=Object.getPrototypeOf&&Object.getPrototypeOf(Be);V=V&&V.setTimeout?V:Be,u={}.toString.call(Be.process)==="[object process]"?function(se){mt.nextTick(function(){G(se)})}:function(){if(Be.postMessage&&!Be.importScripts){var se=!0,oe=Be.onmessage;return Be.onmessage=function(){se=!1},Be.postMessage("","*"),Be.onmessage=oe,se}}()?(w="setImmediate$"+Math.random()+"$",Be.addEventListener?Be.addEventListener("message",Z,!1):Be.attachEvent("onmessage",Z),function(se){Be.postMessage(w+se,"*")}):Be.MessageChannel?((H=new MessageChannel).port1.onmessage=function(se){G(se.data)},function(se){H.port2.postMessage(se)}):K&&"onreadystatechange"in K.createElement("script")?(C=K.documentElement,function(se){var oe=K.createElement("script");oe.onreadystatechange=function(){G(se),oe.onreadystatechange=null,C.removeChild(oe),oe=null},C.appendChild(oe)}):function(se){setTimeout(G,0,se)},V.setImmediate=function(se){typeof se!="function"&&(se=new Function(""+se));for(var oe=new Array(arguments.length-1),De=0;De<oe.length;De++)oe[De]=arguments[De+1];var He={callback:se,args:oe};return B[L]=He,u(L),L++},V.clearImmediate=P}function P(se){delete B[se]}function G(se){if(k)setTimeout(G,0,se);else{var oe=B[se];if(oe){k=!0;try{(function(De){var He=De.callback,Qe=De.args;switch(Qe.length){case 0:He();break;case 1:He(Qe[0]);break;case 2:He(Qe[0],Qe[1]);break;case 3:He(Qe[0],Qe[1],Qe[2]);break;default:He.apply(R,Qe)}})(oe)}finally{P(se),k=!1}}}}function Z(se){se.source===Be&&typeof se.data=="string"&&se.data.indexOf(w)===0&&G(+se.data.slice(w.length))}})(typeof self=="undefined"?I===void 0?this:I:self)}).call(this,typeof je.g!="undefined"?je.g:typeof self!="undefined"?self:typeof window!="undefined"?window:{})},{}]},{},[10])(10)})},15342:function(wn){(function(je,Ie){wn.exports=Ie()})(typeof self!="undefined"?self:this,function(){return function(Sr){var je={};function Ie(mt){if(je[mt])return je[mt].exports;var Fe=je[mt]={i:mt,l:!1,exports:{}};return Sr[mt].call(Fe.exports,Fe,Fe.exports,Ie),Fe.l=!0,Fe.exports}return Ie.m=Sr,Ie.c=je,Ie.d=function(mt,Fe,Me){Ie.o(mt,Fe)||Object.defineProperty(mt,Fe,{enumerable:!0,get:Me})},Ie.r=function(mt){typeof Symbol!="undefined"&&Symbol.toStringTag&&Object.defineProperty(mt,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(mt,"__esModule",{value:!0})},Ie.t=function(mt,Fe){if(Fe&1&&(mt=Ie(mt)),Fe&8||Fe&4&&typeof mt=="object"&&mt&&mt.__esModule)return mt;var Me=Object.create(null);if(Ie.r(Me),Object.defineProperty(Me,"default",{enumerable:!0,value:mt}),Fe&2&&typeof mt!="string")for(var de in mt)Ie.d(Me,de,function(I){return mt[I]}.bind(null,de));return Me},Ie.n=function(mt){var Fe=mt&&mt.__esModule?function(){return mt.default}:function(){return mt};return Ie.d(Fe,"a",Fe),Fe},Ie.o=function(mt,Fe){return Object.prototype.hasOwnProperty.call(mt,Fe)},Ie.p="",Ie(Ie.s=1)}([function(Sr,je,Ie){},function(Sr,je,Ie){"use strict";Ie.r(je);var mt=Ie(0),Fe=function(){function Ee(f,v,x){this.lexer=void 0,this.start=void 0,this.end=void 0,this.lexer=f,this.start=v,this.end=x}return Ee.range=function(v,x){return x?!v||!v.loc||!x.loc||v.loc.lexer!==x.loc.lexer?null:new Ee(v.loc.lexer,v.loc.start,x.loc.end):v&&v.loc},Ee}(),Me=function(){function Ee(v,x){this.text=void 0,this.loc=void 0,this.text=v,this.loc=x}var f=Ee.prototype;return f.range=function(x,Q){return new Ee(Q,Fe.range(this,x))},Ee}(),de=function Ee(f,v){this.position=void 0;var x="KaTeX parse error: "+f,Q,re=v&&v.loc;if(re&&re.start<=re.end){var be=re.lexer.input;Q=re.start;var Ze=re.end;Q===be.length?x+=" at end of input: ":x+=" at position "+(Q+1)+": ";var nt=be.slice(Q,Ze).replace(/[^]/g,"$&\u0332"),St;Q>15?St="\u2026"+be.slice(Q-15,Q):St=be.slice(0,Q);var Jt;Ze+15<be.length?Jt=be.slice(Ze,Ze+15)+"\u2026":Jt=be.slice(Ze),x+=St+nt+Jt}var dr=new Error(x);return dr.name="ParseError",dr.__proto__=Ee.prototype,dr.position=Q,dr};de.prototype.__proto__=Error.prototype;var I=de,Be=function(f,v){return f.indexOf(v)!==-1},R=function(f,v){return f===void 0?v:f},u=/([A-Z])/g,C=function(f){return f.replace(u,"-$1").toLowerCase()},H={"&":"&",">":">","<":"<",'"':""","'":"'"},w=/[&><"']/g;function L(Ee){return String(Ee).replace(w,function(f){return H[f]})}var B=function Ee(f){return f.type==="ordgroup"||f.type==="color"?f.body.length===1?Ee(f.body[0]):f:f.type==="font"?Ee(f.body):f},k=function(f){var v=B(f);return v.type==="mathord"||v.type==="textord"||v.type==="atom"},K=function(f){if(!f)throw new Error("Expected non-null, but got "+String(f));return f},V=function(f){var v=/^\s*([^\\/#]*?)(?::|�*58|�*3a)/i.exec(f);return v!=null?v[1]:"_relative"},P={contains:Be,deflt:R,escape:L,hyphenate:C,getBaseElem:B,isCharacterBox:k,protocolFromUrl:V},G=function(){function Ee(v){this.displayMode=void 0,this.output=void 0,this.leqno=void 0,this.fleqn=void 0,this.throwOnError=void 0,this.errorColor=void 0,this.macros=void 0,this.minRuleThickness=void 0,this.colorIsTextColor=void 0,this.strict=void 0,this.trust=void 0,this.maxSize=void 0,this.maxExpand=void 0,v=v||{},this.displayMode=P.deflt(v.displayMode,!1),this.output=P.deflt(v.output,"htmlAndMathml"),this.leqno=P.deflt(v.leqno,!1),this.fleqn=P.deflt(v.fleqn,!1),this.throwOnError=P.deflt(v.throwOnError,!0),this.errorColor=P.deflt(v.errorColor,"#cc0000"),this.macros=v.macros||{},this.minRuleThickness=Math.max(0,P.deflt(v.minRuleThickness,0)),this.colorIsTextColor=P.deflt(v.colorIsTextColor,!1),this.strict=P.deflt(v.strict,"warn"),this.trust=P.deflt(v.trust,!1),this.maxSize=Math.max(0,P.deflt(v.maxSize,1/0)),this.maxExpand=Math.max(0,P.deflt(v.maxExpand,1e3))}var f=Ee.prototype;return f.reportNonstrict=function(x,Q,re){var be=this.strict;if(typeof be=="function"&&(be=be(x,Q,re)),!(!be||be==="ignore")){if(be===!0||be==="error")throw new I("LaTeX-incompatible input and strict mode is set to 'error': "+(Q+" ["+x+"]"),re);be==="warn"?typeof console!="undefined"&&console.warn("LaTeX-incompatible input and strict mode is set to 'warn': "+(Q+" ["+x+"]")):typeof console!="undefined"&&console.warn("LaTeX-incompatible input and strict mode is set to "+("unrecognized '"+be+"': "+Q+" ["+x+"]"))}},f.useStrictBehavior=function(x,Q,re){var be=this.strict;if(typeof be=="function")try{be=be(x,Q,re)}catch(Ze){be="error"}return!be||be==="ignore"?!1:be===!0||be==="error"?!0:be==="warn"?(typeof console!="undefined"&&console.warn("LaTeX-incompatible input and strict mode is set to 'warn': "+(Q+" ["+x+"]")),!1):(typeof console!="undefined"&&console.warn("LaTeX-incompatible input and strict mode is set to "+("unrecognized '"+be+"': "+Q+" ["+x+"]")),!1)},f.isTrusted=function(x){x.url&&!x.protocol&&(x.protocol=P.protocolFromUrl(x.url));var Q=typeof this.trust=="function"?this.trust(x):this.trust;return!!Q},Ee}(),Z=function(){function Ee(v,x,Q){this.id=void 0,this.size=void 0,this.cramped=void 0,this.id=v,this.size=x,this.cramped=Q}var f=Ee.prototype;return f.sup=function(){return Pe[pe[this.id]]},f.sub=function(){return Pe[M[this.id]]},f.fracNum=function(){return Pe[ye[this.id]]},f.fracDen=function(){return Pe[Te[this.id]]},f.cramp=function(){return Pe[me[this.id]]},f.text=function(){return Pe[xe[this.id]]},f.isTight=function(){return this.size>=2},Ee}(),se=0,oe=1,De=2,He=3,Qe=4,Ue=5,qe=6,st=7,Pe=[new Z(se,0,!1),new Z(oe,0,!0),new Z(De,1,!1),new Z(He,1,!0),new Z(Qe,2,!1),new Z(Ue,2,!0),new Z(qe,3,!1),new Z(st,3,!0)],pe=[Qe,Ue,Qe,Ue,qe,st,qe,st],M=[Ue,Ue,Ue,Ue,st,st,st,st],ye=[De,He,Qe,Ue,qe,st,qe,st],Te=[He,He,Ue,Ue,st,st,st,st],me=[oe,oe,He,He,Ue,Ue,st,st],xe=[se,oe,De,He,De,He,De,He],z={DISPLAY:Pe[se],TEXT:Pe[De],SCRIPT:Pe[Qe],SCRIPTSCRIPT:Pe[qe]},j=[{name:"latin",blocks:[[256,591],[768,879]]},{name:"cyrillic",blocks:[[1024,1279]]},{name:"brahmic",blocks:[[2304,4255]]},{name:"georgian",blocks:[[4256,4351]]},{name:"cjk",blocks:[[12288,12543],[19968,40879],[65280,65376]]},{name:"hangul",blocks:[[44032,55215]]}];function ee(Ee){for(var f=0;f<j.length;f++)for(var v=j[f],x=0;x<v.blocks.length;x++){var Q=v.blocks[x];if(Ee>=Q[0]&&Ee<=Q[1])return v.name}return null}var _e=[];j.forEach(function(Ee){return Ee.blocks.forEach(function(f){return _e.push.apply(_e,f)})});function ut(Ee){for(var f=0;f<_e.length;f+=2)if(Ee>=_e[f]&&Ee<=_e[f+1])return!0;return!1}var Ft=80,Vt=function(f,v){return"M95,"+(622+f+v)+`
|
|
|
c-2.7,0,-7.17,-2.7,-13.5,-8c-5.8,-5.3,-9.5,-10,-9.5,-14
|
|
|
c0,-2,0.3,-3.3,1,-4c1.3,-2.7,23.83,-20.7,67.5,-54
|
|
|
c44.2,-33.3,65.8,-50.3,66.5,-51c1.3,-1.3,3,-2,5,-2c4.7,0,8.7,3.3,12,10
|
|
|
s173,378,173,378c0.7,0,35.3,-71,104,-213c68.7,-142,137.5,-285,206.5,-429
|
|
|
c69,-144,104.5,-217.7,106.5,-221
|
|
|
l`+f/2.075+" -"+f+`
|
|
|
c5.3,-9.3,12,-14,20,-14
|
|
|
H400000v`+(40+f)+`H845.2724
|
|
|
s-225.272,467,-225.272,467s-235,486,-235,486c-2.7,4.7,-9,7,-19,7
|
|
|
c-6,0,-10,-1,-12,-3s-194,-422,-194,-422s-65,47,-65,47z
|
|
|
M`+(834+f)+" "+v+"h400000v"+(40+f)+"h-400000z"},vr=function(f,v){return"M263,"+(601+f+v)+`c0.7,0,18,39.7,52,119
|
|
|
c34,79.3,68.167,158.7,102.5,238c34.3,79.3,51.8,119.3,52.5,120
|
|
|
c340,-704.7,510.7,-1060.3,512,-1067
|
|
|
l`+f/2.084+" -"+f+`
|
|
|
c4.7,-7.3,11,-11,19,-11
|
|
|
H40000v`+(40+f)+`H1012.3
|
|
|
s-271.3,567,-271.3,567c-38.7,80.7,-84,175,-136,283c-52,108,-89.167,185.3,-111.5,232
|
|
|
c-22.3,46.7,-33.8,70.3,-34.5,71c-4.7,4.7,-12.3,7,-23,7s-12,-1,-12,-1
|
|
|
s-109,-253,-109,-253c-72.7,-168,-109.3,-252,-110,-252c-10.7,8,-22,16.7,-34,26
|
|
|
c-22,17.3,-33.3,26,-34,26s-26,-26,-26,-26s76,-59,76,-59s76,-60,76,-60z
|
|
|
M`+(1001+f)+" "+v+"h400000v"+(40+f)+"h-400000z"},Yr=function(f,v){return"M983 "+(10+f+v)+`
|
|
|
l`+f/3.13+" -"+f+`
|
|
|
c4,-6.7,10,-10,18,-10 H400000v`+(40+f)+`
|
|
|
H1013.1s-83.4,268,-264.1,840c-180.7,572,-277,876.3,-289,913c-4.7,4.7,-12.7,7,-24,7
|
|
|
s-12,0,-12,0c-1.3,-3.3,-3.7,-11.7,-7,-25c-35.3,-125.3,-106.7,-373.3,-214,-744
|
|
|
c-10,12,-21,25,-33,39s-32,39,-32,39c-6,-5.3,-15,-14,-27,-26s25,-30,25,-30
|
|
|
c26.7,-32.7,52,-63,76,-91s52,-60,52,-60s208,722,208,722
|
|
|
c56,-175.3,126.3,-397.3,211,-666c84.7,-268.7,153.8,-488.2,207.5,-658.5
|
|
|
c53.7,-170.3,84.5,-266.8,92.5,-289.5z
|
|
|
M`+(1001+f)+" "+v+"h400000v"+(40+f)+"h-400000z"},wr=function(f,v){return"M424,"+(2398+f+v)+`
|
|
|
c-1.3,-0.7,-38.5,-172,-111.5,-514c-73,-342,-109.8,-513.3,-110.5,-514
|
|
|
c0,-2,-10.7,14.3,-32,49c-4.7,7.3,-9.8,15.7,-15.5,25c-5.7,9.3,-9.8,16,-12.5,20
|
|
|
s-5,7,-5,7c-4,-3.3,-8.3,-7.7,-13,-13s-13,-13,-13,-13s76,-122,76,-122s77,-121,77,-121
|
|
|
s209,968,209,968c0,-2,84.7,-361.7,254,-1079c169.3,-717.3,254.7,-1077.7,256,-1081
|
|
|
l`+f/4.223+" -"+f+`c4,-6.7,10,-10,18,-10 H400000
|
|
|
v`+(40+f)+`H1014.6
|
|
|
s-87.3,378.7,-272.6,1166c-185.3,787.3,-279.3,1182.3,-282,1185
|
|
|
c-2,6,-10,9,-24,9
|
|
|
c-8,0,-12,-0.7,-12,-2z M`+(1001+f)+" "+v+`
|
|
|
h400000v`+(40+f)+"h-400000z"},fr=function(f,v){return"M473,"+(2713+f+v)+`
|
|
|
c339.3,-1799.3,509.3,-2700,510,-2702 l`+f/5.298+" -"+f+`
|
|
|
c3.3,-7.3,9.3,-11,18,-11 H400000v`+(40+f)+`H1017.7
|
|
|
s-90.5,478,-276.2,1466c-185.7,988,-279.5,1483,-281.5,1485c-2,6,-10,9,-24,9
|
|
|
c-8,0,-12,-0.7,-12,-2c0,-1.3,-5.3,-32,-16,-92c-50.7,-293.3,-119.7,-693.3,-207,-1200
|
|
|
c0,-1.3,-5.3,8.7,-16,30c-10.7,21.3,-21.3,42.7,-32,64s-16,33,-16,33s-26,-26,-26,-26
|
|
|
s76,-153,76,-153s77,-151,77,-151c0.7,0.7,35.7,202,105,604c67.3,400.7,102,602.7,104,
|
|
|
606zM`+(1001+f)+" "+v+"h400000v"+(40+f)+"H1017.7z"},dn=function(f,v,x){var Q=x-54-v-f;return"M702 "+(f+v)+"H400000"+(40+f)+`
|
|
|
H742v`+Q+`l-4 4-4 4c-.667.7 -2 1.5-4 2.5s-4.167 1.833-6.5 2.5-5.5 1-9.5 1
|
|
|
h-12l-28-84c-16.667-52-96.667 -294.333-240-727l-212 -643 -85 170
|
|
|
c-4-3.333-8.333-7.667-13 -13l-13-13l77-155 77-156c66 199.333 139 419.667
|
|
|
219 661 l218 661zM702 `+v+"H400000v"+(40+f)+"H742z"},ar=function(f,v,x){v=1e3*v;var Q="";switch(f){case"sqrtMain":Q=Vt(v,Ft);break;case"sqrtSize1":Q=vr(v,Ft);break;case"sqrtSize2":Q=Yr(v,Ft);break;case"sqrtSize3":Q=wr(v,Ft);break;case"sqrtSize4":Q=fr(v,Ft);break;case"sqrtTall":Q=dn(v,Ft,x)}return Q},Vr={doubleleftarrow:`M262 157
|
|
|
l10-10c34-36 62.7-77 86-123 3.3-8 5-13.3 5-16 0-5.3-6.7-8-20-8-7.3
|
|
|
0-12.2.5-14.5 1.5-2.3 1-4.8 4.5-7.5 10.5-49.3 97.3-121.7 169.3-217 216-28
|
|
|
14-57.3 25-88 33-6.7 2-11 3.8-13 5.5-2 1.7-3 4.2-3 7.5s1 5.8 3 7.5
|
|
|
c2 1.7 6.3 3.5 13 5.5 68 17.3 128.2 47.8 180.5 91.5 52.3 43.7 93.8 96.2 124.5
|
|
|
157.5 9.3 8 15.3 12.3 18 13h6c12-.7 18-4 18-10 0-2-1.7-7-5-15-23.3-46-52-87
|
|
|
-86-123l-10-10h399738v-40H218c328 0 0 0 0 0l-10-8c-26.7-20-65.7-43-117-69 2.7
|
|
|
-2 6-3.7 10-5 36.7-16 72.3-37.3 107-64l10-8h399782v-40z
|
|
|
m8 0v40h399730v-40zm0 194v40h399730v-40z`,doublerightarrow:`M399738 392l
|
|
|
-10 10c-34 36-62.7 77-86 123-3.3 8-5 13.3-5 16 0 5.3 6.7 8 20 8 7.3 0 12.2-.5
|
|
|
14.5-1.5 2.3-1 4.8-4.5 7.5-10.5 49.3-97.3 121.7-169.3 217-216 28-14 57.3-25 88
|
|
|
-33 6.7-2 11-3.8 13-5.5 2-1.7 3-4.2 3-7.5s-1-5.8-3-7.5c-2-1.7-6.3-3.5-13-5.5-68
|
|
|
-17.3-128.2-47.8-180.5-91.5-52.3-43.7-93.8-96.2-124.5-157.5-9.3-8-15.3-12.3-18
|
|
|
-13h-6c-12 .7-18 4-18 10 0 2 1.7 7 5 15 23.3 46 52 87 86 123l10 10H0v40h399782
|
|
|
c-328 0 0 0 0 0l10 8c26.7 20 65.7 43 117 69-2.7 2-6 3.7-10 5-36.7 16-72.3 37.3
|
|
|
-107 64l-10 8H0v40zM0 157v40h399730v-40zm0 194v40h399730v-40z`,leftarrow:`M400000 241H110l3-3c68.7-52.7 113.7-120
|
|
|
135-202 4-14.7 6-23 6-25 0-7.3-7-11-21-11-8 0-13.2.8-15.5 2.5-2.3 1.7-4.2 5.8
|
|
|
-5.5 12.5-1.3 4.7-2.7 10.3-4 17-12 48.7-34.8 92-68.5 130S65.3 228.3 18 247
|
|
|
c-10 4-16 7.7-18 11 0 8.7 6 14.3 18 17 47.3 18.7 87.8 47 121.5 85S196 441.3 208
|
|
|
490c.7 2 1.3 5 2 9s1.2 6.7 1.5 8c.3 1.3 1 3.3 2 6s2.2 4.5 3.5 5.5c1.3 1 3.3
|
|
|
1.8 6 2.5s6 1 10 1c14 0 21-3.7 21-11 0-2-2-10.3-6-25-20-79.3-65-146.7-135-202
|
|
|
l-3-3h399890zM100 241v40h399900v-40z`,leftbrace:`M6 548l-6-6v-35l6-11c56-104 135.3-181.3 238-232 57.3-28.7 117
|
|
|
-45 179-50h399577v120H403c-43.3 7-81 15-113 26-100.7 33-179.7 91-237 174-2.7
|
|
|
5-6 9-10 13-.7 1-7.3 1-20 1H6z`,leftbraceunder:`M0 6l6-6h17c12.688 0 19.313.3 20 1 4 4 7.313 8.3 10 13
|
|
|
35.313 51.3 80.813 93.8 136.5 127.5 55.688 33.7 117.188 55.8 184.5 66.5.688
|
|
|
0 2 .3 4 1 18.688 2.7 76 4.3 172 5h399450v120H429l-6-1c-124.688-8-235-61.7
|
|
|
-331-161C60.687 138.7 32.312 99.3 7 54L0 41V6z`,leftgroup:`M400000 80
|
|
|
H435C64 80 168.3 229.4 21 260c-5.9 1.2-18 0-18 0-2 0-3-1-3-3v-38C76 61 257 0
|
|
|
435 0h399565z`,leftgroupunder:`M400000 262
|
|
|
H435C64 262 168.3 112.6 21 82c-5.9-1.2-18 0-18 0-2 0-3 1-3 3v38c76 158 257 219
|
|
|
435 219h399565z`,leftharpoon:`M0 267c.7 5.3 3 10 7 14h399993v-40H93c3.3
|
|
|
-3.3 10.2-9.5 20.5-18.5s17.8-15.8 22.5-20.5c50.7-52 88-110.3 112-175 4-11.3 5
|
|
|
-18.3 3-21-1.3-4-7.3-6-18-6-8 0-13 .7-15 2s-4.7 6.7-8 16c-42 98.7-107.3 174.7
|
|
|
-196 228-6.7 4.7-10.7 8-12 10-1.3 2-2 5.7-2 11zm100-26v40h399900v-40z`,leftharpoonplus:`M0 267c.7 5.3 3 10 7 14h399993v-40H93c3.3-3.3 10.2-9.5
|
|
|
20.5-18.5s17.8-15.8 22.5-20.5c50.7-52 88-110.3 112-175 4-11.3 5-18.3 3-21-1.3
|
|
|
-4-7.3-6-18-6-8 0-13 .7-15 2s-4.7 6.7-8 16c-42 98.7-107.3 174.7-196 228-6.7 4.7
|
|
|
-10.7 8-12 10-1.3 2-2 5.7-2 11zm100-26v40h399900v-40zM0 435v40h400000v-40z
|
|
|
m0 0v40h400000v-40z`,leftharpoondown:`M7 241c-4 4-6.333 8.667-7 14 0 5.333.667 9 2 11s5.333
|
|
|
5.333 12 10c90.667 54 156 130 196 228 3.333 10.667 6.333 16.333 9 17 2 .667 5
|
|
|
1 9 1h5c10.667 0 16.667-2 18-6 2-2.667 1-9.667-3-21-32-87.333-82.667-157.667
|
|
|
-152-211l-3-3h399907v-40zM93 281 H400000 v-40L7 241z`,leftharpoondownplus:`M7 435c-4 4-6.3 8.7-7 14 0 5.3.7 9 2 11s5.3 5.3 12
|
|
|
10c90.7 54 156 130 196 228 3.3 10.7 6.3 16.3 9 17 2 .7 5 1 9 1h5c10.7 0 16.7
|
|
|
-2 18-6 2-2.7 1-9.7-3-21-32-87.3-82.7-157.7-152-211l-3-3h399907v-40H7zm93 0
|
|
|
v40h399900v-40zM0 241v40h399900v-40zm0 0v40h399900v-40z`,lefthook:`M400000 281 H103s-33-11.2-61-33.5S0 197.3 0 164s14.2-61.2 42.5
|
|
|
-83.5C70.8 58.2 104 47 142 47 c16.7 0 25 6.7 25 20 0 12-8.7 18.7-26 20-40 3.3
|
|
|
-68.7 15.7-86 37-10 12-15 25.3-15 40 0 22.7 9.8 40.7 29.5 54 19.7 13.3 43.5 21
|
|
|
71.5 23h399859zM103 281v-40h399897v40z`,leftlinesegment:`M40 281 V428 H0 V94 H40 V241 H400000 v40z
|
|
|
M40 281 V428 H0 V94 H40 V241 H400000 v40z`,leftmapsto:`M40 281 V448H0V74H40V241H400000v40z
|
|
|
M40 281 V448H0V74H40V241H400000v40z`,leftToFrom:`M0 147h400000v40H0zm0 214c68 40 115.7 95.7 143 167h22c15.3 0 23
|
|
|
-.3 23-1 0-1.3-5.3-13.7-16-37-18-35.3-41.3-69-70-101l-7-8h399905v-40H95l7-8
|
|
|
c28.7-32 52-65.7 70-101 10.7-23.3 16-35.7 16-37 0-.7-7.7-1-23-1h-22C115.7 265.3
|
|
|
68 321 0 361zm0-174v-40h399900v40zm100 154v40h399900v-40z`,longequal:`M0 50 h400000 v40H0z m0 194h40000v40H0z
|
|
|
M0 50 h400000 v40H0z m0 194h40000v40H0z`,midbrace:`M200428 334
|
|
|
c-100.7-8.3-195.3-44-280-108-55.3-42-101.7-93-139-153l-9-14c-2.7 4-5.7 8.7-9 14
|
|
|
-53.3 86.7-123.7 153-211 199-66.7 36-137.3 56.3-212 62H0V214h199568c178.3-11.7
|
|
|
311.7-78.3 403-201 6-8 9.7-12 11-12 .7-.7 6.7-1 18-1s17.3.3 18 1c1.3 0 5 4 11
|
|
|
12 44.7 59.3 101.3 106.3 170 141s145.3 54.3 229 60h199572v120z`,midbraceunder:`M199572 214
|
|
|
c100.7 8.3 195.3 44 280 108 55.3 42 101.7 93 139 153l9 14c2.7-4 5.7-8.7 9-14
|
|
|
53.3-86.7 123.7-153 211-199 66.7-36 137.3-56.3 212-62h199568v120H200432c-178.3
|
|
|
11.7-311.7 78.3-403 201-6 8-9.7 12-11 12-.7.7-6.7 1-18 1s-17.3-.3-18-1c-1.3 0
|
|
|
-5-4-11-12-44.7-59.3-101.3-106.3-170-141s-145.3-54.3-229-60H0V214z`,oiintSize1:`M512.6 71.6c272.6 0 320.3 106.8 320.3 178.2 0 70.8-47.7 177.6
|
|
|
-320.3 177.6S193.1 320.6 193.1 249.8c0-71.4 46.9-178.2 319.5-178.2z
|
|
|
m368.1 178.2c0-86.4-60.9-215.4-368.1-215.4-306.4 0-367.3 129-367.3 215.4 0 85.8
|
|
|
60.9 214.8 367.3 214.8 307.2 0 368.1-129 368.1-214.8z`,oiintSize2:`M757.8 100.1c384.7 0 451.1 137.6 451.1 230 0 91.3-66.4 228.8
|
|
|
-451.1 228.8-386.3 0-452.7-137.5-452.7-228.8 0-92.4 66.4-230 452.7-230z
|
|
|
m502.4 230c0-111.2-82.4-277.2-502.4-277.2s-504 166-504 277.2
|
|
|
c0 110 84 276 504 276s502.4-166 502.4-276z`,oiiintSize1:`M681.4 71.6c408.9 0 480.5 106.8 480.5 178.2 0 70.8-71.6 177.6
|
|
|
-480.5 177.6S202.1 320.6 202.1 249.8c0-71.4 70.5-178.2 479.3-178.2z
|
|
|
m525.8 178.2c0-86.4-86.8-215.4-525.7-215.4-437.9 0-524.7 129-524.7 215.4 0
|
|
|
85.8 86.8 214.8 524.7 214.8 438.9 0 525.7-129 525.7-214.8z`,oiiintSize2:`M1021.2 53c603.6 0 707.8 165.8 707.8 277.2 0 110-104.2 275.8
|
|
|
-707.8 275.8-606 0-710.2-165.8-710.2-275.8C311 218.8 415.2 53 1021.2 53z
|
|
|
m770.4 277.1c0-131.2-126.4-327.6-770.5-327.6S248.4 198.9 248.4 330.1
|
|
|
c0 130 128.8 326.4 772.7 326.4s770.5-196.4 770.5-326.4z`,rightarrow:`M0 241v40h399891c-47.3 35.3-84 78-110 128
|
|
|
-16.7 32-27.7 63.7-33 95 0 1.3-.2 2.7-.5 4-.3 1.3-.5 2.3-.5 3 0 7.3 6.7 11 20
|
|
|
11 8 0 13.2-.8 15.5-2.5 2.3-1.7 4.2-5.5 5.5-11.5 2-13.3 5.7-27 11-41 14.7-44.7
|
|
|
39-84.5 73-119.5s73.7-60.2 119-75.5c6-2 9-5.7 9-11s-3-9-9-11c-45.3-15.3-85
|
|
|
-40.5-119-75.5s-58.3-74.8-73-119.5c-4.7-14-8.3-27.3-11-40-1.3-6.7-3.2-10.8-5.5
|
|
|
-12.5-2.3-1.7-7.5-2.5-15.5-2.5-14 0-21 3.7-21 11 0 2 2 10.3 6 25 20.7 83.3 67
|
|
|
151.7 139 205zm0 0v40h399900v-40z`,rightbrace:`M400000 542l
|
|
|
-6 6h-17c-12.7 0-19.3-.3-20-1-4-4-7.3-8.3-10-13-35.3-51.3-80.8-93.8-136.5-127.5
|
|
|
s-117.2-55.8-184.5-66.5c-.7 0-2-.3-4-1-18.7-2.7-76-4.3-172-5H0V214h399571l6 1
|
|
|
c124.7 8 235 61.7 331 161 31.3 33.3 59.7 72.7 85 118l7 13v35z`,rightbraceunder:`M399994 0l6 6v35l-6 11c-56 104-135.3 181.3-238 232-57.3
|
|
|
28.7-117 45-179 50H-300V214h399897c43.3-7 81-15 113-26 100.7-33 179.7-91 237
|
|
|
-174 2.7-5 6-9 10-13 .7-1 7.3-1 20-1h17z`,rightgroup:`M0 80h399565c371 0 266.7 149.4 414 180 5.9 1.2 18 0 18 0 2 0
|
|
|
3-1 3-3v-38c-76-158-257-219-435-219H0z`,rightgroupunder:`M0 262h399565c371 0 266.7-149.4 414-180 5.9-1.2 18 0 18
|
|
|
0 2 0 3 1 3 3v38c-76 158-257 219-435 219H0z`,rightharpoon:`M0 241v40h399993c4.7-4.7 7-9.3 7-14 0-9.3
|
|
|
-3.7-15.3-11-18-92.7-56.7-159-133.7-199-231-3.3-9.3-6-14.7-8-16-2-1.3-7-2-15-2
|
|
|
-10.7 0-16.7 2-18 6-2 2.7-1 9.7 3 21 15.3 42 36.7 81.8 64 119.5 27.3 37.7 58
|
|
|
69.2 92 94.5zm0 0v40h399900v-40z`,rightharpoonplus:`M0 241v40h399993c4.7-4.7 7-9.3 7-14 0-9.3-3.7-15.3-11
|
|
|
-18-92.7-56.7-159-133.7-199-231-3.3-9.3-6-14.7-8-16-2-1.3-7-2-15-2-10.7 0-16.7
|
|
|
2-18 6-2 2.7-1 9.7 3 21 15.3 42 36.7 81.8 64 119.5 27.3 37.7 58 69.2 92 94.5z
|
|
|
m0 0v40h399900v-40z m100 194v40h399900v-40zm0 0v40h399900v-40z`,rightharpoondown:`M399747 511c0 7.3 6.7 11 20 11 8 0 13-.8 15-2.5s4.7-6.8
|
|
|
8-15.5c40-94 99.3-166.3 178-217 13.3-8 20.3-12.3 21-13 5.3-3.3 8.5-5.8 9.5
|
|
|
-7.5 1-1.7 1.5-5.2 1.5-10.5s-2.3-10.3-7-15H0v40h399908c-34 25.3-64.7 57-92 95
|
|
|
-27.3 38-48.7 77.7-64 119-3.3 8.7-5 14-5 16zM0 241v40h399900v-40z`,rightharpoondownplus:`M399747 705c0 7.3 6.7 11 20 11 8 0 13-.8
|
|
|
15-2.5s4.7-6.8 8-15.5c40-94 99.3-166.3 178-217 13.3-8 20.3-12.3 21-13 5.3-3.3
|
|
|
8.5-5.8 9.5-7.5 1-1.7 1.5-5.2 1.5-10.5s-2.3-10.3-7-15H0v40h399908c-34 25.3
|
|
|
-64.7 57-92 95-27.3 38-48.7 77.7-64 119-3.3 8.7-5 14-5 16zM0 435v40h399900v-40z
|
|
|
m0-194v40h400000v-40zm0 0v40h400000v-40z`,righthook:`M399859 241c-764 0 0 0 0 0 40-3.3 68.7-15.7 86-37 10-12 15-25.3
|
|
|
15-40 0-22.7-9.8-40.7-29.5-54-19.7-13.3-43.5-21-71.5-23-17.3-1.3-26-8-26-20 0
|
|
|
-13.3 8.7-20 26-20 38 0 71 11.2 99 33.5 0 0 7 5.6 21 16.7 14 11.2 21 33.5 21
|
|
|
66.8s-14 61.2-42 83.5c-28 22.3-61 33.5-99 33.5L0 241z M0 281v-40h399859v40z`,rightlinesegment:`M399960 241 V94 h40 V428 h-40 V281 H0 v-40z
|
|
|
M399960 241 V94 h40 V428 h-40 V281 H0 v-40z`,rightToFrom:`M400000 167c-70.7-42-118-97.7-142-167h-23c-15.3 0-23 .3-23
|
|
|
1 0 1.3 5.3 13.7 16 37 18 35.3 41.3 69 70 101l7 8H0v40h399905l-7 8c-28.7 32
|
|
|
-52 65.7-70 101-10.7 23.3-16 35.7-16 37 0 .7 7.7 1 23 1h23c24-69.3 71.3-125 142
|
|
|
-167z M100 147v40h399900v-40zM0 341v40h399900v-40z`,twoheadleftarrow:`M0 167c68 40
|
|
|
115.7 95.7 143 167h22c15.3 0 23-.3 23-1 0-1.3-5.3-13.7-16-37-18-35.3-41.3-69
|
|
|
-70-101l-7-8h125l9 7c50.7 39.3 85 86 103 140h46c0-4.7-6.3-18.7-19-42-18-35.3
|
|
|
-40-67.3-66-96l-9-9h399716v-40H284l9-9c26-28.7 48-60.7 66-96 12.7-23.333 19
|
|
|
-37.333 19-42h-46c-18 54-52.3 100.7-103 140l-9 7H95l7-8c28.7-32 52-65.7 70-101
|
|
|
10.7-23.333 16-35.7 16-37 0-.7-7.7-1-23-1h-22C115.7 71.3 68 127 0 167z`,twoheadrightarrow:`M400000 167
|
|
|
c-68-40-115.7-95.7-143-167h-22c-15.3 0-23 .3-23 1 0 1.3 5.3 13.7 16 37 18 35.3
|
|
|
41.3 69 70 101l7 8h-125l-9-7c-50.7-39.3-85-86-103-140h-46c0 4.7 6.3 18.7 19 42
|
|
|
18 35.3 40 67.3 66 96l9 9H0v40h399716l-9 9c-26 28.7-48 60.7-66 96-12.7 23.333
|
|
|
-19 37.333-19 42h46c18-54 52.3-100.7 103-140l9-7h125l-7 8c-28.7 32-52 65.7-70
|
|
|
101-10.7 23.333-16 35.7-16 37 0 .7 7.7 1 23 1h22c27.3-71.3 75-127 143-167z`,tilde1:`M200 55.538c-77 0-168 73.953-177 73.953-3 0-7
|
|
|
-2.175-9-5.437L2 97c-1-2-2-4-2-6 0-4 2-7 5-9l20-12C116 12 171 0 207 0c86 0
|
|
|
114 68 191 68 78 0 168-68 177-68 4 0 7 2 9 5l12 19c1 2.175 2 4.35 2 6.525 0
|
|
|
4.35-2 7.613-5 9.788l-19 13.05c-92 63.077-116.937 75.308-183 76.128
|
|
|
-68.267.847-113-73.952-191-73.952z`,tilde2:`M344 55.266c-142 0-300.638 81.316-311.5 86.418
|
|
|
-8.01 3.762-22.5 10.91-23.5 5.562L1 120c-1-2-1-3-1-4 0-5 3-9 8-10l18.4-9C160.9
|
|
|
31.9 283 0 358 0c148 0 188 122 331 122s314-97 326-97c4 0 8 2 10 7l7 21.114
|
|
|
c1 2.14 1 3.21 1 4.28 0 5.347-3 9.626-7 10.696l-22.3 12.622C852.6 158.372 751
|
|
|
181.476 676 181.476c-149 0-189-126.21-332-126.21z`,tilde3:`M786 59C457 59 32 175.242 13 175.242c-6 0-10-3.457
|
|
|
-11-10.37L.15 138c-1-7 3-12 10-13l19.2-6.4C378.4 40.7 634.3 0 804.3 0c337 0
|
|
|
411.8 157 746.8 157 328 0 754-112 773-112 5 0 10 3 11 9l1 14.075c1 8.066-.697
|
|
|
16.595-6.697 17.492l-21.052 7.31c-367.9 98.146-609.15 122.696-778.15 122.696
|
|
|
-338 0-409-156.573-744-156.573z`,tilde4:`M786 58C457 58 32 177.487 13 177.487c-6 0-10-3.345
|
|
|
-11-10.035L.15 143c-1-7 3-12 10-13l22-6.7C381.2 35 637.15 0 807.15 0c337 0 409
|
|
|
177 744 177 328 0 754-127 773-127 5 0 10 3 11 9l1 14.794c1 7.805-3 13.38-9
|
|
|
14.495l-20.7 5.574c-366.85 99.79-607.3 139.372-776.3 139.372-338 0-409
|
|
|
-175.236-744-175.236z`,vec:`M377 20c0-5.333 1.833-10 5.5-14S391 0 397 0c4.667 0 8.667 1.667 12 5
|
|
|
3.333 2.667 6.667 9 10 19 6.667 24.667 20.333 43.667 41 57 7.333 4.667 11
|
|
|
10.667 11 18 0 6-1 10-3 12s-6.667 5-14 9c-28.667 14.667-53.667 35.667-75 63
|
|
|
-1.333 1.333-3.167 3.5-5.5 6.5s-4 4.833-5 5.5c-1 .667-2.5 1.333-4.5 2s-4.333 1
|
|
|
-7 1c-4.667 0-9.167-1.833-13.5-5.5S337 184 337 178c0-12.667 15.667-32.333 47-59
|
|
|
H213l-171-1c-8.667-6-13-12.333-13-19 0-4.667 4.333-11.333 13-20h359
|
|
|
c-16-25.333-24-45-24-59z`,widehat1:`M529 0h5l519 115c5 1 9 5 9 10 0 1-1 2-1 3l-4 22
|
|
|
c-1 5-5 9-11 9h-2L532 67 19 159h-2c-5 0-9-4-11-9l-5-22c-1-6 2-12 8-13z`,widehat2:`M1181 0h2l1171 176c6 0 10 5 10 11l-2 23c-1 6-5 10
|
|
|
-11 10h-1L1182 67 15 220h-1c-6 0-10-4-11-10l-2-23c-1-6 4-11 10-11z`,widehat3:`M1181 0h2l1171 236c6 0 10 5 10 11l-2 23c-1 6-5 10
|
|
|
-11 10h-1L1182 67 15 280h-1c-6 0-10-4-11-10l-2-23c-1-6 4-11 10-11z`,widehat4:`M1181 0h2l1171 296c6 0 10 5 10 11l-2 23c-1 6-5 10
|
|
|
-11 10h-1L1182 67 15 340h-1c-6 0-10-4-11-10l-2-23c-1-6 4-11 10-11z`,widecheck1:`M529,159h5l519,-115c5,-1,9,-5,9,-10c0,-1,-1,-2,-1,-3l-4,-22c-1,
|
|
|
-5,-5,-9,-11,-9h-2l-512,92l-513,-92h-2c-5,0,-9,4,-11,9l-5,22c-1,6,2,12,8,13z`,widecheck2:`M1181,220h2l1171,-176c6,0,10,-5,10,-11l-2,-23c-1,-6,-5,-10,
|
|
|
-11,-10h-1l-1168,153l-1167,-153h-1c-6,0,-10,4,-11,10l-2,23c-1,6,4,11,10,11z`,widecheck3:`M1181,280h2l1171,-236c6,0,10,-5,10,-11l-2,-23c-1,-6,-5,-10,
|
|
|
-11,-10h-1l-1168,213l-1167,-213h-1c-6,0,-10,4,-11,10l-2,23c-1,6,4,11,10,11z`,widecheck4:`M1181,340h2l1171,-296c6,0,10,-5,10,-11l-2,-23c-1,-6,-5,-10,
|
|
|
-11,-10h-1l-1168,273l-1167,-273h-1c-6,0,-10,4,-11,10l-2,23c-1,6,4,11,10,11z`,baraboveleftarrow:`M400000 620h-399890l3 -3c68.7 -52.7 113.7 -120 135 -202
|
|
|
c4 -14.7 6 -23 6 -25c0 -7.3 -7 -11 -21 -11c-8 0 -13.2 0.8 -15.5 2.5
|
|
|
c-2.3 1.7 -4.2 5.8 -5.5 12.5c-1.3 4.7 -2.7 10.3 -4 17c-12 48.7 -34.8 92 -68.5 130
|
|
|
s-74.2 66.3 -121.5 85c-10 4 -16 7.7 -18 11c0 8.7 6 14.3 18 17c47.3 18.7 87.8 47
|
|
|
121.5 85s56.5 81.3 68.5 130c0.7 2 1.3 5 2 9s1.2 6.7 1.5 8c0.3 1.3 1 3.3 2 6
|
|
|
s2.2 4.5 3.5 5.5c1.3 1 3.3 1.8 6 2.5s6 1 10 1c14 0 21 -3.7 21 -11
|
|
|
c0 -2 -2 -10.3 -6 -25c-20 -79.3 -65 -146.7 -135 -202l-3 -3h399890z
|
|
|
M100 620v40h399900v-40z M0 241v40h399900v-40zM0 241v40h399900v-40z`,rightarrowabovebar:`M0 241v40h399891c-47.3 35.3-84 78-110 128-16.7 32
|
|
|
-27.7 63.7-33 95 0 1.3-.2 2.7-.5 4-.3 1.3-.5 2.3-.5 3 0 7.3 6.7 11 20 11 8 0
|
|
|
13.2-.8 15.5-2.5 2.3-1.7 4.2-5.5 5.5-11.5 2-13.3 5.7-27 11-41 14.7-44.7 39
|
|
|
-84.5 73-119.5s73.7-60.2 119-75.5c6-2 9-5.7 9-11s-3-9-9-11c-45.3-15.3-85-40.5
|
|
|
-119-75.5s-58.3-74.8-73-119.5c-4.7-14-8.3-27.3-11-40-1.3-6.7-3.2-10.8-5.5
|
|
|
-12.5-2.3-1.7-7.5-2.5-15.5-2.5-14 0-21 3.7-21 11 0 2 2 10.3 6 25 20.7 83.3 67
|
|
|
151.7 139 205zm96 379h399894v40H0zm0 0h399904v40H0z`,baraboveshortleftharpoon:`M507,435c-4,4,-6.3,8.7,-7,14c0,5.3,0.7,9,2,11
|
|
|
c1.3,2,5.3,5.3,12,10c90.7,54,156,130,196,228c3.3,10.7,6.3,16.3,9,17
|
|
|
c2,0.7,5,1,9,1c0,0,5,0,5,0c10.7,0,16.7,-2,18,-6c2,-2.7,1,-9.7,-3,-21
|
|
|
c-32,-87.3,-82.7,-157.7,-152,-211c0,0,-3,-3,-3,-3l399351,0l0,-40
|
|
|
c-398570,0,-399437,0,-399437,0z M593 435 v40 H399500 v-40z
|
|
|
M0 281 v-40 H399908 v40z M0 281 v-40 H399908 v40z`,rightharpoonaboveshortbar:`M0,241 l0,40c399126,0,399993,0,399993,0
|
|
|
c4.7,-4.7,7,-9.3,7,-14c0,-9.3,-3.7,-15.3,-11,-18c-92.7,-56.7,-159,-133.7,-199,
|
|
|
-231c-3.3,-9.3,-6,-14.7,-8,-16c-2,-1.3,-7,-2,-15,-2c-10.7,0,-16.7,2,-18,6
|
|
|
c-2,2.7,-1,9.7,3,21c15.3,42,36.7,81.8,64,119.5c27.3,37.7,58,69.2,92,94.5z
|
|
|
M0 241 v40 H399908 v-40z M0 475 v-40 H399500 v40z M0 475 v-40 H399500 v40z`,shortbaraboveleftharpoon:`M7,435c-4,4,-6.3,8.7,-7,14c0,5.3,0.7,9,2,11
|
|
|
c1.3,2,5.3,5.3,12,10c90.7,54,156,130,196,228c3.3,10.7,6.3,16.3,9,17c2,0.7,5,1,9,
|
|
|
1c0,0,5,0,5,0c10.7,0,16.7,-2,18,-6c2,-2.7,1,-9.7,-3,-21c-32,-87.3,-82.7,-157.7,
|
|
|
-152,-211c0,0,-3,-3,-3,-3l399907,0l0,-40c-399126,0,-399993,0,-399993,0z
|
|
|
M93 435 v40 H400000 v-40z M500 241 v40 H400000 v-40z M500 241 v40 H400000 v-40z`,shortrightharpoonabovebar:`M53,241l0,40c398570,0,399437,0,399437,0
|
|
|
c4.7,-4.7,7,-9.3,7,-14c0,-9.3,-3.7,-15.3,-11,-18c-92.7,-56.7,-159,-133.7,-199,
|
|
|
-231c-3.3,-9.3,-6,-14.7,-8,-16c-2,-1.3,-7,-2,-15,-2c-10.7,0,-16.7,2,-18,6
|
|
|
c-2,2.7,-1,9.7,3,21c15.3,42,36.7,81.8,64,119.5c27.3,37.7,58,69.2,92,94.5z
|
|
|
M500 241 v40 H399408 v-40z M500 435 v40 H400000 v-40z`},ur=function(){function Ee(v){this.children=void 0,this.classes=void 0,this.height=void 0,this.depth=void 0,this.maxFontSize=void 0,this.style=void 0,this.children=v,this.classes=[],this.height=0,this.depth=0,this.maxFontSize=0,this.style={}}var f=Ee.prototype;return f.hasClass=function(x){return P.contains(this.classes,x)},f.toNode=function(){for(var x=document.createDocumentFragment(),Q=0;Q<this.children.length;Q++)x.appendChild(this.children[Q].toNode());return x},f.toMarkup=function(){for(var x="",Q=0;Q<this.children.length;Q++)x+=this.children[Q].toMarkup();return x},f.toText=function(){var x=function(re){return re.toText()};return this.children.map(x).join("")},Ee}(),ve=function(f){return f.filter(function(v){return v}).join(" ")},At=function(f,v,x){if(this.classes=f||[],this.attributes={},this.height=0,this.depth=0,this.maxFontSize=0,this.style=x||{},v){v.style.isTight()&&this.classes.push("mtight");var Q=v.getColor();Q&&(this.style.color=Q)}},le=function(f){var v=document.createElement(f);v.className=ve(this.classes);for(var x in this.style)this.style.hasOwnProperty(x)&&(v.style[x]=this.style[x]);for(var Q in this.attributes)this.attributes.hasOwnProperty(Q)&&v.setAttribute(Q,this.attributes[Q]);for(var re=0;re<this.children.length;re++)v.appendChild(this.children[re].toNode());return v},_=function(f){var v="<"+f;this.classes.length&&(v+=' class="'+P.escape(ve(this.classes))+'"');var x="";for(var Q in this.style)this.style.hasOwnProperty(Q)&&(x+=P.hyphenate(Q)+":"+this.style[Q]+";");x&&(v+=' style="'+P.escape(x)+'"');for(var re in this.attributes)this.attributes.hasOwnProperty(re)&&(v+=" "+re+'="'+P.escape(this.attributes[re])+'"');v+=">";for(var be=0;be<this.children.length;be++)v+=this.children[be].toMarkup();return v+="</"+f+">",v},D=function(){function Ee(v,x,Q,re){this.children=void 0,this.attributes=void 0,this.classes=void 0,this.height=void 0,this.depth=void 0,this.width=void 0,this.maxFontSize=void 0,this.style=void 0,At.call(this,v,Q,re),this.children=x||[]}var f=Ee.prototype;return f.setAttribute=function(x,Q){this.attributes[x]=Q},f.hasClass=function(x){return P.contains(this.classes,x)},f.toNode=function(){return le.call(this,"span")},f.toMarkup=function(){return _.call(this,"span")},Ee}(),ae=function(){function Ee(v,x,Q,re){this.children=void 0,this.attributes=void 0,this.classes=void 0,this.height=void 0,this.depth=void 0,this.maxFontSize=void 0,this.style=void 0,At.call(this,x,re),this.children=Q||[],this.setAttribute("href",v)}var f=Ee.prototype;return f.setAttribute=function(x,Q){this.attributes[x]=Q},f.hasClass=function(x){return P.contains(this.classes,x)},f.toNode=function(){return le.call(this,"a")},f.toMarkup=function(){return _.call(this,"a")},Ee}(),We=function(){function Ee(v,x,Q){this.src=void 0,this.alt=void 0,this.classes=void 0,this.height=void 0,this.depth=void 0,this.maxFontSize=void 0,this.style=void 0,this.alt=x,this.src=v,this.classes=["mord"],this.style=Q}var f=Ee.prototype;return f.hasClass=function(x){return P.contains(this.classes,x)},f.toNode=function(){var x=document.createElement("img");x.src=this.src,x.alt=this.alt,x.className="mord";for(var Q in this.style)this.style.hasOwnProperty(Q)&&(x.style[Q]=this.style[Q]);return x},f.toMarkup=function(){var x="<img src='"+this.src+" 'alt='"+this.alt+"' ",Q="";for(var re in this.style)this.style.hasOwnProperty(re)&&(Q+=P.hyphenate(re)+":"+this.style[re]+";");return Q&&(x+=' style="'+P.escape(Q)+'"'),x+="'/>",x},Ee}(),ge={\u00EE:"\u0131\u0302",\u00EF:"\u0131\u0308",\u00ED:"\u0131\u0301",\u00EC:"\u0131\u0300"},Se=function(){function Ee(v,x,Q,re,be,Ze,nt,St){this.text=void 0,this.height=void 0,this.depth=void 0,this.italic=void 0,this.skew=void 0,this.width=void 0,this.maxFontSize=void 0,this.classes=void 0,this.style=void 0,this.text=v,this.height=x||0,this.depth=Q||0,this.italic=re||0,this.skew=be||0,this.width=Ze||0,this.classes=nt||[],this.style=St||{},this.maxFontSize=0;var Jt=ee(this.text.charCodeAt(0));Jt&&this.classes.push(Jt+"_fallback"),/[îïíì]/.test(this.text)&&(this.text=ge[this.text])}var f=Ee.prototype;return f.hasClass=function(x){return P.contains(this.classes,x)},f.toNode=function(){var x=document.createTextNode(this.text),Q=null;this.italic>0&&(Q=document.createElement("span"),Q.style.marginRight=this.italic+"em"),this.classes.length>0&&(Q=Q||document.createElement("span"),Q.className=ve(this.classes));for(var re in this.style)this.style.hasOwnProperty(re)&&(Q=Q||document.createElement("span"),Q.style[re]=this.style[re]);return Q?(Q.appendChild(x),Q):x},f.toMarkup=function(){var x=!1,Q="<span";this.classes.length&&(x=!0,Q+=' class="',Q+=P.escape(ve(this.classes)),Q+='"');var re="";this.italic>0&&(re+="margin-right:"+this.italic+"em;");for(var be in this.style)this.style.hasOwnProperty(be)&&(re+=P.hyphenate(be)+":"+this.style[be]+";");re&&(x=!0,Q+=' style="'+P.escape(re)+'"');var Ze=P.escape(this.text);return x?(Q+=">",Q+=Ze,Q+="</span>",Q):Ze},Ee}(),gt=function(){function Ee(v,x){this.children=void 0,this.attributes=void 0,this.children=v||[],this.attributes=x||{}}var f=Ee.prototype;return f.toNode=function(){var x="http://www.w3.org/2000/svg",Q=document.createElementNS(x,"svg");for(var re in this.attributes)Object.prototype.hasOwnProperty.call(this.attributes,re)&&Q.setAttribute(re,this.attributes[re]);for(var be=0;be<this.children.length;be++)Q.appendChild(this.children[be].toNode());return Q},f.toMarkup=function(){var x="<svg";for(var Q in this.attributes)Object.prototype.hasOwnProperty.call(this.attributes,Q)&&(x+=" "+Q+"='"+this.attributes[Q]+"'");x+=">";for(var re=0;re<this.children.length;re++)x+=this.children[re].toMarkup();return x+="</svg>",x},Ee}(),xt=function(){function Ee(v,x){this.pathName=void 0,this.alternate=void 0,this.pathName=v,this.alternate=x}var f=Ee.prototype;return f.toNode=function(){var x="http://www.w3.org/2000/svg",Q=document.createElementNS(x,"path");return this.alternate?Q.setAttribute("d",this.alternate):Q.setAttribute("d",Vr[this.pathName]),Q},f.toMarkup=function(){return this.alternate?"<path d='"+this.alternate+"'/>":"<path d='"+Vr[this.pathName]+"'/>"},Ee}(),Et=function(){function Ee(v){this.attributes=void 0,this.attributes=v||{}}var f=Ee.prototype;return f.toNode=function(){var x="http://www.w3.org/2000/svg",Q=document.createElementNS(x,"line");for(var re in this.attributes)Object.prototype.hasOwnProperty.call(this.attributes,re)&&Q.setAttribute(re,this.attributes[re]);return Q},f.toMarkup=function(){var x="<line";for(var Q in this.attributes)Object.prototype.hasOwnProperty.call(this.attributes,Q)&&(x+=" "+Q+"='"+this.attributes[Q]+"'");return x+="/>",x},Ee}();function nr(Ee){if(Ee instanceof Se)return Ee;throw new Error("Expected symbolNode but got "+String(Ee)+".")}function xr(Ee){if(Ee instanceof D)return Ee;throw new Error("Expected span<HtmlDomNode> but got "+String(Ee)+".")}var Tr={"AMS-Regular":{65:[0,.68889,0,0,.72222],66:[0,.68889,0,0,.66667],67:[0,.68889,0,0,.72222],68:[0,.68889,0,0,.72222],69:[0,.68889,0,0,.66667],70:[0,.68889,0,0,.61111],71:[0,.68889,0,0,.77778],72:[0,.68889,0,0,.77778],73:[0,.68889,0,0,.38889],74:[.16667,.68889,0,0,.5],75:[0,.68889,0,0,.77778],76:[0,.68889,0,0,.66667],77:[0,.68889,0,0,.94445],78:[0,.68889,0,0,.72222],79:[.16667,.68889,0,0,.77778],80:[0,.68889,0,0,.61111],81:[.16667,.68889,0,0,.77778],82:[0,.68889,0,0,.72222],83:[0,.68889,0,0,.55556],84:[0,.68889,0,0,.66667],85:[0,.68889,0,0,.72222],86:[0,.68889,0,0,.72222],87:[0,.68889,0,0,1],88:[0,.68889,0,0,.72222],89:[0,.68889,0,0,.72222],90:[0,.68889,0,0,.66667],107:[0,.68889,0,0,.55556],165:[0,.675,.025,0,.75],174:[.15559,.69224,0,0,.94666],240:[0,.68889,0,0,.55556],295:[0,.68889,0,0,.54028],710:[0,.825,0,0,2.33334],732:[0,.9,0,0,2.33334],770:[0,.825,0,0,2.33334],771:[0,.9,0,0,2.33334],989:[.08167,.58167,0,0,.77778],1008:[0,.43056,.04028,0,.66667],8245:[0,.54986,0,0,.275],8463:[0,.68889,0,0,.54028],8487:[0,.68889,0,0,.72222],8498:[0,.68889,0,0,.55556],8502:[0,.68889,0,0,.66667],8503:[0,.68889,0,0,.44445],8504:[0,.68889,0,0,.66667],8513:[0,.68889,0,0,.63889],8592:[-.03598,.46402,0,0,.5],8594:[-.03598,.46402,0,0,.5],8602:[-.13313,.36687,0,0,1],8603:[-.13313,.36687,0,0,1],8606:[.01354,.52239,0,0,1],8608:[.01354,.52239,0,0,1],8610:[.01354,.52239,0,0,1.11111],8611:[.01354,.52239,0,0,1.11111],8619:[0,.54986,0,0,1],8620:[0,.54986,0,0,1],8621:[-.13313,.37788,0,0,1.38889],8622:[-.13313,.36687,0,0,1],8624:[0,.69224,0,0,.5],8625:[0,.69224,0,0,.5],8630:[0,.43056,0,0,1],8631:[0,.43056,0,0,1],8634:[.08198,.58198,0,0,.77778],8635:[.08198,.58198,0,0,.77778],8638:[.19444,.69224,0,0,.41667],8639:[.19444,.69224,0,0,.41667],8642:[.19444,.69224,0,0,.41667],8643:[.19444,.69224,0,0,.41667],8644:[.1808,.675,0,0,1],8646:[.1808,.675,0,0,1],8647:[.1808,.675,0,0,1],8648:[.19444,.69224,0,0,.83334],8649:[.1808,.675,0,0,1],8650:[.19444,.69224,0,0,.83334],8651:[.01354,.52239,0,0,1],8652:[.01354,.52239,0,0,1],8653:[-.13313,.36687,0,0,1],8654:[-.13313,.36687,0,0,1],8655:[-.13313,.36687,0,0,1],8666:[.13667,.63667,0,0,1],8667:[.13667,.63667,0,0,1],8669:[-.13313,.37788,0,0,1],8672:[-.064,.437,0,0,1.334],8674:[-.064,.437,0,0,1.334],8705:[0,.825,0,0,.5],8708:[0,.68889,0,0,.55556],8709:[.08167,.58167,0,0,.77778],8717:[0,.43056,0,0,.42917],8722:[-.03598,.46402,0,0,.5],8724:[.08198,.69224,0,0,.77778],8726:[.08167,.58167,0,0,.77778],8733:[0,.69224,0,0,.77778],8736:[0,.69224,0,0,.72222],8737:[0,.69224,0,0,.72222],8738:[.03517,.52239,0,0,.72222],8739:[.08167,.58167,0,0,.22222],8740:[.25142,.74111,0,0,.27778],8741:[.08167,.58167,0,0,.38889],8742:[.25142,.74111,0,0,.5],8756:[0,.69224,0,0,.66667],8757:[0,.69224,0,0,.66667],8764:[-.13313,.36687,0,0,.77778],8765:[-.13313,.37788,0,0,.77778],8769:[-.13313,.36687,0,0,.77778],8770:[-.03625,.46375,0,0,.77778],8774:[.30274,.79383,0,0,.77778],8776:[-.01688,.48312,0,0,.77778],8778:[.08167,.58167,0,0,.77778],8782:[.06062,.54986,0,0,.77778],8783:[.06062,.54986,0,0,.77778],8785:[.08198,.58198,0,0,.77778],8786:[.08198,.58198,0,0,.77778],8787:[.08198,.58198,0,0,.77778],8790:[0,.69224,0,0,.77778],8791:[.22958,.72958,0,0,.77778],8796:[.08198,.91667,0,0,.77778],8806:[.25583,.75583,0,0,.77778],8807:[.25583,.75583,0,0,.77778],8808:[.25142,.75726,0,0,.77778],8809:[.25142,.75726,0,0,.77778],8812:[.25583,.75583,0,0,.5],8814:[.20576,.70576,0,0,.77778],8815:[.20576,.70576,0,0,.77778],8816:[.30274,.79383,0,0,.77778],8817:[.30274,.79383,0,0,.77778],8818:[.22958,.72958,0,0,.77778],8819:[.22958,.72958,0,0,.77778],8822:[.1808,.675,0,0,.77778],8823:[.1808,.675,0,0,.77778],8828:[.13667,.63667,0,0,.77778],8829:[.13667,.63667,0,0,.77778],8830:[.22958,.72958,0,0,.77778],8831:[.22958,.72958,0,0,.77778],8832:[.20576,.70576,0,0,.77778],8833:[.20576,.70576,0,0,.77778],8840:[.30274,.79383,0,0,.77778],8841:[.30274,.79383,0,0,.77778],8842:[.13597,.63597,0,0,.77778],8843:[.13597,.63597,0,0,.77778],8847:[.03517,.54986,0,0,.77778],8848:[.03517,.54986,0,0,.77778],8858:[.08198,.58198,0,0,.77778],8859:[.08198,.58198,0,0,.77778],8861:[.08198,.58198,0,0,.77778],8862:[0,.675,0,0,.77778],8863:[0,.675,0,0,.77778],8864:[0,.675,0,0,.77778],8865:[0,.675,0,0,.77778],8872:[0,.69224,0,0,.61111],8873:[0,.69224,0,0,.72222],8874:[0,.69224,0,0,.88889],8876:[0,.68889,0,0,.61111],8877:[0,.68889,0,0,.61111],8878:[0,.68889,0,0,.72222],8879:[0,.68889,0,0,.72222],8882:[.03517,.54986,0,0,.77778],8883:[.03517,.54986,0,0,.77778],8884:[.13667,.63667,0,0,.77778],8885:[.13667,.63667,0,0,.77778],8888:[0,.54986,0,0,1.11111],8890:[.19444,.43056,0,0,.55556],8891:[.19444,.69224,0,0,.61111],8892:[.19444,.69224,0,0,.61111],8901:[0,.54986,0,0,.27778],8903:[.08167,.58167,0,0,.77778],8905:[.08167,.58167,0,0,.77778],8906:[.08167,.58167,0,0,.77778],8907:[0,.69224,0,0,.77778],8908:[0,.69224,0,0,.77778],8909:[-.03598,.46402,0,0,.77778],8910:[0,.54986,0,0,.76042],8911:[0,.54986,0,0,.76042],8912:[.03517,.54986,0,0,.77778],8913:[.03517,.54986,0,0,.77778],8914:[0,.54986,0,0,.66667],8915:[0,.54986,0,0,.66667],8916:[0,.69224,0,0,.66667],8918:[.0391,.5391,0,0,.77778],8919:[.0391,.5391,0,0,.77778],8920:[.03517,.54986,0,0,1.33334],8921:[.03517,.54986,0,0,1.33334],8922:[.38569,.88569,0,0,.77778],8923:[.38569,.88569,0,0,.77778],8926:[.13667,.63667,0,0,.77778],8927:[.13667,.63667,0,0,.77778],8928:[.30274,.79383,0,0,.77778],8929:[.30274,.79383,0,0,.77778],8934:[.23222,.74111,0,0,.77778],8935:[.23222,.74111,0,0,.77778],8936:[.23222,.74111,0,0,.77778],8937:[.23222,.74111,0,0,.77778],8938:[.20576,.70576,0,0,.77778],8939:[.20576,.70576,0,0,.77778],8940:[.30274,.79383,0,0,.77778],8941:[.30274,.79383,0,0,.77778],8994:[.19444,.69224,0,0,.77778],8995:[.19444,.69224,0,0,.77778],9416:[.15559,.69224,0,0,.90222],9484:[0,.69224,0,0,.5],9488:[0,.69224,0,0,.5],9492:[0,.37788,0,0,.5],9496:[0,.37788,0,0,.5],9585:[.19444,.68889,0,0,.88889],9586:[.19444,.74111,0,0,.88889],9632:[0,.675,0,0,.77778],9633:[0,.675,0,0,.77778],9650:[0,.54986,0,0,.72222],9651:[0,.54986,0,0,.72222],9654:[.03517,.54986,0,0,.77778],9660:[0,.54986,0,0,.72222],9661:[0,.54986,0,0,.72222],9664:[.03517,.54986,0,0,.77778],9674:[.11111,.69224,0,0,.66667],9733:[.19444,.69224,0,0,.94445],10003:[0,.69224,0,0,.83334],10016:[0,.69224,0,0,.83334],10731:[.11111,.69224,0,0,.66667],10846:[.19444,.75583,0,0,.61111],10877:[.13667,.63667,0,0,.77778],10878:[.13667,.63667,0,0,.77778],10885:[.25583,.75583,0,0,.77778],10886:[.25583,.75583,0,0,.77778],10887:[.13597,.63597,0,0,.77778],10888:[.13597,.63597,0,0,.77778],10889:[.26167,.75726,0,0,.77778],10890:[.26167,.75726,0,0,.77778],10891:[.48256,.98256,0,0,.77778],10892:[.48256,.98256,0,0,.77778],10901:[.13667,.63667,0,0,.77778],10902:[.13667,.63667,0,0,.77778],10933:[.25142,.75726,0,0,.77778],10934:[.25142,.75726,0,0,.77778],10935:[.26167,.75726,0,0,.77778],10936:[.26167,.75726,0,0,.77778],10937:[.26167,.75726,0,0,.77778],10938:[.26167,.75726,0,0,.77778],10949:[.25583,.75583,0,0,.77778],10950:[.25583,.75583,0,0,.77778],10955:[.28481,.79383,0,0,.77778],10956:[.28481,.79383,0,0,.77778],57350:[.08167,.58167,0,0,.22222],57351:[.08167,.58167,0,0,.38889],57352:[.08167,.58167,0,0,.77778],57353:[0,.43056,.04028,0,.66667],57356:[.25142,.75726,0,0,.77778],57357:[.25142,.75726,0,0,.77778],57358:[.41951,.91951,0,0,.77778],57359:[.30274,.79383,0,0,.77778],57360:[.30274,.79383,0,0,.77778],57361:[.41951,.91951,0,0,.77778],57366:[.25142,.75726,0,0,.77778],57367:[.25142,.75726,0,0,.77778],57368:[.25142,.75726,0,0,.77778],57369:[.25142,.75726,0,0,.77778],57370:[.13597,.63597,0,0,.77778],57371:[.13597,.63597,0,0,.77778]},"Caligraphic-Regular":{48:[0,.43056,0,0,.5],49:[0,.43056,0,0,.5],50:[0,.43056,0,0,.5],51:[.19444,.43056,0,0,.5],52:[.19444,.43056,0,0,.5],53:[.19444,.43056,0,0,.5],54:[0,.64444,0,0,.5],55:[.19444,.43056,0,0,.5],56:[0,.64444,0,0,.5],57:[.19444,.43056,0,0,.5],65:[0,.68333,0,.19445,.79847],66:[0,.68333,.03041,.13889,.65681],67:[0,.68333,.05834,.13889,.52653],68:[0,.68333,.02778,.08334,.77139],69:[0,.68333,.08944,.11111,.52778],70:[0,.68333,.09931,.11111,.71875],71:[.09722,.68333,.0593,.11111,.59487],72:[0,.68333,.00965,.11111,.84452],73:[0,.68333,.07382,0,.54452],74:[.09722,.68333,.18472,.16667,.67778],75:[0,.68333,.01445,.05556,.76195],76:[0,.68333,0,.13889,.68972],77:[0,.68333,0,.13889,1.2009],78:[0,.68333,.14736,.08334,.82049],79:[0,.68333,.02778,.11111,.79611],80:[0,.68333,.08222,.08334,.69556],81:[.09722,.68333,0,.11111,.81667],82:[0,.68333,0,.08334,.8475],83:[0,.68333,.075,.13889,.60556],84:[0,.68333,.25417,0,.54464],85:[0,.68333,.09931,.08334,.62583],86:[0,.68333,.08222,0,.61278],87:[0,.68333,.08222,.08334,.98778],88:[0,.68333,.14643,.13889,.7133],89:[.09722,.68333,.08222,.08334,.66834],90:[0,.68333,.07944,.13889,.72473]},"Fraktur-Regular":{33:[0,.69141,0,0,.29574],34:[0,.69141,0,0,.21471],38:[0,.69141,0,0,.73786],39:[0,.69141,0,0,.21201],40:[.24982,.74947,0,0,.38865],41:[.24982,.74947,0,0,.38865],42:[0,.62119,0,0,.27764],43:[.08319,.58283,0,0,.75623],44:[0,.10803,0,0,.27764],45:[.08319,.58283,0,0,.75623],46:[0,.10803,0,0,.27764],47:[.24982,.74947,0,0,.50181],48:[0,.47534,0,0,.50181],49:[0,.47534,0,0,.50181],50:[0,.47534,0,0,.50181],51:[.18906,.47534,0,0,.50181],52:[.18906,.47534,0,0,.50181],53:[.18906,.47534,0,0,.50181],54:[0,.69141,0,0,.50181],55:[.18906,.47534,0,0,.50181],56:[0,.69141,0,0,.50181],57:[.18906,.47534,0,0,.50181],58:[0,.47534,0,0,.21606],59:[.12604,.47534,0,0,.21606],61:[-.13099,.36866,0,0,.75623],63:[0,.69141,0,0,.36245],65:[0,.69141,0,0,.7176],66:[0,.69141,0,0,.88397],67:[0,.69141,0,0,.61254],68:[0,.69141,0,0,.83158],69:[0,.69141,0,0,.66278],70:[.12604,.69141,0,0,.61119],71:[0,.69141,0,0,.78539],72:[.06302,.69141,0,0,.7203],73:[0,.69141,0,0,.55448],74:[.12604,.69141,0,0,.55231],75:[0,.69141,0,0,.66845],76:[0,.69141,0,0,.66602],77:[0,.69141,0,0,1.04953],78:[0,.69141,0,0,.83212],79:[0,.69141,0,0,.82699],80:[.18906,.69141,0,0,.82753],81:[.03781,.69141,0,0,.82699],82:[0,.69141,0,0,.82807],83:[0,.69141,0,0,.82861],84:[0,.69141,0,0,.66899],85:[0,.69141,0,0,.64576],86:[0,.69141,0,0,.83131],87:[0,.69141,0,0,1.04602],88:[0,.69141,0,0,.71922],89:[.18906,.69141,0,0,.83293],90:[.12604,.69141,0,0,.60201],91:[.24982,.74947,0,0,.27764],93:[.24982,.74947,0,0,.27764],94:[0,.69141,0,0,.49965],97:[0,.47534,0,0,.50046],98:[0,.69141,0,0,.51315],99:[0,.47534,0,0,.38946],100:[0,.62119,0,0,.49857],101:[0,.47534,0,0,.40053],102:[.18906,.69141,0,0,.32626],103:[.18906,.47534,0,0,.5037],104:[.18906,.69141,0,0,.52126],105:[0,.69141,0,0,.27899],106:[0,.69141,0,0,.28088],107:[0,.69141,0,0,.38946],108:[0,.69141,0,0,.27953],109:[0,.47534,0,0,.76676],110:[0,.47534,0,0,.52666],111:[0,.47534,0,0,.48885],112:[.18906,.52396,0,0,.50046],113:[.18906,.47534,0,0,.48912],114:[0,.47534,0,0,.38919],115:[0,.47534,0,0,.44266],116:[0,.62119,0,0,.33301],117:[0,.47534,0,0,.5172],118:[0,.52396,0,0,.5118],119:[0,.52396,0,0,.77351],120:[.18906,.47534,0,0,.38865],121:[.18906,.47534,0,0,.49884],122:[.18906,.47534,0,0,.39054],8216:[0,.69141,0,0,.21471],8217:[0,.69141,0,0,.21471],58112:[0,.62119,0,0,.49749],58113:[0,.62119,0,0,.4983],58114:[.18906,.69141,0,0,.33328],58115:[.18906,.69141,0,0,.32923],58116:[.18906,.47534,0,0,.50343],58117:[0,.69141,0,0,.33301],58118:[0,.62119,0,0,.33409],58119:[0,.47534,0,0,.50073]},"Main-Bold":{33:[0,.69444,0,0,.35],34:[0,.69444,0,0,.60278],35:[.19444,.69444,0,0,.95833],36:[.05556,.75,0,0,.575],37:[.05556,.75,0,0,.95833],38:[0,.69444,0,0,.89444],39:[0,.69444,0,0,.31944],40:[.25,.75,0,0,.44722],41:[.25,.75,0,0,.44722],42:[0,.75,0,0,.575],43:[.13333,.63333,0,0,.89444],44:[.19444,.15556,0,0,.31944],45:[0,.44444,0,0,.38333],46:[0,.15556,0,0,.31944],47:[.25,.75,0,0,.575],48:[0,.64444,0,0,.575],49:[0,.64444,0,0,.575],50:[0,.64444,0,0,.575],51:[0,.64444,0,0,.575],52:[0,.64444,0,0,.575],53:[0,.64444,0,0,.575],54:[0,.64444,0,0,.575],55:[0,.64444,0,0,.575],56:[0,.64444,0,0,.575],57:[0,.64444,0,0,.575],58:[0,.44444,0,0,.31944],59:[.19444,.44444,0,0,.31944],60:[.08556,.58556,0,0,.89444],61:[-.10889,.39111,0,0,.89444],62:[.08556,.58556,0,0,.89444],63:[0,.69444,0,0,.54305],64:[0,.69444,0,0,.89444],65:[0,.68611,0,0,.86944],66:[0,.68611,0,0,.81805],67:[0,.68611,0,0,.83055],68:[0,.68611,0,0,.88194],69:[0,.68611,0,0,.75555],70:[0,.68611,0,0,.72361],71:[0,.68611,0,0,.90416],72:[0,.68611,0,0,.9],73:[0,.68611,0,0,.43611],74:[0,.68611,0,0,.59444],75:[0,.68611,0,0,.90138],76:[0,.68611,0,0,.69166],77:[0,.68611,0,0,1.09166],78:[0,.68611,0,0,.9],79:[0,.68611,0,0,.86388],80:[0,.68611,0,0,.78611],81:[.19444,.68611,0,0,.86388],82:[0,.68611,0,0,.8625],83:[0,.68611,0,0,.63889],84:[0,.68611,0,0,.8],85:[0,.68611,0,0,.88472],86:[0,.68611,.01597,0,.86944],87:[0,.68611,.01597,0,1.18888],88:[0,.68611,0,0,.86944],89:[0,.68611,.02875,0,.86944],90:[0,.68611,0,0,.70277],91:[.25,.75,0,0,.31944],92:[.25,.75,0,0,.575],93:[.25,.75,0,0,.31944],94:[0,.69444,0,0,.575],95:[.31,.13444,.03194,0,.575],97:[0,.44444,0,0,.55902],98:[0,.69444,0,0,.63889],99:[0,.44444,0,0,.51111],100:[0,.69444,0,0,.63889],101:[0,.44444,0,0,.52708],102:[0,.69444,.10903,0,.35139],103:[.19444,.44444,.01597,0,.575],104:[0,.69444,0,0,.63889],105:[0,.69444,0,0,.31944],106:[.19444,.69444,0,0,.35139],107:[0,.69444,0,0,.60694],108:[0,.69444,0,0,.31944],109:[0,.44444,0,0,.95833],110:[0,.44444,0,0,.63889],111:[0,.44444,0,0,.575],112:[.19444,.44444,0,0,.63889],113:[.19444,.44444,0,0,.60694],114:[0,.44444,0,0,.47361],115:[0,.44444,0,0,.45361],116:[0,.63492,0,0,.44722],117:[0,.44444,0,0,.63889],118:[0,.44444,.01597,0,.60694],119:[0,.44444,.01597,0,.83055],120:[0,.44444,0,0,.60694],121:[.19444,.44444,.01597,0,.60694],122:[0,.44444,0,0,.51111],123:[.25,.75,0,0,.575],124:[.25,.75,0,0,.31944],125:[.25,.75,0,0,.575],126:[.35,.34444,0,0,.575],168:[0,.69444,0,0,.575],172:[0,.44444,0,0,.76666],176:[0,.69444,0,0,.86944],177:[.13333,.63333,0,0,.89444],184:[.17014,0,0,0,.51111],198:[0,.68611,0,0,1.04166],215:[.13333,.63333,0,0,.89444],216:[.04861,.73472,0,0,.89444],223:[0,.69444,0,0,.59722],230:[0,.44444,0,0,.83055],247:[.13333,.63333,0,0,.89444],248:[.09722,.54167,0,0,.575],305:[0,.44444,0,0,.31944],338:[0,.68611,0,0,1.16944],339:[0,.44444,0,0,.89444],567:[.19444,.44444,0,0,.35139],710:[0,.69444,0,0,.575],711:[0,.63194,0,0,.575],713:[0,.59611,0,0,.575],714:[0,.69444,0,0,.575],715:[0,.69444,0,0,.575],728:[0,.69444,0,0,.575],729:[0,.69444,0,0,.31944],730:[0,.69444,0,0,.86944],732:[0,.69444,0,0,.575],733:[0,.69444,0,0,.575],915:[0,.68611,0,0,.69166],916:[0,.68611,0,0,.95833],920:[0,.68611,0,0,.89444],923:[0,.68611,0,0,.80555],926:[0,.68611,0,0,.76666],928:[0,.68611,0,0,.9],931:[0,.68611,0,0,.83055],933:[0,.68611,0,0,.89444],934:[0,.68611,0,0,.83055],936:[0,.68611,0,0,.89444],937:[0,.68611,0,0,.83055],8211:[0,.44444,.03194,0,.575],8212:[0,.44444,.03194,0,1.14999],8216:[0,.69444,0,0,.31944],8217:[0,.69444,0,0,.31944],8220:[0,.69444,0,0,.60278],8221:[0,.69444,0,0,.60278],8224:[.19444,.69444,0,0,.51111],8225:[.19444,.69444,0,0,.51111],8242:[0,.55556,0,0,.34444],8407:[0,.72444,.15486,0,.575],8463:[0,.69444,0,0,.66759],8465:[0,.69444,0,0,.83055],8467:[0,.69444,0,0,.47361],8472:[.19444,.44444,0,0,.74027],8476:[0,.69444,0,0,.83055],8501:[0,.69444,0,0,.70277],8592:[-.10889,.39111,0,0,1.14999],8593:[.19444,.69444,0,0,.575],8594:[-.10889,.39111,0,0,1.14999],8595:[.19444,.69444,0,0,.575],8596:[-.10889,.39111,0,0,1.14999],8597:[.25,.75,0,0,.575],8598:[.19444,.69444,0,0,1.14999],8599:[.19444,.69444,0,0,1.14999],8600:[.19444,.69444,0,0,1.14999],8601:[.19444,.69444,0,0,1.14999],8636:[-.10889,.39111,0,0,1.14999],8637:[-.10889,.39111,0,0,1.14999],8640:[-.10889,.39111,0,0,1.14999],8641:[-.10889,.39111,0,0,1.14999],8656:[-.10889,.39111,0,0,1.14999],8657:[.19444,.69444,0,0,.70277],8658:[-.10889,.39111,0,0,1.14999],8659:[.19444,.69444,0,0,.70277],8660:[-.10889,.39111,0,0,1.14999],8661:[.25,.75,0,0,.70277],8704:[0,.69444,0,0,.63889],8706:[0,.69444,.06389,0,.62847],8707:[0,.69444,0,0,.63889],8709:[.05556,.75,0,0,.575],8711:[0,.68611,0,0,.95833],8712:[.08556,.58556,0,0,.76666],8715:[.08556,.58556,0,0,.76666],8722:[.13333,.63333,0,0,.89444],8723:[.13333,.63333,0,0,.89444],8725:[.25,.75,0,0,.575],8726:[.25,.75,0,0,.575],8727:[-.02778,.47222,0,0,.575],8728:[-.02639,.47361,0,0,.575],8729:[-.02639,.47361,0,0,.575],8730:[.18,.82,0,0,.95833],8733:[0,.44444,0,0,.89444],8734:[0,.44444,0,0,1.14999],8736:[0,.69224,0,0,.72222],8739:[.25,.75,0,0,.31944],8741:[.25,.75,0,0,.575],8743:[0,.55556,0,0,.76666],8744:[0,.55556,0,0,.76666],8745:[0,.55556,0,0,.76666],8746:[0,.55556,0,0,.76666],8747:[.19444,.69444,.12778,0,.56875],8764:[-.10889,.39111,0,0,.89444],8768:[.19444,.69444,0,0,.31944],8771:[.00222,.50222,0,0,.89444],8776:[.02444,.52444,0,0,.89444],8781:[.00222,.50222,0,0,.89444],8801:[.00222,.50222,0,0,.89444],8804:[.19667,.69667,0,0,.89444],8805:[.19667,.69667,0,0,.89444],8810:[.08556,.58556,0,0,1.14999],8811:[.08556,.58556,0,0,1.14999],8826:[.08556,.58556,0,0,.89444],8827:[.08556,.58556,0,0,.89444],8834:[.08556,.58556,0,0,.89444],8835:[.08556,.58556,0,0,.89444],8838:[.19667,.69667,0,0,.89444],8839:[.19667,.69667,0,0,.89444],8846:[0,.55556,0,0,.76666],8849:[.19667,.69667,0,0,.89444],8850:[.19667,.69667,0,0,.89444],8851:[0,.55556,0,0,.76666],8852:[0,.55556,0,0,.76666],8853:[.13333,.63333,0,0,.89444],8854:[.13333,.63333,0,0,.89444],8855:[.13333,.63333,0,0,.89444],8856:[.13333,.63333,0,0,.89444],8857:[.13333,.63333,0,0,.89444],8866:[0,.69444,0,0,.70277],8867:[0,.69444,0,0,.70277],8868:[0,.69444,0,0,.89444],8869:[0,.69444,0,0,.89444],8900:[-.02639,.47361,0,0,.575],8901:[-.02639,.47361,0,0,.31944],8902:[-.02778,.47222,0,0,.575],8968:[.25,.75,0,0,.51111],8969:[.25,.75,0,0,.51111],8970:[.25,.75,0,0,.51111],8971:[.25,.75,0,0,.51111],8994:[-.13889,.36111,0,0,1.14999],8995:[-.13889,.36111,0,0,1.14999],9651:[.19444,.69444,0,0,1.02222],9657:[-.02778,.47222,0,0,.575],9661:[.19444,.69444,0,0,1.02222],9667:[-.02778,.47222,0,0,.575],9711:[.19444,.69444,0,0,1.14999],9824:[.12963,.69444,0,0,.89444],9825:[.12963,.69444,0,0,.89444],9826:[.12963,.69444,0,0,.89444],9827:[.12963,.69444,0,0,.89444],9837:[0,.75,0,0,.44722],9838:[.19444,.69444,0,0,.44722],9839:[.19444,.69444,0,0,.44722],10216:[.25,.75,0,0,.44722],10217:[.25,.75,0,0,.44722],10815:[0,.68611,0,0,.9],10927:[.19667,.69667,0,0,.89444],10928:[.19667,.69667,0,0,.89444],57376:[.19444,.69444,0,0,0]},"Main-BoldItalic":{33:[0,.69444,.11417,0,.38611],34:[0,.69444,.07939,0,.62055],35:[.19444,.69444,.06833,0,.94444],37:[.05556,.75,.12861,0,.94444],38:[0,.69444,.08528,0,.88555],39:[0,.69444,.12945,0,.35555],40:[.25,.75,.15806,0,.47333],41:[.25,.75,.03306,0,.47333],42:[0,.75,.14333,0,.59111],43:[.10333,.60333,.03306,0,.88555],44:[.19444,.14722,0,0,.35555],45:[0,.44444,.02611,0,.41444],46:[0,.14722,0,0,.35555],47:[.25,.75,.15806,0,.59111],48:[0,.64444,.13167,0,.59111],49:[0,.64444,.13167,0,.59111],50:[0,.64444,.13167,0,.59111],51:[0,.64444,.13167,0,.59111],52:[.19444,.64444,.13167,0,.59111],53:[0,.64444,.13167,0,.59111],54:[0,.64444,.13167,0,.59111],55:[.19444,.64444,.13167,0,.59111],56:[0,.64444,.13167,0,.59111],57:[0,.64444,.13167,0,.59111],58:[0,.44444,.06695,0,.35555],59:[.19444,.44444,.06695,0,.35555],61:[-.10889,.39111,.06833,0,.88555],63:[0,.69444,.11472,0,.59111],64:[0,.69444,.09208,0,.88555],65:[0,.68611,0,0,.86555],66:[0,.68611,.0992,0,.81666],67:[0,.68611,.14208,0,.82666],68:[0,.68611,.09062,0,.87555],69:[0,.68611,.11431,0,.75666],70:[0,.68611,.12903,0,.72722],71:[0,.68611,.07347,0,.89527],72:[0,.68611,.17208,0,.8961],73:[0,.68611,.15681,0,.47166],74:[0,.68611,.145,0,.61055],75:[0,.68611,.14208,0,.89499],76:[0,.68611,0,0,.69777],77:[0,.68611,.17208,0,1.07277],78:[0,.68611,.17208,0,.8961],79:[0,.68611,.09062,0,.85499],80:[0,.68611,.0992,0,.78721],81:[.19444,.68611,.09062,0,.85499],82:[0,.68611,.02559,0,.85944],83:[0,.68611,.11264,0,.64999],84:[0,.68611,.12903,0,.7961],85:[0,.68611,.17208,0,.88083],86:[0,.68611,.18625,0,.86555],87:[0,.68611,.18625,0,1.15999],88:[0,.68611,.15681,0,.86555],89:[0,.68611,.19803,0,.86555],90:[0,.68611,.14208,0,.70888],91:[.25,.75,.1875,0,.35611],93:[.25,.75,.09972,0,.35611],94:[0,.69444,.06709,0,.59111],95:[.31,.13444,.09811,0,.59111],97:[0,.44444,.09426,0,.59111],98:[0,.69444,.07861,0,.53222],99:[0,.44444,.05222,0,.53222],100:[0,.69444,.10861,0,.59111],101:[0,.44444,.085,0,.53222],102:[.19444,.69444,.21778,0,.4],103:[.19444,.44444,.105,0,.53222],104:[0,.69444,.09426,0,.59111],105:[0,.69326,.11387,0,.35555],106:[.19444,.69326,.1672,0,.35555],107:[0,.69444,.11111,0,.53222],108:[0,.69444,.10861,0,.29666],109:[0,.44444,.09426,0,.94444],110:[0,.44444,.09426,0,.64999],111:[0,.44444,.07861,0,.59111],112:[.19444,.44444,.07861,0,.59111],113:[.19444,.44444,.105,0,.53222],114:[0,.44444,.11111,0,.50167],115:[0,.44444,.08167,0,.48694],116:[0,.63492,.09639,0,.385],117:[0,.44444,.09426,0,.62055],118:[0,.44444,.11111,0,.53222],119:[0,.44444,.11111,0,.76777],120:[0,.44444,.12583,0,.56055],121:[.19444,.44444,.105,0,.56166],122:[0,.44444,.13889,0,.49055],126:[.35,.34444,.11472,0,.59111],163:[0,.69444,0,0,.86853],168:[0,.69444,.11473,0,.59111],176:[0,.69444,0,0,.94888],184:[.17014,0,0,0,.53222],198:[0,.68611,.11431,0,1.02277],216:[.04861,.73472,.09062,0,.88555],223:[.19444,.69444,.09736,0,.665],230:[0,.44444,.085,0,.82666],248:[.09722,.54167,.09458,0,.59111],305:[0,.44444,.09426,0,.35555],338:[0,.68611,.11431,0,1.14054],339:[0,.44444,.085,0,.82666],567:[.19444,.44444,.04611,0,.385],710:[0,.69444,.06709,0,.59111],711:[0,.63194,.08271,0,.59111],713:[0,.59444,.10444,0,.59111],714:[0,.69444,.08528,0,.59111],715:[0,.69444,0,0,.59111],728:[0,.69444,.10333,0,.59111],729:[0,.69444,.12945,0,.35555],730:[0,.69444,0,0,.94888],732:[0,.69444,.11472,0,.59111],733:[0,.69444,.11472,0,.59111],915:[0,.68611,.12903,0,.69777],916:[0,.68611,0,0,.94444],920:[0,.68611,.09062,0,.88555],923:[0,.68611,0,0,.80666],926:[0,.68611,.15092,0,.76777],928:[0,.68611,.17208,0,.8961],931:[0,.68611,.11431,0,.82666],933:[0,.68611,.10778,0,.88555],934:[0,.68611,.05632,0,.82666],936:[0,.68611,.10778,0,.88555],937:[0,.68611,.0992,0,.82666],8211:[0,.44444,.09811,0,.59111],8212:[0,.44444,.09811,0,1.18221],8216:[0,.69444,.12945,0,.35555],8217:[0,.69444,.12945,0,.35555],8220:[0,.69444,.16772,0,.62055],8221:[0,.69444,.07939,0,.62055]},"Main-Italic":{33:[0,.69444,.12417,0,.30667],34:[0,.69444,.06961,0,.51444],35:[.19444,.69444,.06616,0,.81777],37:[.05556,.75,.13639,0,.81777],38:[0,.69444,.09694,0,.76666],39:[0,.69444,.12417,0,.30667],40:[.25,.75,.16194,0,.40889],41:[.25,.75,.03694,0,.40889],42:[0,.75,.14917,0,.51111],43:[.05667,.56167,.03694,0,.76666],44:[.19444,.10556,0,0,.30667],45:[0,.43056,.02826,0,.35778],46:[0,.10556,0,0,.30667],47:[.25,.75,.16194,0,.51111],48:[0,.64444,.13556,0,.51111],49:[0,.64444,.13556,0,.51111],50:[0,.64444,.13556,0,.51111],51:[0,.64444,.13556,0,.51111],52:[.19444,.64444,.13556,0,.51111],53:[0,.64444,.13556,0,.51111],54:[0,.64444,.13556,0,.51111],55:[.19444,.64444,.13556,0,.51111],56:[0,.64444,.13556,0,.51111],57:[0,.64444,.13556,0,.51111],58:[0,.43056,.0582,0,.30667],59:[.19444,.43056,.0582,0,.30667],61:[-.13313,.36687,.06616,0,.76666],63:[0,.69444,.1225,0,.51111],64:[0,.69444,.09597,0,.76666],65:[0,.68333,0,0,.74333],66:[0,.68333,.10257,0,.70389],67:[0,.68333,.14528,0,.71555],68:[0,.68333,.09403,0,.755],69:[0,.68333,.12028,0,.67833],70:[0,.68333,.13305,0,.65277],71:[0,.68333,.08722,0,.77361],72:[0,.68333,.16389,0,.74333],73:[0,.68333,.15806,0,.38555],74:[0,.68333,.14028,0,.525],75:[0,.68333,.14528,0,.76888],76:[0,.68333,0,0,.62722],77:[0,.68333,.16389,0,.89666],78:[0,.68333,.16389,0,.74333],79:[0,.68333,.09403,0,.76666],80:[0,.68333,.10257,0,.67833],81:[.19444,.68333,.09403,0,.76666],82:[0,.68333,.03868,0,.72944],83:[0,.68333,.11972,0,.56222],84:[0,.68333,.13305,0,.71555],85:[0,.68333,.16389,0,.74333],86:[0,.68333,.18361,0,.74333],87:[0,.68333,.18361,0,.99888],88:[0,.68333,.15806,0,.74333],89:[0,.68333,.19383,0,.74333],90:[0,.68333,.14528,0,.61333],91:[.25,.75,.1875,0,.30667],93:[.25,.75,.10528,0,.30667],94:[0,.69444,.06646,0,.51111],95:[.31,.12056,.09208,0,.51111],97:[0,.43056,.07671,0,.51111],98:[0,.69444,.06312,0,.46],99:[0,.43056,.05653,0,.46],100:[0,.69444,.10333,0,.51111],101:[0,.43056,.07514,0,.46],102:[.19444,.69444,.21194,0,.30667],103:[.19444,.43056,.08847,0,.46],104:[0,.69444,.07671,0,.51111],105:[0,.65536,.1019,0,.30667],106:[.19444,.65536,.14467,0,.30667],107:[0,.69444,.10764,0,.46],108:[0,.69444,.10333,0,.25555],109:[0,.43056,.07671,0,.81777],110:[0,.43056,.07671,0,.56222],111:[0,.43056,.06312,0,.51111],112:[.19444,.43056,.06312,0,.51111],113:[.19444,.43056,.08847,0,.46],114:[0,.43056,.10764,0,.42166],115:[0,.43056,.08208,0,.40889],116:[0,.61508,.09486,0,.33222],117:[0,.43056,.07671,0,.53666],118:[0,.43056,.10764,0,.46],119:[0,.43056,.10764,0,.66444],120:[0,.43056,.12042,0,.46389],121:[.19444,.43056,.08847,0,.48555],122:[0,.43056,.12292,0,.40889],126:[.35,.31786,.11585,0,.51111],163:[0,.69444,0,0,.76909],168:[0,.66786,.10474,0,.51111],176:[0,.69444,0,0,.83129],184:[.17014,0,0,0,.46],198:[0,.68333,.12028,0,.88277],216:[.04861,.73194,.09403,0,.76666],223:[.19444,.69444,.10514,0,.53666],230:[0,.43056,.07514,0,.71555],248:[.09722,.52778,.09194,0,.51111],305:[0,.43056,0,.02778,.32246],338:[0,.68333,.12028,0,.98499],339:[0,.43056,.07514,0,.71555],567:[.19444,.43056,0,.08334,.38403],710:[0,.69444,.06646,0,.51111],711:[0,.62847,.08295,0,.51111],713:[0,.56167,.10333,0,.51111],714:[0,.69444,.09694,0,.51111],715:[0,.69444,0,0,.51111],728:[0,.69444,.10806,0,.51111],729:[0,.66786,.11752,0,.30667],730:[0,.69444,0,0,.83129],732:[0,.66786,.11585,0,.51111],733:[0,.69444,.1225,0,.51111],915:[0,.68333,.13305,0,.62722],916:[0,.68333,0,0,.81777],920:[0,.68333,.09403,0,.76666],923:[0,.68333,0,0,.69222],926:[0,.68333,.15294,0,.66444],928:[0,.68333,.16389,0,.74333],931:[0,.68333,.12028,0,.71555],933:[0,.68333,.11111,0,.76666],934:[0,.68333,.05986,0,.71555],936:[0,.68333,.11111,0,.76666],937:[0,.68333,.10257,0,.71555],8211:[0,.43056,.09208,0,.51111],8212:[0,.43056,.09208,0,1.02222],8216:[0,.69444,.12417,0,.30667],8217:[0,.69444,.12417,0,.30667],8220:[0,.69444,.1685,0,.51444],8221:[0,.69444,.06961,0,.51444],8463:[0,.68889,0,0,.54028]},"Main-Regular":{32:[0,0,0,0,.25],33:[0,.69444,0,0,.27778],34:[0,.69444,0,0,.5],35:[.19444,.69444,0,0,.83334],36:[.05556,.75,0,0,.5],37:[.05556,.75,0,0,.83334],38:[0,.69444,0,0,.77778],39:[0,.69444,0,0,.27778],40:[.25,.75,0,0,.38889],41:[.25,.75,0,0,.38889],42:[0,.75,0,0,.5],43:[.08333,.58333,0,0,.77778],44:[.19444,.10556,0,0,.27778],45:[0,.43056,0,0,.33333],46:[0,.10556,0,0,.27778],47:[.25,.75,0,0,.5],48:[0,.64444,0,0,.5],49:[0,.64444,0,0,.5],50:[0,.64444,0,0,.5],51:[0,.64444,0,0,.5],52:[0,.64444,0,0,.5],53:[0,.64444,0,0,.5],54:[0,.64444,0,0,.5],55:[0,.64444,0,0,.5],56:[0,.64444,0,0,.5],57:[0,.64444,0,0,.5],58:[0,.43056,0,0,.27778],59:[.19444,.43056,0,0,.27778],60:[.0391,.5391,0,0,.77778],61:[-.13313,.36687,0,0,.77778],62:[.0391,.5391,0,0,.77778],63:[0,.69444,0,0,.47222],64:[0,.69444,0,0,.77778],65:[0,.68333,0,0,.75],66:[0,.68333,0,0,.70834],67:[0,.68333,0,0,.72222],68:[0,.68333,0,0,.76389],69:[0,.68333,0,0,.68056],70:[0,.68333,0,0,.65278],71:[0,.68333,0,0,.78472],72:[0,.68333,0,0,.75],73:[0,.68333,0,0,.36111],74:[0,.68333,0,0,.51389],75:[0,.68333,0,0,.77778],76:[0,.68333,0,0,.625],77:[0,.68333,0,0,.91667],78:[0,.68333,0,0,.75],79:[0,.68333,0,0,.77778],80:[0,.68333,0,0,.68056],81:[.19444,.68333,0,0,.77778],82:[0,.68333,0,0,.73611],83:[0,.68333,0,0,.55556],84:[0,.68333,0,0,.72222],85:[0,.68333,0,0,.75],86:[0,.68333,.01389,0,.75],87:[0,.68333,.01389,0,1.02778],88:[0,.68333,0,0,.75],89:[0,.68333,.025,0,.75],90:[0,.68333,0,0,.61111],91:[.25,.75,0,0,.27778],92:[.25,.75,0,0,.5],93:[.25,.75,0,0,.27778],94:[0,.69444,0,0,.5],95:[.31,.12056,.02778,0,.5],97:[0,.43056,0,0,.5],98:[0,.69444,0,0,.55556],99:[0,.43056,0,0,.44445],100:[0,.69444,0,0,.55556],101:[0,.43056,0,0,.44445],102:[0,.69444,.07778,0,.30556],103:[.19444,.43056,.01389,0,.5],104:[0,.69444,0,0,.55556],105:[0,.66786,0,0,.27778],106:[.19444,.66786,0,0,.30556],107:[0,.69444,0,0,.52778],108:[0,.69444,0,0,.27778],109:[0,.43056,0,0,.83334],110:[0,.43056,0,0,.55556],111:[0,.43056,0,0,.5],112:[.19444,.43056,0,0,.55556],113:[.19444,.43056,0,0,.52778],114:[0,.43056,0,0,.39167],115:[0,.43056,0,0,.39445],116:[0,.61508,0,0,.38889],117:[0,.43056,0,0,.55556],118:[0,.43056,.01389,0,.52778],119:[0,.43056,.01389,0,.72222],120:[0,.43056,0,0,.52778],121:[.19444,.43056,.01389,0,.52778],122:[0,.43056,0,0,.44445],123:[.25,.75,0,0,.5],124:[.25,.75,0,0,.27778],125:[.25,.75,0,0,.5],126:[.35,.31786,0,0,.5],160:[0,0,0,0,.25],167:[.19444,.69444,0,0,.44445],168:[0,.66786,0,0,.5],172:[0,.43056,0,0,.66667],176:[0,.69444,0,0,.75],177:[.08333,.58333,0,0,.77778],182:[.19444,.69444,0,0,.61111],184:[.17014,0,0,0,.44445],198:[0,.68333,0,0,.90278],215:[.08333,.58333,0,0,.77778],216:[.04861,.73194,0,0,.77778],223:[0,.69444,0,0,.5],230:[0,.43056,0,0,.72222],247:[.08333,.58333,0,0,.77778],248:[.09722,.52778,0,0,.5],305:[0,.43056,0,0,.27778],338:[0,.68333,0,0,1.01389],339:[0,.43056,0,0,.77778],567:[.19444,.43056,0,0,.30556],710:[0,.69444,0,0,.5],711:[0,.62847,0,0,.5],713:[0,.56778,0,0,.5],714:[0,.69444,0,0,.5],715:[0,.69444,0,0,.5],728:[0,.69444,0,0,.5],729:[0,.66786,0,0,.27778],730:[0,.69444,0,0,.75],732:[0,.66786,0,0,.5],733:[0,.69444,0,0,.5],915:[0,.68333,0,0,.625],916:[0,.68333,0,0,.83334],920:[0,.68333,0,0,.77778],923:[0,.68333,0,0,.69445],926:[0,.68333,0,0,.66667],928:[0,.68333,0,0,.75],931:[0,.68333,0,0,.72222],933:[0,.68333,0,0,.77778],934:[0,.68333,0,0,.72222],936:[0,.68333,0,0,.77778],937:[0,.68333,0,0,.72222],8211:[0,.43056,.02778,0,.5],8212:[0,.43056,.02778,0,1],8216:[0,.69444,0,0,.27778],8217:[0,.69444,0,0,.27778],8220:[0,.69444,0,0,.5],8221:[0,.69444,0,0,.5],8224:[.19444,.69444,0,0,.44445],8225:[.19444,.69444,0,0,.44445],8230:[0,.12,0,0,1.172],8242:[0,.55556,0,0,.275],8407:[0,.71444,.15382,0,.5],8463:[0,.68889,0,0,.54028],8465:[0,.69444,0,0,.72222],8467:[0,.69444,0,.11111,.41667],8472:[.19444,.43056,0,.11111,.63646],8476:[0,.69444,0,0,.72222],8501:[0,.69444,0,0,.61111],8592:[-.13313,.36687,0,0,1],8593:[.19444,.69444,0,0,.5],8594:[-.13313,.36687,0,0,1],8595:[.19444,.69444,0,0,.5],8596:[-.13313,.36687,0,0,1],8597:[.25,.75,0,0,.5],8598:[.19444,.69444,0,0,1],8599:[.19444,.69444,0,0,1],8600:[.19444,.69444,0,0,1],8601:[.19444,.69444,0,0,1],8614:[.011,.511,0,0,1],8617:[.011,.511,0,0,1.126],8618:[.011,.511,0,0,1.126],8636:[-.13313,.36687,0,0,1],8637:[-.13313,.36687,0,0,1],8640:[-.13313,.36687,0,0,1],8641:[-.13313,.36687,0,0,1],8652:[.011,.671,0,0,1],8656:[-.13313,.36687,0,0,1],8657:[.19444,.69444,0,0,.61111],8658:[-.13313,.36687,0,0,1],8659:[.19444,.69444,0,0,.61111],8660:[-.13313,.36687,0,0,1],8661:[.25,.75,0,0,.61111],8704:[0,.69444,0,0,.55556],8706:[0,.69444,.05556,.08334,.5309],8707:[0,.69444,0,0,.55556],8709:[.05556,.75,0,0,.5],8711:[0,.68333,0,0,.83334],8712:[.0391,.5391,0,0,.66667],8715:[.0391,.5391,0,0,.66667],8722:[.08333,.58333,0,0,.77778],8723:[.08333,.58333,0,0,.77778],8725:[.25,.75,0,0,.5],8726:[.25,.75,0,0,.5],8727:[-.03472,.46528,0,0,.5],8728:[-.05555,.44445,0,0,.5],8729:[-.05555,.44445,0,0,.5],8730:[.2,.8,0,0,.83334],8733:[0,.43056,0,0,.77778],8734:[0,.43056,0,0,1],8736:[0,.69224,0,0,.72222],8739:[.25,.75,0,0,.27778],8741:[.25,.75,0,0,.5],8743:[0,.55556,0,0,.66667],8744:[0,.55556,0,0,.66667],8745:[0,.55556,0,0,.66667],8746:[0,.55556,0,0,.66667],8747:[.19444,.69444,.11111,0,.41667],8764:[-.13313,.36687,0,0,.77778],8768:[.19444,.69444,0,0,.27778],8771:[-.03625,.46375,0,0,.77778],8773:[-.022,.589,0,0,1],8776:[-.01688,.48312,0,0,.77778],8781:[-.03625,.46375,0,0,.77778],8784:[-.133,.67,0,0,.778],8801:[-.03625,.46375,0,0,.77778],8804:[.13597,.63597,0,0,.77778],8805:[.13597,.63597,0,0,.77778],8810:[.0391,.5391,0,0,1],8811:[.0391,.5391,0,0,1],8826:[.0391,.5391,0,0,.77778],8827:[.0391,.5391,0,0,.77778],8834:[.0391,.5391,0,0,.77778],8835:[.0391,.5391,0,0,.77778],8838:[.13597,.63597,0,0,.77778],8839:[.13597,.63597,0,0,.77778],8846:[0,.55556,0,0,.66667],8849:[.13597,.63597,0,0,.77778],8850:[.13597,.63597,0,0,.77778],8851:[0,.55556,0,0,.66667],8852:[0,.55556,0,0,.66667],8853:[.08333,.58333,0,0,.77778],8854:[.08333,.58333,0,0,.77778],8855:[.08333,.58333,0,0,.77778],8856:[.08333,.58333,0,0,.77778],8857:[.08333,.58333,0,0,.77778],8866:[0,.69444,0,0,.61111],8867:[0,.69444,0,0,.61111],8868:[0,.69444,0,0,.77778],8869:[0,.69444,0,0,.77778],8872:[.249,.75,0,0,.867],8900:[-.05555,.44445,0,0,.5],8901:[-.05555,.44445,0,0,.27778],8902:[-.03472,.46528,0,0,.5],8904:[.005,.505,0,0,.9],8942:[.03,.9,0,0,.278],8943:[-.19,.31,0,0,1.172],8945:[-.1,.82,0,0,1.282],8968:[.25,.75,0,0,.44445],8969:[.25,.75,0,0,.44445],8970:[.25,.75,0,0,.44445],8971:[.25,.75,0,0,.44445],8994:[-.14236,.35764,0,0,1],8995:[-.14236,.35764,0,0,1],9136:[.244,.744,0,0,.412],9137:[.244,.744,0,0,.412],9651:[.19444,.69444,0,0,.88889],9657:[-.03472,.46528,0,0,.5],9661:[.19444,.69444,0,0,.88889],9667:[-.03472,.46528,0,0,.5],9711:[.19444,.69444,0,0,1],9824:[.12963,.69444,0,0,.77778],9825:[.12963,.69444,0,0,.77778],9826:[.12963,.69444,0,0,.77778],9827:[.12963,.69444,0,0,.77778],9837:[0,.75,0,0,.38889],9838:[.19444,.69444,0,0,.38889],9839:[.19444,.69444,0,0,.38889],10216:[.25,.75,0,0,.38889],10217:[.25,.75,0,0,.38889],10222:[.244,.744,0,0,.412],10223:[.244,.744,0,0,.412],10229:[.011,.511,0,0,1.609],10230:[.011,.511,0,0,1.638],10231:[.011,.511,0,0,1.859],10232:[.024,.525,0,0,1.609],10233:[.024,.525,0,0,1.638],10234:[.024,.525,0,0,1.858],10236:[.011,.511,0,0,1.638],10815:[0,.68333,0,0,.75],10927:[.13597,.63597,0,0,.77778],10928:[.13597,.63597,0,0,.77778],57376:[.19444,.69444,0,0,0]},"Math-BoldItalic":{65:[0,.68611,0,0,.86944],66:[0,.68611,.04835,0,.8664],67:[0,.68611,.06979,0,.81694],68:[0,.68611,.03194,0,.93812],69:[0,.68611,.05451,0,.81007],70:[0,.68611,.15972,0,.68889],71:[0,.68611,0,0,.88673],72:[0,.68611,.08229,0,.98229],73:[0,.68611,.07778,0,.51111],74:[0,.68611,.10069,0,.63125],75:[0,.68611,.06979,0,.97118],76:[0,.68611,0,0,.75555],77:[0,.68611,.11424,0,1.14201],78:[0,.68611,.11424,0,.95034],79:[0,.68611,.03194,0,.83666],80:[0,.68611,.15972,0,.72309],81:[.19444,.68611,0,0,.86861],82:[0,.68611,.00421,0,.87235],83:[0,.68611,.05382,0,.69271],84:[0,.68611,.15972,0,.63663],85:[0,.68611,.11424,0,.80027],86:[0,.68611,.25555,0,.67778],87:[0,.68611,.15972,0,1.09305],88:[0,.68611,.07778,0,.94722],89:[0,.68611,.25555,0,.67458],90:[0,.68611,.06979,0,.77257],97:[0,.44444,0,0,.63287],98:[0,.69444,0,0,.52083],99:[0,.44444,0,0,.51342],100:[0,.69444,0,0,.60972],101:[0,.44444,0,0,.55361],102:[.19444,.69444,.11042,0,.56806],103:[.19444,.44444,.03704,0,.5449],104:[0,.69444,0,0,.66759],105:[0,.69326,0,0,.4048],106:[.19444,.69326,.0622,0,.47083],107:[0,.69444,.01852,0,.6037],108:[0,.69444,.0088,0,.34815],109:[0,.44444,0,0,1.0324],110:[0,.44444,0,0,.71296],111:[0,.44444,0,0,.58472],112:[.19444,.44444,0,0,.60092],113:[.19444,.44444,.03704,0,.54213],114:[0,.44444,.03194,0,.5287],115:[0,.44444,0,0,.53125],116:[0,.63492,0,0,.41528],117:[0,.44444,0,0,.68102],118:[0,.44444,.03704,0,.56666],119:[0,.44444,.02778,0,.83148],120:[0,.44444,0,0,.65903],121:[.19444,.44444,.03704,0,.59028],122:[0,.44444,.04213,0,.55509],915:[0,.68611,.15972,0,.65694],916:[0,.68611,0,0,.95833],920:[0,.68611,.03194,0,.86722],923:[0,.68611,0,0,.80555],926:[0,.68611,.07458,0,.84125],928:[0,.68611,.08229,0,.98229],931:[0,.68611,.05451,0,.88507],933:[0,.68611,.15972,0,.67083],934:[0,.68611,0,0,.76666],936:[0,.68611,.11653,0,.71402],937:[0,.68611,.04835,0,.8789],945:[0,.44444,0,0,.76064],946:[.19444,.69444,.03403,0,.65972],947:[.19444,.44444,.06389,0,.59003],948:[0,.69444,.03819,0,.52222],949:[0,.44444,0,0,.52882],950:[.19444,.69444,.06215,0,.50833],951:[.19444,.44444,.03704,0,.6],952:[0,.69444,.03194,0,.5618],953:[0,.44444,0,0,.41204],954:[0,.44444,0,0,.66759],955:[0,.69444,0,0,.67083],956:[.19444,.44444,0,0,.70787],957:[0,.44444,.06898,0,.57685],958:[.19444,.69444,.03021,0,.50833],959:[0,.44444,0,0,.58472],960:[0,.44444,.03704,0,.68241],961:[.19444,.44444,0,0,.6118],962:[.09722,.44444,.07917,0,.42361],963:[0,.44444,.03704,0,.68588],964:[0,.44444,.13472,0,.52083],965:[0,.44444,.03704,0,.63055],966:[.19444,.44444,0,0,.74722],967:[.19444,.44444,0,0,.71805],968:[.19444,.69444,.03704,0,.75833],969:[0,.44444,.03704,0,.71782],977:[0,.69444,0,0,.69155],981:[.19444,.69444,0,0,.7125],982:[0,.44444,.03194,0,.975],1009:[.19444,.44444,0,0,.6118],1013:[0,.44444,0,0,.48333]},"Math-Italic":{65:[0,.68333,0,.13889,.75],66:[0,.68333,.05017,.08334,.75851],67:[0,.68333,.07153,.08334,.71472],68:[0,.68333,.02778,.05556,.82792],69:[0,.68333,.05764,.08334,.7382],70:[0,.68333,.13889,.08334,.64306],71:[0,.68333,0,.08334,.78625],72:[0,.68333,.08125,.05556,.83125],73:[0,.68333,.07847,.11111,.43958],74:[0,.68333,.09618,.16667,.55451],75:[0,.68333,.07153,.05556,.84931],76:[0,.68333,0,.02778,.68056],77:[0,.68333,.10903,.08334,.97014],78:[0,.68333,.10903,.08334,.80347],79:[0,.68333,.02778,.08334,.76278],80:[0,.68333,.13889,.08334,.64201],81:[.19444,.68333,0,.08334,.79056],82:[0,.68333,.00773,.08334,.75929],83:[0,.68333,.05764,.08334,.6132],84:[0,.68333,.13889,.08334,.58438],85:[0,.68333,.10903,.02778,.68278],86:[0,.68333,.22222,0,.58333],87:[0,.68333,.13889,0,.94445],88:[0,.68333,.07847,.08334,.82847],89:[0,.68333,.22222,0,.58056],90:[0,.68333,.07153,.08334,.68264],97:[0,.43056,0,0,.52859],98:[0,.69444,0,0,.42917],99:[0,.43056,0,.05556,.43276],100:[0,.69444,0,.16667,.52049],101:[0,.43056,0,.05556,.46563],102:[.19444,.69444,.10764,.16667,.48959],103:[.19444,.43056,.03588,.02778,.47697],104:[0,.69444,0,0,.57616],105:[0,.65952,0,0,.34451],106:[.19444,.65952,.05724,0,.41181],107:[0,.69444,.03148,0,.5206],108:[0,.69444,.01968,.08334,.29838],109:[0,.43056,0,0,.87801],110:[0,.43056,0,0,.60023],111:[0,.43056,0,.05556,.48472],112:[.19444,.43056,0,.08334,.50313],113:[.19444,.43056,.03588,.08334,.44641],114:[0,.43056,.02778,.05556,.45116],115:[0,.43056,0,.05556,.46875],116:[0,.61508,0,.08334,.36111],117:[0,.43056,0,.02778,.57246],118:[0,.43056,.03588,.02778,.48472],119:[0,.43056,.02691,.08334,.71592],120:[0,.43056,0,.02778,.57153],121:[.19444,.43056,.03588,.05556,.49028],122:[0,.43056,.04398,.05556,.46505],915:[0,.68333,.13889,.08334,.61528],916:[0,.68333,0,.16667,.83334],920:[0,.68333,.02778,.08334,.76278],923:[0,.68333,0,.16667,.69445],926:[0,.68333,.07569,.08334,.74236],928:[0,.68333,.08125,.05556,.83125],931:[0,.68333,.05764,.08334,.77986],933:[0,.68333,.13889,.05556,.58333],934:[0,.68333,0,.08334,.66667],936:[0,.68333,.11,.05556,.61222],937:[0,.68333,.05017,.08334,.7724],945:[0,.43056,.0037,.02778,.6397],946:[.19444,.69444,.05278,.08334,.56563],947:[.19444,.43056,.05556,0,.51773],948:[0,.69444,.03785,.05556,.44444],949:[0,.43056,0,.08334,.46632],950:[.19444,.69444,.07378,.08334,.4375],951:[.19444,.43056,.03588,.05556,.49653],952:[0,.69444,.02778,.08334,.46944],953:[0,.43056,0,.05556,.35394],954:[0,.43056,0,0,.57616],955:[0,.69444,0,0,.58334],956:[.19444,.43056,0,.02778,.60255],957:[0,.43056,.06366,.02778,.49398],958:[.19444,.69444,.04601,.11111,.4375],959:[0,.43056,0,.05556,.48472],960:[0,.43056,.03588,0,.57003],961:[.19444,.43056,0,.08334,.51702],962:[.09722,.43056,.07986,.08334,.36285],963:[0,.43056,.03588,0,.57141],964:[0,.43056,.1132,.02778,.43715],965:[0,.43056,.03588,.02778,.54028],966:[.19444,.43056,0,.08334,.65417],967:[.19444,.43056,0,.05556,.62569],968:[.19444,.69444,.03588,.11111,.65139],969:[0,.43056,.03588,0,.62245],977:[0,.69444,0,.08334,.59144],981:[.19444,.69444,0,.08334,.59583],982:[0,.43056,.02778,0,.82813],1009:[.19444,.43056,0,.08334,.51702],1013:[0,.43056,0,.05556,.4059]},"Math-Regular":{65:[0,.68333,0,.13889,.75],66:[0,.68333,.05017,.08334,.75851],67:[0,.68333,.07153,.08334,.71472],68:[0,.68333,.02778,.05556,.82792],69:[0,.68333,.05764,.08334,.7382],70:[0,.68333,.13889,.08334,.64306],71:[0,.68333,0,.08334,.78625],72:[0,.68333,.08125,.05556,.83125],73:[0,.68333,.07847,.11111,.43958],74:[0,.68333,.09618,.16667,.55451],75:[0,.68333,.07153,.05556,.84931],76:[0,.68333,0,.02778,.68056],77:[0,.68333,.10903,.08334,.97014],78:[0,.68333,.10903,.08334,.80347],79:[0,.68333,.02778,.08334,.76278],80:[0,.68333,.13889,.08334,.64201],81:[.19444,.68333,0,.08334,.79056],82:[0,.68333,.00773,.08334,.75929],83:[0,.68333,.05764,.08334,.6132],84:[0,.68333,.13889,.08334,.58438],85:[0,.68333,.10903,.02778,.68278],86:[0,.68333,.22222,0,.58333],87:[0,.68333,.13889,0,.94445],88:[0,.68333,.07847,.08334,.82847],89:[0,.68333,.22222,0,.58056],90:[0,.68333,.07153,.08334,.68264],97:[0,.43056,0,0,.52859],98:[0,.69444,0,0,.42917],99:[0,.43056,0,.05556,.43276],100:[0,.69444,0,.16667,.52049],101:[0,.43056,0,.05556,.46563],102:[.19444,.69444,.10764,.16667,.48959],103:[.19444,.43056,.03588,.02778,.47697],104:[0,.69444,0,0,.57616],105:[0,.65952,0,0,.34451],106:[.19444,.65952,.05724,0,.41181],107:[0,.69444,.03148,0,.5206],108:[0,.69444,.01968,.08334,.29838],109:[0,.43056,0,0,.87801],110:[0,.43056,0,0,.60023],111:[0,.43056,0,.05556,.48472],112:[.19444,.43056,0,.08334,.50313],113:[.19444,.43056,.03588,.08334,.44641],114:[0,.43056,.02778,.05556,.45116],115:[0,.43056,0,.05556,.46875],116:[0,.61508,0,.08334,.36111],117:[0,.43056,0,.02778,.57246],118:[0,.43056,.03588,.02778,.48472],119:[0,.43056,.02691,.08334,.71592],120:[0,.43056,0,.02778,.57153],121:[.19444,.43056,.03588,.05556,.49028],122:[0,.43056,.04398,.05556,.46505],915:[0,.68333,.13889,.08334,.61528],916:[0,.68333,0,.16667,.83334],920:[0,.68333,.02778,.08334,.76278],923:[0,.68333,0,.16667,.69445],926:[0,.68333,.07569,.08334,.74236],928:[0,.68333,.08125,.05556,.83125],931:[0,.68333,.05764,.08334,.77986],933:[0,.68333,.13889,.05556,.58333],934:[0,.68333,0,.08334,.66667],936:[0,.68333,.11,.05556,.61222],937:[0,.68333,.05017,.08334,.7724],945:[0,.43056,.0037,.02778,.6397],946:[.19444,.69444,.05278,.08334,.56563],947:[.19444,.43056,.05556,0,.51773],948:[0,.69444,.03785,.05556,.44444],949:[0,.43056,0,.08334,.46632],950:[.19444,.69444,.07378,.08334,.4375],951:[.19444,.43056,.03588,.05556,.49653],952:[0,.69444,.02778,.08334,.46944],953:[0,.43056,0,.05556,.35394],954:[0,.43056,0,0,.57616],955:[0,.69444,0,0,.58334],956:[.19444,.43056,0,.02778,.60255],957:[0,.43056,.06366,.02778,.49398],958:[.19444,.69444,.04601,.11111,.4375],959:[0,.43056,0,.05556,.48472],960:[0,.43056,.03588,0,.57003],961:[.19444,.43056,0,.08334,.51702],962:[.09722,.43056,.07986,.08334,.36285],963:[0,.43056,.03588,0,.57141],964:[0,.43056,.1132,.02778,.43715],965:[0,.43056,.03588,.02778,.54028],966:[.19444,.43056,0,.08334,.65417],967:[.19444,.43056,0,.05556,.62569],968:[.19444,.69444,.03588,.11111,.65139],969:[0,.43056,.03588,0,.62245],977:[0,.69444,0,.08334,.59144],981:[.19444,.69444,0,.08334,.59583],982:[0,.43056,.02778,0,.82813],1009:[.19444,.43056,0,.08334,.51702],1013:[0,.43056,0,.05556,.4059]},"SansSerif-Bold":{33:[0,.69444,0,0,.36667],34:[0,.69444,0,0,.55834],35:[.19444,.69444,0,0,.91667],36:[.05556,.75,0,0,.55],37:[.05556,.75,0,0,1.02912],38:[0,.69444,0,0,.83056],39:[0,.69444,0,0,.30556],40:[.25,.75,0,0,.42778],41:[.25,.75,0,0,.42778],42:[0,.75,0,0,.55],43:[.11667,.61667,0,0,.85556],44:[.10556,.13056,0,0,.30556],45:[0,.45833,0,0,.36667],46:[0,.13056,0,0,.30556],47:[.25,.75,0,0,.55],48:[0,.69444,0,0,.55],49:[0,.69444,0,0,.55],50:[0,.69444,0,0,.55],51:[0,.69444,0,0,.55],52:[0,.69444,0,0,.55],53:[0,.69444,0,0,.55],54:[0,.69444,0,0,.55],55:[0,.69444,0,0,.55],56:[0,.69444,0,0,.55],57:[0,.69444,0,0,.55],58:[0,.45833,0,0,.30556],59:[.10556,.45833,0,0,.30556],61:[-.09375,.40625,0,0,.85556],63:[0,.69444,0,0,.51945],64:[0,.69444,0,0,.73334],65:[0,.69444,0,0,.73334],66:[0,.69444,0,0,.73334],67:[0,.69444,0,0,.70278],68:[0,.69444,0,0,.79445],69:[0,.69444,0,0,.64167],70:[0,.69444,0,0,.61111],71:[0,.69444,0,0,.73334],72:[0,.69444,0,0,.79445],73:[0,.69444,0,0,.33056],74:[0,.69444,0,0,.51945],75:[0,.69444,0,0,.76389],76:[0,.69444,0,0,.58056],77:[0,.69444,0,0,.97778],78:[0,.69444,0,0,.79445],79:[0,.69444,0,0,.79445],80:[0,.69444,0,0,.70278],81:[.10556,.69444,0,0,.79445],82:[0,.69444,0,0,.70278],83:[0,.69444,0,0,.61111],84:[0,.69444,0,0,.73334],85:[0,.69444,0,0,.76389],86:[0,.69444,.01528,0,.73334],87:[0,.69444,.01528,0,1.03889],88:[0,.69444,0,0,.73334],89:[0,.69444,.0275,0,.73334],90:[0,.69444,0,0,.67223],91:[.25,.75,0,0,.34306],93:[.25,.75,0,0,.34306],94:[0,.69444,0,0,.55],95:[.35,.10833,.03056,0,.55],97:[0,.45833,0,0,.525],98:[0,.69444,0,0,.56111],99:[0,.45833,0,0,.48889],100:[0,.69444,0,0,.56111],101:[0,.45833,0,0,.51111],102:[0,.69444,.07639,0,.33611],103:[.19444,.45833,.01528,0,.55],104:[0,.69444,0,0,.56111],105:[0,.69444,0,0,.25556],106:[.19444,.69444,0,0,.28611],107:[0,.69444,0,0,.53056],108:[0,.69444,0,0,.25556],109:[0,.45833,0,0,.86667],110:[0,.45833,0,0,.56111],111:[0,.45833,0,0,.55],112:[.19444,.45833,0,0,.56111],113:[.19444,.45833,0,0,.56111],114:[0,.45833,.01528,0,.37222],115:[0,.45833,0,0,.42167],116:[0,.58929,0,0,.40417],117:[0,.45833,0,0,.56111],118:[0,.45833,.01528,0,.5],119:[0,.45833,.01528,0,.74445],120:[0,.45833,0,0,.5],121:[.19444,.45833,.01528,0,.5],122:[0,.45833,0,0,.47639],126:[.35,.34444,0,0,.55],168:[0,.69444,0,0,.55],176:[0,.69444,0,0,.73334],180:[0,.69444,0,0,.55],184:[.17014,0,0,0,.48889],305:[0,.45833,0,0,.25556],567:[.19444,.45833,0,0,.28611],710:[0,.69444,0,0,.55],711:[0,.63542,0,0,.55],713:[0,.63778,0,0,.55],728:[0,.69444,0,0,.55],729:[0,.69444,0,0,.30556],730:[0,.69444,0,0,.73334],732:[0,.69444,0,0,.55],733:[0,.69444,0,0,.55],915:[0,.69444,0,0,.58056],916:[0,.69444,0,0,.91667],920:[0,.69444,0,0,.85556],923:[0,.69444,0,0,.67223],926:[0,.69444,0,0,.73334],928:[0,.69444,0,0,.79445],931:[0,.69444,0,0,.79445],933:[0,.69444,0,0,.85556],934:[0,.69444,0,0,.79445],936:[0,.69444,0,0,.85556],937:[0,.69444,0,0,.79445],8211:[0,.45833,.03056,0,.55],8212:[0,.45833,.03056,0,1.10001],8216:[0,.69444,0,0,.30556],8217:[0,.69444,0,0,.30556],8220:[0,.69444,0,0,.55834],8221:[0,.69444,0,0,.55834]},"SansSerif-Italic":{33:[0,.69444,.05733,0,.31945],34:[0,.69444,.00316,0,.5],35:[.19444,.69444,.05087,0,.83334],36:[.05556,.75,.11156,0,.5],37:[.05556,.75,.03126,0,.83334],38:[0,.69444,.03058,0,.75834],39:[0,.69444,.07816,0,.27778],40:[.25,.75,.13164,0,.38889],41:[.25,.75,.02536,0,.38889],42:[0,.75,.11775,0,.5],43:[.08333,.58333,.02536,0,.77778],44:[.125,.08333,0,0,.27778],45:[0,.44444,.01946,0,.33333],46:[0,.08333,0,0,.27778],47:[.25,.75,.13164,0,.5],48:[0,.65556,.11156,0,.5],49:[0,.65556,.11156,0,.5],50:[0,.65556,.11156,0,.5],51:[0,.65556,.11156,0,.5],52:[0,.65556,.11156,0,.5],53:[0,.65556,.11156,0,.5],54:[0,.65556,.11156,0,.5],55:[0,.65556,.11156,0,.5],56:[0,.65556,.11156,0,.5],57:[0,.65556,.11156,0,.5],58:[0,.44444,.02502,0,.27778],59:[.125,.44444,.02502,0,.27778],61:[-.13,.37,.05087,0,.77778],63:[0,.69444,.11809,0,.47222],64:[0,.69444,.07555,0,.66667],65:[0,.69444,0,0,.66667],66:[0,.69444,.08293,0,.66667],67:[0,.69444,.11983,0,.63889],68:[0,.69444,.07555,0,.72223],69:[0,.69444,.11983,0,.59722],70:[0,.69444,.13372,0,.56945],71:[0,.69444,.11983,0,.66667],72:[0,.69444,.08094,0,.70834],73:[0,.69444,.13372,0,.27778],74:[0,.69444,.08094,0,.47222],75:[0,.69444,.11983,0,.69445],76:[0,.69444,0,0,.54167],77:[0,.69444,.08094,0,.875],78:[0,.69444,.08094,0,.70834],79:[0,.69444,.07555,0,.73611],80:[0,.69444,.08293,0,.63889],81:[.125,.69444,.07555,0,.73611],82:[0,.69444,.08293,0,.64584],83:[0,.69444,.09205,0,.55556],84:[0,.69444,.13372,0,.68056],85:[0,.69444,.08094,0,.6875],86:[0,.69444,.1615,0,.66667],87:[0,.69444,.1615,0,.94445],88:[0,.69444,.13372,0,.66667],89:[0,.69444,.17261,0,.66667],90:[0,.69444,.11983,0,.61111],91:[.25,.75,.15942,0,.28889],93:[.25,.75,.08719,0,.28889],94:[0,.69444,.0799,0,.5],95:[.35,.09444,.08616,0,.5],97:[0,.44444,.00981,0,.48056],98:[0,.69444,.03057,0,.51667],99:[0,.44444,.08336,0,.44445],100:[0,.69444,.09483,0,.51667],101:[0,.44444,.06778,0,.44445],102:[0,.69444,.21705,0,.30556],103:[.19444,.44444,.10836,0,.5],104:[0,.69444,.01778,0,.51667],105:[0,.67937,.09718,0,.23889],106:[.19444,.67937,.09162,0,.26667],107:[0,.69444,.08336,0,.48889],108:[0,.69444,.09483,0,.23889],109:[0,.44444,.01778,0,.79445],110:[0,.44444,.01778,0,.51667],111:[0,.44444,.06613,0,.5],112:[.19444,.44444,.0389,0,.51667],113:[.19444,.44444,.04169,0,.51667],114:[0,.44444,.10836,0,.34167],115:[0,.44444,.0778,0,.38333],116:[0,.57143,.07225,0,.36111],117:[0,.44444,.04169,0,.51667],118:[0,.44444,.10836,0,.46111],119:[0,.44444,.10836,0,.68334],120:[0,.44444,.09169,0,.46111],121:[.19444,.44444,.10836,0,.46111],122:[0,.44444,.08752,0,.43472],126:[.35,.32659,.08826,0,.5],168:[0,.67937,.06385,0,.5],176:[0,.69444,0,0,.73752],184:[.17014,0,0,0,.44445],305:[0,.44444,.04169,0,.23889],567:[.19444,.44444,.04169,0,.26667],710:[0,.69444,.0799,0,.5],711:[0,.63194,.08432,0,.5],713:[0,.60889,.08776,0,.5],714:[0,.69444,.09205,0,.5],715:[0,.69444,0,0,.5],728:[0,.69444,.09483,0,.5],729:[0,.67937,.07774,0,.27778],730:[0,.69444,0,0,.73752],732:[0,.67659,.08826,0,.5],733:[0,.69444,.09205,0,.5],915:[0,.69444,.13372,0,.54167],916:[0,.69444,0,0,.83334],920:[0,.69444,.07555,0,.77778],923:[0,.69444,0,0,.61111],926:[0,.69444,.12816,0,.66667],928:[0,.69444,.08094,0,.70834],931:[0,.69444,.11983,0,.72222],933:[0,.69444,.09031,0,.77778],934:[0,.69444,.04603,0,.72222],936:[0,.69444,.09031,0,.77778],937:[0,.69444,.08293,0,.72222],8211:[0,.44444,.08616,0,.5],8212:[0,.44444,.08616,0,1],8216:[0,.69444,.07816,0,.27778],8217:[0,.69444,.07816,0,.27778],8220:[0,.69444,.14205,0,.5],8221:[0,.69444,.00316,0,.5]},"SansSerif-Regular":{33:[0,.69444,0,0,.31945],34:[0,.69444,0,0,.5],35:[.19444,.69444,0,0,.83334],36:[.05556,.75,0,0,.5],37:[.05556,.75,0,0,.83334],38:[0,.69444,0,0,.75834],39:[0,.69444,0,0,.27778],40:[.25,.75,0,0,.38889],41:[.25,.75,0,0,.38889],42:[0,.75,0,0,.5],43:[.08333,.58333,0,0,.77778],44:[.125,.08333,0,0,.27778],45:[0,.44444,0,0,.33333],46:[0,.08333,0,0,.27778],47:[.25,.75,0,0,.5],48:[0,.65556,0,0,.5],49:[0,.65556,0,0,.5],50:[0,.65556,0,0,.5],51:[0,.65556,0,0,.5],52:[0,.65556,0,0,.5],53:[0,.65556,0,0,.5],54:[0,.65556,0,0,.5],55:[0,.65556,0,0,.5],56:[0,.65556,0,0,.5],57:[0,.65556,0,0,.5],58:[0,.44444,0,0,.27778],59:[.125,.44444,0,0,.27778],61:[-.13,.37,0,0,.77778],63:[0,.69444,0,0,.47222],64:[0,.69444,0,0,.66667],65:[0,.69444,0,0,.66667],66:[0,.69444,0,0,.66667],67:[0,.69444,0,0,.63889],68:[0,.69444,0,0,.72223],69:[0,.69444,0,0,.59722],70:[0,.69444,0,0,.56945],71:[0,.69444,0,0,.66667],72:[0,.69444,0,0,.70834],73:[0,.69444,0,0,.27778],74:[0,.69444,0,0,.47222],75:[0,.69444,0,0,.69445],76:[0,.69444,0,0,.54167],77:[0,.69444,0,0,.875],78:[0,.69444,0,0,.70834],79:[0,.69444,0,0,.73611],80:[0,.69444,0,0,.63889],81:[.125,.69444,0,0,.73611],82:[0,.69444,0,0,.64584],83:[0,.69444,0,0,.55556],84:[0,.69444,0,0,.68056],85:[0,.69444,0,0,.6875],86:[0,.69444,.01389,0,.66667],87:[0,.69444,.01389,0,.94445],88:[0,.69444,0,0,.66667],89:[0,.69444,.025,0,.66667],90:[0,.69444,0,0,.61111],91:[.25,.75,0,0,.28889],93:[.25,.75,0,0,.28889],94:[0,.69444,0,0,.5],95:[.35,.09444,.02778,0,.5],97:[0,.44444,0,0,.48056],98:[0,.69444,0,0,.51667],99:[0,.44444,0,0,.44445],100:[0,.69444,0,0,.51667],101:[0,.44444,0,0,.44445],102:[0,.69444,.06944,0,.30556],103:[.19444,.44444,.01389,0,.5],104:[0,.69444,0,0,.51667],105:[0,.67937,0,0,.23889],106:[.19444,.67937,0,0,.26667],107:[0,.69444,0,0,.48889],108:[0,.69444,0,0,.23889],109:[0,.44444,0,0,.79445],110:[0,.44444,0,0,.51667],111:[0,.44444,0,0,.5],112:[.19444,.44444,0,0,.51667],113:[.19444,.44444,0,0,.51667],114:[0,.44444,.01389,0,.34167],115:[0,.44444,0,0,.38333],116:[0,.57143,0,0,.36111],117:[0,.44444,0,0,.51667],118:[0,.44444,.01389,0,.46111],119:[0,.44444,.01389,0,.68334],120:[0,.44444,0,0,.46111],121:[.19444,.44444,.01389,0,.46111],122:[0,.44444,0,0,.43472],126:[.35,.32659,0,0,.5],168:[0,.67937,0,0,.5],176:[0,.69444,0,0,.66667],184:[.17014,0,0,0,.44445],305:[0,.44444,0,0,.23889],567:[.19444,.44444,0,0,.26667],710:[0,.69444,0,0,.5],711:[0,.63194,0,0,.5],713:[0,.60889,0,0,.5],714:[0,.69444,0,0,.5],715:[0,.69444,0,0,.5],728:[0,.69444,0,0,.5],729:[0,.67937,0,0,.27778],730:[0,.69444,0,0,.66667],732:[0,.67659,0,0,.5],733:[0,.69444,0,0,.5],915:[0,.69444,0,0,.54167],916:[0,.69444,0,0,.83334],920:[0,.69444,0,0,.77778],923:[0,.69444,0,0,.61111],926:[0,.69444,0,0,.66667],928:[0,.69444,0,0,.70834],931:[0,.69444,0,0,.72222],933:[0,.69444,0,0,.77778],934:[0,.69444,0,0,.72222],936:[0,.69444,0,0,.77778],937:[0,.69444,0,0,.72222],8211:[0,.44444,.02778,0,.5],8212:[0,.44444,.02778,0,1],8216:[0,.69444,0,0,.27778],8217:[0,.69444,0,0,.27778],8220:[0,.69444,0,0,.5],8221:[0,.69444,0,0,.5]},"Script-Regular":{65:[0,.7,.22925,0,.80253],66:[0,.7,.04087,0,.90757],67:[0,.7,.1689,0,.66619],68:[0,.7,.09371,0,.77443],69:[0,.7,.18583,0,.56162],70:[0,.7,.13634,0,.89544],71:[0,.7,.17322,0,.60961],72:[0,.7,.29694,0,.96919],73:[0,.7,.19189,0,.80907],74:[.27778,.7,.19189,0,1.05159],75:[0,.7,.31259,0,.91364],76:[0,.7,.19189,0,.87373],77:[0,.7,.15981,0,1.08031],78:[0,.7,.3525,0,.9015],79:[0,.7,.08078,0,.73787],80:[0,.7,.08078,0,1.01262],81:[0,.7,.03305,0,.88282],82:[0,.7,.06259,0,.85],83:[0,.7,.19189,0,.86767],84:[0,.7,.29087,0,.74697],85:[0,.7,.25815,0,.79996],86:[0,.7,.27523,0,.62204],87:[0,.7,.27523,0,.80532],88:[0,.7,.26006,0,.94445],89:[0,.7,.2939,0,.70961],90:[0,.7,.24037,0,.8212]},"Size1-Regular":{40:[.35001,.85,0,0,.45834],41:[.35001,.85,0,0,.45834],47:[.35001,.85,0,0,.57778],91:[.35001,.85,0,0,.41667],92:[.35001,.85,0,0,.57778],93:[.35001,.85,0,0,.41667],123:[.35001,.85,0,0,.58334],125:[.35001,.85,0,0,.58334],710:[0,.72222,0,0,.55556],732:[0,.72222,0,0,.55556],770:[0,.72222,0,0,.55556],771:[0,.72222,0,0,.55556],8214:[-99e-5,.601,0,0,.77778],8593:[1e-5,.6,0,0,.66667],8595:[1e-5,.6,0,0,.66667],8657:[1e-5,.6,0,0,.77778],8659:[1e-5,.6,0,0,.77778],8719:[.25001,.75,0,0,.94445],8720:[.25001,.75,0,0,.94445],8721:[.25001,.75,0,0,1.05556],8730:[.35001,.85,0,0,1],8739:[-.00599,.606,0,0,.33333],8741:[-.00599,.606,0,0,.55556],8747:[.30612,.805,.19445,0,.47222],8748:[.306,.805,.19445,0,.47222],8749:[.306,.805,.19445,0,.47222],8750:[.30612,.805,.19445,0,.47222],8896:[.25001,.75,0,0,.83334],8897:[.25001,.75,0,0,.83334],8898:[.25001,.75,0,0,.83334],8899:[.25001,.75,0,0,.83334],8968:[.35001,.85,0,0,.47222],8969:[.35001,.85,0,0,.47222],8970:[.35001,.85,0,0,.47222],8971:[.35001,.85,0,0,.47222],9168:[-99e-5,.601,0,0,.66667],10216:[.35001,.85,0,0,.47222],10217:[.35001,.85,0,0,.47222],10752:[.25001,.75,0,0,1.11111],10753:[.25001,.75,0,0,1.11111],10754:[.25001,.75,0,0,1.11111],10756:[.25001,.75,0,0,.83334],10758:[.25001,.75,0,0,.83334]},"Size2-Regular":{40:[.65002,1.15,0,0,.59722],41:[.65002,1.15,0,0,.59722],47:[.65002,1.15,0,0,.81111],91:[.65002,1.15,0,0,.47222],92:[.65002,1.15,0,0,.81111],93:[.65002,1.15,0,0,.47222],123:[.65002,1.15,0,0,.66667],125:[.65002,1.15,0,0,.66667],710:[0,.75,0,0,1],732:[0,.75,0,0,1],770:[0,.75,0,0,1],771:[0,.75,0,0,1],8719:[.55001,1.05,0,0,1.27778],8720:[.55001,1.05,0,0,1.27778],8721:[.55001,1.05,0,0,1.44445],8730:[.65002,1.15,0,0,1],8747:[.86225,1.36,.44445,0,.55556],8748:[.862,1.36,.44445,0,.55556],8749:[.862,1.36,.44445,0,.55556],8750:[.86225,1.36,.44445,0,.55556],8896:[.55001,1.05,0,0,1.11111],8897:[.55001,1.05,0,0,1.11111],8898:[.55001,1.05,0,0,1.11111],8899:[.55001,1.05,0,0,1.11111],8968:[.65002,1.15,0,0,.52778],8969:[.65002,1.15,0,0,.52778],8970:[.65002,1.15,0,0,.52778],8971:[.65002,1.15,0,0,.52778],10216:[.65002,1.15,0,0,.61111],10217:[.65002,1.15,0,0,.61111],10752:[.55001,1.05,0,0,1.51112],10753:[.55001,1.05,0,0,1.51112],10754:[.55001,1.05,0,0,1.51112],10756:[.55001,1.05,0,0,1.11111],10758:[.55001,1.05,0,0,1.11111]},"Size3-Regular":{40:[.95003,1.45,0,0,.73611],41:[.95003,1.45,0,0,.73611],47:[.95003,1.45,0,0,1.04445],91:[.95003,1.45,0,0,.52778],92:[.95003,1.45,0,0,1.04445],93:[.95003,1.45,0,0,.52778],123:[.95003,1.45,0,0,.75],125:[.95003,1.45,0,0,.75],710:[0,.75,0,0,1.44445],732:[0,.75,0,0,1.44445],770:[0,.75,0,0,1.44445],771:[0,.75,0,0,1.44445],8730:[.95003,1.45,0,0,1],8968:[.95003,1.45,0,0,.58334],8969:[.95003,1.45,0,0,.58334],8970:[.95003,1.45,0,0,.58334],8971:[.95003,1.45,0,0,.58334],10216:[.95003,1.45,0,0,.75],10217:[.95003,1.45,0,0,.75]},"Size4-Regular":{40:[1.25003,1.75,0,0,.79167],41:[1.25003,1.75,0,0,.79167],47:[1.25003,1.75,0,0,1.27778],91:[1.25003,1.75,0,0,.58334],92:[1.25003,1.75,0,0,1.27778],93:[1.25003,1.75,0,0,.58334],123:[1.25003,1.75,0,0,.80556],125:[1.25003,1.75,0,0,.80556],710:[0,.825,0,0,1.8889],732:[0,.825,0,0,1.8889],770:[0,.825,0,0,1.8889],771:[0,.825,0,0,1.8889],8730:[1.25003,1.75,0,0,1],8968:[1.25003,1.75,0,0,.63889],8969:[1.25003,1.75,0,0,.63889],8970:[1.25003,1.75,0,0,.63889],8971:[1.25003,1.75,0,0,.63889],9115:[.64502,1.155,0,0,.875],9116:[1e-5,.6,0,0,.875],9117:[.64502,1.155,0,0,.875],9118:[.64502,1.155,0,0,.875],9119:[1e-5,.6,0,0,.875],9120:[.64502,1.155,0,0,.875],9121:[.64502,1.155,0,0,.66667],9122:[-99e-5,.601,0,0,.66667],9123:[.64502,1.155,0,0,.66667],9124:[.64502,1.155,0,0,.66667],9125:[-99e-5,.601,0,0,.66667],9126:[.64502,1.155,0,0,.66667],9127:[1e-5,.9,0,0,.88889],9128:[.65002,1.15,0,0,.88889],9129:[.90001,0,0,0,.88889],9130:[0,.3,0,0,.88889],9131:[1e-5,.9,0,0,.88889],9132:[.65002,1.15,0,0,.88889],9133:[.90001,0,0,0,.88889],9143:[.88502,.915,0,0,1.05556],10216:[1.25003,1.75,0,0,.80556],10217:[1.25003,1.75,0,0,.80556],57344:[-.00499,.605,0,0,1.05556],57345:[-.00499,.605,0,0,1.05556],57680:[0,.12,0,0,.45],57681:[0,.12,0,0,.45],57682:[0,.12,0,0,.45],57683:[0,.12,0,0,.45]},"Typewriter-Regular":{32:[0,0,0,0,.525],33:[0,.61111,0,0,.525],34:[0,.61111,0,0,.525],35:[0,.61111,0,0,.525],36:[.08333,.69444,0,0,.525],37:[.08333,.69444,0,0,.525],38:[0,.61111,0,0,.525],39:[0,.61111,0,0,.525],40:[.08333,.69444,0,0,.525],41:[.08333,.69444,0,0,.525],42:[0,.52083,0,0,.525],43:[-.08056,.53055,0,0,.525],44:[.13889,.125,0,0,.525],45:[-.08056,.53055,0,0,.525],46:[0,.125,0,0,.525],47:[.08333,.69444,0,0,.525],48:[0,.61111,0,0,.525],49:[0,.61111,0,0,.525],50:[0,.61111,0,0,.525],51:[0,.61111,0,0,.525],52:[0,.61111,0,0,.525],53:[0,.61111,0,0,.525],54:[0,.61111,0,0,.525],55:[0,.61111,0,0,.525],56:[0,.61111,0,0,.525],57:[0,.61111,0,0,.525],58:[0,.43056,0,0,.525],59:[.13889,.43056,0,0,.525],60:[-.05556,.55556,0,0,.525],61:[-.19549,.41562,0,0,.525],62:[-.05556,.55556,0,0,.525],63:[0,.61111,0,0,.525],64:[0,.61111,0,0,.525],65:[0,.61111,0,0,.525],66:[0,.61111,0,0,.525],67:[0,.61111,0,0,.525],68:[0,.61111,0,0,.525],69:[0,.61111,0,0,.525],70:[0,.61111,0,0,.525],71:[0,.61111,0,0,.525],72:[0,.61111,0,0,.525],73:[0,.61111,0,0,.525],74:[0,.61111,0,0,.525],75:[0,.61111,0,0,.525],76:[0,.61111,0,0,.525],77:[0,.61111,0,0,.525],78:[0,.61111,0,0,.525],79:[0,.61111,0,0,.525],80:[0,.61111,0,0,.525],81:[.13889,.61111,0,0,.525],82:[0,.61111,0,0,.525],83:[0,.61111,0,0,.525],84:[0,.61111,0,0,.525],85:[0,.61111,0,0,.525],86:[0,.61111,0,0,.525],87:[0,.61111,0,0,.525],88:[0,.61111,0,0,.525],89:[0,.61111,0,0,.525],90:[0,.61111,0,0,.525],91:[.08333,.69444,0,0,.525],92:[.08333,.69444,0,0,.525],93:[.08333,.69444,0,0,.525],94:[0,.61111,0,0,.525],95:[.09514,0,0,0,.525],96:[0,.61111,0,0,.525],97:[0,.43056,0,0,.525],98:[0,.61111,0,0,.525],99:[0,.43056,0,0,.525],100:[0,.61111,0,0,.525],101:[0,.43056,0,0,.525],102:[0,.61111,0,0,.525],103:[.22222,.43056,0,0,.525],104:[0,.61111,0,0,.525],105:[0,.61111,0,0,.525],106:[.22222,.61111,0,0,.525],107:[0,.61111,0,0,.525],108:[0,.61111,0,0,.525],109:[0,.43056,0,0,.525],110:[0,.43056,0,0,.525],111:[0,.43056,0,0,.525],112:[.22222,.43056,0,0,.525],113:[.22222,.43056,0,0,.525],114:[0,.43056,0,0,.525],115:[0,.43056,0,0,.525],116:[0,.55358,0,0,.525],117:[0,.43056,0,0,.525],118:[0,.43056,0,0,.525],119:[0,.43056,0,0,.525],120:[0,.43056,0,0,.525],121:[.22222,.43056,0,0,.525],122:[0,.43056,0,0,.525],123:[.08333,.69444,0,0,.525],124:[.08333,.69444,0,0,.525],125:[.08333,.69444,0,0,.525],126:[0,.61111,0,0,.525],127:[0,.61111,0,0,.525],160:[0,0,0,0,.525],176:[0,.61111,0,0,.525],184:[.19445,0,0,0,.525],305:[0,.43056,0,0,.525],567:[.22222,.43056,0,0,.525],711:[0,.56597,0,0,.525],713:[0,.56555,0,0,.525],714:[0,.61111,0,0,.525],715:[0,.61111,0,0,.525],728:[0,.61111,0,0,.525],730:[0,.61111,0,0,.525],770:[0,.61111,0,0,.525],771:[0,.61111,0,0,.525],776:[0,.61111,0,0,.525],915:[0,.61111,0,0,.525],916:[0,.61111,0,0,.525],920:[0,.61111,0,0,.525],923:[0,.61111,0,0,.525],926:[0,.61111,0,0,.525],928:[0,.61111,0,0,.525],931:[0,.61111,0,0,.525],933:[0,.61111,0,0,.525],934:[0,.61111,0,0,.525],936:[0,.61111,0,0,.525],937:[0,.61111,0,0,.525],8216:[0,.61111,0,0,.525],8217:[0,.61111,0,0,.525],8242:[0,.61111,0,0,.525],9251:[.11111,.21944,0,0,.525]}},Bt={slant:[.25,.25,.25],space:[0,0,0],stretch:[0,0,0],shrink:[0,0,0],xHeight:[.431,.431,.431],quad:[1,1.171,1.472],extraSpace:[0,0,0],num1:[.677,.732,.925],num2:[.394,.384,.387],num3:[.444,.471,.504],denom1:[.686,.752,1.025],denom2:[.345,.344,.532],sup1:[.413,.503,.504],sup2:[.363,.431,.404],sup3:[.289,.286,.294],sub1:[.15,.143,.2],sub2:[.247,.286,.4],supDrop:[.386,.353,.494],subDrop:[.05,.071,.1],delim1:[2.39,1.7,1.98],delim2:[1.01,1.157,1.42],axisHeight:[.25,.25,.25],defaultRuleThickness:[.04,.049,.049],bigOpSpacing1:[.111,.111,.111],bigOpSpacing2:[.166,.166,.166],bigOpSpacing3:[.2,.2,.2],bigOpSpacing4:[.6,.611,.611],bigOpSpacing5:[.1,.143,.143],sqrtRuleThickness:[.04,.04,.04],ptPerEm:[10,10,10],doubleRuleSep:[.2,.2,.2],arrayRuleWidth:[.04,.04,.04],fboxsep:[.3,.3,.3],fboxrule:[.04,.04,.04]},Mt={\u00C5:"A",\u00C7:"C",\u00D0:"D",\u00DE:"o",\u00E5:"a",\u00E7:"c",\u00F0:"d",\u00FE:"o",\u0410:"A",\u0411:"B",\u0412:"B",\u0413:"F",\u0414:"A",\u0415:"E",\u0416:"K",\u0417:"3",\u0418:"N",\u0419:"N",\u041A:"K",\u041B:"N",\u041C:"M",\u041D:"H",\u041E:"O",\u041F:"N",\u0420:"P",\u0421:"C",\u0422:"T",\u0423:"y",\u0424:"O",\u0425:"X",\u0426:"U",\u0427:"h",\u0428:"W",\u0429:"W",\u042A:"B",\u042B:"X",\u042C:"B",\u042D:"3",\u042E:"X",\u042F:"R",\u0430:"a",\u0431:"b",\u0432:"a",\u0433:"r",\u0434:"y",\u0435:"e",\u0436:"m",\u0437:"e",\u0438:"n",\u0439:"n",\u043A:"n",\u043B:"n",\u043C:"m",\u043D:"n",\u043E:"o",\u043F:"n",\u0440:"p",\u0441:"c",\u0442:"o",\u0443:"y",\u0444:"b",\u0445:"x",\u0446:"n",\u0447:"n",\u0448:"w",\u0449:"w",\u044A:"a",\u044B:"m",\u044C:"a",\u044D:"e",\u044E:"m",\u044F:"r"};function Wt(Ee,f){Tr[Ee]=f}function cr(Ee,f,v){if(!Tr[f])throw new Error("Font metrics not found for font: "+f+".");var x=Ee.charCodeAt(0),Q=Tr[f][x];if(!Q&&Ee[0]in Mt&&(x=Mt[Ee[0]].charCodeAt(0),Q=Tr[f][x]),!Q&&v==="text"&&ut(x)&&(Q=Tr[f][77]),Q)return{depth:Q[0],height:Q[1],italic:Q[2],skew:Q[3],width:Q[4]}}var qt={};function kt(Ee){var f;if(Ee>=5?f=0:Ee>=3?f=1:f=2,!qt[f]){var v=qt[f]={cssEmPerMu:Bt.quad[f]/18};for(var x in Bt)Bt.hasOwnProperty(x)&&(v[x]=Bt[x][f])}return qt[f]}var Pr={bin:1,close:1,inner:1,open:1,punct:1,rel:1},$t={"accent-token":1,mathord:1,"op-token":1,spacing:1,textord:1},yr={math:{},text:{}},An=yr;function Y(Ee,f,v,x,Q,re){yr[Ee][Q]={font:f,group:v,replace:x},re&&x&&(yr[Ee][x]=yr[Ee][Q])}var ie="math",Ot="text",fe="main",Ke="ams",Wr="accent-token",ct="bin",Dt="close",Kt="inner",Oe="mathord",Ve="op-token",at="open",Pt="punct",Le="rel",Kr="spacing",ht="textord";Y(ie,fe,Le,"\u2261","\\equiv",!0),Y(ie,fe,Le,"\u227A","\\prec",!0),Y(ie,fe,Le,"\u227B","\\succ",!0),Y(ie,fe,Le,"\u223C","\\sim",!0),Y(ie,fe,Le,"\u22A5","\\perp"),Y(ie,fe,Le,"\u2AAF","\\preceq",!0),Y(ie,fe,Le,"\u2AB0","\\succeq",!0),Y(ie,fe,Le,"\u2243","\\simeq",!0),Y(ie,fe,Le,"\u2223","\\mid",!0),Y(ie,fe,Le,"\u226A","\\ll",!0),Y(ie,fe,Le,"\u226B","\\gg",!0),Y(ie,fe,Le,"\u224D","\\asymp",!0),Y(ie,fe,Le,"\u2225","\\parallel"),Y(ie,fe,Le,"\u22C8","\\bowtie",!0),Y(ie,fe,Le,"\u2323","\\smile",!0),Y(ie,fe,Le,"\u2291","\\sqsubseteq",!0),Y(ie,fe,Le,"\u2292","\\sqsupseteq",!0),Y(ie,fe,Le,"\u2250","\\doteq",!0),Y(ie,fe,Le,"\u2322","\\frown",!0),Y(ie,fe,Le,"\u220B","\\ni",!0),Y(ie,fe,Le,"\u221D","\\propto",!0),Y(ie,fe,Le,"\u22A2","\\vdash",!0),Y(ie,fe,Le,"\u22A3","\\dashv",!0),Y(ie,fe,Le,"\u220B","\\owns"),Y(ie,fe,Pt,".","\\ldotp"),Y(ie,fe,Pt,"\u22C5","\\cdotp"),Y(ie,fe,ht,"#","\\#"),Y(Ot,fe,ht,"#","\\#"),Y(ie,fe,ht,"&","\\&"),Y(Ot,fe,ht,"&","\\&"),Y(ie,fe,ht,"\u2135","\\aleph",!0),Y(ie,fe,ht,"\u2200","\\forall",!0),Y(ie,fe,ht,"\u210F","\\hbar",!0),Y(ie,fe,ht,"\u2203","\\exists",!0),Y(ie,fe,ht,"\u2207","\\nabla",!0),Y(ie,fe,ht,"\u266D","\\flat",!0),Y(ie,fe,ht,"\u2113","\\ell",!0),Y(ie,fe,ht,"\u266E","\\natural",!0),Y(ie,fe,ht,"\u2663","\\clubsuit",!0),Y(ie,fe,ht,"\u2118","\\wp",!0),Y(ie,fe,ht,"\u266F","\\sharp",!0),Y(ie,fe,ht,"\u2662","\\diamondsuit",!0),Y(ie,fe,ht,"\u211C","\\Re",!0),Y(ie,fe,ht,"\u2661","\\heartsuit",!0),Y(ie,fe,ht,"\u2111","\\Im",!0),Y(ie,fe,ht,"\u2660","\\spadesuit",!0),Y(Ot,fe,ht,"\xA7","\\S",!0),Y(Ot,fe,ht,"\xB6","\\P",!0),Y(ie,fe,ht,"\u2020","\\dag"),Y(Ot,fe,ht,"\u2020","\\dag"),Y(Ot,fe,ht,"\u2020","\\textdagger"),Y(ie,fe,ht,"\u2021","\\ddag"),Y(Ot,fe,ht,"\u2021","\\ddag"),Y(Ot,fe,ht,"\u2021","\\textdaggerdbl"),Y(ie,fe,Dt,"\u23B1","\\rmoustache",!0),Y(ie,fe,at,"\u23B0","\\lmoustache",!0),Y(ie,fe,Dt,"\u27EF","\\rgroup",!0),Y(ie,fe,at,"\u27EE","\\lgroup",!0),Y(ie,fe,ct,"\u2213","\\mp",!0),Y(ie,fe,ct,"\u2296","\\ominus",!0),Y(ie,fe,ct,"\u228E","\\uplus",!0),Y(ie,fe,ct,"\u2293","\\sqcap",!0),Y(ie,fe,ct,"\u2217","\\ast"),Y(ie,fe,ct,"\u2294","\\sqcup",!0),Y(ie,fe,ct,"\u25EF","\\bigcirc"),Y(ie,fe,ct,"\u2219","\\bullet"),Y(ie,fe,ct,"\u2021","\\ddagger"),Y(ie,fe,ct,"\u2240","\\wr",!0),Y(ie,fe,ct,"\u2A3F","\\amalg"),Y(ie,fe,ct,"&","\\And"),Y(ie,fe,Le,"\u27F5","\\longleftarrow",!0),Y(ie,fe,Le,"\u21D0","\\Leftarrow",!0),Y(ie,fe,Le,"\u27F8","\\Longleftarrow",!0),Y(ie,fe,Le,"\u27F6","\\longrightarrow",!0),Y(ie,fe,Le,"\u21D2","\\Rightarrow",!0),Y(ie,fe,Le,"\u27F9","\\Longrightarrow",!0),Y(ie,fe,Le,"\u2194","\\leftrightarrow",!0),Y(ie,fe,Le,"\u27F7","\\longleftrightarrow",!0),Y(ie,fe,Le,"\u21D4","\\Leftrightarrow",!0),Y(ie,fe,Le,"\u27FA","\\Longleftrightarrow",!0),Y(ie,fe,Le,"\u21A6","\\mapsto",!0),Y(ie,fe,Le,"\u27FC","\\longmapsto",!0),Y(ie,fe,Le,"\u2197","\\nearrow",!0),Y(ie,fe,Le,"\u21A9","\\hookleftarrow",!0),Y(ie,fe,Le,"\u21AA","\\hookrightarrow",!0),Y(ie,fe,Le,"\u2198","\\searrow",!0),Y(ie,fe,Le,"\u21BC","\\leftharpoonup",!0),Y(ie,fe,Le,"\u21C0","\\rightharpoonup",!0),Y(ie,fe,Le,"\u2199","\\swarrow",!0),Y(ie,fe,Le,"\u21BD","\\leftharpoondown",!0),Y(ie,fe,Le,"\u21C1","\\rightharpoondown",!0),Y(ie,fe,Le,"\u2196","\\nwarrow",!0),Y(ie,fe,Le,"\u21CC","\\rightleftharpoons",!0),Y(ie,Ke,Le,"\u226E","\\nless",!0),Y(ie,Ke,Le,"\uE010","\\@nleqslant"),Y(ie,Ke,Le,"\uE011","\\@nleqq"),Y(ie,Ke,Le,"\u2A87","\\lneq",!0),Y(ie,Ke,Le,"\u2268","\\lneqq",!0),Y(ie,Ke,Le,"\uE00C","\\@lvertneqq"),Y(ie,Ke,Le,"\u22E6","\\lnsim",!0),Y(ie,Ke,Le,"\u2A89","\\lnapprox",!0),Y(ie,Ke,Le,"\u2280","\\nprec",!0),Y(ie,Ke,Le,"\u22E0","\\npreceq",!0),Y(ie,Ke,Le,"\u22E8","\\precnsim",!0),Y(ie,Ke,Le,"\u2AB9","\\precnapprox",!0),Y(ie,Ke,Le,"\u2241","\\nsim",!0),Y(ie,Ke,Le,"\uE006","\\@nshortmid"),Y(ie,Ke,Le,"\u2224","\\nmid",!0),Y(ie,Ke,Le,"\u22AC","\\nvdash",!0),Y(ie,Ke,Le,"\u22AD","\\nvDash",!0),Y(ie,Ke,Le,"\u22EA","\\ntriangleleft"),Y(ie,Ke,Le,"\u22EC","\\ntrianglelefteq",!0),Y(ie,Ke,Le,"\u228A","\\subsetneq",!0),Y(ie,Ke,Le,"\uE01A","\\@varsubsetneq"),Y(ie,Ke,Le,"\u2ACB","\\subsetneqq",!0),Y(ie,Ke,Le,"\uE017","\\@varsubsetneqq"),Y(ie,Ke,Le,"\u226F","\\ngtr",!0),Y(ie,Ke,Le,"\uE00F","\\@ngeqslant"),Y(ie,Ke,Le,"\uE00E","\\@ngeqq"),Y(ie,Ke,Le,"\u2A88","\\gneq",!0),Y(ie,Ke,Le,"\u2269","\\gneqq",!0),Y(ie,Ke,Le,"\uE00D","\\@gvertneqq"),Y(ie,Ke,Le,"\u22E7","\\gnsim",!0),Y(ie,Ke,Le,"\u2A8A","\\gnapprox",!0),Y(ie,Ke,Le,"\u2281","\\nsucc",!0),Y(ie,Ke,Le,"\u22E1","\\nsucceq",!0),Y(ie,Ke,Le,"\u22E9","\\succnsim",!0),Y(ie,Ke,Le,"\u2ABA","\\succnapprox",!0),Y(ie,Ke,Le,"\u2246","\\ncong",!0),Y(ie,Ke,Le,"\uE007","\\@nshortparallel"),Y(ie,Ke,Le,"\u2226","\\nparallel",!0),Y(ie,Ke,Le,"\u22AF","\\nVDash",!0),Y(ie,Ke,Le,"\u22EB","\\ntriangleright"),Y(ie,Ke,Le,"\u22ED","\\ntrianglerighteq",!0),Y(ie,Ke,Le,"\uE018","\\@nsupseteqq"),Y(ie,Ke,Le,"\u228B","\\supsetneq",!0),Y(ie,Ke,Le,"\uE01B","\\@varsupsetneq"),Y(ie,Ke,Le,"\u2ACC","\\supsetneqq",!0),Y(ie,Ke,Le,"\uE019","\\@varsupsetneqq"),Y(ie,Ke,Le,"\u22AE","\\nVdash",!0),Y(ie,Ke,Le,"\u2AB5","\\precneqq",!0),Y(ie,Ke,Le,"\u2AB6","\\succneqq",!0),Y(ie,Ke,Le,"\uE016","\\@nsubseteqq"),Y(ie,Ke,ct,"\u22B4","\\unlhd"),Y(ie,Ke,ct,"\u22B5","\\unrhd"),Y(ie,Ke,Le,"\u219A","\\nleftarrow",!0),Y(ie,Ke,Le,"\u219B","\\nrightarrow",!0),Y(ie,Ke,Le,"\u21CD","\\nLeftarrow",!0),Y(ie,Ke,Le,"\u21CF","\\nRightarrow",!0),Y(ie,Ke,Le,"\u21AE","\\nleftrightarrow",!0),Y(ie,Ke,Le,"\u21CE","\\nLeftrightarrow",!0),Y(ie,Ke,Le,"\u25B3","\\vartriangle"),Y(ie,Ke,ht,"\u210F","\\hslash"),Y(ie,Ke,ht,"\u25BD","\\triangledown"),Y(ie,Ke,ht,"\u25CA","\\lozenge"),Y(ie,Ke,ht,"\u24C8","\\circledS"),Y(ie,Ke,ht,"\xAE","\\circledR"),Y(Ot,Ke,ht,"\xAE","\\circledR"),Y(ie,Ke,ht,"\u2221","\\measuredangle",!0),Y(ie,Ke,ht,"\u2204","\\nexists"),Y(ie,Ke,ht,"\u2127","\\mho"),Y(ie,Ke,ht,"\u2132","\\Finv",!0),Y(ie,Ke,ht,"\u2141","\\Game",!0),Y(ie,Ke,ht,"\u2035","\\backprime"),Y(ie,Ke,ht,"\u25B2","\\blacktriangle"),Y(ie,Ke,ht,"\u25BC","\\blacktriangledown"),Y(ie,Ke,ht,"\u25A0","\\blacksquare"),Y(ie,Ke,ht,"\u29EB","\\blacklozenge"),Y(ie,Ke,ht,"\u2605","\\bigstar"),Y(ie,Ke,ht,"\u2222","\\sphericalangle",!0),Y(ie,Ke,ht,"\u2201","\\complement",!0),Y(ie,Ke,ht,"\xF0","\\eth",!0),Y(ie,Ke,ht,"\u2571","\\diagup"),Y(ie,Ke,ht,"\u2572","\\diagdown"),Y(ie,Ke,ht,"\u25A1","\\square"),Y(ie,Ke,ht,"\u25A1","\\Box"),Y(ie,Ke,ht,"\u25CA","\\Diamond"),Y(ie,Ke,ht,"\xA5","\\yen",!0),Y(Ot,Ke,ht,"\xA5","\\yen",!0),Y(ie,Ke,ht,"\u2713","\\checkmark",!0),Y(Ot,Ke,ht,"\u2713","\\checkmark"),Y(ie,Ke,ht,"\u2136","\\beth",!0),Y(ie,Ke,ht,"\u2138","\\daleth",!0),Y(ie,Ke,ht,"\u2137","\\gimel",!0),Y(ie,Ke,ht,"\u03DD","\\digamma",!0),Y(ie,Ke,ht,"\u03F0","\\varkappa"),Y(ie,Ke,at,"\u250C","\\ulcorner",!0),Y(ie,Ke,Dt,"\u2510","\\urcorner",!0),Y(ie,Ke,at,"\u2514","\\llcorner",!0),Y(ie,Ke,Dt,"\u2518","\\lrcorner",!0),Y(ie,Ke,Le,"\u2266","\\leqq",!0),Y(ie,Ke,Le,"\u2A7D","\\leqslant",!0),Y(ie,Ke,Le,"\u2A95","\\eqslantless",!0),Y(ie,Ke,Le,"\u2272","\\lesssim",!0),Y(ie,Ke,Le,"\u2A85","\\lessapprox",!0),Y(ie,Ke,Le,"\u224A","\\approxeq",!0),Y(ie,Ke,ct,"\u22D6","\\lessdot"),Y(ie,Ke,Le,"\u22D8","\\lll",!0),Y(ie,Ke,Le,"\u2276","\\lessgtr",!0),Y(ie,Ke,Le,"\u22DA","\\lesseqgtr",!0),Y(ie,Ke,Le,"\u2A8B","\\lesseqqgtr",!0),Y(ie,Ke,Le,"\u2251","\\doteqdot"),Y(ie,Ke,Le,"\u2253","\\risingdotseq",!0),Y(ie,Ke,Le,"\u2252","\\fallingdotseq",!0),Y(ie,Ke,Le,"\u223D","\\backsim",!0),Y(ie,Ke,Le,"\u22CD","\\backsimeq",!0),Y(ie,Ke,Le,"\u2AC5","\\subseteqq",!0),Y(ie,Ke,Le,"\u22D0","\\Subset",!0),Y(ie,Ke,Le,"\u228F","\\sqsubset",!0),Y(ie,Ke,Le,"\u227C","\\preccurlyeq",!0),Y(ie,Ke,Le,"\u22DE","\\curlyeqprec",!0),Y(ie,Ke,Le,"\u227E","\\precsim",!0),Y(ie,Ke,Le,"\u2AB7","\\precapprox",!0),Y(ie,Ke,Le,"\u22B2","\\vartriangleleft"),Y(ie,Ke,Le,"\u22B4","\\trianglelefteq"),Y(ie,Ke,Le,"\u22A8","\\vDash",!0),Y(ie,Ke,Le,"\u22AA","\\Vvdash",!0),Y(ie,Ke,Le,"\u2323","\\smallsmile"),Y(ie,Ke,Le,"\u2322","\\smallfrown"),Y(ie,Ke,Le,"\u224F","\\bumpeq",!0),Y(ie,Ke,Le,"\u224E","\\Bumpeq",!0),Y(ie,Ke,Le,"\u2267","\\geqq",!0),Y(ie,Ke,Le,"\u2A7E","\\geqslant",!0),Y(ie,Ke,Le,"\u2A96","\\eqslantgtr",!0),Y(ie,Ke,Le,"\u2273","\\gtrsim",!0),Y(ie,Ke,Le,"\u2A86","\\gtrapprox",!0),Y(ie,Ke,ct,"\u22D7","\\gtrdot"),Y(ie,Ke,Le,"\u22D9","\\ggg",!0),Y(ie,Ke,Le,"\u2277","\\gtrless",!0),Y(ie,Ke,Le,"\u22DB","\\gtreqless",!0),Y(ie,Ke,Le,"\u2A8C","\\gtreqqless",!0),Y(ie,Ke,Le,"\u2256","\\eqcirc",!0),Y(ie,Ke,Le,"\u2257","\\circeq",!0),Y(ie,Ke,Le,"\u225C","\\triangleq",!0),Y(ie,Ke,Le,"\u223C","\\thicksim"),Y(ie,Ke,Le,"\u2248","\\thickapprox"),Y(ie,Ke,Le,"\u2AC6","\\supseteqq",!0),Y(ie,Ke,Le,"\u22D1","\\Supset",!0),Y(ie,Ke,Le,"\u2290","\\sqsupset",!0),Y(ie,Ke,Le,"\u227D","\\succcurlyeq",!0),Y(ie,Ke,Le,"\u22DF","\\curlyeqsucc",!0),Y(ie,Ke,Le,"\u227F","\\succsim",!0),Y(ie,Ke,Le,"\u2AB8","\\succapprox",!0),Y(ie,Ke,Le,"\u22B3","\\vartriangleright"),Y(ie,Ke,Le,"\u22B5","\\trianglerighteq"),Y(ie,Ke,Le,"\u22A9","\\Vdash",!0),Y(ie,Ke,Le,"\u2223","\\shortmid"),Y(ie,Ke,Le,"\u2225","\\shortparallel"),Y(ie,Ke,Le,"\u226C","\\between",!0),Y(ie,Ke,Le,"\u22D4","\\pitchfork",!0),Y(ie,Ke,Le,"\u221D","\\varpropto"),Y(ie,Ke,Le,"\u25C0","\\blacktriangleleft"),Y(ie,Ke,Le,"\u2234","\\therefore",!0),Y(ie,Ke,Le,"\u220D","\\backepsilon"),Y(ie,Ke,Le,"\u25B6","\\blacktriangleright"),Y(ie,Ke,Le,"\u2235","\\because",!0),Y(ie,Ke,Le,"\u22D8","\\llless"),Y(ie,Ke,Le,"\u22D9","\\gggtr"),Y(ie,Ke,ct,"\u22B2","\\lhd"),Y(ie,Ke,ct,"\u22B3","\\rhd"),Y(ie,Ke,Le,"\u2242","\\eqsim",!0),Y(ie,fe,Le,"\u22C8","\\Join"),Y(ie,Ke,Le,"\u2251","\\Doteq",!0),Y(ie,Ke,ct,"\u2214","\\dotplus",!0),Y(ie,Ke,ct,"\u2216","\\smallsetminus"),Y(ie,Ke,ct,"\u22D2","\\Cap",!0),Y(ie,Ke,ct,"\u22D3","\\Cup",!0),Y(ie,Ke,ct,"\u2A5E","\\doublebarwedge",!0),Y(ie,Ke,ct,"\u229F","\\boxminus",!0),Y(ie,Ke,ct,"\u229E","\\boxplus",!0),Y(ie,Ke,ct,"\u22C7","\\divideontimes",!0),Y(ie,Ke,ct,"\u22C9","\\ltimes",!0),Y(ie,Ke,ct,"\u22CA","\\rtimes",!0),Y(ie,Ke,ct,"\u22CB","\\leftthreetimes",!0),Y(ie,Ke,ct,"\u22CC","\\rightthreetimes",!0),Y(ie,Ke,ct,"\u22CF","\\curlywedge",!0),Y(ie,Ke,ct,"\u22CE","\\curlyvee",!0),Y(ie,Ke,ct,"\u229D","\\circleddash",!0),Y(ie,Ke,ct,"\u229B","\\circledast",!0),Y(ie,Ke,ct,"\u22C5","\\centerdot"),Y(ie,Ke,ct,"\u22BA","\\intercal",!0),Y(ie,Ke,ct,"\u22D2","\\doublecap"),Y(ie,Ke,ct,"\u22D3","\\doublecup"),Y(ie,Ke,ct,"\u22A0","\\boxtimes",!0),Y(ie,Ke,Le,"\u21E2","\\dashrightarrow",!0),Y(ie,Ke,Le,"\u21E0","\\dashleftarrow",!0),Y(ie,Ke,Le,"\u21C7","\\leftleftarrows",!0),Y(ie,Ke,Le,"\u21C6","\\leftrightarrows",!0),Y(ie,Ke,Le,"\u21DA","\\Lleftarrow",!0),Y(ie,Ke,Le,"\u219E","\\twoheadleftarrow",!0),Y(ie,Ke,Le,"\u21A2","\\leftarrowtail",!0),Y(ie,Ke,Le,"\u21AB","\\looparrowleft",!0),Y(ie,Ke,Le,"\u21CB","\\leftrightharpoons",!0),Y(ie,Ke,Le,"\u21B6","\\curvearrowleft",!0),Y(ie,Ke,Le,"\u21BA","\\circlearrowleft",!0),Y(ie,Ke,Le,"\u21B0","\\Lsh",!0),Y(ie,Ke,Le,"\u21C8","\\upuparrows",!0),Y(ie,Ke,Le,"\u21BF","\\upharpoonleft",!0),Y(ie,Ke,Le,"\u21C3","\\downharpoonleft",!0),Y(ie,Ke,Le,"\u22B8","\\multimap",!0),Y(ie,Ke,Le,"\u21AD","\\leftrightsquigarrow",!0),Y(ie,Ke,Le,"\u21C9","\\rightrightarrows",!0),Y(ie,Ke,Le,"\u21C4","\\rightleftarrows",!0),Y(ie,Ke,Le,"\u21A0","\\twoheadrightarrow",!0),Y(ie,Ke,Le,"\u21A3","\\rightarrowtail",!0),Y(ie,Ke,Le,"\u21AC","\\looparrowright",!0),Y(ie,Ke,Le,"\u21B7","\\curvearrowright",!0),Y(ie,Ke,Le,"\u21BB","\\circlearrowright",!0),Y(ie,Ke,Le,"\u21B1","\\Rsh",!0),Y(ie,Ke,Le,"\u21CA","\\downdownarrows",!0),Y(ie,Ke,Le,"\u21BE","\\upharpoonright",!0),Y(ie,Ke,Le,"\u21C2","\\downharpoonright",!0),Y(ie,Ke,Le,"\u21DD","\\rightsquigarrow",!0),Y(ie,Ke,Le,"\u21DD","\\leadsto"),Y(ie,Ke,Le,"\u21DB","\\Rrightarrow",!0),Y(ie,Ke,Le,"\u21BE","\\restriction"),Y(ie,fe,ht,"\u2018","`"),Y(ie,fe,ht,"$","\\$"),Y(Ot,fe,ht,"$","\\$"),Y(Ot,fe,ht,"$","\\textdollar"),Y(ie,fe,ht,"%","\\%"),Y(Ot,fe,ht,"%","\\%"),Y(ie,fe,ht,"_","\\_"),Y(Ot,fe,ht,"_","\\_"),Y(Ot,fe,ht,"_","\\textunderscore"),Y(ie,fe,ht,"\u2220","\\angle",!0),Y(ie,fe,ht,"\u221E","\\infty",!0),Y(ie,fe,ht,"\u2032","\\prime"),Y(ie,fe,ht,"\u25B3","\\triangle"),Y(ie,fe,ht,"\u0393","\\Gamma",!0),Y(ie,fe,ht,"\u0394","\\Delta",!0),Y(ie,fe,ht,"\u0398","\\Theta",!0),Y(ie,fe,ht,"\u039B","\\Lambda",!0),Y(ie,fe,ht,"\u039E","\\Xi",!0),Y(ie,fe,ht,"\u03A0","\\Pi",!0),Y(ie,fe,ht,"\u03A3","\\Sigma",!0),Y(ie,fe,ht,"\u03A5","\\Upsilon",!0),Y(ie,fe,ht,"\u03A6","\\Phi",!0),Y(ie,fe,ht,"\u03A8","\\Psi",!0),Y(ie,fe,ht,"\u03A9","\\Omega",!0),Y(ie,fe,ht,"A","\u0391"),Y(ie,fe,ht,"B","\u0392"),Y(ie,fe,ht,"E","\u0395"),Y(ie,fe,ht,"Z","\u0396"),Y(ie,fe,ht,"H","\u0397"),Y(ie,fe,ht,"I","\u0399"),Y(ie,fe,ht,"K","\u039A"),Y(ie,fe,ht,"M","\u039C"),Y(ie,fe,ht,"N","\u039D"),Y(ie,fe,ht,"O","\u039F"),Y(ie,fe,ht,"P","\u03A1"),Y(ie,fe,ht,"T","\u03A4"),Y(ie,fe,ht,"X","\u03A7"),Y(ie,fe,ht,"\xAC","\\neg",!0),Y(ie,fe,ht,"\xAC","\\lnot"),Y(ie,fe,ht,"\u22A4","\\top"),Y(ie,fe,ht,"\u22A5","\\bot"),Y(ie,fe,ht,"\u2205","\\emptyset"),Y(ie,Ke,ht,"\u2205","\\varnothing"),Y(ie,fe,Oe,"\u03B1","\\alpha",!0),Y(ie,fe,Oe,"\u03B2","\\beta",!0),Y(ie,fe,Oe,"\u03B3","\\gamma",!0),Y(ie,fe,Oe,"\u03B4","\\delta",!0),Y(ie,fe,Oe,"\u03F5","\\epsilon",!0),Y(ie,fe,Oe,"\u03B6","\\zeta",!0),Y(ie,fe,Oe,"\u03B7","\\eta",!0),Y(ie,fe,Oe,"\u03B8","\\theta",!0),Y(ie,fe,Oe,"\u03B9","\\iota",!0),Y(ie,fe,Oe,"\u03BA","\\kappa",!0),Y(ie,fe,Oe,"\u03BB","\\lambda",!0),Y(ie,fe,Oe,"\u03BC","\\mu",!0),Y(ie,fe,Oe,"\u03BD","\\nu",!0),Y(ie,fe,Oe,"\u03BE","\\xi",!0),Y(ie,fe,Oe,"\u03BF","\\omicron",!0),Y(ie,fe,Oe,"\u03C0","\\pi",!0),Y(ie,fe,Oe,"\u03C1","\\rho",!0),Y(ie,fe,Oe,"\u03C3","\\sigma",!0),Y(ie,fe,Oe,"\u03C4","\\tau",!0),Y(ie,fe,Oe,"\u03C5","\\upsilon",!0),Y(ie,fe,Oe,"\u03D5","\\phi",!0),Y(ie,fe,Oe,"\u03C7","\\chi",!0),Y(ie,fe,Oe,"\u03C8","\\psi",!0),Y(ie,fe,Oe,"\u03C9","\\omega",!0),Y(ie,fe,Oe,"\u03B5","\\varepsilon",!0),Y(ie,fe,Oe,"\u03D1","\\vartheta",!0),Y(ie,fe,Oe,"\u03D6","\\varpi",!0),Y(ie,fe,Oe,"\u03F1","\\varrho",!0),Y(ie,fe,Oe,"\u03C2","\\varsigma",!0),Y(ie,fe,Oe,"\u03C6","\\varphi",!0),Y(ie,fe,ct,"\u2217","*"),Y(ie,fe,ct,"+","+"),Y(ie,fe,ct,"\u2212","-"),Y(ie,fe,ct,"\u22C5","\\cdot",!0),Y(ie,fe,ct,"\u2218","\\circ"),Y(ie,fe,ct,"\xF7","\\div",!0),Y(ie,fe,ct,"\xB1","\\pm",!0),Y(ie,fe,ct,"\xD7","\\times",!0),Y(ie,fe,ct,"\u2229","\\cap",!0),Y(ie,fe,ct,"\u222A","\\cup",!0),Y(ie,fe,ct,"\u2216","\\setminus"),Y(ie,fe,ct,"\u2227","\\land"),Y(ie,fe,ct,"\u2228","\\lor"),Y(ie,fe,ct,"\u2227","\\wedge",!0),Y(ie,fe,ct,"\u2228","\\vee",!0),Y(ie,fe,ht,"\u221A","\\surd"),Y(ie,fe,at,"(","("),Y(ie,fe,at,"[","["),Y(ie,fe,at,"\u27E8","\\langle",!0),Y(ie,fe,at,"\u2223","\\lvert"),Y(ie,fe,at,"\u2225","\\lVert"),Y(ie,fe,Dt,")",")"),Y(ie,fe,Dt,"]","]"),Y(ie,fe,Dt,"?","?"),Y(ie,fe,Dt,"!","!"),Y(ie,fe,Dt,"\u27E9","\\rangle",!0),Y(ie,fe,Dt,"\u2223","\\rvert"),Y(ie,fe,Dt,"\u2225","\\rVert"),Y(ie,fe,Le,"=","="),Y(ie,fe,Le,"<","<"),Y(ie,fe,Le,">",">"),Y(ie,fe,Le,":",":"),Y(ie,fe,Le,"\u2248","\\approx",!0),Y(ie,fe,Le,"\u2245","\\cong",!0),Y(ie,fe,Le,"\u2265","\\ge"),Y(ie,fe,Le,"\u2265","\\geq",!0),Y(ie,fe,Le,"\u2190","\\gets"),Y(ie,fe,Le,">","\\gt"),Y(ie,fe,Le,"\u2208","\\in",!0),Y(ie,fe,Le,"\uE020","\\@not"),Y(ie,fe,Le,"\u2282","\\subset",!0),Y(ie,fe,Le,"\u2283","\\supset",!0),Y(ie,fe,Le,"\u2286","\\subseteq",!0),Y(ie,fe,Le,"\u2287","\\supseteq",!0),Y(ie,Ke,Le,"\u2288","\\nsubseteq",!0),Y(ie,Ke,Le,"\u2289","\\nsupseteq",!0),Y(ie,fe,Le,"\u22A8","\\models"),Y(ie,fe,Le,"\u2190","\\leftarrow",!0),Y(ie,fe,Le,"\u2264","\\le"),Y(ie,fe,Le,"\u2264","\\leq",!0),Y(ie,fe,Le,"<","\\lt"),Y(ie,fe,Le,"\u2192","\\rightarrow",!0),Y(ie,fe,Le,"\u2192","\\to"),Y(ie,Ke,Le,"\u2271","\\ngeq",!0),Y(ie,Ke,Le,"\u2270","\\nleq",!0),Y(ie,fe,Kr,"\xA0","\\ "),Y(ie,fe,Kr,"\xA0","~"),Y(ie,fe,Kr,"\xA0","\\space"),Y(ie,fe,Kr,"\xA0","\\nobreakspace"),Y(Ot,fe,Kr,"\xA0","\\ "),Y(Ot,fe,Kr,"\xA0","~"),Y(Ot,fe,Kr,"\xA0","\\space"),Y(Ot,fe,Kr,"\xA0","\\nobreakspace"),Y(ie,fe,Kr,null,"\\nobreak"),Y(ie,fe,Kr,null,"\\allowbreak"),Y(ie,fe,Pt,",",","),Y(ie,fe,Pt,";",";"),Y(ie,Ke,ct,"\u22BC","\\barwedge",!0),Y(ie,Ke,ct,"\u22BB","\\veebar",!0),Y(ie,fe,ct,"\u2299","\\odot",!0),Y(ie,fe,ct,"\u2295","\\oplus",!0),Y(ie,fe,ct,"\u2297","\\otimes",!0),Y(ie,fe,ht,"\u2202","\\partial",!0),Y(ie,fe,ct,"\u2298","\\oslash",!0),Y(ie,Ke,ct,"\u229A","\\circledcirc",!0),Y(ie,Ke,ct,"\u22A1","\\boxdot",!0),Y(ie,fe,ct,"\u25B3","\\bigtriangleup"),Y(ie,fe,ct,"\u25BD","\\bigtriangledown"),Y(ie,fe,ct,"\u2020","\\dagger"),Y(ie,fe,ct,"\u22C4","\\diamond"),Y(ie,fe,ct,"\u22C6","\\star"),Y(ie,fe,ct,"\u25C3","\\triangleleft"),Y(ie,fe,ct,"\u25B9","\\triangleright"),Y(ie,fe,at,"{","\\{"),Y(Ot,fe,ht,"{","\\{"),Y(Ot,fe,ht,"{","\\textbraceleft"),Y(ie,fe,Dt,"}","\\}"),Y(Ot,fe,ht,"}","\\}"),Y(Ot,fe,ht,"}","\\textbraceright"),Y(ie,fe,at,"{","\\lbrace"),Y(ie,fe,Dt,"}","\\rbrace"),Y(ie,fe,at,"[","\\lbrack"),Y(Ot,fe,ht,"[","\\lbrack"),Y(ie,fe,Dt,"]","\\rbrack"),Y(Ot,fe,ht,"]","\\rbrack"),Y(ie,fe,at,"(","\\lparen"),Y(ie,fe,Dt,")","\\rparen"),Y(Ot,fe,ht,"<","\\textless"),Y(Ot,fe,ht,">","\\textgreater"),Y(ie,fe,at,"\u230A","\\lfloor",!0),Y(ie,fe,Dt,"\u230B","\\rfloor",!0),Y(ie,fe,at,"\u2308","\\lceil",!0),Y(ie,fe,Dt,"\u2309","\\rceil",!0),Y(ie,fe,ht,"\\","\\backslash"),Y(ie,fe,ht,"\u2223","|"),Y(ie,fe,ht,"\u2223","\\vert"),Y(Ot,fe,ht,"|","\\textbar"),Y(ie,fe,ht,"\u2225","\\|"),Y(ie,fe,ht,"\u2225","\\Vert"),Y(Ot,fe,ht,"\u2225","\\textbardbl"),Y(Ot,fe,ht,"~","\\textasciitilde"),Y(Ot,fe,ht,"\\","\\textbackslash"),Y(Ot,fe,ht,"^","\\textasciicircum"),Y(ie,fe,Le,"\u2191","\\uparrow",!0),Y(ie,fe,Le,"\u21D1","\\Uparrow",!0),Y(ie,fe,Le,"\u2193","\\downarrow",!0),Y(ie,fe,Le,"\u21D3","\\Downarrow",!0),Y(ie,fe,Le,"\u2195","\\updownarrow",!0),Y(ie,fe,Le,"\u21D5","\\Updownarrow",!0),Y(ie,fe,Ve,"\u2210","\\coprod"),Y(ie,fe,Ve,"\u22C1","\\bigvee"),Y(ie,fe,Ve,"\u22C0","\\bigwedge"),Y(ie,fe,Ve,"\u2A04","\\biguplus"),Y(ie,fe,Ve,"\u22C2","\\bigcap"),Y(ie,fe,Ve,"\u22C3","\\bigcup"),Y(ie,fe,Ve,"\u222B","\\int"),Y(ie,fe,Ve,"\u222B","\\intop"),Y(ie,fe,Ve,"\u222C","\\iint"),Y(ie,fe,Ve,"\u222D","\\iiint"),Y(ie,fe,Ve,"\u220F","\\prod"),Y(ie,fe,Ve,"\u2211","\\sum"),Y(ie,fe,Ve,"\u2A02","\\bigotimes"),Y(ie,fe,Ve,"\u2A01","\\bigoplus"),Y(ie,fe,Ve,"\u2A00","\\bigodot"),Y(ie,fe,Ve,"\u222E","\\oint"),Y(ie,fe,Ve,"\u222F","\\oiint"),Y(ie,fe,Ve,"\u2230","\\oiiint"),Y(ie,fe,Ve,"\u2A06","\\bigsqcup"),Y(ie,fe,Ve,"\u222B","\\smallint"),Y(Ot,fe,Kt,"\u2026","\\textellipsis"),Y(ie,fe,Kt,"\u2026","\\mathellipsis"),Y(Ot,fe,Kt,"\u2026","\\ldots",!0),Y(ie,fe,Kt,"\u2026","\\ldots",!0),Y(ie,fe,Kt,"\u22EF","\\@cdots",!0),Y(ie,fe,Kt,"\u22F1","\\ddots",!0),Y(ie,fe,ht,"\u22EE","\\varvdots"),Y(ie,fe,Wr,"\u02CA","\\acute"),Y(ie,fe,Wr,"\u02CB","\\grave"),Y(ie,fe,Wr,"\xA8","\\ddot"),Y(ie,fe,Wr,"~","\\tilde"),Y(ie,fe,Wr,"\u02C9","\\bar"),Y(ie,fe,Wr,"\u02D8","\\breve"),Y(ie,fe,Wr,"\u02C7","\\check"),Y(ie,fe,Wr,"^","\\hat"),Y(ie,fe,Wr,"\u20D7","\\vec"),Y(ie,fe,Wr,"\u02D9","\\dot"),Y(ie,fe,Wr,"\u02DA","\\mathring"),Y(ie,fe,Oe,"\u0131","\\imath",!0),Y(ie,fe,Oe,"\u0237","\\jmath",!0),Y(Ot,fe,ht,"\u0131","\\i",!0),Y(Ot,fe,ht,"\u0237","\\j",!0),Y(Ot,fe,ht,"\xDF","\\ss",!0),Y(Ot,fe,ht,"\xE6","\\ae",!0),Y(Ot,fe,ht,"\xE6","\\ae",!0),Y(Ot,fe,ht,"\u0153","\\oe",!0),Y(Ot,fe,ht,"\xF8","\\o",!0),Y(Ot,fe,ht,"\xC6","\\AE",!0),Y(Ot,fe,ht,"\u0152","\\OE",!0),Y(Ot,fe,ht,"\xD8","\\O",!0),Y(Ot,fe,Wr,"\u02CA","\\'"),Y(Ot,fe,Wr,"\u02CB","\\`"),Y(Ot,fe,Wr,"\u02C6","\\^"),Y(Ot,fe,Wr,"\u02DC","\\~"),Y(Ot,fe,Wr,"\u02C9","\\="),Y(Ot,fe,Wr,"\u02D8","\\u"),Y(Ot,fe,Wr,"\u02D9","\\."),Y(Ot,fe,Wr,"\u02DA","\\r"),Y(Ot,fe,Wr,"\u02C7","\\v"),Y(Ot,fe,Wr,"\xA8",'\\"'),Y(Ot,fe,Wr,"\u02DD","\\H"),Y(Ot,fe,Wr,"\u25EF","\\textcircled");var Sn={"--":!0,"---":!0,"``":!0,"''":!0};Y(Ot,fe,ht,"\u2013","--"),Y(Ot,fe,ht,"\u2013","\\textendash"),Y(Ot,fe,ht,"\u2014","---"),Y(Ot,fe,ht,"\u2014","\\textemdash"),Y(Ot,fe,ht,"\u2018","`"),Y(Ot,fe,ht,"\u2018","\\textquoteleft"),Y(Ot,fe,ht,"\u2019","'"),Y(Ot,fe,ht,"\u2019","\\textquoteright"),Y(Ot,fe,ht,"\u201C","``"),Y(Ot,fe,ht,"\u201C","\\textquotedblleft"),Y(Ot,fe,ht,"\u201D","''"),Y(Ot,fe,ht,"\u201D","\\textquotedblright"),Y(ie,fe,ht,"\xB0","\\degree",!0),Y(Ot,fe,ht,"\xB0","\\degree"),Y(Ot,fe,ht,"\xB0","\\textdegree",!0),Y(ie,fe,Oe,"\xA3","\\pounds"),Y(ie,fe,Oe,"\xA3","\\mathsterling",!0),Y(Ot,fe,Oe,"\xA3","\\pounds"),Y(Ot,fe,Oe,"\xA3","\\textsterling",!0),Y(ie,Ke,ht,"\u2720","\\maltese"),Y(Ot,Ke,ht,"\u2720","\\maltese"),Y(Ot,fe,Kr,"\xA0","\\ "),Y(Ot,fe,Kr,"\xA0"," "),Y(Ot,fe,Kr,"\xA0","~");for(var Bn='0123456789/@."',ri=0;ri<Bn.length;ri++){var ws=Bn.charAt(ri);Y(ie,fe,ht,ws,ws)}for(var Ci='0123456789!@*()-=+[]<>|";:?/.,',Kn=0;Kn<Ci.length;Kn++){var Is=Ci.charAt(Kn);Y(Ot,fe,ht,Is,Is)}for(var Aa="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz",$i=0;$i<Aa.length;$i++){var Ui=Aa.charAt($i);Y(ie,fe,Oe,Ui,Ui),Y(Ot,fe,ht,Ui,Ui)}Y(ie,Ke,ht,"C","\u2102"),Y(Ot,Ke,ht,"C","\u2102"),Y(ie,Ke,ht,"H","\u210D"),Y(Ot,Ke,ht,"H","\u210D"),Y(ie,Ke,ht,"N","\u2115"),Y(Ot,Ke,ht,"N","\u2115"),Y(ie,Ke,ht,"P","\u2119"),Y(Ot,Ke,ht,"P","\u2119"),Y(ie,Ke,ht,"Q","\u211A"),Y(Ot,Ke,ht,"Q","\u211A"),Y(ie,Ke,ht,"R","\u211D"),Y(Ot,Ke,ht,"R","\u211D"),Y(ie,Ke,ht,"Z","\u2124"),Y(Ot,Ke,ht,"Z","\u2124"),Y(ie,fe,Oe,"h","\u210E"),Y(Ot,fe,Oe,"h","\u210E");for(var mn="",ln=0;ln<Aa.length;ln++){var fn=Aa.charAt(ln);mn=String.fromCharCode(55349,56320+ln),Y(ie,fe,Oe,fn,mn),Y(Ot,fe,ht,fn,mn),mn=String.fromCharCode(55349,56372+ln),Y(ie,fe,Oe,fn,mn),Y(Ot,fe,ht,fn,mn),mn=String.fromCharCode(55349,56424+ln),Y(ie,fe,Oe,fn,mn),Y(Ot,fe,ht,fn,mn),mn=String.fromCharCode(55349,56580+ln),Y(ie,fe,Oe,fn,mn),Y(Ot,fe,ht,fn,mn),mn=String.fromCharCode(55349,56736+ln),Y(ie,fe,Oe,fn,mn),Y(Ot,fe,ht,fn,mn),mn=String.fromCharCode(55349,56788+ln),Y(ie,fe,Oe,fn,mn),Y(Ot,fe,ht,fn,mn),mn=String.fromCharCode(55349,56840+ln),Y(ie,fe,Oe,fn,mn),Y(Ot,fe,ht,fn,mn),mn=String.fromCharCode(55349,56944+ln),Y(ie,fe,Oe,fn,mn),Y(Ot,fe,ht,fn,mn),ln<26&&(mn=String.fromCharCode(55349,56632+ln),Y(ie,fe,Oe,fn,mn),Y(Ot,fe,ht,fn,mn),mn=String.fromCharCode(55349,56476+ln),Y(ie,fe,Oe,fn,mn),Y(Ot,fe,ht,fn,mn))}mn="\u{1D55C}",Y(ie,fe,Oe,"k",mn),Y(Ot,fe,ht,"k",mn);for(var ni=0;ni<10;ni++){var Ei=ni.toString();mn=String.fromCharCode(55349,57294+ni),Y(ie,fe,Oe,Ei,mn),Y(Ot,fe,ht,Ei,mn),mn=String.fromCharCode(55349,57314+ni),Y(ie,fe,Oe,Ei,mn),Y(Ot,fe,ht,Ei,mn),mn=String.fromCharCode(55349,57324+ni),Y(ie,fe,Oe,Ei,mn),Y(Ot,fe,ht,Ei,mn),mn=String.fromCharCode(55349,57334+ni),Y(ie,fe,Oe,Ei,mn),Y(Ot,fe,ht,Ei,mn)}for(var Gi="\xC7\xD0\xDE\xE7\xFE",ks=0;ks<Gi.length;ks++){var Js=Gi.charAt(ks);Y(ie,fe,Oe,Js,Js),Y(Ot,fe,ht,Js,Js)}Y(Ot,fe,ht,"\xF0","\xF0"),Y(Ot,fe,ht,"\u2013","\u2013"),Y(Ot,fe,ht,"\u2014","\u2014"),Y(Ot,fe,ht,"\u2018","\u2018"),Y(Ot,fe,ht,"\u2019","\u2019"),Y(Ot,fe,ht,"\u201C","\u201C"),Y(Ot,fe,ht,"\u201D","\u201D");var ia=[["mathbf","textbf","Main-Bold"],["mathbf","textbf","Main-Bold"],["mathdefault","textit","Math-Italic"],["mathdefault","textit","Math-Italic"],["boldsymbol","boldsymbol","Main-BoldItalic"],["boldsymbol","boldsymbol","Main-BoldItalic"],["mathscr","textscr","Script-Regular"],["","",""],["","",""],["","",""],["mathfrak","textfrak","Fraktur-Regular"],["mathfrak","textfrak","Fraktur-Regular"],["mathbb","textbb","AMS-Regular"],["mathbb","textbb","AMS-Regular"],["","",""],["","",""],["mathsf","textsf","SansSerif-Regular"],["mathsf","textsf","SansSerif-Regular"],["mathboldsf","textboldsf","SansSerif-Bold"],["mathboldsf","textboldsf","SansSerif-Bold"],["mathitsf","textitsf","SansSerif-Italic"],["mathitsf","textitsf","SansSerif-Italic"],["","",""],["","",""],["mathtt","texttt","Typewriter-Regular"],["mathtt","texttt","Typewriter-Regular"]],Ea=[["mathbf","textbf","Main-Bold"],["","",""],["mathsf","textsf","SansSerif-Regular"],["mathboldsf","textboldsf","SansSerif-Bold"],["mathtt","texttt","Typewriter-Regular"]],Mi=function(f,v){var x=f.charCodeAt(0),Q=f.charCodeAt(1),re=(x-55296)*1024+(Q-56320)+65536,be=v==="math"?0:1;if(119808<=re&&re<120484){var Ze=Math.floor((re-119808)/26);return[ia[Ze][2],ia[Ze][be]]}else if(120782<=re&&re<=120831){var nt=Math.floor((re-120782)/10);return[Ea[nt][2],Ea[nt][be]]}else{if(re===120485||re===120486)return[ia[0][2],ia[0][be]];if(120486<re&&re<120782)return["",""];throw new I("Unsupported character: "+f)}},sa=[[1,1,1],[2,1,1],[3,1,1],[4,2,1],[5,2,1],[6,3,1],[7,4,2],[8,6,3],[9,7,6],[10,8,7],[11,10,9]],ds=[.5,.6,.7,.8,.9,1,1.2,1.44,1.728,2.074,2.488],Do=function(f,v){return v.size<2?f:sa[f-1][v.size-1]},Va=function(){function Ee(v){this.style=void 0,this.color=void 0,this.size=void 0,this.textSize=void 0,this.phantom=void 0,this.font=void 0,this.fontFamily=void 0,this.fontWeight=void 0,this.fontShape=void 0,this.sizeMultiplier=void 0,this.maxSize=void 0,this.minRuleThickness=void 0,this._fontMetrics=void 0,this.style=v.style,this.color=v.color,this.size=v.size||Ee.BASESIZE,this.textSize=v.textSize||this.size,this.phantom=!!v.phantom,this.font=v.font||"",this.fontFamily=v.fontFamily||"",this.fontWeight=v.fontWeight||"",this.fontShape=v.fontShape||"",this.sizeMultiplier=ds[this.size-1],this.maxSize=v.maxSize,this.minRuleThickness=v.minRuleThickness,this._fontMetrics=void 0}var f=Ee.prototype;return f.extend=function(x){var Q={style:this.style,size:this.size,textSize:this.textSize,color:this.color,phantom:this.phantom,font:this.font,fontFamily:this.fontFamily,fontWeight:this.fontWeight,fontShape:this.fontShape,maxSize:this.maxSize,minRuleThickness:this.minRuleThickness};for(var re in x)x.hasOwnProperty(re)&&(Q[re]=x[re]);return new Ee(Q)},f.havingStyle=function(x){return this.style===x?this:this.extend({style:x,size:Do(this.textSize,x)})},f.havingCrampedStyle=function(){return this.havingStyle(this.style.cramp())},f.havingSize=function(x){return this.size===x&&this.textSize===x?this:this.extend({style:this.style.text(),size:x,textSize:x,sizeMultiplier:ds[x-1]})},f.havingBaseStyle=function(x){x=x||this.style.text();var Q=Do(Ee.BASESIZE,x);return this.size===Q&&this.textSize===Ee.BASESIZE&&this.style===x?this:this.extend({style:x,size:Q})},f.havingBaseSizing=function(){var x;switch(this.style.id){case 4:case 5:x=3;break;case 6:case 7:x=1;break;default:x=6}return this.extend({style:this.style.text(),size:x})},f.withColor=function(x){return this.extend({color:x})},f.withPhantom=function(){return this.extend({phantom:!0})},f.withFont=function(x){return this.extend({font:x})},f.withTextFontFamily=function(x){return this.extend({fontFamily:x,font:""})},f.withTextFontWeight=function(x){return this.extend({fontWeight:x,font:""})},f.withTextFontShape=function(x){return this.extend({fontShape:x,font:""})},f.sizingClasses=function(x){return x.size!==this.size?["sizing","reset-size"+x.size,"size"+this.size]:[]},f.baseSizingClasses=function(){return this.size!==Ee.BASESIZE?["sizing","reset-size"+this.size,"size"+Ee.BASESIZE]:[]},f.fontMetrics=function(){return this._fontMetrics||(this._fontMetrics=kt(this.size)),this._fontMetrics},f.getColor=function(){return this.phantom?"transparent":this.color},Ee}();Va.BASESIZE=6;var Qi=Va,Yi={pt:1,mm:7227/2540,cm:7227/254,in:72.27,bp:803/800,pc:12,dd:1238/1157,cc:14856/1157,nd:685/642,nc:1370/107,sp:1/65536,px:803/800},Xi={ex:!0,em:!0,mu:!0},ps=function(f){return typeof f!="string"&&(f=f.unit),f in Yi||f in Xi||f==="ex"},ji=function(f,v){var x;if(f.unit in Yi)x=Yi[f.unit]/v.fontMetrics().ptPerEm/v.sizeMultiplier;else if(f.unit==="mu")x=v.fontMetrics().cssEmPerMu;else{var Q;if(v.style.isTight()?Q=v.havingStyle(v.style.text()):Q=v,f.unit==="ex")x=Q.fontMetrics().xHeight;else if(f.unit==="em")x=Q.fontMetrics().quad;else throw new I("Invalid unit: '"+f.unit+"'");Q!==v&&(x*=Q.sizeMultiplier/v.sizeMultiplier)}return Math.min(f.number*x,v.maxSize)},Vn=["\\imath","\u0131","\\jmath","\u0237","\\pounds","\\mathsterling","\\textsterling","\xA3"],vo=function(f,v,x){return An[x][f]&&An[x][f].replace&&(f=An[x][f].replace),{value:f,metrics:cr(f,v,x)}},Ks=function(f,v,x,Q,re){var be=vo(f,v,x),Ze=be.metrics;f=be.value;var nt;if(Ze){var St=Ze.italic;(x==="text"||Q&&Q.font==="mathit")&&(St=0),nt=new Se(f,Ze.height,Ze.depth,St,Ze.skew,Ze.width,re)}else typeof console!="undefined"&&console.warn("No character metrics "+("for '"+f+"' in style '"+v+"' and mode '"+x+"'")),nt=new Se(f,0,0,0,0,0,re);if(Q){nt.maxFontSize=Q.sizeMultiplier,Q.style.isTight()&&nt.classes.push("mtight");var Jt=Q.getColor();Jt&&(nt.style.color=Jt)}return nt},yo=function(f,v,x,Q){return Q===void 0&&(Q=[]),x.font==="boldsymbol"&&vo(f,"Main-Bold",v).metrics?Ks(f,"Main-Bold",v,x,Q.concat(["mathbf"])):f==="\\"||An[v][f].font==="main"?Ks(f,"Main-Regular",v,x,Q):Ks(f,"AMS-Regular",v,x,Q.concat(["amsrm"]))},cl=function(f,v,x,Q){return/[0-9]/.test(f.charAt(0))||P.contains(Vn,f)?{fontName:"Main-Italic",fontClass:"mathit"}:{fontName:"Math-Italic",fontClass:"mathdefault"}},Ju=function(f,v,x,Q){return P.contains(Vn,f)?{fontName:"Main-Italic",fontClass:"mathit"}:/[0-9]/.test(f.charAt(0))?{fontName:"Caligraphic-Regular",fontClass:"mathcal"}:{fontName:"Math-Italic",fontClass:"mathdefault"}},Zo=function(f,v,x,Q){return vo(f,"Math-BoldItalic",v).metrics?{fontName:"Math-BoldItalic",fontClass:"boldsymbol"}:{fontName:"Main-Bold",fontClass:"mathbf"}},xA=function(f,v,x){var Q=f.mode,re=f.text,be=["mord"],Ze=Q==="math"||Q==="text"&&v.font,nt=Ze?v.font:v.fontFamily;if(re.charCodeAt(0)===55349){var St=Mi(re,Q),Jt=St[0],dr=St[1];return Ks(re,Jt,Q,v,be.concat(dr))}else if(nt){var Or,on;if(nt==="boldsymbol"||nt==="mathnormal"){var tn=nt==="boldsymbol"?Zo(re,Q,v,be):Ju(re,Q,v,be);Or=tn.fontName,on=[tn.fontClass]}else P.contains(Vn,re)?(Or="Main-Italic",on=["mathit"]):Ze?(Or=fl[nt].fontName,on=[nt]):(Or=_o(nt,v.fontWeight,v.fontShape),on=[nt,v.fontWeight,v.fontShape]);if(vo(re,Or,Q).metrics)return Ks(re,Or,Q,v,be.concat(on));if(Sn.hasOwnProperty(re)&&Or.substr(0,10)==="Typewriter"){for(var Fn=[],$n=0;$n<re.length;$n++)Fn.push(Ks(re[$n],Or,Q,v,be.concat(on)));return bs(Fn)}}if(x==="mathord"){var Zn=cl(re,Q,v,be);return Ks(re,Zn.fontName,Q,v,be.concat([Zn.fontClass]))}else if(x==="textord"){var yi=An[Q][re]&&An[Q][re].font;if(yi==="ams"){var Oi=_o("amsrm",v.fontWeight,v.fontShape);return Ks(re,Oi,Q,v,be.concat("amsrm",v.fontWeight,v.fontShape))}else if(yi==="main"||!yi){var Qs=_o("textrm",v.fontWeight,v.fontShape);return Ks(re,Qs,Q,v,be.concat(v.fontWeight,v.fontShape))}else{var xs=_o(yi,v.fontWeight,v.fontShape);return Ks(re,xs,Q,v,be.concat(xs,v.fontWeight,v.fontShape))}}else throw new Error("unexpected type: "+x+" in makeOrd")},Bc=function(f,v){if(ve(f.classes)!==ve(v.classes)||f.skew!==v.skew||f.maxFontSize!==v.maxFontSize)return!1;for(var x in f.style)if(f.style.hasOwnProperty(x)&&f.style[x]!==v.style[x])return!1;for(var Q in v.style)if(v.style.hasOwnProperty(Q)&&f.style[Q]!==v.style[Q])return!1;return!0},Dl=function(f){for(var v=0;v<f.length-1;v++){var x=f[v],Q=f[v+1];x instanceof Se&&Q instanceof Se&&Bc(x,Q)&&(x.text+=Q.text,x.height=Math.max(x.height,Q.height),x.depth=Math.max(x.depth,Q.depth),x.italic=Q.italic,f.splice(v+1,1),v--)}return f},la=function(f){for(var v=0,x=0,Q=0,re=0;re<f.children.length;re++){var be=f.children[re];be.height>v&&(v=be.height),be.depth>x&&(x=be.depth),be.maxFontSize>Q&&(Q=be.maxFontSize)}f.height=v,f.depth=x,f.maxFontSize=Q},Ts=function(f,v,x,Q){var re=new D(f,v,x,Q);return la(re),re},Ra=function(f,v,x,Q){return new D(f,v,x,Q)},VA=function(f,v,x){var Q=Ts([f],[],v);return Q.height=Math.max(x||v.fontMetrics().defaultRuleThickness,v.minRuleThickness),Q.style.borderBottomWidth=Q.height+"em",Q.maxFontSize=1,Q},oo=function(f,v,x,Q){var re=new ae(f,v,x,Q);return la(re),re},bs=function(f){var v=new ur(f);return la(v),v},Es=function(f,v){return f instanceof ur?Ts([],[f],v):f},Ua=function(f){if(f.positionType==="individualShift"){for(var v=f.children,x=[v[0]],Q=-v[0].shift-v[0].elem.depth,re=Q,be=1;be<v.length;be++){var Ze=-v[be].shift-re-v[be].elem.depth,nt=Ze-(v[be-1].elem.height+v[be-1].elem.depth);re=re+Ze,x.push({type:"kern",size:nt}),x.push(v[be])}return{children:x,depth:Q}}var St;if(f.positionType==="top"){for(var Jt=f.positionData,dr=0;dr<f.children.length;dr++){var Or=f.children[dr];Jt-=Or.type==="kern"?Or.size:Or.elem.height+Or.elem.depth}St=Jt}else if(f.positionType==="bottom")St=-f.positionData;else{var on=f.children[0];if(on.type!=="elem")throw new Error('First child must have type "elem".');if(f.positionType==="shift")St=-on.elem.depth-f.positionData;else if(f.positionType==="firstBaseline")St=-on.elem.depth;else throw new Error("Invalid positionType "+f.positionType+".")}return{children:f.children,depth:St}},hl=function(f,v){for(var x=Ua(f),Q=x.children,re=x.depth,be=0,Ze=0;Ze<Q.length;Ze++){var nt=Q[Ze];if(nt.type==="elem"){var St=nt.elem;be=Math.max(be,St.maxFontSize,St.height)}}be+=2;var Jt=Ts(["pstrut"],[]);Jt.style.height=be+"em";for(var dr=[],Or=re,on=re,tn=re,Fn=0;Fn<Q.length;Fn++){var $n=Q[Fn];if($n.type==="kern")tn+=$n.size;else{var Zn=$n.elem,yi=$n.wrapperClasses||[],Oi=$n.wrapperStyle||{},Qs=Ts(yi,[Jt,Zn],void 0,Oi);Qs.style.top=-be-tn-Zn.depth+"em",$n.marginLeft&&(Qs.style.marginLeft=$n.marginLeft),$n.marginRight&&(Qs.style.marginRight=$n.marginRight),dr.push(Qs),tn+=Zn.height+Zn.depth}Or=Math.min(Or,tn),on=Math.max(on,tn)}var xs=Ts(["vlist"],dr);xs.style.height=on+"em";var zs;if(Or<0){var Gs=Ts([],[]),ys=Ts(["vlist"],[Gs]);ys.style.height=-Or+"em";var ro=Ts(["vlist-s"],[new Se("\u200B")]);zs=[Ts(["vlist-r"],[xs,ro]),Ts(["vlist-r"],[ys])]}else zs=[Ts(["vlist-r"],[xs])];var $s=Ts(["vlist-t"],zs);return zs.length===2&&$s.classes.push("vlist-t2"),$s.height=on,$s.depth=-Or,$s},Wa=function(f,v){var x=Ts(["mspace"],[],v),Q=ji(f,v);return x.style.marginRight=Q+"em",x},_o=function(f,v,x){var Q="";switch(f){case"amsrm":Q="AMS";break;case"textrm":Q="Main";break;case"textsf":Q="SansSerif";break;case"texttt":Q="Typewriter";break;default:Q=f}var re;return v==="textbf"&&x==="textit"?re="BoldItalic":v==="textbf"?re="Bold":v==="textit"?re="Italic":re="Regular",Q+"-"+re},fl={mathbf:{variant:"bold",fontName:"Main-Bold"},mathrm:{variant:"normal",fontName:"Main-Regular"},textit:{variant:"italic",fontName:"Main-Italic"},mathit:{variant:"italic",fontName:"Main-Italic"},mathbb:{variant:"double-struck",fontName:"AMS-Regular"},mathcal:{variant:"script",fontName:"Caligraphic-Regular"},mathfrak:{variant:"fraktur",fontName:"Fraktur-Regular"},mathscr:{variant:"script",fontName:"Script-Regular"},mathsf:{variant:"sans-serif",fontName:"SansSerif-Regular"},mathtt:{variant:"monospace",fontName:"Typewriter-Regular"}},ko={vec:["vec",.471,.714],oiintSize1:["oiintSize1",.957,.499],oiintSize2:["oiintSize2",1.472,.659],oiiintSize1:["oiiintSize1",1.304,.499],oiiintSize2:["oiiintSize2",1.98,.659]},CA=function(f,v){var x=ko[f],Q=x[0],re=x[1],be=x[2],Ze=new xt(Q),nt=new gt([Ze],{width:re+"em",height:be+"em",style:"width:"+re+"em",viewBox:"0 0 "+1e3*re+" "+1e3*be,preserveAspectRatio:"xMinYMin"}),St=Ra(["overlay"],[nt],v);return St.height=be,St.style.height=be+"em",St.style.width=re+"em",St},Rr={fontMap:fl,makeSymbol:Ks,mathsym:yo,makeSpan:Ts,makeSvgSpan:Ra,makeLineSpan:VA,makeAnchor:oo,makeFragment:bs,wrapFragment:Es,makeVList:hl,makeOrd:xA,makeGlue:Wa,staticSvg:CA,svgData:ko,tryCombineChars:Dl};function hi(Ee,f){var v=Ws(Ee,f);if(!v)throw new Error("Expected node of type "+f+", but got "+(Ee?"node of type "+Ee.type:String(Ee)));return v}function Ws(Ee,f){return Ee&&Ee.type===f?Ee:null}function Pa(Ee,f){var v=WA(Ee,f);if(!v)throw new Error('Expected node of type "atom" and family "'+f+'", but got '+(Ee?Ee.type==="atom"?"atom of family "+Ee.family:"node of type "+Ee.type:String(Ee)));return v}function WA(Ee,f){return Ee&&Ee.type==="atom"&&Ee.family===f?Ee:null}function uA(Ee){var f=Ao(Ee);if(!f)throw new Error("Expected node of symbol group type, but got "+(Ee?"node of type "+Ee.type:String(Ee)));return f}function Ao(Ee){return Ee&&(Ee.type==="atom"||$t.hasOwnProperty(Ee.type))?Ee:null}var pi={number:3,unit:"mu"},ms={number:4,unit:"mu"},Ka={number:5,unit:"mu"},Ns={mord:{mop:pi,mbin:ms,mrel:Ka,minner:pi},mop:{mord:pi,mop:pi,mrel:Ka,minner:pi},mbin:{mord:ms,mop:ms,mopen:ms,minner:ms},mrel:{mord:Ka,mop:Ka,mopen:Ka,minner:Ka},mopen:{},mclose:{mop:pi,mbin:ms,mrel:Ka,minner:pi},mpunct:{mord:pi,mop:pi,mrel:Ka,mopen:pi,mclose:pi,mpunct:pi,minner:pi},minner:{mord:pi,mop:pi,mbin:ms,mrel:Ka,mopen:pi,mpunct:pi,minner:pi}},Cs={mord:{mop:pi},mop:{mord:pi,mop:pi},mbin:{},mrel:{},mopen:{},mclose:{mop:pi},mpunct:{},minner:{mop:pi}},dl={},$a={},Oa={};function In(Ee){for(var f=Ee.type,v=Ee.names,x=Ee.props,Q=Ee.handler,re=Ee.htmlBuilder,be=Ee.mathmlBuilder,Ze={type:f,numArgs:x.numArgs,argTypes:x.argTypes,greediness:x.greediness===void 0?1:x.greediness,allowedInText:!!x.allowedInText,allowedInMath:x.allowedInMath===void 0?!0:x.allowedInMath,numOptionalArgs:x.numOptionalArgs||0,infix:!!x.infix,handler:Q},nt=0;nt<v.length;++nt)dl[v[nt]]=Ze;f&&(re&&($a[f]=re),be&&(Oa[f]=be))}function Ba(Ee){var f=Ee.type,v=Ee.htmlBuilder,x=Ee.mathmlBuilder;In({type:f,names:[],props:{numArgs:0},handler:function(){throw new Error("Should never be called.")},htmlBuilder:v,mathmlBuilder:x})}var Rs=function(f){var v=Ws(f,"ordgroup");return v?v.body:[f]},Ro=Rr.makeSpan,$A=["leftmost","mbin","mopen","mrel","mop","mpunct"],SA=["rightmost","mrel","mclose","mpunct"],YA={display:z.DISPLAY,text:z.TEXT,script:z.SCRIPT,scriptscript:z.SCRIPTSCRIPT},cA={mord:"mord",mop:"mop",mbin:"mbin",mrel:"mrel",mopen:"mopen",mclose:"mclose",mpunct:"mpunct",minner:"minner"},Ms=function(f,v,x,Q){Q===void 0&&(Q=[null,null]);for(var re=[],be=0;be<f.length;be++){var Ze=Si(f[be],v);if(Ze instanceof ur){var nt=Ze.children;re.push.apply(re,nt)}else re.push(Ze)}if(!x)return re;var St=v;if(f.length===1){var Jt=Ws(f[0],"sizing")||Ws(f[0],"styling");Jt&&(Jt.type==="sizing"?St=v.havingSize(Jt.size):Jt.type==="styling"&&(St=v.havingStyle(YA[Jt.style])))}var dr=Ro([Q[0]||"leftmost"],[],v),Or=Ro([Q[1]||"rightmost"],[],v);return IA(re,function(on,tn){var Fn=tn.classes[0],$n=on.classes[0];Fn==="mbin"&&P.contains(SA,$n)?tn.classes[0]="mord":$n==="mbin"&&P.contains($A,Fn)&&(on.classes[0]="mord")},{node:dr},Or),IA(re,function(on,tn){var Fn=xa(tn),$n=xa(on),Zn=Fn&&$n?on.hasClass("mtight")?Cs[Fn][$n]:Ns[Fn][$n]:null;if(Zn)return Rr.makeGlue(Zn,St)},{node:dr},Or),re},IA=function Ee(f,v,x,Q){Q&&f.push(Q);for(var re=0;re<f.length;re++){var be=f[re],Ze=ua(be);if(Ze){Ee(Ze.children,v,x);continue}if(be.classes[0]!=="mspace"){var nt=v(be,x.node);nt&&(x.insertAfter?x.insertAfter(nt):(f.unshift(nt),re++)),x.node=be,x.insertAfter=function(St){return function(Jt){f.splice(St+1,0,Jt),re++}}(re)}}Q&&f.pop()},ua=function(f){return f instanceof ur||f instanceof ae?f:null},ca=function Ee(f,v){var x=ua(f);if(x){var Q=x.children;if(Q.length){if(v==="right")return Ee(Q[Q.length-1],"right");if(v==="left")return Ee(Q[0],"left")}}return f},xa=function(f,v){return f?(v&&(f=ca(f,v)),cA[f.classes[0]]||null):null},Ca=function(f,v){var x=["nulldelimiter"].concat(f.baseSizingClasses());return Ro(v.concat(x))},Si=function(f,v,x){if(!f)return Ro();if($a[f.type]){var Q=$a[f.type](f,v);if(x&&v.size!==x.size){Q=Ro(v.sizingClasses(x),[Q],v);var re=v.sizeMultiplier/x.sizeMultiplier;Q.height*=re,Q.depth*=re}return Q}else throw new I("Got group of unknown type: '"+f.type+"'")};function hA(Ee,f){var v=Ro(["base"],Ee,f),x=Ro(["strut"]);return x.style.height=v.height+v.depth+"em",x.style.verticalAlign=-v.depth+"em",v.children.unshift(x),v}function fA(Ee,f){var v=null;Ee.length===1&&Ee[0].type==="tag"&&(v=Ee[0].tag,Ee=Ee[0].body);for(var x=Ms(Ee,f,!0),Q=[],re=[],be=0;be<x.length;be++)if(re.push(x[be]),x[be].hasClass("mbin")||x[be].hasClass("mrel")||x[be].hasClass("allowbreak")){for(var Ze=!1;be<x.length-1&&x[be+1].hasClass("mspace")&&!x[be+1].hasClass("newline");)be++,re.push(x[be]),x[be].hasClass("nobreak")&&(Ze=!0);Ze||(Q.push(hA(re,f)),re=[])}else x[be].hasClass("newline")&&(re.pop(),re.length>0&&(Q.push(hA(re,f)),re=[]),Q.push(x[be]));re.length>0&&Q.push(hA(re,f));var nt;v&&(nt=hA(Ms(v,f,!0)),nt.classes=["tag"],Q.push(nt));var St=Ro(["katex-html"],Q);if(St.setAttribute("aria-hidden","true"),nt){var Jt=nt.children[0];Jt.style.height=St.height+St.depth+"em",Jt.style.verticalAlign=-St.depth+"em"}return St}function TA(Ee){return new ur(Ee)}var Na=function(){function Ee(v,x){this.type=void 0,this.attributes=void 0,this.children=void 0,this.type=v,this.attributes={},this.children=x||[]}var f=Ee.prototype;return f.setAttribute=function(x,Q){this.attributes[x]=Q},f.getAttribute=function(x){return this.attributes[x]},f.toNode=function(){var x=document.createElementNS("http://www.w3.org/1998/Math/MathML",this.type);for(var Q in this.attributes)Object.prototype.hasOwnProperty.call(this.attributes,Q)&&x.setAttribute(Q,this.attributes[Q]);for(var re=0;re<this.children.length;re++)x.appendChild(this.children[re].toNode());return x},f.toMarkup=function(){var x="<"+this.type;for(var Q in this.attributes)Object.prototype.hasOwnProperty.call(this.attributes,Q)&&(x+=" "+Q+'="',x+=P.escape(this.attributes[Q]),x+='"');x+=">";for(var re=0;re<this.children.length;re++)x+=this.children[re].toMarkup();return x+="</"+this.type+">",x},f.toText=function(){return this.children.map(function(x){return x.toText()}).join("")},Ee}(),oi=function(){function Ee(v){this.text=void 0,this.text=v}var f=Ee.prototype;return f.toNode=function(){return document.createTextNode(this.text)},f.toMarkup=function(){return P.escape(this.toText())},f.toText=function(){return this.text},Ee}(),kl=function(){function Ee(v){this.width=void 0,this.character=void 0,this.width=v,v>=.05555&&v<=.05556?this.character="\u200A":v>=.1666&&v<=.1667?this.character="\u2009":v>=.2222&&v<=.2223?this.character="\u2005":v>=.2777&&v<=.2778?this.character="\u2005\u200A":v>=-.05556&&v<=-.05555?this.character="\u200A\u2063":v>=-.1667&&v<=-.1666?this.character="\u2009\u2063":v>=-.2223&&v<=-.2222?this.character="\u205F\u2063":v>=-.2778&&v<=-.2777?this.character="\u2005\u2063":this.character=null}var f=Ee.prototype;return f.toNode=function(){if(this.character)return document.createTextNode(this.character);var x=document.createElementNS("http://www.w3.org/1998/Math/MathML","mspace");return x.setAttribute("width",this.width+"em"),x},f.toMarkup=function(){return this.character?"<mtext>"+this.character+"</mtext>":'<mspace width="'+this.width+'em"/>'},f.toText=function(){return this.character?this.character:" "},Ee}(),gn={MathNode:Na,TextNode:oi,SpaceNode:kl,newDocumentFragment:TA},ha=function(f,v,x){return An[v][f]&&An[v][f].replace&&f.charCodeAt(0)!==55349&&!(Sn.hasOwnProperty(f)&&x&&(x.fontFamily&&x.fontFamily.substr(4,2)==="tt"||x.font&&x.font.substr(4,2)==="tt"))&&(f=An[v][f].replace),new gn.TextNode(f)},ga=function(f){return f.length===1?f[0]:new gn.MathNode("mrow",f)},Ya=function(f,v){if(v.fontFamily==="texttt")return"monospace";if(v.fontFamily==="textsf")return v.fontShape==="textit"&&v.fontWeight==="textbf"?"sans-serif-bold-italic":v.fontShape==="textit"?"sans-serif-italic":v.fontWeight==="textbf"?"bold-sans-serif":"sans-serif";if(v.fontShape==="textit"&&v.fontWeight==="textbf")return"bold-italic";if(v.fontShape==="textit")return"italic";if(v.fontWeight==="textbf")return"bold";var x=v.font;if(!x||x==="mathnormal")return null;var Q=f.mode;if(x==="mathit")return"italic";if(x==="boldsymbol")return"bold-italic";if(x==="mathbf")return"bold";if(x==="mathbb")return"double-struck";if(x==="mathfrak")return"fraktur";if(x==="mathscr"||x==="mathcal")return"script";if(x==="mathsf")return"sans-serif";if(x==="mathtt")return"monospace";var re=f.text;if(P.contains(["\\imath","\\jmath"],re))return null;An[Q][re]&&An[Q][re].replace&&(re=An[Q][re].replace);var be=Rr.fontMap[x].fontName;return cr(re,be,Q)?Rr.fontMap[x].variant:null},Za=function(f,v,x){if(f.length===1){var Q=gi(f[0],v);return x&&Q instanceof Na&&Q.type==="mo"&&(Q.setAttribute("lspace","0em"),Q.setAttribute("rspace","0em")),[Q]}for(var re=[],be,Ze=0;Ze<f.length;Ze++){var nt=gi(f[Ze],v);if(nt instanceof Na&&be instanceof Na){if(nt.type==="mtext"&&be.type==="mtext"&&nt.getAttribute("mathvariant")===be.getAttribute("mathvariant")){var St;(St=be.children).push.apply(St,nt.children);continue}else if(nt.type==="mn"&&be.type==="mn"){var Jt;(Jt=be.children).push.apply(Jt,nt.children);continue}else if(nt.type==="mi"&&nt.children.length===1&&be.type==="mn"){var dr=nt.children[0];if(dr instanceof oi&&dr.text==="."){var Or;(Or=be.children).push.apply(Or,nt.children);continue}}else if(be.type==="mi"&&be.children.length===1){var on=be.children[0];if(on instanceof oi&&on.text==="\u0338"&&(nt.type==="mo"||nt.type==="mi"||nt.type==="mn")){var tn=nt.children[0];tn instanceof oi&&tn.text.length>0&&(tn.text=tn.text.slice(0,1)+"\u0338"+tn.text.slice(1),re.pop())}}}re.push(nt),be=nt}return re},wo=function(f,v,x){return ga(Za(f,v,x))},gi=function(f,v){if(!f)return new gn.MathNode("mrow");if(Oa[f.type]){var x=Oa[f.type](f,v);return x}else throw new I("Got group of unknown type: '"+f.type+"'")};function Uo(Ee,f,v,x){var Q=Za(Ee,v),re;Q.length===1&&Q[0]instanceof Na&&P.contains(["mrow","mtable"],Q[0].type)?re=Q[0]:re=new gn.MathNode("mrow",Q);var be=new gn.MathNode("annotation",[new gn.TextNode(f)]);be.setAttribute("encoding","application/x-tex");var Ze=new gn.MathNode("semantics",[re,be]),nt=new gn.MathNode("math",[Ze]);nt.setAttribute("xmlns","http://www.w3.org/1998/Math/MathML");var St=x?"katex":"katex-mathml";return Rr.makeSpan([St],[nt])}var Rl=function(f){return new Qi({style:f.displayMode?z.DISPLAY:z.TEXT,maxSize:f.maxSize,minRuleThickness:f.minRuleThickness})},Jl=function(f,v){if(v.displayMode){var x=["katex-display"];v.leqno&&x.push("leqno"),v.fleqn&&x.push("fleqn"),f=Rr.makeSpan(x,[f])}return f},qa=function(f,v,x){var Q=Rl(x),re;if(x.output==="mathml")return Uo(f,v,Q,!0);if(x.output==="html"){var be=fA(f,Q);re=Rr.makeSpan(["katex"],[be])}else{var Ze=Uo(f,v,Q,!1),nt=fA(f,Q);re=Rr.makeSpan(["katex"],[Ze,nt])}return Jl(re,x)},pl=function(f,v,x){var Q=Rl(x),re=fA(f,Q),be=Rr.makeSpan(["katex"],[re]);return Jl(be,x)},Ul=qa,bo={widehat:"^",widecheck:"\u02C7",widetilde:"~",utilde:"~",overleftarrow:"\u2190",underleftarrow:"\u2190",xleftarrow:"\u2190",overrightarrow:"\u2192",underrightarrow:"\u2192",xrightarrow:"\u2192",underbrace:"\u23DF",overbrace:"\u23DE",overgroup:"\u23E0",undergroup:"\u23E1",overleftrightarrow:"\u2194",underleftrightarrow:"\u2194",xleftrightarrow:"\u2194",Overrightarrow:"\u21D2",xRightarrow:"\u21D2",overleftharpoon:"\u21BC",xleftharpoonup:"\u21BC",overrightharpoon:"\u21C0",xrightharpoonup:"\u21C0",xLeftarrow:"\u21D0",xLeftrightarrow:"\u21D4",xhookleftarrow:"\u21A9",xhookrightarrow:"\u21AA",xmapsto:"\u21A6",xrightharpoondown:"\u21C1",xleftharpoondown:"\u21BD",xrightleftharpoons:"\u21CC",xleftrightharpoons:"\u21CB",xtwoheadleftarrow:"\u219E",xtwoheadrightarrow:"\u21A0",xlongequal:"=",xtofrom:"\u21C4",xrightleftarrows:"\u21C4",xrightequilibrium:"\u21CC",xleftequilibrium:"\u21CB"},Eo=function(f){var v=new gn.MathNode("mo",[new gn.TextNode(bo[f.substr(1)])]);return v.setAttribute("stretchy","true"),v},Po={overrightarrow:[["rightarrow"],.888,522,"xMaxYMin"],overleftarrow:[["leftarrow"],.888,522,"xMinYMin"],underrightarrow:[["rightarrow"],.888,522,"xMaxYMin"],underleftarrow:[["leftarrow"],.888,522,"xMinYMin"],xrightarrow:[["rightarrow"],1.469,522,"xMaxYMin"],xleftarrow:[["leftarrow"],1.469,522,"xMinYMin"],Overrightarrow:[["doublerightarrow"],.888,560,"xMaxYMin"],xRightarrow:[["doublerightarrow"],1.526,560,"xMaxYMin"],xLeftarrow:[["doubleleftarrow"],1.526,560,"xMinYMin"],overleftharpoon:[["leftharpoon"],.888,522,"xMinYMin"],xleftharpoonup:[["leftharpoon"],.888,522,"xMinYMin"],xleftharpoondown:[["leftharpoondown"],.888,522,"xMinYMin"],overrightharpoon:[["rightharpoon"],.888,522,"xMaxYMin"],xrightharpoonup:[["rightharpoon"],.888,522,"xMaxYMin"],xrightharpoondown:[["rightharpoondown"],.888,522,"xMaxYMin"],xlongequal:[["longequal"],.888,334,"xMinYMin"],xtwoheadleftarrow:[["twoheadleftarrow"],.888,334,"xMinYMin"],xtwoheadrightarrow:[["twoheadrightarrow"],.888,334,"xMaxYMin"],overleftrightarrow:[["leftarrow","rightarrow"],.888,522],overbrace:[["leftbrace","midbrace","rightbrace"],1.6,548],underbrace:[["leftbraceunder","midbraceunder","rightbraceunder"],1.6,548],underleftrightarrow:[["leftarrow","rightarrow"],.888,522],xleftrightarrow:[["leftarrow","rightarrow"],1.75,522],xLeftrightarrow:[["doubleleftarrow","doublerightarrow"],1.75,560],xrightleftharpoons:[["leftharpoondownplus","rightharpoonplus"],1.75,716],xleftrightharpoons:[["leftharpoonplus","rightharpoondownplus"],1.75,716],xhookleftarrow:[["leftarrow","righthook"],1.08,522],xhookrightarrow:[["lefthook","rightarrow"],1.08,522],overlinesegment:[["leftlinesegment","rightlinesegment"],.888,522],underlinesegment:[["leftlinesegment","rightlinesegment"],.888,522],overgroup:[["leftgroup","rightgroup"],.888,342],undergroup:[["leftgroupunder","rightgroupunder"],.888,342],xmapsto:[["leftmapsto","rightarrow"],1.5,522],xtofrom:[["leftToFrom","rightToFrom"],1.75,528],xrightleftarrows:[["baraboveleftarrow","rightarrowabovebar"],1.75,901],xrightequilibrium:[["baraboveshortleftharpoon","rightharpoonaboveshortbar"],1.75,716],xleftequilibrium:[["shortbaraboveleftharpoon","shortrightharpoonabovebar"],1.75,716]},ZA=function(f){return f.type==="ordgroup"?f.body.length:1},FA=function(f,v){function x(){var nt=4e5,St=f.label.substr(1);if(P.contains(["widehat","widecheck","widetilde","utilde"],St)){var Jt=f,dr=ZA(Jt.base),Or,on,tn;if(dr>5)St==="widehat"||St==="widecheck"?(Or=420,nt=2364,tn=.42,on=St+"4"):(Or=312,nt=2340,tn=.34,on="tilde4");else{var Fn=[1,1,2,2,3,3][dr];St==="widehat"||St==="widecheck"?(nt=[0,1062,2364,2364,2364][Fn],Or=[0,239,300,360,420][Fn],tn=[0,.24,.3,.3,.36,.42][Fn],on=St+Fn):(nt=[0,600,1033,2339,2340][Fn],Or=[0,260,286,306,312][Fn],tn=[0,.26,.286,.3,.306,.34][Fn],on="tilde"+Fn)}var $n=new xt(on),Zn=new gt([$n],{width:"100%",height:tn+"em",viewBox:"0 0 "+nt+" "+Or,preserveAspectRatio:"none"});return{span:Rr.makeSvgSpan([],[Zn],v),minWidth:0,height:tn}}else{var yi=[],Oi=Po[St],Qs=Oi[0],xs=Oi[1],zs=Oi[2],Gs=zs/1e3,ys=Qs.length,ro,$s;if(ys===1){var rr=Oi[3];ro=["hide-tail"],$s=[rr]}else if(ys===2)ro=["halfarrow-left","halfarrow-right"],$s=["xMinYMin","xMaxYMin"];else if(ys===3)ro=["brace-left","brace-center","brace-right"],$s=["xMinYMin","xMidYMin","xMaxYMin"];else throw new Error(`Correct katexImagesData or update code here to support
|
|
|
`+ys+" children.");for(var bn=0;bn<ys;bn++){var UA=new xt(Qs[bn]),PA=new gt([UA],{width:"400em",height:Gs+"em",viewBox:"0 0 "+nt+" "+zs,preserveAspectRatio:$s[bn]+" slice"}),da=Rr.makeSvgSpan([ro[bn]],[PA],v);if(ys===1)return{span:da,minWidth:xs,height:Gs};da.style.height=Gs+"em",yi.push(da)}return{span:Rr.makeSpan(["stretchy"],yi,v),minWidth:xs,height:Gs}}}var Q=x(),re=Q.span,be=Q.minWidth,Ze=Q.height;return re.height=Ze,re.style.height=Ze+"em",be>0&&(re.style.minWidth=be+"em"),re},dA=function(f,v,x,Q){var re,be=f.height+f.depth+2*x;if(/fbox|color/.test(v)){if(re=Rr.makeSpan(["stretchy",v],[],Q),v==="fbox"){var Ze=Q.color&&Q.getColor();Ze&&(re.style.borderColor=Ze)}}else{var nt=[];/^[bx]cancel$/.test(v)&&nt.push(new Et({x1:"0",y1:"0",x2:"100%",y2:"100%","stroke-width":"0.046em"})),/^x?cancel$/.test(v)&&nt.push(new Et({x1:"0",y1:"100%",x2:"100%",y2:"0","stroke-width":"0.046em"}));var St=new gt(nt,{width:"100%",height:be+"em"});re=Rr.makeSvgSpan([],[St],Q)}return re.height=be,re.style.height=be+"em",re},Ki={encloseSpan:dA,mathMLnode:Eo,svgSpan:FA},Nn=function(f,v){var x,Q,re=Ws(f,"supsub"),be;re?(Q=hi(re.base,"accent"),x=Q.base,re.base=x,be=xr(Si(re,v)),re.base=Q):(Q=hi(f,"accent"),x=Q.base);var Ze=Si(x,v.havingCrampedStyle()),nt=Q.isShifty&&P.isCharacterBox(x),St=0;if(nt){var Jt=P.getBaseElem(x),dr=Si(Jt,v.havingCrampedStyle());St=nr(dr).skew}var Or=Math.min(Ze.height,v.fontMetrics().xHeight),on;if(Q.isStretchy)on=Ki.svgSpan(Q,v),on=Rr.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:Ze},{type:"elem",elem:on,wrapperClasses:["svg-align"],wrapperStyle:St>0?{width:"calc(100% - "+2*St+"em)",marginLeft:2*St+"em"}:void 0}]},v);else{var tn,Fn;Q.label==="\\vec"?(tn=Rr.staticSvg("vec",v),Fn=Rr.svgData.vec[1]):(tn=Rr.makeOrd({mode:Q.mode,text:Q.label},v,"textord"),tn=nr(tn),tn.italic=0,Fn=tn.width),on=Rr.makeSpan(["accent-body"],[tn]);var $n=Q.label==="\\textcircled";$n&&(on.classes.push("accent-full"),Or=Ze.height);var Zn=St;$n||(Zn-=Fn/2),on.style.left=Zn+"em",Q.label==="\\textcircled"&&(on.style.top=".2em"),on=Rr.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:Ze},{type:"kern",size:-Or},{type:"elem",elem:on}]},v)}var yi=Rr.makeSpan(["mord","accent"],[on],v);return be?(be.children[0]=yi,be.height=Math.max(yi.height,be.height),be.classes[0]="mord",be):yi},Ai=function(f,v){var x=f.isStretchy?Ki.mathMLnode(f.label):new gn.MathNode("mo",[ha(f.label,f.mode)]),Q=new gn.MathNode("mover",[gi(f.base,v),x]);return Q.setAttribute("accent","true"),Q},Bs=new RegExp(["\\acute","\\grave","\\ddot","\\tilde","\\bar","\\breve","\\check","\\hat","\\vec","\\dot","\\mathring"].map(function(Ee){return"\\"+Ee}).join("|"));In({type:"accent",names:["\\acute","\\grave","\\ddot","\\tilde","\\bar","\\breve","\\check","\\hat","\\vec","\\dot","\\mathring","\\widecheck","\\widehat","\\widetilde","\\overrightarrow","\\overleftarrow","\\Overrightarrow","\\overleftrightarrow","\\overgroup","\\overlinesegment","\\overleftharpoon","\\overrightharpoon"],props:{numArgs:1},handler:function(f,v){var x=v[0],Q=!Bs.test(f.funcName),re=!Q||f.funcName==="\\widehat"||f.funcName==="\\widetilde"||f.funcName==="\\widecheck";return{type:"accent",mode:f.parser.mode,label:f.funcName,isStretchy:Q,isShifty:re,base:x}},htmlBuilder:Nn,mathmlBuilder:Ai}),In({type:"accent",names:["\\'","\\`","\\^","\\~","\\=","\\u","\\.",'\\"',"\\r","\\H","\\v","\\textcircled"],props:{numArgs:1,allowedInText:!0,allowedInMath:!1},handler:function(f,v){var x=v[0];return{type:"accent",mode:f.parser.mode,label:f.funcName,isStretchy:!1,isShifty:!0,base:x}},htmlBuilder:Nn,mathmlBuilder:Ai}),In({type:"accentUnder",names:["\\underleftarrow","\\underrightarrow","\\underleftrightarrow","\\undergroup","\\underlinesegment","\\utilde"],props:{numArgs:1},handler:function(f,v){var x=f.parser,Q=f.funcName,re=v[0];return{type:"accentUnder",mode:x.mode,label:Q,base:re}},htmlBuilder:function(f,v){var x=Si(f.base,v),Q=Ki.svgSpan(f,v),re=f.label==="\\utilde"?.12:0,be=Rr.makeVList({positionType:"bottom",positionData:Q.height+re,children:[{type:"elem",elem:Q,wrapperClasses:["svg-align"]},{type:"kern",size:re},{type:"elem",elem:x}]},v);return Rr.makeSpan(["mord","accentunder"],[be],v)},mathmlBuilder:function(f,v){var x=Ki.mathMLnode(f.label),Q=new gn.MathNode("munder",[gi(f.base,v),x]);return Q.setAttribute("accentunder","true"),Q}});var fi=function(f){var v=new gn.MathNode("mpadded",f?[f]:[]);return v.setAttribute("width","+0.6em"),v.setAttribute("lspace","0.3em"),v};In({type:"xArrow",names:["\\xleftarrow","\\xrightarrow","\\xLeftarrow","\\xRightarrow","\\xleftrightarrow","\\xLeftrightarrow","\\xhookleftarrow","\\xhookrightarrow","\\xmapsto","\\xrightharpoondown","\\xrightharpoonup","\\xleftharpoondown","\\xleftharpoonup","\\xrightleftharpoons","\\xleftrightharpoons","\\xlongequal","\\xtwoheadrightarrow","\\xtwoheadleftarrow","\\xtofrom","\\xrightleftarrows","\\xrightequilibrium","\\xleftequilibrium"],props:{numArgs:1,numOptionalArgs:1},handler:function(f,v,x){var Q=f.parser,re=f.funcName;return{type:"xArrow",mode:Q.mode,label:re,body:v[0],below:x[0]}},htmlBuilder:function(f,v){var x=v.style,Q=v.havingStyle(x.sup()),re=Rr.wrapFragment(Si(f.body,Q,v),v);re.classes.push("x-arrow-pad");var be;f.below&&(Q=v.havingStyle(x.sub()),be=Rr.wrapFragment(Si(f.below,Q,v),v),be.classes.push("x-arrow-pad"));var Ze=Ki.svgSpan(f,v),nt=-v.fontMetrics().axisHeight+.5*Ze.height,St=-v.fontMetrics().axisHeight-.5*Ze.height-.111;(re.depth>.25||f.label==="\\xleftequilibrium")&&(St-=re.depth);var Jt;if(be){var dr=-v.fontMetrics().axisHeight+be.height+.5*Ze.height+.111;Jt=Rr.makeVList({positionType:"individualShift",children:[{type:"elem",elem:re,shift:St},{type:"elem",elem:Ze,shift:nt},{type:"elem",elem:be,shift:dr}]},v)}else Jt=Rr.makeVList({positionType:"individualShift",children:[{type:"elem",elem:re,shift:St},{type:"elem",elem:Ze,shift:nt}]},v);return Jt.children[0].children[0].children[1].classes.push("svg-align"),Rr.makeSpan(["mrel","x-arrow"],[Jt],v)},mathmlBuilder:function(f,v){var x=Ki.mathMLnode(f.label),Q;if(f.body){var re=fi(gi(f.body,v));if(f.below){var be=fi(gi(f.below,v));Q=new gn.MathNode("munderover",[x,be,re])}else Q=new gn.MathNode("mover",[x,re])}else if(f.below){var Ze=fi(gi(f.below,v));Q=new gn.MathNode("munder",[x,Ze])}else Q=fi(),Q=new gn.MathNode("mover",[x,Q]);return Q}}),In({type:"textord",names:["\\@char"],props:{numArgs:1,allowedInText:!0},handler:function(f,v){for(var x=f.parser,Q=hi(v[0],"ordgroup"),re=Q.body,be="",Ze=0;Ze<re.length;Ze++){var nt=hi(re[Ze],"textord");be+=nt.text}var St=parseInt(be);if(isNaN(St))throw new I("\\@char has non-numeric argument "+be);return{type:"textord",mode:x.mode,text:String.fromCharCode(St)}}});var mi=function(f,v){var x=Ms(f.body,v.withColor(f.color),!1);return Rr.makeFragment(x)},qA=function(f,v){var x=Za(f.body,v.withColor(f.color)),Q=new gn.MathNode("mstyle",x);return Q.setAttribute("mathcolor",f.color),Q};In({type:"color",names:["\\textcolor"],props:{numArgs:2,allowedInText:!0,greediness:3,argTypes:["color","original"]},handler:function(f,v){var x=f.parser,Q=hi(v[0],"color-token").color,re=v[1];return{type:"color",mode:x.mode,color:Q,body:Rs(re)}},htmlBuilder:mi,mathmlBuilder:qA}),In({type:"color",names:["\\color"],props:{numArgs:1,allowedInText:!0,greediness:3,argTypes:["color"]},handler:function(f,v){var x=f.parser,Q=f.breakOnTokenText,re=hi(v[0],"color-token").color;x.gullet.macros.set("\\current@color",re);var be=x.parseExpression(!0,Q);return{type:"color",mode:x.mode,color:re,body:be}},htmlBuilder:mi,mathmlBuilder:qA}),In({type:"cr",names:["\\cr","\\newline"],props:{numArgs:0,numOptionalArgs:1,argTypes:["size"],allowedInText:!0},handler:function(f,v,x){var Q=f.parser,re=f.funcName,be=x[0],Ze=re==="\\cr",nt=!1;return Ze||(Q.settings.displayMode&&Q.settings.useStrictBehavior("newLineInDisplayMode","In LaTeX, \\\\ or \\newline does nothing in display mode")?nt=!1:nt=!0),{type:"cr",mode:Q.mode,newLine:nt,newRow:Ze,size:be&&hi(be,"size").value}},htmlBuilder:function(f,v){if(f.newRow)throw new I("\\cr valid only within a tabular/array environment");var x=Rr.makeSpan(["mspace"],[],v);return f.newLine&&(x.classes.push("newline"),f.size&&(x.style.marginTop=ji(f.size,v)+"em")),x},mathmlBuilder:function(f,v){var x=new gn.MathNode("mspace");return f.newLine&&(x.setAttribute("linebreak","newline"),f.size&&x.setAttribute("height",ji(f.size,v)+"em")),x}});var za=function(f,v,x){var Q=An.math[f]&&An.math[f].replace,re=cr(Q||f,v,x);if(!re)throw new Error("Unsupported symbol "+f+" and font size "+v+".");return re},Fs=function(f,v,x,Q){var re=x.havingBaseStyle(v),be=Rr.makeSpan(Q.concat(re.sizingClasses(x)),[f],x),Ze=re.sizeMultiplier/x.sizeMultiplier;return be.height*=Ze,be.depth*=Ze,be.maxFontSize=re.sizeMultiplier,be},gl=function(f,v,x){var Q=v.havingBaseStyle(x),re=(1-v.sizeMultiplier/Q.sizeMultiplier)*v.fontMetrics().axisHeight;f.classes.push("delimcenter"),f.style.top=re+"em",f.height-=re,f.depth+=re},Xa=function(f,v,x,Q,re,be){var Ze=Rr.makeSymbol(f,"Main-Regular",re,Q),nt=Fs(Ze,v,Q,be);return x&&gl(nt,Q,v),nt},Xc=function(f,v,x,Q){return Rr.makeSymbol(f,"Size"+v+"-Regular",x,Q)},ml=function(f,v,x,Q,re,be){var Ze=Xc(f,v,re,Q),nt=Fs(Rr.makeSpan(["delimsizing","size"+v],[Ze],Q),z.TEXT,Q,be);return x&&gl(nt,Q,z.TEXT),nt},pA=function(f,v,x){var Q;v==="Size1-Regular"?Q="delim-size1":Q="delim-size4";var re=Rr.makeSpan(["delimsizinginner",Q],[Rr.makeSpan([],[Rr.makeSymbol(f,v,x)])]);return{type:"elem",elem:re}},Ji={type:"kern",size:-.005},vl=function(f,v,x,Q,re,be){var Ze,nt,St,Jt;Ze=St=Jt=f,nt=null;var dr="Size1-Regular";f==="\\uparrow"?St=Jt="\u23D0":f==="\\Uparrow"?St=Jt="\u2016":f==="\\downarrow"?Ze=St="\u23D0":f==="\\Downarrow"?Ze=St="\u2016":f==="\\updownarrow"?(Ze="\\uparrow",St="\u23D0",Jt="\\downarrow"):f==="\\Updownarrow"?(Ze="\\Uparrow",St="\u2016",Jt="\\Downarrow"):f==="["||f==="\\lbrack"?(Ze="\u23A1",St="\u23A2",Jt="\u23A3",dr="Size4-Regular"):f==="]"||f==="\\rbrack"?(Ze="\u23A4",St="\u23A5",Jt="\u23A6",dr="Size4-Regular"):f==="\\lfloor"||f==="\u230A"?(St=Ze="\u23A2",Jt="\u23A3",dr="Size4-Regular"):f==="\\lceil"||f==="\u2308"?(Ze="\u23A1",St=Jt="\u23A2",dr="Size4-Regular"):f==="\\rfloor"||f==="\u230B"?(St=Ze="\u23A5",Jt="\u23A6",dr="Size4-Regular"):f==="\\rceil"||f==="\u2309"?(Ze="\u23A4",St=Jt="\u23A5",dr="Size4-Regular"):f==="("||f==="\\lparen"?(Ze="\u239B",St="\u239C",Jt="\u239D",dr="Size4-Regular"):f===")"||f==="\\rparen"?(Ze="\u239E",St="\u239F",Jt="\u23A0",dr="Size4-Regular"):f==="\\{"||f==="\\lbrace"?(Ze="\u23A7",nt="\u23A8",Jt="\u23A9",St="\u23AA",dr="Size4-Regular"):f==="\\}"||f==="\\rbrace"?(Ze="\u23AB",nt="\u23AC",Jt="\u23AD",St="\u23AA",dr="Size4-Regular"):f==="\\lgroup"||f==="\u27EE"?(Ze="\u23A7",Jt="\u23A9",St="\u23AA",dr="Size4-Regular"):f==="\\rgroup"||f==="\u27EF"?(Ze="\u23AB",Jt="\u23AD",St="\u23AA",dr="Size4-Regular"):f==="\\lmoustache"||f==="\u23B0"?(Ze="\u23A7",Jt="\u23AD",St="\u23AA",dr="Size4-Regular"):(f==="\\rmoustache"||f==="\u23B1")&&(Ze="\u23AB",Jt="\u23A9",St="\u23AA",dr="Size4-Regular");var Or=za(Ze,dr,re),on=Or.height+Or.depth,tn=za(St,dr,re),Fn=tn.height+tn.depth,$n=za(Jt,dr,re),Zn=$n.height+$n.depth,yi=0,Oi=1;if(nt!==null){var Qs=za(nt,dr,re);yi=Qs.height+Qs.depth,Oi=2}var xs=on+Zn+yi,zs=Math.max(0,Math.ceil((v-xs)/(Oi*Fn))),Gs=xs+zs*Oi*Fn,ys=Q.fontMetrics().axisHeight;x&&(ys*=Q.sizeMultiplier);var ro=Gs/2-ys,$s=(zs+1)*.005-Fn,rr=[];if(rr.push(pA(Jt,dr,re)),nt===null)for(var bn=0;bn<zs;bn++)rr.push(Ji),rr.push(pA(St,dr,re));else{for(var UA=0;UA<zs;UA++)rr.push(Ji),rr.push(pA(St,dr,re));rr.push({type:"kern",size:$s}),rr.push(pA(St,dr,re)),rr.push(Ji),rr.push(pA(nt,dr,re));for(var PA=0;PA<zs;PA++)rr.push(Ji),rr.push(pA(St,dr,re))}rr.push({type:"kern",size:$s}),rr.push(pA(St,dr,re)),rr.push(Ji),rr.push(pA(Ze,dr,re));var da=Q.havingBaseStyle(z.TEXT),no=Rr.makeVList({positionType:"bottom",positionData:ro,children:rr},da);return Fs(Rr.makeSpan(["delimsizing","mult"],[no],da),z.TEXT,Q,be)},xc=80,Cc=.08,ma=function(f,v,x,Q,re){var be=ar(f,Q,x),Ze=new xt(f,be),nt=new gt([Ze],{width:"400em",height:v+"em",viewBox:"0 0 400000 "+x,preserveAspectRatio:"xMinYMin slice"});return Rr.makeSvgSpan(["hide-tail"],[nt],re)},LA=function(f,v){var x=v.havingBaseSizing(),Q=lo("\\surd",f*x.sizeMultiplier,Sc,x),re=x.sizeMultiplier,be=Math.max(0,v.minRuleThickness-v.fontMetrics().sqrtRuleThickness),Ze,nt=0,St=0,Jt=0,dr;return Q.type==="small"?(Jt=1e3+1e3*be+xc,f<1?re=1:f<1.4&&(re=.7),nt=(1+be+Cc)/re,St=(1+be)/re,Ze=ma("sqrtMain",nt,Jt,be,v),Ze.style.minWidth="0.853em",dr=.833/re):Q.type==="large"?(Jt=(1e3+xc)*DA[Q.size],St=(DA[Q.size]+be)/re,nt=(DA[Q.size]+be+Cc)/re,Ze=ma("sqrtSize"+Q.size,nt,Jt,be,v),Ze.style.minWidth="1.02em",dr=1/re):(nt=f+be+Cc,St=f+be,Jt=Math.floor(1e3*f+be)+xc,Ze=ma("sqrtTall",nt,Jt,be,v),Ze.style.minWidth="0.742em",dr=1.056),Ze.height=St,Ze.style.height=nt+"em",{span:Ze,advanceWidth:dr,ruleWidth:(v.fontMetrics().sqrtRuleThickness+be)*re}},XA=["(","\\lparen",")","\\rparen","[","\\lbrack","]","\\rbrack","\\{","\\lbrace","\\}","\\rbrace","\\lfloor","\\rfloor","\u230A","\u230B","\\lceil","\\rceil","\u2308","\u2309","\\surd"],$0=["\\uparrow","\\downarrow","\\updownarrow","\\Uparrow","\\Downarrow","\\Updownarrow","|","\\|","\\vert","\\Vert","\\lvert","\\rvert","\\lVert","\\rVert","\\lgroup","\\rgroup","\u27EE","\u27EF","\\lmoustache","\\rmoustache","\u23B0","\u23B1"],Ja=["<",">","\\langle","\\rangle","/","\\backslash","\\lt","\\gt"],DA=[0,1.2,1.8,2.4,3],ea=function(f,v,x,Q,re){if(f==="<"||f==="\\lt"||f==="\u27E8"?f="\\langle":(f===">"||f==="\\gt"||f==="\u27E9")&&(f="\\rangle"),P.contains(XA,f)||P.contains(Ja,f))return ml(f,v,!1,x,Q,re);if(P.contains($0,f))return vl(f,DA[v],!1,x,Q,re);throw new I("Illegal delimiter: '"+f+"'")},Ma=[{type:"small",style:z.SCRIPTSCRIPT},{type:"small",style:z.SCRIPT},{type:"small",style:z.TEXT},{type:"large",size:1},{type:"large",size:2},{type:"large",size:3},{type:"large",size:4}],Bo=[{type:"small",style:z.SCRIPTSCRIPT},{type:"small",style:z.SCRIPT},{type:"small",style:z.TEXT},{type:"stack"}],Sc=[{type:"small",style:z.SCRIPTSCRIPT},{type:"small",style:z.SCRIPT},{type:"small",style:z.TEXT},{type:"large",size:1},{type:"large",size:2},{type:"large",size:3},{type:"large",size:4},{type:"stack"}],Jc=function(f){if(f.type==="small")return"Main-Regular";if(f.type==="large")return"Size"+f.size+"-Regular";if(f.type==="stack")return"Size4-Regular";throw new Error("Add support for delim type '"+f.type+"' here.")},lo=function(f,v,x,Q){for(var re=Math.min(2,3-Q.style.size),be=re;be<x.length&&x[be].type!=="stack";be++){var Ze=za(f,Jc(x[be]),"math"),nt=Ze.height+Ze.depth;if(x[be].type==="small"){var St=Q.havingBaseStyle(x[be].style);nt*=St.sizeMultiplier}if(nt>v)return x[be]}return x[x.length-1]},ec=function(f,v,x,Q,re,be){f==="<"||f==="\\lt"||f==="\u27E8"?f="\\langle":(f===">"||f==="\\gt"||f==="\u27E9")&&(f="\\rangle");var Ze;P.contains(Ja,f)?Ze=Ma:P.contains(XA,f)?Ze=Sc:Ze=Bo;var nt=lo(f,v,Ze,Q);return nt.type==="small"?Xa(f,nt.style,x,Q,re,be):nt.type==="large"?ml(f,nt.size,x,Q,re,be):vl(f,v,x,Q,re,be)},eo=function(f,v,x,Q,re,be){var Ze=Q.fontMetrics().axisHeight*Q.sizeMultiplier,nt=901,St=5/Q.fontMetrics().ptPerEm,Jt=Math.max(v-Ze,x+Ze),dr=Math.max(Jt/500*nt,2*Jt-St);return ec(f,dr,!0,Q,re,be)},xo={sqrtImage:LA,sizedDelim:ea,customSizedDelim:ec,leftRightDelim:eo},Sa={"\\bigl":{mclass:"mopen",size:1},"\\Bigl":{mclass:"mopen",size:2},"\\biggl":{mclass:"mopen",size:3},"\\Biggl":{mclass:"mopen",size:4},"\\bigr":{mclass:"mclose",size:1},"\\Bigr":{mclass:"mclose",size:2},"\\biggr":{mclass:"mclose",size:3},"\\Biggr":{mclass:"mclose",size:4},"\\bigm":{mclass:"mrel",size:1},"\\Bigm":{mclass:"mrel",size:2},"\\biggm":{mclass:"mrel",size:3},"\\Biggm":{mclass:"mrel",size:4},"\\big":{mclass:"mord",size:1},"\\Big":{mclass:"mord",size:2},"\\bigg":{mclass:"mord",size:3},"\\Bigg":{mclass:"mord",size:4}},Y0=["(","\\lparen",")","\\rparen","[","\\lbrack","]","\\rbrack","\\{","\\lbrace","\\}","\\rbrace","\\lfloor","\\rfloor","\u230A","\u230B","\\lceil","\\rceil","\u2308","\u2309","<",">","\\langle","\u27E8","\\rangle","\u27E9","\\lt","\\gt","\\lvert","\\rvert","\\lVert","\\rVert","\\lgroup","\\rgroup","\u27EE","\u27EF","\\lmoustache","\\rmoustache","\u23B0","\u23B1","/","\\backslash","|","\\vert","\\|","\\Vert","\\uparrow","\\Uparrow","\\downarrow","\\Downarrow","\\updownarrow","\\Updownarrow","."];function Oo(Ee,f){var v=Ao(Ee);if(v&&P.contains(Y0,v.text))return v;throw new I("Invalid delimiter: '"+(v?v.text:JSON.stringify(Ee))+"' after '"+f.funcName+"'",Ee)}In({type:"delimsizing",names:["\\bigl","\\Bigl","\\biggl","\\Biggl","\\bigr","\\Bigr","\\biggr","\\Biggr","\\bigm","\\Bigm","\\biggm","\\Biggm","\\big","\\Big","\\bigg","\\Bigg"],props:{numArgs:1},handler:function(f,v){var x=Oo(v[0],f);return{type:"delimsizing",mode:f.parser.mode,size:Sa[f.funcName].size,mclass:Sa[f.funcName].mclass,delim:x.text}},htmlBuilder:function(f,v){return f.delim==="."?Rr.makeSpan([f.mclass]):xo.sizedDelim(f.delim,f.size,v,f.mode,[f.mclass])},mathmlBuilder:function(f){var v=[];f.delim!=="."&&v.push(ha(f.delim,f.mode));var x=new gn.MathNode("mo",v);return f.mclass==="mopen"||f.mclass==="mclose"?x.setAttribute("fence","true"):x.setAttribute("fence","false"),x}});function Iu(Ee){if(!Ee.body)throw new Error("Bug: The leftright ParseNode wasn't fully parsed.")}In({type:"leftright-right",names:["\\right"],props:{numArgs:1},handler:function(f,v){var x=f.parser.gullet.macros.get("\\current@color");if(x&&typeof x!="string")throw new I("\\current@color set to non-string in \\right");return{type:"leftright-right",mode:f.parser.mode,delim:Oo(v[0],f).text,color:x}}}),In({type:"leftright",names:["\\left"],props:{numArgs:1},handler:function(f,v){var x=Oo(v[0],f),Q=f.parser;++Q.leftrightDepth;var re=Q.parseExpression(!1);--Q.leftrightDepth,Q.expect("\\right",!1);var be=hi(Q.parseFunction(),"leftright-right");return{type:"leftright",mode:Q.mode,body:re,left:x.text,right:be.delim,rightColor:be.color}},htmlBuilder:function(f,v){Iu(f);for(var x=Ms(f.body,v,!0,["mopen","mclose"]),Q=0,re=0,be=!1,Ze=0;Ze<x.length;Ze++)x[Ze].isMiddle?be=!0:(Q=Math.max(x[Ze].height,Q),re=Math.max(x[Ze].depth,re));Q*=v.sizeMultiplier,re*=v.sizeMultiplier;var nt;if(f.left==="."?nt=Ca(v,["mopen"]):nt=xo.leftRightDelim(f.left,Q,re,v,f.mode,["mopen"]),x.unshift(nt),be)for(var St=1;St<x.length;St++){var Jt=x[St],dr=Jt.isMiddle;dr&&(x[St]=xo.leftRightDelim(dr.delim,Q,re,dr.options,f.mode,[]))}var Or;if(f.right===".")Or=Ca(v,["mclose"]);else{var on=f.rightColor?v.withColor(f.rightColor):v;Or=xo.leftRightDelim(f.right,Q,re,on,f.mode,["mclose"])}return x.push(Or),Rr.makeSpan(["minner"],x,v)},mathmlBuilder:function(f,v){Iu(f);var x=Za(f.body,v);if(f.left!=="."){var Q=new gn.MathNode("mo",[ha(f.left,f.mode)]);Q.setAttribute("fence","true"),x.unshift(Q)}if(f.right!=="."){var re=new gn.MathNode("mo",[ha(f.right,f.mode)]);re.setAttribute("fence","true"),f.rightColor&&re.setAttribute("mathcolor",f.rightColor),x.push(re)}return ga(x)}}),In({type:"middle",names:["\\middle"],props:{numArgs:1},handler:function(f,v){var x=Oo(v[0],f);if(!f.parser.leftrightDepth)throw new I("\\middle without preceding \\left",x);return{type:"middle",mode:f.parser.mode,delim:x.text}},htmlBuilder:function(f,v){var x;if(f.delim===".")x=Ca(v,[]);else{x=xo.sizedDelim(f.delim,1,v,f.mode,[]);var Q={delim:f.delim,options:v};x.isMiddle=Q}return x},mathmlBuilder:function(f,v){var x=f.delim==="\\vert"||f.delim==="|"?ha("|","text"):ha(f.delim,f.mode),Q=new gn.MathNode("mo",[x]);return Q.setAttribute("fence","true"),Q.setAttribute("lspace","0.05em"),Q.setAttribute("rspace","0.05em"),Q}});var Tu=function(f,v){var x=Rr.wrapFragment(Si(f.body,v),v),Q=f.label.substr(1),re=v.sizeMultiplier,be,Ze=0,nt=P.isCharacterBox(f.body);if(Q==="sout")be=Rr.makeSpan(["stretchy","sout"]),be.height=v.fontMetrics().defaultRuleThickness/re,Ze=-.5*v.fontMetrics().xHeight;else{/cancel/.test(Q)?nt||x.classes.push("cancel-pad"):x.classes.push("boxpad");var St=0,Jt=0;/box/.test(Q)?(Jt=Math.max(v.fontMetrics().fboxrule,v.minRuleThickness),St=v.fontMetrics().fboxsep+(Q==="colorbox"?0:Jt)):St=nt?.2:0,be=Ki.encloseSpan(x,Q,St,v),/fbox|boxed|fcolorbox/.test(Q)&&(be.style.borderStyle="solid",be.style.borderWidth=Jt+"em"),Ze=x.depth+St,f.backgroundColor&&(be.style.backgroundColor=f.backgroundColor,f.borderColor&&(be.style.borderColor=f.borderColor))}var dr;return f.backgroundColor?dr=Rr.makeVList({positionType:"individualShift",children:[{type:"elem",elem:be,shift:Ze},{type:"elem",elem:x,shift:0}]},v):dr=Rr.makeVList({positionType:"individualShift",children:[{type:"elem",elem:x,shift:0},{type:"elem",elem:be,shift:Ze,wrapperClasses:/cancel/.test(Q)?["svg-align"]:[]}]},v),/cancel/.test(Q)&&(dr.height=x.height,dr.depth=x.depth),/cancel/.test(Q)&&!nt?Rr.makeSpan(["mord","cancel-lap"],[dr],v):Rr.makeSpan(["mord"],[dr],v)},eu=function(f,v){var x=0,Q=new gn.MathNode(f.label.indexOf("colorbox")>-1?"mpadded":"menclose",[gi(f.body,v)]);switch(f.label){case"\\cancel":Q.setAttribute("notation","updiagonalstrike");break;case"\\bcancel":Q.setAttribute("notation","downdiagonalstrike");break;case"\\sout":Q.setAttribute("notation","horizontalstrike");break;case"\\fbox":Q.setAttribute("notation","box");break;case"\\fcolorbox":case"\\colorbox":if(x=v.fontMetrics().fboxsep*v.fontMetrics().ptPerEm,Q.setAttribute("width","+"+2*x+"pt"),Q.setAttribute("height","+"+2*x+"pt"),Q.setAttribute("lspace",x+"pt"),Q.setAttribute("voffset",x+"pt"),f.label==="\\fcolorbox"){var re=Math.max(v.fontMetrics().fboxrule,v.minRuleThickness);Q.setAttribute("style","border: "+re+"em solid "+String(f.borderColor))}break;case"\\xcancel":Q.setAttribute("notation","updiagonalstrike downdiagonalstrike");break}return f.backgroundColor&&Q.setAttribute("mathbackground",f.backgroundColor),Q};In({type:"enclose",names:["\\colorbox"],props:{numArgs:2,allowedInText:!0,greediness:3,argTypes:["color","text"]},handler:function(f,v,x){var Q=f.parser,re=f.funcName,be=hi(v[0],"color-token").color,Ze=v[1];return{type:"enclose",mode:Q.mode,label:re,backgroundColor:be,body:Ze}},htmlBuilder:Tu,mathmlBuilder:eu}),In({type:"enclose",names:["\\fcolorbox"],props:{numArgs:3,allowedInText:!0,greediness:3,argTypes:["color","color","text"]},handler:function(f,v,x){var Q=f.parser,re=f.funcName,be=hi(v[0],"color-token").color,Ze=hi(v[1],"color-token").color,nt=v[2];return{type:"enclose",mode:Q.mode,label:re,backgroundColor:Ze,borderColor:be,body:nt}},htmlBuilder:Tu,mathmlBuilder:eu}),In({type:"enclose",names:["\\fbox"],props:{numArgs:1,argTypes:["hbox"],allowedInText:!0},handler:function(f,v){var x=f.parser;return{type:"enclose",mode:x.mode,label:"\\fbox",body:v[0]}}}),In({type:"enclose",names:["\\cancel","\\bcancel","\\xcancel","\\sout"],props:{numArgs:1},handler:function(f,v,x){var Q=f.parser,re=f.funcName,be=v[0];return{type:"enclose",mode:Q.mode,label:re,body:be}},htmlBuilder:Tu,mathmlBuilder:eu});var Z0={};function Ga(Ee){for(var f=Ee.type,v=Ee.names,x=Ee.props,Q=Ee.handler,re=Ee.htmlBuilder,be=Ee.mathmlBuilder,Ze={type:f,numArgs:x.numArgs||0,greediness:1,allowedInText:!1,numOptionalArgs:0,handler:Q},nt=0;nt<v.length;++nt)Z0[v[nt]]=Ze;re&&($a[f]=re),be&&(Oa[f]=be)}function e0(Ee){var f=[];Ee.consumeSpaces();for(var v=Ee.fetch().text;v==="\\hline"||v==="\\hdashline";)Ee.consume(),f.push(v==="\\hdashline"),Ee.consumeSpaces(),v=Ee.fetch().text;return f}function tu(Ee,f,v){var x=f.hskipBeforeAndAfter,Q=f.addJot,re=f.cols,be=f.arraystretch,Ze=f.colSeparationType;if(Ee.gullet.beginGroup(),Ee.gullet.macros.set("\\\\","\\cr"),!be){var nt=Ee.gullet.expandMacroAsText("\\arraystretch");if(nt==null)be=1;else if(be=parseFloat(nt),!be||be<0)throw new I("Invalid \\arraystretch: "+nt)}Ee.gullet.beginGroup();var St=[],Jt=[St],dr=[],Or=[];for(Or.push(e0(Ee));;){var on=Ee.parseExpression(!1,"\\cr");Ee.gullet.endGroup(),Ee.gullet.beginGroup(),on={type:"ordgroup",mode:Ee.mode,body:on},v&&(on={type:"styling",mode:Ee.mode,style:v,body:[on]}),St.push(on);var tn=Ee.fetch().text;if(tn==="&")Ee.consume();else if(tn==="\\end"){St.length===1&&on.type==="styling"&&on.body[0].body.length===0&&Jt.pop(),Or.length<Jt.length+1&&Or.push([]);break}else if(tn==="\\cr"){var Fn=hi(Ee.parseFunction(),"cr");dr.push(Fn.size),Or.push(e0(Ee)),St=[],Jt.push(St)}else throw new I("Expected & or \\\\ or \\cr or \\end",Ee.nextToken)}return Ee.gullet.endGroup(),Ee.gullet.endGroup(),{type:"array",mode:Ee.mode,addJot:Q,arraystretch:be,body:Jt,cols:re,rowGaps:dr,hskipBeforeAndAfter:x,hLinesBeforeRow:Or,colSeparationType:Ze}}function ru(Ee){return Ee.substr(0,1)==="d"?"display":"text"}var gA=function(f,v){var x,Q,re=f.body.length,be=f.hLinesBeforeRow,Ze=0,nt=new Array(re),St=[],Jt=Math.max(v.fontMetrics().arrayRuleWidth,v.minRuleThickness),dr=1/v.fontMetrics().ptPerEm,Or=5*dr;if(f.colSeparationType&&f.colSeparationType==="small"){var on=v.havingStyle(z.SCRIPT).sizeMultiplier;Or=.2778*(on/v.sizeMultiplier)}var tn=12*dr,Fn=3*dr,$n=f.arraystretch*tn,Zn=.7*$n,yi=.3*$n,Oi=0;function Qs(Ru){for(var Rc=0;Rc<Ru.length;++Rc)Rc>0&&(Oi+=.25),St.push({pos:Oi,isDashed:Ru[Rc]})}for(Qs(be[0]),x=0;x<f.body.length;++x){var xs=f.body[x],zs=Zn,Gs=yi;Ze<xs.length&&(Ze=xs.length);var ys=new Array(xs.length);for(Q=0;Q<xs.length;++Q){var ro=Si(xs[Q],v);Gs<ro.depth&&(Gs=ro.depth),zs<ro.height&&(zs=ro.height),ys[Q]=ro}var $s=f.rowGaps[x],rr=0;$s&&(rr=ji($s,v),rr>0&&(rr+=yi,Gs<rr&&(Gs=rr),rr=0)),f.addJot&&(Gs+=Fn),ys.height=zs,ys.depth=Gs,Oi+=zs,ys.pos=Oi,Oi+=Gs+rr,nt[x]=ys,Qs(be[x+1])}var bn=Oi/2+v.fontMetrics().axisHeight,UA=f.cols||[],PA=[],da,no;for(Q=0,no=0;Q<Ze||no<UA.length;++Q,++no){for(var rl=UA[no]||{},oh=!0;rl.type==="separator";){if(oh||(da=Rr.makeSpan(["arraycolsep"],[]),da.style.width=v.fontMetrics().doubleRuleSep+"em",PA.push(da)),rl.separator==="|"||rl.separator===":"){var wl=rl.separator==="|"?"solid":"dashed",bl=Rr.makeSpan(["vertical-separator"],[],v);bl.style.height=Oi+"em",bl.style.borderRightWidth=Jt+"em",bl.style.borderRightStyle=wl,bl.style.margin="0 -"+Jt/2+"em",bl.style.verticalAlign=-(Oi-bn)+"em",PA.push(bl)}else throw new I("Invalid separator type: "+rl.separator);no++,rl=UA[no]||{},oh=!1}if(!(Q>=Ze)){var hu=void 0;(Q>0||f.hskipBeforeAndAfter)&&(hu=P.deflt(rl.pregap,Or),hu!==0&&(da=Rr.makeSpan(["arraycolsep"],[]),da.style.width=hu+"em",PA.push(da)));var yA=[];for(x=0;x<re;++x){var fu=nt[x],OA=fu[Q];if(OA){var El=fu.pos-bn;OA.depth=fu.depth,OA.height=fu.height,yA.push({type:"elem",elem:OA,shift:El})}}yA=Rr.makeVList({positionType:"individualShift",children:yA},v),yA=Rr.makeSpan(["col-align-"+(rl.align||"c")],[yA]),PA.push(yA),(Q<Ze-1||f.hskipBeforeAndAfter)&&(hu=P.deflt(rl.postgap,Or),hu!==0&&(da=Rr.makeSpan(["arraycolsep"],[]),da.style.width=hu+"em",PA.push(da)))}}if(nt=Rr.makeSpan(["mtable"],PA),St.length>0){for(var va=Rr.makeLineSpan("hline",v,Jt),of=Rr.makeLineSpan("hdashline",v,Jt),nc=[{type:"elem",elem:nt,shift:0}];St.length>0;){var jo=St.pop(),ic=jo.pos-bn;jo.isDashed?nc.push({type:"elem",elem:of,shift:ic}):nc.push({type:"elem",elem:va,shift:ic})}nt=Rr.makeVList({positionType:"individualShift",children:nc},v)}return Rr.makeSpan(["mord"],[nt],v)},t0={c:"center ",l:"left ",r:"right "},JA=function(f,v){var x=new gn.MathNode("mtable",f.body.map(function(Oi){return new gn.MathNode("mtr",Oi.map(function(Qs){return new gn.MathNode("mtd",[gi(Qs,v)])}))})),Q=f.arraystretch===.5?.1:.16+f.arraystretch-1+(f.addJot?.09:0);x.setAttribute("rowspacing",Q+"em");var re="",be="";if(f.cols){var Ze=f.cols,nt="",St=!1,Jt=0,dr=Ze.length;Ze[0].type==="separator"&&(re+="top ",Jt=1),Ze[Ze.length-1].type==="separator"&&(re+="bottom ",dr-=1);for(var Or=Jt;Or<dr;Or++)Ze[Or].type==="align"?(be+=t0[Ze[Or].align],St&&(nt+="none "),St=!0):Ze[Or].type==="separator"&&St&&(nt+=Ze[Or].separator==="|"?"solid ":"dashed ",St=!1);x.setAttribute("columnalign",be.trim()),/[sd]/.test(nt)&&x.setAttribute("columnlines",nt.trim())}if(f.colSeparationType==="align"){for(var on=f.cols||[],tn="",Fn=1;Fn<on.length;Fn++)tn+=Fn%2?"0em ":"1em ";x.setAttribute("columnspacing",tn.trim())}else f.colSeparationType==="alignat"?x.setAttribute("columnspacing","0em"):f.colSeparationType==="small"?x.setAttribute("columnspacing","0.2778em"):x.setAttribute("columnspacing","1em");var $n="",Zn=f.hLinesBeforeRow;re+=Zn[0].length>0?"left ":"",re+=Zn[Zn.length-1].length>0?"right ":"";for(var yi=1;yi<Zn.length-1;yi++)$n+=Zn[yi].length===0?"none ":Zn[yi][0]?"dashed ":"solid ";return/[sd]/.test($n)&&x.setAttribute("rowlines",$n.trim()),re!==""&&(x=new gn.MathNode("menclose",[x]),x.setAttribute("notation",re.trim())),f.arraystretch&&f.arraystretch<1&&(x=new gn.MathNode("mstyle",[x]),x.setAttribute("scriptlevel","1")),x},r0=function(f,v){var x=[],Q=tu(f.parser,{cols:x,addJot:!0},"display"),re,be=0,Ze={type:"ordgroup",mode:f.mode,body:[]},nt=Ws(v[0],"ordgroup");if(nt){for(var St="",Jt=0;Jt<nt.body.length;Jt++){var dr=hi(nt.body[Jt],"textord");St+=dr.text}re=Number(St),be=re*2}var Or=!be;Q.body.forEach(function($n){for(var Zn=1;Zn<$n.length;Zn+=2){var yi=hi($n[Zn],"styling"),Oi=hi(yi.body[0],"ordgroup");Oi.body.unshift(Ze)}if(Or)be<$n.length&&(be=$n.length);else{var Qs=$n.length/2;if(re<Qs)throw new I("Too many math in a row: "+("expected "+re+", but got "+Qs),$n[0])}});for(var on=0;on<be;++on){var tn="r",Fn=0;on%2===1?tn="l":on>0&&Or&&(Fn=1),x[on]={type:"align",align:tn,pregap:Fn,postgap:0}}return Q.colSeparationType=Or?"align":"alignat",Q};Ga({type:"array",names:["array","darray"],props:{numArgs:1},handler:function(f,v){var x=Ao(v[0]),Q=x?[v[0]]:hi(v[0],"ordgroup").body,re=Q.map(function(Ze){var nt=uA(Ze),St=nt.text;if("lcr".indexOf(St)!==-1)return{type:"align",align:St};if(St==="|")return{type:"separator",separator:"|"};if(St===":")return{type:"separator",separator:":"};throw new I("Unknown column alignment: "+St,Ze)}),be={cols:re,hskipBeforeAndAfter:!0};return tu(f.parser,be,ru(f.envName))},htmlBuilder:gA,mathmlBuilder:JA}),Ga({type:"array",names:["matrix","pmatrix","bmatrix","Bmatrix","vmatrix","Vmatrix"],props:{numArgs:0},handler:function(f){var v={matrix:null,pmatrix:["(",")"],bmatrix:["[","]"],Bmatrix:["\\{","\\}"],vmatrix:["|","|"],Vmatrix:["\\Vert","\\Vert"]}[f.envName],x={hskipBeforeAndAfter:!1},Q=tu(f.parser,x,ru(f.envName));return v?{type:"leftright",mode:f.mode,body:[Q],left:v[0],right:v[1],rightColor:void 0}:Q},htmlBuilder:gA,mathmlBuilder:JA}),Ga({type:"array",names:["smallmatrix"],props:{numArgs:0},handler:function(f){var v={arraystretch:.5},x=tu(f.parser,v,"script");return x.colSeparationType="small",x},htmlBuilder:gA,mathmlBuilder:JA}),Ga({type:"array",names:["subarray"],props:{numArgs:1},handler:function(f,v){var x=Ao(v[0]),Q=x?[v[0]]:hi(v[0],"ordgroup").body,re=Q.map(function(Ze){var nt=uA(Ze),St=nt.text;if("lc".indexOf(St)!==-1)return{type:"align",align:St};throw new I("Unknown column alignment: "+St,Ze)});if(re.length>1)throw new I("{subarray} can contain only one column");var be={cols:re,hskipBeforeAndAfter:!1,arraystretch:.5};if(be=tu(f.parser,be,"script"),be.body[0].length>1)throw new I("{subarray} can contain only one column");return be},htmlBuilder:gA,mathmlBuilder:JA}),Ga({type:"array",names:["cases","dcases"],props:{numArgs:0},handler:function(f){var v={arraystretch:1.2,cols:[{type:"align",align:"l",pregap:0,postgap:1},{type:"align",align:"l",pregap:0,postgap:0}]},x=tu(f.parser,v,ru(f.envName));return{type:"leftright",mode:f.mode,body:[x],left:"\\{",right:".",rightColor:void 0}},htmlBuilder:gA,mathmlBuilder:JA}),Ga({type:"array",names:["aligned"],props:{numArgs:0},handler:r0,htmlBuilder:gA,mathmlBuilder:JA}),Ga({type:"array",names:["gathered"],props:{numArgs:0},handler:function(f){var v={cols:[{type:"align",align:"c"}],addJot:!0};return tu(f.parser,v,"display")},htmlBuilder:gA,mathmlBuilder:JA}),Ga({type:"array",names:["alignedat"],props:{numArgs:1},handler:r0,htmlBuilder:gA,mathmlBuilder:JA}),In({type:"text",names:["\\hline","\\hdashline"],props:{numArgs:0,allowedInText:!0,allowedInMath:!0},handler:function(f,v){throw new I(f.funcName+" valid only within array environment")}});var q0=Z0,Fu=q0;In({type:"environment",names:["\\begin","\\end"],props:{numArgs:1,argTypes:["text"]},handler:function(f,v){var x=f.parser,Q=f.funcName,re=v[0];if(re.type!=="ordgroup")throw new I("Invalid environment name",re);for(var be="",Ze=0;Ze<re.body.length;++Ze)be+=hi(re.body[Ze],"textord").text;if(Q==="\\begin"){if(!Fu.hasOwnProperty(be))throw new I("No such environment: "+be,re);var nt=Fu[be],St=x.parseArguments("\\begin{"+be+"}",nt),Jt=St.args,dr=St.optArgs,Or={mode:x.mode,envName:be,parser:x},on=nt.handler(Or,Jt,dr);x.expect("\\end",!1);var tn=x.nextToken,Fn=hi(x.parseFunction(),"environment");if(Fn.name!==be)throw new I("Mismatch: \\begin{"+be+"} matched by \\end{"+Fn.name+"}",tn);return on}return{type:"environment",mode:x.mode,name:be,nameGroup:re}}});var n0=Rr.makeSpan;function i0(Ee,f){var v=Ms(Ee.body,f,!0);return n0([Ee.mclass],v,f)}function Ic(Ee,f){var v,x=Za(Ee.body,f);return Ee.mclass==="minner"?gn.newDocumentFragment(x):(Ee.mclass==="mord"?Ee.isCharacterBox?(v=x[0],v.type="mi"):v=new gn.MathNode("mi",x):(Ee.isCharacterBox?(v=x[0],v.type="mo"):v=new gn.MathNode("mo",x),Ee.mclass==="mbin"?(v.attributes.lspace="0.22em",v.attributes.rspace="0.22em"):Ee.mclass==="mpunct"?(v.attributes.lspace="0em",v.attributes.rspace="0.17em"):(Ee.mclass==="mopen"||Ee.mclass==="mclose")&&(v.attributes.lspace="0em",v.attributes.rspace="0em")),v)}In({type:"mclass",names:["\\mathord","\\mathbin","\\mathrel","\\mathopen","\\mathclose","\\mathpunct","\\mathinner"],props:{numArgs:1},handler:function(f,v){var x=f.parser,Q=f.funcName,re=v[0];return{type:"mclass",mode:x.mode,mclass:"m"+Q.substr(5),body:Rs(re),isCharacterBox:P.isCharacterBox(re)}},htmlBuilder:i0,mathmlBuilder:Ic});var Pl=function(f){var v=f.type==="ordgroup"&&f.body.length?f.body[0]:f;return v.type==="atom"&&(v.family==="bin"||v.family==="rel")?"m"+v.family:"mord"};In({type:"mclass",names:["\\@binrel"],props:{numArgs:2},handler:function(f,v){var x=f.parser;return{type:"mclass",mode:x.mode,mclass:Pl(v[0]),body:[v[1]],isCharacterBox:P.isCharacterBox(v[1])}}}),In({type:"mclass",names:["\\stackrel","\\overset","\\underset"],props:{numArgs:2},handler:function(f,v){var x=f.parser,Q=f.funcName,re=v[1],be=v[0],Ze;Q!=="\\stackrel"?Ze=Pl(re):Ze="mrel";var nt={type:"op",mode:re.mode,limits:!0,alwaysHandleSupSub:!0,parentIsSupSub:!1,symbol:!1,suppressBaseShift:Q!=="\\stackrel",body:Rs(re)},St={type:"supsub",mode:be.mode,base:nt,sup:Q==="\\underset"?null:be,sub:Q==="\\underset"?be:null};return{type:"mclass",mode:x.mode,mclass:Ze,body:[St],isCharacterBox:P.isCharacterBox(St)}},htmlBuilder:i0,mathmlBuilder:Ic});var ss=function(f,v){var x=f.font,Q=v.withFont(x);return Si(f.body,Q)},qo=function(f,v){var x=f.font,Q=v.withFont(x);return gi(f.body,Q)},mA={"\\Bbb":"\\mathbb","\\bold":"\\mathbf","\\frak":"\\mathfrak","\\bm":"\\boldsymbol"};In({type:"font",names:["\\mathrm","\\mathit","\\mathbf","\\mathnormal","\\mathbb","\\mathcal","\\mathfrak","\\mathscr","\\mathsf","\\mathtt","\\Bbb","\\bold","\\frak"],props:{numArgs:1,greediness:2},handler:function(f,v){var x=f.parser,Q=f.funcName,re=v[0],be=Q;return be in mA&&(be=mA[be]),{type:"font",mode:x.mode,font:be.slice(1),body:re}},htmlBuilder:ss,mathmlBuilder:qo}),In({type:"mclass",names:["\\boldsymbol","\\bm"],props:{numArgs:1,greediness:2},handler:function(f,v){var x=f.parser,Q=v[0],re=P.isCharacterBox(Q);return{type:"mclass",mode:x.mode,mclass:Pl(Q),body:[{type:"font",mode:x.mode,font:"boldsymbol",body:Q}],isCharacterBox:re}}}),In({type:"font",names:["\\rm","\\sf","\\tt","\\bf","\\it"],props:{numArgs:0,allowedInText:!0},handler:function(f,v){var x=f.parser,Q=f.funcName,re=f.breakOnTokenText,be=x.mode,Ze=x.parseExpression(!0,re),nt="math"+Q.slice(1);return{type:"font",mode:be,font:nt,body:{type:"ordgroup",mode:x.mode,body:Ze}}},htmlBuilder:ss,mathmlBuilder:qo});var X0=function(f,v){var x=v;return f==="display"?x=x.id>=z.SCRIPT.id?x.text():z.DISPLAY:f==="text"&&x.size===z.DISPLAY.size?x=z.TEXT:f==="script"?x=z.SCRIPT:f==="scriptscript"&&(x=z.SCRIPTSCRIPT),x},kA=function(f,v){var x=X0(f.size,v.style),Q=x.fracNum(),re=x.fracDen(),be;be=v.havingStyle(Q);var Ze=Si(f.numer,be,v);if(f.continued){var nt=8.5/v.fontMetrics().ptPerEm,St=3.5/v.fontMetrics().ptPerEm;Ze.height=Ze.height<nt?nt:Ze.height,Ze.depth=Ze.depth<St?St:Ze.depth}be=v.havingStyle(re);var Jt=Si(f.denom,be,v),dr,Or,on;f.hasBarLine?(f.barSize?(Or=ji(f.barSize,v),dr=Rr.makeLineSpan("frac-line",v,Or)):dr=Rr.makeLineSpan("frac-line",v),Or=dr.height,on=dr.height):(dr=null,Or=0,on=v.fontMetrics().defaultRuleThickness);var tn,Fn,$n;x.size===z.DISPLAY.size||f.size==="display"?(tn=v.fontMetrics().num1,Or>0?Fn=3*on:Fn=7*on,$n=v.fontMetrics().denom1):(Or>0?(tn=v.fontMetrics().num2,Fn=on):(tn=v.fontMetrics().num3,Fn=3*on),$n=v.fontMetrics().denom2);var Zn;if(dr){var Oi=v.fontMetrics().axisHeight;tn-Ze.depth-(Oi+.5*Or)<Fn&&(tn+=Fn-(tn-Ze.depth-(Oi+.5*Or))),Oi-.5*Or-(Jt.height-$n)<Fn&&($n+=Fn-(Oi-.5*Or-(Jt.height-$n)));var Qs=-(Oi-.5*Or);Zn=Rr.makeVList({positionType:"individualShift",children:[{type:"elem",elem:Jt,shift:$n},{type:"elem",elem:dr,shift:Qs},{type:"elem",elem:Ze,shift:-tn}]},v)}else{var yi=tn-Ze.depth-(Jt.height-$n);yi<Fn&&(tn+=.5*(Fn-yi),$n+=.5*(Fn-yi)),Zn=Rr.makeVList({positionType:"individualShift",children:[{type:"elem",elem:Jt,shift:$n},{type:"elem",elem:Ze,shift:-tn}]},v)}be=v.havingStyle(x),Zn.height*=be.sizeMultiplier/v.sizeMultiplier,Zn.depth*=be.sizeMultiplier/v.sizeMultiplier;var xs;x.size===z.DISPLAY.size?xs=v.fontMetrics().delim1:xs=v.fontMetrics().delim2;var zs,Gs;return f.leftDelim==null?zs=Ca(v,["mopen"]):zs=xo.customSizedDelim(f.leftDelim,xs,!0,v.havingStyle(x),f.mode,["mopen"]),f.continued?Gs=Rr.makeSpan([]):f.rightDelim==null?Gs=Ca(v,["mclose"]):Gs=xo.customSizedDelim(f.rightDelim,xs,!0,v.havingStyle(x),f.mode,["mclose"]),Rr.makeSpan(["mord"].concat(be.sizingClasses(v)),[zs,Rr.makeSpan(["mfrac"],[Zn]),Gs],v)},Ol=function(f,v){var x=new gn.MathNode("mfrac",[gi(f.numer,v),gi(f.denom,v)]);if(!f.hasBarLine)x.setAttribute("linethickness","0px");else if(f.barSize){var Q=ji(f.barSize,v);x.setAttribute("linethickness",Q+"em")}var re=X0(f.size,v.style);if(re.size!==v.style.size){x=new gn.MathNode("mstyle",[x]);var be=re.size===z.DISPLAY.size?"true":"false";x.setAttribute("displaystyle",be),x.setAttribute("scriptlevel","0")}if(f.leftDelim!=null||f.rightDelim!=null){var Ze=[];if(f.leftDelim!=null){var nt=new gn.MathNode("mo",[new gn.TextNode(f.leftDelim.replace("\\",""))]);nt.setAttribute("fence","true"),Ze.push(nt)}if(Ze.push(x),f.rightDelim!=null){var St=new gn.MathNode("mo",[new gn.TextNode(f.rightDelim.replace("\\",""))]);St.setAttribute("fence","true"),Ze.push(St)}return ga(Ze)}return x};In({type:"genfrac",names:["\\cfrac","\\dfrac","\\frac","\\tfrac","\\dbinom","\\binom","\\tbinom","\\\\atopfrac","\\\\bracefrac","\\\\brackfrac"],props:{numArgs:2,greediness:2},handler:function(f,v){var x=f.parser,Q=f.funcName,re=v[0],be=v[1],Ze,nt=null,St=null,Jt="auto";switch(Q){case"\\cfrac":case"\\dfrac":case"\\frac":case"\\tfrac":Ze=!0;break;case"\\\\atopfrac":Ze=!1;break;case"\\dbinom":case"\\binom":case"\\tbinom":Ze=!1,nt="(",St=")";break;case"\\\\bracefrac":Ze=!1,nt="\\{",St="\\}";break;case"\\\\brackfrac":Ze=!1,nt="[",St="]";break;default:throw new Error("Unrecognized genfrac command")}switch(Q){case"\\cfrac":case"\\dfrac":case"\\dbinom":Jt="display";break;case"\\tfrac":case"\\tbinom":Jt="text";break}return{type:"genfrac",mode:x.mode,continued:Q==="\\cfrac",numer:re,denom:be,hasBarLine:Ze,leftDelim:nt,rightDelim:St,size:Jt,barSize:null}},htmlBuilder:kA,mathmlBuilder:Ol}),In({type:"infix",names:["\\over","\\choose","\\atop","\\brace","\\brack"],props:{numArgs:0,infix:!0},handler:function(f){var v=f.parser,x=f.funcName,Q=f.token,re;switch(x){case"\\over":re="\\frac";break;case"\\choose":re="\\binom";break;case"\\atop":re="\\\\atopfrac";break;case"\\brace":re="\\\\bracefrac";break;case"\\brack":re="\\\\brackfrac";break;default:throw new Error("Unrecognized infix genfrac command")}return{type:"infix",mode:v.mode,replaceWith:re,token:Q}}});var Qa=["display","text","script","scriptscript"],to=function(f){var v=null;return f.length>0&&(v=f,v=v==="."?null:v),v};In({type:"genfrac",names:["\\genfrac"],props:{numArgs:6,greediness:6,argTypes:["math","math","size","text","math","math"]},handler:function(f,v){var x=f.parser,Q=v[4],re=v[5],be=Ws(v[0],"atom");be&&(be=Pa(v[0],"open"));var Ze=be?to(be.text):null,nt=Ws(v[1],"atom");nt&&(nt=Pa(v[1],"close"));var St=nt?to(nt.text):null,Jt=hi(v[2],"size"),dr,Or=null;Jt.isBlank?dr=!0:(Or=Jt.value,dr=Or.number>0);var on="auto",tn=Ws(v[3],"ordgroup");if(tn){if(tn.body.length>0){var Fn=hi(tn.body[0],"textord");on=Qa[Number(Fn.text)]}}else tn=hi(v[3],"textord"),on=Qa[Number(tn.text)];return{type:"genfrac",mode:x.mode,numer:Q,denom:re,continued:!1,hasBarLine:dr,barSize:Or,leftDelim:Ze,rightDelim:St,size:on}},htmlBuilder:kA,mathmlBuilder:Ol}),In({type:"infix",names:["\\above"],props:{numArgs:1,argTypes:["size"],infix:!0},handler:function(f,v){var x=f.parser,Q=f.funcName,re=f.token;return{type:"infix",mode:x.mode,replaceWith:"\\\\abovefrac",size:hi(v[0],"size").value,token:re}}}),In({type:"genfrac",names:["\\\\abovefrac"],props:{numArgs:3,argTypes:["math","size","math"]},handler:function(f,v){var x=f.parser,Q=f.funcName,re=v[0],be=K(hi(v[1],"infix").size),Ze=v[2],nt=be.number>0;return{type:"genfrac",mode:x.mode,numer:re,denom:Ze,continued:!1,hasBarLine:nt,barSize:be,leftDelim:null,rightDelim:null,size:"auto"}},htmlBuilder:kA,mathmlBuilder:Ol});var Tc=function(f,v){var x=v.style,Q,re,be=Ws(f,"supsub");be?(Q=be.sup?Si(be.sup,v.havingStyle(x.sup()),v):Si(be.sub,v.havingStyle(x.sub()),v),re=hi(be.base,"horizBrace")):re=hi(f,"horizBrace");var Ze=Si(re.base,v.havingBaseStyle(z.DISPLAY)),nt=Ki.svgSpan(re,v),St;if(re.isOver?(St=Rr.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:Ze},{type:"kern",size:.1},{type:"elem",elem:nt}]},v),St.children[0].children[0].children[1].classes.push("svg-align")):(St=Rr.makeVList({positionType:"bottom",positionData:Ze.depth+.1+nt.height,children:[{type:"elem",elem:nt},{type:"kern",size:.1},{type:"elem",elem:Ze}]},v),St.children[0].children[0].children[0].classes.push("svg-align")),Q){var Jt=Rr.makeSpan(["mord",re.isOver?"mover":"munder"],[St],v);re.isOver?St=Rr.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:Jt},{type:"kern",size:.2},{type:"elem",elem:Q}]},v):St=Rr.makeVList({positionType:"bottom",positionData:Jt.depth+.2+Q.height+Q.depth,children:[{type:"elem",elem:Q},{type:"kern",size:.2},{type:"elem",elem:Jt}]},v)}return Rr.makeSpan(["mord",re.isOver?"mover":"munder"],[St],v)},Zr=function(f,v){var x=Ki.mathMLnode(f.label);return new gn.MathNode(f.isOver?"mover":"munder",[gi(f.base,v),x])};In({type:"horizBrace",names:["\\overbrace","\\underbrace"],props:{numArgs:1},handler:function(f,v){var x=f.parser,Q=f.funcName;return{type:"horizBrace",mode:x.mode,label:Q,isOver:/^\\over/.test(Q),base:v[0]}},htmlBuilder:Tc,mathmlBuilder:Zr}),In({type:"href",names:["\\href"],props:{numArgs:2,argTypes:["url","original"],allowedInText:!0},handler:function(f,v){var x=f.parser,Q=v[1],re=hi(v[0],"url").url;return x.settings.isTrusted({command:"\\href",url:re})?{type:"href",mode:x.mode,href:re,body:Rs(Q)}:x.formatUnsupportedCmd("\\href")},htmlBuilder:function(f,v){var x=Ms(f.body,v,!1);return Rr.makeAnchor(f.href,[],x,v)},mathmlBuilder:function(f,v){var x=wo(f.body,v);return x instanceof Na||(x=new Na("mrow",[x])),x.setAttribute("href",f.href),x}}),In({type:"href",names:["\\url"],props:{numArgs:1,argTypes:["url"],allowedInText:!0},handler:function(f,v){var x=f.parser,Q=hi(v[0],"url").url;if(!x.settings.isTrusted({command:"\\url",url:Q}))return x.formatUnsupportedCmd("\\url");for(var re=[],be=0;be<Q.length;be++){var Ze=Q[be];Ze==="~"&&(Ze="\\textasciitilde"),re.push({type:"textord",mode:"text",text:Ze})}var nt={type:"text",mode:x.mode,font:"\\texttt",body:re};return{type:"href",mode:x.mode,href:Q,body:Rs(nt)}}}),In({type:"htmlmathml",names:["\\html@mathml"],props:{numArgs:2,allowedInText:!0},handler:function(f,v){var x=f.parser;return{type:"htmlmathml",mode:x.mode,html:Rs(v[0]),mathml:Rs(v[1])}},htmlBuilder:function(f,v){var x=Ms(f.html,v,!1);return Rr.makeFragment(x)},mathmlBuilder:function(f,v){return wo(f.mathml,v)}});var RA=function(f){if(/^[-+]? *(\d+(\.\d*)?|\.\d+)$/.test(f))return{number:+f,unit:"bp"};var v=/([-+]?) *(\d+(?:\.\d*)?|\.\d+) *([a-z]{2})/.exec(f);if(!v)throw new I("Invalid size: '"+f+"' in \\includegraphics");var x={number:+(v[1]+v[2]),unit:v[3]};if(!ps(x))throw new I("Invalid unit: '"+x.unit+"' in \\includegraphics.");return x};In({type:"includegraphics",names:["\\includegraphics"],props:{numArgs:1,numOptionalArgs:1,argTypes:["raw","url"],allowedInText:!1},handler:function(f,v,x){var Q=f.parser,re={number:0,unit:"em"},be={number:.9,unit:"em"},Ze={number:0,unit:"em"},nt="";if(x[0])for(var St=hi(x[0],"raw").string,Jt=St.split(","),dr=0;dr<Jt.length;dr++){var Or=Jt[dr].split("=");if(Or.length===2){var on=Or[1].trim();switch(Or[0].trim()){case"alt":nt=on;break;case"width":re=RA(on);break;case"height":be=RA(on);break;case"totalheight":Ze=RA(on);break;default:throw new I("Invalid key: '"+Or[0]+"' in \\includegraphics.")}}}var tn=hi(v[0],"url").url;return nt===""&&(nt=tn,nt=nt.replace(/^.*[\\/]/,""),nt=nt.substring(0,nt.lastIndexOf("."))),Q.settings.isTrusted({command:"\\includegraphics",url:tn})?{type:"includegraphics",mode:Q.mode,alt:nt,width:re,height:be,totalheight:Ze,src:tn}:Q.formatUnsupportedCmd("\\includegraphics")},htmlBuilder:function(f,v){var x=ji(f.height,v),Q=0;f.totalheight.number>0&&(Q=ji(f.totalheight,v)-x,Q=Number(Q.toFixed(2)));var re=0;f.width.number>0&&(re=ji(f.width,v));var be={height:x+Q+"em"};re>0&&(be.width=re+"em"),Q>0&&(be.verticalAlign=-Q+"em");var Ze=new We(f.src,f.alt,be);return Ze.height=x,Ze.depth=Q,Ze},mathmlBuilder:function(f,v){var x=new gn.MathNode("mglyph",[]);x.setAttribute("alt",f.alt);var Q=ji(f.height,v),re=0;if(f.totalheight.number>0&&(re=ji(f.totalheight,v)-Q,re=re.toFixed(2),x.setAttribute("valign","-"+re+"em")),x.setAttribute("height",Q+re+"em"),f.width.number>0){var be=ji(f.width,v);x.setAttribute("width",be+"em")}return x.setAttribute("src",f.src),x}}),In({type:"kern",names:["\\kern","\\mkern","\\hskip","\\mskip"],props:{numArgs:1,argTypes:["size"],allowedInText:!0},handler:function(f,v){var x=f.parser,Q=f.funcName,re=hi(v[0],"size");if(x.settings.strict){var be=Q[1]==="m",Ze=re.value.unit==="mu";be?(Ze||x.settings.reportNonstrict("mathVsTextUnits","LaTeX's "+Q+" supports only mu units, "+("not "+re.value.unit+" units")),x.mode!=="math"&&x.settings.reportNonstrict("mathVsTextUnits","LaTeX's "+Q+" works only in math mode")):Ze&&x.settings.reportNonstrict("mathVsTextUnits","LaTeX's "+Q+" doesn't support mu units")}return{type:"kern",mode:x.mode,dimension:re.value}},htmlBuilder:function(f,v){return Rr.makeGlue(f.dimension,v)},mathmlBuilder:function(f,v){var x=ji(f.dimension,v);return new gn.SpaceNode(x)}}),In({type:"lap",names:["\\mathllap","\\mathrlap","\\mathclap"],props:{numArgs:1,allowedInText:!0},handler:function(f,v){var x=f.parser,Q=f.funcName,re=v[0];return{type:"lap",mode:x.mode,alignment:Q.slice(5),body:re}},htmlBuilder:function(f,v){var x;f.alignment==="clap"?(x=Rr.makeSpan([],[Si(f.body,v)]),x=Rr.makeSpan(["inner"],[x],v)):x=Rr.makeSpan(["inner"],[Si(f.body,v)]);var Q=Rr.makeSpan(["fix"],[]),re=Rr.makeSpan([f.alignment],[x,Q],v),be=Rr.makeSpan(["strut"]);return be.style.height=re.height+re.depth+"em",be.style.verticalAlign=-re.depth+"em",re.children.unshift(be),re=Rr.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:re}]},v),Rr.makeSpan(["mord"],[re],v)},mathmlBuilder:function(f,v){var x=new gn.MathNode("mpadded",[gi(f.body,v)]);if(f.alignment!=="rlap"){var Q=f.alignment==="llap"?"-1":"-0.5";x.setAttribute("lspace",Q+"width")}return x.setAttribute("width","0px"),x}}),In({type:"styling",names:["\\(","$"],props:{numArgs:0,allowedInText:!0,allowedInMath:!1},handler:function(f,v){var x=f.funcName,Q=f.parser,re=Q.mode;Q.switchMode("math");var be=x==="\\("?"\\)":"$",Ze=Q.parseExpression(!1,be);return Q.expect(be),Q.switchMode(re),{type:"styling",mode:Q.mode,style:"text",body:Ze}}}),In({type:"text",names:["\\)","\\]"],props:{numArgs:0,allowedInText:!0,allowedInMath:!1},handler:function(f,v){throw new I("Mismatched "+f.funcName)}});var nu=function(f,v){switch(v.style.size){case z.DISPLAY.size:return f.display;case z.TEXT.size:return f.text;case z.SCRIPT.size:return f.script;case z.SCRIPTSCRIPT.size:return f.scriptscript;default:return f.text}};In({type:"mathchoice",names:["\\mathchoice"],props:{numArgs:4},handler:function(f,v){var x=f.parser;return{type:"mathchoice",mode:x.mode,display:Rs(v[0]),text:Rs(v[1]),script:Rs(v[2]),scriptscript:Rs(v[3])}},htmlBuilder:function(f,v){var x=nu(f,v),Q=Ms(x,v,!1);return Rr.makeFragment(Q)},mathmlBuilder:function(f,v){var x=nu(f,v);return wo(x,v)}});var fa=function(f,v,x,Q,re,be,Ze){f=Rr.makeSpan([],[f]);var nt,St;if(v){var Jt=Si(v,Q.havingStyle(re.sup()),Q);St={elem:Jt,kern:Math.max(Q.fontMetrics().bigOpSpacing1,Q.fontMetrics().bigOpSpacing3-Jt.depth)}}if(x){var dr=Si(x,Q.havingStyle(re.sub()),Q);nt={elem:dr,kern:Math.max(Q.fontMetrics().bigOpSpacing2,Q.fontMetrics().bigOpSpacing4-dr.height)}}var Or;if(St&&nt){var on=Q.fontMetrics().bigOpSpacing5+nt.elem.height+nt.elem.depth+nt.kern+f.depth+Ze;Or=Rr.makeVList({positionType:"bottom",positionData:on,children:[{type:"kern",size:Q.fontMetrics().bigOpSpacing5},{type:"elem",elem:nt.elem,marginLeft:-be+"em"},{type:"kern",size:nt.kern},{type:"elem",elem:f},{type:"kern",size:St.kern},{type:"elem",elem:St.elem,marginLeft:be+"em"},{type:"kern",size:Q.fontMetrics().bigOpSpacing5}]},Q)}else if(nt){var tn=f.height-Ze;Or=Rr.makeVList({positionType:"top",positionData:tn,children:[{type:"kern",size:Q.fontMetrics().bigOpSpacing5},{type:"elem",elem:nt.elem,marginLeft:-be+"em"},{type:"kern",size:nt.kern},{type:"elem",elem:f}]},Q)}else if(St){var Fn=f.depth+Ze;Or=Rr.makeVList({positionType:"bottom",positionData:Fn,children:[{type:"elem",elem:f},{type:"kern",size:St.kern},{type:"elem",elem:St.elem,marginLeft:be+"em"},{type:"kern",size:Q.fontMetrics().bigOpSpacing5}]},Q)}else return f;return Rr.makeSpan(["mop","op-limits"],[Or],Q)},iu=["\\smallint"],No=function(f,v){var x,Q,re=!1,be,Ze=Ws(f,"supsub");Ze?(x=Ze.sup,Q=Ze.sub,be=hi(Ze.base,"op"),re=!0):be=hi(f,"op");var nt=v.style,St=!1;nt.size===z.DISPLAY.size&&be.symbol&&!P.contains(iu,be.name)&&(St=!0);var Jt;if(be.symbol){var dr=St?"Size2-Regular":"Size1-Regular",Or="";if((be.name==="\\oiint"||be.name==="\\oiiint")&&(Or=be.name.substr(1),be.name=Or==="oiint"?"\\iint":"\\iiint"),Jt=Rr.makeSymbol(be.name,dr,"math",v,["mop","op-symbol",St?"large-op":"small-op"]),Or.length>0){var on=Jt.italic,tn=Rr.staticSvg(Or+"Size"+(St?"2":"1"),v);Jt=Rr.makeVList({positionType:"individualShift",children:[{type:"elem",elem:Jt,shift:0},{type:"elem",elem:tn,shift:St?.08:0}]},v),be.name="\\"+Or,Jt.classes.unshift("mop"),Jt.italic=on}}else if(be.body){var Fn=Ms(be.body,v,!0);Fn.length===1&&Fn[0]instanceof Se?(Jt=Fn[0],Jt.classes[0]="mop"):Jt=Rr.makeSpan(["mop"],Rr.tryCombineChars(Fn),v)}else{for(var $n=[],Zn=1;Zn<be.name.length;Zn++)$n.push(Rr.mathsym(be.name[Zn],be.mode,v));Jt=Rr.makeSpan(["mop"],$n,v)}var yi=0,Oi=0;return(Jt instanceof Se||be.name==="\\oiint"||be.name==="\\oiiint")&&!be.suppressBaseShift&&(yi=(Jt.height-Jt.depth)/2-v.fontMetrics().axisHeight,Oi=Jt.italic),re?fa(Jt,x,Q,v,nt,Oi,yi):(yi&&(Jt.style.position="relative",Jt.style.top=yi+"em"),Jt)},Mo=function(f,v){var x;if(f.symbol)x=new Na("mo",[ha(f.name,f.mode)]),P.contains(iu,f.name)&&x.setAttribute("largeop","false");else if(f.body)x=new Na("mo",Za(f.body,v));else{x=new Na("mi",[new oi(f.name.slice(1))]);var Q=new Na("mo",[ha("\u2061","text")]);f.parentIsSupSub?x=new Na("mo",[x,Q]):x=TA([x,Q])}return x},Jh={"\u220F":"\\prod","\u2210":"\\coprod","\u2211":"\\sum","\u22C0":"\\bigwedge","\u22C1":"\\bigvee","\u22C2":"\\bigcap","\u22C3":"\\bigcup","\u2A00":"\\bigodot","\u2A01":"\\bigoplus","\u2A02":"\\bigotimes","\u2A04":"\\biguplus","\u2A06":"\\bigsqcup"};In({type:"op",names:["\\coprod","\\bigvee","\\bigwedge","\\biguplus","\\bigcap","\\bigcup","\\intop","\\prod","\\sum","\\bigotimes","\\bigoplus","\\bigodot","\\bigsqcup","\\smallint","\u220F","\u2210","\u2211","\u22C0","\u22C1","\u22C2","\u22C3","\u2A00","\u2A01","\u2A02","\u2A04","\u2A06"],props:{numArgs:0},handler:function(f,v){var x=f.parser,Q=f.funcName,re=Q;return re.length===1&&(re=Jh[re]),{type:"op",mode:x.mode,limits:!0,parentIsSupSub:!1,symbol:!0,name:re}},htmlBuilder:No,mathmlBuilder:Mo}),In({type:"op",names:["\\mathop"],props:{numArgs:1},handler:function(f,v){var x=f.parser,Q=v[0];return{type:"op",mode:x.mode,limits:!1,parentIsSupSub:!1,symbol:!1,body:Rs(Q)}},htmlBuilder:No,mathmlBuilder:Mo});var su={"\u222B":"\\int","\u222C":"\\iint","\u222D":"\\iiint","\u222E":"\\oint","\u222F":"\\oiint","\u2230":"\\oiiint"};In({type:"op",names:["\\arcsin","\\arccos","\\arctan","\\arctg","\\arcctg","\\arg","\\ch","\\cos","\\cosec","\\cosh","\\cot","\\cotg","\\coth","\\csc","\\ctg","\\cth","\\deg","\\dim","\\exp","\\hom","\\ker","\\lg","\\ln","\\log","\\sec","\\sin","\\sinh","\\sh","\\tan","\\tanh","\\tg","\\th"],props:{numArgs:0},handler:function(f){var v=f.parser,x=f.funcName;return{type:"op",mode:v.mode,limits:!1,parentIsSupSub:!1,symbol:!1,name:x}},htmlBuilder:No,mathmlBuilder:Mo}),In({type:"op",names:["\\det","\\gcd","\\inf","\\lim","\\max","\\min","\\Pr","\\sup"],props:{numArgs:0},handler:function(f){var v=f.parser,x=f.funcName;return{type:"op",mode:v.mode,limits:!0,parentIsSupSub:!1,symbol:!1,name:x}},htmlBuilder:No,mathmlBuilder:Mo}),In({type:"op",names:["\\int","\\iint","\\iiint","\\oint","\\oiint","\\oiiint","\u222B","\u222C","\u222D","\u222E","\u222F","\u2230"],props:{numArgs:0},handler:function(f){var v=f.parser,x=f.funcName,Q=x;return Q.length===1&&(Q=su[Q]),{type:"op",mode:v.mode,limits:!1,parentIsSupSub:!1,symbol:!0,name:Q}},htmlBuilder:No,mathmlBuilder:Mo});var tc=function(f,v){var x,Q,re=!1,be,Ze=Ws(f,"supsub");Ze?(x=Ze.sup,Q=Ze.sub,be=hi(Ze.base,"operatorname"),re=!0):be=hi(f,"operatorname");var nt;if(be.body.length>0){for(var St=be.body.map(function(on){var tn=on.text;return typeof tn=="string"?{type:"textord",mode:on.mode,text:tn}:on}),Jt=Ms(St,v.withFont("mathrm"),!0),dr=0;dr<Jt.length;dr++){var Or=Jt[dr];Or instanceof Se&&(Or.text=Or.text.replace(/\u2212/,"-").replace(/\u2217/,"*"))}nt=Rr.makeSpan(["mop"],Jt,v)}else nt=Rr.makeSpan(["mop"],[],v);return re?fa(nt,x,Q,v,v.style,0,0):nt},vA=function(f,v){for(var x=Za(f.body,v.withFont("mathrm")),Q=!0,re=0;re<x.length;re++){var be=x[re];if(!(be instanceof gn.SpaceNode))if(be instanceof gn.MathNode)switch(be.type){case"mi":case"mn":case"ms":case"mspace":case"mtext":break;case"mo":{var Ze=be.children[0];be.children.length===1&&Ze instanceof gn.TextNode?Ze.text=Ze.text.replace(/\u2212/,"-").replace(/\u2217/,"*"):Q=!1;break}default:Q=!1}else Q=!1}if(Q){var nt=x.map(function(dr){return dr.toText()}).join("");x=[new gn.TextNode(nt)]}var St=new gn.MathNode("mi",x);St.setAttribute("mathvariant","normal");var Jt=new gn.MathNode("mo",[ha("\u2061","text")]);return f.parentIsSupSub?new gn.MathNode("mo",[St,Jt]):gn.newDocumentFragment([St,Jt])};In({type:"operatorname",names:["\\operatorname","\\operatorname*"],props:{numArgs:1},handler:function(f,v){var x=f.parser,Q=f.funcName,re=v[0];return{type:"operatorname",mode:x.mode,body:Rs(re),alwaysHandleSupSub:Q==="\\operatorname*",limits:!1,parentIsSupSub:!1}},htmlBuilder:tc,mathmlBuilder:vA}),Ba({type:"ordgroup",htmlBuilder:function(f,v){return f.semisimple?Rr.makeFragment(Ms(f.body,v,!1)):Rr.makeSpan(["mord"],Ms(f.body,v,!0),v)},mathmlBuilder:function(f,v){return wo(f.body,v,!0)}}),In({type:"overline",names:["\\overline"],props:{numArgs:1},handler:function(f,v){var x=f.parser,Q=v[0];return{type:"overline",mode:x.mode,body:Q}},htmlBuilder:function(f,v){var x=Si(f.body,v.havingCrampedStyle()),Q=Rr.makeLineSpan("overline-line",v),re=v.fontMetrics().defaultRuleThickness,be=Rr.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:x},{type:"kern",size:3*re},{type:"elem",elem:Q},{type:"kern",size:re}]},v);return Rr.makeSpan(["mord","overline"],[be],v)},mathmlBuilder:function(f,v){var x=new gn.MathNode("mo",[new gn.TextNode("\u203E")]);x.setAttribute("stretchy","true");var Q=new gn.MathNode("mover",[gi(f.body,v),x]);return Q.setAttribute("accent","true"),Q}}),In({type:"phantom",names:["\\phantom"],props:{numArgs:1,allowedInText:!0},handler:function(f,v){var x=f.parser,Q=v[0];return{type:"phantom",mode:x.mode,body:Rs(Q)}},htmlBuilder:function(f,v){var x=Ms(f.body,v.withPhantom(),!1);return Rr.makeFragment(x)},mathmlBuilder:function(f,v){var x=Za(f.body,v);return new gn.MathNode("mphantom",x)}}),In({type:"hphantom",names:["\\hphantom"],props:{numArgs:1,allowedInText:!0},handler:function(f,v){var x=f.parser,Q=v[0];return{type:"hphantom",mode:x.mode,body:Q}},htmlBuilder:function(f,v){var x=Rr.makeSpan([],[Si(f.body,v.withPhantom())]);if(x.height=0,x.depth=0,x.children)for(var Q=0;Q<x.children.length;Q++)x.children[Q].height=0,x.children[Q].depth=0;return x=Rr.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:x}]},v),Rr.makeSpan(["mord"],[x],v)},mathmlBuilder:function(f,v){var x=Za(Rs(f.body),v),Q=new gn.MathNode("mphantom",x),re=new gn.MathNode("mpadded",[Q]);return re.setAttribute("height","0px"),re.setAttribute("depth","0px"),re}}),In({type:"vphantom",names:["\\vphantom"],props:{numArgs:1,allowedInText:!0},handler:function(f,v){var x=f.parser,Q=v[0];return{type:"vphantom",mode:x.mode,body:Q}},htmlBuilder:function(f,v){var x=Rr.makeSpan(["inner"],[Si(f.body,v.withPhantom())]),Q=Rr.makeSpan(["fix"],[]);return Rr.makeSpan(["mord","rlap"],[x,Q],v)},mathmlBuilder:function(f,v){var x=Za(Rs(f.body),v),Q=new gn.MathNode("mphantom",x),re=new gn.MathNode("mpadded",[Q]);return re.setAttribute("width","0px"),re}}),In({type:"raisebox",names:["\\raisebox"],props:{numArgs:2,argTypes:["size","hbox"],allowedInText:!0},handler:function(f,v){var x=f.parser,Q=hi(v[0],"size").value,re=v[1];return{type:"raisebox",mode:x.mode,dy:Q,body:re}},htmlBuilder:function(f,v){var x=Si(f.body,v),Q=ji(f.dy,v);return Rr.makeVList({positionType:"shift",positionData:-Q,children:[{type:"elem",elem:x}]},v)},mathmlBuilder:function(f,v){var x=new gn.MathNode("mpadded",[gi(f.body,v)]),Q=f.dy.number+f.dy.unit;return x.setAttribute("voffset",Q),x}}),In({type:"rule",names:["\\rule"],props:{numArgs:2,numOptionalArgs:1,argTypes:["size","size","size"]},handler:function(f,v,x){var Q=f.parser,re=x[0],be=hi(v[0],"size"),Ze=hi(v[1],"size");return{type:"rule",mode:Q.mode,shift:re&&hi(re,"size").value,width:be.value,height:Ze.value}},htmlBuilder:function(f,v){var x=Rr.makeSpan(["mord","rule"],[],v),Q=ji(f.width,v),re=ji(f.height,v),be=f.shift?ji(f.shift,v):0;return x.style.borderRightWidth=Q+"em",x.style.borderTopWidth=re+"em",x.style.bottom=be+"em",x.width=Q,x.height=re+be,x.depth=-be,x.maxFontSize=re*1.125*v.sizeMultiplier,x},mathmlBuilder:function(f,v){var x=ji(f.width,v),Q=ji(f.height,v),re=f.shift?ji(f.shift,v):0,be=v.color&&v.getColor()||"black",Ze=new gn.MathNode("mspace");Ze.setAttribute("mathbackground",be),Ze.setAttribute("width",x+"em"),Ze.setAttribute("height",Q+"em");var nt=new gn.MathNode("mpadded",[Ze]);return re>=0?nt.setAttribute("height","+"+re+"em"):(nt.setAttribute("height",re+"em"),nt.setAttribute("depth","+"+-re+"em")),nt.setAttribute("voffset",re+"em"),nt}});function el(Ee,f,v){for(var x=Ms(Ee,f,!1),Q=f.sizeMultiplier/v.sizeMultiplier,re=0;re<x.length;re++){var be=x[re].classes.indexOf("sizing");be<0?Array.prototype.push.apply(x[re].classes,f.sizingClasses(v)):x[re].classes[be+1]==="reset-size"+f.size&&(x[re].classes[be+1]="reset-size"+v.size),x[re].height*=Q,x[re].depth*=Q}return Rr.makeFragment(x)}var ef=["\\tiny","\\sixptsize","\\scriptsize","\\footnotesize","\\small","\\normalsize","\\large","\\Large","\\LARGE","\\huge","\\Huge"],Nl=function(f,v){var x=v.havingSize(f.size);return el(f.body,x,v)};In({type:"sizing",names:ef,props:{numArgs:0,allowedInText:!0},handler:function(f,v){var x=f.breakOnTokenText,Q=f.funcName,re=f.parser,be=re.parseExpression(!1,x);return{type:"sizing",mode:re.mode,size:ef.indexOf(Q)+1,body:be}},htmlBuilder:Nl,mathmlBuilder:function(f,v){var x=v.havingSize(f.size),Q=Za(f.body,x),re=new gn.MathNode("mstyle",Q);return re.setAttribute("mathsize",x.sizeMultiplier+"em"),re}}),In({type:"smash",names:["\\smash"],props:{numArgs:1,numOptionalArgs:1,allowedInText:!0},handler:function(f,v,x){var Q=f.parser,re=!1,be=!1,Ze=x[0]&&hi(x[0],"ordgroup");if(Ze)for(var nt="",St=0;St<Ze.body.length;++St){var Jt=Ze.body[St];if(nt=Jt.text,nt==="t")re=!0;else if(nt==="b")be=!0;else{re=!1,be=!1;break}}else re=!0,be=!0;var dr=v[0];return{type:"smash",mode:Q.mode,body:dr,smashHeight:re,smashDepth:be}},htmlBuilder:function(f,v){var x=Rr.makeSpan([],[Si(f.body,v)]);if(!f.smashHeight&&!f.smashDepth)return x;if(f.smashHeight&&(x.height=0,x.children))for(var Q=0;Q<x.children.length;Q++)x.children[Q].height=0;if(f.smashDepth&&(x.depth=0,x.children))for(var re=0;re<x.children.length;re++)x.children[re].depth=0;var be=Rr.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:x}]},v);return Rr.makeSpan(["mord"],[be],v)},mathmlBuilder:function(f,v){var x=new gn.MathNode("mpadded",[gi(f.body,v)]);return f.smashHeight&&x.setAttribute("height","0px"),f.smashDepth&&x.setAttribute("depth","0px"),x}}),In({type:"sqrt",names:["\\sqrt"],props:{numArgs:1,numOptionalArgs:1},handler:function(f,v,x){var Q=f.parser,re=x[0],be=v[0];return{type:"sqrt",mode:Q.mode,body:be,index:re}},htmlBuilder:function(f,v){var x=Si(f.body,v.havingCrampedStyle());x.height===0&&(x.height=v.fontMetrics().xHeight),x=Rr.wrapFragment(x,v);var Q=v.fontMetrics(),re=Q.defaultRuleThickness,be=re;v.style.id<z.TEXT.id&&(be=v.fontMetrics().xHeight);var Ze=re+be/4,nt=x.height+x.depth+Ze+re,St=xo.sqrtImage(nt,v),Jt=St.span,dr=St.ruleWidth,Or=St.advanceWidth,on=Jt.height-dr;on>x.height+x.depth+Ze&&(Ze=(Ze+on-x.height-x.depth)/2);var tn=Jt.height-x.height-Ze-dr;x.style.paddingLeft=Or+"em";var Fn=Rr.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:x,wrapperClasses:["svg-align"]},{type:"kern",size:-(x.height+tn)},{type:"elem",elem:Jt},{type:"kern",size:dr}]},v);if(f.index){var $n=v.havingStyle(z.SCRIPTSCRIPT),Zn=Si(f.index,$n,v),yi=.6*(Fn.height-Fn.depth),Oi=Rr.makeVList({positionType:"shift",positionData:-yi,children:[{type:"elem",elem:Zn}]},v),Qs=Rr.makeSpan(["root"],[Oi]);return Rr.makeSpan(["mord","sqrt"],[Qs,Fn],v)}else return Rr.makeSpan(["mord","sqrt"],[Fn],v)},mathmlBuilder:function(f,v){var x=f.body,Q=f.index;return Q?new gn.MathNode("mroot",[gi(x,v),gi(Q,v)]):new gn.MathNode("msqrt",[gi(x,v)])}});var Qo={display:z.DISPLAY,text:z.TEXT,script:z.SCRIPT,scriptscript:z.SCRIPTSCRIPT};In({type:"styling",names:["\\displaystyle","\\textstyle","\\scriptstyle","\\scriptscriptstyle"],props:{numArgs:0,allowedInText:!0},handler:function(f,v){var x=f.breakOnTokenText,Q=f.funcName,re=f.parser,be=re.parseExpression(!0,x),Ze=Q.slice(1,Q.length-5);return{type:"styling",mode:re.mode,style:Ze,body:be}},htmlBuilder:function(f,v){var x=Qo[f.style],Q=v.havingStyle(x).withFont("");return el(f.body,Q,v)},mathmlBuilder:function(f,v){var x=Qo[f.style],Q=v.havingStyle(x),re=Za(f.body,Q),be=new gn.MathNode("mstyle",re),Ze={display:["0","true"],text:["0","false"],script:["1","false"],scriptscript:["2","false"]},nt=Ze[f.style];return be.setAttribute("scriptlevel",nt[0]),be.setAttribute("displaystyle",nt[1]),be}});var Xo=function(f,v){var x=f.base;if(x)if(x.type==="op"){var Q=x.limits&&(v.style.size===z.DISPLAY.size||x.alwaysHandleSupSub);return Q?No:null}else if(x.type==="operatorname"){var re=x.alwaysHandleSupSub&&(v.style.size===z.DISPLAY.size||x.limits);return re?tc:null}else{if(x.type==="accent")return P.isCharacterBox(x.base)?Nn:null;if(x.type==="horizBrace"){var be=!f.sub;return be===x.isOver?Tc:null}else return null}else return null};Ba({type:"supsub",htmlBuilder:function(f,v){var x=Xo(f,v);if(x)return x(f,v);var Q=f.base,re=f.sup,be=f.sub,Ze=Si(Q,v),nt,St,Jt=v.fontMetrics(),dr=0,Or=0,on=Q&&P.isCharacterBox(Q);if(re){var tn=v.havingStyle(v.style.sup());nt=Si(re,tn,v),on||(dr=Ze.height-tn.fontMetrics().supDrop*tn.sizeMultiplier/v.sizeMultiplier)}if(be){var Fn=v.havingStyle(v.style.sub());St=Si(be,Fn,v),on||(Or=Ze.depth+Fn.fontMetrics().subDrop*Fn.sizeMultiplier/v.sizeMultiplier)}var $n;v.style===z.DISPLAY?$n=Jt.sup1:v.style.cramped?$n=Jt.sup3:$n=Jt.sup2;var Zn=v.sizeMultiplier,yi=.5/Jt.ptPerEm/Zn+"em",Oi=null;if(St){var Qs=f.base&&f.base.type==="op"&&f.base.name&&(f.base.name==="\\oiint"||f.base.name==="\\oiiint");(Ze instanceof Se||Qs)&&(Oi=-Ze.italic+"em")}var xs;if(nt&&St){dr=Math.max(dr,$n,nt.depth+.25*Jt.xHeight),Or=Math.max(Or,Jt.sub2);var zs=Jt.defaultRuleThickness,Gs=4*zs;if(dr-nt.depth-(St.height-Or)<Gs){Or=Gs-(dr-nt.depth)+St.height;var ys=.8*Jt.xHeight-(dr-nt.depth);ys>0&&(dr+=ys,Or-=ys)}var ro=[{type:"elem",elem:St,shift:Or,marginRight:yi,marginLeft:Oi},{type:"elem",elem:nt,shift:-dr,marginRight:yi}];xs=Rr.makeVList({positionType:"individualShift",children:ro},v)}else if(St){Or=Math.max(Or,Jt.sub1,St.height-.8*Jt.xHeight);var $s=[{type:"elem",elem:St,marginLeft:Oi,marginRight:yi}];xs=Rr.makeVList({positionType:"shift",positionData:Or,children:$s},v)}else if(nt)dr=Math.max(dr,$n,nt.depth+.25*Jt.xHeight),xs=Rr.makeVList({positionType:"shift",positionData:-dr,children:[{type:"elem",elem:nt,marginRight:yi}]},v);else throw new Error("supsub must have either sup or sub.");var rr=xa(Ze,"right")||"mord";return Rr.makeSpan([rr],[Ze,Rr.makeSpan(["msupsub"],[xs])],v)},mathmlBuilder:function(f,v){var x=!1,Q,re,be=Ws(f.base,"horizBrace");be&&(re=!!f.sup,re===be.isOver&&(x=!0,Q=be.isOver)),f.base&&(f.base.type==="op"||f.base.type==="operatorname")&&(f.base.parentIsSupSub=!0);var Ze=[gi(f.base,v)];f.sub&&Ze.push(gi(f.sub,v)),f.sup&&Ze.push(gi(f.sup,v));var nt;if(x)nt=Q?"mover":"munder";else if(f.sub)if(f.sup){var dr=f.base;dr&&dr.type==="op"&&dr.limits&&v.style===z.DISPLAY||dr&&dr.type==="operatorname"&&dr.alwaysHandleSupSub&&(v.style===z.DISPLAY||dr.limits)?nt="munderover":nt="msubsup"}else{var Jt=f.base;Jt&&Jt.type==="op"&&Jt.limits&&(v.style===z.DISPLAY||Jt.alwaysHandleSupSub)||Jt&&Jt.type==="operatorname"&&Jt.alwaysHandleSupSub&&(Jt.limits||v.style===z.DISPLAY)?nt="munder":nt="msub"}else{var St=f.base;St&&St.type==="op"&&St.limits&&(v.style===z.DISPLAY||St.alwaysHandleSupSub)||St&&St.type==="operatorname"&&St.alwaysHandleSupSub&&(St.limits||v.style===z.DISPLAY)?nt="mover":nt="msup"}var Or=new gn.MathNode(nt,Ze);return Or}}),Ba({type:"atom",htmlBuilder:function(f,v){return Rr.mathsym(f.text,f.mode,v,["m"+f.family])},mathmlBuilder:function(f,v){var x=new gn.MathNode("mo",[ha(f.text,f.mode)]);if(f.family==="bin"){var Q=Ya(f,v);Q==="bold-italic"&&x.setAttribute("mathvariant",Q)}else f.family==="punct"?x.setAttribute("separator","true"):(f.family==="open"||f.family==="close")&&x.setAttribute("stretchy","false");return x}});var as={mi:"italic",mn:"normal",mtext:"normal"};Ba({type:"mathord",htmlBuilder:function(f,v){return Rr.makeOrd(f,v,"mathord")},mathmlBuilder:function(f,v){var x=new gn.MathNode("mi",[ha(f.text,f.mode,v)]),Q=Ya(f,v)||"italic";return Q!==as[x.type]&&x.setAttribute("mathvariant",Q),x}}),Ba({type:"textord",htmlBuilder:function(f,v){return Rr.makeOrd(f,v,"textord")},mathmlBuilder:function(f,v){var x=ha(f.text,f.mode,v),Q=Ya(f,v)||"normal",re;return f.mode==="text"?re=new gn.MathNode("mtext",[x]):/[0-9]/.test(f.text)?re=new gn.MathNode("mn",[x]):f.text==="\\prime"?re=new gn.MathNode("mo",[x]):re=new gn.MathNode("mi",[x]),Q!==as[re.type]&&re.setAttribute("mathvariant",Q),re}});var yl={"\\nobreak":"nobreak","\\allowbreak":"allowbreak"},Ml={" ":{},"\\ ":{},"~":{className:"nobreak"},"\\space":{},"\\nobreakspace":{className:"nobreak"}};Ba({type:"spacing",htmlBuilder:function(f,v){if(Ml.hasOwnProperty(f.text)){var x=Ml[f.text].className||"";if(f.mode==="text"){var Q=Rr.makeOrd(f,v,"textord");return Q.classes.push(x),Q}else return Rr.makeSpan(["mspace",x],[Rr.mathsym(f.text,f.mode,v)],v)}else{if(yl.hasOwnProperty(f.text))return Rr.makeSpan(["mspace",yl[f.text]],[],v);throw new I('Unknown type of space "'+f.text+'"')}},mathmlBuilder:function(f,v){var x;if(Ml.hasOwnProperty(f.text))x=new gn.MathNode("mtext",[new gn.TextNode("\xA0")]);else{if(yl.hasOwnProperty(f.text))return new gn.MathNode("mspace");throw new I('Unknown type of space "'+f.text+'"')}return x}});var au=function(){var f=new gn.MathNode("mtd",[]);return f.setAttribute("width","50%"),f};Ba({type:"tag",mathmlBuilder:function(f,v){var x=new gn.MathNode("mtable",[new gn.MathNode("mtr",[au(),new gn.MathNode("mtd",[wo(f.body,v)]),au(),new gn.MathNode("mtd",[wo(f.tag,v)])])]);return x.setAttribute("width","100%"),x}});var ou={"\\text":void 0,"\\textrm":"textrm","\\textsf":"textsf","\\texttt":"texttt","\\textnormal":"textrm"},Au={"\\textbf":"textbf","\\textmd":"textmd"},Fc={"\\textit":"textit","\\textup":"textup"},_l=function(f,v){var x=f.font;return x?ou[x]?v.withTextFontFamily(ou[x]):Au[x]?v.withTextFontWeight(Au[x]):v.withTextFontShape(Fc[x]):v};In({type:"text",names:["\\text","\\textrm","\\textsf","\\texttt","\\textnormal","\\textbf","\\textmd","\\textit","\\textup"],props:{numArgs:1,argTypes:["text"],greediness:2,allowedInText:!0},handler:function(f,v){var x=f.parser,Q=f.funcName,re=v[0];return{type:"text",mode:x.mode,body:Rs(re),font:Q}},htmlBuilder:function(f,v){var x=_l(f,v),Q=Ms(f.body,x,!0);return Rr.makeSpan(["mord","text"],Rr.tryCombineChars(Q),x)},mathmlBuilder:function(f,v){var x=_l(f,v);return wo(f.body,x)}}),In({type:"underline",names:["\\underline"],props:{numArgs:1,allowedInText:!0},handler:function(f,v){var x=f.parser;return{type:"underline",mode:x.mode,body:v[0]}},htmlBuilder:function(f,v){var x=Si(f.body,v),Q=Rr.makeLineSpan("underline-line",v),re=v.fontMetrics().defaultRuleThickness,be=Rr.makeVList({positionType:"top",positionData:x.height,children:[{type:"kern",size:re},{type:"elem",elem:Q},{type:"kern",size:3*re},{type:"elem",elem:x}]},v);return Rr.makeSpan(["mord","underline"],[be],v)},mathmlBuilder:function(f,v){var x=new gn.MathNode("mo",[new gn.TextNode("\u203E")]);x.setAttribute("stretchy","true");var Q=new gn.MathNode("munder",[gi(f.body,v),x]);return Q.setAttribute("accentunder","true"),Q}}),In({type:"verb",names:["\\verb"],props:{numArgs:0,allowedInText:!0},handler:function(f,v,x){throw new I("\\verb ended by end of line instead of matching delimiter")},htmlBuilder:function(f,v){for(var x=J0(f),Q=[],re=v.havingStyle(v.style.text()),be=0;be<x.length;be++){var Ze=x[be];Ze==="~"&&(Ze="\\textasciitilde"),Q.push(Rr.makeSymbol(Ze,"Typewriter-Regular",f.mode,re,["mord","texttt"]))}return Rr.makeSpan(["mord","text"].concat(re.sizingClasses(v)),Rr.tryCombineChars(Q),re)},mathmlBuilder:function(f,v){var x=new gn.TextNode(J0(f)),Q=new gn.MathNode("mtext",[x]);return Q.setAttribute("mathvariant","monospace"),Q}});var J0=function(f){return f.body.replace(/ /g,f.star?"\u2423":"\xA0")},Lc=dl,Ho=Lc,lu=`[ \r
|
|
|
]`,s0="\\\\[a-zA-Z@]+",eh="\\\\[^\uD800-\uDFFF]",rc=""+s0+lu+"*",a0=new RegExp("^("+s0+")"+lu+"*$"),uu="[\u0300-\u036F]",tf=new RegExp(uu+"+$"),Dc="("+lu+"+)|([!-\\[\\]-\u2027\u202A-\uD7FF\uF900-\uFFFF]"+(uu+"*")+"|[\uD800-\uDBFF][\uDC00-\uDFFF]"+(uu+"*")+"|\\\\verb\\*([^]).*?\\3|\\\\verb([^*a-zA-Z]).*?\\4|\\\\operatorname\\*"+("|"+rc)+("|"+eh+")"),o0=function(){function Ee(v,x){this.input=void 0,this.settings=void 0,this.tokenRegex=void 0,this.catcodes=void 0,this.input=v,this.settings=x,this.tokenRegex=new RegExp(Dc,"g"),this.catcodes={"%":14}}var f=Ee.prototype;return f.setCatcode=function(x,Q){this.catcodes[x]=Q},f.lex=function(){var x=this.input,Q=this.tokenRegex.lastIndex;if(Q===x.length)return new Me("EOF",new Fe(this,Q,Q));var re=this.tokenRegex.exec(x);if(re===null||re.index!==Q)throw new I("Unexpected character: '"+x[Q]+"'",new Me(x[Q],new Fe(this,Q,Q+1)));var be=re[2]||" ";if(this.catcodes[be]===14){var Ze=x.indexOf(`
|
|
|
`,this.tokenRegex.lastIndex);return Ze===-1?(this.tokenRegex.lastIndex=x.length,this.settings.reportNonstrict("commentAtEnd","% comment has no terminating newline; LaTeX would fail because of commenting the end of math mode (e.g. $)")):this.tokenRegex.lastIndex=Ze+1,this.lex()}var nt=be.match(a0);return nt&&(be=nt[1]),new Me(be,new Fe(this,Q,this.tokenRegex.lastIndex))},Ee}(),rf=function(){function Ee(v,x){v===void 0&&(v={}),x===void 0&&(x={}),this.current=void 0,this.builtins=void 0,this.undefStack=void 0,this.current=x,this.builtins=v,this.undefStack=[]}var f=Ee.prototype;return f.beginGroup=function(){this.undefStack.push({})},f.endGroup=function(){if(this.undefStack.length===0)throw new I("Unbalanced namespace destruction: attempt to pop global namespace; please report this as a bug");var x=this.undefStack.pop();for(var Q in x)x.hasOwnProperty(Q)&&(x[Q]===void 0?delete this.current[Q]:this.current[Q]=x[Q])},f.has=function(x){return this.current.hasOwnProperty(x)||this.builtins.hasOwnProperty(x)},f.get=function(x){return this.current.hasOwnProperty(x)?this.current[x]:this.builtins[x]},f.set=function(x,Q,re){if(re===void 0&&(re=!1),re){for(var be=0;be<this.undefStack.length;be++)delete this.undefStack[be][x];this.undefStack.length>0&&(this.undefStack[this.undefStack.length-1][x]=Q)}else{var Ze=this.undefStack[this.undefStack.length-1];Ze&&!Ze.hasOwnProperty(x)&&(Ze[x]=this.current[x])}this.current[x]=Q},Ee}(),th={},A0=th;function lt(Ee,f){th[Ee]=f}lt("\\@firstoftwo",function(Ee){var f=Ee.consumeArgs(2);return{tokens:f[0],numArgs:0}}),lt("\\@secondoftwo",function(Ee){var f=Ee.consumeArgs(2);return{tokens:f[1],numArgs:0}}),lt("\\@ifnextchar",function(Ee){var f=Ee.consumeArgs(3),v=Ee.future();return f[0].length===1&&f[0][0].text===v.text?{tokens:f[1],numArgs:0}:{tokens:f[2],numArgs:0}}),lt("\\@ifstar","\\@ifnextchar *{\\@firstoftwo{#1}}"),lt("\\TextOrMath",function(Ee){var f=Ee.consumeArgs(2);return Ee.mode==="text"?{tokens:f[0],numArgs:0}:{tokens:f[1],numArgs:0}});var rh={0:0,1:1,2:2,3:3,4:4,5:5,6:6,7:7,8:8,9:9,a:10,A:10,b:11,B:11,c:12,C:12,d:13,D:13,e:14,E:14,f:15,F:15};lt("\\char",function(Ee){var f=Ee.popToken(),v,x="";if(f.text==="'")v=8,f=Ee.popToken();else if(f.text==='"')v=16,f=Ee.popToken();else if(f.text==="`")if(f=Ee.popToken(),f.text[0]==="\\")x=f.text.charCodeAt(1);else{if(f.text==="EOF")throw new I("\\char` missing argument");x=f.text.charCodeAt(0)}else v=10;if(v){if(x=rh[f.text],x==null||x>=v)throw new I("Invalid base-"+v+" digit "+f.text);for(var Q;(Q=rh[Ee.future().text])!=null&&Q<v;)x*=v,x+=Q,Ee.popToken()}return"\\@char{"+x+"}"});var l0=function(f,v){var x=f.consumeArgs(1)[0];if(x.length!==1)throw new I("\\gdef's first argument must be a macro name");var Q=x[0].text,re=0;for(x=f.consumeArgs(1)[0];x.length===1&&x[0].text==="#";){if(x=f.consumeArgs(1)[0],x.length!==1)throw new I('Invalid argument number length "'+x.length+'"');if(!/^[1-9]$/.test(x[0].text))throw new I('Invalid argument number "'+x[0].text+'"');if(re++,parseInt(x[0].text)!==re)throw new I('Argument number "'+x[0].text+'" out of order');x=f.consumeArgs(1)[0]}return f.macros.set(Q,{tokens:x,numArgs:re},v),""};lt("\\gdef",function(Ee){return l0(Ee,!0)}),lt("\\def",function(Ee){return l0(Ee,!1)}),lt("\\global",function(Ee){var f=Ee.consumeArgs(1)[0];if(f.length!==1)throw new I("Invalid command after \\global");var v=f[0].text;if(v==="\\def")return l0(Ee,!0);throw new I("Invalid command '"+v+"' after \\global")});var u0=function(f,v,x){var Q=f.consumeArgs(1)[0];if(Q.length!==1)throw new I("\\newcommand's first argument must be a macro name");var re=Q[0].text,be=f.isDefined(re);if(be&&!v)throw new I("\\newcommand{"+re+"} attempting to redefine "+(re+"; use \\renewcommand"));if(!be&&!x)throw new I("\\renewcommand{"+re+"} when command "+re+" does not yet exist; use \\newcommand");var Ze=0;if(Q=f.consumeArgs(1)[0],Q.length===1&&Q[0].text==="["){for(var nt="",St=f.expandNextToken();St.text!=="]"&&St.text!=="EOF";)nt+=St.text,St=f.expandNextToken();if(!nt.match(/^\s*[0-9]+\s*$/))throw new I("Invalid number of arguments: "+nt);Ze=parseInt(nt),Q=f.consumeArgs(1)[0]}return f.macros.set(re,{tokens:Q,numArgs:Ze}),""};lt("\\newcommand",function(Ee){return u0(Ee,!1,!0)}),lt("\\renewcommand",function(Ee){return u0(Ee,!0,!1)}),lt("\\providecommand",function(Ee){return u0(Ee,!0,!0)}),lt("\\bgroup","{"),lt("\\egroup","}"),lt("\\lq","`"),lt("\\rq","'"),lt("\\aa","\\r a"),lt("\\AA","\\r A"),lt("\\textcopyright","\\html@mathml{\\textcircled{c}}{\\char`\xA9}"),lt("\\copyright","\\TextOrMath{\\textcopyright}{\\text{\\textcopyright}}"),lt("\\textregistered","\\html@mathml{\\textcircled{\\scriptsize R}}{\\char`\xAE}"),lt("\u212C","\\mathscr{B}"),lt("\u2130","\\mathscr{E}"),lt("\u2131","\\mathscr{F}"),lt("\u210B","\\mathscr{H}"),lt("\u2110","\\mathscr{I}"),lt("\u2112","\\mathscr{L}"),lt("\u2133","\\mathscr{M}"),lt("\u211B","\\mathscr{R}"),lt("\u212D","\\mathfrak{C}"),lt("\u210C","\\mathfrak{H}"),lt("\u2128","\\mathfrak{Z}"),lt("\\Bbbk","\\Bbb{k}"),lt("\xB7","\\cdotp"),lt("\\llap","\\mathllap{\\textrm{#1}}"),lt("\\rlap","\\mathrlap{\\textrm{#1}}"),lt("\\clap","\\mathclap{\\textrm{#1}}"),lt("\\not",'\\html@mathml{\\mathrel{\\mathrlap\\@not}}{\\char"338}'),lt("\\neq","\\html@mathml{\\mathrel{\\not=}}{\\mathrel{\\char`\u2260}}"),lt("\\ne","\\neq"),lt("\u2260","\\neq"),lt("\\notin","\\html@mathml{\\mathrel{{\\in}\\mathllap{/\\mskip1mu}}}{\\mathrel{\\char`\u2209}}"),lt("\u2209","\\notin"),lt("\u2258","\\html@mathml{\\mathrel{=\\kern{-1em}\\raisebox{0.4em}{$\\scriptsize\\frown$}}}{\\mathrel{\\char`\u2258}}"),lt("\u2259","\\html@mathml{\\stackrel{\\tiny\\wedge}{=}}{\\mathrel{\\char`\u2258}}"),lt("\u225A","\\html@mathml{\\stackrel{\\tiny\\vee}{=}}{\\mathrel{\\char`\u225A}}"),lt("\u225B","\\html@mathml{\\stackrel{\\scriptsize\\star}{=}}{\\mathrel{\\char`\u225B}}"),lt("\u225D","\\html@mathml{\\stackrel{\\tiny\\mathrm{def}}{=}}{\\mathrel{\\char`\u225D}}"),lt("\u225E","\\html@mathml{\\stackrel{\\tiny\\mathrm{m}}{=}}{\\mathrel{\\char`\u225E}}"),lt("\u225F","\\html@mathml{\\stackrel{\\tiny?}{=}}{\\mathrel{\\char`\u225F}}"),lt("\u27C2","\\perp"),lt("\u203C","\\mathclose{!\\mkern-0.8mu!}"),lt("\u220C","\\notni"),lt("\u231C","\\ulcorner"),lt("\u231D","\\urcorner"),lt("\u231E","\\llcorner"),lt("\u231F","\\lrcorner"),lt("\xA9","\\copyright"),lt("\xAE","\\textregistered"),lt("\uFE0F","\\textregistered"),lt("\\vdots","\\mathord{\\varvdots\\rule{0pt}{15pt}}"),lt("\u22EE","\\vdots"),lt("\\varGamma","\\mathit{\\Gamma}"),lt("\\varDelta","\\mathit{\\Delta}"),lt("\\varTheta","\\mathit{\\Theta}"),lt("\\varLambda","\\mathit{\\Lambda}"),lt("\\varXi","\\mathit{\\Xi}"),lt("\\varPi","\\mathit{\\Pi}"),lt("\\varSigma","\\mathit{\\Sigma}"),lt("\\varUpsilon","\\mathit{\\Upsilon}"),lt("\\varPhi","\\mathit{\\Phi}"),lt("\\varPsi","\\mathit{\\Psi}"),lt("\\varOmega","\\mathit{\\Omega}"),lt("\\substack","\\begin{subarray}{c}#1\\end{subarray}"),lt("\\colon","\\nobreak\\mskip2mu\\mathpunct{}\\mathchoice{\\mkern-3mu}{\\mkern-3mu}{}{}{:}\\mskip6mu"),lt("\\boxed","\\fbox{$\\displaystyle{#1}$}"),lt("\\iff","\\DOTSB\\;\\Longleftrightarrow\\;"),lt("\\implies","\\DOTSB\\;\\Longrightarrow\\;"),lt("\\impliedby","\\DOTSB\\;\\Longleftarrow\\;");var nh={",":"\\dotsc","\\not":"\\dotsb","+":"\\dotsb","=":"\\dotsb","<":"\\dotsb",">":"\\dotsb","-":"\\dotsb","*":"\\dotsb",":":"\\dotsb","\\DOTSB":"\\dotsb","\\coprod":"\\dotsb","\\bigvee":"\\dotsb","\\bigwedge":"\\dotsb","\\biguplus":"\\dotsb","\\bigcap":"\\dotsb","\\bigcup":"\\dotsb","\\prod":"\\dotsb","\\sum":"\\dotsb","\\bigotimes":"\\dotsb","\\bigoplus":"\\dotsb","\\bigodot":"\\dotsb","\\bigsqcup":"\\dotsb","\\And":"\\dotsb","\\longrightarrow":"\\dotsb","\\Longrightarrow":"\\dotsb","\\longleftarrow":"\\dotsb","\\Longleftarrow":"\\dotsb","\\longleftrightarrow":"\\dotsb","\\Longleftrightarrow":"\\dotsb","\\mapsto":"\\dotsb","\\longmapsto":"\\dotsb","\\hookrightarrow":"\\dotsb","\\doteq":"\\dotsb","\\mathbin":"\\dotsb","\\mathrel":"\\dotsb","\\relbar":"\\dotsb","\\Relbar":"\\dotsb","\\xrightarrow":"\\dotsb","\\xleftarrow":"\\dotsb","\\DOTSI":"\\dotsi","\\int":"\\dotsi","\\oint":"\\dotsi","\\iint":"\\dotsi","\\iiint":"\\dotsi","\\iiiint":"\\dotsi","\\idotsint":"\\dotsi","\\DOTSX":"\\dotsx"};lt("\\dots",function(Ee){var f="\\dotso",v=Ee.expandAfterFuture().text;return v in nh?f=nh[v]:(v.substr(0,4)==="\\not"||v in An.math&&P.contains(["bin","rel"],An.math[v].group))&&(f="\\dotsb"),f});var Lu={")":!0,"]":!0,"\\rbrack":!0,"\\}":!0,"\\rbrace":!0,"\\rangle":!0,"\\rceil":!0,"\\rfloor":!0,"\\rgroup":!0,"\\rmoustache":!0,"\\right":!0,"\\bigr":!0,"\\biggr":!0,"\\Bigr":!0,"\\Biggr":!0,$:!0,";":!0,".":!0,",":!0};lt("\\dotso",function(Ee){var f=Ee.future().text;return f in Lu?"\\ldots\\,":"\\ldots"}),lt("\\dotsc",function(Ee){var f=Ee.future().text;return f in Lu&&f!==","?"\\ldots\\,":"\\ldots"}),lt("\\cdots",function(Ee){var f=Ee.future().text;return f in Lu?"\\@cdots\\,":"\\@cdots"}),lt("\\dotsb","\\cdots"),lt("\\dotsm","\\cdots"),lt("\\dotsi","\\!\\cdots"),lt("\\dotsx","\\ldots\\,"),lt("\\DOTSI","\\relax"),lt("\\DOTSB","\\relax"),lt("\\DOTSX","\\relax"),lt("\\tmspace","\\TextOrMath{\\kern#1#3}{\\mskip#1#2}\\relax"),lt("\\,","\\tmspace+{3mu}{.1667em}"),lt("\\thinspace","\\,"),lt("\\>","\\mskip{4mu}"),lt("\\:","\\tmspace+{4mu}{.2222em}"),lt("\\medspace","\\:"),lt("\\;","\\tmspace+{5mu}{.2777em}"),lt("\\thickspace","\\;"),lt("\\!","\\tmspace-{3mu}{.1667em}"),lt("\\negthinspace","\\!"),lt("\\negmedspace","\\tmspace-{4mu}{.2222em}"),lt("\\negthickspace","\\tmspace-{5mu}{.277em}"),lt("\\enspace","\\kern.5em "),lt("\\enskip","\\hskip.5em\\relax"),lt("\\quad","\\hskip1em\\relax"),lt("\\qquad","\\hskip2em\\relax"),lt("\\tag","\\@ifstar\\tag@literal\\tag@paren"),lt("\\tag@paren","\\tag@literal{({#1})}"),lt("\\tag@literal",function(Ee){if(Ee.macros.get("\\df@tag"))throw new I("Multiple \\tag");return"\\gdef\\df@tag{\\text{#1}}"}),lt("\\bmod","\\mathchoice{\\mskip1mu}{\\mskip1mu}{\\mskip5mu}{\\mskip5mu}\\mathbin{\\rm mod}\\mathchoice{\\mskip1mu}{\\mskip1mu}{\\mskip5mu}{\\mskip5mu}"),lt("\\pod","\\allowbreak\\mathchoice{\\mkern18mu}{\\mkern8mu}{\\mkern8mu}{\\mkern8mu}(#1)"),lt("\\pmod","\\pod{{\\rm mod}\\mkern6mu#1}"),lt("\\mod","\\allowbreak\\mathchoice{\\mkern18mu}{\\mkern12mu}{\\mkern12mu}{\\mkern12mu}{\\rm mod}\\,\\,#1"),lt("\\pmb","\\html@mathml{\\@binrel{#1}{\\mathrlap{#1}\\kern0.5px#1}}{\\mathbf{#1}}"),lt("\\\\","\\newline"),lt("\\TeX","\\textrm{\\html@mathml{T\\kern-.1667em\\raisebox{-.5ex}{E}\\kern-.125emX}{TeX}}");var ih=Tr["Main-Regular"][84][1]-.7*Tr["Main-Regular"][65][1]+"em";lt("\\LaTeX","\\textrm{\\html@mathml{"+("L\\kern-.36em\\raisebox{"+ih+"}{\\scriptstyle A}")+"\\kern-.15em\\TeX}{LaTeX}}"),lt("\\KaTeX","\\textrm{\\html@mathml{"+("K\\kern-.17em\\raisebox{"+ih+"}{\\scriptstyle A}")+"\\kern-.15em\\TeX}{KaTeX}}"),lt("\\hspace","\\@ifstar\\@hspacer\\@hspace"),lt("\\@hspace","\\hskip #1\\relax"),lt("\\@hspacer","\\rule{0pt}{0pt}\\hskip #1\\relax"),lt("\\ordinarycolon",":"),lt("\\vcentcolon","\\mathrel{\\mathop\\ordinarycolon}"),lt("\\dblcolon",'\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-.9mu}\\vcentcolon}}{\\mathop{\\char"2237}}'),lt("\\coloneqq",'\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-1.2mu}=}}{\\mathop{\\char"2254}}'),lt("\\Coloneqq",'\\html@mathml{\\mathrel{\\dblcolon\\mathrel{\\mkern-1.2mu}=}}{\\mathop{\\char"2237\\char"3d}}'),lt("\\coloneq",'\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-1.2mu}\\mathrel{-}}}{\\mathop{\\char"3a\\char"2212}}'),lt("\\Coloneq",'\\html@mathml{\\mathrel{\\dblcolon\\mathrel{\\mkern-1.2mu}\\mathrel{-}}}{\\mathop{\\char"2237\\char"2212}}'),lt("\\eqqcolon",'\\html@mathml{\\mathrel{=\\mathrel{\\mkern-1.2mu}\\vcentcolon}}{\\mathop{\\char"2255}}'),lt("\\Eqqcolon",'\\html@mathml{\\mathrel{=\\mathrel{\\mkern-1.2mu}\\dblcolon}}{\\mathop{\\char"3d\\char"2237}}'),lt("\\eqcolon",'\\html@mathml{\\mathrel{\\mathrel{-}\\mathrel{\\mkern-1.2mu}\\vcentcolon}}{\\mathop{\\char"2239}}'),lt("\\Eqcolon",'\\html@mathml{\\mathrel{\\mathrel{-}\\mathrel{\\mkern-1.2mu}\\dblcolon}}{\\mathop{\\char"2212\\char"2237}}'),lt("\\colonapprox",'\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-1.2mu}\\approx}}{\\mathop{\\char"3a\\char"2248}}'),lt("\\Colonapprox",'\\html@mathml{\\mathrel{\\dblcolon\\mathrel{\\mkern-1.2mu}\\approx}}{\\mathop{\\char"2237\\char"2248}}'),lt("\\colonsim",'\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-1.2mu}\\sim}}{\\mathop{\\char"3a\\char"223c}}'),lt("\\Colonsim",'\\html@mathml{\\mathrel{\\dblcolon\\mathrel{\\mkern-1.2mu}\\sim}}{\\mathop{\\char"2237\\char"223c}}'),lt("\u2237","\\dblcolon"),lt("\u2239","\\eqcolon"),lt("\u2254","\\coloneqq"),lt("\u2255","\\eqqcolon"),lt("\u2A74","\\Coloneqq"),lt("\\ratio","\\vcentcolon"),lt("\\coloncolon","\\dblcolon"),lt("\\colonequals","\\coloneqq"),lt("\\coloncolonequals","\\Coloneqq"),lt("\\equalscolon","\\eqqcolon"),lt("\\equalscoloncolon","\\Eqqcolon"),lt("\\colonminus","\\coloneq"),lt("\\coloncolonminus","\\Coloneq"),lt("\\minuscolon","\\eqcolon"),lt("\\minuscoloncolon","\\Eqcolon"),lt("\\coloncolonapprox","\\Colonapprox"),lt("\\coloncolonsim","\\Colonsim"),lt("\\simcolon","\\mathrel{\\sim\\mathrel{\\mkern-1.2mu}\\vcentcolon}"),lt("\\simcoloncolon","\\mathrel{\\sim\\mathrel{\\mkern-1.2mu}\\dblcolon}"),lt("\\approxcolon","\\mathrel{\\approx\\mathrel{\\mkern-1.2mu}\\vcentcolon}"),lt("\\approxcoloncolon","\\mathrel{\\approx\\mathrel{\\mkern-1.2mu}\\dblcolon}"),lt("\\notni","\\html@mathml{\\not\\ni}{\\mathrel{\\char`\u220C}}"),lt("\\limsup","\\DOTSB\\operatorname*{lim\\,sup}"),lt("\\liminf","\\DOTSB\\operatorname*{lim\\,inf}"),lt("\\gvertneqq","\\html@mathml{\\@gvertneqq}{\u2269}"),lt("\\lvertneqq","\\html@mathml{\\@lvertneqq}{\u2268}"),lt("\\ngeqq","\\html@mathml{\\@ngeqq}{\u2271}"),lt("\\ngeqslant","\\html@mathml{\\@ngeqslant}{\u2271}"),lt("\\nleqq","\\html@mathml{\\@nleqq}{\u2270}"),lt("\\nleqslant","\\html@mathml{\\@nleqslant}{\u2270}"),lt("\\nshortmid","\\html@mathml{\\@nshortmid}{\u2224}"),lt("\\nshortparallel","\\html@mathml{\\@nshortparallel}{\u2226}"),lt("\\nsubseteqq","\\html@mathml{\\@nsubseteqq}{\u2288}"),lt("\\nsupseteqq","\\html@mathml{\\@nsupseteqq}{\u2289}"),lt("\\varsubsetneq","\\html@mathml{\\@varsubsetneq}{\u228A}"),lt("\\varsubsetneqq","\\html@mathml{\\@varsubsetneqq}{\u2ACB}"),lt("\\varsupsetneq","\\html@mathml{\\@varsupsetneq}{\u228B}"),lt("\\varsupsetneqq","\\html@mathml{\\@varsupsetneqq}{\u2ACC}"),lt("\\llbracket","\\html@mathml{\\mathopen{[\\mkern-3.2mu[}}{\\mathopen{\\char`\u27E6}}"),lt("\\rrbracket","\\html@mathml{\\mathclose{]\\mkern-3.2mu]}}{\\mathclose{\\char`\u27E7}}"),lt("\u27E6","\\llbracket"),lt("\u27E7","\\rrbracket"),lt("\\lBrace","\\html@mathml{\\mathopen{\\{\\mkern-3.2mu[}}{\\mathopen{\\char`\u2983}}"),lt("\\rBrace","\\html@mathml{\\mathclose{]\\mkern-3.2mu\\}}}{\\mathclose{\\char`\u2984}}"),lt("\u2983","\\lBrace"),lt("\u2984","\\rBrace"),lt("\\darr","\\downarrow"),lt("\\dArr","\\Downarrow"),lt("\\Darr","\\Downarrow"),lt("\\lang","\\langle"),lt("\\rang","\\rangle"),lt("\\uarr","\\uparrow"),lt("\\uArr","\\Uparrow"),lt("\\Uarr","\\Uparrow"),lt("\\N","\\mathbb{N}"),lt("\\R","\\mathbb{R}"),lt("\\Z","\\mathbb{Z}"),lt("\\alef","\\aleph"),lt("\\alefsym","\\aleph"),lt("\\Alpha","\\mathrm{A}"),lt("\\Beta","\\mathrm{B}"),lt("\\bull","\\bullet"),lt("\\Chi","\\mathrm{X}"),lt("\\clubs","\\clubsuit"),lt("\\cnums","\\mathbb{C}"),lt("\\Complex","\\mathbb{C}"),lt("\\Dagger","\\ddagger"),lt("\\diamonds","\\diamondsuit"),lt("\\empty","\\emptyset"),lt("\\Epsilon","\\mathrm{E}"),lt("\\Eta","\\mathrm{H}"),lt("\\exist","\\exists"),lt("\\harr","\\leftrightarrow"),lt("\\hArr","\\Leftrightarrow"),lt("\\Harr","\\Leftrightarrow"),lt("\\hearts","\\heartsuit"),lt("\\image","\\Im"),lt("\\infin","\\infty"),lt("\\Iota","\\mathrm{I}"),lt("\\isin","\\in"),lt("\\Kappa","\\mathrm{K}"),lt("\\larr","\\leftarrow"),lt("\\lArr","\\Leftarrow"),lt("\\Larr","\\Leftarrow"),lt("\\lrarr","\\leftrightarrow"),lt("\\lrArr","\\Leftrightarrow"),lt("\\Lrarr","\\Leftrightarrow"),lt("\\Mu","\\mathrm{M}"),lt("\\natnums","\\mathbb{N}"),lt("\\Nu","\\mathrm{N}"),lt("\\Omicron","\\mathrm{O}"),lt("\\plusmn","\\pm"),lt("\\rarr","\\rightarrow"),lt("\\rArr","\\Rightarrow"),lt("\\Rarr","\\Rightarrow"),lt("\\real","\\Re"),lt("\\reals","\\mathbb{R}"),lt("\\Reals","\\mathbb{R}"),lt("\\Rho","\\mathrm{P}"),lt("\\sdot","\\cdot"),lt("\\sect","\\S"),lt("\\spades","\\spadesuit"),lt("\\sub","\\subset"),lt("\\sube","\\subseteq"),lt("\\supe","\\supseteq"),lt("\\Tau","\\mathrm{T}"),lt("\\thetasym","\\vartheta"),lt("\\weierp","\\wp"),lt("\\Zeta","\\mathrm{Z}"),lt("\\argmin","\\DOTSB\\operatorname*{arg\\,min}"),lt("\\argmax","\\DOTSB\\operatorname*{arg\\,max}"),lt("\\plim","\\DOTSB\\mathop{\\operatorname{plim}}\\limits"),lt("\\blue","\\textcolor{##6495ed}{#1}"),lt("\\orange","\\textcolor{##ffa500}{#1}"),lt("\\pink","\\textcolor{##ff00af}{#1}"),lt("\\red","\\textcolor{##df0030}{#1}"),lt("\\green","\\textcolor{##28ae7b}{#1}"),lt("\\gray","\\textcolor{gray}{#1}"),lt("\\purple","\\textcolor{##9d38bd}{#1}"),lt("\\blueA","\\textcolor{##ccfaff}{#1}"),lt("\\blueB","\\textcolor{##80f6ff}{#1}"),lt("\\blueC","\\textcolor{##63d9ea}{#1}"),lt("\\blueD","\\textcolor{##11accd}{#1}"),lt("\\blueE","\\textcolor{##0c7f99}{#1}"),lt("\\tealA","\\textcolor{##94fff5}{#1}"),lt("\\tealB","\\textcolor{##26edd5}{#1}"),lt("\\tealC","\\textcolor{##01d1c1}{#1}"),lt("\\tealD","\\textcolor{##01a995}{#1}"),lt("\\tealE","\\textcolor{##208170}{#1}"),lt("\\greenA","\\textcolor{##b6ffb0}{#1}"),lt("\\greenB","\\textcolor{##8af281}{#1}"),lt("\\greenC","\\textcolor{##74cf70}{#1}"),lt("\\greenD","\\textcolor{##1fab54}{#1}"),lt("\\greenE","\\textcolor{##0d923f}{#1}"),lt("\\goldA","\\textcolor{##ffd0a9}{#1}"),lt("\\goldB","\\textcolor{##ffbb71}{#1}"),lt("\\goldC","\\textcolor{##ff9c39}{#1}"),lt("\\goldD","\\textcolor{##e07d10}{#1}"),lt("\\goldE","\\textcolor{##a75a05}{#1}"),lt("\\redA","\\textcolor{##fca9a9}{#1}"),lt("\\redB","\\textcolor{##ff8482}{#1}"),lt("\\redC","\\textcolor{##f9685d}{#1}"),lt("\\redD","\\textcolor{##e84d39}{#1}"),lt("\\redE","\\textcolor{##bc2612}{#1}"),lt("\\maroonA","\\textcolor{##ffbde0}{#1}"),lt("\\maroonB","\\textcolor{##ff92c6}{#1}"),lt("\\maroonC","\\textcolor{##ed5fa6}{#1}"),lt("\\maroonD","\\textcolor{##ca337c}{#1}"),lt("\\maroonE","\\textcolor{##9e034e}{#1}"),lt("\\purpleA","\\textcolor{##ddd7ff}{#1}"),lt("\\purpleB","\\textcolor{##c6b9fc}{#1}"),lt("\\purpleC","\\textcolor{##aa87ff}{#1}"),lt("\\purpleD","\\textcolor{##7854ab}{#1}"),lt("\\purpleE","\\textcolor{##543b78}{#1}"),lt("\\mintA","\\textcolor{##f5f9e8}{#1}"),lt("\\mintB","\\textcolor{##edf2df}{#1}"),lt("\\mintC","\\textcolor{##e0e5cc}{#1}"),lt("\\grayA","\\textcolor{##f6f7f7}{#1}"),lt("\\grayB","\\textcolor{##f0f1f2}{#1}"),lt("\\grayC","\\textcolor{##e3e5e6}{#1}"),lt("\\grayD","\\textcolor{##d6d8da}{#1}"),lt("\\grayE","\\textcolor{##babec2}{#1}"),lt("\\grayF","\\textcolor{##888d93}{#1}"),lt("\\grayG","\\textcolor{##626569}{#1}"),lt("\\grayH","\\textcolor{##3b3e40}{#1}"),lt("\\grayI","\\textcolor{##21242c}{#1}"),lt("\\kaBlue","\\textcolor{##314453}{#1}"),lt("\\kaGreen","\\textcolor{##71B307}{#1}");var Du={"\\relax":!0,"^":!0,_:!0,"\\limits":!0,"\\nolimits":!0},sh=function(){function Ee(v,x,Q){this.settings=void 0,this.expansionCount=void 0,this.lexer=void 0,this.macros=void 0,this.stack=void 0,this.mode=void 0,this.settings=x,this.expansionCount=0,this.feed(v),this.macros=new rf(A0,x.macros),this.mode=Q,this.stack=[]}var f=Ee.prototype;return f.feed=function(x){this.lexer=new o0(x,this.settings)},f.switchMode=function(x){this.mode=x},f.beginGroup=function(){this.macros.beginGroup()},f.endGroup=function(){this.macros.endGroup()},f.future=function(){return this.stack.length===0&&this.pushToken(this.lexer.lex()),this.stack[this.stack.length-1]},f.popToken=function(){return this.future(),this.stack.pop()},f.pushToken=function(x){this.stack.push(x)},f.pushTokens=function(x){var Q;(Q=this.stack).push.apply(Q,x)},f.consumeSpaces=function(){for(;;){var x=this.future();if(x.text===" ")this.stack.pop();else break}},f.consumeArgs=function(x){for(var Q=[],re=0;re<x;++re){this.consumeSpaces();var be=this.popToken();if(be.text==="{"){for(var Ze=[],nt=1;nt!==0;){var St=this.popToken();if(Ze.push(St),St.text==="{")++nt;else if(St.text==="}")--nt;else if(St.text==="EOF")throw new I("End of input in macro argument",be)}Ze.pop(),Ze.reverse(),Q[re]=Ze}else{if(be.text==="EOF")throw new I("End of input expecting macro argument");Q[re]=[be]}}return Q},f.expandOnce=function(){var x=this.popToken(),Q=x.text,re=this._getExpansion(Q);if(re==null)return this.pushToken(x),x;if(this.expansionCount++,this.expansionCount>this.settings.maxExpand)throw new I("Too many expansions: infinite loop or need to increase maxExpand setting");var be=re.tokens;if(re.numArgs){var Ze=this.consumeArgs(re.numArgs);be=be.slice();for(var nt=be.length-1;nt>=0;--nt){var St=be[nt];if(St.text==="#"){if(nt===0)throw new I("Incomplete placeholder at end of macro body",St);if(St=be[--nt],St.text==="#")be.splice(nt+1,1);else if(/^[1-9]$/.test(St.text)){var Jt;(Jt=be).splice.apply(Jt,[nt,2].concat(Ze[+St.text-1]))}else throw new I("Not a valid argument number",St)}}}return this.pushTokens(be),be},f.expandAfterFuture=function(){return this.expandOnce(),this.future()},f.expandNextToken=function(){for(;;){var x=this.expandOnce();if(x instanceof Me)if(x.text==="\\relax")this.stack.pop();else return this.stack.pop()}throw new Error},f.expandMacro=function(x){if(this.macros.get(x)){var Q=[],re=this.stack.length;for(this.pushToken(new Me(x));this.stack.length>re;){var be=this.expandOnce();be instanceof Me&&Q.push(this.stack.pop())}return Q}},f.expandMacroAsText=function(x){var Q=this.expandMacro(x);return Q&&Q.map(function(re){return re.text}).join("")},f._getExpansion=function(x){var Q=this.macros.get(x);if(Q==null)return Q;var re=typeof Q=="function"?Q(this):Q;if(typeof re=="string"){var be=0;if(re.indexOf("#")!==-1)for(var Ze=re.replace(/##/g,"");Ze.indexOf("#"+(be+1))!==-1;)++be;for(var nt=new o0(re,this.settings),St=[],Jt=nt.lex();Jt.text!=="EOF";)St.push(Jt),Jt=nt.lex();St.reverse();var dr={tokens:St,numArgs:be};return dr}return re},f.isDefined=function(x){return this.macros.has(x)||Ho.hasOwnProperty(x)||An.math.hasOwnProperty(x)||An.text.hasOwnProperty(x)||Du.hasOwnProperty(x)},Ee}(),ku={"\u0301":{text:"\\'",math:"\\acute"},"\u0300":{text:"\\`",math:"\\grave"},"\u0308":{text:'\\"',math:"\\ddot"},"\u0303":{text:"\\~",math:"\\tilde"},"\u0304":{text:"\\=",math:"\\bar"},"\u0306":{text:"\\u",math:"\\breve"},"\u030C":{text:"\\v",math:"\\check"},"\u0302":{text:"\\^",math:"\\hat"},"\u0307":{text:"\\.",math:"\\dot"},"\u030A":{text:"\\r",math:"\\mathring"},"\u030B":{text:"\\H"}},kc={\u00E1:"a\u0301",\u00E0:"a\u0300",\u00E4:"a\u0308",\u01DF:"a\u0308\u0304",\u00E3:"a\u0303",\u0101:"a\u0304",\u0103:"a\u0306",\u1EAF:"a\u0306\u0301",\u1EB1:"a\u0306\u0300",\u1EB5:"a\u0306\u0303",\u01CE:"a\u030C",\u00E2:"a\u0302",\u1EA5:"a\u0302\u0301",\u1EA7:"a\u0302\u0300",\u1EAB:"a\u0302\u0303",\u0227:"a\u0307",\u01E1:"a\u0307\u0304",\u00E5:"a\u030A",\u01FB:"a\u030A\u0301",\u1E03:"b\u0307",\u0107:"c\u0301",\u010D:"c\u030C",\u0109:"c\u0302",\u010B:"c\u0307",\u010F:"d\u030C",\u1E0B:"d\u0307",\u00E9:"e\u0301",\u00E8:"e\u0300",\u00EB:"e\u0308",\u1EBD:"e\u0303",\u0113:"e\u0304",\u1E17:"e\u0304\u0301",\u1E15:"e\u0304\u0300",\u0115:"e\u0306",\u011B:"e\u030C",\u00EA:"e\u0302",\u1EBF:"e\u0302\u0301",\u1EC1:"e\u0302\u0300",\u1EC5:"e\u0302\u0303",\u0117:"e\u0307",\u1E1F:"f\u0307",\u01F5:"g\u0301",\u1E21:"g\u0304",\u011F:"g\u0306",\u01E7:"g\u030C",\u011D:"g\u0302",\u0121:"g\u0307",\u1E27:"h\u0308",\u021F:"h\u030C",\u0125:"h\u0302",\u1E23:"h\u0307",\u00ED:"i\u0301",\u00EC:"i\u0300",\u00EF:"i\u0308",\u1E2F:"i\u0308\u0301",\u0129:"i\u0303",\u012B:"i\u0304",\u012D:"i\u0306",\u01D0:"i\u030C",\u00EE:"i\u0302",\u01F0:"j\u030C",\u0135:"j\u0302",\u1E31:"k\u0301",\u01E9:"k\u030C",\u013A:"l\u0301",\u013E:"l\u030C",\u1E3F:"m\u0301",\u1E41:"m\u0307",\u0144:"n\u0301",\u01F9:"n\u0300",\u00F1:"n\u0303",\u0148:"n\u030C",\u1E45:"n\u0307",\u00F3:"o\u0301",\u00F2:"o\u0300",\u00F6:"o\u0308",\u022B:"o\u0308\u0304",\u00F5:"o\u0303",\u1E4D:"o\u0303\u0301",\u1E4F:"o\u0303\u0308",\u022D:"o\u0303\u0304",\u014D:"o\u0304",\u1E53:"o\u0304\u0301",\u1E51:"o\u0304\u0300",\u014F:"o\u0306",\u01D2:"o\u030C",\u00F4:"o\u0302",\u1ED1:"o\u0302\u0301",\u1ED3:"o\u0302\u0300",\u1ED7:"o\u0302\u0303",\u022F:"o\u0307",\u0231:"o\u0307\u0304",\u0151:"o\u030B",\u1E55:"p\u0301",\u1E57:"p\u0307",\u0155:"r\u0301",\u0159:"r\u030C",\u1E59:"r\u0307",\u015B:"s\u0301",\u1E65:"s\u0301\u0307",\u0161:"s\u030C",\u1E67:"s\u030C\u0307",\u015D:"s\u0302",\u1E61:"s\u0307",\u1E97:"t\u0308",\u0165:"t\u030C",\u1E6B:"t\u0307",\u00FA:"u\u0301",\u00F9:"u\u0300",\u00FC:"u\u0308",\u01D8:"u\u0308\u0301",\u01DC:"u\u0308\u0300",\u01D6:"u\u0308\u0304",\u01DA:"u\u0308\u030C",\u0169:"u\u0303",\u1E79:"u\u0303\u0301",\u016B:"u\u0304",\u1E7B:"u\u0304\u0308",\u016D:"u\u0306",\u01D4:"u\u030C",\u00FB:"u\u0302",\u016F:"u\u030A",\u0171:"u\u030B",\u1E7D:"v\u0303",\u1E83:"w\u0301",\u1E81:"w\u0300",\u1E85:"w\u0308",\u0175:"w\u0302",\u1E87:"w\u0307",\u1E98:"w\u030A",\u1E8D:"x\u0308",\u1E8B:"x\u0307",\u00FD:"y\u0301",\u1EF3:"y\u0300",\u00FF:"y\u0308",\u1EF9:"y\u0303",\u0233:"y\u0304",\u0177:"y\u0302",\u1E8F:"y\u0307",\u1E99:"y\u030A",\u017A:"z\u0301",\u017E:"z\u030C",\u1E91:"z\u0302",\u017C:"z\u0307",\u00C1:"A\u0301",\u00C0:"A\u0300",\u00C4:"A\u0308",\u01DE:"A\u0308\u0304",\u00C3:"A\u0303",\u0100:"A\u0304",\u0102:"A\u0306",\u1EAE:"A\u0306\u0301",\u1EB0:"A\u0306\u0300",\u1EB4:"A\u0306\u0303",\u01CD:"A\u030C",\u00C2:"A\u0302",\u1EA4:"A\u0302\u0301",\u1EA6:"A\u0302\u0300",\u1EAA:"A\u0302\u0303",\u0226:"A\u0307",\u01E0:"A\u0307\u0304",\u00C5:"A\u030A",\u01FA:"A\u030A\u0301",\u1E02:"B\u0307",\u0106:"C\u0301",\u010C:"C\u030C",\u0108:"C\u0302",\u010A:"C\u0307",\u010E:"D\u030C",\u1E0A:"D\u0307",\u00C9:"E\u0301",\u00C8:"E\u0300",\u00CB:"E\u0308",\u1EBC:"E\u0303",\u0112:"E\u0304",\u1E16:"E\u0304\u0301",\u1E14:"E\u0304\u0300",\u0114:"E\u0306",\u011A:"E\u030C",\u00CA:"E\u0302",\u1EBE:"E\u0302\u0301",\u1EC0:"E\u0302\u0300",\u1EC4:"E\u0302\u0303",\u0116:"E\u0307",\u1E1E:"F\u0307",\u01F4:"G\u0301",\u1E20:"G\u0304",\u011E:"G\u0306",\u01E6:"G\u030C",\u011C:"G\u0302",\u0120:"G\u0307",\u1E26:"H\u0308",\u021E:"H\u030C",\u0124:"H\u0302",\u1E22:"H\u0307",\u00CD:"I\u0301",\u00CC:"I\u0300",\u00CF:"I\u0308",\u1E2E:"I\u0308\u0301",\u0128:"I\u0303",\u012A:"I\u0304",\u012C:"I\u0306",\u01CF:"I\u030C",\u00CE:"I\u0302",\u0130:"I\u0307",\u0134:"J\u0302",\u1E30:"K\u0301",\u01E8:"K\u030C",\u0139:"L\u0301",\u013D:"L\u030C",\u1E3E:"M\u0301",\u1E40:"M\u0307",\u0143:"N\u0301",\u01F8:"N\u0300",\u00D1:"N\u0303",\u0147:"N\u030C",\u1E44:"N\u0307",\u00D3:"O\u0301",\u00D2:"O\u0300",\u00D6:"O\u0308",\u022A:"O\u0308\u0304",\u00D5:"O\u0303",\u1E4C:"O\u0303\u0301",\u1E4E:"O\u0303\u0308",\u022C:"O\u0303\u0304",\u014C:"O\u0304",\u1E52:"O\u0304\u0301",\u1E50:"O\u0304\u0300",\u014E:"O\u0306",\u01D1:"O\u030C",\u00D4:"O\u0302",\u1ED0:"O\u0302\u0301",\u1ED2:"O\u0302\u0300",\u1ED6:"O\u0302\u0303",\u022E:"O\u0307",\u0230:"O\u0307\u0304",\u0150:"O\u030B",\u1E54:"P\u0301",\u1E56:"P\u0307",\u0154:"R\u0301",\u0158:"R\u030C",\u1E58:"R\u0307",\u015A:"S\u0301",\u1E64:"S\u0301\u0307",\u0160:"S\u030C",\u1E66:"S\u030C\u0307",\u015C:"S\u0302",\u1E60:"S\u0307",\u0164:"T\u030C",\u1E6A:"T\u0307",\u00DA:"U\u0301",\u00D9:"U\u0300",\u00DC:"U\u0308",\u01D7:"U\u0308\u0301",\u01DB:"U\u0308\u0300",\u01D5:"U\u0308\u0304",\u01D9:"U\u0308\u030C",\u0168:"U\u0303",\u1E78:"U\u0303\u0301",\u016A:"U\u0304",\u1E7A:"U\u0304\u0308",\u016C:"U\u0306",\u01D3:"U\u030C",\u00DB:"U\u0302",\u016E:"U\u030A",\u0170:"U\u030B",\u1E7C:"V\u0303",\u1E82:"W\u0301",\u1E80:"W\u0300",\u1E84:"W\u0308",\u0174:"W\u0302",\u1E86:"W\u0307",\u1E8C:"X\u0308",\u1E8A:"X\u0307",\u00DD:"Y\u0301",\u1EF2:"Y\u0300",\u0178:"Y\u0308",\u1EF8:"Y\u0303",\u0232:"Y\u0304",\u0176:"Y\u0302",\u1E8E:"Y\u0307",\u0179:"Z\u0301",\u017D:"Z\u030C",\u1E90:"Z\u0302",\u017B:"Z\u0307",\u03AC:"\u03B1\u0301",\u1F70:"\u03B1\u0300",\u1FB1:"\u03B1\u0304",\u1FB0:"\u03B1\u0306",\u03AD:"\u03B5\u0301",\u1F72:"\u03B5\u0300",\u03AE:"\u03B7\u0301",\u1F74:"\u03B7\u0300",\u03AF:"\u03B9\u0301",\u1F76:"\u03B9\u0300",\u03CA:"\u03B9\u0308",\u0390:"\u03B9\u0308\u0301",\u1FD2:"\u03B9\u0308\u0300",\u1FD1:"\u03B9\u0304",\u1FD0:"\u03B9\u0306",\u03CC:"\u03BF\u0301",\u1F78:"\u03BF\u0300",\u03CD:"\u03C5\u0301",\u1F7A:"\u03C5\u0300",\u03CB:"\u03C5\u0308",\u03B0:"\u03C5\u0308\u0301",\u1FE2:"\u03C5\u0308\u0300",\u1FE1:"\u03C5\u0304",\u1FE0:"\u03C5\u0306",\u03CE:"\u03C9\u0301",\u1F7C:"\u03C9\u0300",\u038E:"\u03A5\u0301",\u1FEA:"\u03A5\u0300",\u03AB:"\u03A5\u0308",\u1FE9:"\u03A5\u0304",\u1FE8:"\u03A5\u0306",\u038F:"\u03A9\u0301",\u1FFA:"\u03A9\u0300"},uo=function(){function Ee(v,x){this.mode=void 0,this.gullet=void 0,this.settings=void 0,this.leftrightDepth=void 0,this.nextToken=void 0,this.mode="math",this.gullet=new sh(v,x,this.mode),this.settings=x,this.leftrightDepth=0}var f=Ee.prototype;return f.expect=function(x,Q){if(Q===void 0&&(Q=!0),this.fetch().text!==x)throw new I("Expected '"+x+"', got '"+this.fetch().text+"'",this.fetch());Q&&this.consume()},f.consume=function(){this.nextToken=null},f.fetch=function(){return this.nextToken==null&&(this.nextToken=this.gullet.expandNextToken()),this.nextToken},f.switchMode=function(x){this.mode=x,this.gullet.switchMode(x)},f.parse=function(){this.gullet.beginGroup(),this.settings.colorIsTextColor&&this.gullet.macros.set("\\color","\\textcolor");var x=this.parseExpression(!1);return this.expect("EOF"),this.gullet.endGroup(),x},f.parseExpression=function(x,Q){for(var re=[];;){this.mode==="math"&&this.consumeSpaces();var be=this.fetch();if(Ee.endOfExpression.indexOf(be.text)!==-1||Q&&be.text===Q||x&&Ho[be.text]&&Ho[be.text].infix)break;var Ze=this.parseAtom(Q);if(!Ze)break;re.push(Ze)}return this.mode==="text"&&this.formLigatures(re),this.handleInfixNodes(re)},f.handleInfixNodes=function(x){for(var Q=-1,re,be=0;be<x.length;be++){var Ze=Ws(x[be],"infix");if(Ze){if(Q!==-1)throw new I("only one infix operator per group",Ze.token);Q=be,re=Ze.replaceWith}}if(Q!==-1&&re){var nt,St,Jt=x.slice(0,Q),dr=x.slice(Q+1);Jt.length===1&&Jt[0].type==="ordgroup"?nt=Jt[0]:nt={type:"ordgroup",mode:this.mode,body:Jt},dr.length===1&&dr[0].type==="ordgroup"?St=dr[0]:St={type:"ordgroup",mode:this.mode,body:dr};var Or;return re==="\\\\abovefrac"?Or=this.callFunction(re,[nt,x[Q],St],[]):Or=this.callFunction(re,[nt,St],[]),[Or]}else return x},f.handleSupSubscript=function(x){var Q=this.fetch(),re=Q.text;this.consume();var be=this.parseGroup(x,!1,Ee.SUPSUB_GREEDINESS,void 0,void 0,!0);if(!be)throw new I("Expected group after '"+re+"'",Q);return be},f.formatUnsupportedCmd=function(x){for(var Q=[],re=0;re<x.length;re++)Q.push({type:"textord",mode:"text",text:x[re]});var be={type:"text",mode:this.mode,body:Q},Ze={type:"color",mode:this.mode,color:this.settings.errorColor,body:[be]};return Ze},f.parseAtom=function(x){var Q=this.parseGroup("atom",!1,null,x);if(this.mode==="text")return Q;for(var re,be;;){this.consumeSpaces();var Ze=this.fetch();if(Ze.text==="\\limits"||Ze.text==="\\nolimits"){var nt=Ws(Q,"op");if(nt){var St=Ze.text==="\\limits";nt.limits=St,nt.alwaysHandleSupSub=!0}else if(nt=Ws(Q,"operatorname"),nt&&nt.alwaysHandleSupSub){var Jt=Ze.text==="\\limits";nt.limits=Jt}else throw new I("Limit controls must follow a math operator",Ze);this.consume()}else if(Ze.text==="^"){if(re)throw new I("Double superscript",Ze);re=this.handleSupSubscript("superscript")}else if(Ze.text==="_"){if(be)throw new I("Double subscript",Ze);be=this.handleSupSubscript("subscript")}else if(Ze.text==="'"){if(re)throw new I("Double superscript",Ze);var dr={type:"textord",mode:this.mode,text:"\\prime"},Or=[dr];for(this.consume();this.fetch().text==="'";)Or.push(dr),this.consume();this.fetch().text==="^"&&Or.push(this.handleSupSubscript("superscript")),re={type:"ordgroup",mode:this.mode,body:Or}}else break}return re||be?{type:"supsub",mode:this.mode,base:Q,sup:re,sub:be}:Q},f.parseFunction=function(x,Q,re){var be=this.fetch(),Ze=be.text,nt=Ho[Ze];if(!nt)return null;if(this.consume(),re!=null&&nt.greediness<=re)throw new I("Got function '"+Ze+"' with no arguments"+(Q?" as "+Q:""),be);if(this.mode==="text"&&!nt.allowedInText)throw new I("Can't use function '"+Ze+"' in text mode",be);if(this.mode==="math"&&nt.allowedInMath===!1)throw new I("Can't use function '"+Ze+"' in math mode",be);var St=this.parseArguments(Ze,nt),Jt=St.args,dr=St.optArgs;return this.callFunction(Ze,Jt,dr,be,x)},f.callFunction=function(x,Q,re,be,Ze){var nt={funcName:x,parser:this,token:be,breakOnTokenText:Ze},St=Ho[x];if(St&&St.handler)return St.handler(nt,Q,re);throw new I("No function handler for "+x)},f.parseArguments=function(x,Q){var re=Q.numArgs+Q.numOptionalArgs;if(re===0)return{args:[],optArgs:[]};for(var be=Q.greediness,Ze=[],nt=[],St=0;St<re;St++){var Jt=Q.argTypes&&Q.argTypes[St],dr=St<Q.numOptionalArgs,Or=St>0&&!dr||St===0&&!dr&&this.mode==="math",on=this.parseGroupOfType("argument to '"+x+"'",Jt,dr,be,Or);if(!on){if(dr){nt.push(null);continue}throw new I("Expected group after '"+x+"'",this.fetch())}(dr?nt:Ze).push(on)}return{args:Ze,optArgs:nt}},f.parseGroupOfType=function(x,Q,re,be,Ze){switch(Q){case"color":return Ze&&this.consumeSpaces(),this.parseColorGroup(re);case"size":return Ze&&this.consumeSpaces(),this.parseSizeGroup(re);case"url":return this.parseUrlGroup(re,Ze);case"math":case"text":return this.parseGroup(x,re,be,void 0,Q,Ze);case"hbox":{var nt=this.parseGroup(x,re,be,void 0,"text",Ze);if(!nt)return nt;var St={type:"styling",mode:nt.mode,body:[nt],style:"text"};return St}case"raw":{if(Ze&&this.consumeSpaces(),re&&this.fetch().text==="{")return null;var Jt=this.parseStringGroup("raw",re,!0);if(Jt)return{type:"raw",mode:"text",string:Jt.text};throw new I("Expected raw group",this.fetch())}case"original":case null:case void 0:return this.parseGroup(x,re,be,void 0,void 0,Ze);default:throw new I("Unknown group type as "+x,this.fetch())}},f.consumeSpaces=function(){for(;this.fetch().text===" ";)this.consume()},f.parseStringGroup=function(x,Q,re){var be=Q?"[":"{",Ze=Q?"]":"}",nt=this.fetch();if(nt.text!==be){if(Q)return null;if(re&&nt.text!=="EOF"&&/[^{}[\]]/.test(nt.text))return this.consume(),nt}var St=this.mode;this.mode="text",this.expect(be);for(var Jt="",dr=this.fetch(),Or=0,on=dr,tn;(tn=this.fetch()).text!==Ze||re&&Or>0;){switch(tn.text){case"EOF":throw new I("Unexpected end of input in "+x,dr.range(on,Jt));case be:Or++;break;case Ze:Or--;break}on=tn,Jt+=on.text,this.consume()}return this.expect(Ze),this.mode=St,dr.range(on,Jt)},f.parseRegexGroup=function(x,Q){var re=this.mode;this.mode="text";for(var be=this.fetch(),Ze=be,nt="",St;(St=this.fetch()).text!=="EOF"&&x.test(nt+St.text);)Ze=St,nt+=Ze.text,this.consume();if(nt==="")throw new I("Invalid "+Q+": '"+be.text+"'",be);return this.mode=re,be.range(Ze,nt)},f.parseColorGroup=function(x){var Q=this.parseStringGroup("color",x);if(!Q)return null;var re=/^(#[a-f0-9]{3}|#?[a-f0-9]{6}|[a-z]+)$/i.exec(Q.text);if(!re)throw new I("Invalid color: '"+Q.text+"'",Q);var be=re[0];return/^[0-9a-f]{6}$/i.test(be)&&(be="#"+be),{type:"color-token",mode:this.mode,color:be}},f.parseSizeGroup=function(x){var Q,re=!1;if(!x&&this.fetch().text!=="{"?Q=this.parseRegexGroup(/^[-+]? *(?:$|\d+|\d+\.\d*|\.\d*) *[a-z]{0,2} *$/,"size"):Q=this.parseStringGroup("size",x),!Q)return null;!x&&Q.text.length===0&&(Q.text="0pt",re=!0);var be=/([-+]?) *(\d+(?:\.\d*)?|\.\d+) *([a-z]{2})/.exec(Q.text);if(!be)throw new I("Invalid size: '"+Q.text+"'",Q);var Ze={number:+(be[1]+be[2]),unit:be[3]};if(!ps(Ze))throw new I("Invalid unit: '"+Ze.unit+"'",Q);return{type:"size",mode:this.mode,value:Ze,isBlank:re}},f.parseUrlGroup=function(x,Q){this.gullet.lexer.setCatcode("%",13);var re=this.parseStringGroup("url",x,!0);if(this.gullet.lexer.setCatcode("%",14),!re)return null;var be=re.text.replace(/\\([#$%&~_^{}])/g,"$1");return{type:"url",mode:this.mode,url:be}},f.parseGroup=function(x,Q,re,be,Ze,nt){var St=this.mode;Ze&&this.switchMode(Ze),nt&&this.consumeSpaces();var Jt=this.fetch(),dr=Jt.text,Or;if(Q?dr==="[":dr==="{"||dr==="\\begingroup"){this.consume();var on=Ee.endOfGroup[dr];this.gullet.beginGroup();var tn=this.parseExpression(!1,on),Fn=this.fetch();this.expect(on),this.gullet.endGroup(),Or={type:"ordgroup",mode:this.mode,loc:Fe.range(Jt,Fn),body:tn,semisimple:dr==="\\begingroup"||void 0}}else if(Q)Or=null;else if(Or=this.parseFunction(be,x,re)||this.parseSymbol(),Or==null&&dr[0]==="\\"&&!Du.hasOwnProperty(dr)){if(this.settings.throwOnError)throw new I("Undefined control sequence: "+dr,Jt);Or=this.formatUnsupportedCmd(dr),this.consume()}return Ze&&this.switchMode(St),Or},f.formLigatures=function(x){for(var Q=x.length-1,re=0;re<Q;++re){var be=x[re],Ze=be.text;Ze==="-"&&x[re+1].text==="-"&&(re+1<Q&&x[re+2].text==="-"?(x.splice(re,3,{type:"textord",mode:"text",loc:Fe.range(be,x[re+2]),text:"---"}),Q-=2):(x.splice(re,2,{type:"textord",mode:"text",loc:Fe.range(be,x[re+1]),text:"--"}),Q-=1)),(Ze==="'"||Ze==="`")&&x[re+1].text===Ze&&(x.splice(re,2,{type:"textord",mode:"text",loc:Fe.range(be,x[re+1]),text:Ze+Ze}),Q-=1)}},f.parseSymbol=function(){var x=this.fetch(),Q=x.text;if(/^\\verb[^a-zA-Z]/.test(Q)){this.consume();var re=Q.slice(5),be=re.charAt(0)==="*";if(be&&(re=re.slice(1)),re.length<2||re.charAt(0)!==re.slice(-1))throw new I(`\\verb assertion failed --
|
|
|
please report what input caused this bug`);return re=re.slice(1,-1),{type:"verb",mode:"text",body:re,star:be}}kc.hasOwnProperty(Q[0])&&!An[this.mode][Q[0]]&&(this.settings.strict&&this.mode==="math"&&this.settings.reportNonstrict("unicodeTextInMathMode",'Accented Unicode text character "'+Q[0]+'" used in math mode',x),Q=kc[Q[0]]+Q.substr(1));var Ze=tf.exec(Q);Ze&&(Q=Q.substring(0,Ze.index),Q==="i"?Q="\u0131":Q==="j"&&(Q="\u0237"));var nt;if(An[this.mode][Q]){this.settings.strict&&this.mode==="math"&&Gi.indexOf(Q)>=0&&this.settings.reportNonstrict("unicodeTextInMathMode",'Latin-1/Unicode text character "'+Q[0]+'" used in math mode',x);var St=An[this.mode][Q].group,Jt=Fe.range(x),dr;if(Pr.hasOwnProperty(St)){var Or=St;dr={type:"atom",mode:this.mode,family:Or,loc:Jt,text:Q}}else dr={type:St,mode:this.mode,loc:Jt,text:Q};nt=dr}else if(Q.charCodeAt(0)>=128)this.settings.strict&&(ut(Q.charCodeAt(0))?this.mode==="math"&&this.settings.reportNonstrict("unicodeTextInMathMode",'Unicode text character "'+Q[0]+'" used in math mode',x):this.settings.reportNonstrict("unknownSymbol",'Unrecognized Unicode character "'+Q[0]+'"'+(" ("+Q.charCodeAt(0)+")"),x)),nt={type:"textord",mode:"text",loc:Fe.range(x),text:Q};else return null;if(this.consume(),Ze)for(var on=0;on<Ze[0].length;on++){var tn=Ze[0][on];if(!ku[tn])throw new I("Unknown accent ' "+tn+"'",x);var Fn=ku[tn][this.mode];if(!Fn)throw new I("Accent "+tn+" unsupported in "+this.mode+" mode",x);nt={type:"accent",mode:this.mode,loc:Fe.range(x),label:Fn,isStretchy:!1,isShifty:!0,base:nt}}return nt},Ee}();uo.endOfExpression=["}","\\endgroup","\\end","\\right","&"],uo.endOfGroup={"[":"]","{":"}","\\begingroup":"\\endgroup"},uo.SUPSUB_GREEDINESS=1;var tl=function(f,v){if(!(typeof f=="string"||f instanceof String))throw new TypeError("KaTeX can only parse string typed expression");var x=new uo(f,v);delete x.gullet.macros.current["\\df@tag"];var Q=x.parse();if(x.gullet.macros.get("\\df@tag")){if(!v.displayMode)throw new I("\\tag works only in display equations");x.gullet.feed("\\df@tag"),Q=[{type:"tag",mode:"text",body:Q,tag:x.parse()}]}return Q},Ql=tl,c0=function(f,v,x){v.textContent="";var Q=h0(f,x).toNode();v.appendChild(Q)};typeof document!="undefined"&&document.compatMode!=="CSS1Compat"&&(typeof console!="undefined"&&console.warn("Warning: KaTeX doesn't work in quirks mode. Make sure your website has a suitable doctype."),c0=function(){throw new I("KaTeX doesn't work in quirks mode.")});var Hl=function(f,v){var x=h0(f,v).toMarkup();return x},nf=function(f,v){var x=new G(v);return Ql(f,x)},ah=function(f,v,x){if(x.throwOnError||!(f instanceof I))throw f;var Q=Rr.makeSpan(["katex-error"],[new Se(v)]);return Q.setAttribute("title",f.toString()),Q.setAttribute("style","color:"+x.errorColor),Q},h0=function(f,v){var x=new G(v);try{var Q=Ql(f,x);return qa(Q,f,x)}catch(re){return ah(re,f,x)}},sf=function(f,v){var x=new G(v);try{var Q=Ql(f,x);return pl(Q,f,x)}catch(re){return ah(re,f,x)}},cu={version:"0.11.1",render:c0,renderToString:Hl,ParseError:I,__parse:nf,__renderToDomTree:h0,__renderToHTMLTree:sf,__setFontMetrics:Wt,__defineSymbol:Y,__defineMacro:lt,__domTree:{Span:D,Anchor:ae,SymbolNode:Se,SvgNode:gt,PathNode:xt,LineNode:Et}},af=je.default=cu}]).default})},32834:function(wn){(function(Sr,je){wn.exports=je()})(this,function(){"use strict";function Sr(ct,Dt){for(var Kt=0;Kt<Dt.length;Kt++){var Oe=Dt[Kt];Oe.enumerable=Oe.enumerable||!1,Oe.configurable=!0,"value"in Oe&&(Oe.writable=!0),Object.defineProperty(ct,Oe.key,Oe)}}function je(ct,Dt,Kt){return Dt&&Sr(ct.prototype,Dt),Kt&&Sr(ct,Kt),ct}function Ie(ct,Dt){if(ct){if(typeof ct=="string")return mt(ct,Dt);var Kt=Object.prototype.toString.call(ct).slice(8,-1);if(Kt==="Object"&&ct.constructor&&(Kt=ct.constructor.name),Kt==="Map"||Kt==="Set")return Array.from(ct);if(Kt==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(Kt))return mt(ct,Dt)}}function mt(ct,Dt){(Dt==null||Dt>ct.length)&&(Dt=ct.length);for(var Kt=0,Oe=new Array(Dt);Kt<Dt;Kt++)Oe[Kt]=ct[Kt];return Oe}function Fe(ct,Dt){var Kt=typeof Symbol!="undefined"&&ct[Symbol.iterator]||ct["@@iterator"];if(Kt)return(Kt=Kt.call(ct)).next.bind(Kt);if(Array.isArray(ct)||(Kt=Ie(ct))||Dt&&ct&&typeof ct.length=="number"){Kt&&(ct=Kt);var Oe=0;return function(){return Oe>=ct.length?{done:!0}:{done:!1,value:ct[Oe++]}}}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 Me={exports:{}};function de(){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 I(ct){Me.exports.defaults=ct}Me.exports={defaults:de(),getDefaults:de,changeDefaults:I};var Be=/[&<>"']/,R=/[&<>"']/g,u=/[<>"']|&(?!#?\w+;)/,C=/[<>"']|&(?!#?\w+;)/g,H={"&":"&","<":"<",">":">",'"':""","'":"'"},w=function(Dt){return H[Dt]};function L(ct,Dt){if(Dt){if(Be.test(ct))return ct.replace(R,w)}else if(u.test(ct))return ct.replace(C,w);return ct}var B=/&(#(?:\d+)|(?:#x[0-9A-Fa-f]+)|(?:\w+));?/ig;function k(ct){return ct.replace(B,function(Dt,Kt){return Kt=Kt.toLowerCase(),Kt==="colon"?":":Kt.charAt(0)==="#"?Kt.charAt(1)==="x"?String.fromCharCode(parseInt(Kt.substring(2),16)):String.fromCharCode(+Kt.substring(1)):""})}var K=/(^|[^\[])\^/g;function V(ct,Dt){ct=ct.source||ct,Dt=Dt||"";var Kt={replace:function(Ve,at){return at=at.source||at,at=at.replace(K,"$1"),ct=ct.replace(Ve,at),Kt},getRegex:function(){return new RegExp(ct,Dt)}};return Kt}var P=/[^\w:]/g,G=/^$|^[a-z][a-z0-9+.-]*:|^[?#]/i;function Z(ct,Dt,Kt){if(ct){var Oe;try{Oe=decodeURIComponent(k(Kt)).replace(P,"").toLowerCase()}catch(Ve){return null}if(Oe.indexOf("javascript:")===0||Oe.indexOf("vbscript:")===0||Oe.indexOf("data:")===0)return null}Dt&&!G.test(Kt)&&(Kt=Qe(Dt,Kt));try{Kt=encodeURI(Kt).replace(/%25/g,"%")}catch(Ve){return null}return Kt}var se={},oe=/^[^:]+:\/*[^/]*$/,De=/^([^:]+:)[\s\S]*$/,He=/^([^:]+:\/*[^/]*)[\s\S]*$/;function Qe(ct,Dt){se[" "+ct]||(oe.test(ct)?se[" "+ct]=ct+"/":se[" "+ct]=Pe(ct,"/",!0)),ct=se[" "+ct];var Kt=ct.indexOf(":")===-1;return Dt.substring(0,2)==="//"?Kt?Dt:ct.replace(De,"$1")+Dt:Dt.charAt(0)==="/"?Kt?Dt:ct.replace(He,"$1")+Dt:ct+Dt}var Ue={exec:function(){}};function qe(ct){for(var Dt=1,Kt,Oe;Dt<arguments.length;Dt++){Kt=arguments[Dt];for(Oe in Kt)Object.prototype.hasOwnProperty.call(Kt,Oe)&&(ct[Oe]=Kt[Oe])}return ct}function st(ct,Dt){var Kt=ct.replace(/\|/g,function(at,Pt,Le){for(var Kr=!1,ht=Pt;--ht>=0&&Le[ht]==="\\";)Kr=!Kr;return Kr?"|":" |"}),Oe=Kt.split(/ \|/),Ve=0;if(Oe.length>Dt)Oe.splice(Dt);else for(;Oe.length<Dt;)Oe.push("");for(;Ve<Oe.length;Ve++)Oe[Ve]=Oe[Ve].trim().replace(/\\\|/g,"|");return Oe}function Pe(ct,Dt,Kt){var Oe=ct.length;if(Oe===0)return"";for(var Ve=0;Ve<Oe;){var at=ct.charAt(Oe-Ve-1);if(at===Dt&&!Kt)Ve++;else if(at!==Dt&&Kt)Ve++;else break}return ct.substr(0,Oe-Ve)}function pe(ct,Dt){if(ct.indexOf(Dt[1])===-1)return-1;for(var Kt=ct.length,Oe=0,Ve=0;Ve<Kt;Ve++)if(ct[Ve]==="\\")Ve++;else if(ct[Ve]===Dt[0])Oe++;else if(ct[Ve]===Dt[1]&&(Oe--,Oe<0))return Ve;return-1}function M(ct){ct&&ct.sanitize&&!ct.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 ye(ct,Dt){if(Dt<1)return"";for(var Kt="";Dt>1;)Dt&1&&(Kt+=ct),Dt>>=1,ct+=ct;return Kt+ct}var Te={escape:L,unescape:k,edit:V,cleanUrl:Z,resolveUrl:Qe,noopTest:Ue,merge:qe,splitCells:st,rtrim:Pe,findClosingBracket:pe,checkSanitizeDeprecation:M,repeatString:ye},me=Me.exports.defaults,xe=Te.rtrim,z=Te.splitCells,j=Te.escape,ee=Te.findClosingBracket;function _e(ct,Dt,Kt){var Oe=Dt.href,Ve=Dt.title?j(Dt.title):null,at=ct[1].replace(/\\([\[\]])/g,"$1");return ct[0].charAt(0)!=="!"?{type:"link",raw:Kt,href:Oe,title:Ve,text:at}:{type:"image",raw:Kt,href:Oe,title:Ve,text:j(at)}}function ut(ct,Dt){var Kt=ct.match(/^(\s+)(?:```)/);if(Kt===null)return Dt;var Oe=Kt[1];return Dt.split(`
|
|
|
`).map(function(Ve){var at=Ve.match(/^\s+/);if(at===null)return Ve;var Pt=at[0];return Pt.length>=Oe.length?Ve.slice(Oe.length):Ve}).join(`
|
|
|
`)}var Ft=function(){function ct(Kt){this.options=Kt||me}var Dt=ct.prototype;return Dt.space=function(Oe){var Ve=this.rules.block.newline.exec(Oe);if(Ve)return Ve[0].length>1?{type:"space",raw:Ve[0]}:{raw:`
|
|
|
`}},Dt.code=function(Oe){var Ve=this.rules.block.code.exec(Oe);if(Ve){var at=Ve[0].replace(/^ {1,4}/gm,"");return{type:"code",raw:Ve[0],codeBlockStyle:"indented",text:this.options.pedantic?at:xe(at,`
|
|
|
`)}}},Dt.fences=function(Oe){var Ve=this.rules.block.fences.exec(Oe);if(Ve){var at=Ve[0],Pt=ut(at,Ve[3]||"");return{type:"code",raw:at,lang:Ve[2]?Ve[2].trim():Ve[2],text:Pt}}},Dt.heading=function(Oe){var Ve=this.rules.block.heading.exec(Oe);if(Ve){var at=Ve[2].trim();if(/#$/.test(at)){var Pt=xe(at,"#");(this.options.pedantic||!Pt||/ $/.test(Pt))&&(at=Pt.trim())}return{type:"heading",raw:Ve[0],depth:Ve[1].length,text:at}}},Dt.nptable=function(Oe){var Ve=this.rules.block.nptable.exec(Oe);if(Ve){var at={type:"table",header:z(Ve[1].replace(/^ *| *\| *$/g,"")),align:Ve[2].replace(/^ *|\| *$/g,"").split(/ *\| */),cells:Ve[3]?Ve[3].replace(/\n$/,"").split(`
|
|
|
`):[],raw:Ve[0]};if(at.header.length===at.align.length){var Pt=at.align.length,Le;for(Le=0;Le<Pt;Le++)/^ *-+: *$/.test(at.align[Le])?at.align[Le]="right":/^ *:-+: *$/.test(at.align[Le])?at.align[Le]="center":/^ *:-+ *$/.test(at.align[Le])?at.align[Le]="left":at.align[Le]=null;for(Pt=at.cells.length,Le=0;Le<Pt;Le++)at.cells[Le]=z(at.cells[Le],at.header.length);return at}}},Dt.hr=function(Oe){var Ve=this.rules.block.hr.exec(Oe);if(Ve)return{type:"hr",raw:Ve[0]}},Dt.blockquote=function(Oe){var Ve=this.rules.block.blockquote.exec(Oe);if(Ve){var at=Ve[0].replace(/^ *> ?/gm,"");return{type:"blockquote",raw:Ve[0],text:at}}},Dt.list=function(Oe){var Ve=this.rules.block.list.exec(Oe);if(Ve){var at=Ve[0],Pt=Ve[2],Le=Pt.length>1,Kr={type:"list",raw:at,ordered:Le,start:Le?+Pt.slice(0,-1):"",loose:!1,items:[]},ht=Ve[0].match(this.rules.block.item),Sn=!1,Bn,ri,ws,Ci,Kn,Is,Aa,$i,Ui,mn=ht.length;ws=this.rules.block.listItemStart.exec(ht[0]);for(var ln=0;ln<mn;ln++){if(Bn=ht[ln],at=Bn,this.options.pedantic||(Ui=Bn.match(new RegExp("\\n\\s*\\n {0,"+(ws[0].length-1)+"}\\S")),Ui&&(Kn=Bn.length-Ui.index+ht.slice(ln+1).join(`
|
|
|
`).length,Kr.raw=Kr.raw.substring(0,Kr.raw.length-Kn),Bn=Bn.substring(0,Ui.index),at=Bn,mn=ln+1)),ln!==mn-1){if(Ci=this.rules.block.listItemStart.exec(ht[ln+1]),this.options.pedantic?Ci[1].length>ws[1].length:Ci[1].length>=ws[0].length||Ci[1].length>3){ht.splice(ln,2,ht[ln]+(!this.options.pedantic&&Ci[1].length<ws[0].length&&!ht[ln].match(/\n$/)?"":`
|
|
|
`)+ht[ln+1]),ln--,mn--;continue}else(!this.options.pedantic||this.options.smartLists?Ci[2][Ci[2].length-1]!==Pt[Pt.length-1]:Le===(Ci[2].length===1))&&(Kn=ht.slice(ln+1).join(`
|
|
|
`).length,Kr.raw=Kr.raw.substring(0,Kr.raw.length-Kn),ln=mn-1);ws=Ci}ri=Bn.length,Bn=Bn.replace(/^ *([*+-]|\d+[.)]) ?/,""),~Bn.indexOf(`
|
|
|
`)&&(ri-=Bn.length,Bn=this.options.pedantic?Bn.replace(/^ {1,4}/gm,""):Bn.replace(new RegExp("^ {1,"+ri+"}","gm"),"")),Bn=xe(Bn,`
|
|
|
`),ln!==mn-1&&(at=at+`
|
|
|
`),Is=Sn||/\n\n(?!\s*$)/.test(at),ln!==mn-1&&(Sn=at.slice(-2)===`
|
|
|
|
|
|
`,Is||(Is=Sn)),Is&&(Kr.loose=!0),this.options.gfm&&(Aa=/^\[[ xX]\] /.test(Bn),$i=void 0,Aa&&($i=Bn[1]!==" ",Bn=Bn.replace(/^\[[ xX]\] +/,""))),Kr.items.push({type:"list_item",raw:at,task:Aa,checked:$i,loose:Is,text:Bn})}return Kr}},Dt.html=function(Oe){var Ve=this.rules.block.html.exec(Oe);if(Ve)return{type:this.options.sanitize?"paragraph":"html",raw:Ve[0],pre:!this.options.sanitizer&&(Ve[1]==="pre"||Ve[1]==="script"||Ve[1]==="style"),text:this.options.sanitize?this.options.sanitizer?this.options.sanitizer(Ve[0]):j(Ve[0]):Ve[0]}},Dt.def=function(Oe){var Ve=this.rules.block.def.exec(Oe);if(Ve){Ve[3]&&(Ve[3]=Ve[3].substring(1,Ve[3].length-1));var at=Ve[1].toLowerCase().replace(/\s+/g," ");return{type:"def",tag:at,raw:Ve[0],href:Ve[2],title:Ve[3]}}},Dt.table=function(Oe){var Ve=this.rules.block.table.exec(Oe);if(Ve){var at={type:"table",header:z(Ve[1].replace(/^ *| *\| *$/g,"")),align:Ve[2].replace(/^ *|\| *$/g,"").split(/ *\| */),cells:Ve[3]?Ve[3].replace(/\n$/,"").split(`
|
|
|
`):[]};if(at.header.length===at.align.length){at.raw=Ve[0];var Pt=at.align.length,Le;for(Le=0;Le<Pt;Le++)/^ *-+: *$/.test(at.align[Le])?at.align[Le]="right":/^ *:-+: *$/.test(at.align[Le])?at.align[Le]="center":/^ *:-+ *$/.test(at.align[Le])?at.align[Le]="left":at.align[Le]=null;for(Pt=at.cells.length,Le=0;Le<Pt;Le++)at.cells[Le]=z(at.cells[Le].replace(/^ *\| *| *\| *$/g,""),at.header.length);return at}}},Dt.lheading=function(Oe){var Ve=this.rules.block.lheading.exec(Oe);if(Ve)return{type:"heading",raw:Ve[0],depth:Ve[2].charAt(0)==="="?1:2,text:Ve[1]}},Dt.paragraph=function(Oe){var Ve=this.rules.block.paragraph.exec(Oe);if(Ve)return{type:"paragraph",raw:Ve[0],text:Ve[1].charAt(Ve[1].length-1)===`
|
|
|
`?Ve[1].slice(0,-1):Ve[1]}},Dt.text=function(Oe){var Ve=this.rules.block.text.exec(Oe);if(Ve)return{type:"text",raw:Ve[0],text:Ve[0]}},Dt.escape=function(Oe){var Ve=this.rules.inline.escape.exec(Oe);if(Ve)return{type:"escape",raw:Ve[0],text:j(Ve[1])}},Dt.tag=function(Oe,Ve,at){var Pt=this.rules.inline.tag.exec(Oe);if(Pt)return!Ve&&/^<a /i.test(Pt[0])?Ve=!0:Ve&&/^<\/a>/i.test(Pt[0])&&(Ve=!1),!at&&/^<(pre|code|kbd|script)(\s|>)/i.test(Pt[0])?at=!0:at&&/^<\/(pre|code|kbd|script)(\s|>)/i.test(Pt[0])&&(at=!1),{type:this.options.sanitize?"text":"html",raw:Pt[0],inLink:Ve,inRawBlock:at,text:this.options.sanitize?this.options.sanitizer?this.options.sanitizer(Pt[0]):j(Pt[0]):Pt[0]}},Dt.link=function(Oe){var Ve=this.rules.inline.link.exec(Oe);if(Ve){var at=Ve[2].trim();if(!this.options.pedantic&&/^</.test(at)){if(!/>$/.test(at))return;var Pt=xe(at.slice(0,-1),"\\");if((at.length-Pt.length)%2===0)return}else{var Le=ee(Ve[2],"()");if(Le>-1){var Kr=Ve[0].indexOf("!")===0?5:4,ht=Kr+Ve[1].length+Le;Ve[2]=Ve[2].substring(0,Le),Ve[0]=Ve[0].substring(0,ht).trim(),Ve[3]=""}}var Sn=Ve[2],Bn="";if(this.options.pedantic){var ri=/^([^'"]*[^\s])\s+(['"])(.*)\2/.exec(Sn);ri&&(Sn=ri[1],Bn=ri[3])}else Bn=Ve[3]?Ve[3].slice(1,-1):"";return Sn=Sn.trim(),/^</.test(Sn)&&(this.options.pedantic&&!/>$/.test(at)?Sn=Sn.slice(1):Sn=Sn.slice(1,-1)),_e(Ve,{href:Sn&&Sn.replace(this.rules.inline._escapes,"$1"),title:Bn&&Bn.replace(this.rules.inline._escapes,"$1")},Ve[0])}},Dt.reflink=function(Oe,Ve){var at;if((at=this.rules.inline.reflink.exec(Oe))||(at=this.rules.inline.nolink.exec(Oe))){var Pt=(at[2]||at[1]).replace(/\s+/g," ");if(Pt=Ve[Pt.toLowerCase()],!Pt||!Pt.href){var Le=at[0].charAt(0);return{type:"text",raw:Le,text:Le}}return _e(at,Pt,at[0])}},Dt.emStrong=function(Oe,Ve,at){at===void 0&&(at="");var Pt=this.rules.inline.emStrong.lDelim.exec(Oe);if(Pt&&!(Pt[3]&&at.match(/(?:[0-9A-Za-z\xAA\xB2\xB3\xB5\xB9\xBA\xBC-\xBE\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0370-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u048A-\u052F\u0531-\u0556\u0559\u0560-\u0588\u05D0-\u05EA\u05EF-\u05F2\u0620-\u064A\u0660-\u0669\u066E\u066F\u0671-\u06D3\u06D5\u06E5\u06E6\u06EE-\u06FC\u06FF\u0710\u0712-\u072F\u074D-\u07A5\u07B1\u07C0-\u07EA\u07F4\u07F5\u07FA\u0800-\u0815\u081A\u0824\u0828\u0840-\u0858\u0860-\u086A\u08A0-\u08B4\u08B6-\u08C7\u0904-\u0939\u093D\u0950\u0958-\u0961\u0966-\u096F\u0971-\u0980\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BD\u09CE\u09DC\u09DD\u09DF-\u09E1\u09E6-\u09F1\u09F4-\u09F9\u09FC\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A59-\u0A5C\u0A5E\u0A66-\u0A6F\u0A72-\u0A74\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABD\u0AD0\u0AE0\u0AE1\u0AE6-\u0AEF\u0AF9\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3D\u0B5C\u0B5D\u0B5F-\u0B61\u0B66-\u0B6F\u0B71-\u0B77\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BD0\u0BE6-\u0BF2\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D\u0C58-\u0C5A\u0C60\u0C61\u0C66-\u0C6F\u0C78-\u0C7E\u0C80\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBD\u0CDE\u0CE0\u0CE1\u0CE6-\u0CEF\u0CF1\u0CF2\u0D04-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D\u0D4E\u0D54-\u0D56\u0D58-\u0D61\u0D66-\u0D78\u0D7A-\u0D7F\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0DE6-\u0DEF\u0E01-\u0E30\u0E32\u0E33\u0E40-\u0E46\u0E50-\u0E59\u0E81\u0E82\u0E84\u0E86-\u0E8A\u0E8C-\u0EA3\u0EA5\u0EA7-\u0EB0\u0EB2\u0EB3\u0EBD\u0EC0-\u0EC4\u0EC6\u0ED0-\u0ED9\u0EDC-\u0EDF\u0F00\u0F20-\u0F33\u0F40-\u0F47\u0F49-\u0F6C\u0F88-\u0F8C\u1000-\u102A\u103F-\u1049\u1050-\u1055\u105A-\u105D\u1061\u1065\u1066\u106E-\u1070\u1075-\u1081\u108E\u1090-\u1099\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u1369-\u137C\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16EE-\u16F8\u1700-\u170C\u170E-\u1711\u1720-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17D7\u17DC\u17E0-\u17E9\u17F0-\u17F9\u1810-\u1819\u1820-\u1878\u1880-\u1884\u1887-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191E\u1946-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u19D0-\u19DA\u1A00-\u1A16\u1A20-\u1A54\u1A80-\u1A89\u1A90-\u1A99\u1AA7\u1B05-\u1B33\u1B45-\u1B4B\u1B50-\u1B59\u1B83-\u1BA0\u1BAE-\u1BE5\u1C00-\u1C23\u1C40-\u1C49\u1C4D-\u1C7D\u1C80-\u1C88\u1C90-\u1CBA\u1CBD-\u1CBF\u1CE9-\u1CEC\u1CEE-\u1CF3\u1CF5\u1CF6\u1CFA\u1D00-\u1DBF\u1E00-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u2070\u2071\u2074-\u2079\u207F-\u2089\u2090-\u209C\u2102\u2107\u210A-\u2113\u2115\u2119-\u211D\u2124\u2126\u2128\u212A-\u212D\u212F-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2150-\u2189\u2460-\u249B\u24EA-\u24FF\u2776-\u2793\u2C00-\u2C2E\u2C30-\u2C5E\u2C60-\u2CE4\u2CEB-\u2CEE\u2CF2\u2CF3\u2CFD\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D80-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u2E2F\u3005-\u3007\u3021-\u3029\u3031-\u3035\u3038-\u303C\u3041-\u3096\u309D-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312F\u3131-\u318E\u3192-\u3195\u31A0-\u31BF\u31F0-\u31FF\u3220-\u3229\u3248-\u324F\u3251-\u325F\u3280-\u3289\u32B1-\u32BF\u3400-\u4DBF\u4E00-\u9FFC\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA62B\uA640-\uA66E\uA67F-\uA69D\uA6A0-\uA6EF\uA717-\uA71F\uA722-\uA788\uA78B-\uA7BF\uA7C2-\uA7CA\uA7F5-\uA801\uA803-\uA805\uA807-\uA80A\uA80C-\uA822\uA830-\uA835\uA840-\uA873\uA882-\uA8B3\uA8D0-\uA8D9\uA8F2-\uA8F7\uA8FB\uA8FD\uA8FE\uA900-\uA925\uA930-\uA946\uA960-\uA97C\uA984-\uA9B2\uA9CF-\uA9D9\uA9E0-\uA9E4\uA9E6-\uA9FE\uAA00-\uAA28\uAA40-\uAA42\uAA44-\uAA4B\uAA50-\uAA59\uAA60-\uAA76\uAA7A\uAA7E-\uAAAF\uAAB1\uAAB5\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAADD\uAAE0-\uAAEA\uAAF2-\uAAF4\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB69\uAB70-\uABE2\uABF0-\uABF9\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D\uFB1F-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE70-\uFE74\uFE76-\uFEFC\uFF10-\uFF19\uFF21-\uFF3A\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC]|\uD800[\uDC00-\uDC0B\uDC0D-\uDC26\uDC28-\uDC3A\uDC3C\uDC3D\uDC3F-\uDC4D\uDC50-\uDC5D\uDC80-\uDCFA\uDD07-\uDD33\uDD40-\uDD78\uDD8A\uDD8B\uDE80-\uDE9C\uDEA0-\uDED0\uDEE1-\uDEFB\uDF00-\uDF23\uDF2D-\uDF4A\uDF50-\uDF75\uDF80-\uDF9D\uDFA0-\uDFC3\uDFC8-\uDFCF\uDFD1-\uDFD5]|\uD801[\uDC00-\uDC9D\uDCA0-\uDCA9\uDCB0-\uDCD3\uDCD8-\uDCFB\uDD00-\uDD27\uDD30-\uDD63\uDE00-\uDF36\uDF40-\uDF55\uDF60-\uDF67]|\uD802[\uDC00-\uDC05\uDC08\uDC0A-\uDC35\uDC37\uDC38\uDC3C\uDC3F-\uDC55\uDC58-\uDC76\uDC79-\uDC9E\uDCA7-\uDCAF\uDCE0-\uDCF2\uDCF4\uDCF5\uDCFB-\uDD1B\uDD20-\uDD39\uDD80-\uDDB7\uDDBC-\uDDCF\uDDD2-\uDE00\uDE10-\uDE13\uDE15-\uDE17\uDE19-\uDE35\uDE40-\uDE48\uDE60-\uDE7E\uDE80-\uDE9F\uDEC0-\uDEC7\uDEC9-\uDEE4\uDEEB-\uDEEF\uDF00-\uDF35\uDF40-\uDF55\uDF58-\uDF72\uDF78-\uDF91\uDFA9-\uDFAF]|\uD803[\uDC00-\uDC48\uDC80-\uDCB2\uDCC0-\uDCF2\uDCFA-\uDD23\uDD30-\uDD39\uDE60-\uDE7E\uDE80-\uDEA9\uDEB0\uDEB1\uDF00-\uDF27\uDF30-\uDF45\uDF51-\uDF54\uDFB0-\uDFCB\uDFE0-\uDFF6]|\uD804[\uDC03-\uDC37\uDC52-\uDC6F\uDC83-\uDCAF\uDCD0-\uDCE8\uDCF0-\uDCF9\uDD03-\uDD26\uDD36-\uDD3F\uDD44\uDD47\uDD50-\uDD72\uDD76\uDD83-\uDDB2\uDDC1-\uDDC4\uDDD0-\uDDDA\uDDDC\uDDE1-\uDDF4\uDE00-\uDE11\uDE13-\uDE2B\uDE80-\uDE86\uDE88\uDE8A-\uDE8D\uDE8F-\uDE9D\uDE9F-\uDEA8\uDEB0-\uDEDE\uDEF0-\uDEF9\uDF05-\uDF0C\uDF0F\uDF10\uDF13-\uDF28\uDF2A-\uDF30\uDF32\uDF33\uDF35-\uDF39\uDF3D\uDF50\uDF5D-\uDF61]|\uD805[\uDC00-\uDC34\uDC47-\uDC4A\uDC50-\uDC59\uDC5F-\uDC61\uDC80-\uDCAF\uDCC4\uDCC5\uDCC7\uDCD0-\uDCD9\uDD80-\uDDAE\uDDD8-\uDDDB\uDE00-\uDE2F\uDE44\uDE50-\uDE59\uDE80-\uDEAA\uDEB8\uDEC0-\uDEC9\uDF00-\uDF1A\uDF30-\uDF3B]|\uD806[\uDC00-\uDC2B\uDCA0-\uDCF2\uDCFF-\uDD06\uDD09\uDD0C-\uDD13\uDD15\uDD16\uDD18-\uDD2F\uDD3F\uDD41\uDD50-\uDD59\uDDA0-\uDDA7\uDDAA-\uDDD0\uDDE1\uDDE3\uDE00\uDE0B-\uDE32\uDE3A\uDE50\uDE5C-\uDE89\uDE9D\uDEC0-\uDEF8]|\uD807[\uDC00-\uDC08\uDC0A-\uDC2E\uDC40\uDC50-\uDC6C\uDC72-\uDC8F\uDD00-\uDD06\uDD08\uDD09\uDD0B-\uDD30\uDD46\uDD50-\uDD59\uDD60-\uDD65\uDD67\uDD68\uDD6A-\uDD89\uDD98\uDDA0-\uDDA9\uDEE0-\uDEF2\uDFB0\uDFC0-\uDFD4]|\uD808[\uDC00-\uDF99]|\uD809[\uDC00-\uDC6E\uDC80-\uDD43]|[\uD80C\uD81C-\uD820\uD822\uD840-\uD868\uD86A-\uD86C\uD86F-\uD872\uD874-\uD879\uD880-\uD883][\uDC00-\uDFFF]|\uD80D[\uDC00-\uDC2E]|\uD811[\uDC00-\uDE46]|\uD81A[\uDC00-\uDE38\uDE40-\uDE5E\uDE60-\uDE69\uDED0-\uDEED\uDF00-\uDF2F\uDF40-\uDF43\uDF50-\uDF59\uDF5B-\uDF61\uDF63-\uDF77\uDF7D-\uDF8F]|\uD81B[\uDE40-\uDE96\uDF00-\uDF4A\uDF50\uDF93-\uDF9F\uDFE0\uDFE1\uDFE3]|\uD821[\uDC00-\uDFF7]|\uD823[\uDC00-\uDCD5\uDD00-\uDD08]|\uD82C[\uDC00-\uDD1E\uDD50-\uDD52\uDD64-\uDD67\uDD70-\uDEFB]|\uD82F[\uDC00-\uDC6A\uDC70-\uDC7C\uDC80-\uDC88\uDC90-\uDC99]|\uD834[\uDEE0-\uDEF3\uDF60-\uDF78]|\uD835[\uDC00-\uDC54\uDC56-\uDC9C\uDC9E\uDC9F\uDCA2\uDCA5\uDCA6\uDCA9-\uDCAC\uDCAE-\uDCB9\uDCBB\uDCBD-\uDCC3\uDCC5-\uDD05\uDD07-\uDD0A\uDD0D-\uDD14\uDD16-\uDD1C\uDD1E-\uDD39\uDD3B-\uDD3E\uDD40-\uDD44\uDD46\uDD4A-\uDD50\uDD52-\uDEA5\uDEA8-\uDEC0\uDEC2-\uDEDA\uDEDC-\uDEFA\uDEFC-\uDF14\uDF16-\uDF34\uDF36-\uDF4E\uDF50-\uDF6E\uDF70-\uDF88\uDF8A-\uDFA8\uDFAA-\uDFC2\uDFC4-\uDFCB\uDFCE-\uDFFF]|\uD838[\uDD00-\uDD2C\uDD37-\uDD3D\uDD40-\uDD49\uDD4E\uDEC0-\uDEEB\uDEF0-\uDEF9]|\uD83A[\uDC00-\uDCC4\uDCC7-\uDCCF\uDD00-\uDD43\uDD4B\uDD50-\uDD59]|\uD83B[\uDC71-\uDCAB\uDCAD-\uDCAF\uDCB1-\uDCB4\uDD01-\uDD2D\uDD2F-\uDD3D\uDE00-\uDE03\uDE05-\uDE1F\uDE21\uDE22\uDE24\uDE27\uDE29-\uDE32\uDE34-\uDE37\uDE39\uDE3B\uDE42\uDE47\uDE49\uDE4B\uDE4D-\uDE4F\uDE51\uDE52\uDE54\uDE57\uDE59\uDE5B\uDE5D\uDE5F\uDE61\uDE62\uDE64\uDE67-\uDE6A\uDE6C-\uDE72\uDE74-\uDE77\uDE79-\uDE7C\uDE7E\uDE80-\uDE89\uDE8B-\uDE9B\uDEA1-\uDEA3\uDEA5-\uDEA9\uDEAB-\uDEBB]|\uD83C[\uDD00-\uDD0C]|\uD83E[\uDFF0-\uDFF9]|\uD869[\uDC00-\uDEDD\uDF00-\uDFFF]|\uD86D[\uDC00-\uDF34\uDF40-\uDFFF]|\uD86E[\uDC00-\uDC1D\uDC20-\uDFFF]|\uD873[\uDC00-\uDEA1\uDEB0-\uDFFF]|\uD87A[\uDC00-\uDFE0]|\uD87E[\uDC00-\uDE1D]|\uD884[\uDC00-\uDF4A])/))){var Le=Pt[1]||Pt[2]||"";if(!Le||Le&&(at===""||this.rules.inline.punctuation.exec(at))){var Kr=Pt[0].length-1,ht,Sn,Bn=Kr,ri=0,ws=Pt[0][0]==="*"?this.rules.inline.emStrong.rDelimAst:this.rules.inline.emStrong.rDelimUnd;for(ws.lastIndex=0,Ve=Ve.slice(-1*Oe.length+Kr);(Pt=ws.exec(Ve))!=null;)if(ht=Pt[1]||Pt[2]||Pt[3]||Pt[4]||Pt[5]||Pt[6],!!ht){if(Sn=ht.length,Pt[3]||Pt[4]){Bn+=Sn;continue}else if((Pt[5]||Pt[6])&&Kr%3&&!((Kr+Sn)%3)){ri+=Sn;continue}if(Bn-=Sn,!(Bn>0))return Sn=Math.min(Sn,Sn+Bn+ri),Math.min(Kr,Sn)%2?{type:"em",raw:Oe.slice(0,Kr+Pt.index+Sn+1),text:Oe.slice(1,Kr+Pt.index+Sn)}:{type:"strong",raw:Oe.slice(0,Kr+Pt.index+Sn+1),text:Oe.slice(2,Kr+Pt.index+Sn-1)}}}}},Dt.codespan=function(Oe){var Ve=this.rules.inline.code.exec(Oe);if(Ve){var at=Ve[2].replace(/\n/g," "),Pt=/[^ ]/.test(at),Le=/^ /.test(at)&&/ $/.test(at);return Pt&&Le&&(at=at.substring(1,at.length-1)),at=j(at,!0),{type:"codespan",raw:Ve[0],text:at}}},Dt.br=function(Oe){var Ve=this.rules.inline.br.exec(Oe);if(Ve)return{type:"br",raw:Ve[0]}},Dt.del=function(Oe){var Ve=this.rules.inline.del.exec(Oe);if(Ve)return{type:"del",raw:Ve[0],text:Ve[2]}},Dt.autolink=function(Oe,Ve){var at=this.rules.inline.autolink.exec(Oe);if(at){var Pt,Le;return at[2]==="@"?(Pt=j(this.options.mangle?Ve(at[1]):at[1]),Le="mailto:"+Pt):(Pt=j(at[1]),Le=Pt),{type:"link",raw:at[0],text:Pt,href:Le,tokens:[{type:"text",raw:Pt,text:Pt}]}}},Dt.url=function(Oe,Ve){var at;if(at=this.rules.inline.url.exec(Oe)){var Pt,Le;if(at[2]==="@")Pt=j(this.options.mangle?Ve(at[0]):at[0]),Le="mailto:"+Pt;else{var Kr;do Kr=at[0],at[0]=this.rules.inline._backpedal.exec(at[0])[0];while(Kr!==at[0]);Pt=j(at[0]),at[1]==="www."?Le="http://"+Pt:Le=Pt}return{type:"link",raw:at[0],text:Pt,href:Le,tokens:[{type:"text",raw:Pt,text:Pt}]}}},Dt.inlineText=function(Oe,Ve,at){var Pt=this.rules.inline.text.exec(Oe);if(Pt){var Le;return Ve?Le=this.options.sanitize?this.options.sanitizer?this.options.sanitizer(Pt[0]):j(Pt[0]):Pt[0]:Le=j(this.options.smartypants?at(Pt[0]):Pt[0]),{type:"text",raw:Pt[0],text:Le}}},ct}(),Vt=Te.noopTest,vr=Te.edit,Yr=Te.merge,wr={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:Vt,table:Vt,lheading:/^([^\n]+)\n {0,3}(=+|-+) *(?:\n+|$)/,_paragraph:/^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html| +\n)[^\n]+)*)/,text:/^[^\n]+/};wr._label=/(?!\s*\])(?:\\[\[\]]|[^\[\]])+/,wr._title=/(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/,wr.def=vr(wr.def).replace("label",wr._label).replace("title",wr._title).getRegex(),wr.bullet=/(?:[*+-]|\d{1,9}[.)])/,wr.item=/^( *)(bull) ?[^\n]*(?:\n(?! *bull ?)[^\n]*)*/,wr.item=vr(wr.item,"gm").replace(/bull/g,wr.bullet).getRegex(),wr.listItemStart=vr(/^( *)(bull) */).replace("bull",wr.bullet).getRegex(),wr.list=vr(wr.list).replace(/bull/g,wr.bullet).replace("hr","\\n+(?=\\1?(?:(?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$))").replace("def","\\n+(?="+wr.def.source+")").getRegex(),wr._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",wr._comment=/<!--(?!-?>)[\s\S]*?(?:-->|$)/,wr.html=vr(wr.html,"i").replace("comment",wr._comment).replace("tag",wr._tag).replace("attribute",/ +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(),wr.paragraph=vr(wr._paragraph).replace("hr",wr.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",wr._tag).getRegex(),wr.blockquote=vr(wr.blockquote).replace("paragraph",wr.paragraph).getRegex(),wr.normal=Yr({},wr),wr.gfm=Yr({},wr.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*|$)"}),wr.gfm.nptable=vr(wr.gfm.nptable).replace("hr",wr.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",wr._tag).getRegex(),wr.gfm.table=vr(wr.gfm.table).replace("hr",wr.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",wr._tag).getRegex(),wr.pedantic=Yr({},wr.normal,{html:vr(`^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+?</\\1> *(?:\\n{2,}|\\s*$)|<tag(?:"[^"]*"|'[^']*'|\\s[^'"/>\\s]*)*?/?> *(?:\\n{2,}|\\s*$))`).replace("comment",wr._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:Vt,paragraph:vr(wr.normal._paragraph).replace("hr",wr.hr).replace("heading",` *#{1,6} *[^
|
|
|
]`).replace("lheading",wr.lheading).replace("blockquote"," {0,3}>").replace("|fences","").replace("|list","").replace("|html","").getRegex()});var fr={escape:/^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/,autolink:/^<(scheme:[^\s\x00-\x1f<>]*|email)>/,url:Vt,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:Vt,text:/^(`+|[^`])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\<!\[`*_]|\b_|$)|[^ ](?= {2,}\n)))/,punctuation:/^([\spunctuation])/};fr._punctuation="!\"#$%&'()+\\-.,/:;<=>?@\\[\\]`^{|}~",fr.punctuation=vr(fr.punctuation).replace(/punctuation/g,fr._punctuation).getRegex(),fr.blockSkip=/\[[^\]]*?\]\([^\)]*?\)|`[^`]*?`|<[^>]*?>/g,fr.escapedEmSt=/\\\*|\\_/g,fr._comment=vr(wr._comment).replace("(?:-->|$)","-->").getRegex(),fr.emStrong.lDelim=vr(fr.emStrong.lDelim).replace(/punct/g,fr._punctuation).getRegex(),fr.emStrong.rDelimAst=vr(fr.emStrong.rDelimAst,"g").replace(/punct/g,fr._punctuation).getRegex(),fr.emStrong.rDelimUnd=vr(fr.emStrong.rDelimUnd,"g").replace(/punct/g,fr._punctuation).getRegex(),fr._escapes=/\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/g,fr._scheme=/[a-zA-Z][a-zA-Z0-9+.-]{1,31}/,fr._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])?)+(?![-_])/,fr.autolink=vr(fr.autolink).replace("scheme",fr._scheme).replace("email",fr._email).getRegex(),fr._attribute=/\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/,fr.tag=vr(fr.tag).replace("comment",fr._comment).replace("attribute",fr._attribute).getRegex(),fr._label=/(?:\[(?:\\.|[^\[\]\\])*\]|\\.|`[^`]*`|[^\[\]\\`])*?/,fr._href=/<(?:\\.|[^\n<>\\])+>|[^\s\x00-\x1f]*/,fr._title=/"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/,fr.link=vr(fr.link).replace("label",fr._label).replace("href",fr._href).replace("title",fr._title).getRegex(),fr.reflink=vr(fr.reflink).replace("label",fr._label).getRegex(),fr.reflinkSearch=vr(fr.reflinkSearch,"g").replace("reflink",fr.reflink).replace("nolink",fr.nolink).getRegex(),fr.normal=Yr({},fr),fr.pedantic=Yr({},fr.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:vr(/^!?\[(label)\]\((.*?)\)/).replace("label",fr._label).getRegex(),reflink:vr(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace("label",fr._label).getRegex()}),fr.gfm=Yr({},fr.normal,{escape:vr(fr.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.!#$%&'*+\/=?_`{\|}~-]+@)))/}),fr.gfm.url=vr(fr.gfm.url,"i").replace("email",fr.gfm._extended_email).getRegex(),fr.breaks=Yr({},fr.gfm,{br:vr(fr.br).replace("{2,}","*").getRegex(),text:vr(fr.gfm.text).replace("\\b_","\\b_| {2,}\\n").replace(/\{2,\}/g,"*").getRegex()});var dn={block:wr,inline:fr},ar=Ft,Vr=Me.exports.defaults,ur=dn.block,ve=dn.inline,At=Te.repeatString;function le(ct){return ct.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 _(ct){var Dt="",Kt,Oe,Ve=ct.length;for(Kt=0;Kt<Ve;Kt++)Oe=ct.charCodeAt(Kt),Math.random()>.5&&(Oe="x"+Oe.toString(16)),Dt+="&#"+Oe+";";return Dt}var D=function(){function ct(Kt){this.tokens=[],this.tokens.links=Object.create(null),this.options=Kt||Vr,this.options.tokenizer=this.options.tokenizer||new ar,this.tokenizer=this.options.tokenizer,this.tokenizer.options=this.options;var Oe={block:ur.normal,inline:ve.normal};this.options.pedantic?(Oe.block=ur.pedantic,Oe.inline=ve.pedantic):this.options.gfm&&(Oe.block=ur.gfm,this.options.breaks?Oe.inline=ve.breaks:Oe.inline=ve.gfm),this.tokenizer.rules=Oe}ct.lex=function(Oe,Ve){var at=new ct(Ve);return at.lex(Oe)},ct.lexInline=function(Oe,Ve){var at=new ct(Ve);return at.inlineTokens(Oe)};var Dt=ct.prototype;return Dt.lex=function(Oe){return Oe=Oe.replace(/\r\n|\r/g,`
|
|
|
`).replace(/\t/g," "),this.blockTokens(Oe,this.tokens,!0),this.inline(this.tokens),this.tokens},Dt.blockTokens=function(Oe,Ve,at){Ve===void 0&&(Ve=[]),at===void 0&&(at=!0),this.options.pedantic&&(Oe=Oe.replace(/^ +$/gm,""));for(var Pt,Le,Kr,ht;Oe;){if(Pt=this.tokenizer.space(Oe)){Oe=Oe.substring(Pt.raw.length),Pt.type&&Ve.push(Pt);continue}if(Pt=this.tokenizer.code(Oe)){Oe=Oe.substring(Pt.raw.length),ht=Ve[Ve.length-1],ht&&ht.type==="paragraph"?(ht.raw+=`
|
|
|
`+Pt.raw,ht.text+=`
|
|
|
`+Pt.text):Ve.push(Pt);continue}if(Pt=this.tokenizer.fences(Oe)){Oe=Oe.substring(Pt.raw.length),Ve.push(Pt);continue}if(Pt=this.tokenizer.heading(Oe)){Oe=Oe.substring(Pt.raw.length),Ve.push(Pt);continue}if(Pt=this.tokenizer.nptable(Oe)){Oe=Oe.substring(Pt.raw.length),Ve.push(Pt);continue}if(Pt=this.tokenizer.hr(Oe)){Oe=Oe.substring(Pt.raw.length),Ve.push(Pt);continue}if(Pt=this.tokenizer.blockquote(Oe)){Oe=Oe.substring(Pt.raw.length),Pt.tokens=this.blockTokens(Pt.text,[],at),Ve.push(Pt);continue}if(Pt=this.tokenizer.list(Oe)){for(Oe=Oe.substring(Pt.raw.length),Kr=Pt.items.length,Le=0;Le<Kr;Le++)Pt.items[Le].tokens=this.blockTokens(Pt.items[Le].text,[],!1);Ve.push(Pt);continue}if(Pt=this.tokenizer.html(Oe)){Oe=Oe.substring(Pt.raw.length),Ve.push(Pt);continue}if(at&&(Pt=this.tokenizer.def(Oe))){Oe=Oe.substring(Pt.raw.length),this.tokens.links[Pt.tag]||(this.tokens.links[Pt.tag]={href:Pt.href,title:Pt.title});continue}if(Pt=this.tokenizer.table(Oe)){Oe=Oe.substring(Pt.raw.length),Ve.push(Pt);continue}if(Pt=this.tokenizer.lheading(Oe)){Oe=Oe.substring(Pt.raw.length),Ve.push(Pt);continue}if(at&&(Pt=this.tokenizer.paragraph(Oe))){Oe=Oe.substring(Pt.raw.length),Ve.push(Pt);continue}if(Pt=this.tokenizer.text(Oe)){Oe=Oe.substring(Pt.raw.length),ht=Ve[Ve.length-1],ht&&ht.type==="text"?(ht.raw+=`
|
|
|
`+Pt.raw,ht.text+=`
|
|
|
`+Pt.text):Ve.push(Pt);continue}if(Oe){var Sn="Infinite loop on byte: "+Oe.charCodeAt(0);if(this.options.silent){console.error(Sn);break}else throw new Error(Sn)}}return Ve},Dt.inline=function(Oe){var Ve,at,Pt,Le,Kr,ht,Sn=Oe.length;for(Ve=0;Ve<Sn;Ve++)switch(ht=Oe[Ve],ht.type){case"paragraph":case"text":case"heading":{ht.tokens=[],this.inlineTokens(ht.text,ht.tokens);break}case"table":{for(ht.tokens={header:[],cells:[]},Le=ht.header.length,at=0;at<Le;at++)ht.tokens.header[at]=[],this.inlineTokens(ht.header[at],ht.tokens.header[at]);for(Le=ht.cells.length,at=0;at<Le;at++)for(Kr=ht.cells[at],ht.tokens.cells[at]=[],Pt=0;Pt<Kr.length;Pt++)ht.tokens.cells[at][Pt]=[],this.inlineTokens(Kr[Pt],ht.tokens.cells[at][Pt]);break}case"blockquote":{this.inline(ht.tokens);break}case"list":{for(Le=ht.items.length,at=0;at<Le;at++)this.inline(ht.items[at].tokens);break}}return Oe},Dt.inlineTokens=function(Oe,Ve,at,Pt){Ve===void 0&&(Ve=[]),at===void 0&&(at=!1),Pt===void 0&&(Pt=!1);var Le,Kr,ht=Oe,Sn,Bn,ri;if(this.tokens.links){var ws=Object.keys(this.tokens.links);if(ws.length>0)for(;(Sn=this.tokenizer.rules.inline.reflinkSearch.exec(ht))!=null;)ws.includes(Sn[0].slice(Sn[0].lastIndexOf("[")+1,-1))&&(ht=ht.slice(0,Sn.index)+"["+At("a",Sn[0].length-2)+"]"+ht.slice(this.tokenizer.rules.inline.reflinkSearch.lastIndex))}for(;(Sn=this.tokenizer.rules.inline.blockSkip.exec(ht))!=null;)ht=ht.slice(0,Sn.index)+"["+At("a",Sn[0].length-2)+"]"+ht.slice(this.tokenizer.rules.inline.blockSkip.lastIndex);for(;(Sn=this.tokenizer.rules.inline.escapedEmSt.exec(ht))!=null;)ht=ht.slice(0,Sn.index)+"++"+ht.slice(this.tokenizer.rules.inline.escapedEmSt.lastIndex);for(;Oe;){if(Bn||(ri=""),Bn=!1,Le=this.tokenizer.escape(Oe)){Oe=Oe.substring(Le.raw.length),Ve.push(Le);continue}if(Le=this.tokenizer.tag(Oe,at,Pt)){Oe=Oe.substring(Le.raw.length),at=Le.inLink,Pt=Le.inRawBlock;var Ci=Ve[Ve.length-1];Ci&&Le.type==="text"&&Ci.type==="text"?(Ci.raw+=Le.raw,Ci.text+=Le.text):Ve.push(Le);continue}if(Le=this.tokenizer.link(Oe)){Oe=Oe.substring(Le.raw.length),Le.type==="link"&&(Le.tokens=this.inlineTokens(Le.text,[],!0,Pt)),Ve.push(Le);continue}if(Le=this.tokenizer.reflink(Oe,this.tokens.links)){Oe=Oe.substring(Le.raw.length);var Kn=Ve[Ve.length-1];Le.type==="link"?(Le.tokens=this.inlineTokens(Le.text,[],!0,Pt),Ve.push(Le)):Kn&&Le.type==="text"&&Kn.type==="text"?(Kn.raw+=Le.raw,Kn.text+=Le.text):Ve.push(Le);continue}if(Le=this.tokenizer.emStrong(Oe,ht,ri)){Oe=Oe.substring(Le.raw.length),Le.tokens=this.inlineTokens(Le.text,[],at,Pt),Ve.push(Le);continue}if(Le=this.tokenizer.codespan(Oe)){Oe=Oe.substring(Le.raw.length),Ve.push(Le);continue}if(Le=this.tokenizer.br(Oe)){Oe=Oe.substring(Le.raw.length),Ve.push(Le);continue}if(Le=this.tokenizer.del(Oe)){Oe=Oe.substring(Le.raw.length),Le.tokens=this.inlineTokens(Le.text,[],at,Pt),Ve.push(Le);continue}if(Le=this.tokenizer.autolink(Oe,_)){Oe=Oe.substring(Le.raw.length),Ve.push(Le);continue}if(!at&&(Le=this.tokenizer.url(Oe,_))){Oe=Oe.substring(Le.raw.length),Ve.push(Le);continue}if(Le=this.tokenizer.inlineText(Oe,Pt,le)){Oe=Oe.substring(Le.raw.length),Le.raw.slice(-1)!=="_"&&(ri=Le.raw.slice(-1)),Bn=!0,Kr=Ve[Ve.length-1],Kr&&Kr.type==="text"?(Kr.raw+=Le.raw,Kr.text+=Le.text):Ve.push(Le);continue}if(Oe){var Is="Infinite loop on byte: "+Oe.charCodeAt(0);if(this.options.silent){console.error(Is);break}else throw new Error(Is)}}return Ve},je(ct,null,[{key:"rules",get:function(){return{block:ur,inline:ve}}}]),ct}(),ae=Me.exports.defaults,We=Te.cleanUrl,ge=Te.escape,Se=function(){function ct(Kt){this.options=Kt||ae}var Dt=ct.prototype;return Dt.code=function(Oe,Ve,at){var Pt=(Ve||"").match(/\S*/)[0];if(this.options.highlight){var Le=this.options.highlight(Oe,Pt);Le!=null&&Le!==Oe&&(at=!0,Oe=Le)}return Oe=Oe.replace(/\n$/,"")+`
|
|
|
`,Pt?'<pre><code class="'+this.options.langPrefix+ge(Pt,!0)+'">'+(at?Oe:ge(Oe,!0))+`</code></pre>
|
|
|
`:"<pre><code>"+(at?Oe:ge(Oe,!0))+`</code></pre>
|
|
|
`},Dt.blockquote=function(Oe){return`<blockquote>
|
|
|
`+Oe+`</blockquote>
|
|
|
`},Dt.html=function(Oe){return Oe},Dt.heading=function(Oe,Ve,at,Pt){return this.options.headerIds?"<h"+Ve+' id="'+this.options.headerPrefix+Pt.slug(at)+'">'+Oe+"</h"+Ve+`>
|
|
|
`:"<h"+Ve+">"+Oe+"</h"+Ve+`>
|
|
|
`},Dt.hr=function(){return this.options.xhtml?`<hr/>
|
|
|
`:`<hr>
|
|
|
`},Dt.list=function(Oe,Ve,at){var Pt=Ve?"ol":"ul",Le=Ve&&at!==1?' start="'+at+'"':"";return"<"+Pt+Le+`>
|
|
|
`+Oe+"</"+Pt+`>
|
|
|
`},Dt.listitem=function(Oe){return"<li>"+Oe+`</li>
|
|
|
`},Dt.checkbox=function(Oe){return"<input "+(Oe?'checked="" ':"")+'disabled="" type="checkbox"'+(this.options.xhtml?" /":"")+"> "},Dt.paragraph=function(Oe){return"<p>"+Oe+`</p>
|
|
|
`},Dt.table=function(Oe,Ve){return Ve&&(Ve="<tbody>"+Ve+"</tbody>"),`<table>
|
|
|
<thead>
|
|
|
`+Oe+`</thead>
|
|
|
`+Ve+`</table>
|
|
|
`},Dt.tablerow=function(Oe){return`<tr>
|
|
|
`+Oe+`</tr>
|
|
|
`},Dt.tablecell=function(Oe,Ve){var at=Ve.header?"th":"td",Pt=Ve.align?"<"+at+' align="'+Ve.align+'">':"<"+at+">";return Pt+Oe+"</"+at+`>
|
|
|
`},Dt.strong=function(Oe){return"<strong>"+Oe+"</strong>"},Dt.em=function(Oe){return"<em>"+Oe+"</em>"},Dt.codespan=function(Oe){return"<code>"+Oe+"</code>"},Dt.br=function(){return this.options.xhtml?"<br/>":"<br>"},Dt.del=function(Oe){return"<del>"+Oe+"</del>"},Dt.link=function(Oe,Ve,at){if(Oe=We(this.options.sanitize,this.options.baseUrl,Oe),Oe===null)return at;var Pt='<a href="'+ge(Oe)+'"';return Ve&&(Pt+=' title="'+Ve+'"'),Pt+=">"+at+"</a>",Pt},Dt.image=function(Oe,Ve,at){if(Oe=We(this.options.sanitize,this.options.baseUrl,Oe),Oe===null)return at;var Pt='<img src="'+Oe+'" alt="'+at+'"';return Ve&&(Pt+=' title="'+Ve+'"'),Pt+=this.options.xhtml?"/>":">",Pt},Dt.text=function(Oe){return Oe},ct}(),gt=function(){function ct(){}var Dt=ct.prototype;return Dt.strong=function(Oe){return Oe},Dt.em=function(Oe){return Oe},Dt.codespan=function(Oe){return Oe},Dt.del=function(Oe){return Oe},Dt.html=function(Oe){return Oe},Dt.text=function(Oe){return Oe},Dt.link=function(Oe,Ve,at){return""+at},Dt.image=function(Oe,Ve,at){return""+at},Dt.br=function(){return""},ct}(),xt=function(){function ct(){this.seen={}}var Dt=ct.prototype;return Dt.serialize=function(Oe){return Oe.toLowerCase().trim().replace(/<[!\/a-z].*?>/ig,"").replace(/[\u2000-\u206F\u2E00-\u2E7F\\'!"#$%&()*+,./:;<=>?@[\]^`{|}~]/g,"").replace(/\s/g,"-")},Dt.getNextSafeSlug=function(Oe,Ve){var at=Oe,Pt=0;if(this.seen.hasOwnProperty(at)){Pt=this.seen[Oe];do Pt++,at=Oe+"-"+Pt;while(this.seen.hasOwnProperty(at))}return Ve||(this.seen[Oe]=Pt,this.seen[at]=0),at},Dt.slug=function(Oe,Ve){Ve===void 0&&(Ve={});var at=this.serialize(Oe);return this.getNextSafeSlug(at,Ve.dryrun)},ct}(),Et=Se,nr=gt,xr=xt,Tr=Me.exports.defaults,Bt=Te.unescape,Mt=function(){function ct(Kt){this.options=Kt||Tr,this.options.renderer=this.options.renderer||new Et,this.renderer=this.options.renderer,this.renderer.options=this.options,this.textRenderer=new nr,this.slugger=new xr}ct.parse=function(Oe,Ve){var at=new ct(Ve);return at.parse(Oe)},ct.parseInline=function(Oe,Ve){var at=new ct(Ve);return at.parseInline(Oe)};var Dt=ct.prototype;return Dt.parse=function(Oe,Ve){Ve===void 0&&(Ve=!0);var at="",Pt,Le,Kr,ht,Sn,Bn,ri,ws,Ci,Kn,Is,Aa,$i,Ui,mn,ln,fn,ni,Ei=Oe.length;for(Pt=0;Pt<Ei;Pt++)switch(Kn=Oe[Pt],Kn.type){case"space":continue;case"hr":{at+=this.renderer.hr();continue}case"heading":{at+=this.renderer.heading(this.parseInline(Kn.tokens),Kn.depth,Bt(this.parseInline(Kn.tokens,this.textRenderer)),this.slugger);continue}case"code":{at+=this.renderer.code(Kn.text,Kn.lang,Kn.escaped);continue}case"table":{for(ws="",ri="",ht=Kn.header.length,Le=0;Le<ht;Le++)ri+=this.renderer.tablecell(this.parseInline(Kn.tokens.header[Le]),{header:!0,align:Kn.align[Le]});for(ws+=this.renderer.tablerow(ri),Ci="",ht=Kn.cells.length,Le=0;Le<ht;Le++){for(Bn=Kn.tokens.cells[Le],ri="",Sn=Bn.length,Kr=0;Kr<Sn;Kr++)ri+=this.renderer.tablecell(this.parseInline(Bn[Kr]),{header:!1,align:Kn.align[Kr]});Ci+=this.renderer.tablerow(ri)}at+=this.renderer.table(ws,Ci);continue}case"blockquote":{Ci=this.parse(Kn.tokens),at+=this.renderer.blockquote(Ci);continue}case"list":{for(Is=Kn.ordered,Aa=Kn.start,$i=Kn.loose,ht=Kn.items.length,Ci="",Le=0;Le<ht;Le++)mn=Kn.items[Le],ln=mn.checked,fn=mn.task,Ui="",mn.task&&(ni=this.renderer.checkbox(ln),$i?mn.tokens.length>0&&mn.tokens[0].type==="text"?(mn.tokens[0].text=ni+" "+mn.tokens[0].text,mn.tokens[0].tokens&&mn.tokens[0].tokens.length>0&&mn.tokens[0].tokens[0].type==="text"&&(mn.tokens[0].tokens[0].text=ni+" "+mn.tokens[0].tokens[0].text)):mn.tokens.unshift({type:"text",text:ni}):Ui+=ni),Ui+=this.parse(mn.tokens,$i),Ci+=this.renderer.listitem(Ui,fn,ln);at+=this.renderer.list(Ci,Is,Aa);continue}case"html":{at+=this.renderer.html(Kn.text);continue}case"paragraph":{at+=this.renderer.paragraph(this.parseInline(Kn.tokens));continue}case"text":{for(Ci=Kn.tokens?this.parseInline(Kn.tokens):Kn.text;Pt+1<Ei&&Oe[Pt+1].type==="text";)Kn=Oe[++Pt],Ci+=`
|
|
|
`+(Kn.tokens?this.parseInline(Kn.tokens):Kn.text);at+=Ve?this.renderer.paragraph(Ci):Ci;continue}default:{var Gi='Token with "'+Kn.type+'" type was not found.';if(this.options.silent){console.error(Gi);return}else throw new Error(Gi)}}return at},Dt.parseInline=function(Oe,Ve){Ve=Ve||this.renderer;var at="",Pt,Le,Kr=Oe.length;for(Pt=0;Pt<Kr;Pt++)switch(Le=Oe[Pt],Le.type){case"escape":{at+=Ve.text(Le.text);break}case"html":{at+=Ve.html(Le.text);break}case"link":{at+=Ve.link(Le.href,Le.title,this.parseInline(Le.tokens,Ve));break}case"image":{at+=Ve.image(Le.href,Le.title,Le.text);break}case"strong":{at+=Ve.strong(this.parseInline(Le.tokens,Ve));break}case"em":{at+=Ve.em(this.parseInline(Le.tokens,Ve));break}case"codespan":{at+=Ve.codespan(Le.text);break}case"br":{at+=Ve.br();break}case"del":{at+=Ve.del(this.parseInline(Le.tokens,Ve));break}case"text":{at+=Ve.text(Le.text);break}default:{var ht='Token with "'+Le.type+'" type was not found.';if(this.options.silent){console.error(ht);return}else throw new Error(ht)}}return at},ct}(),Wt=D,cr=Mt,qt=Ft,kt=Se,Pr=gt,$t=xt,yr=Te.merge,An=Te.checkSanitizeDeprecation,Y=Te.escape,ie=Me.exports.getDefaults,Ot=Me.exports.changeDefaults,fe=Me.exports.defaults;function Ke(ct,Dt,Kt){if(typeof ct=="undefined"||ct===null)throw new Error("marked(): input parameter is undefined or null");if(typeof ct!="string")throw new Error("marked(): input parameter is of type "+Object.prototype.toString.call(ct)+", string expected");if(typeof Dt=="function"&&(Kt=Dt,Dt=null),Dt=yr({},Ke.defaults,Dt||{}),An(Dt),Kt){var Oe=Dt.highlight,Ve;try{Ve=Wt.lex(ct,Dt)}catch(Kr){return Kt(Kr)}var at=function(ht){var Sn;if(!ht)try{Dt.walkTokens&&Ke.walkTokens(Ve,Dt.walkTokens),Sn=cr.parse(Ve,Dt)}catch(Bn){ht=Bn}return Dt.highlight=Oe,ht?Kt(ht):Kt(null,Sn)};if(!Oe||Oe.length<3||(delete Dt.highlight,!Ve.length))return at();var Pt=0;Ke.walkTokens(Ve,function(Kr){Kr.type==="code"&&(Pt++,setTimeout(function(){Oe(Kr.text,Kr.lang,function(ht,Sn){if(ht)return at(ht);Sn!=null&&Sn!==Kr.text&&(Kr.text=Sn,Kr.escaped=!0),Pt--,Pt===0&&at()})},0))}),Pt===0&&at();return}try{var Le=Wt.lex(ct,Dt);return Dt.walkTokens&&Ke.walkTokens(Le,Dt.walkTokens),cr.parse(Le,Dt)}catch(Kr){if(Kr.message+=`
|
|
|
Please report this to https://github.com/markedjs/marked.`,Dt.silent)return"<p>An error occurred:</p><pre>"+Y(Kr.message+"",!0)+"</pre>";throw Kr}}Ke.options=Ke.setOptions=function(ct){return yr(Ke.defaults,ct),Ot(Ke.defaults),Ke},Ke.getDefaults=ie,Ke.defaults=fe,Ke.use=function(ct){var Dt=yr({},ct);if(ct.renderer&&function(){var Oe=Ke.defaults.renderer||new kt,Ve=function(Le){var Kr=Oe[Le];Oe[Le]=function(){for(var ht=arguments.length,Sn=new Array(ht),Bn=0;Bn<ht;Bn++)Sn[Bn]=arguments[Bn];var ri=ct.renderer[Le].apply(Oe,Sn);return ri===!1&&(ri=Kr.apply(Oe,Sn)),ri}};for(var at in ct.renderer)Ve(at);Dt.renderer=Oe}(),ct.tokenizer&&function(){var Oe=Ke.defaults.tokenizer||new qt,Ve=function(Le){var Kr=Oe[Le];Oe[Le]=function(){for(var ht=arguments.length,Sn=new Array(ht),Bn=0;Bn<ht;Bn++)Sn[Bn]=arguments[Bn];var ri=ct.tokenizer[Le].apply(Oe,Sn);return ri===!1&&(ri=Kr.apply(Oe,Sn)),ri}};for(var at in ct.tokenizer)Ve(at);Dt.tokenizer=Oe}(),ct.walkTokens){var Kt=Ke.defaults.walkTokens;Dt.walkTokens=function(Oe){ct.walkTokens(Oe),Kt&&Kt(Oe)}}Ke.setOptions(Dt)},Ke.walkTokens=function(ct,Dt){for(var Kt=Fe(ct),Oe;!(Oe=Kt()).done;){var Ve=Oe.value;switch(Dt(Ve),Ve.type){case"table":{for(var at=Fe(Ve.tokens.header),Pt;!(Pt=at()).done;){var Le=Pt.value;Ke.walkTokens(Le,Dt)}for(var Kr=Fe(Ve.tokens.cells),ht;!(ht=Kr()).done;)for(var Sn=ht.value,Bn=Fe(Sn),ri;!(ri=Bn()).done;){var ws=ri.value;Ke.walkTokens(ws,Dt)}break}case"list":{Ke.walkTokens(Ve.items,Dt);break}default:Ve.tokens&&Ke.walkTokens(Ve.tokens,Dt)}}},Ke.parseInline=function(ct,Dt){if(typeof ct=="undefined"||ct===null)throw new Error("marked.parseInline(): input parameter is undefined or null");if(typeof ct!="string")throw new Error("marked.parseInline(): input parameter is of type "+Object.prototype.toString.call(ct)+", string expected");Dt=yr({},Ke.defaults,Dt||{}),An(Dt);try{var Kt=Wt.lexInline(ct,Dt);return Dt.walkTokens&&Ke.walkTokens(Kt,Dt.walkTokens),cr.parseInline(Kt,Dt)}catch(Oe){if(Oe.message+=`
|
|
|
Please report this to https://github.com/markedjs/marked.`,Dt.silent)return"<p>An error occurred:</p><pre>"+Y(Oe.message+"",!0)+"</pre>";throw Oe}},Ke.Parser=cr,Ke.parser=cr.parse,Ke.Renderer=kt,Ke.TextRenderer=Pr,Ke.Lexer=Wt,Ke.lexer=Wt.lex,Ke.Tokenizer=qt,Ke.Slugger=$t,Ke.parse=Ke;var Wr=Ke;return Wr})},11690:function(wn){const Sr=/[&<>"']/,je=/[&<>"']/g,Ie=/[<>"']|&(?!#?\w+;)/,mt=/[<>"']|&(?!#?\w+;)/g,Fe={"&":"&","<":"<",">":">",'"':""","'":"'"},Me=Qe=>Fe[Qe];function de(Qe,Ue){if(Ue){if(Sr.test(Qe))return Qe.replace(je,Me)}else if(Ie.test(Qe))return Qe.replace(mt,Me);return Qe}const I=/&(#(?:\d+)|(?:#x[0-9A-Fa-f]+)|(?:\w+));?/ig;function Be(Qe){return Qe.replace(I,(Ue,qe)=>(qe=qe.toLowerCase(),qe==="colon"?":":qe.charAt(0)==="#"?qe.charAt(1)==="x"?String.fromCharCode(parseInt(qe.substring(2),16)):String.fromCharCode(+qe.substring(1)):""))}const R=/(^|[^\[])\^/g;function u(Qe,Ue){Qe=Qe.source||Qe,Ue=Ue||"";const qe={replace:(st,Pe)=>(Pe=Pe.source||Pe,Pe=Pe.replace(R,"$1"),Qe=Qe.replace(st,Pe),qe),getRegex:()=>new RegExp(Qe,Ue)};return qe}const C=/[^\w:]/g,H=/^$|^[a-z][a-z0-9+.-]*:|^[?#]/i;function w(Qe,Ue,qe){if(Qe){let st;try{st=decodeURIComponent(Be(qe)).replace(C,"").toLowerCase()}catch(Pe){return null}if(st.indexOf("javascript:")===0||st.indexOf("vbscript:")===0||st.indexOf("data:")===0)return null}Ue&&!H.test(qe)&&(qe=V(Ue,qe));try{qe=encodeURI(qe).replace(/%25/g,"%")}catch(st){return null}return qe}const L={},B=/^[^:]+:\/*[^/]*$/,k=/^([^:]+:)[\s\S]*$/,K=/^([^:]+:\/*[^/]*)[\s\S]*$/;function V(Qe,Ue){L[" "+Qe]||(B.test(Qe)?L[" "+Qe]=Qe+"/":L[" "+Qe]=se(Qe,"/",!0)),Qe=L[" "+Qe];const qe=Qe.indexOf(":")===-1;return Ue.substring(0,2)==="//"?qe?Ue:Qe.replace(k,"$1")+Ue:Ue.charAt(0)==="/"?qe?Ue:Qe.replace(K,"$1")+Ue:Qe+Ue}const P={exec:function(){}};function G(Qe){let Ue=1,qe,st;for(;Ue<arguments.length;Ue++){qe=arguments[Ue];for(st in qe)Object.prototype.hasOwnProperty.call(qe,st)&&(Qe[st]=qe[st])}return Qe}function Z(Qe,Ue){const qe=Qe.replace(/\|/g,(pe,M,ye)=>{let Te=!1,me=M;for(;--me>=0&&ye[me]==="\\";)Te=!Te;return Te?"|":" |"}),st=qe.split(/ \|/);let Pe=0;if(st.length>Ue)st.splice(Ue);else for(;st.length<Ue;)st.push("");for(;Pe<st.length;Pe++)st[Pe]=st[Pe].trim().replace(/\\\|/g,"|");return st}function se(Qe,Ue,qe){const st=Qe.length;if(st===0)return"";let Pe=0;for(;Pe<st;){const pe=Qe.charAt(st-Pe-1);if(pe===Ue&&!qe)Pe++;else if(pe!==Ue&&qe)Pe++;else break}return Qe.substr(0,st-Pe)}function oe(Qe,Ue){if(Qe.indexOf(Ue[1])===-1)return-1;const qe=Qe.length;let st=0,Pe=0;for(;Pe<qe;Pe++)if(Qe[Pe]==="\\")Pe++;else if(Qe[Pe]===Ue[0])st++;else if(Qe[Pe]===Ue[1]&&(st--,st<0))return Pe;return-1}function De(Qe){Qe&&Qe.sanitize&&!Qe.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 He(Qe,Ue){if(Ue<1)return"";let qe="";for(;Ue>1;)Ue&1&&(qe+=Qe),Ue>>=1,Qe+=Qe;return qe+Qe}wn.exports={escape:de,unescape:Be,edit:u,cleanUrl:w,resolveUrl:V,noopTest:P,merge:G,splitCells:Z,rtrim:se,findClosingBracket:oe,checkSanitizeDeprecation:De,repeatString:He}},75918:function(wn,Sr,je){"use strict";je.d(Sr,{Wi:function(){return I},Z0:function(){return Be},aU:function(){return de},eZ:function(){return u},wY:function(){return R}});var Ie=je(4348),mt=je(69323),Fe=je(13268),Me=function(C,H,w,L){function B(k){return k instanceof w?k:new w(function(K){K(k)})}return new(w||(w=Promise))(function(k,K){function V(Z){try{G(L.next(Z))}catch(se){K(se)}}function P(Z){try{G(L.throw(Z))}catch(se){K(se)}}function G(Z){Z.done?k(Z.value):B(Z.value).then(V,P)}G((L=L.apply(C,H||[])).next())})};class de extends mt.JT{constructor(H,w="",L="",B=!0,k){super(),this._onDidChange=this._register(new Ie.Q5),this.onDidChange=this._onDidChange.event,this._enabled=!0,this._id=H,this._label=w,this._cssClass=L,this._enabled=B,this._actionCallback=k}get id(){return this._id}get label(){return this._label}set label(H){this._setLabel(H)}_setLabel(H){this._label!==H&&(this._label=H,this._onDidChange.fire({label:H}))}get tooltip(){return this._tooltip||""}set tooltip(H){this._setTooltip(H)}_setTooltip(H){this._tooltip!==H&&(this._tooltip=H,this._onDidChange.fire({tooltip:H}))}get class(){return this._cssClass}set class(H){this._setClass(H)}_setClass(H){this._cssClass!==H&&(this._cssClass=H,this._onDidChange.fire({class:H}))}get enabled(){return this._enabled}set enabled(H){this._setEnabled(H)}_setEnabled(H){this._enabled!==H&&(this._enabled=H,this._onDidChange.fire({enabled:H}))}get checked(){return this._checked}set checked(H){this._setChecked(H)}_setChecked(H){this._checked!==H&&(this._checked=H,this._onDidChange.fire({checked:H}))}run(H,w){return Me(this,void 0,void 0,function*(){this._actionCallback&&(yield this._actionCallback(H))})}}class I extends mt.JT{constructor(){super(...arguments),this._onBeforeRun=this._register(new Ie.Q5),this.onBeforeRun=this._onBeforeRun.event,this._onDidRun=this._register(new Ie.Q5),this.onDidRun=this._onDidRun.event}run(H,w){return Me(this,void 0,void 0,function*(){if(!H.enabled)return;this._onBeforeRun.fire({action:H});let L;try{yield this.runAction(H,w)}catch(B){L=B}this._onDidRun.fire({action:H,error:L})})}runAction(H,w){return Me(this,void 0,void 0,function*(){yield H.run(w)})}}class Be extends de{constructor(H){super(Be.ID,H,H?"separator text":"separator"),this.checked=!1,this.enabled=!1}}Be.ID="vs.actions.separator";class R{constructor(H,w,L,B){this.tooltip="",this.enabled=!0,this.checked=!1,this.id=H,this.label=w,this.class=B,this._actions=L}get actions(){return this._actions}dispose(){}run(){return Me(this,void 0,void 0,function*(){})}}class u extends de{constructor(){super(u.ID,Fe.N("submenu.empty","(empty)"),void 0,!1)}}u.ID="vs.actions.empty"},76068:function(wn,Sr,je){"use strict";je.d(Sr,{ok:function(){return Ie}});function Ie(mt,Fe){if(!mt)throw new Error(Fe?`Assertion failed (${Fe})`:"Assertion Failed")}},52615:function(wn,Sr,je){"use strict";je.d(Sr,{CM:function(){return de},JL:function(){return I},dT:function(){return R},fK:function(){return Me},lA:function(){return Be}});var Ie=je(4348);class mt{constructor(){this._icons=new Map,this._onDidRegister=new Ie.Q5}add(C){const H=this._icons.get(C.id);H?C.description?H.description=C.description:console.error(`Duplicate registration of codicon ${C.id}`):(this._icons.set(C.id,C),this._onDidRegister.fire(C))}get(C){return this._icons.get(C)}get all(){return this._icons.values()}get onDidRegister(){return this._onDidRegister.event}}const Fe=new mt,Me=Fe;function de(u,C){return new Be(u,C)}function I(u){return u?u.replace(/\$\((.*?)\)/g,(C,H)=>` ${H} `).trim():""}class Be{constructor(C,H,w){this.id=C,this.definition=H,this.description=w,Fe.add(this)}get classNames(){return"codicon codicon-"+this.id}get classNamesArray(){return["codicon","codicon-"+this.id]}get cssSelector(){return".codicon.codicon-"+this.id}}var R;(function(u){u.iconNameSegment="[A-Za-z0-9]+",u.iconNameExpression="[A-Za-z0-9\\-]+",u.iconModifierExpression="~[A-Za-z]+";const C=new RegExp(`^(${u.iconNameExpression})(${u.iconModifierExpression})?$`);function H(B){if(B instanceof Be)return["codicon","codicon-"+B.id];const k=C.exec(B.id);if(!k)return H(Be.error);let[,K,V]=k;const P=["codicon","codicon-"+K];return V&&P.push("codicon-modifier-"+V.substr(1)),P}u.asClassNameArray=H;function w(B){return H(B).join(" ")}u.asClassName=w;function L(B){return"."+H(B).join(".")}u.asCSSSelector=L})(R||(R={})),function(u){u.add=new u("add",{fontCharacter:"\\ea60"}),u.plus=new u("plus",u.add.definition),u.gistNew=new u("gist-new",u.add.definition),u.repoCreate=new u("repo-create",u.add.definition),u.lightbulb=new u("lightbulb",{fontCharacter:"\\ea61"}),u.lightBulb=new u("light-bulb",{fontCharacter:"\\ea61"}),u.repo=new u("repo",{fontCharacter:"\\ea62"}),u.repoDelete=new u("repo-delete",{fontCharacter:"\\ea62"}),u.gistFork=new u("gist-fork",{fontCharacter:"\\ea63"}),u.repoForked=new u("repo-forked",{fontCharacter:"\\ea63"}),u.gitPullRequest=new u("git-pull-request",{fontCharacter:"\\ea64"}),u.gitPullRequestAbandoned=new u("git-pull-request-abandoned",{fontCharacter:"\\ea64"}),u.recordKeys=new u("record-keys",{fontCharacter:"\\ea65"}),u.keyboard=new u("keyboard",{fontCharacter:"\\ea65"}),u.tag=new u("tag",{fontCharacter:"\\ea66"}),u.tagAdd=new u("tag-add",{fontCharacter:"\\ea66"}),u.tagRemove=new u("tag-remove",{fontCharacter:"\\ea66"}),u.person=new u("person",{fontCharacter:"\\ea67"}),u.personFollow=new u("person-follow",{fontCharacter:"\\ea67"}),u.personOutline=new u("person-outline",{fontCharacter:"\\ea67"}),u.personFilled=new u("person-filled",{fontCharacter:"\\ea67"}),u.gitBranch=new u("git-branch",{fontCharacter:"\\ea68"}),u.gitBranchCreate=new u("git-branch-create",{fontCharacter:"\\ea68"}),u.gitBranchDelete=new u("git-branch-delete",{fontCharacter:"\\ea68"}),u.sourceControl=new u("source-control",{fontCharacter:"\\ea68"}),u.mirror=new u("mirror",{fontCharacter:"\\ea69"}),u.mirrorPublic=new u("mirror-public",{fontCharacter:"\\ea69"}),u.star=new u("star",{fontCharacter:"\\ea6a"}),u.starAdd=new u("star-add",{fontCharacter:"\\ea6a"}),u.starDelete=new u("star-delete",{fontCharacter:"\\ea6a"}),u.starEmpty=new u("star-empty",{fontCharacter:"\\ea6a"}),u.comment=new u("comment",{fontCharacter:"\\ea6b"}),u.commentAdd=new u("comment-add",{fontCharacter:"\\ea6b"}),u.alert=new u("alert",{fontCharacter:"\\ea6c"}),u.warning=new u("warning",{fontCharacter:"\\ea6c"}),u.search=new u("search",{fontCharacter:"\\ea6d"}),u.searchSave=new u("search-save",{fontCharacter:"\\ea6d"}),u.logOut=new u("log-out",{fontCharacter:"\\ea6e"}),u.signOut=new u("sign-out",{fontCharacter:"\\ea6e"}),u.logIn=new u("log-in",{fontCharacter:"\\ea6f"}),u.signIn=new u("sign-in",{fontCharacter:"\\ea6f"}),u.eye=new u("eye",{fontCharacter:"\\ea70"}),u.eyeUnwatch=new u("eye-unwatch",{fontCharacter:"\\ea70"}),u.eyeWatch=new u("eye-watch",{fontCharacter:"\\ea70"}),u.circleFilled=new u("circle-filled",{fontCharacter:"\\ea71"}),u.primitiveDot=new u("primitive-dot",{fontCharacter:"\\ea71"}),u.closeDirty=new u("close-dirty",{fontCharacter:"\\ea71"}),u.debugBreakpoint=new u("debug-breakpoint",{fontCharacter:"\\ea71"}),u.debugBreakpointDisabled=new u("debug-breakpoint-disabled",{fontCharacter:"\\ea71"}),u.debugHint=new u("debug-hint",{fontCharacter:"\\ea71"}),u.primitiveSquare=new u("primitive-square",{fontCharacter:"\\ea72"}),u.edit=new u("edit",{fontCharacter:"\\ea73"}),u.pencil=new u("pencil",{fontCharacter:"\\ea73"}),u.info=new u("info",{fontCharacter:"\\ea74"}),u.issueOpened=new u("issue-opened",{fontCharacter:"\\ea74"}),u.gistPrivate=new u("gist-private",{fontCharacter:"\\ea75"}),u.gitForkPrivate=new u("git-fork-private",{fontCharacter:"\\ea75"}),u.lock=new u("lock",{fontCharacter:"\\ea75"}),u.mirrorPrivate=new u("mirror-private",{fontCharacter:"\\ea75"}),u.close=new u("close",{fontCharacter:"\\ea76"}),u.removeClose=new u("remove-close",{fontCharacter:"\\ea76"}),u.x=new u("x",{fontCharacter:"\\ea76"}),u.repoSync=new u("repo-sync",{fontCharacter:"\\ea77"}),u.sync=new u("sync",{fontCharacter:"\\ea77"}),u.clone=new u("clone",{fontCharacter:"\\ea78"}),u.desktopDownload=new u("desktop-download",{fontCharacter:"\\ea78"}),u.beaker=new u("beaker",{fontCharacter:"\\ea79"}),u.microscope=new u("microscope",{fontCharacter:"\\ea79"}),u.vm=new u("vm",{fontCharacter:"\\ea7a"}),u.deviceDesktop=new u("device-desktop",{fontCharacter:"\\ea7a"}),u.file=new u("file",{fontCharacter:"\\ea7b"}),u.fileText=new u("file-text",{fontCharacter:"\\ea7b"}),u.more=new u("more",{fontCharacter:"\\ea7c"}),u.ellipsis=new u("ellipsis",{fontCharacter:"\\ea7c"}),u.kebabHorizontal=new u("kebab-horizontal",{fontCharacter:"\\ea7c"}),u.mailReply=new u("mail-reply",{fontCharacter:"\\ea7d"}),u.reply=new u("reply",{fontCharacter:"\\ea7d"}),u.organization=new u("organization",{fontCharacter:"\\ea7e"}),u.organizationFilled=new u("organization-filled",{fontCharacter:"\\ea7e"}),u.organizationOutline=new u("organization-outline",{fontCharacter:"\\ea7e"}),u.newFile=new u("new-file",{fontCharacter:"\\ea7f"}),u.fileAdd=new u("file-add",{fontCharacter:"\\ea7f"}),u.newFolder=new u("new-folder",{fontCharacter:"\\ea80"}),u.fileDirectoryCreate=new u("file-directory-create",{fontCharacter:"\\ea80"}),u.trash=new u("trash",{fontCharacter:"\\ea81"}),u.trashcan=new u("trashcan",{fontCharacter:"\\ea81"}),u.history=new u("history",{fontCharacter:"\\ea82"}),u.clock=new u("clock",{fontCharacter:"\\ea82"}),u.folder=new u("folder",{fontCharacter:"\\ea83"}),u.fileDirectory=new u("file-directory",{fontCharacter:"\\ea83"}),u.symbolFolder=new u("symbol-folder",{fontCharacter:"\\ea83"}),u.logoGithub=new u("logo-github",{fontCharacter:"\\ea84"}),u.markGithub=new u("mark-github",{fontCharacter:"\\ea84"}),u.github=new u("github",{fontCharacter:"\\ea84"}),u.terminal=new u("terminal",{fontCharacter:"\\ea85"}),u.console=new u("console",{fontCharacter:"\\ea85"}),u.repl=new u("repl",{fontCharacter:"\\ea85"}),u.zap=new u("zap",{fontCharacter:"\\ea86"}),u.symbolEvent=new u("symbol-event",{fontCharacter:"\\ea86"}),u.error=new u("error",{fontCharacter:"\\ea87"}),u.stop=new u("stop",{fontCharacter:"\\ea87"}),u.variable=new u("variable",{fontCharacter:"\\ea88"}),u.symbolVariable=new u("symbol-variable",{fontCharacter:"\\ea88"}),u.array=new u("array",{fontCharacter:"\\ea8a"}),u.symbolArray=new u("symbol-array",{fontCharacter:"\\ea8a"}),u.symbolModule=new u("symbol-module",{fontCharacter:"\\ea8b"}),u.symbolPackage=new u("symbol-package",{fontCharacter:"\\ea8b"}),u.symbolNamespace=new u("symbol-namespace",{fontCharacter:"\\ea8b"}),u.symbolObject=new u("symbol-object",{fontCharacter:"\\ea8b"}),u.symbolMethod=new u("symbol-method",{fontCharacter:"\\ea8c"}),u.symbolFunction=new u("symbol-function",{fontCharacter:"\\ea8c"}),u.symbolConstructor=new u("symbol-constructor",{fontCharacter:"\\ea8c"}),u.symbolBoolean=new u("symbol-boolean",{fontCharacter:"\\ea8f"}),u.symbolNull=new u("symbol-null",{fontCharacter:"\\ea8f"}),u.symbolNumeric=new u("symbol-numeric",{fontCharacter:"\\ea90"}),u.symbolNumber=new u("symbol-number",{fontCharacter:"\\ea90"}),u.symbolStructure=new u("symbol-structure",{fontCharacter:"\\ea91"}),u.symbolStruct=new u("symbol-struct",{fontCharacter:"\\ea91"}),u.symbolParameter=new u("symbol-parameter",{fontCharacter:"\\ea92"}),u.symbolTypeParameter=new u("symbol-type-parameter",{fontCharacter:"\\ea92"}),u.symbolKey=new u("symbol-key",{fontCharacter:"\\ea93"}),u.symbolText=new u("symbol-text",{fontCharacter:"\\ea93"}),u.symbolReference=new u("symbol-reference",{fontCharacter:"\\ea94"}),u.goToFile=new u("go-to-file",{fontCharacter:"\\ea94"}),u.symbolEnum=new u("symbol-enum",{fontCharacter:"\\ea95"}),u.symbolValue=new u("symbol-value",{fontCharacter:"\\ea95"}),u.symbolRuler=new u("symbol-ruler",{fontCharacter:"\\ea96"}),u.symbolUnit=new u("symbol-unit",{fontCharacter:"\\ea96"}),u.activateBreakpoints=new u("activate-breakpoints",{fontCharacter:"\\ea97"}),u.archive=new u("archive",{fontCharacter:"\\ea98"}),u.arrowBoth=new u("arrow-both",{fontCharacter:"\\ea99"}),u.arrowDown=new u("arrow-down",{fontCharacter:"\\ea9a"}),u.arrowLeft=new u("arrow-left",{fontCharacter:"\\ea9b"}),u.arrowRight=new u("arrow-right",{fontCharacter:"\\ea9c"}),u.arrowSmallDown=new u("arrow-small-down",{fontCharacter:"\\ea9d"}),u.arrowSmallLeft=new u("arrow-small-left",{fontCharacter:"\\ea9e"}),u.arrowSmallRight=new u("arrow-small-right",{fontCharacter:"\\ea9f"}),u.arrowSmallUp=new u("arrow-small-up",{fontCharacter:"\\eaa0"}),u.arrowUp=new u("arrow-up",{fontCharacter:"\\eaa1"}),u.bell=new u("bell",{fontCharacter:"\\eaa2"}),u.bold=new u("bold",{fontCharacter:"\\eaa3"}),u.book=new u("book",{fontCharacter:"\\eaa4"}),u.bookmark=new u("bookmark",{fontCharacter:"\\eaa5"}),u.debugBreakpointConditionalUnverified=new u("debug-breakpoint-conditional-unverified",{fontCharacter:"\\eaa6"}),u.debugBreakpointConditional=new u("debug-breakpoint-conditional",{fontCharacter:"\\eaa7"}),u.debugBreakpointConditionalDisabled=new u("debug-breakpoint-conditional-disabled",{fontCharacter:"\\eaa7"}),u.debugBreakpointDataUnverified=new u("debug-breakpoint-data-unverified",{fontCharacter:"\\eaa8"}),u.debugBreakpointData=new u("debug-breakpoint-data",{fontCharacter:"\\eaa9"}),u.debugBreakpointDataDisabled=new u("debug-breakpoint-data-disabled",{fontCharacter:"\\eaa9"}),u.debugBreakpointLogUnverified=new u("debug-breakpoint-log-unverified",{fontCharacter:"\\eaaa"}),u.debugBreakpointLog=new u("debug-breakpoint-log",{fontCharacter:"\\eaab"}),u.debugBreakpointLogDisabled=new u("debug-breakpoint-log-disabled",{fontCharacter:"\\eaab"}),u.briefcase=new u("briefcase",{fontCharacter:"\\eaac"}),u.broadcast=new u("broadcast",{fontCharacter:"\\eaad"}),u.browser=new u("browser",{fontCharacter:"\\eaae"}),u.bug=new u("bug",{fontCharacter:"\\eaaf"}),u.calendar=new u("calendar",{fontCharacter:"\\eab0"}),u.caseSensitive=new u("case-sensitive",{fontCharacter:"\\eab1"}),u.check=new u("check",{fontCharacter:"\\eab2"}),u.checklist=new u("checklist",{fontCharacter:"\\eab3"}),u.chevronDown=new u("chevron-down",{fontCharacter:"\\eab4"}),u.dropDownButton=new u("drop-down-button",u.chevronDown.definition),u.chevronLeft=new u("chevron-left",{fontCharacter:"\\eab5"}),u.chevronRight=new u("chevron-right",{fontCharacter:"\\eab6"}),u.chevronUp=new u("chevron-up",{fontCharacter:"\\eab7"}),u.chromeClose=new u("chrome-close",{fontCharacter:"\\eab8"}),u.chromeMaximize=new u("chrome-maximize",{fontCharacter:"\\eab9"}),u.chromeMinimize=new u("chrome-minimize",{fontCharacter:"\\eaba"}),u.chromeRestore=new u("chrome-restore",{fontCharacter:"\\eabb"}),u.circleOutline=new u("circle-outline",{fontCharacter:"\\eabc"}),u.debugBreakpointUnverified=new u("debug-breakpoint-unverified",{fontCharacter:"\\eabc"}),u.circleSlash=new u("circle-slash",{fontCharacter:"\\eabd"}),u.circuitBoard=new u("circuit-board",{fontCharacter:"\\eabe"}),u.clearAll=new u("clear-all",{fontCharacter:"\\eabf"}),u.clippy=new u("clippy",{fontCharacter:"\\eac0"}),u.closeAll=new u("close-all",{fontCharacter:"\\eac1"}),u.cloudDownload=new u("cloud-download",{fontCharacter:"\\eac2"}),u.cloudUpload=new u("cloud-upload",{fontCharacter:"\\eac3"}),u.code=new u("code",{fontCharacter:"\\eac4"}),u.collapseAll=new u("collapse-all",{fontCharacter:"\\eac5"}),u.colorMode=new u("color-mode",{fontCharacter:"\\eac6"}),u.commentDiscussion=new u("comment-discussion",{fontCharacter:"\\eac7"}),u.compareChanges=new u("compare-changes",{fontCharacter:"\\eafd"}),u.creditCard=new u("credit-card",{fontCharacter:"\\eac9"}),u.dash=new u("dash",{fontCharacter:"\\eacc"}),u.dashboard=new u("dashboard",{fontCharacter:"\\eacd"}),u.database=new u("database",{fontCharacter:"\\eace"}),u.debugContinue=new u("debug-continue",{fontCharacter:"\\eacf"}),u.debugDisconnect=new u("debug-disconnect",{fontCharacter:"\\ead0"}),u.debugPause=new u("debug-pause",{fontCharacter:"\\ead1"}),u.debugRestart=new u("debug-restart",{fontCharacter:"\\ead2"}),u.debugStart=new u("debug-start",{fontCharacter:"\\ead3"}),u.debugStepInto=new u("debug-step-into",{fontCharacter:"\\ead4"}),u.debugStepOut=new u("debug-step-out",{fontCharacter:"\\ead5"}),u.debugStepOver=new u("debug-step-over",{fontCharacter:"\\ead6"}),u.debugStop=new u("debug-stop",{fontCharacter:"\\ead7"}),u.debug=new u("debug",{fontCharacter:"\\ead8"}),u.deviceCameraVideo=new u("device-camera-video",{fontCharacter:"\\ead9"}),u.deviceCamera=new u("device-camera",{fontCharacter:"\\eada"}),u.deviceMobile=new u("device-mobile",{fontCharacter:"\\eadb"}),u.diffAdded=new u("diff-added",{fontCharacter:"\\eadc"}),u.diffIgnored=new u("diff-ignored",{fontCharacter:"\\eadd"}),u.diffModified=new u("diff-modified",{fontCharacter:"\\eade"}),u.diffRemoved=new u("diff-removed",{fontCharacter:"\\eadf"}),u.diffRenamed=new u("diff-renamed",{fontCharacter:"\\eae0"}),u.diff=new u("diff",{fontCharacter:"\\eae1"}),u.discard=new u("discard",{fontCharacter:"\\eae2"}),u.editorLayout=new u("editor-layout",{fontCharacter:"\\eae3"}),u.emptyWindow=new u("empty-window",{fontCharacter:"\\eae4"}),u.exclude=new u("exclude",{fontCharacter:"\\eae5"}),u.extensions=new u("extensions",{fontCharacter:"\\eae6"}),u.eyeClosed=new u("eye-closed",{fontCharacter:"\\eae7"}),u.fileBinary=new u("file-binary",{fontCharacter:"\\eae8"}),u.fileCode=new u("file-code",{fontCharacter:"\\eae9"}),u.fileMedia=new u("file-media",{fontCharacter:"\\eaea"}),u.filePdf=new u("file-pdf",{fontCharacter:"\\eaeb"}),u.fileSubmodule=new u("file-submodule",{fontCharacter:"\\eaec"}),u.fileSymlinkDirectory=new u("file-symlink-directory",{fontCharacter:"\\eaed"}),u.fileSymlinkFile=new u("file-symlink-file",{fontCharacter:"\\eaee"}),u.fileZip=new u("file-zip",{fontCharacter:"\\eaef"}),u.files=new u("files",{fontCharacter:"\\eaf0"}),u.filter=new u("filter",{fontCharacter:"\\eaf1"}),u.flame=new u("flame",{fontCharacter:"\\eaf2"}),u.foldDown=new u("fold-down",{fontCharacter:"\\eaf3"}),u.foldUp=new u("fold-up",{fontCharacter:"\\eaf4"}),u.fold=new u("fold",{fontCharacter:"\\eaf5"}),u.folderActive=new u("folder-active",{fontCharacter:"\\eaf6"}),u.folderOpened=new u("folder-opened",{fontCharacter:"\\eaf7"}),u.gear=new u("gear",{fontCharacter:"\\eaf8"}),u.gift=new u("gift",{fontCharacter:"\\eaf9"}),u.gistSecret=new u("gist-secret",{fontCharacter:"\\eafa"}),u.gist=new u("gist",{fontCharacter:"\\eafb"}),u.gitCommit=new u("git-commit",{fontCharacter:"\\eafc"}),u.gitCompare=new u("git-compare",{fontCharacter:"\\eafd"}),u.gitMerge=new u("git-merge",{fontCharacter:"\\eafe"}),u.githubAction=new u("github-action",{fontCharacter:"\\eaff"}),u.githubAlt=new u("github-alt",{fontCharacter:"\\eb00"}),u.globe=new u("globe",{fontCharacter:"\\eb01"}),u.grabber=new u("grabber",{fontCharacter:"\\eb02"}),u.graph=new u("graph",{fontCharacter:"\\eb03"}),u.gripper=new u("gripper",{fontCharacter:"\\eb04"}),u.heart=new u("heart",{fontCharacter:"\\eb05"}),u.home=new u("home",{fontCharacter:"\\eb06"}),u.horizontalRule=new u("horizontal-rule",{fontCharacter:"\\eb07"}),u.hubot=new u("hubot",{fontCharacter:"\\eb08"}),u.inbox=new u("inbox",{fontCharacter:"\\eb09"}),u.issueClosed=new u("issue-closed",{fontCharacter:"\\eba4"}),u.issueReopened=new u("issue-reopened",{fontCharacter:"\\eb0b"}),u.issues=new u("issues",{fontCharacter:"\\eb0c"}),u.italic=new u("italic",{fontCharacter:"\\eb0d"}),u.jersey=new u("jersey",{fontCharacter:"\\eb0e"}),u.json=new u("json",{fontCharacter:"\\eb0f"}),u.kebabVertical=new u("kebab-vertical",{fontCharacter:"\\eb10"}),u.key=new u("key",{fontCharacter:"\\eb11"}),u.law=new u("law",{fontCharacter:"\\eb12"}),u.lightbulbAutofix=new u("lightbulb-autofix",{fontCharacter:"\\eb13"}),u.linkExternal=new u("link-external",{fontCharacter:"\\eb14"}),u.link=new u("link",{fontCharacter:"\\eb15"}),u.listOrdered=new u("list-ordered",{fontCharacter:"\\eb16"}),u.listUnordered=new u("list-unordered",{fontCharacter:"\\eb17"}),u.liveShare=new u("live-share",{fontCharacter:"\\eb18"}),u.loading=new u("loading",{fontCharacter:"\\eb19"}),u.location=new u("location",{fontCharacter:"\\eb1a"}),u.mailRead=new u("mail-read",{fontCharacter:"\\eb1b"}),u.mail=new u("mail",{fontCharacter:"\\eb1c"}),u.markdown=new u("markdown",{fontCharacter:"\\eb1d"}),u.megaphone=new u("megaphone",{fontCharacter:"\\eb1e"}),u.mention=new u("mention",{fontCharacter:"\\eb1f"}),u.milestone=new u("milestone",{fontCharacter:"\\eb20"}),u.mortarBoard=new u("mortar-board",{fontCharacter:"\\eb21"}),u.move=new u("move",{fontCharacter:"\\eb22"}),u.multipleWindows=new u("multiple-windows",{fontCharacter:"\\eb23"}),u.mute=new u("mute",{fontCharacter:"\\eb24"}),u.noNewline=new u("no-newline",{fontCharacter:"\\eb25"}),u.note=new u("note",{fontCharacter:"\\eb26"}),u.octoface=new u("octoface",{fontCharacter:"\\eb27"}),u.openPreview=new u("open-preview",{fontCharacter:"\\eb28"}),u.package_=new u("package",{fontCharacter:"\\eb29"}),u.paintcan=new u("paintcan",{fontCharacter:"\\eb2a"}),u.pin=new u("pin",{fontCharacter:"\\eb2b"}),u.play=new u("play",{fontCharacter:"\\eb2c"}),u.run=new u("run",{fontCharacter:"\\eb2c"}),u.plug=new u("plug",{fontCharacter:"\\eb2d"}),u.preserveCase=new u("preserve-case",{fontCharacter:"\\eb2e"}),u.preview=new u("preview",{fontCharacter:"\\eb2f"}),u.project=new u("project",{fontCharacter:"\\eb30"}),u.pulse=new u("pulse",{fontCharacter:"\\eb31"}),u.question=new u("question",{fontCharacter:"\\eb32"}),u.quote=new u("quote",{fontCharacter:"\\eb33"}),u.radioTower=new u("radio-tower",{fontCharacter:"\\eb34"}),u.reactions=new u("reactions",{fontCharacter:"\\eb35"}),u.references=new u("references",{fontCharacter:"\\eb36"}),u.refresh=new u("refresh",{fontCharacter:"\\eb37"}),u.regex=new u("regex",{fontCharacter:"\\eb38"}),u.remoteExplorer=new u("remote-explorer",{fontCharacter:"\\eb39"}),u.remote=new u("remote",{fontCharacter:"\\eb3a"}),u.remove=new u("remove",{fontCharacter:"\\eb3b"}),u.replaceAll=new u("replace-all",{fontCharacter:"\\eb3c"}),u.replace=new u("replace",{fontCharacter:"\\eb3d"}),u.repoClone=new u("repo-clone",{fontCharacter:"\\eb3e"}),u.repoForcePush=new u("repo-force-push",{fontCharacter:"\\eb3f"}),u.repoPull=new u("repo-pull",{fontCharacter:"\\eb40"}),u.repoPush=new u("repo-push",{fontCharacter:"\\eb41"}),u.report=new u("report",{fontCharacter:"\\eb42"}),u.requestChanges=new u("request-changes",{fontCharacter:"\\eb43"}),u.rocket=new u("rocket",{fontCharacter:"\\eb44"}),u.rootFolderOpened=new u("root-folder-opened",{fontCharacter:"\\eb45"}),u.rootFolder=new u("root-folder",{fontCharacter:"\\eb46"}),u.rss=new u("rss",{fontCharacter:"\\eb47"}),u.ruby=new u("ruby",{fontCharacter:"\\eb48"}),u.saveAll=new u("save-all",{fontCharacter:"\\eb49"}),u.saveAs=new u("save-as",{fontCharacter:"\\eb4a"}),u.save=new u("save",{fontCharacter:"\\eb4b"}),u.screenFull=new u("screen-full",{fontCharacter:"\\eb4c"}),u.screenNormal=new u("screen-normal",{fontCharacter:"\\eb4d"}),u.searchStop=new u("search-stop",{fontCharacter:"\\eb4e"}),u.server=new u("server",{fontCharacter:"\\eb50"}),u.settingsGear=new u("settings-gear",{fontCharacter:"\\eb51"}),u.settings=new u("settings",{fontCharacter:"\\eb52"}),u.shield=new u("shield",{fontCharacter:"\\eb53"}),u.smiley=new u("smiley",{fontCharacter:"\\eb54"}),u.sortPrecedence=new u("sort-precedence",{fontCharacter:"\\eb55"}),u.splitHorizontal=new u("split-horizontal",{fontCharacter:"\\eb56"}),u.splitVertical=new u("split-vertical",{fontCharacter:"\\eb57"}),u.squirrel=new u("squirrel",{fontCharacter:"\\eb58"}),u.starFull=new u("star-full",{fontCharacter:"\\eb59"}),u.starHalf=new u("star-half",{fontCharacter:"\\eb5a"}),u.symbolClass=new u("symbol-class",{fontCharacter:"\\eb5b"}),u.symbolColor=new u("symbol-color",{fontCharacter:"\\eb5c"}),u.symbolConstant=new u("symbol-constant",{fontCharacter:"\\eb5d"}),u.symbolEnumMember=new u("symbol-enum-member",{fontCharacter:"\\eb5e"}),u.symbolField=new u("symbol-field",{fontCharacter:"\\eb5f"}),u.symbolFile=new u("symbol-file",{fontCharacter:"\\eb60"}),u.symbolInterface=new u("symbol-interface",{fontCharacter:"\\eb61"}),u.symbolKeyword=new u("symbol-keyword",{fontCharacter:"\\eb62"}),u.symbolMisc=new u("symbol-misc",{fontCharacter:"\\eb63"}),u.symbolOperator=new u("symbol-operator",{fontCharacter:"\\eb64"}),u.symbolProperty=new u("symbol-property",{fontCharacter:"\\eb65"}),u.wrench=new u("wrench",{fontCharacter:"\\eb65"}),u.wrenchSubaction=new u("wrench-subaction",{fontCharacter:"\\eb65"}),u.symbolSnippet=new u("symbol-snippet",{fontCharacter:"\\eb66"}),u.tasklist=new u("tasklist",{fontCharacter:"\\eb67"}),u.telescope=new u("telescope",{fontCharacter:"\\eb68"}),u.textSize=new u("text-size",{fontCharacter:"\\eb69"}),u.threeBars=new u("three-bars",{fontCharacter:"\\eb6a"}),u.thumbsdown=new u("thumbsdown",{fontCharacter:"\\eb6b"}),u.thumbsup=new u("thumbsup",{fontCharacter:"\\eb6c"}),u.tools=new u("tools",{fontCharacter:"\\eb6d"}),u.triangleDown=new u("triangle-down",{fontCharacter:"\\eb6e"}),u.triangleLeft=new u("triangle-left",{fontCharacter:"\\eb6f"}),u.triangleRight=new u("triangle-right",{fontCharacter:"\\eb70"}),u.triangleUp=new u("triangle-up",{fontCharacter:"\\eb71"}),u.twitter=new u("twitter",{fontCharacter:"\\eb72"}),u.unfold=new u("unfold",{fontCharacter:"\\eb73"}),u.unlock=new u("unlock",{fontCharacter:"\\eb74"}),u.unmute=new u("unmute",{fontCharacter:"\\eb75"}),u.unverified=new u("unverified",{fontCharacter:"\\eb76"}),u.verified=new u("verified",{fontCharacter:"\\eb77"}),u.versions=new u("versions",{fontCharacter:"\\eb78"}),u.vmActive=new u("vm-active",{fontCharacter:"\\eb79"}),u.vmOutline=new u("vm-outline",{fontCharacter:"\\eb7a"}),u.vmRunning=new u("vm-running",{fontCharacter:"\\eb7b"}),u.watch=new u("watch",{fontCharacter:"\\eb7c"}),u.whitespace=new u("whitespace",{fontCharacter:"\\eb7d"}),u.wholeWord=new u("whole-word",{fontCharacter:"\\eb7e"}),u.window=new u("window",{fontCharacter:"\\eb7f"}),u.wordWrap=new u("word-wrap",{fontCharacter:"\\eb80"}),u.zoomIn=new u("zoom-in",{fontCharacter:"\\eb81"}),u.zoomOut=new u("zoom-out",{fontCharacter:"\\eb82"}),u.listFilter=new u("list-filter",{fontCharacter:"\\eb83"}),u.listFlat=new u("list-flat",{fontCharacter:"\\eb84"}),u.listSelection=new u("list-selection",{fontCharacter:"\\eb85"}),u.selection=new u("selection",{fontCharacter:"\\eb85"}),u.listTree=new u("list-tree",{fontCharacter:"\\eb86"}),u.debugBreakpointFunctionUnverified=new u("debug-breakpoint-function-unverified",{fontCharacter:"\\eb87"}),u.debugBreakpointFunction=new u("debug-breakpoint-function",{fontCharacter:"\\eb88"}),u.debugBreakpointFunctionDisabled=new u("debug-breakpoint-function-disabled",{fontCharacter:"\\eb88"}),u.debugStackframeActive=new u("debug-stackframe-active",{fontCharacter:"\\eb89"}),u.debugStackframeDot=new u("debug-stackframe-dot",{fontCharacter:"\\eb8a"}),u.debugStackframe=new u("debug-stackframe",{fontCharacter:"\\eb8b"}),u.debugStackframeFocused=new u("debug-stackframe-focused",{fontCharacter:"\\eb8b"}),u.debugBreakpointUnsupported=new u("debug-breakpoint-unsupported",{fontCharacter:"\\eb8c"}),u.symbolString=new u("symbol-string",{fontCharacter:"\\eb8d"}),u.debugReverseContinue=new u("debug-reverse-continue",{fontCharacter:"\\eb8e"}),u.debugStepBack=new u("debug-step-back",{fontCharacter:"\\eb8f"}),u.debugRestartFrame=new u("debug-restart-frame",{fontCharacter:"\\eb90"}),u.callIncoming=new u("call-incoming",{fontCharacter:"\\eb92"}),u.callOutgoing=new u("call-outgoing",{fontCharacter:"\\eb93"}),u.menu=new u("menu",{fontCharacter:"\\eb94"}),u.expandAll=new u("expand-all",{fontCharacter:"\\eb95"}),u.feedback=new u("feedback",{fontCharacter:"\\eb96"}),u.groupByRefType=new u("group-by-ref-type",{fontCharacter:"\\eb97"}),u.ungroupByRefType=new u("ungroup-by-ref-type",{fontCharacter:"\\eb98"}),u.account=new u("account",{fontCharacter:"\\eb99"}),u.bellDot=new u("bell-dot",{fontCharacter:"\\eb9a"}),u.debugConsole=new u("debug-console",{fontCharacter:"\\eb9b"}),u.library=new u("library",{fontCharacter:"\\eb9c"}),u.output=new u("output",{fontCharacter:"\\eb9d"}),u.runAll=new u("run-all",{fontCharacter:"\\eb9e"}),u.syncIgnored=new u("sync-ignored",{fontCharacter:"\\eb9f"}),u.pinned=new u("pinned",{fontCharacter:"\\eba0"}),u.githubInverted=new u("github-inverted",{fontCharacter:"\\eba1"}),u.debugAlt=new u("debug-alt",{fontCharacter:"\\eb91"}),u.serverProcess=new u("server-process",{fontCharacter:"\\eba2"}),u.serverEnvironment=new u("server-environment",{fontCharacter:"\\eba3"}),u.pass=new u("pass",{fontCharacter:"\\eba4"}),u.stopCircle=new u("stop-circle",{fontCharacter:"\\eba5"}),u.playCircle=new u("play-circle",{fontCharacter:"\\eba6"}),u.record=new u("record",{fontCharacter:"\\eba7"}),u.debugAltSmall=new u("debug-alt-small",{fontCharacter:"\\eba8"}),u.vmConnect=new u("vm-connect",{fontCharacter:"\\eba9"}),u.cloud=new u("cloud",{fontCharacter:"\\ebaa"}),u.merge=new u("merge",{fontCharacter:"\\ebab"}),u.exportIcon=new u("export",{fontCharacter:"\\ebac"}),u.graphLeft=new u("graph-left",{fontCharacter:"\\ebad"}),u.magnet=new u("magnet",{fontCharacter:"\\ebae"}),u.notebook=new u("notebook",{fontCharacter:"\\ebaf"}),u.redo=new u("redo",{fontCharacter:"\\ebb0"}),u.checkAll=new u("check-all",{fontCharacter:"\\ebb1"}),u.pinnedDirty=new u("pinned-dirty",{fontCharacter:"\\ebb2"}),u.passFilled=new u("pass-filled",{fontCharacter:"\\ebb3"}),u.circleLargeFilled=new u("circle-large-filled",{fontCharacter:"\\ebb4"}),u.circleLargeOutline=new u("circle-large-outline",{fontCharacter:"\\ebb5"}),u.combine=new u("combine",{fontCharacter:"\\ebb6"}),u.gather=new u("gather",{fontCharacter:"\\ebb6"}),u.table=new u("table",{fontCharacter:"\\ebb7"}),u.variableGroup=new u("variable-group",{fontCharacter:"\\ebb8"}),u.typeHierarchy=new u("type-hierarchy",{fontCharacter:"\\ebb9"}),u.typeHierarchySub=new u("type-hierarchy-sub",{fontCharacter:"\\ebba"}),u.typeHierarchySuper=new u("type-hierarchy-super",{fontCharacter:"\\ebbb"}),u.gitPullRequestCreate=new u("git-pull-request-create",{fontCharacter:"\\ebbc"}),u.runAbove=new u("run-above",{fontCharacter:"\\ebbd"}),u.runBelow=new u("run-below",{fontCharacter:"\\ebbe"}),u.notebookTemplate=new u("notebook-template",{fontCharacter:"\\ebbf"}),u.debugRerun=new u("debug-rerun",{fontCharacter:"\\ebc0"}),u.workspaceTrusted=new u("workspace-trusted",{fontCharacter:"\\ebc1"}),u.workspaceUntrusted=new u("workspace-untrusted",{fontCharacter:"\\ebc2"}),u.workspaceUnspecified=new u("workspace-unspecified",{fontCharacter:"\\ebc3"}),u.terminalCmd=new u("terminal-cmd",{fontCharacter:"\\ebc4"}),u.terminalDebian=new u("terminal-debian",{fontCharacter:"\\ebc5"}),u.terminalLinux=new u("terminal-linux",{fontCharacter:"\\ebc6"}),u.terminalPowershell=new u("terminal-powershell",{fontCharacter:"\\ebc7"}),u.terminalTmux=new u("terminal-tmux",{fontCharacter:"\\ebc8"}),u.terminalUbuntu=new u("terminal-ubuntu",{fontCharacter:"\\ebc9"}),u.terminalBash=new u("terminal-bash",{fontCharacter:"\\ebca"}),u.arrowSwap=new u("arrow-swap",{fontCharacter:"\\ebcb"}),u.copy=new u("copy",{fontCharacter:"\\ebcc"}),u.personAdd=new u("person-add",{fontCharacter:"\\ebcd"}),u.filterFilled=new u("filter-filled",{fontCharacter:"\\ebce"}),u.wand=new u("wand",{fontCharacter:"\\ebcf"}),u.debugLineByLine=new u("debug-line-by-line",{fontCharacter:"\\ebd0"}),u.inspect=new u("inspect",{fontCharacter:"\\ebd1"}),u.layers=new u("layers",{fontCharacter:"\\ebd2"}),u.layersDot=new u("layers-dot",{fontCharacter:"\\ebd3"}),u.layersActive=new u("layers-active",{fontCharacter:"\\ebd4"}),u.compass=new u("compass",{fontCharacter:"\\ebd5"}),u.compassDot=new u("compass-dot",{fontCharacter:"\\ebd6"}),u.compassActive=new u("compass-active",{fontCharacter:"\\ebd7"}),u.azure=new u("azure",{fontCharacter:"\\ebd8"}),u.issueDraft=new u("issue-draft",{fontCharacter:"\\ebd9"}),u.gitPullRequestClosed=new u("git-pull-request-closed",{fontCharacter:"\\ebda"}),u.gitPullRequestDraft=new u("git-pull-request-draft",{fontCharacter:"\\ebdb"}),u.debugAll=new u("debug-all",{fontCharacter:"\\ebdc"}),u.debugCoverage=new u("debug-coverage",{fontCharacter:"\\ebdd"}),u.runErrors=new u("run-errors",{fontCharacter:"\\ebde"}),u.folderLibrary=new u("folder-library",{fontCharacter:"\\ebdf"}),u.debugContinueSmall=new u("debug-continue-small",{fontCharacter:"\\ebe0"}),u.beakerStop=new u("beaker-stop",{fontCharacter:"\\ebe1"}),u.graphLine=new u("graph-line",{fontCharacter:"\\ebe2"}),u.graphScatter=new u("graph-scatter",{fontCharacter:"\\ebe3"}),u.pieChart=new u("pie-chart",{fontCharacter:"\\ebe4"}),u.bracket=new u("bracket",u.json.definition),u.bracketDot=new u("bracket-dot",{fontCharacter:"\\ebe5"}),u.bracketError=new u("bracket-error",{fontCharacter:"\\ebe6"}),u.lockSmall=new u("lock-small",{fontCharacter:"\\ebe7"}),u.azureDevops=new u("azure-devops",{fontCharacter:"\\ebe8"}),u.verifiedFilled=new u("verified-filled",{fontCharacter:"\\ebe9"})}(Be||(Be={}))},79881:function(wn,Sr,je){"use strict";je.d(Sr,{B8:function(){return H},Cp:function(){return Me},F0:function(){return R},L6:function(){return C},VV:function(){return Be},b1:function(){return u},dL:function(){return Fe},ri:function(){return de}});class Ie{constructor(){this.listeners=[],this.unexpectedErrorHandler=function(L){setTimeout(()=>{throw L.stack?new Error(L.message+`
|
|
|
|
|
|
`+L.stack):L},0)}}emit(L){this.listeners.forEach(B=>{B(L)})}onUnexpectedError(L){this.unexpectedErrorHandler(L),this.emit(L)}onUnexpectedExternalError(L){this.unexpectedErrorHandler(L)}}const mt=new Ie;function Fe(w){Be(w)||mt.onUnexpectedError(w)}function Me(w){Be(w)||mt.onUnexpectedExternalError(w)}function de(w){if(w instanceof Error){let{name:L,message:B}=w;const k=w.stacktrace||w.stack;return{$isError:!0,name:L,message:B,stack:k}}return w}const I="Canceled";function Be(w){return w instanceof Error&&w.name===I&&w.message===I}function R(){const w=new Error(I);return w.name=w.message,w}function u(w){return w?new Error(`Illegal argument: ${w}`):new Error("Illegal argument")}function C(w){return w?new Error(`Illegal state: ${w}`):new Error("Illegal state")}class H extends Error{constructor(L){super("NotSupported"),L&&(this.message=L)}}},4348:function(wn,Sr,je){"use strict";je.d(Sr,{D0:function(){return H},E7:function(){return w},K3:function(){return C},Q5:function(){return u},ZD:function(){return L},ju:function(){return de}});var Ie=je(79881),mt=je(69323),Fe=je(34502),Me=je(95830),de;(function(B){B.None=()=>mt.JT.None;function k(ye){return(Te,me=null,xe)=>{let z=!1,j;return j=ye(ee=>{if(!z)return j?j.dispose():z=!0,Te.call(me,ee)},null,xe),z&&j.dispose(),j}}B.once=k;function K(ye,Te){return oe((me,xe=null,z)=>ye(j=>me.call(xe,Te(j)),null,z))}B.map=K;function V(ye,Te){return oe((me,xe=null,z)=>ye(j=>{Te(j),me.call(xe,j)},null,z))}B.forEach=V;function P(ye,Te){return oe((me,xe=null,z)=>ye(j=>Te(j)&&me.call(xe,j),null,z))}B.filter=P;function G(ye){return ye}B.signal=G;function Z(...ye){return(Te,me=null,xe)=>(0,mt.F8)(...ye.map(z=>z(j=>Te.call(me,j),null,xe)))}B.any=Z;function se(ye,Te,me){let xe=me;return K(ye,z=>(xe=Te(xe,z),xe))}B.reduce=se;function oe(ye){let Te;const me=new u({onFirstListenerAdd(){Te=ye(me.fire,me)},onLastListenerRemove(){Te.dispose()}});return me.event}function De(ye,Te,me=100,xe=!1,z){let j,ee,_e,ut=0;const Ft=new u({leakWarningThreshold:z,onFirstListenerAdd(){j=ye(Vt=>{ut++,ee=Te(ee,Vt),xe&&!_e&&(Ft.fire(ee),ee=void 0),clearTimeout(_e),_e=setTimeout(()=>{const vr=ee;ee=void 0,_e=void 0,(!xe||ut>1)&&Ft.fire(vr),ut=0},me)})},onLastListenerRemove(){j.dispose()}});return Ft.event}B.debounce=De;function He(ye,Te=(me,xe)=>me===xe){let me=!0,xe;return P(ye,z=>{const j=me||!Te(z,xe);return me=!1,xe=z,j})}B.latch=He;function Qe(ye,Te){return[B.filter(ye,Te),B.filter(ye,me=>!Te(me))]}B.split=Qe;function Ue(ye,Te=!1,me=[]){let xe=me.slice(),z=ye(_e=>{xe?xe.push(_e):ee.fire(_e)});const j=()=>{xe&&xe.forEach(_e=>ee.fire(_e)),xe=null},ee=new u({onFirstListenerAdd(){z||(z=ye(_e=>ee.fire(_e)))},onFirstListenerDidAdd(){xe&&(Te?setTimeout(j):j())},onLastListenerRemove(){z&&z.dispose(),z=null}});return ee.event}B.buffer=Ue;class qe{constructor(Te){this.event=Te}map(Te){return new qe(K(this.event,Te))}forEach(Te){return new qe(V(this.event,Te))}filter(Te){return new qe(P(this.event,Te))}reduce(Te,me){return new qe(se(this.event,Te,me))}latch(){return new qe(He(this.event))}debounce(Te,me=100,xe=!1,z){return new qe(De(this.event,Te,me,xe,z))}on(Te,me,xe){return this.event(Te,me,xe)}once(Te,me,xe){return k(this.event)(Te,me,xe)}}function st(ye){return new qe(ye)}B.chain=st;function Pe(ye,Te,me=xe=>xe){const xe=(..._e)=>ee.fire(me(..._e)),z=()=>ye.on(Te,xe),j=()=>ye.removeListener(Te,xe),ee=new u({onFirstListenerAdd:z,onLastListenerRemove:j});return ee.event}B.fromNodeEventEmitter=Pe;function pe(ye,Te,me=xe=>xe){const xe=(..._e)=>ee.fire(me(..._e)),z=()=>ye.addEventListener(Te,xe),j=()=>ye.removeEventListener(Te,xe),ee=new u({onFirstListenerAdd:z,onLastListenerRemove:j});return ee.event}B.fromDOMEventEmitter=pe;function M(ye){return new Promise(Te=>k(ye)(Te))}B.toPromise=M})(de||(de={}));class I{constructor(k){this._listenerCount=0,this._invocationCount=0,this._elapsedOverall=0,this._name=`${k}_${I._idPool++}`}start(k){this._stopWatch=new Me.G(!0),this._listenerCount=k}stop(){if(this._stopWatch){const k=this._stopWatch.elapsed();this._elapsedOverall+=k,this._invocationCount+=1,console.info(`did FIRE ${this._name}: elapsed_ms: ${k.toFixed(5)}, listener: ${this._listenerCount} (elapsed_overall: ${this._elapsedOverall.toFixed(2)}, invocations: ${this._invocationCount})`),this._stopWatch=void 0}}}I._idPool=0;let Be=-1;class R{constructor(k,K=Math.random().toString(18).slice(2,5)){this.customThreshold=k,this.name=K,this._warnCountdown=0}dispose(){this._stacks&&this._stacks.clear()}check(k){let K=Be;if(typeof this.customThreshold=="number"&&(K=this.customThreshold),K<=0||k<K)return;this._stacks||(this._stacks=new Map);const V=new Error().stack.split(`
|
|
|
`).slice(3).join(`
|
|
|
`),P=this._stacks.get(V)||0;if(this._stacks.set(V,P+1),this._warnCountdown-=1,this._warnCountdown<=0){this._warnCountdown=K*.5;let G,Z=0;for(const[se,oe]of this._stacks)(!G||Z<oe)&&(G=se,Z=oe);console.warn(`[${this.name}] potential listener LEAK detected, having ${k} listeners already. MOST frequent listener (${Z}):`),console.warn(G)}return()=>{const G=this._stacks.get(V)||0;this._stacks.set(V,G-1)}}}class u{constructor(k){var K;this._disposed=!1,this._options=k,this._leakageMon=Be>0?new R(this._options&&this._options.leakWarningThreshold):void 0,this._perfMon=!((K=this._options)===null||K===void 0)&&K._profName?new I(this._options._profName):void 0}get event(){return this._event||(this._event=(k,K,V)=>{var P;this._listeners||(this._listeners=new Fe.S);const G=this._listeners.isEmpty();G&&this._options&&this._options.onFirstListenerAdd&&this._options.onFirstListenerAdd(this);const Z=this._listeners.push(K?[k,K]:k);G&&this._options&&this._options.onFirstListenerDidAdd&&this._options.onFirstListenerDidAdd(this),this._options&&this._options.onListenerDidAdd&&this._options.onListenerDidAdd(this,k,K);const se=(P=this._leakageMon)===null||P===void 0?void 0:P.check(this._listeners.size),oe=(0,mt.OF)(()=>{se&&se(),this._disposed||(Z(),this._options&&this._options.onLastListenerRemove&&(this._listeners&&!this._listeners.isEmpty()||this._options.onLastListenerRemove(this)))});return V instanceof mt.SL?V.add(oe):Array.isArray(V)&&V.push(oe),oe}),this._event}fire(k){var K,V;if(this._listeners){this._deliveryQueue||(this._deliveryQueue=new Fe.S);for(let P of this._listeners)this._deliveryQueue.push([P,k]);for((K=this._perfMon)===null||K===void 0||K.start(this._deliveryQueue.size);this._deliveryQueue.size>0;){const[P,G]=this._deliveryQueue.shift();try{typeof P=="function"?P.call(void 0,G):P[0].call(P[1],G)}catch(Z){(0,Ie.dL)(Z)}}(V=this._perfMon)===null||V===void 0||V.stop()}}dispose(){var k,K,V,P,G;this._disposed||(this._disposed=!0,(k=this._listeners)===null||k===void 0||k.clear(),(K=this._deliveryQueue)===null||K===void 0||K.clear(),(P=(V=this._options)===null||V===void 0?void 0:V.onLastListenerRemove)===null||P===void 0||P.call(V),(G=this._leakageMon)===null||G===void 0||G.dispose())}}class C extends u{constructor(k){super(k),this._isPaused=0,this._eventQueue=new Fe.S,this._mergeFn=k==null?void 0:k.merge}pause(){this._isPaused++}resume(){if(this._isPaused!==0&&--this._isPaused===0)if(this._mergeFn){const k=Array.from(this._eventQueue);this._eventQueue.clear(),super.fire(this._mergeFn(k))}else for(;!this._isPaused&&this._eventQueue.size!==0;)super.fire(this._eventQueue.shift())}fire(k){this._listeners&&(this._isPaused!==0?this._eventQueue.push(k):super.fire(k))}}class H extends C{constructor(k){var K;super(k),this._delay=(K=k.delay)!==null&&K!==void 0?K:100}fire(k){this._handle||(this.pause(),this._handle=setTimeout(()=>{this._handle=void 0,this.resume()},this._delay)),super.fire(k)}}class w{constructor(){this.buffers=[]}wrapEvent(k){return(K,V,P)=>k(G=>{const Z=this.buffers[this.buffers.length-1];Z?Z.push(()=>K.call(V,G)):K.call(V,G)},void 0,P)}bufferEvents(k){const K=[];this.buffers.push(K);const V=k();return this.buffers.pop(),K.forEach(P=>P()),V}}class L{constructor(){this.listening=!1,this.inputEvent=de.None,this.inputEventListener=mt.JT.None,this.emitter=new u({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(k){this.inputEvent=k,this.listening&&(this.inputEventListener.dispose(),this.inputEventListener=k(this.emitter.fire,this.emitter))}dispose(){this.inputEventListener.dispose(),this.emitter.dispose()}}},17845:function(wn,Sr,je){"use strict";je.d(Sr,{I:function(){return Ie}});function Ie(mt){const Fe=this;let Me=!1,de;return function(){return Me||(Me=!0,de=mt.apply(Fe,arguments)),de}}},88226:function(wn,Sr,je){"use strict";je.d(Sr,{$:function(){return Ie}});var Ie;(function(mt){function Fe(Z){return Z&&typeof Z=="object"&&typeof Z[Symbol.iterator]=="function"}mt.is=Fe;const Me=Object.freeze([]);function de(){return Me}mt.empty=de;function*I(Z){yield Z}mt.single=I;function Be(Z){return Z||Me}mt.from=Be;function R(Z){return!Z||Z[Symbol.iterator]().next().done===!0}mt.isEmpty=R;function u(Z){return Z[Symbol.iterator]().next().value}mt.first=u;function C(Z,se){for(const oe of Z)if(se(oe))return!0;return!1}mt.some=C;function H(Z,se){for(const oe of Z)if(se(oe))return oe}mt.find=H;function*w(Z,se){for(const oe of Z)se(oe)&&(yield oe)}mt.filter=w;function*L(Z,se){let oe=0;for(const De of Z)yield se(De,oe++)}mt.map=L;function*B(...Z){for(const se of Z)for(const oe of se)yield oe}mt.concat=B;function*k(Z){for(const se of Z)for(const oe of se)yield oe}mt.concatNested=k;function K(Z,se,oe){let De=oe;for(const He of Z)De=se(De,He);return De}mt.reduce=K;function*V(Z,se,oe=Z.length){for(se<0&&(se+=Z.length),oe<0?oe+=Z.length:oe>Z.length&&(oe=Z.length);se<oe;se++)yield Z[se]}mt.slice=V;function P(Z,se=Number.POSITIVE_INFINITY){const oe=[];if(se===0)return[oe,Z];const De=Z[Symbol.iterator]();for(let He=0;He<se;He++){const Qe=De.next();if(Qe.done)return[oe,mt.empty()];oe.push(Qe.value)}return[oe,{[Symbol.iterator](){return De}}]}mt.consume=P;function G(Z,se,oe=(De,He)=>De===He){const De=Z[Symbol.iterator](),He=se[Symbol.iterator]();for(;;){const Qe=De.next(),Ue=He.next();if(Qe.done!==Ue.done)return!1;if(Qe.done)return!0;if(!oe(Qe.value,Ue.value))return!1}}mt.equals=G})(Ie||(Ie={}))},69323:function(wn,Sr,je){"use strict";je.d(Sr,{B9:function(){return L},F8:function(){return B},JT:function(){return V},Jz:function(){return G},OF:function(){return k},SL:function(){return K},Wf:function(){return w},XK:function(){return P},dk:function(){return C}});var Ie=je(17845),mt=je(88226);const Fe=!1;let Me=null;function de(Z){Me=Z}if(Fe){const Z="__is_disposable_tracked__";de(new class{trackDisposable(se){const oe=new Error("Potentially leaked disposable").stack;setTimeout(()=>{se[Z]||console.log(oe)},3e3)}setParent(se,oe){if(se&&se!==V.None)try{se[Z]=!0}catch(De){}}markAsDisposed(se){if(se&&se!==V.None)try{se[Z]=!0}catch(oe){}}markAsSingleton(se){}})}function I(Z){return Me==null||Me.trackDisposable(Z),Z}function Be(Z){Me==null||Me.markAsDisposed(Z)}function R(Z,se){Me==null||Me.setParent(Z,se)}function u(Z,se){if(Me)for(const oe of Z)Me.setParent(oe,se)}function C(Z){return Me==null||Me.markAsSingleton(Z),Z}class H extends Error{constructor(se){super(`Encountered errors while disposing of store. Errors: [${se.join(", ")}]`),this.errors=se}}function w(Z){return typeof Z.dispose=="function"&&Z.dispose.length===0}function L(Z){if(mt.$.is(Z)){let se=[];for(const oe of Z)if(oe)try{oe.dispose()}catch(De){se.push(De)}if(se.length===1)throw se[0];if(se.length>1)throw new H(se);return Array.isArray(Z)?[]:Z}else if(Z)return Z.dispose(),Z}function B(...Z){const se=k(()=>L(Z));return u(Z,se),se}function k(Z){const se=I({dispose:(0,Ie.I)(()=>{Be(se),Z()})});return se}class K{constructor(){this._toDispose=new Set,this._isDisposed=!1,I(this)}dispose(){this._isDisposed||(Be(this),this._isDisposed=!0,this.clear())}clear(){try{L(this._toDispose.values())}finally{this._toDispose.clear()}}add(se){if(!se)return se;if(se===this)throw new Error("Cannot register a disposable on itself!");return R(se,this),this._isDisposed?K.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(se),se}}K.DISABLE_DISPOSED_WARNING=!1;class V{constructor(){this._store=new K,I(this),R(this._store,this)}dispose(){Be(this),this._store.dispose()}_register(se){if(se===this)throw new Error("Cannot register a disposable on itself!");return this._store.add(se)}}V.None=Object.freeze({dispose(){}});class P{constructor(){this._isDisposed=!1,I(this)}get value(){return this._isDisposed?void 0:this._value}set value(se){var oe;this._isDisposed||se===this._value||((oe=this._value)===null||oe===void 0||oe.dispose(),se&&R(se,this),this._value=se)}clear(){this.value=void 0}dispose(){var se;this._isDisposed=!0,Be(this),(se=this._value)===null||se===void 0||se.dispose(),this._value=void 0}clearAndLeak(){const se=this._value;return this._value=void 0,se&&R(se,null),se}}class G{constructor(se){this.object=se}dispose(){}}},34502:function(wn,Sr,je){"use strict";je.d(Sr,{S:function(){return mt}});class Ie{constructor(Me){this.element=Me,this.next=Ie.Undefined,this.prev=Ie.Undefined}}Ie.Undefined=new Ie(void 0);class mt{constructor(){this._first=Ie.Undefined,this._last=Ie.Undefined,this._size=0}get size(){return this._size}isEmpty(){return this._first===Ie.Undefined}clear(){let Me=this._first;for(;Me!==Ie.Undefined;){const de=Me.next;Me.prev=Ie.Undefined,Me.next=Ie.Undefined,Me=de}this._first=Ie.Undefined,this._last=Ie.Undefined,this._size=0}unshift(Me){return this._insert(Me,!1)}push(Me){return this._insert(Me,!0)}_insert(Me,de){const I=new Ie(Me);if(this._first===Ie.Undefined)this._first=I,this._last=I;else if(de){const R=this._last;this._last=I,I.prev=R,R.next=I}else{const R=this._first;this._first=I,I.next=R,R.prev=I}this._size+=1;let Be=!1;return()=>{Be||(Be=!0,this._remove(I))}}shift(){if(this._first!==Ie.Undefined){const Me=this._first.element;return this._remove(this._first),Me}}pop(){if(this._last!==Ie.Undefined){const Me=this._last.element;return this._remove(this._last),Me}}_remove(Me){if(Me.prev!==Ie.Undefined&&Me.next!==Ie.Undefined){const de=Me.prev;de.next=Me.next,Me.next.prev=de}else Me.prev===Ie.Undefined&&Me.next===Ie.Undefined?(this._first=Ie.Undefined,this._last=Ie.Undefined):Me.next===Ie.Undefined?(this._last=this._last.prev,this._last.next=Ie.Undefined):Me.prev===Ie.Undefined&&(this._first=this._first.next,this._first.prev=Ie.Undefined);this._size-=1}*[Symbol.iterator](){let Me=this._first;for(;Me!==Ie.Undefined;)yield Me.element,Me=Me.next}}},23345:function(wn,Sr,je){"use strict";je.d(Sr,{$L:function(){return De},ED:function(){return G},IJ:function(){return se},OS:function(){return qe},WE:function(){return Qe},dz:function(){return Z},gn:function(){return He},li:function(){return k},r:function(){return pe},tY:function(){return oe},xS:function(){return Ue}});var Ie=je(97671),mt;const Fe="en";let Me=!1,de=!1,I=!1,Be=!1,R=!1,u=!1,C=!1,H,w=null,L=null,B;const k=typeof self=="object"?self:typeof je.g=="object"?je.g:{};let K;typeof k.vscode!="undefined"&&typeof k.vscode.process!="undefined"?K=k.vscode.process:typeof Ie!="undefined"&&(K=Ie);const V=typeof((mt=K==null?void 0:K.versions)===null||mt===void 0?void 0:mt.electron)=="string"&&K.type==="renderer";if(typeof navigator=="object"&&!V)B=navigator.userAgent,Me=B.indexOf("Windows")>=0,de=B.indexOf("Macintosh")>=0,C=(B.indexOf("Macintosh")>=0||B.indexOf("iPad")>=0||B.indexOf("iPhone")>=0)&&!!navigator.maxTouchPoints&&navigator.maxTouchPoints>0,I=B.indexOf("Linux")>=0,u=!0,H=navigator.language,w=H;else if(typeof K=="object"){Me=K.platform==="win32",de=K.platform==="darwin",I=K.platform==="linux",Be=I&&!!K.env.SNAP&&!!K.env.SNAP_REVISION,H=Fe,w=Fe;const M=K.env.VSCODE_NLS_CONFIG;if(M)try{const ye=JSON.parse(M),Te=ye.availableLanguages["*"];H=ye.locale,w=Te||Fe,L=ye._translationsConfigFile}catch(ye){}R=!0}else console.error("Unable to resolve platform.");let P=0;de?P=1:Me?P=3:I&&(P=2);const G=Me,Z=de,se=I,oe=R,De=u,He=C,Qe=B,Ue=function(){if(k.setImmediate)return k.setImmediate.bind(k);if(typeof k.postMessage=="function"&&!k.importScripts){let Te=[];k.addEventListener("message",xe=>{if(xe.data&&xe.data.vscodeSetImmediateId)for(let z=0,j=Te.length;z<j;z++){const ee=Te[z];if(ee.id===xe.data.vscodeSetImmediateId){Te.splice(z,1),ee.callback();return}}});let me=0;return xe=>{const z=++me;Te.push({id:z,callback:xe}),k.postMessage({vscodeSetImmediateId:z},"*")}}if(typeof(K==null?void 0:K.nextTick)=="function")return K.nextTick.bind(K);const ye=Promise.resolve();return Te=>ye.then(Te)}(),qe=de||C?2:Me?1:3;let st=!0,Pe=!1;function pe(){if(!Pe){Pe=!0;const M=new Uint8Array(2);M[0]=1,M[1]=2,st=new Uint16Array(M.buffer)[0]===513}return st}},95830:function(wn,Sr,je){"use strict";je.d(Sr,{G:function(){return Fe}});var Ie=je(23345);const mt=Ie.li.performance&&typeof Ie.li.performance.now=="function";class Fe{constructor(de){this._highResolution=mt&&de,this._startTime=this._now(),this._stopTime=-1}static create(de=!0){return new Fe(de)}stop(){this._stopTime=this._now()}elapsed(){return this._stopTime!==-1?this._stopTime-this._startTime:this._now()-this._startTime}_now(){return this._highResolution?Ie.li.performance.now():Date.now()}}},82983:function(wn,Sr,je){"use strict";je.d(Sr,{$i:function(){return ut},C8:function(){return wr},GF:function(){return H},HO:function(){return me},IO:function(){return w},K7:function(){return Yr},Kw:function(){return ar},LC:function(){return k},Mh:function(){return Ue},P1:function(){return qe},PJ:function(){return Vr},Qe:function(){return Ft},R1:function(){return C},RP:function(){return ee},S6:function(){return ur},TT:function(){return G},Ut:function(){return z},V8:function(){return K},WU:function(){return Fe},YK:function(){return Pe},YU:function(){return Me},ZG:function(){return st},ZH:function(){return M},ab:function(){return Vt},c1:function(){return fr},df:function(){return De},ec:function(){return de},fi:function(){return ve},fy:function(){return I},j3:function(){return Be},j_:function(){return se},m5:function(){return Ie},mK:function(){return oe},mr:function(){return L},oH:function(){return _},oL:function(){return R},ok:function(){return Qe},ow:function(){return V},qq:function(){return He},qu:function(){return P},rL:function(){return pe},uS:function(){return dn},un:function(){return u},uq:function(){return B},vH:function(){return Te},xe:function(){return vr},zY:function(){return Z}});function Ie(ge){return!ge||typeof ge!="string"?!0:ge.trim().length===0}const mt=/{(\d+)}/g;function Fe(ge,...Se){return Se.length===0?ge:ge.replace(mt,function(gt,xt){const Et=parseInt(xt,10);return isNaN(Et)||Et<0||Et>=Se.length?gt:Se[Et]})}function Me(ge){return ge.replace(/[<>&]/g,function(Se){switch(Se){case"<":return"<";case">":return">";case"&":return"&";default:return Se}})}function de(ge){return ge.replace(/[\\\{\}\*\+\?\|\^\$\.\[\]\(\)]/g,"\\$&")}function I(ge,Se=" "){const gt=Be(ge,Se);return R(gt,Se)}function Be(ge,Se){if(!ge||!Se)return ge;const gt=Se.length;if(gt===0||ge.length===0)return ge;let xt=0;for(;ge.indexOf(Se,xt)===xt;)xt=xt+gt;return ge.substring(xt)}function R(ge,Se){if(!ge||!Se)return ge;const gt=Se.length,xt=ge.length;if(gt===0||xt===0)return ge;let Et=xt,nr=-1;for(;nr=ge.lastIndexOf(Se,Et-1),!(nr===-1||nr+gt!==Et);){if(nr===0)return"";Et=nr}return ge.substring(0,Et)}function u(ge){return ge.replace(/[\-\\\{\}\+\?\|\^\$\.\,\[\]\(\)\#\s]/g,"\\$&").replace(/[\*]/g,".*")}function C(ge){return ge.replace(/\*/g,"")}function H(ge,Se,gt={}){if(!ge)throw new Error("Cannot create regex from empty string");Se||(ge=de(ge)),gt.wholeWord&&(/\B/.test(ge.charAt(0))||(ge="\\b"+ge),/\B/.test(ge.charAt(ge.length-1))||(ge=ge+"\\b"));let xt="";return gt.global&&(xt+="g"),gt.matchCase||(xt+="i"),gt.multiline&&(xt+="m"),gt.unicode&&(xt+="u"),new RegExp(ge,xt)}function w(ge){return ge.source==="^"||ge.source==="^$"||ge.source==="$"||ge.source==="^\\s*$"?!1:!!(ge.exec("")&&ge.lastIndex===0)}function L(ge){return(ge.global?"g":"")+(ge.ignoreCase?"i":"")+(ge.multiline?"m":"")+(ge.unicode?"u":"")}function B(ge){return ge.split(/\r\n|\r|\n/)}function k(ge){for(let Se=0,gt=ge.length;Se<gt;Se++){const xt=ge.charCodeAt(Se);if(xt!==32&&xt!==9)return Se}return-1}function K(ge,Se=0,gt=ge.length){for(let xt=Se;xt<gt;xt++){const Et=ge.charCodeAt(xt);if(Et!==32&&Et!==9)return ge.substring(Se,xt)}return ge.substring(Se,gt)}function V(ge,Se=ge.length-1){for(let gt=Se;gt>=0;gt--){const xt=ge.charCodeAt(gt);if(xt!==32&&xt!==9)return gt}return-1}function P(ge,Se){return ge<Se?-1:ge>Se?1:0}function G(ge,Se,gt=0,xt=ge.length,Et=0,nr=Se.length){for(;gt<xt&&Et<nr;gt++,Et++){let Bt=ge.charCodeAt(gt),Mt=Se.charCodeAt(Et);if(Bt<Mt)return-1;if(Bt>Mt)return 1}const xr=xt-gt,Tr=nr-Et;return xr<Tr?-1:xr>Tr?1:0}function Z(ge,Se){return se(ge,Se,0,ge.length,0,Se.length)}function se(ge,Se,gt=0,xt=ge.length,Et=0,nr=Se.length){for(;gt<xt&&Et<nr;gt++,Et++){let Bt=ge.charCodeAt(gt),Mt=Se.charCodeAt(Et);if(Bt===Mt)continue;if(Bt>=128||Mt>=128)return G(ge.toLowerCase(),Se.toLowerCase(),gt,xt,Et,nr);oe(Bt)&&(Bt-=32),oe(Mt)&&(Mt-=32);const Wt=Bt-Mt;if(Wt!==0)return Wt}const xr=xt-gt,Tr=nr-Et;return xr<Tr?-1:xr>Tr?1:0}function oe(ge){return ge>=97&&ge<=122}function De(ge){return ge>=65&&ge<=90}function He(ge,Se){return ge.length===Se.length&&se(ge,Se)===0}function Qe(ge,Se){const gt=Se.length;return Se.length>ge.length?!1:se(ge,Se,0,gt)===0}function Ue(ge,Se){let gt,xt=Math.min(ge.length,Se.length);for(gt=0;gt<xt;gt++)if(ge.charCodeAt(gt)!==Se.charCodeAt(gt))return gt;return xt}function qe(ge,Se){let gt,xt=Math.min(ge.length,Se.length);const Et=ge.length-1,nr=Se.length-1;for(gt=0;gt<xt;gt++)if(ge.charCodeAt(Et-gt)!==Se.charCodeAt(nr-gt))return gt;return xt}function st(ge){return 55296<=ge&&ge<=56319}function Pe(ge){return 56320<=ge&&ge<=57343}function pe(ge,Se){return(ge-55296<<10)+(Se-56320)+65536}function M(ge,Se,gt){const xt=ge.charCodeAt(gt);if(st(xt)&>+1<Se){const Et=ge.charCodeAt(gt+1);if(Pe(Et))return pe(xt,Et)}return xt}function ye(ge,Se){const gt=ge.charCodeAt(Se-1);if(Pe(gt)&&Se>1){const xt=ge.charCodeAt(Se-2);if(st(xt))return pe(xt,gt)}return gt}function Te(ge,Se){const gt=At.getInstance(),xt=Se,Et=ge.length,nr=M(ge,Et,Se);Se+=nr>=65536?2:1;let xr=gt.getGraphemeBreakType(nr);for(;Se<Et;){const Tr=M(ge,Et,Se),Bt=gt.getGraphemeBreakType(Tr);if(ve(xr,Bt))break;Se+=Tr>=65536?2:1,xr=Bt}return Se-xt}function me(ge,Se){const gt=At.getInstance(),xt=Se,Et=ye(ge,Se);Se-=Et>=65536?2:1;let nr=gt.getGraphemeBreakType(Et);for(;Se>0;){const xr=ye(ge,Se),Tr=gt.getGraphemeBreakType(xr);if(ve(Tr,nr))break;Se-=xr>=65536?2:1,nr=Tr}return xt-Se}const xe=/(?:[\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 z(ge){return xe.test(ge)}const j=/(?:[\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 ee(ge){return j.test(ge)}const _e=/^[\t\n\r\x20-\x7E]*$/;function ut(ge){return _e.test(ge)}const Ft=/[\u2028\u2029]/;function Vt(ge){return Ft.test(ge)}function vr(ge){for(let Se=0,gt=ge.length;Se<gt;Se++)if(Yr(ge.charCodeAt(Se)))return!0;return!1}function Yr(ge){return ge=+ge,ge>=11904&&ge<=55215||ge>=63744&&ge<=64255||ge>=65281&&ge<=65374}function wr(ge){return ge>=127462&&ge<=127487||ge===8986||ge===8987||ge===9200||ge===9203||ge>=9728&&ge<=10175||ge===11088||ge===11093||ge>=127744&&ge<=128591||ge>=128640&&ge<=128764||ge>=128992&&ge<=129003||ge>=129280&&ge<=129535||ge>=129648&&ge<=129750}const fr="\uFEFF";function dn(ge){return!!(ge&&ge.length>0&&ge.charCodeAt(0)===65279)}function ar(ge,Se=!1){return ge?(Se&&(ge=ge.replace(/\\./g,"")),ge.toLowerCase()!==ge):!1}function Vr(ge){return ge=ge%(2*26),ge<26?String.fromCharCode(97+ge):String.fromCharCode(65+ge-26)}function ur(ge){return At.getInstance().getGraphemeBreakType(ge)}function ve(ge,Se){return ge===0?Se!==5&&Se!==7:ge===2&&Se===3?!1:ge===4||ge===2||ge===3||Se===4||Se===2||Se===3?!0:!(ge===8&&(Se===8||Se===9||Se===11||Se===12)||(ge===11||ge===9)&&(Se===9||Se===10)||(ge===12||ge===10)&&Se===10||Se===5||Se===13||Se===7||ge===1||ge===13&&Se===14||ge===6&&Se===6)}class At{constructor(){this._data=le()}static getInstance(){return At._INSTANCE||(At._INSTANCE=new At),At._INSTANCE}getGraphemeBreakType(Se){if(Se<32)return Se===10?3:Se===13?2:4;if(Se<127)return 0;const gt=this._data,xt=gt.length/3;let Et=1;for(;Et<=xt;)if(Se<gt[3*Et])Et=2*Et;else if(Se>gt[3*Et+1])Et=2*Et+1;else return gt[3*Et+2];return 0}}At._INSTANCE=null;function le(){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 _(ge,Se){if(ge===0)return 0;const gt=D(ge,Se);if(gt!==void 0)return gt;const xt=ye(Se,ge);return ge-=ae(xt),ge}function D(ge,Se){let gt=ye(Se,ge);for(ge-=ae(gt);We(gt)||gt===65039||gt===8419;){if(ge===0)return;gt=ye(Se,ge),ge-=ae(gt)}if(wr(gt)){if(ge>=0){const xt=ye(Se,ge);xt===8205&&(ge-=ae(xt))}return ge}}function ae(ge){return ge>=65536?2:1}function We(ge){return 127995<=ge&&ge<=127999}},72999:function(wn,Sr,je){"use strict";je.d(Sr,{$E:function(){return k},$K:function(){return Be},D8:function(){return w},HD:function(){return mt},IU:function(){return K},Jp:function(){return R},Kn:function(){return Fe},cW:function(){return C},f6:function(){return V},hj:function(){return Me},jn:function(){return de},kJ:function(){return Ie},mf:function(){return H},o8:function(){return I},p_:function(){return u},vE:function(){return P}});function Ie(G){return Array.isArray(G)}function mt(G){return typeof G=="string"}function Fe(G){return typeof G=="object"&&G!==null&&!Array.isArray(G)&&!(G instanceof RegExp)&&!(G instanceof Date)}function Me(G){return typeof G=="number"&&!isNaN(G)}function de(G){return G===!0||G===!1}function I(G){return typeof G=="undefined"}function Be(G){return!R(G)}function R(G){return I(G)||G===null}function u(G,Z){if(!G)throw new Error(Z?`Unexpected type, expected '${Z}'`:"Unexpected type")}function C(G){if(R(G))throw new Error("Assertion Failed: argument is undefined or null");return G}function H(G){return typeof G=="function"}function w(G,Z){const se=Math.min(G.length,Z.length);for(let oe=0;oe<se;oe++)L(G[oe],Z[oe])}function L(G,Z){if(mt(Z)){if(typeof G!==Z)throw new Error(`argument does not match constraint: typeof ${Z}`)}else if(H(Z)){try{if(G instanceof Z)return}catch(se){}if(!R(G)&&G.constructor===Z||Z.length===1&&Z.call(void 0,G)===!0)return;throw new Error("argument does not match one of these constraints: arg instanceof constraint, arg.constructor === constraint, nor constraint(arg) === true")}}function B(G){let Z=[],se=Object.getPrototypeOf(G);for(;Object.prototype!==se;)Z=Z.concat(Object.getOwnPropertyNames(se)),se=Object.getPrototypeOf(se);return Z}function k(G){const Z=[];for(const se of B(G))typeof G[se]=="function"&&Z.push(se);return Z}function K(G,Z){const se=De=>function(){const He=Array.prototype.slice.call(arguments,0);return Z(De,He)};let oe={};for(const De of G)oe[De]=se(De);return oe}function V(G){return G===null?void 0:G}function P(G,Z="Unreachable"){throw new Error(Z)}},13268:function(wn,Sr,je){"use strict";je.d(Sr,{N:function(){return mt}});function Ie(Fe,Me){let de;return Me.length===0?de=Fe:de=Fe.replace(/\{(\d+)\}/g,function(I,Be){const R=Be[0];return typeof Me[R]!="undefined"?Me[R]:I}),de}function mt(Fe,Me,...de){return Ie(Me,de)}},96236:function(wn,Sr,je){"use strict";je.d(Sr,{BH:function(){return K},NZ:function(){return V},U8:function(){return P},co:function(){return k},eH:function(){return B},vr:function(){return L}});var Ie=je(75918),mt=je(52615),Fe=je(4348),Me=je(88226),de=je(69323),I=je(34502),Be=je(35884),R=je(90689),u=je(16925),C=je(49055),H=function(G,Z,se,oe){var De=arguments.length,He=De<3?Z:oe===null?oe=Object.getOwnPropertyDescriptor(Z,se):oe,Qe;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")He=Reflect.decorate(G,Z,se,oe);else for(var Ue=G.length-1;Ue>=0;Ue--)(Qe=G[Ue])&&(He=(De<3?Qe(He):De>3?Qe(Z,se,He):Qe(Z,se))||He);return De>3&&He&&Object.defineProperty(Z,se,He),He},w=function(G,Z){return function(se,oe){Z(se,oe,G)}};function L(G){return G.command!==void 0}class B{constructor(Z){this.id=B._idPool++,this._debugName=Z}}B._idPool=0,B.CommandPalette=new B("CommandPalette"),B.EditorContext=new B("EditorContext"),B.SimpleEditorContext=new B("SimpleEditorContext"),B.EditorContextCopy=new B("EditorContextCopy"),B.EditorContextPeek=new B("EditorContextPeek"),B.MenubarEditMenu=new B("MenubarEditMenu"),B.MenubarCopy=new B("MenubarCopy"),B.MenubarGoMenu=new B("MenubarGoMenu"),B.MenubarSelectionMenu=new B("MenubarSelectionMenu"),B.InlineCompletionsActions=new B("InlineCompletionsActions");const k=(0,u.yh)("menuService"),K=new class{constructor(){this._commands=new Map,this._menuItems=new Map,this._onDidChangeMenu=new Fe.Q5,this.onDidChangeMenu=this._onDidChangeMenu.event,this._commandPaletteChangeEvent={has:G=>G===B.CommandPalette}}addCommand(G){return this.addCommands(Me.$.single(G))}addCommands(G){for(const Z of G)this._commands.set(Z.id,Z);return this._onDidChangeMenu.fire(this._commandPaletteChangeEvent),(0,de.OF)(()=>{let Z=!1;for(const se of G)Z=this._commands.delete(se.id)||Z;Z&&this._onDidChangeMenu.fire(this._commandPaletteChangeEvent)})}getCommand(G){return this._commands.get(G)}getCommands(){const G=new Map;return this._commands.forEach((Z,se)=>G.set(se,Z)),G}appendMenuItem(G,Z){return this.appendMenuItems(Me.$.single({id:G,item:Z}))}appendMenuItems(G){const Z=new Set,se=new I.S;for(const{id:oe,item:De}of G){let He=this._menuItems.get(oe);He||(He=new I.S,this._menuItems.set(oe,He)),se.push(He.push(De)),Z.add(oe)}return this._onDidChangeMenu.fire(Z),(0,de.OF)(()=>{if(se.size>0){for(let oe of se)oe();this._onDidChangeMenu.fire(Z),se.clear()}})}getMenuItems(G){let Z;return this._menuItems.has(G)?Z=[...this._menuItems.get(G)]:Z=[],G===B.CommandPalette&&this._appendImplicitItems(Z),Z}_appendImplicitItems(G){const Z=new Set;for(const se of G)L(se)&&(Z.add(se.command.id),se.alt&&Z.add(se.alt.id));this._commands.forEach((se,oe)=>{Z.has(oe)||G.push({command:se})})}};class V extends Ie.wY{constructor(Z,se,oe,De){super(`submenuitem.${Z.submenu.id}`,typeof Z.title=="string"?Z.title:Z.title.value,[],"submenu"),this.item=Z,this._menuService=se,this._contextKeyService=oe,this._options=De}get actions(){const Z=[],se=this._menuService.createMenu(this.item.submenu,this._contextKeyService),oe=se.getActions(this._options);se.dispose();for(const[,De]of oe)De.length>0&&(Z.push(...De),Z.push(new Ie.Z0));return Z.length&&Z.pop(),Z}}let P=class tm{constructor(Z,se,oe,De,He){var Qe,Ue;if(this._commandService=He,this.id=Z.id,this.label=oe!=null&&oe.renderShortTitle&&Z.shortTitle?typeof Z.shortTitle=="string"?Z.shortTitle:Z.shortTitle.value:typeof Z.title=="string"?Z.title:Z.title.value,this.tooltip=(Ue=typeof Z.tooltip=="string"?Z.tooltip:(Qe=Z.tooltip)===null||Qe===void 0?void 0:Qe.value)!==null&&Ue!==void 0?Ue:"",this.enabled=!Z.precondition||De.contextMatchesRules(Z.precondition),this.checked=void 0,Z.toggled){const qe=Z.toggled.condition?Z.toggled:{condition:Z.toggled};this.checked=De.contextMatchesRules(qe.condition),this.checked&&qe.tooltip&&(this.tooltip=typeof qe.tooltip=="string"?qe.tooltip:qe.tooltip.value),qe.title&&(this.label=typeof qe.title=="string"?qe.title:qe.title.value)}this.item=Z,this.alt=se?new tm(se,void 0,oe,De,He):void 0,this._options=oe,C.kS.isThemeIcon(Z.icon)&&(this.class=mt.dT.asClassName(Z.icon))}dispose(){}run(...Z){var se,oe;let De=[];return!((se=this._options)===null||se===void 0)&&se.arg&&(De=[...De,this._options.arg]),!((oe=this._options)===null||oe===void 0)&&oe.shouldForwardArgs&&(De=[...De,...Z]),this._commandService.executeCommand(this.id,...De)}};P=H([w(3,R.i6),w(4,Be.H)],P)},35884:function(wn,Sr,je){"use strict";je.d(Sr,{H:function(){return Be},P:function(){return R}});var Ie=je(4348),mt=je(88226),Fe=je(69323),Me=je(34502),de=je(72999),I=je(16925);const Be=(0,I.yh)("commandService"),R=new class{constructor(){this._commands=new Map,this._onDidRegisterCommand=new Ie.Q5,this.onDidRegisterCommand=this._onDidRegisterCommand.event}registerCommand(u,C){if(!u)throw new Error("invalid command");if(typeof u=="string"){if(!C)throw new Error("invalid command");return this.registerCommand({id:u,handler:C})}if(u.description){const k=[];for(let V of u.description.args)k.push(V.constraint);const K=u.handler;u.handler=function(V,...P){return(0,de.D8)(P,k),K(V,...P)}}const{id:H}=u;let w=this._commands.get(H);w||(w=new Me.S,this._commands.set(H,w));let L=w.unshift(u),B=(0,Fe.OF)(()=>{L();const k=this._commands.get(H);k!=null&&k.isEmpty()&&this._commands.delete(H)});return this._onDidRegisterCommand.fire(H),B}registerCommandAlias(u,C){return R.registerCommand(u,(H,...w)=>H.get(Be).executeCommand(C,...w))}getCommand(u){const C=this._commands.get(u);if(!(!C||C.isEmpty()))return mt.$.first(C)}getCommands(){const u=new Map;for(const C of this._commands.keys()){const H=this.getCommand(C);H&&u.set(C,H)}return u}};R.registerCommand("noop",()=>{})},90689:function(wn,Sr,je){"use strict";je.d(Sr,{Ao:function(){return Be},Eq:function(){return pe},Fb:function(){return R},K8:function(){return Te},i6:function(){return Pe},uy:function(){return st}});var Ie=je(23345),mt=je(82983),Fe=je(16925);let Me=Ie.WE||"";const de=new Map;de.set("false",!1),de.set("true",!0),de.set("isMac",Ie.dz),de.set("isLinux",Ie.IJ),de.set("isWindows",Ie.ED),de.set("isWeb",Ie.$L),de.set("isMacNative",Ie.dz&&!Ie.$L),de.set("isEdge",Me.indexOf("Edg/")>=0),de.set("isFirefox",Me.indexOf("Firefox")>=0),de.set("isChrome",Me.indexOf("Chrome")>=0),de.set("isSafari",Me.indexOf("Safari")>=0);const I=Object.prototype.hasOwnProperty;class Be{static has(z){return w.create(z)}static equals(z,j){return L.create(z,j)}static regex(z,j){return De.create(z,j)}static not(z){return V.create(z)}static and(...z){return Ue.create(z,null)}static or(...z){return qe.create(z,null,!0)}static deserialize(z,j=!1){if(z)return this._deserializeOrExpression(z,j)}static _deserializeOrExpression(z,j){let ee=z.split("||");return qe.create(ee.map(_e=>this._deserializeAndExpression(_e,j)),null,!0)}static _deserializeAndExpression(z,j){let ee=z.split("&&");return Ue.create(ee.map(_e=>this._deserializeOne(_e,j)),null)}static _deserializeOne(z,j){if(z=z.trim(),z.indexOf("!=")>=0){let ee=z.split("!=");return K.create(ee[0].trim(),this._deserializeValue(ee[1],j))}if(z.indexOf("==")>=0){let ee=z.split("==");return L.create(ee[0].trim(),this._deserializeValue(ee[1],j))}if(z.indexOf("=~")>=0){let ee=z.split("=~");return De.create(ee[0].trim(),this._deserializeRegexValue(ee[1],j))}if(z.indexOf(" in ")>=0){let ee=z.split(" in ");return B.create(ee[0].trim(),ee[1].trim())}if(/^[^<=>]+>=[^<=>]+$/.test(z)){const ee=z.split(">=");return Z.create(ee[0].trim(),ee[1].trim())}if(/^[^<=>]+>[^<=>]+$/.test(z)){const ee=z.split(">");return G.create(ee[0].trim(),ee[1].trim())}if(/^[^<=>]+<=[^<=>]+$/.test(z)){const ee=z.split("<=");return oe.create(ee[0].trim(),ee[1].trim())}if(/^[^<=>]+<[^<=>]+$/.test(z)){const ee=z.split("<");return se.create(ee[0].trim(),ee[1].trim())}return/^\!\s*/.test(z)?V.create(z.substr(1).trim()):w.create(z)}static _deserializeValue(z,j){if(z=z.trim(),z==="true")return!0;if(z==="false")return!1;let ee=/^'([^']*)'$/.exec(z);return ee?ee[1].trim():z}static _deserializeRegexValue(z,j){if((0,mt.m5)(z)){if(j)throw new Error("missing regexp-value for =~-expression");return console.warn("missing regexp-value for =~-expression"),null}let ee=z.indexOf("/"),_e=z.lastIndexOf("/");if(ee===_e||ee<0){if(j)throw new Error(`bad regexp-value '${z}', missing /-enclosure`);return console.warn(`bad regexp-value '${z}', missing /-enclosure`),null}let ut=z.slice(ee+1,_e),Ft=z[_e+1]==="i"?"i":"";try{return new RegExp(ut,Ft)}catch(Vt){if(j)throw new Error(`bad regexp-value '${z}', parse error: ${Vt}`);return console.warn(`bad regexp-value '${z}', parse error: ${Vt}`),null}}}function R(xe,z){const j=xe?xe.substituteConstants():void 0,ee=z?z.substituteConstants():void 0;return!j&&!ee?!0:!j||!ee?!1:j.equals(ee)}function u(xe,z){return xe.cmp(z)}class C{constructor(){this.type=0}cmp(z){return this.type-z.type}equals(z){return z.type===this.type}substituteConstants(){return this}evaluate(z){return!1}serialize(){return"false"}keys(){return[]}negate(){return H.INSTANCE}}C.INSTANCE=new C;class H{constructor(){this.type=1}cmp(z){return this.type-z.type}equals(z){return z.type===this.type}substituteConstants(){return this}evaluate(z){return!0}serialize(){return"true"}keys(){return[]}negate(){return C.INSTANCE}}H.INSTANCE=new H;class w{constructor(z,j){this.key=z,this.negated=j,this.type=2}static create(z,j=null){const ee=de.get(z);return typeof ee=="boolean"?ee?H.INSTANCE:C.INSTANCE:new w(z,j)}cmp(z){return z.type!==this.type?this.type-z.type:M(this.key,z.key)}equals(z){return z.type===this.type?this.key===z.key:!1}substituteConstants(){const z=de.get(this.key);return typeof z=="boolean"?z?H.INSTANCE:C.INSTANCE:this}evaluate(z){return!!z.getValue(this.key)}serialize(){return this.key}keys(){return[this.key]}negate(){return this.negated||(this.negated=V.create(this.key,this)),this.negated}}class L{constructor(z,j,ee){this.key=z,this.value=j,this.negated=ee,this.type=4}static create(z,j,ee=null){if(typeof j=="boolean")return j?w.create(z,ee):V.create(z,ee);const _e=de.get(z);return typeof _e=="boolean"?j===(_e?"true":"false")?H.INSTANCE:C.INSTANCE:new L(z,j,ee)}cmp(z){return z.type!==this.type?this.type-z.type:ye(this.key,this.value,z.key,z.value)}equals(z){return z.type===this.type?this.key===z.key&&this.value===z.value:!1}substituteConstants(){const z=de.get(this.key);if(typeof z=="boolean"){const j=z?"true":"false";return this.value===j?H.INSTANCE:C.INSTANCE}return this}evaluate(z){return z.getValue(this.key)==this.value}serialize(){return`${this.key} == '${this.value}'`}keys(){return[this.key]}negate(){return this.negated||(this.negated=K.create(this.key,this.value,this)),this.negated}}class B{constructor(z,j){this.key=z,this.valueKey=j,this.type=10,this.negated=null}static create(z,j){return new B(z,j)}cmp(z){return z.type!==this.type?this.type-z.type:ye(this.key,this.valueKey,z.key,z.valueKey)}equals(z){return z.type===this.type?this.key===z.key&&this.valueKey===z.valueKey:!1}substituteConstants(){return this}evaluate(z){const j=z.getValue(this.valueKey),ee=z.getValue(this.key);return Array.isArray(j)?j.indexOf(ee)>=0:typeof ee=="string"&&typeof j=="object"&&j!==null?I.call(j,ee):!1}serialize(){return`${this.key} in '${this.valueKey}'`}keys(){return[this.key,this.valueKey]}negate(){return this.negated||(this.negated=k.create(this)),this.negated}}class k{constructor(z){this._actual=z,this.type=11}static create(z){return new k(z)}cmp(z){return z.type!==this.type?this.type-z.type:this._actual.cmp(z._actual)}equals(z){return z.type===this.type?this._actual.equals(z._actual):!1}substituteConstants(){return this}evaluate(z){return!this._actual.evaluate(z)}serialize(){throw new Error("Method not implemented.")}keys(){return this._actual.keys()}negate(){return this._actual}}class K{constructor(z,j,ee){this.key=z,this.value=j,this.negated=ee,this.type=5}static create(z,j,ee=null){if(typeof j=="boolean")return j?V.create(z,ee):w.create(z,ee);const _e=de.get(z);return typeof _e=="boolean"?j===(_e?"true":"false")?C.INSTANCE:H.INSTANCE:new K(z,j,ee)}cmp(z){return z.type!==this.type?this.type-z.type:ye(this.key,this.value,z.key,z.value)}equals(z){return z.type===this.type?this.key===z.key&&this.value===z.value:!1}substituteConstants(){const z=de.get(this.key);if(typeof z=="boolean"){const j=z?"true":"false";return this.value===j?C.INSTANCE:H.INSTANCE}return this}evaluate(z){return z.getValue(this.key)!=this.value}serialize(){return`${this.key} != '${this.value}'`}keys(){return[this.key]}negate(){return this.negated||(this.negated=L.create(this.key,this.value,this)),this.negated}}class V{constructor(z,j){this.key=z,this.negated=j,this.type=3}static create(z,j=null){const ee=de.get(z);return typeof ee=="boolean"?ee?C.INSTANCE:H.INSTANCE:new V(z,j)}cmp(z){return z.type!==this.type?this.type-z.type:M(this.key,z.key)}equals(z){return z.type===this.type?this.key===z.key:!1}substituteConstants(){const z=de.get(this.key);return typeof z=="boolean"?z?C.INSTANCE:H.INSTANCE:this}evaluate(z){return!z.getValue(this.key)}serialize(){return`!${this.key}`}keys(){return[this.key]}negate(){return this.negated||(this.negated=w.create(this.key,this)),this.negated}}function P(xe,z){if(typeof xe=="string"){const j=parseFloat(xe);isNaN(j)||(xe=j)}return typeof xe=="string"||typeof xe=="number"?z(xe):C.INSTANCE}class G{constructor(z,j,ee){this.key=z,this.value=j,this.negated=ee,this.type=12}static create(z,j,ee=null){return P(j,_e=>new G(z,_e,ee))}cmp(z){return z.type!==this.type?this.type-z.type:ye(this.key,this.value,z.key,z.value)}equals(z){return z.type===this.type?this.key===z.key&&this.value===z.value:!1}substituteConstants(){return this}evaluate(z){return typeof this.value=="string"?!1:parseFloat(z.getValue(this.key))>this.value}serialize(){return`${this.key} > ${this.value}`}keys(){return[this.key]}negate(){return this.negated||(this.negated=oe.create(this.key,this.value,this)),this.negated}}class Z{constructor(z,j,ee){this.key=z,this.value=j,this.negated=ee,this.type=13}static create(z,j,ee=null){return P(j,_e=>new Z(z,_e,ee))}cmp(z){return z.type!==this.type?this.type-z.type:ye(this.key,this.value,z.key,z.value)}equals(z){return z.type===this.type?this.key===z.key&&this.value===z.value:!1}substituteConstants(){return this}evaluate(z){return typeof this.value=="string"?!1:parseFloat(z.getValue(this.key))>=this.value}serialize(){return`${this.key} >= ${this.value}`}keys(){return[this.key]}negate(){return this.negated||(this.negated=se.create(this.key,this.value,this)),this.negated}}class se{constructor(z,j,ee){this.key=z,this.value=j,this.negated=ee,this.type=14}static create(z,j,ee=null){return P(j,_e=>new se(z,_e,ee))}cmp(z){return z.type!==this.type?this.type-z.type:ye(this.key,this.value,z.key,z.value)}equals(z){return z.type===this.type?this.key===z.key&&this.value===z.value:!1}substituteConstants(){return this}evaluate(z){return typeof this.value=="string"?!1:parseFloat(z.getValue(this.key))<this.value}serialize(){return`${this.key} < ${this.value}`}keys(){return[this.key]}negate(){return this.negated||(this.negated=Z.create(this.key,this.value,this)),this.negated}}class oe{constructor(z,j,ee){this.key=z,this.value=j,this.negated=ee,this.type=15}static create(z,j,ee=null){return P(j,_e=>new oe(z,_e,ee))}cmp(z){return z.type!==this.type?this.type-z.type:ye(this.key,this.value,z.key,z.value)}equals(z){return z.type===this.type?this.key===z.key&&this.value===z.value:!1}substituteConstants(){return this}evaluate(z){return typeof this.value=="string"?!1:parseFloat(z.getValue(this.key))<=this.value}serialize(){return`${this.key} <= ${this.value}`}keys(){return[this.key]}negate(){return this.negated||(this.negated=G.create(this.key,this.value,this)),this.negated}}class De{constructor(z,j){this.key=z,this.regexp=j,this.type=7,this.negated=null}static create(z,j){return new De(z,j)}cmp(z){if(z.type!==this.type)return this.type-z.type;if(this.key<z.key)return-1;if(this.key>z.key)return 1;const j=this.regexp?this.regexp.source:"",ee=z.regexp?z.regexp.source:"";return j<ee?-1:j>ee?1:0}equals(z){if(z.type===this.type){const j=this.regexp?this.regexp.source:"",ee=z.regexp?z.regexp.source:"";return this.key===z.key&&j===ee}return!1}substituteConstants(){return this}evaluate(z){let j=z.getValue(this.key);return this.regexp?this.regexp.test(j):!1}serialize(){const z=this.regexp?`/${this.regexp.source}/${this.regexp.ignoreCase?"i":""}`:"/invalid/";return`${this.key} =~ ${z}`}keys(){return[this.key]}negate(){return this.negated||(this.negated=He.create(this)),this.negated}}class He{constructor(z){this._actual=z,this.type=8}static create(z){return new He(z)}cmp(z){return z.type!==this.type?this.type-z.type:this._actual.cmp(z._actual)}equals(z){return z.type===this.type?this._actual.equals(z._actual):!1}substituteConstants(){return this}evaluate(z){return!this._actual.evaluate(z)}serialize(){throw new Error("Method not implemented.")}keys(){return this._actual.keys()}negate(){return this._actual}}function Qe(xe){let z=null;for(let j=0,ee=xe.length;j<ee;j++){const _e=xe[j].substituteConstants();if(xe[j]!==_e&&z===null){z=[];for(let ut=0;ut<j;ut++)z[ut]=xe[ut]}z!==null&&(z[j]=_e)}return z===null?xe:z}class Ue{constructor(z,j){this.expr=z,this.negated=j,this.type=6}static create(z,j){return Ue._normalizeArr(z,j)}cmp(z){if(z.type!==this.type)return this.type-z.type;if(this.expr.length<z.expr.length)return-1;if(this.expr.length>z.expr.length)return 1;for(let j=0,ee=this.expr.length;j<ee;j++){const _e=u(this.expr[j],z.expr[j]);if(_e!==0)return _e}return 0}equals(z){if(z.type===this.type){if(this.expr.length!==z.expr.length)return!1;for(let j=0,ee=this.expr.length;j<ee;j++)if(!this.expr[j].equals(z.expr[j]))return!1;return!0}return!1}substituteConstants(){const z=Qe(this.expr);return z===this.expr?this:Ue.create(z,this.negated)}evaluate(z){for(let j=0,ee=this.expr.length;j<ee;j++)if(!this.expr[j].evaluate(z))return!1;return!0}static _normalizeArr(z,j){const ee=[];let _e=!1;for(const ut of z)if(ut){if(ut.type===1){_e=!0;continue}if(ut.type===0)return C.INSTANCE;if(ut.type===6){ee.push(...ut.expr);continue}ee.push(ut)}if(ee.length===0&&_e)return H.INSTANCE;if(ee.length!==0){if(ee.length===1)return ee[0];ee.sort(u);for(let ut=1;ut<ee.length;ut++)ee[ut-1].equals(ee[ut])&&(ee.splice(ut,1),ut--);if(ee.length===1)return ee[0];for(;ee.length>1;){const ut=ee[ee.length-1];if(ut.type!==9)break;ee.pop();const Ft=ee.pop(),Vt=ee.length===0,vr=qe.create(ut.expr.map(Yr=>Ue.create([Yr,Ft],null)),null,Vt);vr&&(ee.push(vr),ee.sort(u))}return ee.length===1?ee[0]:new Ue(ee,j)}}serialize(){return this.expr.map(z=>z.serialize()).join(" && ")}keys(){const z=[];for(let j of this.expr)z.push(...j.keys());return z}negate(){if(!this.negated){const z=[];for(let j of this.expr)z.push(j.negate());this.negated=qe.create(z,this,!0)}return this.negated}}class qe{constructor(z,j){this.expr=z,this.negated=j,this.type=9}static create(z,j,ee){return qe._normalizeArr(z,j,ee)}cmp(z){if(z.type!==this.type)return this.type-z.type;if(this.expr.length<z.expr.length)return-1;if(this.expr.length>z.expr.length)return 1;for(let j=0,ee=this.expr.length;j<ee;j++){const _e=u(this.expr[j],z.expr[j]);if(_e!==0)return _e}return 0}equals(z){if(z.type===this.type){if(this.expr.length!==z.expr.length)return!1;for(let j=0,ee=this.expr.length;j<ee;j++)if(!this.expr[j].equals(z.expr[j]))return!1;return!0}return!1}substituteConstants(){const z=Qe(this.expr);return z===this.expr?this:qe.create(z,this.negated,!1)}evaluate(z){for(let j=0,ee=this.expr.length;j<ee;j++)if(this.expr[j].evaluate(z))return!0;return!1}static _normalizeArr(z,j,ee){let _e=[],ut=!1;if(z){for(let Ft=0,Vt=z.length;Ft<Vt;Ft++){const vr=z[Ft];if(vr){if(vr.type===0){ut=!0;continue}if(vr.type===1)return H.INSTANCE;if(vr.type===9){_e=_e.concat(vr.expr);continue}_e.push(vr)}}if(_e.length===0&&ut)return C.INSTANCE;_e.sort(u)}if(_e.length!==0){if(_e.length===1)return _e[0];for(let Ft=1;Ft<_e.length;Ft++)_e[Ft-1].equals(_e[Ft])&&(_e.splice(Ft,1),Ft--);if(_e.length===1)return _e[0];if(ee){for(let Ft=0;Ft<_e.length;Ft++)for(let Vt=Ft+1;Vt<_e.length;Vt++)Te(_e[Ft],_e[Vt])&&(_e.splice(Vt,1),Vt--);if(_e.length===1)return _e[0]}return new qe(_e,j)}}serialize(){return this.expr.map(z=>z.serialize()).join(" || ")}keys(){const z=[];for(let j of this.expr)z.push(...j.keys());return z}negate(){if(!this.negated){let z=[];for(let j of this.expr)z.push(j.negate());for(;z.length>1;){const j=z.shift(),ee=z.shift(),_e=[];for(const Ft of me(j))for(const Vt of me(ee))_e.push(Ue.create([Ft,Vt],null));const ut=z.length===0;z.unshift(qe.create(_e,null,ut))}this.negated=z[0]}return this.negated}}class st extends w{constructor(z,j,ee){super(z,null),this._defaultValue=j,typeof ee=="object"?st._info.push(Object.assign(Object.assign({},ee),{key:z})):ee!==!0&&st._info.push({key:z,description:ee,type:j!=null?typeof j:void 0})}static all(){return st._info.values()}bindTo(z){return z.createKey(this.key,this._defaultValue)}getValue(z){return z.getContextKeyValue(this.key)}toNegated(){return this.negate()}isEqualTo(z){return L.create(this.key,z)}}st._info=[];const Pe=(0,Fe.yh)("contextKeyService"),pe="setContext";function M(xe,z){return xe<z?-1:xe>z?1:0}function ye(xe,z,j,ee){return xe<j?-1:xe>j?1:z<ee?-1:z>ee?1:0}function Te(xe,z){if(z.type===6&&xe.type!==9&&xe.type!==6){for(const _e of z.expr)if(xe.equals(_e))return!0}const j=xe.negate(),ee=me(j).concat(me(z));ee.sort(u);for(let _e=0;_e<ee.length;_e++){const Ft=ee[_e].negate();for(let Vt=_e+1;Vt<ee.length;Vt++){const vr=ee[Vt];if(Ft.equals(vr))return!0}}return!1}function me(xe){return xe.type===9?xe.expr:[xe]}},16925:function(wn,Sr,je){"use strict";je.d(Sr,{I8:function(){return Ie},TG:function(){return mt},jt:function(){return de},yh:function(){return Me}});var Ie;(function(I){I.serviceIds=new Map,I.DI_TARGET="$di$target",I.DI_DEPENDENCIES="$di$dependencies";function Be(R){return R[I.DI_DEPENDENCIES]||[]}I.getServiceDependencies=Be})(Ie||(Ie={}));const mt=Me("instantiationService");function Fe(I,Be,R,u){Be[Ie.DI_TARGET]===Be?Be[Ie.DI_DEPENDENCIES].push({id:I,index:R,optional:u}):(Be[Ie.DI_DEPENDENCIES]=[{id:I,index:R,optional:u}],Be[Ie.DI_TARGET]=Be)}function Me(I){if(Ie.serviceIds.has(I))return Ie.serviceIds.get(I);const Be=function(R,u,C){if(arguments.length!==3)throw new Error("@IServiceName-decorator can only be used to decorate a parameter");Fe(Be,R,C,!1)};return Be.toString=()=>I,Ie.serviceIds.set(I,Be),Be}function de(I){return function(Be,R,u){if(arguments.length!==3)throw new Error("@optional-decorator can only be used to decorate a parameter");Fe(I,Be,u,!0)}}},44650:function(wn,Sr,je){"use strict";je.d(Sr,{B:function(){return Me}});var Ie=je(76068),mt=je(72999);class Fe{constructor(){this.data=new Map}add(I,Be){Ie.ok(mt.HD(I)),Ie.ok(mt.Kn(Be)),Ie.ok(!this.data.has(I),"There is already an extension with this id"),this.data.set(I,Be)}as(I){return this.data.get(I)||null}}const Me=new Fe},66213:function(wn,Sr,je){"use strict";je.d(Sr,{e:function(){return Ie}});var Ie;(function(mt){mt.DARK="dark",mt.LIGHT="light",mt.HIGH_CONTRAST="hc"})(Ie||(Ie={}))},49055:function(wn,Sr,je){"use strict";je.d(Sr,{EN:function(){return u},IP:function(){return w},Ic:function(){return k},XE:function(){return Be},bB:function(){return K},kS:function(){return C},m6:function(){return H}});var Ie=je(52615),mt=je(4348),Fe=je(69323),Me=je(16925),de=je(44650),I=je(66213);const Be=(0,Me.yh)("themeService");var R;(function(V){function P(G){return G&&typeof G=="object"&&typeof G.id=="string"}V.isThemeColor=P})(R||(R={}));function u(V){return{id:V}}var C;(function(V){function P(He){return He&&typeof He=="object"&&typeof He.id=="string"&&(typeof He.color=="undefined"||R.isThemeColor(He.color))}V.isThemeIcon=P;const G=new RegExp(`^\\$\\((${Ie.dT.iconNameExpression}(?:${Ie.dT.iconModifierExpression})?)\\)$`);function Z(He){const Qe=G.exec(He);if(!Qe)return;let[,Ue]=Qe;return{id:Ue}}V.fromString=Z;function se(He,Qe){let Ue=He.id;const qe=Ue.lastIndexOf("~");return qe!==-1&&(Ue=Ue.substring(0,qe)),Qe&&(Ue=`${Ue}~${Qe}`),{id:Ue}}V.modify=se;function oe(He,Qe){var Ue,qe;return He.id===Qe.id&&((Ue=He.color)===null||Ue===void 0?void 0:Ue.id)===((qe=Qe.color)===null||qe===void 0?void 0:qe.id)}V.isEqual=oe;function De(He,Qe){return{id:He.id,color:Qe?u(Qe):void 0}}V.asThemeIcon=De,V.asClassNameArray=Ie.dT.asClassNameArray,V.asClassName=Ie.dT.asClassName,V.asCSSSelector=Ie.dT.asCSSSelector})(C||(C={}));function H(V){switch(V){case I.e.DARK:return"vs-dark";case I.e.HIGH_CONTRAST:return"hc-black";default:return"vs"}}const w={ThemingContribution:"base.contributions.theming"};class L{constructor(){this.themingParticipants=[],this.themingParticipants=[],this.onThemingParticipantAddedEmitter=new mt.Q5}onColorThemeChange(P){return this.themingParticipants.push(P),this.onThemingParticipantAddedEmitter.fire(P),(0,Fe.OF)(()=>{const G=this.themingParticipants.indexOf(P);this.themingParticipants.splice(G,1)})}getThemingParticipants(){return this.themingParticipants}}let B=new L;de.B.add(w.ThemingContribution,B);function k(V){return B.onColorThemeChange(V)}class K extends Fe.JT{constructor(P){super(),this.themeService=P,this.theme=P.getColorTheme(),this._register(this.themeService.onDidColorThemeChange(G=>this.onThemeChange(G)))}onThemeChange(P){this.theme=P,this.updateStyles()}updateStyles(){}}},29301:function(wn,Sr,je){"use strict";je.d(Sr,{Z:function(){return pe}});var Ie=je(54476),mt=je(59301),Fe=je(11592),Me=je(48736),de=je(33885),I=je(76190),Be=je(76846),R=je(8654),u=mt.createContext(null);function C(M){var ye=M.children,Te=M.onBatchResize,me=mt.useRef(0),xe=mt.useRef([]),z=mt.useContext(u),j=mt.useCallback(function(ee,_e,ut){me.current+=1;var Ft=me.current;xe.current.push({size:ee,element:_e,data:ut}),Promise.resolve().then(function(){Ft===me.current&&(Te==null||Te(xe.current),xe.current=[])}),z==null||z(ee,_e,ut)},[Te,z]);return mt.createElement(u.Provider,{value:j},ye)}var H=je(76374),w=new Map;function L(M){M.forEach(function(ye){var Te,me=ye.target;(Te=w.get(me))===null||Te===void 0||Te.forEach(function(xe){return xe(me)})})}var B=new H.Z(L),k=null,K=null;function V(M,ye){w.has(M)||(w.set(M,new Set),B.observe(M)),w.get(M).add(ye)}function P(M,ye){w.has(M)&&(w.get(M).delete(ye),w.get(M).size||(B.unobserve(M),w.delete(M)))}var G=je(67732),Z=je(83652),se=je(42403),oe=je(158),De=function(M){(0,se.Z)(Te,M);var ye=(0,oe.Z)(Te);function Te(){return(0,G.Z)(this,Te),ye.apply(this,arguments)}return(0,Z.Z)(Te,[{key:"render",value:function(){return this.props.children}}]),Te}(mt.Component);function He(M,ye){var Te=M.children,me=M.disabled,xe=mt.useRef(null),z=mt.useRef(null),j=mt.useContext(u),ee=typeof Te=="function",_e=ee?Te(xe):Te,ut=mt.useRef({width:-1,height:-1,offsetWidth:-1,offsetHeight:-1}),Ft=!ee&&mt.isValidElement(_e)&&(0,R.Yr)(_e),Vt=Ft?(0,R.C4)(_e):null,vr=(0,R.x1)(Vt,xe),Yr=function(){var ar;return(0,Be.ZP)(xe.current)||(xe.current&&(0,I.Z)(xe.current)==="object"?(0,Be.ZP)((ar=xe.current)===null||ar===void 0?void 0:ar.nativeElement):null)||(0,Be.ZP)(z.current)};mt.useImperativeHandle(ye,function(){return Yr()});var wr=mt.useRef(M);wr.current=M;var fr=mt.useCallback(function(dn){var ar=wr.current,Vr=ar.onResize,ur=ar.data,ve=dn.getBoundingClientRect(),At=ve.width,le=ve.height,_=dn.offsetWidth,D=dn.offsetHeight,ae=Math.floor(At),We=Math.floor(le);if(ut.current.width!==ae||ut.current.height!==We||ut.current.offsetWidth!==_||ut.current.offsetHeight!==D){var ge={width:ae,height:We,offsetWidth:_,offsetHeight:D};ut.current=ge;var Se=_===Math.round(At)?At:_,gt=D===Math.round(le)?le:D,xt=(0,de.Z)((0,de.Z)({},ge),{},{offsetWidth:Se,offsetHeight:gt});j==null||j(xt,dn,ur),Vr&&Promise.resolve().then(function(){Vr(xt,dn)})}},[]);return mt.useEffect(function(){var dn=Yr();return dn&&!me&&V(dn,fr),function(){return P(dn,fr)}},[xe.current,me]),mt.createElement(De,{ref:z},Ft?mt.cloneElement(_e,{ref:vr}):_e)}var Qe=mt.forwardRef(He),Ue=Qe,qe="rc-observer-key";function st(M,ye){var Te=M.children,me=typeof Te=="function"?[Te]:(0,Fe.Z)(Te);return me.map(function(xe,z){var j=(xe==null?void 0:xe.key)||"".concat(qe,"-").concat(z);return mt.createElement(Ue,(0,Ie.Z)({},M,{key:j,ref:z===0?ye:void 0}),xe)})}var Pe=mt.forwardRef(st);Pe.Collection=C;var pe=Pe},29125:function(wn,Sr,je){"use strict";je.d(Sr,{G:function(){return Me},Z:function(){return P}});var Ie=je(92310),mt=je.n(Ie),Fe=je(59301);function Me(G){var Z=G.children,se=G.prefixCls,oe=G.id,De=G.overlayInnerStyle,He=G.bodyClassName,Qe=G.className,Ue=G.style;return Fe.createElement("div",{className:mt()("".concat(se,"-content"),Qe),style:Ue},Fe.createElement("div",{className:mt()("".concat(se,"-inner"),He),id:oe,role:"tooltip",style:De},typeof Z=="function"?Z():Z))}var de=je(54476),I=je(33885),Be=je(75931),R=je(65030),u={shiftX:64,adjustY:1},C={adjustX:1,shiftY:!0},H=[0,0],w={left:{points:["cr","cl"],overflow:C,offset:[-4,0],targetOffset:H},right:{points:["cl","cr"],overflow:C,offset:[4,0],targetOffset:H},top:{points:["bc","tc"],overflow:u,offset:[0,-4],targetOffset:H},bottom:{points:["tc","bc"],overflow:u,offset:[0,4],targetOffset:H},topLeft:{points:["bl","tl"],overflow:u,offset:[0,-4],targetOffset:H},leftTop:{points:["tr","tl"],overflow:C,offset:[-4,0],targetOffset:H},topRight:{points:["br","tr"],overflow:u,offset:[0,-4],targetOffset:H},rightTop:{points:["tl","tr"],overflow:C,offset:[4,0],targetOffset:H},bottomRight:{points:["tr","br"],overflow:u,offset:[0,4],targetOffset:H},rightBottom:{points:["bl","br"],overflow:C,offset:[4,0],targetOffset:H},bottomLeft:{points:["tl","bl"],overflow:u,offset:[0,4],targetOffset:H},leftBottom:{points:["br","bl"],overflow:C,offset:[-4,0],targetOffset:H}},L=null,B=je(80402),k=["overlayClassName","trigger","mouseEnterDelay","mouseLeaveDelay","overlayStyle","prefixCls","children","onVisibleChange","afterVisibleChange","transitionName","animation","motion","placement","align","destroyTooltipOnHide","defaultVisible","getTooltipContainer","overlayInnerStyle","arrowContent","overlay","id","showArrow","classNames","styles"],K=function(Z,se){var oe=Z.overlayClassName,De=Z.trigger,He=De===void 0?["hover"]:De,Qe=Z.mouseEnterDelay,Ue=Qe===void 0?0:Qe,qe=Z.mouseLeaveDelay,st=qe===void 0?.1:qe,Pe=Z.overlayStyle,pe=Z.prefixCls,M=pe===void 0?"rc-tooltip":pe,ye=Z.children,Te=Z.onVisibleChange,me=Z.afterVisibleChange,xe=Z.transitionName,z=Z.animation,j=Z.motion,ee=Z.placement,_e=ee===void 0?"right":ee,ut=Z.align,Ft=ut===void 0?{}:ut,Vt=Z.destroyTooltipOnHide,vr=Vt===void 0?!1:Vt,Yr=Z.defaultVisible,wr=Z.getTooltipContainer,fr=Z.overlayInnerStyle,dn=Z.arrowContent,ar=Z.overlay,Vr=Z.id,ur=Z.showArrow,ve=ur===void 0?!0:ur,At=Z.classNames,le=Z.styles,_=(0,Be.Z)(Z,k),D=(0,B.Z)(Vr),ae=(0,Fe.useRef)(null);(0,Fe.useImperativeHandle)(se,function(){return ae.current});var We=(0,I.Z)({},_);"visible"in Z&&(We.popupVisible=Z.visible);var ge=function(){return Fe.createElement(Me,{key:"content",prefixCls:M,id:D,bodyClassName:At==null?void 0:At.body,overlayInnerStyle:(0,I.Z)((0,I.Z)({},fr),le==null?void 0:le.body)},ar)},Se=function(){var xt=Fe.Children.only(ye),Et=(xt==null?void 0:xt.props)||{},nr=(0,I.Z)((0,I.Z)({},Et),{},{"aria-describedby":ar?D:null});return Fe.cloneElement(ye,nr)};return Fe.createElement(R.Z,(0,de.Z)({popupClassName:mt()(oe,At==null?void 0:At.root),prefixCls:M,popup:ge,action:He,builtinPlacements:w,popupPlacement:_e,ref:ae,popupAlign:Ft,getPopupContainer:wr,onPopupVisibleChange:Te,afterPopupVisibleChange:me,popupTransitionName:xe,popupAnimation:z,popupMotion:j,defaultPopupVisible:Yr,autoDestroy:vr,mouseLeaveDelay:st,popupStyle:(0,I.Z)((0,I.Z)({},Pe),le==null?void 0:le.root),mouseEnterDelay:Ue,arrow:ve},We),Se())},V=(0,Fe.forwardRef)(K),P=V},49658:function(wn,Sr){"use strict";Sr.Z=function(){if(typeof navigator=="undefined"||typeof window=="undefined")return!1;var je=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(je)||/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(je==null?void 0:je.substr(0,4))}},83145:function(wn,Sr,je){"use strict";Object.defineProperty(Sr,"__esModule",{value:!0}),Sr.CopyToClipboard=void 0;var Ie=Fe(je(59301)),mt=Fe(je(25769));function Fe(G){return G&&G.__esModule?G:{default:G}}function Me(G){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Me=function(se){return typeof se}:Me=function(se){return se&&typeof Symbol=="function"&&se.constructor===Symbol&&se!==Symbol.prototype?"symbol":typeof se},Me(G)}function de(G,Z){var se=Object.keys(G);if(Object.getOwnPropertySymbols){var oe=Object.getOwnPropertySymbols(G);Z&&(oe=oe.filter(function(De){return Object.getOwnPropertyDescriptor(G,De).enumerable})),se.push.apply(se,oe)}return se}function I(G){for(var Z=1;Z<arguments.length;Z++){var se=arguments[Z]!=null?arguments[Z]:{};Z%2?de(se,!0).forEach(function(oe){V(G,oe,se[oe])}):Object.getOwnPropertyDescriptors?Object.defineProperties(G,Object.getOwnPropertyDescriptors(se)):de(se).forEach(function(oe){Object.defineProperty(G,oe,Object.getOwnPropertyDescriptor(se,oe))})}return G}function Be(G,Z){if(G==null)return{};var se=R(G,Z),oe,De;if(Object.getOwnPropertySymbols){var He=Object.getOwnPropertySymbols(G);for(De=0;De<He.length;De++)oe=He[De],!(Z.indexOf(oe)>=0)&&Object.prototype.propertyIsEnumerable.call(G,oe)&&(se[oe]=G[oe])}return se}function R(G,Z){if(G==null)return{};var se={},oe=Object.keys(G),De,He;for(He=0;He<oe.length;He++)De=oe[He],!(Z.indexOf(De)>=0)&&(se[De]=G[De]);return se}function u(G,Z){if(!(G instanceof Z))throw new TypeError("Cannot call a class as a function")}function C(G,Z){for(var se=0;se<Z.length;se++){var oe=Z[se];oe.enumerable=oe.enumerable||!1,oe.configurable=!0,"value"in oe&&(oe.writable=!0),Object.defineProperty(G,oe.key,oe)}}function H(G,Z,se){return Z&&C(G.prototype,Z),se&&C(G,se),G}function w(G,Z){return Z&&(Me(Z)==="object"||typeof Z=="function")?Z:B(G)}function L(G){return L=Object.setPrototypeOf?Object.getPrototypeOf:function(se){return se.__proto__||Object.getPrototypeOf(se)},L(G)}function B(G){if(G===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return G}function k(G,Z){if(typeof Z!="function"&&Z!==null)throw new TypeError("Super expression must either be null or a function");G.prototype=Object.create(Z&&Z.prototype,{constructor:{value:G,writable:!0,configurable:!0}}),Z&&K(G,Z)}function K(G,Z){return K=Object.setPrototypeOf||function(oe,De){return oe.__proto__=De,oe},K(G,Z)}function V(G,Z,se){return Z in G?Object.defineProperty(G,Z,{value:se,enumerable:!0,configurable:!0,writable:!0}):G[Z]=se,G}var P=function(G){k(Z,G);function Z(){var se,oe;u(this,Z);for(var De=arguments.length,He=new Array(De),Qe=0;Qe<De;Qe++)He[Qe]=arguments[Qe];return oe=w(this,(se=L(Z)).call.apply(se,[this].concat(He))),V(B(oe),"onClick",function(Ue){var qe=oe.props,st=qe.text,Pe=qe.onCopy,pe=qe.children,M=qe.options,ye=Ie.default.Children.only(pe),Te=(0,mt.default)(st,M);Pe&&Pe(st,Te),ye&&ye.props&&typeof ye.props.onClick=="function"&&ye.props.onClick(Ue)}),oe}return H(Z,[{key:"render",value:function(){var oe=this.props,De=oe.text,He=oe.onCopy,Qe=oe.options,Ue=oe.children,qe=Be(oe,["text","onCopy","options","children"]),st=Ie.default.Children.only(Ue);return Ie.default.cloneElement(st,I({},qe,{onClick:this.onClick}))}}]),Z}(Ie.default.PureComponent);Sr.CopyToClipboard=P,V(P,"defaultProps",{onCopy:void 0,options:void 0})},56102:function(wn,Sr,je){"use strict";var Ie=je(83145),mt=Ie.CopyToClipboard;mt.CopyToClipboard=mt,wn.exports=mt},76374:function(wn,Sr,je){"use strict";var Ie=function(){if(typeof Map!="undefined")return Map;function pe(M,ye){var Te=-1;return M.some(function(me,xe){return me[0]===ye?(Te=xe,!0):!1}),Te}return function(){function M(){this.__entries__=[]}return Object.defineProperty(M.prototype,"size",{get:function(){return this.__entries__.length},enumerable:!0,configurable:!0}),M.prototype.get=function(ye){var Te=pe(this.__entries__,ye),me=this.__entries__[Te];return me&&me[1]},M.prototype.set=function(ye,Te){var me=pe(this.__entries__,ye);~me?this.__entries__[me][1]=Te:this.__entries__.push([ye,Te])},M.prototype.delete=function(ye){var Te=this.__entries__,me=pe(Te,ye);~me&&Te.splice(me,1)},M.prototype.has=function(ye){return!!~pe(this.__entries__,ye)},M.prototype.clear=function(){this.__entries__.splice(0)},M.prototype.forEach=function(ye,Te){Te===void 0&&(Te=null);for(var me=0,xe=this.__entries__;me<xe.length;me++){var z=xe[me];ye.call(Te,z[1],z[0])}},M}()}(),mt=typeof window!="undefined"&&typeof document!="undefined"&&window.document===document,Fe=function(){return typeof je.g!="undefined"&&je.g.Math===Math?je.g:typeof self!="undefined"&&self.Math===Math?self:typeof window!="undefined"&&window.Math===Math?window:Function("return this")()}(),Me=function(){return typeof requestAnimationFrame=="function"?requestAnimationFrame.bind(Fe):function(pe){return setTimeout(function(){return pe(Date.now())},1e3/60)}}(),de=2;function I(pe,M){var ye=!1,Te=!1,me=0;function xe(){ye&&(ye=!1,pe()),Te&&j()}function z(){Me(xe)}function j(){var ee=Date.now();if(ye){if(ee-me<de)return;Te=!0}else ye=!0,Te=!1,setTimeout(z,M);me=ee}return j}var Be=20,R=["top","right","bottom","left","width","height","size","weight"],u=typeof MutationObserver!="undefined",C=function(){function pe(){this.connected_=!1,this.mutationEventsAdded_=!1,this.mutationsObserver_=null,this.observers_=[],this.onTransitionEnd_=this.onTransitionEnd_.bind(this),this.refresh=I(this.refresh.bind(this),Be)}return pe.prototype.addObserver=function(M){~this.observers_.indexOf(M)||this.observers_.push(M),this.connected_||this.connect_()},pe.prototype.removeObserver=function(M){var ye=this.observers_,Te=ye.indexOf(M);~Te&&ye.splice(Te,1),!ye.length&&this.connected_&&this.disconnect_()},pe.prototype.refresh=function(){var M=this.updateObservers_();M&&this.refresh()},pe.prototype.updateObservers_=function(){var M=this.observers_.filter(function(ye){return ye.gatherActive(),ye.hasActive()});return M.forEach(function(ye){return ye.broadcastActive()}),M.length>0},pe.prototype.connect_=function(){!mt||this.connected_||(document.addEventListener("transitionend",this.onTransitionEnd_),window.addEventListener("resize",this.refresh),u?(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)},pe.prototype.disconnect_=function(){!mt||!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)},pe.prototype.onTransitionEnd_=function(M){var ye=M.propertyName,Te=ye===void 0?"":ye,me=R.some(function(xe){return!!~Te.indexOf(xe)});me&&this.refresh()},pe.getInstance=function(){return this.instance_||(this.instance_=new pe),this.instance_},pe.instance_=null,pe}(),H=function(pe,M){for(var ye=0,Te=Object.keys(M);ye<Te.length;ye++){var me=Te[ye];Object.defineProperty(pe,me,{value:M[me],enumerable:!1,writable:!1,configurable:!0})}return pe},w=function(pe){var M=pe&&pe.ownerDocument&&pe.ownerDocument.defaultView;return M||Fe},L=De(0,0,0,0);function B(pe){return parseFloat(pe)||0}function k(pe){for(var M=[],ye=1;ye<arguments.length;ye++)M[ye-1]=arguments[ye];return M.reduce(function(Te,me){var xe=pe["border-"+me+"-width"];return Te+B(xe)},0)}function K(pe){for(var M=["top","right","bottom","left"],ye={},Te=0,me=M;Te<me.length;Te++){var xe=me[Te],z=pe["padding-"+xe];ye[xe]=B(z)}return ye}function V(pe){var M=pe.getBBox();return De(0,0,M.width,M.height)}function P(pe){var M=pe.clientWidth,ye=pe.clientHeight;if(!M&&!ye)return L;var Te=w(pe).getComputedStyle(pe),me=K(Te),xe=me.left+me.right,z=me.top+me.bottom,j=B(Te.width),ee=B(Te.height);if(Te.boxSizing==="border-box"&&(Math.round(j+xe)!==M&&(j-=k(Te,"left","right")+xe),Math.round(ee+z)!==ye&&(ee-=k(Te,"top","bottom")+z)),!Z(pe)){var _e=Math.round(j+xe)-M,ut=Math.round(ee+z)-ye;Math.abs(_e)!==1&&(j-=_e),Math.abs(ut)!==1&&(ee-=ut)}return De(me.left,me.top,j,ee)}var G=function(){return typeof SVGGraphicsElement!="undefined"?function(pe){return pe instanceof w(pe).SVGGraphicsElement}:function(pe){return pe instanceof w(pe).SVGElement&&typeof pe.getBBox=="function"}}();function Z(pe){return pe===w(pe).document.documentElement}function se(pe){return mt?G(pe)?V(pe):P(pe):L}function oe(pe){var M=pe.x,ye=pe.y,Te=pe.width,me=pe.height,xe=typeof DOMRectReadOnly!="undefined"?DOMRectReadOnly:Object,z=Object.create(xe.prototype);return H(z,{x:M,y:ye,width:Te,height:me,top:ye,right:M+Te,bottom:me+ye,left:M}),z}function De(pe,M,ye,Te){return{x:pe,y:M,width:ye,height:Te}}var He=function(){function pe(M){this.broadcastWidth=0,this.broadcastHeight=0,this.contentRect_=De(0,0,0,0),this.target=M}return pe.prototype.isActive=function(){var M=se(this.target);return this.contentRect_=M,M.width!==this.broadcastWidth||M.height!==this.broadcastHeight},pe.prototype.broadcastRect=function(){var M=this.contentRect_;return this.broadcastWidth=M.width,this.broadcastHeight=M.height,M},pe}(),Qe=function(){function pe(M,ye){var Te=oe(ye);H(this,{target:M,contentRect:Te})}return pe}(),Ue=function(){function pe(M,ye,Te){if(this.activeObservations_=[],this.observations_=new Ie,typeof M!="function")throw new TypeError("The callback provided as parameter 1 is not a function.");this.callback_=M,this.controller_=ye,this.callbackCtx_=Te}return pe.prototype.observe=function(M){if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");if(!(typeof Element=="undefined"||!(Element instanceof Object))){if(!(M instanceof w(M).Element))throw new TypeError('parameter 1 is not of type "Element".');var ye=this.observations_;ye.has(M)||(ye.set(M,new He(M)),this.controller_.addObserver(this),this.controller_.refresh())}},pe.prototype.unobserve=function(M){if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");if(!(typeof Element=="undefined"||!(Element instanceof Object))){if(!(M instanceof w(M).Element))throw new TypeError('parameter 1 is not of type "Element".');var ye=this.observations_;ye.has(M)&&(ye.delete(M),ye.size||this.controller_.removeObserver(this))}},pe.prototype.disconnect=function(){this.clearActive(),this.observations_.clear(),this.controller_.removeObserver(this)},pe.prototype.gatherActive=function(){var M=this;this.clearActive(),this.observations_.forEach(function(ye){ye.isActive()&&M.activeObservations_.push(ye)})},pe.prototype.broadcastActive=function(){if(this.hasActive()){var M=this.callbackCtx_,ye=this.activeObservations_.map(function(Te){return new Qe(Te.target,Te.broadcastRect())});this.callback_.call(M,ye,M),this.clearActive()}},pe.prototype.clearActive=function(){this.activeObservations_.splice(0)},pe.prototype.hasActive=function(){return this.activeObservations_.length>0},pe}(),qe=typeof WeakMap!="undefined"?new WeakMap:new Ie,st=function(){function pe(M){if(!(this instanceof pe))throw new TypeError("Cannot call a class as a function.");if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");var ye=C.getInstance(),Te=new Ue(M,ye,this);qe.set(this,Te)}return pe}();["observe","unobserve","disconnect"].forEach(function(pe){st.prototype[pe]=function(){var M;return(M=qe.get(this))[pe].apply(M,arguments)}});var Pe=function(){return typeof Fe.ResizeObserver!="undefined"?Fe.ResizeObserver:st}();Sr.Z=Pe},98040:function(wn){wn.exports=function(){var Sr=document.getSelection();if(!Sr.rangeCount)return function(){};for(var je=document.activeElement,Ie=[],mt=0;mt<Sr.rangeCount;mt++)Ie.push(Sr.getRangeAt(mt));switch(je.tagName.toUpperCase()){case"INPUT":case"TEXTAREA":je.blur();break;default:je=null;break}return Sr.removeAllRanges(),function(){Sr.type==="Caret"&&Sr.removeAllRanges(),Sr.rangeCount||Ie.forEach(function(Fe){Sr.addRange(Fe)}),je&&je.focus()}}},45614:function(wn){"use strict";wn.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAfQAAAH0CAYAAADL1t+KAAAAAXNSR0IArs4c6QAAAERlWElmTU0AKgAAAAgAAYdpAAQAAAABAAAAGgAAAAAAA6ABAAMAAAABAAEAAKACAAQAAAABAAAB9KADAAQAAAABAAAB9AAAAAB3bs6AAAA90UlEQVR4Ae3dB5xU5b3/8d+ACAgKCKIg3YqoIKJiA1FUjCUaY4yxkehVo9FrTPzHkhtJYqJpNz3mplyNV2NsicaoiCgiKIoiFhArxYJ0BKQI7s7/97AB2d2Z2ZnZ55zzlM95vTbuzjnnKe/fhu+emVNywlJUIH/AiAHSaqv9pLa2v+Ra9Je89JJ8vovu0EVyuXZFd2QFAgiEIfDZY6bLVd8cksvlasOYELMIWWCrkCdX6dzy+xzWSdq1PVVDe5TuO1xDu4ts/L9xC9Ewr1tyuUqbZXsEEPBVoFfP/eS3N83K5/N7aqhv+lfA19kw7sAFok+n/L7HtJM2+ZNEas+QFi2O1XpvHXjNmR4CCJQrcOl5Ih22E5k79w1Zsqh/bswYjtTLtWO71AX00DPOJS/7t8oPPeZc2ab2GWkhf9UwP1ElCPM4fx2YNQKlBfr02V26dJ2VHzMm2n8zSwOx1gWBKH8584ccM0wO6vicvo9+i0hubxcKwRgQQMBxAULd8QIxvKgCPb/vET3yB428R2rzE/Ukt4GUHwEEEKhIgFCviIuN0xWIJtDzAw7eXrZpdaee6HZqusT0hgACQQkQ6kGVM6TJRBHo+SEj9pDt2k/Twh0SUvGYCwIIZCRAqGcET7elBIIP9PzgEftLi5aT9LKzPqUgWIcAAghUJECoV8TFxskLBB3o+YOPGiWtWj4pLXI7JE9JDwggEJ0AoR5dyV2ecLCBnh967Eipyd2nn5lv43IBGBsCCHguQKh7XsBwhh9koG8M89qaf+mReetwSsVMEEDAWQFC3dnSxDSw4AI9f/BpbSVX+0fCPKZfY+aKgAMChLoDRYh7CMEFuuQ/vIkT4OL+pWb2CGQmQKhnRk/Hojc9DWjJDz7qcJ3OuQFNiakggIBvAoS6bxULZrzBBLq5N7u0yv05mMowEQQQ8FeAUPe3dh6PPJhAl0M6X6tntO/mcS0YOgIIhCRAqIdUTS/mEkSg5/sc0UafYX6BF+IMEgEE4hEg1OOptQMzDSLQZcetLtIT4bo54MkQEEAAgfoChHp9D35KTCCMQG8hFyUmRMMIIIBAcwUI9eYKsn8ZAt4Hen7QEYMkn9ujjLmyCQIIIJCdAKGenX0kPXsf6NK21ehIasU0EUDAdwFC3fcKOj1+/wO9Nn+y08IMDgEEENhSgFDfUoPvLQp4Hej5oaP66KVqvS160BQCCCCQvAChnrxxhD14HegiNUdEWDOmjAACIQgQ6iFU0ak5+B3oORnklCaDQQABBCoRINQr0WLbJgT8DnSRPZuYH6sRQAABtwUIdbfr49Ho/A702jxH6B79sjFUBBAoIkCoF4Hh5UoE/A70vHSsZLJsiwACCDgrQKg7WxpfBuZtoG+8f3uLXGtfoBknAggg0KQAod4kERsUF/A20GUHjs6Ll5U1CCDgrQCh7m3psh64v4FeuzVvt2f920P/CCCQjAChnoxr4K36G+itWqwLvDZMDwEEYhYg1GOuflVz9zfQq5ouOyGAAAIeCRDqHhUr+6ES6NnXgBEggAACxQUI9eI2rKknQKDX4+AHBBBAwEEBQt3Borg3JALdvZowIgQQQKCxAKHe2IRX6gkQ6PU4+AEBBBBwWIBQd7g42Q+NQM++BowAAQQQKF+AUC/fKrItCfTICs50EUAgAAFCPYAi2p8CgW7flBYRQACB5AUI9eSNPeuBQPesYAwXAQQQ2CxAqG+m4BsRAp3fAgQQQMBnAULd5+pZHTuBbpWTxhBAAIEMBAj1DNDd65JAd68mjAgBBBCoXIBQr9wssD0I9MAKynQQQCBiAUI94uLzGXrUxWfyCCAQoAChHmBRy5sSR+jlObEVAggg4I8Aoe5PrSyOlEC3iElTCCCAgDMChLozpUhrIAR6WtL0gwACCKQtQKinLZ5pfwR6pvx0jgACCCQsQKgnDOxO8wS6O7VgJAgggEAyAoR6Mq6OtUqgO1YQhoMAAggkIkCoJ8LqUqMEukvVYCwIIIBAkgKEepK6mbdNoGdeAgaAAAIIpChAqKeInW5XBHq63vSGAAIIZC9AqGdfgwRGQKAngEqTCCCAgPMChLrzJap0gAR6pWJsjwACCIQiQKiHUsmN8yDQgyonk0EAAQQqFCDUKwRzd3MC3d3aMDIEEEAgHQFCPR3nhHsh0BMGpnkEEEDACwFC3YsylRokgV5Kh3UIIIBATAKEutfVJtC9Lh+DRwABBCwLEOqWQdNrjkBPz5qeEEAAAT8ECHU/6tRglAR6AxB+RAABBBBQAULdu18DAt27kjFgBBBAICUBQj0laDvdEOh2HGkFAQQQCFOAUPemrgS6N6VioAgggEBGAoR6RvCVdUugV+bF1ggggECcAoS683Un0J0vEQNEAAEEHBEg1B0pROFhEOiFXXgVAQQQQKCQAKFeSMWJ1wh0J8rAIBBAAAGPBAh1J4tFoDtZFgaFAAIIOC5AqDtXIALduZIwIAQQQMATAULdqUIR6E6Vg8EggAACngkQ6s4UjEB3phQMBAEEEPBUgFB3onAEuhNlYBAIIICA5wKEeuYFJNAzLwEDQAABBAIRINQzLSSBnik/nSOAAAKBCRDqmRWUQM+Mno4RQACBQAUI9UwKS6Bnwk6nCCCAQOAChHrqBSbQUyenQwQQQCASAUI91UIT6Kly0xkCCCAQmQChnlrBCfTUqOkIAQQQiFSAUE+l8AR6Ksx0ggACCEQuQKgn/gtAoCdOTAcIIIAAAhsFCPVEfxEI9ER5aRwBBBBAoJ4AoV6Pw+YPBLpNTdpCAAEEEGhagFBv2qiKLQj0KtDYBQEEEECgmQKEejMBG+9OoDc24RUEEEAAgTQECHWrygS6VU4aQwABBBCoSIBQr4ir1MYEeikd1iGAAAIIJC9AqFsxJtCtMNIIAggggECzBAj1ZvGZnQn0ZhPSAAIIIICAFQFCvVmMBHqz+NgZAQSCFqipCXp6Tk6OUK+6LAR61XTsiAACwQusXx/8FJ2cIKFeVVkI9KrY2AkBBKIQ2LAhimk6OUlCveKyEOgVk7EDAghEI7ByVTRTdXKihHpFZSHQK+JiYwQQiEpg6bKopuvkZAn1sstCoJdNxYYIIBCdwNLl0U3ZyQkT6mWVhUAvi4mNEEAgSoEFi6KctpOTJtSbLAuB3iQRGyCAQLQCS1eIrFgZ7fSdmzihXrIkBHpJHlYigED0Au+9Hz2BUwCEetFyEOhFaViBAAIIqMAbb8PgmgChXrAiBHpBFl5EAAEE/i3wmgb6mjVwuCZAqDeqCIHeiIQXEEAAgS0EampF3uQofQsRd74l1OvVgkCvx8EPCCCAQAGBF2eI5PMFVvBS5gKE+uYSEOibKfgGAQQQKCLw7gKR2XOKrOTlzAUI9Y0lINAz/01kAAgg4IXA0895McxoB7kp1EVysRoQ6LFWnnkjgEBlAvPmi8ycVdk+bJ2ugAn13/zutfyYMVFmW5STTvc3jN4QQCAYgXFPiKxbF8x0gpzIpiP1CEOdQA/yN5pJIYBAIgKrNcwnPJlI0zRqUWBTqEf29juBbvF3iKYQQCACgWkzeevdhzJH+PY7ge7DLyZjRAABtwQeflzkQ73PO4vbApEdqRPobv86MjoEEHBRYN16kTvu5cEtLtam4ZgiOlIn0BsWn58RQACBcgTMk9j+eg9H6uVYZb1NJEfq3l6vlx86qo9IDXd6yPr/KPSPQOwC7duKnPE5kR27xi7h/vznzn1DlizqnxszRu/nG97CEXp4NWVGCCCQpsBHa0X+cqfI3Hlp9kpf1QgEfqTOEXo1vxTsgwACCDQUaKH/nB5/lMjAfRqu4WfXBAI9UucI3bVfNMaDAAJ+CtTqw1seGC/y2EQ/xx/TqAM9UucIPaZfYuaKAALpCOzQSeTIw0R22zWd/uilOoHAjtS3qk6BvRBAAAEEigosXi5y5wMiu/QUGTpEpG+fopuyIkMBc6QuMkvfW9lTj271P34vHKH7XT9GjwACPgjs1FnkoP1Fdtcj9tatfRhxXGOc984bcslF3oc6gR7Xry2zRQCBrAX20lDfrZ9Izx4iHTtkPRr63yQQQKgT6JuKyX8RQACBtAU6thfZuZtI1y4i2+vn7h23E2m7jX614Ug+7VqY/jwPdQI9i18a+kQAAQQQcFSgZd/cM2PnOjq4ksPisrWSPKxEAAEEEEDADwEC3Y86MUoEEEAAAQRKChDoJXlYiQACCCCAgB8CBLofdWKUCCCAAAIIlBQg0EvysBIBBBBAAAE/BAh0P+rEKBFAAAEEECgpQKCX5GElAggggAACfggQ6H7UiVEigAACCCBQUoBAL8nDSgQQQAABBPwQIND9qBOjRAABBBBAoKQAgV6Sh5UIIIAAAgj4IUCg+1EnRokAAggggEBJAQK9JA8rEUAAAQQQ8EOAQPejTowSAQQQQACBkgIEekkeViKAAAIIIOCHAIHuR50YJQIIIIAAAiUFCPSSPKxEAAEEEEDADwEC3Y86MUoEEEAAAQRKChDoJXlYiQACCCCAgB8CBLofdWKUCCCAAAIIlBQg0EvysBIBBBBAAAE/BAh0P+rEKBFAAAEEECgpQKCX5GElAggggAACfggQ6H7UiVEigAACCCBQUoBAL8nDSgQQQAABBPwQIND9qBOjRAABBBBAoKQAgV6Sh5UIIIAAAgj4IUCg+1EnRokAAggggEBJAQK9JA8rEUAAAQQQ8EOAQPejTowSAQQQQACBkgIEekkeViKAAAIIIOCHAIHuR50YJQIIIIAAAiUFCPSSPKxEAAEEEEDADwEC3Y86MUoEEEAAAQRKChDoJXlYiQACCCCAgB8CBLofdWKUCCCAAAIIlBQg0EvysBIBBBBAAAE/BAh0P+rEKBFAAAEEECgpQKCX5GElAggggAACfggQ6H7UiVEigAACCCBQUoBAL8nDSgQQQAABBPwQIND9qBOjRAABBBBAoKTAViXXshIBBNwQ2KGTSBf96tBBJJcTWbtWZOFikQ+WuDE+RoEAApkLEOiZl4ABINBAoLOG9vBDRAb0F9l1F5Hdd2uwQYMflyzVcF8oMm26yLjHRd5+t8EG/IgAAjEIEOgxVJk5+iEw/CCRM08X2WfvysbbpbMevevXgL1EzjlTZMZMkbvuFXl0cmXtsDUCCHgtQKB7XT4GH4TAAD0Cv/RCkYH72pnO3gNEzNf574j85XaRhybYaZdWEEDAaQEC3enyMLigBcxb65ddIHLM0clMs1cvkf+6WuSE40SuvV5k+cpk+qFVBBBwQoCz3J0oA4OITqDPziJ/+GVyYb4l6H6DRG65SWTPvlu+yvcIIBCYAIEeWEGZjgcC/ftpmP9apHv39AbbdQeRm/QPiIMHp9cnPSGAQKoCBHqq3HQWvYC5/OxnN4ps2z59ijZtRH70fZH+euY8CwIIBCdAoAdXUibktMAvbhDp1DG7IbZqJXLDd/V69nbZjYGeEUAgEQECPRFWGkWggMBF54j007fbs1527Cpy9RVZj4L+EUDAsgCBbhmU5hAoKNBbPy8/96yCqzJ5cfjhevMave6dBQEEghEg0IMpJRNxWuB8PTp3bbnsq66NiPEggEAzBAj0ZuCxKwJlCfTcSfIjhpe1aaobmbPsTxyZapd0hgACyQkQ6MnZ0jICdQJnny65li3d1DC3mmVBAIEgBAj0IMrIJJwVMHeDO/F4Z4cnvXvrLWf3dHd8jAwBBMoWINDLpmJDBKoQGHZwFTulvMuRw1LukO4QQCAJAQI9CVXaRGCTwCFDN33n7n+H6RnvLAgg4L0Age59CZmAswJb67OPDtjf2eFtHthOO4rs0nPzj3yDAAJ+ChDoftaNUfsgcKA+FKV1ax9GKnIg93j3o1CMEoHiAjw+tbgNaxBonkBfPeHM5jJnjshTz4jk83WtHjhEZI/d7fQwaKDIHffbaYtWEEAgEwECPRN2Oo1CoIc+ItXWsuojkS9dWL+1xUvsBfqu/eq3zU8IIOCdAG+5e1cyBuyNQM8e9oY6e3bjtqa92Pi1al8xN5kxn/mzIICAtwIEurelY+DOC/SwGOhvvd14urPfE1m2vPHr1b6yB0fp1dKxHwIuCBDoLlSBMYQpsEMXe/N6q8ARuml9usWj9B56lM6CAALeChDo3paOgUclMGde4ekWOnIvvGXTr3bevult2AIBBJwVINCdLQ0D81qgQzu7w1+6rHB7b+uZ77aWLp1ttUQ7CCCQgQCBngE6XUYg0LaN3UkuXFq4vTcKfLZeeMumX92+U9PbsAUCCDgrQKA7WxoG5rVAG4uBbi5Z21BTmGOhHrmvXl14XaWvtmtf6R5sjwACDgkQ6A4Vg6EEJLB+vb3JNBXYCxfa6av11nbaoRUEEMhEgEDPhJ1OgxdYZemo2UDlcqW5ln9Yen25a325TW2582E7BCITINAjKzjTTUlg1ZqUOtJulhU5Ya7SEWzNEXqlZGyPgEsCBLpL1WAsYQmsXZvOfGzdXKYl/xykUzB6QSAZAf4fnIwrrSIg8pGlt91btiytue7j0uvLXbvhk3K3ZDsEEHBQgEB3sCgMKRCBRYvsTKTDdqXb2WDpBLyaImfSl+6dtQgg4IgAge5IIRhGgAILLQV6q1YipW5UY+vImkAP8JeQKcUkQKDHVG3mmq7ABwvs9delxG1ZP7H0VrnNS+3szZyWEECgTAECvUwoNkOgYgFbR+im4647FO/e1uVmtj7zLz5S1iCAQIICBHqCuDQducD8D+wB9C7xKNZttrHTz6pVdtqhFQQQyESAQM+EnU6jEJj5ur1p9uldvK12lgKdI/TixqxBwAMBAt2DIjFETwU+1HuwLynyUJVKp9S7V/E9bAX6ypXF+2ANAgg4L0CgO18iBui1wJtv2Rl+v37F29m+xAlzxfdqvMbWDWoat8wrCCCQggCBngIyXUQs8PZsO5PfbluRXYscpXfvZqePRUvstEMrCCCQiQCBngk7nUYjYOsI3YANGVSYrXv3wq9X+uoCS9fNV9ov2yOAgBUBAt0KI40gUERg2stFVlTx8r77NN6pX4mz3xtvXfqVdy2elV+6J9YigEACAgR6Aqg0icBmgaUrRObN2/xjs74ZNLDx7rv1a/xaNa98qOOsqa1mT/ZBAAFHBAh0RwrBMAIWeHmGncl16igycM/6bQ3oX//nan/6gKPzaunYDwFXBAh0VyrBOMIVsBXoRmjYofWd9rIU6O+9V79dfkIAAe8ECHTvSsaAvROYOt3ekA8dWr+t3Xat/3O1P73PEXq1dOyHgCsCBLorlWAc4QosWiYy29Lla731jnG79KyzOnBfka23tuP2zrt22qEVBBDITIBAz4yejqMSmPq8vel+/rN1bR04xF6b77xvry1aQgCBTAQI9EzY6TQ6gSlT7U35mJEi7drodemDrbSZr9Wz29+w9A6ClRHRCAIIVCNAoFejxj4IVCowVa9HX7Om0r0Kb2+ernbG50T22L3w+gpfzZkT4jbUVLgXmyOAgGsCBLprFWE84QrYfNv9vNH2nOZYuk7e3ohoCQEEqhAg0KtAYxcEqhKY9FRVuyW+05y5iXdBBwggkLwAgZ68MT0gUCcw4Wl9a3uDexq2HiDj3swYEQJRCRDoUZWbyWYqsPZjkedfyHQIBTt/7c2CL/MiAgj4JUCg+1UvRuu7gGtvu69YKfIeT1nz/deK8SNgBAh0fg8QSFPgCX3b3aXl9dddGg1jQQCBZggQ6M3AY1cEKhZYrkfEU56teLfEdnjtjcSapmEEEEhXgEBP15veEBAZN94dBQLdnVowEgSaKUCgNxOQ3RGoWGDsRJG1ayveLZEdZryWSLM0igAC6QsQ6Omb0yMCIhM01LNezB3iFi/PehT0jwAClgQIdEuQNINARQJjH61o80Q2fumVRJqlUQQQyEaAQM/GnV5jF3hOw9QcIWe5EOhZ6tM3AtYFCHTrpDSIQJkC/3q4zA0T2myqgze5SWiqNItADAIEegxVZo5uCtz3kMgnn2QztvnzRRYuy6ZvekUAgUQECPREWGkUgTIEVqwWyerOcS/q41xZEEAgKAECPahyMhnvBO57IJshT38pm37pFQEEEhMg0BOjpWEEyhCYqkfK8zJ4Hvlkh+5WVwYTmyCAQNMCBHrTRmyBQLIC//hnsu03bH3OHJEPP2r4Kj8jgIDnAgS65wVk+AEI/HOcyJo16U3khRfT64ueEEAgNQECPTVqOkKgiIB5TvrDjxRZmcDLz3G5WgKqNIlA5gIEeuYlYAAIqMDd96fHMJUj9PSw6QmB9AQI9PSs6QmB4gLz9LrwySk8K/2VGfpgGH1HgAUBBIITINCDKykT8lbgnn8kP/Rp05Pvgx4QQCATAQI9E3Y6RaCAwLN6bfgbbxZYYfGl5/n83KImTSHglACB7lQ5GEz0An+9MzmCdetEps1Mrn1aRgCBTAUI9Ez56RyBBgKPPJncU9i4XK0BNj8iEJYAgR5WPZlNCAJ33J3MLKbxdnsysLSKgBsCBLobdWAUCHwq8Hd9rOrCRZ/+bOu7j9fbaol2EEDAQQEC3cGiMCQE5LY77COMPlukzdb226VFBBBwQoBAd6IMDAKBBgL3PCiy/MMGLzbzxy6dRc76fDMbYXcEEHBVgEB3tTKMK26B9m1Ftm1v3+DML4p02s5+u7SIAAKZCxDomZeAASBQQOCow0W22qrAima+1KaNyEWjm9kIuyOAgIsCBLqLVWFMCBwxLDGD/PHHiezSM7H2aRgBBLIRINCzcadXBIoLmLfbhwwuvr6Za3ItW4pcckEzW2F3BBBwTYBAd60ijAeBkXp0nsTb7VvKHnyQyGFDtnyF7xFAwHMBAt3zAjL8AAWOHJ7OpK64VGTrBD6nT2f09IIAAg0ECPQGIPyIQKYCHdtLfvB+6QyhWzeR889Kpy96QQCBxAUI9MSJ6QCBCgSOGiYbP+OuYJdmbXrGF0R6d29WE+yMAAJuCBDobtSBUSBQJzAiubPbCxKbz+qvvqLgKl5EAAG/BAh0v+rFaEMWMDd82T+5s9uL0g3cV+Sko4uuZgUCCPghQKD7USdGGYPAqBHZzfLiC0X083sWBBDwV4BA97d2jDw0gaMyDPQO+u7AFReHJsp8EIhKgECPqtxM1lmB7juIDNgr2+EdPVJkuF6fzoIAAl4KEOhelo1BBydwwrFuTOlb3+DhLW5UglEgULEAgV4xGTsgkIDAKEdOSuvUUeRaDXUWBBDwToBA965kDDg4gX12FzE3eXFlOfRgkZMdecfAFRPGgYAHAgS6B0ViiIELHHuUexO89KsiO3V2b1yMCAEEigoQ6EVpWIFASgIjjkipowq62WYbkeuuqmAHNkUAgawFCPSsK0D/cQscur/I9p3cNBg0UOS8L7o5NkaFAAKNBAj0RiS8gECKAsccmWJnVXR1/ldEBvWvYkd2QQCBtAUI9LTF6Q+BTQLt2ogMO3zTT+7+97prRMxYWRBAwGkBAt3p8jC4oAVG6dF5Gw+CcqcdRa7hAS5B/y4yuSAECPQgysgkvBQ4fpQ/wz7yCC5l86dajDRSAQI90sIz7YwFdukp0n/PjAdRYff/eYlIL4eul69w+GyOQOgCBHroFWZ+bgqccoKb4yo1KvPxwI1jRNq2LrUV6xBAICMBAj0jeLqNWKBVS5GRDt5MppyS9O0r8r2ry9mSbRBAIGUBAj1lcLpDQI46TMQ8rtTX5bBDRM49zdfRM24EghUg0IMtLRNzVsCnk+GKIOYvOE/kwH2LrOVlBBDIQoBAz0KdPuMVMM89H6J3h0tiee+9JFot2Gauhf7Tcf0YTpIrqMOLCGQjQKBn406vsQqcdFwyM//t70V++FORBx5Mpv1CrW7bXuSG6zhJrpANryGQgQCBngE6XUYscHwCgf7BByK3/V1k+qsiv/wfEfNzWku/fiLf5SEuaXHTDwKlBAj0UjqsQ8CmwNF6MlyXBB5J+uDDn45y9ToN2BskX1v76WtJf3f4oSJXX5Z0L7SPAAJNCBDoTQCxGgFrAp+1f+15vqZG5L4tAt0M9qXXJHf3vdaGXVZDJ+ncLjy7rE3ZCAEEkhEg0JNxpVUE6gv06Cr5wfvVf83CT7lJT4ksXdG4pd/dLPLOO41fT/KV0Rrop34myR5oGwEESggQ6CVwWIWANYEvnCK5XM5ac5sb+udDm7+t9836T/St9xtl4xF8vRXJ/pC/Qt96P0qvU2dBAIHUBQj01MnpMDqBrbcSOfYY+9OeP19kygvF2331Lcn95bbi6xNYs/FytuuuFTlgnwRap0kEECglQKCX0mEdAjYEjjtSZLttbbRUv41/lnGJ2h9vF3l1Vv39kv6pVSuRH/9AZKBnD59J2oX2EUhYgEBPGJjmEZCTjrePsGGDyN/LCHTT81VjRJZ/aH8MpVo0D3L52Q0iu/cutRXrEEDAogCBbhGTphBoJLBHH5G9+jd6udkvPDlZZNWa8ppZvFzk2jGpf54u7drpdfF6s5t+PcobJ1shgECzBAj0ZvGxMwJNCHz+5CY2qHL1fQ9UtqPedCb3hz9Xto+NrTt2EPn1z7hFrA1L2kCgCQECvQkgViNQtUCn7fRkuKOr3r3ojuZytOdnFF1ddMWt94hMfrro6sRWbN9JQ12P1HdK4KY6iQ2ahhHwT4BA969mjNgXgVP1ZivmBDHby11/r77FMTemf326GW1XfSjNbzTUd9BwZ0EAgUQECPREWGk0eoEWes25uXua7WXlKn0Ay7jqWzW3hr1KH6iydm31bVS75847i/zhVxypV+vHfgg0IaAXyLIggIB1gVFH6NFoF+vNysNjRcxNY5qzzHlfn5L2E5Hvfac5rVS37047aqj/WuTSb4rM0+vok17athbp3lXvob993bsEnfW/5n76nfXLfL7fWtdvre+ibKX/FJp3U7bSr43/1Z/N62a9WcwfQGv1j6G1eiLiGv1+jf53mZ5suGSJyOJ/f81fIPLy63Xb878IZCBAoGeATpcRCJxyUjKTvPt+O+0+OlkvKbtD5Kwz7LRXSSvmD53f/Vzkim+JvD63kj0Lb9urm0ifnnrinZ5N3918r5fKbQrtbbYpvE+lr7Ztq4+J1S8p4yODOXNE5up5Dub6//ETRRYsrbQ3tkegKoEE7kVZ1Tgq3ik/dFQfkRr9fw4LAo4J7LuHyP/oUajtxZzQduUYu63+WN9+N09Ly2IxHx9ccZXIzDeb7r29hulufetCu6cGt/nqtpO+tmvT+2a9xUsvizz2hMgE/SNqScr3A8h67l7237Jv7pmxc30cOoHuY9UYs9sC39eQGnmk/TGa8Ct1q9dqejRvSf/+v/Vofbdq9m7+Puat6/93rci0mXVtmWvWe+6s1673Edm5u0gP/b6nHn2bM+VDWGboPM0fZg8+Srg7W08CPfXScISeOjkdliNgLs36h76VbXuZN0/ki/9hu9W69syY//ibZJ7VXs6I160TWbRIj757lbN1GNuYP2TuvEfk/+7Wz+U/DmNOwczC30DnLPdgfgmZiBMCpyb02XmlN5KpBMN8xnuVniC3fn0le9nb1twmNqYwN3Lms/0vnyNy1y08nc7eb1L0LRHo0f8KAGBNwLx9/dkTrTW3uSFzNHf/I5t/TOQb8zn2929IpGkaLSFgTt67fozIj/QPqo7tS2zIKgSaFiDQmzZiCwTKEzhVH8KybQL/KD80Np23Zcc/pZeUZXB72PJ0w95q2GF6IuUv9LyBrmHPk9klKkCgJ8pL41EJnH5aMtP9WzPuDFfpiG6+U2ScnrDFkr6A+djBXKPPw2zStw+kRwI9kEIyjYwFThmVzEllTzwp8r6eMJbm8j19mMqzU9Pskb42CZiz+X/+I26Ru8mD/1YkQKBXxMXGCBQROPP0Iiua+fIdehZ02ktNrcjl3xZ58aW0e6Y/I2Due//T67FAoGIBAr1iMnZAoIHAscP0s0+9Xtr2Yq5ZzvJWoldoqM981fasaK8cAXNfgMsTukyxnP7ZxksBAt3LsjFopwTO/GIyw7nr3mTaLbdVc3305VeLzJ5d7h5sZ1Egf9qpInv2s9giTYUuQKCHXmHml6zAYUOSuf3ofH1wibnfetbLR/ogksv0nuvmGewsqQrkWug/zxefn2qfdOa3AIHud/0YfdYCSX12fu99Wc/s0/6XrhD52pUiH3zw6Wt8l47AAfoHYw8uZUsH2/9eCHT/a8gMshIwD2EZNNB+7+ahJf942H67zWlxsT4q9D/1SH2J3lWOJV2BUSPT7Y/evBUg0L0tHQPPXOC8c5IZwr8eSudGMpWMvp3envWir4h8rPddZ0lX4KAD0u2P3rwV2MrbkTNwBLIUMEfnByb0D+3djrzdfuC+IoMHieyn70Lsu0+W2nH3vfcAfRZ7a/f+yIu7Kk7OnkB3siwMynmBpI7OzV3azMNSslj220tkiAb4QA3yffYW2XrrLEaRfp9r9cS/j1aLrP5IZJV+5fP1x9BWn8Xevp0+UEW/OmxXf11aP/XVR8i++lZavdGPpwIEuqeFY9gZCgzcM7mj81v/lt7EzLsMg/Xo2xyFmwA3Tz0LcXlTg3DuXL38Tr/e0kvwVqwUWanBbULcnPBX6dJeA75TB32Yioa7ebjK7ruK7LqL/jE0ODnDbnpiHIFeaaWi255Aj67kTLjZAuee2ewmCjbw5GSRt98tuMrKi3v0Edlfw3vwfnVvoSfxIBkrA7XYiDn6fvkVfUzpfXrp3Qd2GjaX8pmvdxfUtTdhSt1/zdvinzlKxFz50K2bnb42tWIet8qCQBMCBHoTQKxGoJ6AOao9+KB6L1n74dY7rDW1saE+eve6AzS899cv8zZ6Rz2qjG0xb5efekrd15Rn9eqBf4pMei4ZBXMjnnv1hEbz9e2vixx/nL1+WusfCywINCFAoDcBxGoE6gmMPqvej9Z+eO55vc3qm81v7mB923fYIfpHx1CRHfVtWpZPBcwfYuZr0WINdX03ZNLT+hCalz5db/O7638usks/vdOb/gFoY2kdyfkMNqwiboNAj7j4TL1CgX12T/Do/K8VDmaLzQ/dX0P8UJEjhotst+0WK/i2oIB5+Mmmo/YPV4hM1ufAv/CiyCz9g2ru+wV3qerFqfpHmq1AX6dH/ywINCFAoDcBxGoENgskdXRuPuN9fsbmbsr6xtxy9ojDRQ4/jBAvC6zIRuZjiBM+U/dlNlmtJ8q9OkvkdQ13cyS/cJHeTGeZ/le/L3UCXYd2enmfXto3oP+/v/SKAZtXCXykJ/GxINCEAIHeBBCrEdgoMEj/oT5E38ZOYrn9zvJaHXagyMgjRIbqOHw6oe3tt/XjBA3JF18Wma5/vIzUdxIuuai8Oae9VTsNZnO7VfPVcFm/Xk+E05MWV6+pv8b8UdCrV/3XbP9kzshnQaAJAQK9CSBWI7BR4KvnJwNhLql6cmrxtk2ID9ej8OF6NG7CxofFPPb1JQ3ul2dogOvXqgYBeNvf646Av39ddtd1V+Nojrh30cvTslgW6DsFLAg0IUCgNwHEagTEhGpSd0q7vcB154cf8Onb6T4cib+ioW0+g542XeQ5DfJyFrPd6AtFbhhj73Pmcvr1cZs1+gdRkpcz+mjCmAsKEOgFWXgRgS0ELtR7mCexmM9rjz1a5JEnRTZ9Jj5Mj8RdD3HzFroJ8Oc1wKfp2+irq7y/u7kj3pcvFbn6MpGTTkhCOIw2X3s9jHkwi8QFCPTEienAa4ET9EYh/fTyoyQW8xa6uYxqnL4F7XKIL1io4T2tLsSnaoiXOjmsGqcbflV3dP91DfYYr5VvymzGq01twXoENgoQ6PwiIFBMoFVLkfNGF1tr73XXwtw8vvUlPfJ+QcP7GQ1ym5dyFVMbN6nuaP/rF4scNaLYVnG+/tCjcc6bWVcsQKBXTMYO0Qh84SSRnXYMf7rm7O2ZehRo3kZ/7gWRV/Qt3toGDyhJQ8Ec+X/7BpFHHxe5Uu+01nn7NHp1uw9z0uS8+W6PkdE5I0CgO1MKBuKUgHkAx1lfcmpIVgez6YYq5m5pz+nd0sxtS11ZJj6rl7idJ3KxfsX+2fpDY12pCuPwQIBA96BIDDEDgbO/EN7nuYuX1N0VbeJkDXF9Sz2Lo/ByS7lCTxg0n63f9Q+RizTYD9Pb2ca2mJMP7/5XbLNmvs0QINCbgceuAQqYO359Ts+4Pv3zYUxuvr5dO1mPwp/QEJ/u4clV5nKtK8foXdj0zmuXXKB3YdP/xrL86OciNbWxzJZ5WhAg0C0g0kQAAjt11rfY9ajcPCHL9+eCz5tX9+CRCZPCeYa2+WPk/Mv1hDk9Uv/KOcldeeDKr/JNf9BzGd5wZTSMwxMBAt2TQjHMhAT26CPypdNEjtHrwX1ezMlTT00RGf9E2DcheUzfbTBf5uY753xJZO8BPlet8Ngn6cNibr2n8DpeRaCEAIFeAodVAQuYu7+ddoo+K3ywSC7n30Tzehb6rNf0SFz/8X9Mb0zz7gL/5tCcEZtnmpuv/TXQzz2z8L3Xm9N+Vvs++LDIT3+bVe/067kAge55ARl+hQKfP17k8yeL9O5d4Y6ObP7++yIPP6Jfj4nMX+zIoDIcxrSZev36NSL99eY/x+m7LCOOEOmiH5/4tqzTu+39RD8zf2iCbyNnvA4JeHhoUqeXHzqqj54xMschS4biqsC22+hJbhrin9OvTh1dHWXxcZl7eU+YKPKgBrmPJ7YVn1kya8xR+4hh+kAb/fIh3M1NfMbo9ffmVrgsDgi07Jt7ZuxcBwZS8RAI9IrJ2MEbgR066efjp9Zdy7yNhrpvi3lO+kMa4uM0zF26TtwnxwP20cfe6u11Dxzi3ol05t2WP95cdy9/n0yDH6u/gc5b7sH/ckY4QRPk550l8tkT/Zv8wkV6pzR9O/0BvaHIOx/4N37XRmye6rbxCXB/Eum6vciheu6Eea79/vuJtNWbB6W9mNvqTn1OZKJegTBez39gQcCiAIFuEZOmMhYwQT76DJETPiNinl3t0/KEntj2oIb45Od9GrVfY120TOQfamy+zNKvh371FumjX730+5496763edmiua3uW3qDGPNo2SlT+cikTp7/TUiAQE8IlmZTFDBBbu7sZo7IfQry19/Qt1v1wRsPjRcxd0ZjSVdg9nsi5ksaHCl30fMsuus9/HfqKrKjfpnP4bt1E+mwXfHxrV6jT6HTz8CXLdcv/cNhqX69N1/ktTnF92ENApYFCHTLoDSXooC5Gcw5X6y7GYwvQb5ipcjjE/Qtdb08adbsFLHoqmyBJR+KmK+XXy97FzZEwAUBAt2FKjCGygTMEdSFo+veWq9sz+y2Ns8TN2+pj9UT3FgQQACBBAQI9ARQaTIhAfN88rP0Hutn6efkPpy1/oGe1PaIvp1uTnDjmvGEfiloFgEENgkQ6Jsk+K/bAiMOrns4x847uz1OcxKUeRiKudzsKT0qZ0EAAQRSEiDQU4KmmyoFzB3ALr1In7Y1qMoGUtrNHI3fcbe+pf64yCo9QYoFAQQQSFmAQE8ZnO7KFDDXDF/8FZFjjylzh4w3u/a7nOSWcQnoHoHYBQj02H8DXJt/C7154ZdOEfnyOX58Tm78HniQMHft94jxIBChAIEeYdGdnfKQvUW+cZne3KOPs0NsNLDVev34TTc3epkXEEAAgbQFCPS0xemvsUD3HUS+doE+UGN443Wuv3LL/4ks12vLWRBAAIGMBQj0jAsQffdfPVdvDqPPs/Zxefddkdv+7uPIGTMCCAQoQKAHWFQvptS7u8gP/ktkl128GG7BQf5Yn1/NggACCDgiQKA7UoiohnHaCfoWu16K5svtWgsV56kpIs/PKLSG1xBAAIFMBAj0TNgj7dQ8RGXMVSKD9/MbYMMGkV/81u85MHoEEAhOgEAPrqSOTmjkoSL/7xsi27Z3dIAVDOu2O/RJWvrcchYEEEDAIQEC3aFiBDkUc//1yy8U+dzJYUzP3BHuZg10FgQQQMAxAQLdsYIENZx+PUSu1xPf+vYNZ1o//oXIhppw5sNMEEAgGAECPZhSOjaRU0bpW+xXODaoZg7HnAj3zPRmNsLuCCCAQDICBHoyrnG3euHZIqP1K6RljT5w5ae/CmlGzAUBBAITINADK2jm07lab916kl6WFtry65tEFiwNbVbMBwEEAhIg0AMqZqZTaddG5IbviBwwJNNhJNL5lGdF7tPnm7MggAACDgu0cHhsDM0XgfZt9brsG7IN89mzk9EyD1+5kTvCJYNLqwggYFOAQLepGWNbbVvXhfneA9Kf/fIPRczDUU7Ve8G3S+j69h//t8iiZenPjR4RQACBCgV4y71CMDZvIHCjvs0+YK8GLyb84wp9utmtt4n89b66jr71NZEdu9rvdMJEkXGT7LdLiwgggEACAgR6AqjRNHmjXmN+4AHpTXf9epG79elmf/mbyCo969wsBw0UOfmkuu9t/u+y5SI/+bXNFmkLAQQQSFSAQE+UN+DGL/myyPDD05vgK/oglO//WOTdBZ/2ae4Nf921n/5s87sf/YznnNv0pC0EEEhcgEBPnDjADobsLXLWGelMbN06kT/+76dvr2/Z6w/17f5OHbd8xc734x8XeXKqnbZoBQEEEEhJgEBPCTqYbjrqyWdJHRU3RHr3XZFrvivy1jsN14j8l96FLokT8cxb7T/lrfbG4LyCAAKuCxDorlfItfF97xqRLp2TH9VEPRnt+p+KfLS2cV+X/4fIZ/TWskks5qz2FXqpGgsCCCDgmQCB7lnBMh3uiIPTudb8T/oW+5/1xLdCy5dPFzn9tEJrmv/a7drnRL2JDAsCCCDgoQCB7mHRMhlyi5zIxXpknORi7pd+3fUik58v3MvZp4pccF7hdc191Zx097ubm9sK+yOAAAKZCRDomdF71vHhB4r00MehJrWsXCXyn98UeW1O4R7O1aPyixL6g2KJ3qP9av2svjZfuG9eRQABBDwQINA9KJITQzzxM8kNw1xffqV+Nl8szM1n5km9zW5m9Z3viyxdkdz8aBkBBBBIQYBATwHZ+y46tJP8IUNF33S3v2zYIPItvUHNy683bnsnPfnuh9eJ9N+z8Tpbr5jrzae/aqs12kEAAQQyEyDQM6P3qONDDpBcLpE418DWm8U8M70xhjkB71vfEOmwXeN1tl554EGeombLknYQQCBzAQI98xJ4MIB+fZMZ5B/+LDJ2Yv22zZPbvnmJyLHH1H/d9k/mJLgf/tJ2q7SHAAIIZCZAoGdG71HH3bvZH+xDY0VuvrN+uycfK3LuWSI77Vj/dds/LVqsN6z5nu1WaQ8BBBDIVIBAz5Tfk87bt7M70Fdn6X3Z9QYum5aTjtYg10egdu++6ZXk/mtuJXu1fi6/RB+9yoIAAggEJECgB1TMxKYyS09Ys/VUtVUfiXxbzyrvp5fAfe5EkZFHJfs5eUOU790g8upbDV/lZwQQQMB7AQLd+xKmMIEVFi/pev99kV/cKNKrVwoDb9DF7/5HZMKUBi/yIwIIIBCGAIEeRh2TncWKlfba33MPe21V0tK/HhL5v3sr2YNtEUAAAa8EWng1WgabjcDsudn0a6vXp58R+cEvbLVGOwgggICTAgS6k2VxbFBvzBX5+GPHBlXmcF7Qa9yv5oz2MrXYDAEEPBYg0D0uXmpDN/c4nzEzte6sdfTSy3pN+3dE1n9irUkaQgABBFwVINBdrYxr43pikmsjKj0ec2ncN/WWsms9fWeh9OxYiwACCDQSINAbkfBCQYHHPAr05/Txq5d9S+SjtQWnwosIIIBAiAIEeohVTWJOy/VM9/sfSKJlu20+/oTI178tslpvIMOCAAIIRCRAoEdU7GZP9Za/6ufR+qhTV5fb/yZy7Q9FampdHSHjQgABBBITINATow2w4QVLRW69zbmJ5Wtq6p7a9pv/dW5sDAgBBBBIS4BAT0s6lH5uuUvktdfdmY3e9CZ3+ZUiD4x3Z0yMBAEEEMhAgEDPAN3rLs3b2d/VW7euXJX9NN7Ue7JfcKnI8/ooVBYEEEAgcgECPfJfgKqmP1fvx/6Nq0TMk8uyWGr1jwrzefl5GubvfJDFCOgTAQQQcE6AQHeuJJ4MaMabIldeI7J4SboDnj9fL0n7hoj5vHyDfnbOggACCCCwUYBA5xehegHzVvfZ/6FPMJtYfRvl7mkeEPPr34mcOlpkmod3rSt3nmyHAAIIVCnA09aqhGO3fwusWC1yzQ9EDh+n139/TaRbN7s05m39e+8T+Yu+xb5qjd22aQ0BBBAISIBAD6iYmU5l0nMik84VOf9L+tn26OYPZdVHInffI3LX/SLmjwYWBBBAAIGSAgR6SR5WVizwJ735zMN6Cdm5Z+hR+2EiHTuU38RqDe6nntY/DPRr/FPl78eWCCCAAAJCoPNLYF/g/UV6o5dfarv6NWRvkQH9RXbfTaRL57q+zFnq5rK35ctFlujNaubOE5ltvt6zPxZaRAABBCIRINAjKXRm0zQnznGdeGb8dIwAAvEIcJZ7PLVmpggggAACAQsQ6AEXl6khgAACCMQjQKDHU2tmigACCCAQsACBHnBxmRoCCCCAQDwCBHo8tWamCCCAAAIBCxDoAReXqSGAAAIIxCNAoMdTa2aKAAIIIBCwAIEecHGZGgIIIIBAPAIEejy1ZqYIIIAAAgELEOgBF5epIYAAAgjEI0Cgx1NrZooAAgggELAAgR5wcZkaAggggEA8AgR6PLVmpggggAACAQsQ6AEXl6khgAACCMQjQKDHU2tmigACCCAQsACBHnBxmRoCCCCAQDwCBHo8tWamCCCAAAIBCxDoAReXqSGAAAIIxCNAoMdTa2aKAAIIIBCwAIEecHGZGgIIIIBAPAIEejy1ZqYIIIAAAgELEOgBF5epIYAAAgjEI0Cgx1NrZooAAgggELAAgR5wcZkaAggggEA8AgR6PLVmpggggAACAQsQ6AEXl6khgAACCMQjQKDHU2tmigACCCAQsACBHnBxmRoCCCCAQDwCBHo8tWamCCCAAAIBCxDoAReXqSGAAAIIxCNAoMdTa2aKAAIIIBCwAIEecHGZGgIIIIBAPAIEejy1ZqYIIIAAAgELEOgBF5epIYAAAgjEI0Cgx1NrZooAAgggELAAgR5wcZkaAggggEA8AgR6PLVmpggggAACAQsQ6AEXl6khgAACCMQjQKDHU2tmigACCCAQsACBHnBxmRoCCCCAQDwCBHo8tWamCCCAAAIBCxDoAReXqSGAAAIIxCNAoMdTa2aKAAIIIBCwAIEecHGZGgIIIIBAPAIEejy1ZqYIIIAAAgELEOgBF5epIYAAAgjEI0Cgx1NrZooAAgggELAAgR5wcZkaAggggEA8AgR6PLVmpggggAACAQsQ6AEXl6khgAACCMQjQKDHU2tmigACCCAQsACBHnBxmRoCCCCAQDwCBHo8tWamCCCAAAIBCxDoAReXqSGAAAIIxCNAoMdTa2aKAAIIIBCwAIEecHGZGgIIIIBAPAIEejy1ZqYIIIAAAgELEOgBF5epIYAAAgjEI0Cgx1NrZooAAgggELAAgR5wcZkaAggggEA8AgR6PLVmpggggAACAQsQ6AEXl6khgAACCMQjQKDHU2tmigACCCAQsACBHnBxmRoCCCCAQDwCBHo8tWamCCCAAAIBCxDoAReXqSGAAAIIxCNAoMdTa2aKAAIIIBCwAIEecHGZGgIIIIBAPAIEejy1ZqYIIIAAAgELEOgBF5epIYAAAgjEI0Cgx1NrZooAAgggELAAgR5wcZkaAggggEA8AgR6PLVmpggggAACAQsQ6AEXl6khgAACCMQj4G+g16xbF0+ZmCkCCCCAQCoCHmeLv4G+WD5Mpbh0ggACCCAQj4DH2eJtoOfmPsERejz/F2OmCCCAQPICtfmPfc4WbwN9Y2Xz+XnJV5geEEAAAQSiEMjJAp/n6Xegt8i95jM+Y0cAAQQQcEjA80zxO9BFCHSH/r/AUBBAAAHPBbzOFL8DPS8vev7Lw/ARQAABBFwR8DxT/A50afmEK78HjAMBBBBAwHcBvzMl5zt//qCRcyWX6+37PBg/AggggECGArn867kp4/fMcATN7trzI3Sdf4vcfc1WoAEEEEAAgcgFcmN9B/A/0NduuMX3IjB+BBBAAIGMBQLIEu8DPffiEy+KvlWS8a8C3SOAAAII+Cpg3m43WeL54n2gb/Svld97XgeGjwACCCCQlUAgGRJGoC/85PeSk/lZ/S7QLwIIIICApwI5+UBMhgSwBBHoG++9m6/5VQD1YAoIIIAAAmkK1OR/4vP927ekCiLQN06oZ+ef81n6lqXlewQQQACBkgL5/JsydflvSm7j0cpgAj13993rRXIXemTPUBFAAAEEshTYkD8vJ9M2ZDkEm30HE+gGJTfl0YmSz/+vTSDaQgABBBAIUKC29k+5Fx6bFNLMggr0jYX5pO2lIvkZIRWJuSCAAAIIWBTIy0xpuf1lFlt0oinvb/1aSDF/4IiBkmv5jN4Stk2h9byGAAIIIBCpQD6/TvI1Q3NTJ7wUmkB4R+haoY2F2lBzsr79vi60gjEfBBBAAIEqBWrzH+vB3okhhrkRCTLQzcRyL0x4ROpCfY35mQUBBBBAIGKBfH6N5FqcmHvmkfGhKgT5lvuWxcoPHrG/bNXyYX2Iyw5bvs73CCCAAAKRCNTmF8snNcfpgd60kGccfKCb4uX3PnIXadfiUf1MvW/IxWRuCCCAAAINBPL5ObK69ujcjMffbrAmuB+jCHRTtfyAg7eXbds/oN8eElwVmRACCCCAQCGBp2XVRyfmZk5ZVmhlaK9FE+ibCpc/6Ji/6B3lztn0M/9FAAEEEAhQIJ+7NffsuHMDnFnRKQV7UlyxGW8scIvccMnXBnfJQrE58zoCCCAQjYD5t13/jY8tzE19oztC3/KXOn/Q0Wfref5XSV722vJ1vkcAAQQQ8EwgJ69KPvfD3DPjbvds5NaGG3Wgb1LMHzTys3rN+nnSosWJm17jvwgggAACPgjk/6UHZX/KPTv+fh9Gm+QYCfQtdPP7HNZJ2rU9VcN9lL48XM+K77LFar5FAAEEEMhaIJ9fokOYqP8+j5XVa+/NvTJ5edZDcqV/Ar1EJfIHjBggrbbaT2pr++sNCfrrX4G9NOxNyHfRX6Z2JXZlFQIIIIBAtQL5/GrddYn+O6tf8o6e8zRL30GdJRs+mZ57bsLMapsNfb//DwIfBeAbAeL/AAAAAElFTkSuQmCC"},38347:function(wn){"use strict";wn.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAMgAAADICAYAAACtWK6eAAAAAXNSR0IArs4c6QAAAERlWElmTU0AKgAAAAgAAYdpAAQAAAABAAAAGgAAAAAAA6ABAAMAAAABAAEAAKACAAQAAAABAAAAyKADAAQAAAABAAAAyAAAAACbWz2VAAAW0ElEQVR4Ae1d7W8cSV6u7hnHsRM7cV42TmLHduJ4Yjvju9N+OFg4dBJIdyuxfNg77x0SCHaFhBAfkE4n8QHB3v4DK4EAsbCX5VjQanMHQsDpPh4IEKDdbF7tvDkvTrJ7Sey8J+t47enm9xu7vONO93RVd3XPdM9Tkt3T1VXVVU/101W/l6q2BELTILB98gd7O2wxIdxK2RbuRMWyywXXnYhSwWtHX7Oi5EOe9QgU15/iLBUEJt/sGHS2TiwXRdkmAriuXbYsJkJlm3BlDSxB5JAnODYIARAkYeAPTL47/Kn9dKLNFUSEAhGBRgghhp2CEHb1+bcEkSPhWqD4qAiAIFGR8+Trm3yb3v40ChSKZT4SEcr03I8uiaXuNpfYQIHiEDKGAAgSocP6vvE3E6LYRkRwJgquKLuWGKViBgUTQE6LMChEQLb5soAgdfrEKzSTfDBGE6ISEaKTyFHNSb8RcowACMKd6xGaaWo05lpWiYTmvlqhmUcIDAw5ZoNP01qOILVCsxCFsQoRgbRFJRKa26XQjFHB50lp0ajcEqRWaC467mF66EuucEskNPdKoZn7HKrUFn3yFZudC4KsCc3CPVxwHSKCVSIJoWSTKYGFZmdNTlj7oQgPkrU6ApkiiBSaHbF8uE3YJZemRnaVDO7ONaG5qkoiG0Or9yzabwSB5iRIjdBMAnOJ3vv059LIUBlhKZlIQYcVcdmB2GzkQUAh/gg0nCCfC80FIoAgzdEKIUho7lkRmlcqTtMm/xYgFggkiEBqBJFCs10gIlRHBVajVoXmA1JoBgUS7GkUHQmBRAjCQrNdsA/x1IhHBde1SuRmMUKDQDfPiFaIsDJFilRrZAICKSEQiyAsNLdbldG2qnzAQjNpjvi3JQa4/pIC8EFKqTdxG+MIqBGEhOY99tbRDa5N6tNKVWhmA5vtVlhm6FyRD+g/DQ2SFMZrigKBQAMQeIYguyb/bqhDfLZiRyBVqmO5RAKLtUd9jmD/I9YgSVftBtQYtwQCKSJg7Zt85zfJmlai1Ws0PXKqxKD7b0ixDrhVIghU3kik2BiF2m7BqVgOvWULZLut8HvWcVzLKVj05iW9/TI9gAU6p5kInbsuX7NW45YsWk3D52T3dWyL3tV03XacIsVRSZRn5bpjV6jMoiPo3HKdavqK3eYUnSXXonyLlJ7W5lSv08W5bmfx6tQPf/9xULOsfa8cwawoCB3EtwYCrnuZ5IOpoiX++vL7r/1bbaNhcK5FA79bEwHL2k8Nf2nZFf9KA8a/1IIAgtSigd9AgIgy8Mr3z0sgQBCJBI5AYBUB0seO9E8e+RafQgbBYwEE/BF41GaLcYwg/uAgFgh0kUzyu8/YQYBLPhD4zje/lI+GpNCKN3903PcupCjeDoL4QpP9yD+Y/GL2G5FSC4IIQn4h2zHFSqkTcJtMItADgmSy31DpNBAg10KS0xGAABDwRYDdb0EQX2gQCQQIAZc8FAEEEAACAQiQdyMIEoANooEADSEgCB4DIBCEALnbgyBB4CAeCNA6FRAEjwEQqIcAZJB66OBaSyNAyw4xgrT0E4DG10fAgpBeHyBcbWkEiB8YQVr6CUDjQxDACBICEC63MgK0EaIFd/ecPgH/N30zpy3zb9aXx3r9L8SIpe/LgCAx8GvqrK+88ZOmrp/Jyh19/UWTxa2VRfthQQZZQwM/gIAHAdqkDgTxYIJTILCGAG3CDoKsoYEfQMCDAKZYHkBwCgTWIUC7NsDVZB0iOAECnyNQsGAo/BwN/AICPghgBPEBBVFAgBGg7zRgioVHAQgEIcBaLFjSg9DJeHxSxrOMw6JVfbaDgCBakGUncRKuF9lpvbGaYoplDEoUlDsE6DtxIEjuehUNMoZAAa4mxrBEQblEAIbCXHYrGmUGAawoNIMjSskpApBBctqxaJYxBCCkG4MSBeUPATgr5q9P0SJzCJCrIkYQc3CipLwh4NLm1bCk561XV9uDTRvMdCwIYgbHpisFmzbE7xKH1oOAIBFw/Ep5j+jq2CA2d7atHbvpvKuT44qrcXTe0baaho8bxMt/9GNxbOZ2hDsiSyMQsEhIB0EiIP/Sz+8X3/rlg1o5z1+7J6av3dXKg8SNRYA+4pldgnS2F8UvjO+uvpm7q2/uNiHf4l38Zqe4lb+V3/y253Rf++4/i3PX78VCfqC3Szv/OSLIwmfL2vmQoaEIZJcgY/t6xNt/+Cva6I30bY1FkLZiQUQliHZlkaGhCBgdQb7zzS+Jzo1tomNjUWxq52Nh9cjnxWp8Z038d//yv8Q//udMZABK+7ZFyjvS3yPE/1yJlJcz7e/tFru3b9LOf4FGEIRsIcDb/hiTQT44d0v8/R9/TRmB/bu7ldP6JSzRCBIlHKQRJE4YjDC9mn/wVJyF/BEH9gblNbiryYcX9LQzgw0iyEj/VvpuEA2eEcPAri3aOaeu3hEf33minQ8ZGo2AQXd3XQE0zgiyu6dTlHiqFCHs37NFjEWcnvHtoowgrMFCyCQC5qZY3PyTM3PiC8M7lZAYohFkR/dGMf/wqVL62kQ8verpaq+N0vrNgvrU7B2tPDJxFAH9wmz6BJl9/1VZZRwjImB88+oPzqlPszpIoB/pizYKHIoof0iceJoVJfDUbIhGIN1wFiOILmRNkb5iek36hySo64QoDxuXX+qPpsGSdRuOKKgPkQZr7w49DdZ5Gj0goEvks3WkXRXNevOevDSvhUBUOeTQvmgjgKwcjyA2fT5IN0SRP05dviMq9C0vhAwiYHo9yCd39TQ1UQgysnerKA3EG0EGaSQY37ddu8cGI2iw2IKOkFEEaEptfG/eSx8/UEYjiqqXBfRChLe/t1JR5JAoAvp52D+80Gfp3OwUi1uuI6hLTZYOYociqne994hCEN0p1pOFJcgfXuCzdZ4EQdS/rspaIV1N1khMDZbsH1b16oZDmvaT4xfnIqmxdeuF9EkhYNCSLqt4VlPnr/OgdpBP12hM+UPW8yCNRIWC+gxz33Ndond7p8yudDxBdiGE7CJg0ZJb9SdEsZ26BrhhDZvEGKl3+5/brFiT+sm4nHGNEWFwVzQX9/q1wNVmRiCxbxTevPupcrsPaBjeojooBlVmVGO6NtirbyCEi0kQ8pmJN+tqIpvNnr0vvTAkT+seWVBXDSoEYc/ZHVs2KhXJ0yzVoKvBmr35UFz4+L5q8cbTYdMGI5AmQ5CTF+eVCcJrK1R9slRcTM7N3hW/OLFHCR0dTdZBjakg35wF9EYGbNpgBH3zMghXa1rTEVBFk9W7tVMcUhDQdZQEvDakqCioj2rIK4zBCXpJIGQegaQIorc5gYomi6dXWzdvCEX8LI0gqmEP+VWND4Rb1HmUe66nQ7XYajpeA4KQbQScJLRYDMm9x4vi8aefKaOjoslStUHounaMDYTLIUO71OUkbnSl4gjdeiiDhYSpIWDT0jrjal5Zex2LusoIoiJ/LNKuIaxmfvBkSVYj9Fhdox6Sin23dMLxmXnxcEH9BaFTNtKmh4Dx9SC1VdeZYgwrrAsZVXjTT19dcQzU8X9SEdQP7NVT8Z5osIBe2w/4HR0B/gx0YiPI2avqssD27naxrStYNXtwD3vwhk+Fzq1a8XXkEBbUeSufekFl9KrN32gNVm1d8DsOAgl488rqTGkIy5znQB17CAvotsJGC3JhkiSKrEu9465tnSSo13efV9Ge1d7j1GVosGrxyO7vBLcevUKGMpcWCqnuILJ/9xbxQcDOKKpv8LOr6mW2heiEMSLIiUv+doudWzqUDY98z1vkRXDt9iOd2yeS9oWx3YmU22KFJmMolCB+dGFePF9S3MShjsvJIYXpFd9zanWKdfLKvHhKAvvGDWrbftWz0PMyW53QLNOr917/uk61kdYHAVpzmpwMwvfTeZMHuZzwQ65ipJu5cV88ebqivao4Lt1b3c2jnqCuu6gLHrw+T1pGoxJzVpR4TGsI6kHLb0dp/XmfggfvtGdapUPOg6RF29DmL6irkFO2l4/NMoLU1gm/IyOQ7Aiio00a2uM/lRlVXDvuJaPOVjs7t24MtKjrrj85BhVv5KexCTMmS5DTGj5ZrGr1U/WquqR7yXia5BCdEGRRV1Evy/ucuXJHLC1X5CmOOUAgMTsIY/PZUkXobOLAnzTwBtUdTLyqXd5uxyFZRDX4TaV6NrN9Rn0HxxMX/DVhqnVAuuZDIFGCcHOnNZz2vG4fu0jFemggfO04q1Zv3l+/SIvf5DrTLL+17rqLpI4FqKmbr9tRI1UEEifI6cvqNolBsoXUBp7ebNkU/gb3Tq9kGbyroWpgf7AOj1pYdXon7wGCSCTyc0ycIGc0ZIH9HkE9qoAuu4dlAtXQQ+4uXn+vevYRb7lz9xfEbBMYCL31wnk8BBInyJSGqtdrC1HVIHk1WBISHXJynjGPxkz1/pz3I8gfDEPuQuIEuf9kUfD6bJXQt3P9jiWjCvIHlxvk98WCuk7wjiAq8o8sHwK6RCJfRzVfjJhtPk0P6oCiywZ/mfYRLbYaJnlE5TuEC2Q9v/yzB7415I/6sIVddTf3Wo3ZZvrGuYr8I2987ILezvYyX1LHP/3hiaSKbrpyf268V3x5rDeReqVCEJYFflVxl5NxUvX+L+2KwtMbBQfeNf+rIHSm6N6qBBnp3yL489KfLi7Tjo/h2jN5T16o9cFF9W+jyHxJHt/80fEki2+qso+Ov5hYfRKfYnHNz2hMdUZX14irOigGyR8SsTNX1LVoPGJIucMrj8jy/I68UEvH5uJXBuKaE4FUCKKzP5R8QP0Md34Qhi3M0hfUV9aGeOURv3vLuOPYYlRCkbtjKgS5dY/WSNxSWyPB+0+x46DqCBKmymX5RydIgtbKI2H5P4KBMAyizF5PhSCMTtiDLBFkVS9vxbPXo9GS12uPy7R7yKkQO8sjEuIvkqCuGiQxdTRYIIgqutlLlxpBphTf5Pz12iDHQS+8qlb64xo2ihFyr99EHxjt6gjfg4vrc5G2F8U30L09k5/z1Ahy/rq624eq/HEqYJmst3t01mgwMfycJr1lyvMwGUimwzGbCKRGkAs3/G0VfrCpupifpP2nVIKuj5TUpKmUfXJGT8ZRKRNpmgeB1Agye/uhuDH3WKnlUg4IS3xK8au652/cE480NnLT0WDpki+sTbjeXAikYiiUTWZ7iNedRF6rPXaTNT0ssHPgxU/Uhe8TtIHEV76gtuu76jY/t+4tiOMzzWUglLjNvv+q/IljDARSG0G4jt514zHqLXQ/TqOjaVL9DvtZjbUucdqKvI1DIFWCXNJQt4ZBomvfUJ2O8X07SYulEsKs+CplIE1zI5AqQS5qfEM9DDadB57L0lldGHZveV23DjIfjtlBIFWCsMvJJ/NPjKBzXFHFK2/28Z3HWgZDmS/ouEAOjR/Cgh4ET27iUyUIb0WqalGvh/DF6/fFz+7oE03HYFjv/nyNHRTnHiyEJcP1jCOQKkEYK16fETecu6buoVt7LxPklOXpfmZO5sMxWwikTxADckhUeSIqsfy6FBZ0P1TyF9cAgsQfQaYV/bq83cWfRdMxGHrz155DQK9FI7+/UycIC+o376zfw0oH3ge0xv24ogXdW+4DWsrLBsO4gb2DT8MGEhfGTORPnSCs/bmg4bjoRfH8tfuCN4KIGkzYLkyUEbX+yJcuAqm6msimsT3kl764V55qHXU2g/MrWMer2C8/x8lvIQZdb4Z4bNpgphcaQpBLNM2KGuRn1qLmN/F55umr8adpUeuvmg+bNqgiVT9d6lMsrk4cVW98gtyNZTC8SfsA6+63Vb8LcLWZEWgIQVhQn3/wVBuX2ZuPxGmN7UT9blAhY6Wuo2NtOazejSMD1ZaF382PQEMIcu/xIn0W4b6YpoedN3O492hR8PrysMB2jKXl8HRh5cSRQyCgh6Gbr+sNkUEYwlfe+MkzSHbTcteuzjaxmY6b6dhFuxvyEljebZF3OuQ/EyHOCGLSZd9EW1BGsgg0jCB+zXpIq/74Twh9Pyu/8oLiWFA/dv624A0iero2Vo9BaWvjT126I6Zg/6iFJPe/m4ogaaHNnyl4+U9+vO52A7u6xQB9LLSfjru2dqy7dvryvDhPDpLX5tT29lqXGSeZRqAlCeLXY7O3Hgr+E6c/8buMuBZFoCFCeotijWZnEAGMIBnsNJUqY9MGFZTC02AECccIKVoYARCkhTsfTQ9HAAQJxwgpWhgBEKSFOx9ND0cABAnHCClaGAEQpIU7H00PRwAECccIKVoYARCkhTsfTQ9HAAQJxwgpWhgBEKSFOx9ND0cAribhGGUyBTZtMNNtIIgZHJuuFGzaYKZLMMUygyNKySkCIEhOOxbNMoMACGIGR5SSUwRAkJx2LJplBgEQxAyOKCWnCIAgOe1YNMsMAiCIGRxRSk4RgB0kpx37wtjunLYs3WaBIOnindrd3nv966ndK883whQrz72LtsVGAASJDSEKyDMCIEieexdti40ACBIbQhSQZwRAkDz3LtoWGwEQJDaEKCDPCIAgee5dtC02AiBIbAhRQJ4RAEHy3LtoW1wEHBAkLoTIn2cEFkCQPHcv2hYXARAkLoLIn2sEQJBcdy8aFwsB2xVPMcWKBSEy5xmBinAxguS5g9G2eAjYwgJB4kGI3HlGwAFB8ty9aFtsBCz3MlYUxkaxOQtopb15E+sBV4AgiYHb4IJbaW/eBKGegRYrQXRRdKYRmG+vbPhvECTTfYjKJ4WAK+y/nfmn37gBgiSFMMrNMgLLwlr+ATcABMlyN6LuSSBwybHE711//3fOcOHQYiUBMcrMGgK3LOH+1BH2f1w/+upf1Va+6Frizy1hjTjCLZHvyUDtRfzOLgKua/17dmtvvuYFSyxVLHfOcq3brhBzNDLMLfOxYF++8t5vnQq6o7V24bff2Ti04JQqwh5x3UrJEnZJEHGIWSUqcMtaOvzIBALXjr72ed9mosbNWclQEAcn/6K3YrWPFEWhtExkoQyrpLFGmrNJqBUjAIKYeQ5CCRJ0mz2T75baRaW0RH8Fy6JRx6mOOjRley4oD+LTQwAEMYN1ZIL43f75l97qvLWprey6bqlI0zPXtUu2cEoOjTqUvt0vD+KSQQAEMYOrUYIEVWnHt9/bs9l5VF622kaEK4g0VbmGpmpiX1AexMdDAASJh5/MnQpB5M28x32TR8aEZR+2aJpGioCqUoDS0FF0e9PiXA8BEEQPr6DUDSWIX6VKv/b9rqedVtmuiMOsehaiQCMNTdMscdAvPeL8EQBB/HHRjW06ggQ14MC3j/QvOlZZCPfwilLAZdmGpmtiZ1CeVo4HQcz0fmYIEtTcvsl3ygUhysJyxsnBjEYch/5sUgq4G4LytEI8CGKmlzNPED8Ynp98a8s9USw/td2JNtcaZ8WAS6poStvvlz6PcSCImV7NJUGCoBl6+R8GrLbF8rIrymSvOVwh9XORyEPpu4LyZDUeBDHTcy1FEF/Ivvc9e+hsf7nikmKApmqusGiqxsoBMeybPiORIIiZjgJBAnDsm3x7G8ky5TYizZItyjZP1VaIsyMgS1NFgyBmugME0cRx5BtH9i8USSngOmXygi6Td+g4TddYviEuNU8AQcz0BQhiAMevfvWnxSu918qWU5kguYbIQ8Sx3DEqus9A8ZGKAEEiwfZMJhDkGUjMRXT9+ls7tlWKLNeUC647UbGIPMJi4mw2dxf/kkAQf1x0Y0EQXcQMpD8w+e7wonDKtu3SaCNoqlaZIBLxNM1YAEHMQAmCmMExdinDL/5Zu9O5qbxUJG+BKml4tKn+7YpSOAgSBbVn8/w/X3ocIiWuzzoAAAAASUVORK5CYII="},93314:function(wn){"use strict";wn.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAMwAAACaCAYAAADl9acYAAAAAXNSR0IArs4c6QAAIABJREFUeF7tXQd4U1Ubfs/NaJtO9kzLahFQEJkiUBBFUFFkCCjiAAVFERT5FREQQQXBBcpysWRP2RtkKRsEOphNodCZdDfjnv85CU2TZt2bhABNDw9PmtzvrO+c957xLQIP0pkz1yrQIEmwwcDzHhTj91klEo7jpcG5zetWUJdmRjmPvTM9GI9JgSGvadOoLE9KJJ5kPp2YXLtZdO1kT8ooz2vigCNelvPYezPEG7z0CDAn4pJqPvJA5A3vdcl/S3LEy3Iee29OeIOX5YDx3nh4VFI5YDxin6DM5YARxKb7g6gcMHd+nMoBc+d57LKGhCQ1ZURBCoVL2nKCO8sBZWW50x1TOWDuLP8FlV4OGEFs8glROWB8wmbPKikHjGf882bucsB4k5t3qKxywNwhxrpRbJkGTOx0ehlA3d9e5VEtzA3ulGe55zmg1QOfrCVo34BgQGvr5rLDRl4RRZG+5NjBESBc4FHw1LlrCAuPsCo0JjKi7J5hYqfTXADBq4byCJLf82Nf3kA3OfD9LgKdgeCzZ4CUTJ1VKQFyKQgpmeMSjiKvQC+oplspN/wOMDcBVFv0Bo+KwYJ4VE50H3Jg7j6CWzkEX74A3MrSgTfeKZpSaBCHcAVn/JunBHlFPDR5BkG9LMjPt7mZLOtbskQADea9wqOW9coqiGHlRPcHBxYcJriQQvB9P+v2cqCwWFxgoOJk6JeTNX4HmJMAHv6xP4/6VXw/+OxNx/bM/pIohdUE9VW/VxwjOHiJYO5A6xolpGSpYW3jIW4w/A8wM+h+UHSY2pvHgzV9NXymeor0wPc7Cf7XzWJ/4Nsm+Ly2LzZx+OwZ3yuVbzhNsPEMwcI3rM8wMikHiURi5gNbbQoKrc84zpjkj2eYzQC6f96DomUd305ctrp8tp5gSk/f1utzlFhUOHYthy9f8D1gdpwnWHiEYOVQ6zNM6QM/AY+CImHnF9YtfwTMCgB9P+5G0SHa9xP3bk2gT9cBU3r6Hjp95nBYNcz3gDlwkRhX843vlfS59PmFHfjFzgC/2pJ1nEEnEIpIAG+834Wia2Ox7PJ8wt0twLz7J8Gsl3zf316zCVYPsz5oe85F1yUcu0YwcQPBjlElZyjL8wsrQeyBn+XxK8DETqefgyACFCPe6kjxfDPfT6C7BpilBLMG+L6/A34h+P1VikCZ60nuTYpzN4AxqznjCqPOMZ1RSp9f2OVLYZH1lbOrNvjVlswIGEAKYOyrj1K82NL3E+huAWbEMnbFSn1+Qzd4AcE3fajPZV6X04D3lnHGM4xOawKFJwLLYiD5H2AoCkHwJQMLA42v090CzJjVBBN7UCh8rN3AgDrqCYq6lX3L6RQ1MGQRhwWvA7UrALbnFzCJjOhG+d2WjFCkUYKZPZpSDIv1PWDGrycY34NCahI0+yxN/Ivg3c4UlUN8VqWxok/XEfRrSdG0tm/rzcoHBv7KYc5AILqqLWDcOb/45RmGEFyhFL8/0Yga33y+Tl9uJhjxOEVIoG9rnrqVKSJSRFb0fb3tG1A81sC39TLRSu85HL57Eaii0Bm3oqEKqZXSJaUURUxTU0Tyuy0ZAc5SYCUbxE+6+x4w3+0kGNiWooqP3/Qz9xB0bUTRsLqI2eEFUlbvA9WBJxv5ltdMit9jFocpLwB1InQIkBEQTmLUHStOBoMBOr24K2+/AwwPHOKArS2iKCY9VzKIg34jyMgTv6f1wpwqL8JLHKgUTLHwjZIxZTKg0V2Bzg2tLzvYBYA75xe/25J1mkEnGAzYyXE40KQmMK23uLeLN8b1j0ME7epTxFTzRmnCy/jzXyCqIny+NVryDzFeKfd+xLcrDOMMO8MMfgx45iFrOZA7AstiTvvVoZ91usM3tClHcLpeZWDmAN8DZtlRgkY1KJr5+BC87hQQLAeebCwcZN6gXH6MgG2P+rfyDmD+WLoV8xZugkIRiNh2TTHghcfRoF4tFBZpkXgpGQ81rmdu9puLOLzwMPBYPR1Cgzw/v7CC/WpLxjrc/jtaT2LApRrhwC+DfA+Y9aeI0dKzbT3vTCChk3r7eaBABzzfTGgO79CtPUmM9b7U2jv9bf3kOyjSlihLcoSg93MdkZ2Th227j2Hoq8/inTeeNzZ+xFIOsTHAsw/pAeL5+cUvAdPuG1pVRnArQgEsGex7wGw7RxAgBTo19M4EEjqtD1wEkrPYm15oDu/QbfkPSM0hHsu8du0/gSnfLkFGVrbThjFLynULJ6FOZHUw2RNbyd/qUJLFHZV+ywr9aksWO4Ou0BK8KueRz/bVq++CUuD+RGbhB3R/0LeAOZEEnFIRvPGYb+vdGw+cvU7w3uOe1dv+mfeRk5svCMUfvz8AA3o9jgkbCJQVgPe7lGTz5MDvj4f+VXs/JH1ip1PmAkHy17u8z42bjl4lxjf9C809m0CCZo4FUVwKsDPOJLz0ZTp6Fdh6jtnWe1bvuCm/4q/tRwQ1/b03e2LIwGfw1RaCkADg425AOvPkYCHZd0cG43dbsk4zaDFgWHiHcG85wjBQoEhnMhAzf5r/Jihkf9/+fjXDtDXqGA108+Eqcy0DYAfwMU95NnEFzVgLovibwK8HCab19qze61s24Pf5K7A5KwB5vHM1CblMij9m/Q87rtc1jsek54CMPIBayGD0BgP0ImUw/gwYFiqjllhHGAcvAkuPcijU8cgv0KGgSGv8LNJqweu1MOh14A3ss+S78W+Dzuo3RsPoTy0YgIjQALFz0C36tBzg570EE3p4NnHFVn5TA0zaSPDzy57Vu2bIS6jF67BDHYBHgnVI0kow+6ZjLyZNm9RD+35jkZINfNO7ZIVhEn+e16NQ6157/OqWjJ1h9n1IXoydTi8AeGD+KzxqinCEsfkswfBJC2HQacXOG7v0B+e9CGXVUK+U5aoQdm5iE3eqh296R/XoDEBu0e3/hcz3FzF+Z292trI91Zgav7N2tKrDrrfFTdgTI4dAl61BipZDDXYINRCMvBrusNvBikAMHT8LTM3/pwElK4xMAuQV6uBuKK4yA5hEVfY8SvmmHCETGyjDtzqbQLHf0KMgaCnWEcaW/whGT1mAHHZP6oW09bueaFy3khdKcl0EO+y+v4xgphs2MWxbs+K46bLCDIoi6+9iVLKY4PbTp8UB5t8h/UB53qimz1aJA9lyLExz7H1vyMCnUa15L/x9EfhtkIk/nh74y9ShPz5JnUGA26qFZIdcTofWqR5xxd5Uip1O9wDoJNYRxs4LBB9PXYxUdaHrGSqAYuWUp9GmSQ0BlN4h8cTq8qVfOGgKStpBeAoJb4DEYPrPsU89b/5e/LvEYPubLCIQX06NEtWpfwa/yA4h0FEgqVCK71OCUeTARdLLfbpg9PAXsfGsBBtOA0uHmKpyV0PZsqFl5lo5QaXWgRqNw4pTHiEYGa2M+KX0yMROpxsA9BDrCGNvAsG4GcuQdMt45eJx+nXsk3iyNbOY9k161wOry8/GqZCr1t4GBA/O3T0Nm7gSDl/89IBRHiU0nRk3CgU3knEmT4pZN51rrjI5TN2oGmCOMP44BKx7B8jINemP8ZRCK2Y5LNXAMrMlS0hSpwKw9TRGME+XHf5ekybEfPCInU7/BDBArCOMw5cIPvt+JRJUGqHj7JRu2rsd0P+JGBuanELTTVpwwO3/cnjFxNcTwMz95hquxud5pd+skIEfR6NJA+F2y6o1S3Fj4xpj/X9lBmK7OsDuChMUKMf+v36AXC4Fc4QxYwew/X0gM8/k5VKvN0BvcF9gfc8CJuGWuh4twgoQnJSBzK+nDP+3eLTsBahJSNL8DdD29kaUAFsDSU4vpVJp3FTETqdzAbwl1hHGySSCCTPX41RimlcmzthBrTCsV1Obss5cJ2hWXQupTIoiHUW+1nRYZkcn5kRbTzlIOQq5hBmimfRu2RwoeU4gl5rAFiI3Odpmb/NRK0zXu+zgKzZtWZWK/VvTxWZzSP/EK5HoEivcxsFQWIBzk8caVxmWmMT+g6thNlfMg/p1xYfv9DXSMEcYEzYAu247wnBXQ9myE/fslixRpf6FUgw2N5bgDChmk6Lw33MMqkqlg8JeVKmn8hRjHI0QIdgbiJynGWhiZ9AZoPhgaEeK50Q4wmDCvwmzt+HwGe8EcH67V1N8MshWV4UBpnlNLQID3Lcn5nkKrZ6iUEex4azEqC08di0BW1XDgsTP+2NHsrH6F+/0m9Xetns1PN9b3IWHPi8XyetXIOPoEeg1WbhYKMGK9CCoiiSoWq0SnuvWzqhLVuyoz+wI411mmi3epZI9Lt2zgElIUht9INtpdDJPMUsSGf59NCFFxc8TknI6AoZ9LqbCmj+V4X33zMAEAOMHtaXoJ0KLVpUJjJuzD3v+vSh+xtnJ0ffxaMwY0dHuCtO8pg6BAcK3LI4axCTai/4hRsBM3kww5DGK6o5vYx32S52pw9QxbEi8k6o2DMeoj2q5VVhqNnB29JsI0TP5M6Dj5Gg7dwmkpVZOsyOMtyg4joDyBhRq3d+Osbru3S2ZSp0LCmf+9ZM5CUY3qBWx3LREUy5RpbkKQOl0FAimvrksPAME08Q6wmD74DGz/8H2A/+5NdClM8U2r4VFE7rZBcwjtXQIkHsOGLbSLP7XBJhvdxD0fJiinhs+pVk5n41IBM/UFryQSHggvpxRooovpsgdFwjoD8MQri3ZIso/XYzm9a2FwDfUAFPxX/AaRYSCeCR/KW7fvQuYJE0RQF3vSQh2UQn3bsOaYXEJSZrPADrJBfP5BceCVx+4LO0r1hGG3gC8//Np/LXrmJjxdUhbv1YE9vzU22eAmbOPBRmieNCNFzvP8/jhaxVSL3vn4M9zBJN/bgSZgJsyplZ0KQ24oSZgq8vmE4V4+9hrkNIS8O5uPhbNOz+CprWpWRhd7Ahj9svMYM871rT38pbM/q2XvelHoeU4bpxBgt+Jjr8MAqfi80NXZEW/H1UEuOMIY/zCRPyxZr9XABMSJMP5pbelahYlsjNMi1p6402Pp8lyhWEhIBpVp2hdV1yp6nwgPAhYvzQF/+zOEpfZCfXgz6LRIMrxKsq0B5YcKsL6UxRFvBygelBdLjhZGMCx/RfTKWMCUGZzbAClvJEmtiGH97oEGLdhzBHGjL4UDyvLOmBUmn9AaamAay7GimAXgdErzG1RlX36k9el+PlgsPFtK9YRxtwtNzBl7havTZoLywYhuJRbSCNgauvBlAg9TQYDjyVHOeOWbOVxoEoo0Mn2JttpNZvOcmhfn0KTXoTr8TlITSnCrRSt8TMvV7gj79KVPDskCo+1tb/rZkLScavzcTlTARBrZUu+MB1coHNHZ8rQXEzvH4T+8yWY9DzQrj6QptFDzzRlPUj37JbM5pZMeCfZK5CNgsPt3PlbEny3LwSlHWEIqWLzcTWGfbFaCKkgml0zeyNaaa3QdqcAs+msSa2k+4OCmmYm2nyWQ98W9idabo4eqSla3EopMn6m3mRgKkJ6KlM6dV5Plz418ES3CjZE7Ar9w2X5UGXbv3bmC1NBAiqBEOf34zFhKlzLq40PuxK0i8qFutBzRdd7FjDx1zSDCKELxA2tmZoyyztqqc9tUdDlDAm+2hUCdxxhHIwrwOAJy5EvIkSCsz78Nq4rnmhpfU/BANOytgEydwQmpSpjQro/b68we+JNArzej4jjKouz0q+luDwGAzWCxnI1Kr0qPfpEZTzXv6pVwUzf6+MVBTiX6vi+hxoKQfUF4AJswWZZGF+UCUN2IsYMaINnbcVd4jp0m/qePcNcvJlTldcaUm5vVN3qnKNM1zUcJm4LhTuOMP65qMWYGWtxJcU76jGT3nwUrz1j7ZnCCBilAbLS96RucIFJtv88ZpLD/HMZSEgFXmkrrqANp2yjEYsroYRar6f44I3zxh9qNwnH8FHWNxBLj2ix6F85SKltmGV9lBrAF6RConCuh8fotCn7MSC2Fob3ELkPddDBexYwrL2JSZqtFPQpdwfHUT7mf+zjTWFwxxHG8St6zPhtCw6cZXcSnqdhLzTF2FethZcMMK2UBki9DBgmbz18mYAJbMUk5shiYBsxORzT5ucZ8PHbcUaC4OpBGDe55AbiShqP9/40gHLOt058UZbxXMPJnQuUKK+DLi8DEs0R/PJBLIIVwjULHPXgnt2SsQbHq7JeIJSYFIi8mNgeeeT6cFRQAItFOsL4L5li0do9WLrLriK06FZ2e7QO5v3PwugcgDcBo9MbsPT2CnMxFcYwdiNFuMhlKjcs/J23AMMEoONHJhj5JA2T44tvS2TTo5cX4kKqY5X9YuYacq9CEhzlMngmr8uGQasFLUpDPcUV/DCiKwrcNBwrrvueBsyKFVTSvG32aQraRPRMdJKBWaa+vSrcqNAo1hEGsyD8Y/1R/LzmjFea1EBZAbtn9rIqywiYSB5Siecey3U6A5YeN23JmCCPORIcK8IWhV0ps1Wpj8hzjyPmsDPN5P+ZNCWInMOXPz9g/PtgohZfbpEZ3SE5TxSGXBUkIa61vPnCDLCzFEuGrOMY1q02Xunq2VS6p7dkrKOJ17N7UAPP1PG9moatCoOBJ9go0hEGe+P+vC4e3yw84JX2VAoLxMmFL9sApnUkD4kXAKPV6bHsuNQIGDb5p28nmCwixmZSJnA5jeCZh1x3NzfpKi7M/xlFGRmo0qoNqnfohPAG1mcH1dUCfDP+sqkwjuCreY2Mf478swiJGa6V3Az518EFVgHhXMu0DYUZ4G8Dhuqy0Sg0EfM+8myHf88DhjEzIUmzAaA9XA+ZcIqR60KRp+XgjiOM3Sdu4s0vtyAkSIrgQCmCg6QIYZ+BMuPf7Dfzs9vP2bPi34ICZTh2szJ6NM41HuyrV7f2G8tWmNZRPCSc5yuMJWCYGcjHawm+7Sv8DPPfdSBfS9C5oWveHhg+GFqNyfRBEhgIeWgY2kz7AZysRDh5KT4fP0y5vZ0lwBdzGoO9FwbOK4S6KMDpCkP1eaD6fCNghCSDNhe8zmTsVznrMD59XIGa7Wx194SUVUxzT2/JihuZmJJThWoNZ0HgNY/EH28MRUY+B7GOMFibcrJzkJuXB3Z1zXHc7U9ivNlh0mX2aXpm/7ekLA57E6R44zHm5slWAs0A0ybKpDDoaWLhHJafMK0wLIm1ujx0iYD56WgrQO3ryuplSN6xzajkqM83+RCr1aUrol95A5zUJIT971QO5n2bZPybXYRNntsYvx4guLJrL1qkbsD2moOQHP6wlUskRkt5PfiCm5AEC/exa9DmgNcVoVL2KQy59RsqhAQg6tPvwAU5U1F0zvH7AjCsC4mqnE6UGpitvsfSJ0IIHb8lmNzIlkCsIwxPJzDLf10NrDtJMNyBjzDvAkaH5SdkbgOGOf5oVAN4sKawnl+YOwspf+81EzPIh9VvgCbvfoDAKlVx9JAai+ZcNz4PVBBE9W+M07uPo9/laeBgknSeC22ObbVeQ06QCRzselivuQhZBNveCX+JGAoyEZEThyE3fkIYNa00yh69UPdF6y2wsJ6ZqO6LLZl5pUlW9wHFMkrh6mTokgdf7QzG5UwpxDrCcFmwAAImPPztIMHorva3RkbA1GEhGoRPDkfVMj/EVoARaabM2vliCxj9QQtJ1GDAtU3rcGPXDmjVWWDfWWJbtHp9BiCwRScU6KQICJRg4VEp4g8ex4tXvrFSpGT0JxXNsKraIEgVFaHLuQ5ZSE1wAeLsEioRFZ5PnAVlTok5hiQwCG1+mAupwr1V5r4CDGNkgkrzEij93Znqi5CB/XafAhduySDWEYaQsl3RFGiB6Tsce4NkgGlbx+WtqatqjM9ZlOAVJ0tWmPeWEvzYX3gYcOY9cuKzsLE1EVK5oagQJ7/4DDlXS67gZTVqI6dlXxwNaIXrJ06j75UZkFhoHbNyK7Zqh2E3usHAlCupDgFhtSAJEmdsxsqJqZSHevmJaHPoC6vm1nvpNdTu7t6R+L4DjAk06t7M+tKuDb+QkQTw00EFTl2XQawjDIHFOyVj6h+frSeY4uC2it1MRVXgIeUIpBLTWcjdxMJArDgpN2/JPlpF8PlzwoPDjl9v0vZ1N2k1apz+ehJyVaZzS3HimUMKIoWUWrusqtDqUTR46308/bUKekghU1QBkbq+PbPXPkNuEog8DAOS5+ABzVEzSWj9GDSf+JVbXbovAcNs+oODFYSjsp8oqCm2gcj06z9BOHJNbjTZ7RDt/oQQWa2ZXEw0ZWY1yYzYGdCYuj5L7AJNwgBlvHRgj3mjnfvtx0YlS/Zcp9dj6wU5nmpiysccdLMYm5UECr3HruHwQ3/P+KPLzcWZ6VOQfdG5xWbVzl0R9fJgEI7DjO0Eu85rQSTuH1lbV45HbmYSzl1OR+2im4g0ZEJpyETdAC26zpnv1tDdt4AptulPNJ1rplMKUY6uFh8PxL5LARDrCMMtLtvJJAYw3qqTlcOCw7JYLUoBwWHZWWvBIYJxz3jeAiZxv7R0AZJ3bIetdT1B7T4voebTPc0VMbe2G08Wur26sII+6JyD5x4JQU6+FkfOp+DA2es4fO4GsvO1qFk5BE3qVEaTupWNn9G1K0AmILT1fQ8YxhhKqfTi9ewBoPQjSiFAxAasOh2AbfGBRr0qMY4wPJ86phLuFmBm7ibo2oSioYAL+uPXgKvpBIMe9VavgctnE5C7fyuyz58Bc2oRVKMWaj7XBxVbWGuELjxMsOxIAYjUtaqMo9Z90CkHz7WwXkoNPMXZy2k4ePYGDvx3HVdSTHIjBqCVn7verJQJwBQzjKnzJyRlPcZJuJ6UxwsAHEoP/joXgA3nAiHWEYa3ps7dAgyTeTwSRdHcuecDYzdXHCN4oBrwaH3v9Fqr55GWmY2ICNe3XWtOEvyy17MVZmRsLnq2dH4bdv5qBt6Ytg3d29TDOAFvhjIFmNLDGp+c1UxCycs8xTu3jcrMJDvi5VhxOghiHWF4Z+rcvRXGGBy2EvCYABB8sZHggycpqoa6f+lgya/MXC20RUUIDXV9gGJueb/d5tkZ5r0OOejd2nldm/+5gkkLDuOzQe3QrY1r2+0yDZjiwbp4PUNJeelKSqlZSX3/ZRkWHVNArCMMbwFm/AaC8c9Qt65rPWkDCw7Lggw9YVLhcprWnCCoH5qKGmHUaC4tl8sgl0kgl7FPqWhdt6upuQiWc1AoXN96MSd849ez62/31YPeeSwHL7Z1DpixvxzA7hNJWP9lL1RmjgtcJL8ADOOBSkWDCqiGaQoYlYn+TZJh/hEF3HGE4YqpQp7/sC0PrzRPhYxPg9yQjmCkoTA/HUV5aZDq0wBZBQQ0my6kKFE028/BGODpOYHBYfPy8qDT6aDT6Y2flolpUxeDhznscAWkfxKzEFNDAbncteIk8xIzYinxSBj1VrtcvPSo4y0Zs0Z96qPVqFpBgcXjnhXEx/saMCZfZNmTQCjTmZCAEC0oUglPU3iOnDEYtCcb16nCrDaN6ZxKU1HK0xOEIOrMDSlmHnDPEYZLzhoKAW0aivLSQXRpCKRp4HTpKMxNAy1KN36XE+cRAHjKIb/pckhk7h967bXz70STao47wWHZ9bZebwJOMYDY38Zrb4vEtKwZeAKMq5IJSDKZFOuPpqFr8yqCNBjYDd3AXwwgnPu+2Qa3zccrjzleNY7G3cR7P+7G8+2jMWaAMH8r9zVg4pKynudA1jmawExnjKf8fwRkAwF+j46MuJSoyupEKdkdnyoh0/e65wjDUX1c3MdA3hUEEO+YL6fU+BwRNUQa07tAM7v5OpNM8LoXg8PqDXrotHrojUDSQafXgXmrKZ3i0uV4vKkwiT2TJ/WcqYWBBLp8PzkieK1NIV5r71iO8/2qE1i2O8542GeHfiHpvgbMRVX2RzzlpwnpKCGEOa76i5dynxCeTriaTvpP2RnqliMMhwC9MBaBBaeFNEcQTU7FvpDWeU0QrVCiCynA7jjHip9Cy3FFxxz/mVYi0//sPD2u5wWgXUOBSmkAXvtVj7R819s3R215ta0Orz/m2FVVnwkbkJyWa7xOZtfKQtJ9DZiEpKzXAfKbkI6W0JAiQrDyZjZ5adyWUM4dRxiO6qOqRVCkLRPXHCfUt2gjhLXw7jmGBYdl18Uf+Tg47K4LBCz0uZh6P1oJnL/p/qH/5dYGvNnBfv5rN7PRb9JGVAoLwoavrC1enQ3gfQ2YC1ey6kil3CV2lhE7S7MKuMIxf4UGuuMIw1FdhszjCLk6XmxTHNLrqRT5TVdAJnNfPaR04cbgsPsIJjzrmbqL2E4evgxsPy+uXubM7+Vfmbss9661X2lDMdhuABRgyc4LmLnmJGKbKfHlW8KNyu5rwLBBS0zSbKBuWGOyWCoj1rrnCMPRZNEX5SLk3ACmVih2PjmkV9WYiso1RHrec1I7i1HJ5Ct3Kjiso6rPXgeY9P6bPsKB2uSRWKSlZbjNy3FjhuOTD5kIzja9891OnEhMxVs9muHVbsL5e98DJu5ydkNOxh934enfhmPsUDl0ZRgCZUS0IwyHWzJmqPPfcATorrk9yKUzZld5DTKlKUCQNxLr98jlJhV/X6ZrmcBXmwnmDBReb2R0CxQWmiOaiG5uj+5dsOyPH23yMd2ybmNWg6nJfDv8cbRpLDzO6H0PGMaN2zYyi8Q6/Ru+Ogw6A8FfIh1hOBs5evE7KLJ3ih5cRxluSR5FWLNxXiuPFeRJ6D53G5KWC3y4gmDhG8IAw7Ssa9Vlpsrup8jaNXHh+A6bAnYcu4bPfjto/H3z1D4IZ5JcgalMAIb1NVGlHkwpmQ1QwRf3H6wPRU6Re44wHPHXcGMTQm7+LJD9rsnU+soIaO2ux1z75Yu163fdStcUuYXA6wsIVg4VBpjMLDUeaOrgAOK6OjNFcvwhVCiluzbh90PYdvQqqlcMxuovSjSkhRRbZgDDOnsxOaczpYaFlEKQp4Sxm0KQlidxyxGGI+Zqs+IRfuUDIbwXTJMWsxghIc79CAsu7C6Ndg0lAAAdVklEQVStMEws88Jsgg3DhQEmSXUdLdt55hLJuIKs/g2x7UvcdrJtWPcxq40q/h2bKfGViAM/K69MAYZ16NKlzHCDlHwBwr0FUKdr7efbQpCs8a4jjMKCfITHDQRH3d97l578qmqTUblWczGYcErLzjDT+/hej63HLA5r32YOCl135dyFeHTuahtsynVOa4qvPv8II4aVyLJOXUzFsG9NW+bXuz+EISK9lJc5wBSz69KNzEheLxlFQVnEIrvmUlN3B+NiuncdYWi1OsjjP0KQznvxIDVVh0Bem1kreCcZg8N2pwhzX4juVkN6zebwx+u8oHr/OXoCPXrZBpsSW/GAvj3wy6yvzdl+WnsKi3aYnKFPHtIBnZu79qBpWWeZBUxxJ69coYE6ae4zlOqfIyBPM59uxc++36/AuZvedYTBJNz6+OkIL3AVn1b40N8K6oawRu8Jz+CCcvImgiEdKKoLF7p7pe4B8zl8148XVO+uPQcwYNAwj+tt0iga/+4t0Z4a8MUms9HY0vE9ECnUHc7tlpR5wFhyfA+l0lqq7L4A/QlAhTmHgnA8We51Rxh5FxejcvZSjwe7uIAk/cOo0nqK18qbsYPghebUGO7Dl+n1Pzh89iwvqN71G7fhzbc/9Lh5LALCzr+PQVMkR2w0Na4u566m49J1tVElRqyDEb8CTDH3LyblPMhTw67fjwZVPXTV+44wspP2oVq6IBU3QRPiprYWwtvOE0QrhGj2PoKO0dSoR+fL9O5SDm/H8oLq/XP5Gowc7R2tic9/XIlNyU2wY5RH1gJGVvklYFjHL6k0Ty85EbhxV6KceNsRRuatS6h1fYTX5mK+IQR5TZcbDb+8kVhw2MY1KFrV8UZpwsv4ZC3BCw8LC0o7/7fF+HRCydnDWS1FOSmQh1S363aX5XtlxGTEBfbCxveAIMFCB/s1+i1gGDsGL9Cvvpgm6eVtRxgZGZmomTQYHNUKn01OKHlIcEG5AfWE+eB2WefKY0DVMCDWO0G5XNZXTMDOTu3qUzxuinDhNH0/cx6+nGYrpS+diflxLkhPgFRRGfIQ+wzq9OxA5DUei5VDgYruObw0V+vXgOn8LR3L85jibUcY6iw1KiV9CLnhpqt5Ieg5DxkOV16PRyKFyTBcFbrxDPNZJj44rKtyXT1nvsYaVqeC4k1OmfoDfpjl2ncYb9CiMOOS0edyUOVoEGM4cuvUuGkrBHdbgIVvALWs4++6arLNc78GTOx0yq6efvS2I4zs7ByEJY1HkNYUactZ4kkg9FwE9JIKMEgijH8bjN/Z36bftCQcudLaeKC6q9KEPd8dB2Tliw8OK6x0x1Q/7SWoGkrRt4XrksZN/Brzfl3skpB59S9IN13hy0KrQxZkK+ANCQ1Do7ePYO5AoIF1DFqX5Zcm8G/AfENfB8Fv3naEkZubi6CkbxCou2yc9CZARJgBwcCRVlgZV3KC0aSmAhwnQYBcYowHI5FIwIN9MjPfkt/shcUQPdq3Mxy5DLDwfQNFBod1t77ifMyxuVxCBdX7wZgJWLzUdXh3Zh7NtmSgPCQBIQgIt+8/qtmw3fj5zep4yDoGregu+TVgOk2nTNl8pbcdYeTnFyA9U2MMDhQYIIFcwoGTSGCgnHHLECTnIJVIMG2H1BjywtcCRBYc9shlgrdEBocVPbtKZVjyDwGLLyqk3mHvjsGa9ZtdV0k4FGZdBa/NM/JbUcX+wSy692z8PDoWAjwpOa3TvwEzjXajHLa0b0DxSXfvnA9cj3AJxfe7TG5bq4aKyeU5bWIqsOkswcguvu3zyuPE6IBDSL2DBr+Hrdv3uOxshVqNkZqwH7q8NCNtYKUG4CS2V2G1OozE7ClvoZOHFx3+DZjptD0F/m4RRTHpOd9OHja4c/cRdHuQGh3r+TKxScuMuXz9kmDRmM/dgKB6+wwYgv0HjrhkS6+Bb2PlbzNQpDbZILEtGdualU4VH3gaX0/92ii89HZSVpY7NQllzvOLfYG7W7d7Nqe3a/NGA1hR7WfQZhKKU0yAN62396wkhTKFyUPa1qVo6KXDvNB62YH/2x0EXzzv/cnjrA07zhPsT4SgepkeGdMnc5V++nE6Phz/PTITmEIlhSykOmQK24M/W3mmzV2Lpxp7f5z9BjCPT6P1DRwuetMRhqsBtnzOnFHEVAMeVvp24hbpmata4lHcFzH9LKZl8TJXn4Cgep98+kWcPmtSknSWVi/7BZNmrsc/G2eC1xVAqqgEeYjtVRjhpPji1wN49qE7x+uYyAi7C4E3XvA+XWFU6Vo1ABsP2MzJwvDlMnjTEYarAbZ8zrYoVUKBR+vduUF01J67YUR2OhmYs49g9suu+9uhy/OIT2DyFedpz/bVWLXtFL77/F3o8zMhCQxHQJh9nZ/RU5diYJc7p95QZgCTnKHLppTaHK3Zm3bwYhkqKIDFg72/VLsabLZFYbYhnRu6nkCuyhL7/G4AJuEWwKT9QsyUWz3WDdeSkl1268zR3ThwLgtDBzyFIo0KnDwYgRH2VfYrP/jCzKTdX3pPZ8ll60wE990Kk5yhi6OU2kSaZx5OBy2UIkDqPUcYAnloJDtwkSC7AHj6Dm4THK4wIoPDiumXI1pVJjBqBcGqYa5fEA+16IxbqaabL2cp+dJJ3MqRoGXL1si7cRKcNAiBFe2vIopqDZemn133kqsyvf38fgTMJkops4WxSUOWSFGoI9joRUcYQhl+SgUkZZK7EtBp3DpgsjhzdqHdckiXlQcMWcReTq4Bw+z5mV2/sxQcrMCVuH+NoQof7DwESf/+aTz4B1WyH8tDHl7zhDpxlwA9A4+7alXAfQcYVYb2V1C8YY8N7y6XQl1AsGoojyD3vZK6zWHm9siDmK9u13u3Mgrtb71GbZCbm+e0mbVq1cDJIyavMK99OAvrfp0IfVEOFJWj7earUKUG9mxZ45WuOzqv2Cv8vgNMcqZuCuXpWHudGb1GipvZxKuOMLwyIn5eSGSDR8AiQDtLDzZ+ALu3rTKSzPrzAMa//xK0OSlQVLHZfd8uhuDQ/p1QKDyPiFCmAaNK17KD3g/2mP/ZXxJcyeAw/xUeNT3UZPXzOe7V7tes2wx6vcFpme3btcaa5SbX2gfP56Dnk62NipiKqo7tB1at+BMPPdjE47a6kr1YVnD/rTAZ+r6U8ivscWnyVgnibnL4sT+P+l6yN/F4NMoLQLXIh2zizpRmy9PduuCP+ab3YE4h8OCjzyMzfrvDMwyjm/rVZPR8vofHHC7TgLmRpetoMFC7Ximm75TgVDJn1G96srHrw6jHnC4vQBAHqipd+zvu/2JP/Dhjsrm8zv0n4sSWHx3KYRjh0DcH44NRnt8sl2nApGTROnqD7oq9kZq1T4IjV0Q7/xc06OVE7nPg6DS2bXL+AqvW4hVEdvnEXEna2bW4uGY4pEGO99ZPPv4YZs3y3DNpmQYM42hyujaBAjbXJxvOcFhxggHGI+UD92dGeU67HDg6/SGAd36GqfHoMNTuULJaFGZexem5T4CTOL7ufCCmAf7dv0EQ11MyrWN6WmYq84C5lqEdyVF8J4hTlkQc+URZUSbMG4PowsVlSEhSO3zlBtm5+alR0UOPD+KaZ5fa0aQryM+3oi/d/ocfaYOCQudxQCeOHYUPRrxpLocZk8U0i8Wt1HSHLQ+Qy3Hj0jFjzE1Xya8Bw4IuJWfoFgJ42RWjip8TQlbVqijtbwz3dw8kfwJM23YdkaXWOOX6tMljMWzIQCuawW9/hJVrNznNt37Fr+jc8VGXI+rXgCnmjipT353w/Es80IIALDAIM56QMFBQSpmkLAUEJzmeX1qrSuBfLrnqQwJ/AkyXJ7sh+bo5ALZdLs+cPgmvDuxj9ezPFesxbETJucZexrfeeAnTv3QdQqTMAyY5TdeZEspcjdjXjfDm5Ka4REDerF1F5tos0Ev1+hNger7QGxfiLzrl3PyfpqJfb+sr4vSMTDR4qCOYy15HSVmrJs4ddx3Dp8wDRpWhvQQKYfGjvTGJCS4rK8nvPDhvt9WfADPwlUE4etx5ROpFv/6A55950mYkn+zxMv45etLpCB/esw5NGjm3Vy77gEnX+lyQIua2xFOM+hNghg8fjp17Djhl2aolc9C1i21A1x9//h3jJn3jNO+EsaPwocWFgT3isg+Y8hXGatzv51uyTz75GGvWb3E66Teu+h0dLYIlFRNfuapCs7bOgzG1a9MCW9ezKI+OU5kHTPkZxnrw72fAfP3VFPy+yK42k7mTOzf+idYt7cfB7PBkH6cmzsz/29ULhxAe5thlT5kHjOV0SUzKfp6CLwkMAnIjJjLcyo3bRZV6Kk8xxpyPIjsmqiQgYkKS5jpAzfauBFzP6Miw9Z5urdzN709bsjmzZ+K7mb84ZdWBnavR9MFGdmm+/XE+Jn7pXOy2cP536NnD8UrkX4BRaSZQSieauUnIphhl+LNWoFJpFlFKSy7yCYmLUYabRyBBpdkISp8pzkMImRitDP/c3QnvaT5/AsyyJQswYcq3Tll29O+NaBht/45HyLZs0Et9MOvbSQ7r8DfArKOUPm/BjSkxkRFWl++JKvUuSvF4CSCwO1oZ0aX4e0KSmmn2fWoBmPXRynAf2ymW9MCfALNt8zqMGD3BKWDOHt2BKKVj36+du/XD8VNnHZZRu2YNnD+xqxwwjAOJKvU1SlHiDYGgT4wywspZb8I19QUQlBhPULokJqqCecVJUKl7g8JkocS0zQiSopURUZ6uFO7m9yfA/HtoL14Z8r5TViWe2Y9qVR2HUftp7kJ84iLGjLNVqsysMKcTk2s3i67t0KXIheTsSlJK0yilJRqVFPVjoiIuW59z1Ew5q8T9EsE3McoI85km4Zq6HgjMvn4IIVRPSJVGtcMy3J30nuTzJ8AkXjiJZ3uXRD+2xzdV/BGEhzsO1JlyMxWNHnncqRDzmymfYuhg+9pS3gKMq/kqZE54pBp85sy1CjRIEmww2BfnKoKC23NEsrzk/IKc/PycRjzTzrudQoLCAi3BwH6mlH6eV5Bjjo3HEUIUitALoDBfpfDU0C+/IM+5gEAIB9ygCVGEXXeUrawpX2bcvIx2jzuPHJ167SQCA5yHZevR9w3s+9uxy9mnn+qMZQtYyFPb5Awwaek3BcUBkEg4jhQY8po2jcpyY8gtprAnuV3kTVCpPwKFOcgkIdgbrYzobJntokrTgKfUKjY4B/RvEBlRAjTT1m4Ppehk0fIxMcoI51KxO9Q3f1phaFEmHmhuNWQ2XNWknHMYpq+YePGytXhnpPkYalNGSEgwkuIOQyq11V721grjjeng0QrjqgGJKs0SSqmF/ynyfUxk+CjLfAlJWR0BYmWFKZVyHevVDPvbmk7zHUBHFv9GCPkzWhkuWOPZVVvFPPcnwFQI5lE1qrlD9jA1/bSkUy7Zl52TiwYPdkBhUZFD2u0blqBta9u6/AcwSZrzFNR8PcxR8mqDqHCm2m9O8Uma/gTUKjY4R0h0A2W4lcbfxWuaQTyhC8yAAbkQHRne2OVI3QECfwIME7pWr9sC+QUFdjkZFhqK5MR/BHH5taEfOtUa+GT0u/hk9Ds2ZfkFYG7coIo8gyabUpiDHUqItGl9ZYjV/WJikmYUBbW66A+RhgfXrEmsLJsuqXIfMlD9mZIVBoZgSXhYaTpBI+chkb8BpknLJ6BKvmGXa1WrVMbFs/sFcXT7rv3o8/Iwh7SO1GT8AjCJydmPUp4/ZMGdwmhleCghRG+11VKpp4HiI4vfNDGRETbG4JRSaaJKk8Ni9ZhBw3HtomuHHRY0Wl4kEgsYL1bt9aJcWVyyCnv1HYBz5+x78K9Zswb27NwqqF16gwGxnZ9Eerr9y01mffnv4QNQKIIElceIfKl0y+q7Y2eY+CTNOwS05NqDkKMxyvDWpTmRqNIsppRanEXIhRgHW60ElYb5I21VXAYFGd4wMtxzTwqCh8dE6G+AGfzW2zhwwPLdV8KwunXqYOtm4VpKX0+bjt//cKxs+cu8n9Gh/WOCR6TMACZRlT2PUr7E0Jtw82KUYUNLcyL+mno3ISi5hiFkV4wy/Al7HEtQZc8F5d8q2ZZx86OVYebvgrnsIaG/Aeaj/43Fhr/smxs3bBiDDWtXCubohbg49OzVzyH9kMGv46MPzXc7LsstO4BJ0hyloC3Nkxt4JzoyYnZpDiRcU8eBwOxTlFK6uGFUhVfscSoxSf02BcwrCgE5Fh0Zbl5xXHLXSwRiAXM/ayuztn88/mv8PM/qrsbMyRbNH8KeLVYSAJdcZnKd/87H26Vr3uxB7NtmrR1d5s8w7LxxUZWdQ0Etzhvk0eja4TaSq4Qko4cFs5iYI9y0Bsqw/9kFTLKmLeWp+cxCQAobKMNszkUuR8xDAn8DzLTv5mDy1B/tcq1d25bYus4+mByxedacBRg7cardxxzH4VrcYSt1/zIPmMuqzKZ6ylnatRpCpPlhNWvWtLr5unmTBmdrNbmWnCOUjIqOCv/eHjdv3LihyNUrspmzjOLnUsI3q6esaL498xALgrL7G2B+W7gcI8fYVw5/PPYxrFvO3DcIT2npGWj4cGfo9Vb3P+YCmMSfSf6LU5kHTPy17FcJ4f8o2Y6R89GR4Taepy+pNNEGShOsAYN+0VERDi2WEpM05yioWf5CKfdaw6gws3xG+LC5T+lvgNmwaQcGDravgNm9a2csX2hfpcUZh/u/+i42b9ttl2T40Ffx1eclm4wyD5jEJM131FoqvyRaGW7tuMqo7pIVSynZa8k1Cr5jw8iKVlJ+y+elb9UIyPfRpbQH3IeCsJz+BphDR46jW0+7x0qj4RczABObNm7ZhZdef89uNmaMxozS/GaFSVSp91KKWAtufBQTGTG9NHcuXtf05w3WUn4CNIiOjHAYhTQhST0agFmHjBDsi1ZGlOiYiR05N+j9DTDxiZfRqoOVzZ+Za/369MD8WfbPI85Yq9Pp0fDhTmDumEondo5hZssRtzWgy/QKw1T5L6o0WZbq+pTiiYZRETYWQolJ2R9Q8DMsGRakDFcoCbGvhwEg/pq6CyEwO7MigKaBMrwCU/l3Y+67lcXfAMNC9tVp1M4ur159uQ9mznBsLemMwWMnTMOsueaduxXp0j9m4ZluJpvCMg2YxCR1fQqY9cDYRA4MC6usDCc2r5KEJDVbKdiKUZzUMZERFZwxWaXSVCwE0i1tbFytSm6hwkkmR4Cxp9rPirnfr5WZM75KymYwGGw99Qr1XmmPnefjEtG2k6UxbgmV5TmmbAMmWd2H8jBLsgjBtWhlhN1wuglJmiWAlTbz+Rg7lwOlmZ2oUl+lFGaLS8Khb3TtCLNFprcBUro8fwMM6z/zYpmaZutc/L23X8eUCZaaTeK437l7Pxw/aWu+3Oyhxvh7h2lIyzZgktRTKGCOY0kI1kUrI+xaICUkqZl715LzB8WumKgIu1J+y2FIVKnXUgqzTT8BvoyOjHBsbCFuDF1SiwWMywLvIoEQXTLWvB49+yAhwcpsydjqYUOHYNT79g/vQrq1bPkqTPj8CxtSdo759/DfCA1lLrcdp/te0p+g0myCRWhx5jGmYVQFu5f4CSpNHCg1S/kJIYuileGDXDE6/lrWBOY5xkxHyOYYZbjZq4yr/J4+90fAvPbGWzh8xFaNf8S772D4OzYaT4JZnJubi/Ydu9gNqTF39kx0irX1qGlZuM8Bc+PGZa86k8jVVzwGwOwRQQLD4CCpxq5LkFxDxXOgCC5mAOEwO5jLdHnlUqAP72KA5FcLxqWHSDPNajiCR8tNwlx9xav2sjo6w9ymTeCobjTR3bpjQlaDvLbddjnrptAV5oPRH2PTZlsPmLVrVv1q7+bf57rJSmO2Zu36TM3LLzArmAVWqo+qD/dD96c6Y1T3CiASx/F1JNpku9t9T9rjLO8d01a+Uw0uL/fucCCoSqPvCYGN9JJS8n5B2nn7ejMCmxpUpUl7TsL9HRHdBVWbD0CYspXRNZA+Lz394IQq91SI4HLACBxUfydTVGs8FpROseUDHZafGufRCtNxOh1nyM+YKFVUMqs86fLSaW7y0U1n5j/teahlLw5eOWC8yMyyXJSiWqMhoLBRGiOUvpaXFueRalLsdPongAGMfwUZl6G4sARtcw4e/XrXNhv7qbvN43sCMGcSUyy1Asw8aRpdw+gcw9FzMcwrLktMnnLaEg4oqjV8DpSzsRSjPAYUpF9Y5gmvOs2gbXke069tm8A9l7enaYNQWXCAhKMNK4ZFdl6yxqHfO0/qdDfvPQEYdxtfns93HIj9xpBm0BVUpgYteH0ReL0W1FAEWXDl/w5+VvEhIS1JSbli98VYnLdGjbr7furWZVGYXDawYlAAgmTSMY8vXn1XXGk56k+ZBYw3ViV7TLvXVipXk1DIRHZGwyYxex47nf4LwJ6xXuK+0cR5CDERjdjzWs8IXsvdvJRTGDDt7HXt9QLtmIJbF34QUcQdJS2zgLmjXPPHwmu2UCj0+SxYr1XiCN8l91a8fT19kXwqBv9Xg975fuHZaw9reZN6YLWqlfYe2rGoRO4motxiwIvI4pS0HDDe4qSflDPrqS5aA6UyAtAR23dz3u52gyffH3vj9HYWrcE0Nyl0lCOjC255dnXtrXaWA8ZbnPSTcna/3PsyBa0LILPLkjWVvN3tyk2emp+fljTEVC5N43j0zU2Ps/KM6u06xZRXDhgx3Cqnxe6Xe12gYKFJSF6XJaudK3qJ5xdRVG3ETNvZJcI5nqPPFt6ME629IL5a4TnKNGAopfLkbIRIDAgBj2BQnUJPiUIqQRD7JNSgAIgCBIGUkkCOIIAHH0gIFwBKAkH5QEogJwRyUCKn4OWEcDJCIQeBnFLIACoFAfOgLQX7TnH7O5UCHAdQCQjhQKkEIKbvAGf8m4DAFAqEEGIcCnLbbMH4m3FDAtDbtj70dtADCmb7w/6B8gB4gBiMfxNiAGW/se8sogLRg0IPYvyvA2D6DqIn7DuFlhJoKeV1BJwWhGophZZQaEG4QhBaSClfxIEr/HbR1mZrli2unp/8X6tcHW92bhJdv/6cLRvW/AIiyweHPIMEubXDkEsI0QqfhibK4KqNXqEA86hxOF9X1B1Zl5mDlHsq3dOASU2lIQYZKuv0usrgSCUJIRUBvgLlSQVKEMGBhPOgEaB8OEDCKBBGYAyJEUKBEAI2ocuTOxw4dfoMzp0/j/j4RJw5+x/i4uJZGBKbotq0boWFf9jGwKSAjgDMwUkuBXIIkA3QbBBOw4GoeVANoVATjmYBXJaB0syWrR79SSaX33rhuef7zpr2P/u+ad3pjBfz3BXAUEq5lCzUNhj0dQmhUQBRArQWBalBCGoAtBqlqAZAuM9QLzKlvCjgzaHDceCgydslc+Eqk8nNoSiYIRn7r9PpUCEiAn/vMxvAepN1BYTgFkBuUYoUApoCEBYcWEUpuSaRSK/UqIBkQghbZX2W7jhgKKWylCx9WwOPdoTQhylIE0IRbemzzGe9La+oTHGA+aWjBIkE9Byl5JSEw6EaFaRHCCFs+3lH0h0FTHK6bjIFhoNtm8pTOQd8wgGiJsBPtSvLrAIPe6vqOw8YguGg5YDx1oCVl+OCA4SoCb1PAcO6Zt6SAe0IpQ9TigcBRANwHhSxfGaUc8A1B1g4s0RC8B8l5JQE9/mWzFF/iw/9hOjrGkCiYKDmQz9AaxKCqpSSagAtP/S7njRllIIUEELZgT+VgqZwIDeMh34JUUlAr1FaRg/9noxm8bUy1esq6+1cK5vORiS8/FrZEy7fmbzOrpUBqgGImhCoCUqulaU8zSBSWbpEh/SqVYmVz+0700rxpd7RM4z45ng3hz3BJSREoadQSDkSZKBQgPIKUAeCS8IHMiElE16aBZeAnICTWQouCYHUJMQ0Ci9vCy6JlIJKOJOAkqNMcGkrwCTMFJdYCCwtBZilBZbsO5NWwiQPoaUFlsQouGQSS8oTkzCzRHAJGIWVtLTgEryOAtpiwSUTWjJhJqi14JKnKCKEFoKgEITLlxDk63laICXIh4Hme0Nw6d3RvzOl/R8AdGoXzom1qQAAAABJRU5ErkJggg=="},17030:function(wn,Sr,je){"use strict";je.d(Sr,{ZP:function(){return rA}});const Ie=Number.isFinite||function(l){return typeof l=="number"&&isFinite(l)},mt=Number.isSafeInteger||function(l){return typeof l=="number"&&Math.abs(l)<=Fe},Fe=Number.MAX_SAFE_INTEGER||9007199254740991;let Me=function(l){return l.NETWORK_ERROR="networkError",l.MEDIA_ERROR="mediaError",l.KEY_SYSTEM_ERROR="keySystemError",l.MUX_ERROR="muxError",l.OTHER_ERROR="otherError",l}({}),de=function(l){return l.KEY_SYSTEM_NO_KEYS="keySystemNoKeys",l.KEY_SYSTEM_NO_ACCESS="keySystemNoAccess",l.KEY_SYSTEM_NO_SESSION="keySystemNoSession",l.KEY_SYSTEM_NO_CONFIGURED_LICENSE="keySystemNoConfiguredLicense",l.KEY_SYSTEM_LICENSE_REQUEST_FAILED="keySystemLicenseRequestFailed",l.KEY_SYSTEM_SERVER_CERTIFICATE_REQUEST_FAILED="keySystemServerCertificateRequestFailed",l.KEY_SYSTEM_SERVER_CERTIFICATE_UPDATE_FAILED="keySystemServerCertificateUpdateFailed",l.KEY_SYSTEM_SESSION_UPDATE_FAILED="keySystemSessionUpdateFailed",l.KEY_SYSTEM_STATUS_OUTPUT_RESTRICTED="keySystemStatusOutputRestricted",l.KEY_SYSTEM_STATUS_INTERNAL_ERROR="keySystemStatusInternalError",l.KEY_SYSTEM_DESTROY_MEDIA_KEYS_ERROR="keySystemDestroyMediaKeysError",l.KEY_SYSTEM_DESTROY_CLOSE_SESSION_ERROR="keySystemDestroyCloseSessionError",l.KEY_SYSTEM_DESTROY_REMOVE_SESSION_ERROR="keySystemDestroyRemoveSessionError",l.MANIFEST_LOAD_ERROR="manifestLoadError",l.MANIFEST_LOAD_TIMEOUT="manifestLoadTimeOut",l.MANIFEST_PARSING_ERROR="manifestParsingError",l.MANIFEST_INCOMPATIBLE_CODECS_ERROR="manifestIncompatibleCodecsError",l.LEVEL_EMPTY_ERROR="levelEmptyError",l.LEVEL_LOAD_ERROR="levelLoadError",l.LEVEL_LOAD_TIMEOUT="levelLoadTimeOut",l.LEVEL_PARSING_ERROR="levelParsingError",l.LEVEL_SWITCH_ERROR="levelSwitchError",l.AUDIO_TRACK_LOAD_ERROR="audioTrackLoadError",l.AUDIO_TRACK_LOAD_TIMEOUT="audioTrackLoadTimeOut",l.SUBTITLE_LOAD_ERROR="subtitleTrackLoadError",l.SUBTITLE_TRACK_LOAD_TIMEOUT="subtitleTrackLoadTimeOut",l.FRAG_LOAD_ERROR="fragLoadError",l.FRAG_LOAD_TIMEOUT="fragLoadTimeOut",l.FRAG_DECRYPT_ERROR="fragDecryptError",l.FRAG_PARSING_ERROR="fragParsingError",l.FRAG_GAP="fragGap",l.REMUX_ALLOC_ERROR="remuxAllocError",l.KEY_LOAD_ERROR="keyLoadError",l.KEY_LOAD_TIMEOUT="keyLoadTimeOut",l.BUFFER_ADD_CODEC_ERROR="bufferAddCodecError",l.BUFFER_INCOMPATIBLE_CODECS_ERROR="bufferIncompatibleCodecsError",l.BUFFER_APPEND_ERROR="bufferAppendError",l.BUFFER_APPENDING_ERROR="bufferAppendingError",l.BUFFER_STALLED_ERROR="bufferStalledError",l.BUFFER_FULL_ERROR="bufferFullError",l.BUFFER_SEEK_OVER_HOLE="bufferSeekOverHole",l.BUFFER_NUDGE_ON_STALL="bufferNudgeOnStall",l.ASSET_LIST_LOAD_ERROR="assetListLoadError",l.ASSET_LIST_LOAD_TIMEOUT="assetListLoadTimeout",l.ASSET_LIST_PARSING_ERROR="assetListParsingError",l.INTERSTITIAL_ASSET_ITEM_ERROR="interstitialAssetItemError",l.INTERNAL_EXCEPTION="internalException",l.INTERNAL_ABORTED="aborted",l.ATTACH_MEDIA_ERROR="attachMediaError",l.UNKNOWN="unknown",l}({}),I=function(l){return l.MEDIA_ATTACHING="hlsMediaAttaching",l.MEDIA_ATTACHED="hlsMediaAttached",l.MEDIA_DETACHING="hlsMediaDetaching",l.MEDIA_DETACHED="hlsMediaDetached",l.MEDIA_ENDED="hlsMediaEnded",l.STALL_RESOLVED="hlsStallResolved",l.BUFFER_RESET="hlsBufferReset",l.BUFFER_CODECS="hlsBufferCodecs",l.BUFFER_CREATED="hlsBufferCreated",l.BUFFER_APPENDING="hlsBufferAppending",l.BUFFER_APPENDED="hlsBufferAppended",l.BUFFER_EOS="hlsBufferEos",l.BUFFERED_TO_END="hlsBufferedToEnd",l.BUFFER_FLUSHING="hlsBufferFlushing",l.BUFFER_FLUSHED="hlsBufferFlushed",l.MANIFEST_LOADING="hlsManifestLoading",l.MANIFEST_LOADED="hlsManifestLoaded",l.MANIFEST_PARSED="hlsManifestParsed",l.LEVEL_SWITCHING="hlsLevelSwitching",l.LEVEL_SWITCHED="hlsLevelSwitched",l.LEVEL_LOADING="hlsLevelLoading",l.LEVEL_LOADED="hlsLevelLoaded",l.LEVEL_UPDATED="hlsLevelUpdated",l.LEVEL_PTS_UPDATED="hlsLevelPtsUpdated",l.LEVELS_UPDATED="hlsLevelsUpdated",l.AUDIO_TRACKS_UPDATED="hlsAudioTracksUpdated",l.AUDIO_TRACK_SWITCHING="hlsAudioTrackSwitching",l.AUDIO_TRACK_SWITCHED="hlsAudioTrackSwitched",l.AUDIO_TRACK_LOADING="hlsAudioTrackLoading",l.AUDIO_TRACK_LOADED="hlsAudioTrackLoaded",l.AUDIO_TRACK_UPDATED="hlsAudioTrackUpdated",l.SUBTITLE_TRACKS_UPDATED="hlsSubtitleTracksUpdated",l.SUBTITLE_TRACKS_CLEARED="hlsSubtitleTracksCleared",l.SUBTITLE_TRACK_SWITCH="hlsSubtitleTrackSwitch",l.SUBTITLE_TRACK_LOADING="hlsSubtitleTrackLoading",l.SUBTITLE_TRACK_LOADED="hlsSubtitleTrackLoaded",l.SUBTITLE_TRACK_UPDATED="hlsSubtitleTrackUpdated",l.SUBTITLE_FRAG_PROCESSED="hlsSubtitleFragProcessed",l.CUES_PARSED="hlsCuesParsed",l.NON_NATIVE_TEXT_TRACKS_FOUND="hlsNonNativeTextTracksFound",l.INIT_PTS_FOUND="hlsInitPtsFound",l.FRAG_LOADING="hlsFragLoading",l.FRAG_LOAD_EMERGENCY_ABORTED="hlsFragLoadEmergencyAborted",l.FRAG_LOADED="hlsFragLoaded",l.FRAG_DECRYPTED="hlsFragDecrypted",l.FRAG_PARSING_INIT_SEGMENT="hlsFragParsingInitSegment",l.FRAG_PARSING_USERDATA="hlsFragParsingUserdata",l.FRAG_PARSING_METADATA="hlsFragParsingMetadata",l.FRAG_PARSED="hlsFragParsed",l.FRAG_BUFFERED="hlsFragBuffered",l.FRAG_CHANGED="hlsFragChanged",l.FPS_DROP="hlsFpsDrop",l.FPS_DROP_LEVEL_CAPPING="hlsFpsDropLevelCapping",l.MAX_AUTO_LEVEL_UPDATED="hlsMaxAutoLevelUpdated",l.ERROR="hlsError",l.DESTROYING="hlsDestroying",l.KEY_LOADING="hlsKeyLoading",l.KEY_LOADED="hlsKeyLoaded",l.LIVE_BACK_BUFFER_REACHED="hlsLiveBackBufferReached",l.BACK_BUFFER_REACHED="hlsBackBufferReached",l.STEERING_MANIFEST_LOADED="hlsSteeringManifestLoaded",l.ASSET_LIST_LOADING="hlsAssetListLoading",l.ASSET_LIST_LOADED="hlsAssetListLoaded",l.INTERSTITIALS_UPDATED="hlsInterstitialsUpdated",l.INTERSTITIALS_BUFFERED_TO_BOUNDARY="hlsInterstitialsBufferedToBoundary",l.INTERSTITIAL_ASSET_PLAYER_CREATED="hlsInterstitialAssetPlayerCreated",l.INTERSTITIAL_STARTED="hlsInterstitialStarted",l.INTERSTITIAL_ASSET_STARTED="hlsInterstitialAssetStarted",l.INTERSTITIAL_ASSET_ENDED="hlsInterstitialAssetEnded",l.INTERSTITIAL_ASSET_ERROR="hlsInterstitialAssetError",l.INTERSTITIAL_ENDED="hlsInterstitialEnded",l.INTERSTITIALS_PRIMARY_RESUMED="hlsInterstitialsPrimaryResumed",l.PLAYOUT_LIMIT_REACHED="hlsPlayoutLimitReached",l.EVENT_CUE_ENTER="hlsEventCueEnter",l}({});var Be={MANIFEST:"manifest",LEVEL:"level",AUDIO_TRACK:"audioTrack",SUBTITLE_TRACK:"subtitleTrack"},R={MAIN:"main",AUDIO:"audio",SUBTITLE:"subtitle"};class u{constructor(e,t=0,r=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_=r}sample(e,t){const r=Math.pow(this.alpha_,e);this.estimate_=t*(1-r)+r*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 C{constructor(e,t,r,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_=r,this.minWeight_=.001,this.minDelayMs_=50,this.slow_=new u(e),this.fast_=new u(t),this.defaultTTFB_=i,this.ttfb_=new u(e)}update(e,t){const{slow_:r,fast_:i,ttfb_:o}=this;r.halfLife!==e&&(this.slow_=new u(e,r.getEstimate(),r.getTotalWeight())),i.halfLife!==t&&(this.fast_=new u(t,i.getEstimate(),i.getTotalWeight())),o.halfLife!==e&&(this.ttfb_=new u(e,o.getEstimate(),o.getTotalWeight()))}sample(e,t){e=Math.max(e,this.minDelayMs_);const r=8*t,i=e/1e3,o=r/i;this.fast_.sample(i,o),this.slow_.sample(i,o)}sampleTTFB(e){const t=e/1e3,r=Math.sqrt(2)*Math.exp(-Math.pow(t,2)/2);this.ttfb_.sample(r,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 H(l,e,t){return(e=K(e))in l?Object.defineProperty(l,e,{value:t,enumerable:!0,configurable:!0,writable:!0}):l[e]=t,l}function w(){return w=Object.assign?Object.assign.bind():function(l){for(var e=1;e<arguments.length;e++){var t=arguments[e];for(var r in t)({}).hasOwnProperty.call(t,r)&&(l[r]=t[r])}return l},w.apply(null,arguments)}function L(l,e){var t=Object.keys(l);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(l);e&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(l,i).enumerable})),t.push.apply(t,r)}return t}function B(l){for(var e=1;e<arguments.length;e++){var t=arguments[e]!=null?arguments[e]:{};e%2?L(Object(t),!0).forEach(function(r){H(l,r,t[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(l,Object.getOwnPropertyDescriptors(t)):L(Object(t)).forEach(function(r){Object.defineProperty(l,r,Object.getOwnPropertyDescriptor(t,r))})}return l}function k(l,e){if(typeof l!="object"||!l)return l;var t=l[Symbol.toPrimitive];if(t!==void 0){var r=t.call(l,e);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(l)}function K(l){var e=k(l,"string");return typeof e=="symbol"?e:e+""}class V{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 r=`[${e}]:`;this.trace=P,this.debug=t.debug.bind(null,r),this.log=t.log.bind(null,r),this.warn=t.warn.bind(null,r),this.info=t.info.bind(null,r),this.error=t.error.bind(null,r)}}const P=function(){},G={trace:P,debug:P,log:P,warn:P,info:P,error:P};function Z(){return w({},G)}function se(l,e){const t=self.console[l];return t?t.bind(self.console,`${e?"["+e+"] ":""}[${l}] >`):P}function oe(l,e,t){return e[l]?e[l].bind(e):se(l,t)}const De=Z();function He(l,e,t){const r=Z();if(typeof console=="object"&&l===!0||typeof l=="object"){const i=["debug","log","info","warn","error"];i.forEach(o=>{r[o]=oe(o,l,t)});try{r.log(`Debug logs enabled for "${e}" in hls.js version 1.6.14`)}catch(o){return Z()}i.forEach(o=>{De[o]=oe(o,l)})}else w(De,r);return r}const Qe=De;function Ue(l=!0){return typeof self=="undefined"?void 0:(l||!self.MediaSource)&&self.ManagedMediaSource||self.MediaSource||self.WebKitMediaSource}function qe(l){return typeof self!="undefined"&&l===self.ManagedMediaSource}function st(l,e){const t=Object.keys(l),r=Object.keys(e),i=t.length,o=r.length;return!i||!o||i===o&&!t.some(A=>r.indexOf(A)===-1)}function Pe(l,e=!1){if(typeof TextDecoder!="undefined"){const g=new TextDecoder("utf-8").decode(l);if(e){const F=g.indexOf("\0");return F!==-1?g.substring(0,F):g}return g.replace(/\0/g,"")}const t=l.length;let r,i,o,A="",h=0;for(;h<t;){if(r=l[h++],r===0&&e)return A;if(r===0||r===3)continue;switch(r>>4){case 0:case 1:case 2:case 3:case 4:case 5:case 6:case 7:A+=String.fromCharCode(r);break;case 12:case 13:i=l[h++],A+=String.fromCharCode((r&31)<<6|i&63);break;case 14:i=l[h++],o=l[h++],A+=String.fromCharCode((r&15)<<12|(i&63)<<6|(o&63)<<0);break}}return A}function pe(l){let e="";for(let t=0;t<l.length;t++){let r=l[t].toString(16);r.length<2&&(r="0"+r),e+=r}return e}function M(l){return Uint8Array.from(l.replace(/^0x/,"").replace(/([\da-fA-F]{2}) ?/g,"0x$1 ").replace(/ +$/,"").split(" ")).buffer}function ye(l){return l&&l.__esModule&&Object.prototype.hasOwnProperty.call(l,"default")?l.default:l}var Te={exports:{}},me;function xe(){return me||(me=1,function(l,e){(function(t){var r=/^(?=((?:[a-zA-Z0-9+\-.]+:)?))\1(?=((?:\/\/[^\/?#]*)?))\2(?=((?:(?:[^?#\/]*\/)*[^;?#\/]*)?))\3((?:;[^?#]*)?)(\?[^#]*)?(#[^]*)?$/,i=/^(?=([^\/?#]*))\1([^]*)$/,o=/(?:\/|^)\.(?=\/)/g,A=/(?:\/|^)\.\.\/(?!\.\.\/)[^\/]*(?=\/)/g,h={buildAbsoluteURL:function(y,g,F){if(F=F||{},y=y.trim(),g=g.trim(),!g){if(!F.alwaysNormalize)return y;var N=h.parseURL(y);if(!N)throw new Error("Error trying to parse base URL.");return N.path=h.normalizePath(N.path),h.buildURLFromParts(N)}var q=h.parseURL(g);if(!q)throw new Error("Error trying to parse relative URL.");if(q.scheme)return F.alwaysNormalize?(q.path=h.normalizePath(q.path),h.buildURLFromParts(q)):g;var Ae=h.parseURL(y);if(!Ae)throw new Error("Error trying to parse base URL.");if(!Ae.netLoc&&Ae.path&&Ae.path[0]!=="/"){var ue=i.exec(Ae.path);Ae.netLoc=ue[1],Ae.path=ue[2]}Ae.netLoc&&!Ae.path&&(Ae.path="/");var Re={scheme:Ae.scheme,netLoc:q.netLoc,path:null,params:q.params,query:q.query,fragment:q.fragment};if(!q.netLoc&&(Re.netLoc=Ae.netLoc,q.path[0]!=="/"))if(!q.path)Re.path=Ae.path,q.params||(Re.params=Ae.params,q.query||(Re.query=Ae.query));else{var ke=Ae.path,it=ke.substring(0,ke.lastIndexOf("/")+1)+q.path;Re.path=h.normalizePath(it)}return Re.path===null&&(Re.path=F.alwaysNormalize?h.normalizePath(q.path):q.path),h.buildURLFromParts(Re)},parseURL:function(y){var g=r.exec(y);return g?{scheme:g[1]||"",netLoc:g[2]||"",path:g[3]||"",params:g[4]||"",query:g[5]||"",fragment:g[6]||""}:null},normalizePath:function(y){for(y=y.split("").reverse().join("").replace(o,"");y.length!==(y=y.replace(A,"")).length;);return y.split("").reverse().join("")},buildURLFromParts:function(y){return y.scheme+y.netLoc+y.path+y.params+y.query+y.fragment}};l.exports=h})()}(Te)),Te.exports}var z=xe();class j{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 ee={AUDIO:"audio",VIDEO:"video",AUDIOVIDEO:"audiovideo"};class _e{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,Yr(this,"stats")}setByteRange(e,t){const r=e.split("@",2);let i;r.length===1?i=(t==null?void 0:t.byteRangeEndOffset)||0:i=parseInt(r[1]),this._byteRange=[i,parseInt(r[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={[ee.AUDIO]:null,[ee.VIDEO]:null,[ee.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 j),this._stats}set stats(e){this._stats=e}get url(){return!this._url&&this.baseurl&&this.relurl&&(this._url=z.buildAbsoluteURL(this.baseurl,this.relurl,{alwaysNormalize:!0})),this._url||""}set url(e){this._url=e}clearElementaryStreamInfo(){const{elementaryStreams:e}=this;e[ee.AUDIO]=null,e[ee.VIDEO]=null,e[ee.AUDIOVIDEO]=null}}function ut(l){return l.sn!=="initSegment"}class Ft extends _e{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(Ie(e)&&Ie(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 r=Object.keys(t);if(r.length===1){const i=this._decryptdata=t[r[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=Ie(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 r=Object.keys(this.levelkeys),i=r.length;if(i>1||i===1&&(t=this.levelkeys[r[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(!Ie(e)){this._programDateTime=this.rawProgramDateTime=null;return}this._programDateTime=e}get ref(){return ut(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 r;const i=t[e];i&&!((r=this._decryptdata)!=null&&r.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,r,i,o,A=!1){const{elementaryStreams:h}=this,y=h[e];if(!y){h[e]={startPTS:t,endPTS:r,startDTS:i,endDTS:o,partial:A};return}y.startPTS=Math.min(y.startPTS,t),y.endPTS=Math.max(y.endPTS,r),y.startDTS=Math.min(y.startDTS,i),y.endDTS=Math.max(y.endDTS,o)}}class Vt extends _e{constructor(e,t,r,i,o){super(r),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 A=e.enumeratedString("BYTERANGE");A&&this.setByteRange(A,o),o&&(this.fragOffset=o.fragOffset+o.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 vr(l,e){const t=Object.getPrototypeOf(l);if(t){const r=Object.getOwnPropertyDescriptor(t,e);return r||vr(t,e)}}function Yr(l,e){const t=vr(l,e);t&&(t.enumerable=!0,Object.defineProperty(l,e,t))}const wr=Math.pow(2,32)-1,fr=[].push,dn={video:1,audio:2,id3:3,text:4};function ar(l){return String.fromCharCode.apply(null,l)}function Vr(l,e){const t=l[e]<<8|l[e+1];return t<0?65536+t:t}function ur(l,e){const t=At(l,e);return t<0?4294967296+t:t}function ve(l,e){let t=ur(l,e);return t*=Math.pow(2,32),t+=ur(l,e+4),t}function At(l,e){return l[e]<<24|l[e+1]<<16|l[e+2]<<8|l[e+3]}function le(l){const e=l.byteLength;for(let t=0;t<e;){const r=ur(l,t);if(r>8&&l[t+4]===109&&l[t+5]===111&&l[t+6]===111&&l[t+7]===102)return!0;t=r>1?t+r:e}return!1}function _(l,e){const t=[];if(!e.length)return t;const r=l.byteLength;for(let i=0;i<r;){const o=ur(l,i),A=ar(l.subarray(i+4,i+8)),h=o>1?i+o:r;if(A===e[0])if(e.length===1)t.push(l.subarray(i+8,h));else{const y=_(l.subarray(i+8,h),e.slice(1));y.length&&fr.apply(t,y)}i=h}return t}function D(l){const e=[],t=l[0];let r=8;const i=ur(l,r);r+=4;let o=0,A=0;t===0?(o=ur(l,r),A=ur(l,r+4),r+=8):(o=ve(l,r),A=ve(l,r+8),r+=16),r+=2;let h=l.length+A;const y=Vr(l,r);r+=2;for(let g=0;g<y;g++){let F=r;const N=ur(l,F);F+=4;const q=N&2147483647;if((N&2147483648)>>>31===1)return Qe.warn("SIDX has hierarchical references (not supported)"),null;const ue=ur(l,F);F+=4,e.push({referenceSize:q,subsegmentDuration:ue,info:{duration:ue/i,start:h,end:h+q-1}}),h+=q,F+=4,r=F}return{earliestPresentationTime:o,timescale:i,version:t,referencesCount:y,references:e}}function ae(l){const e=[],t=_(l,["moov","trak"]);for(let i=0;i<t.length;i++){const o=t[i],A=_(o,["tkhd"])[0];if(A){let h=A[0];const y=ur(A,h===0?12:20),g=_(o,["mdia","mdhd"])[0];if(g){h=g[0];const F=ur(g,h===0?12:20),N=_(o,["mdia","hdlr"])[0];if(N){const q=ar(N.subarray(8,12)),Ae={soun:ee.AUDIO,vide:ee.VIDEO}[q],ue=_(o,["mdia","minf","stbl","stsd"])[0],Re=We(ue);Ae?(e[y]={timescale:F,type:Ae,stsd:Re},e[Ae]=B({timescale:F,id:y},Re)):e[y]={timescale:F,type:q,stsd:Re}}}}}return _(l,["moov","mvex","trex"]).forEach(i=>{const o=ur(i,4),A=e[o];A&&(A.default={duration:ur(i,12),flags:ur(i,20)})}),e}function We(l){const e=l.subarray(8),t=e.subarray(86),r=ar(e.subarray(4,8));let i=r,o;const A=r==="enca"||r==="encv";if(A){const g=_(e,[r])[0].subarray(r==="enca"?28:78);_(g,["sinf"]).forEach(N=>{const q=_(N,["schm"])[0];if(q){const Ae=ar(q.subarray(4,8));if(Ae==="cbcs"||Ae==="cenc"){const ue=_(N,["frma"])[0];ue&&(i=ar(ue))}}})}const h=i;switch(i){case"avc1":case"avc2":case"avc3":case"avc4":{const y=_(t,["avcC"])[0];y&&y.length>3&&(i+="."+xt(y[1])+xt(y[2])+xt(y[3]),o=ge(h==="avc1"?"dva1":"dvav",t));break}case"mp4a":{const y=_(e,[r])[0],g=_(y.subarray(28),["esds"])[0];if(g&&g.length>7){let F=4;if(g[F++]!==3)break;F=gt(g,F),F+=2;const N=g[F++];if(N&128&&(F+=2),N&64&&(F+=g[F++]),g[F++]!==4)break;F=gt(g,F);const q=g[F++];if(q===64)i+="."+xt(q);else break;if(F+=12,g[F++]!==5)break;F=gt(g,F);const Ae=g[F++];let ue=(Ae&248)>>3;ue===31&&(ue+=1+((Ae&7)<<3)+((g[F]&224)>>5)),i+="."+ue}break}case"hvc1":case"hev1":{const y=_(t,["hvcC"])[0];if(y&&y.length>12){const g=y[1],F=["","A","B","C"][g>>6],N=g&31,q=ur(y,2),Ae=(g&32)>>5?"H":"L",ue=y[12],Re=y.subarray(6,12);i+="."+F+N,i+="."+Se(q).toString(16).toUpperCase(),i+="."+Ae+ue;let ke="";for(let it=Re.length;it--;){const ft=Re[it];(ft||ke)&&(ke="."+ft.toString(16).toUpperCase()+ke)}i+=ke}o=ge(h=="hev1"?"dvhe":"dvh1",t);break}case"dvh1":case"dvhe":case"dvav":case"dva1":case"dav1":{i=ge(i,t)||i;break}case"vp09":{const y=_(t,["vpcC"])[0];if(y&&y.length>6){const g=y[4],F=y[5],N=y[6]>>4&15;i+="."+Et(g)+"."+Et(F)+"."+Et(N)}break}case"av01":{const y=_(t,["av1C"])[0];if(y&&y.length>2){const g=y[1]>>>5,F=y[1]&31,N=y[2]>>>7?"H":"M",q=(y[2]&64)>>6,Ae=(y[2]&32)>>5,ue=g===2&&q?Ae?12:10:q?10:8,Re=(y[2]&16)>>4,ke=(y[2]&8)>>3,it=(y[2]&4)>>2,ft=y[2]&3;i+="."+g+"."+Et(F)+N+"."+Et(ue)+"."+Re+"."+ke+it+ft+"."+Et(1)+"."+Et(1)+"."+Et(1)+"."+0,o=ge("dav1",t)}break}}return{codec:i,encrypted:A,supplemental:o}}function ge(l,e){const t=_(e,["dvvC"]),r=t.length?t[0]:_(e,["dvcC"])[0];if(r){const i=r[2]>>1&127,o=r[2]<<5&32|r[3]>>3&31;return l+"."+Et(i)+"."+Et(o)}}function Se(l){let e=0;for(let t=0;t<32;t++)e|=(l>>t&1)<<31-t;return e>>>0}function gt(l,e){const t=e+5;for(;l[e++]&128&&e<t;);return e}function xt(l){return("0"+l.toString(16).toUpperCase()).slice(-2)}function Et(l){return(l<10?"0":"")+l}function nr(l,e){if(!l||!e)return;const t=e.keyId;t&&e.isCommonEncryption&&Tr(l,(r,i)=>{const o=r.subarray(8,24);o.some(A=>A!==0)||(Qe.log(`[eme] Patching keyId in 'enc${i?"a":"v"}>sinf>>tenc' box: ${pe(o)} -> ${pe(t)}`),r.set(t,8))})}function xr(l){const e=[];return Tr(l,t=>e.push(t.subarray(8,24))),e}function Tr(l,e){_(l,["moov","trak"]).forEach(r=>{const i=_(r,["mdia","minf","stbl","stsd"])[0];if(!i)return;const o=i.subarray(8);let A=_(o,["enca"]);const h=A.length>0;h||(A=_(o,["encv"])),A.forEach(y=>{const g=h?y.subarray(28):y.subarray(78);_(g,["sinf"]).forEach(N=>{const q=Bt(N);q&&e(q,h)})})})}function Bt(l){const e=_(l,["schm"])[0];if(e){const t=ar(e.subarray(4,8));if(t==="cbcs"||t==="cenc"){const r=_(l,["schi","tenc"])[0];if(r)return r}}}function Mt(l,e,t){const r={},i=_(l,["moof","traf"]);for(let o=0;o<i.length;o++){const A=i[o],h=_(A,["tfhd"])[0],y=ur(h,4),g=e[y];if(!g)continue;r[y]||(r[y]={start:NaN,duration:0,sampleCount:0,timescale:g.timescale,type:g.type});const F=r[y],N=_(A,["tfdt"])[0];if(N){const _t=N[0];let zt=ur(N,4);_t===1&&(zt===wr?t.warn("[mp4-demuxer]: Ignoring assumed invalid signed 64-bit track fragment decode time"):(zt*=wr+1,zt+=ur(N,8))),Ie(zt)&&(!Ie(F.start)||zt<F.start)&&(F.start=zt)}const q=g.default,Ae=ur(h,0)|(q==null?void 0:q.flags);let ue=(q==null?void 0:q.duration)||0;Ae&8&&(Ae&2?ue=ur(h,12):ue=ur(h,8));const Re=_(A,["trun"]);let ke=F.start||0,it=0,ft=ue;for(let _t=0;_t<Re.length;_t++){const zt=Re[_t],ir=ur(zt,4),Nr=F.sampleCount;F.sampleCount+=ir;const or=zt[3]&1,Cr=zt[3]&4,br=zt[2]&1,pr=zt[2]&2,qr=zt[2]&4,Cn=zt[2]&8;let Yn=8,ii=ir;for(or&&(Yn+=4),Cr&&ir&&(!(zt[Yn+1]&1)&&F.keyFrameIndex===void 0&&(F.keyFrameIndex=Nr),Yn+=4,br?(ft=ur(zt,Yn),Yn+=4):ft=ue,pr&&(Yn+=4),Cn&&(Yn+=4),ke+=ft,it+=ft,ii--);ii--;)br?(ft=ur(zt,Yn),Yn+=4):ft=ue,pr&&(Yn+=4),qr&&(zt[Yn+1]&1||F.keyFrameIndex===void 0&&(F.keyFrameIndex=F.sampleCount-(ii+1),F.keyFrameStart=ke),Yn+=4),Cn&&(Yn+=4),ke+=ft,it+=ft;!it&&ue&&(it+=ue*ir)}F.duration+=it}if(!Object.keys(r).some(o=>r[o].duration)){let o=1/0,A=0;const h=_(l,["sidx"]);for(let y=0;y<h.length;y++){const g=D(h[y]);if(g!=null&&g.references){o=Math.min(o,g.earliestPresentationTime/g.timescale);const F=g.references.reduce((N,q)=>N+q.info.duration||0,0);A=Math.max(A,F+g.earliestPresentationTime/g.timescale)}}A&&Ie(A)&&Object.keys(r).forEach(y=>{r[y].duration||(r[y].duration=A*r[y].timescale-r[y].start)})}return r}function Wt(l){const e={valid:null,remainder:null},t=_(l,["moof"]);if(t.length<2)return e.remainder=l,e;const r=t[t.length-1];return e.valid=l.slice(0,r.byteOffset-8),e.remainder=l.slice(r.byteOffset-8),e}function cr(l,e){const t=new Uint8Array(l.length+e.length);return t.set(l),t.set(e,l.length),t}function qt(l,e){const t=[],r=e.samples,i=e.timescale,o=e.id;let A=!1;return _(r,["moof"]).map(y=>{const g=y.byteOffset-8;_(y,["traf"]).map(N=>{const q=_(N,["tfdt"]).map(Ae=>{const ue=Ae[0];let Re=ur(Ae,4);return ue===1&&(Re*=Math.pow(2,32),Re+=ur(Ae,8)),Re/i})[0];return q!==void 0&&(l=q),_(N,["tfhd"]).map(Ae=>{const ue=ur(Ae,4),Re=ur(Ae,0)&16777215,ke=(Re&1)!==0,it=(Re&2)!==0,ft=(Re&8)!==0;let _t=0;const zt=(Re&16)!==0;let ir=0;const Nr=(Re&32)!==0;let or=8;ue===o&&(ke&&(or+=8),it&&(or+=4),ft&&(_t=ur(Ae,or),or+=4),zt&&(ir=ur(Ae,or),or+=4),Nr&&(or+=4),e.type==="video"&&(A=kt(e.codec)),_(N,["trun"]).map(Cr=>{const br=Cr[0],pr=ur(Cr,0)&16777215,qr=(pr&1)!==0;let Cn=0;const Yn=(pr&4)!==0,ii=(pr&256)!==0;let On=0;const Tn=(pr&512)!==0;let qn=0;const Mn=(pr&1024)!==0,ei=(pr&2048)!==0;let Di=0;const Dn=ur(Cr,4);let kn=8;qr&&(Cn=ur(Cr,kn),kn+=4),Yn&&(kn+=4);let os=Cn+g;for(let Vs=0;Vs<Dn;Vs++){if(ii?(On=ur(Cr,kn),kn+=4):On=_t,Tn?(qn=ur(Cr,kn),kn+=4):qn=ir,Mn&&(kn+=4),ei&&(br===0?Di=ur(Cr,kn):Di=At(Cr,kn),kn+=4),e.type===ee.VIDEO){let cs=0;for(;cs<qn;){const _s=ur(r,os);if(os+=4,Pr(A,r[os])){const EA=r.subarray(os,os+_s);$t(EA,A?2:1,l+Di/i,t)}os+=_s,cs+=_s+4}}l+=On/i}}))})})}),t}function kt(l){if(!l)return!1;const e=l.substring(0,4);return e==="hvc1"||e==="hev1"||e==="dvh1"||e==="dvhe"}function Pr(l,e){if(l){const t=e>>1&63;return t===39||t===40}else return(e&31)===6}function $t(l,e,t,r){const i=yr(l);let o=0;o+=e;let A=0,h=0,y=0;for(;o<i.length;){A=0;do{if(o>=i.length)break;y=i[o++],A+=y}while(y===255);h=0;do{if(o>=i.length)break;y=i[o++],h+=y}while(y===255);const g=i.length-o;let F=o;if(h<g)o+=h;else if(h>g){Qe.error(`Malformed SEI payload. ${h} is too small, only ${g} bytes left to parse.`);break}if(A===4){if(i[F++]===181){const q=Vr(i,F);if(F+=2,q===49){const Ae=ur(i,F);if(F+=4,Ae===1195456820){const ue=i[F++];if(ue===3){const Re=i[F++],ke=31&Re,it=64&Re,ft=it?2+ke*3:0,_t=new Uint8Array(ft);if(it){_t[0]=Re;for(let zt=1;zt<ft;zt++)_t[zt]=i[F++]}r.push({type:ue,payloadType:A,pts:t,bytes:_t})}}}}}else if(A===5&&h>16){const N=[];for(let ue=0;ue<16;ue++){const Re=i[F++].toString(16);N.push(Re.length==1?"0"+Re:Re),(ue===3||ue===5||ue===7||ue===9)&&N.push("-")}const q=h-16,Ae=new Uint8Array(q);for(let ue=0;ue<q;ue++)Ae[ue]=i[F++];r.push({payloadType:A,pts:t,uuid:N.join(""),userData:Pe(Ae),userDataBytes:Ae})}}}function yr(l){const e=l.byteLength,t=[];let r=1;for(;r<e-2;)l[r]===0&&l[r+1]===0&&l[r+2]===3?(t.push(r+2),r+=2):r++;if(t.length===0)return l;const i=e-t.length,o=new Uint8Array(i);let A=0;for(r=0;r<i;A++,r++)A===t[0]&&(A++,t.shift()),o[r]=l[A];return o}function An(l){const e=l[0];let t="",r="",i=0,o=0,A=0,h=0,y=0,g=0;if(e===0){for(;ar(l.subarray(g,g+1))!=="\0";)t+=ar(l.subarray(g,g+1)),g+=1;for(t+=ar(l.subarray(g,g+1)),g+=1;ar(l.subarray(g,g+1))!=="\0";)r+=ar(l.subarray(g,g+1)),g+=1;r+=ar(l.subarray(g,g+1)),g+=1,i=ur(l,12),o=ur(l,16),h=ur(l,20),y=ur(l,24),g=28}else if(e===1){g+=4,i=ur(l,g),g+=4;const N=ur(l,g);g+=4;const q=ur(l,g);for(g+=4,A=Jg(2,32)*N+q,mt(A)||(A=Number.MAX_SAFE_INTEGER,Qe.warn("Presentation time exceeds safe integer limit and wrapped to max safe integer in parsing emsg box")),h=ur(l,g),g+=4,y=ur(l,g),g+=4;ar(l.subarray(g,g+1))!=="\0";)t+=ar(l.subarray(g,g+1)),g+=1;for(t+=ar(l.subarray(g,g+1)),g+=1;ar(l.subarray(g,g+1))!=="\0";)r+=ar(l.subarray(g,g+1)),g+=1;r+=ar(l.subarray(g,g+1)),g+=1}const F=l.subarray(g,l.byteLength);return{schemeIdUri:t,value:r,timeScale:i,presentationTime:A,presentationTimeDelta:o,eventDuration:h,id:y,payload:F}}function Y(l,...e){const t=e.length;let r=8,i=t;for(;i--;)r+=e[i].byteLength;const o=new Uint8Array(r);for(o[0]=r>>24&255,o[1]=r>>16&255,o[2]=r>>8&255,o[3]=r&255,o.set(l,4),i=0,r=8;i<t;i++)o.set(e[i],r),r+=e[i].byteLength;return o}function ie(l,e,t){if(l.byteLength!==16)throw new RangeError("Invalid system id");let r,i;r=0,i=new Uint8Array;let o;r>0?(o=new Uint8Array(4),e.length>0&&new DataView(o.buffer).setUint32(0,e.length,!1)):o=new Uint8Array;const A=new Uint8Array(4);return t.byteLength>0&&new DataView(A.buffer).setUint32(0,t.byteLength,!1),Y([112,115,115,104],new Uint8Array([r,0,0,0]),l,o,i,A,t)}function Ot(l){const e=[];if(l instanceof ArrayBuffer){const t=l.byteLength;let r=0;for(;r+32<t;){const i=new DataView(l,r),o=fe(i);e.push(o),r+=o.size}}return e}function fe(l){const e=l.getUint32(0),t=l.byteOffset,r=l.byteLength;if(r<e)return{offset:t,size:r};if(l.getUint32(4)!==1886614376)return{offset:t,size:e};const o=l.getUint32(8)>>>24;if(o!==0&&o!==1)return{offset:t,size:e};const A=l.buffer,h=pe(new Uint8Array(A,t+12,16));let y=null,g=null,F=0;if(o===0)F=28;else{const q=l.getUint32(28);if(!q||r<32+q*16)return{offset:t,size:e};y=[];for(let Ae=0;Ae<q;Ae++)y.push(new Uint8Array(A,t+32+Ae*16,16));F=32+q*16}if(!F)return{offset:t,size:e};const N=l.getUint32(F);return e-32<N?{offset:t,size:e}:(g=new Uint8Array(A,t+F+4,N),{version:o,systemId:h,kids:y,data:g,offset:t,size:e})}const Ke=()=>/\(Windows.+Firefox\//i.test(navigator.userAgent),Wr={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 ct(l,e){const t=Wr[e];return!!t&&!!t[l.slice(0,4)]}function Dt(l,e,t=!0){return!l.split(",").some(r=>!Kt(r,e,t))}function Kt(l,e,t=!0){var r;const i=Ue(t);return(r=i==null?void 0:i.isTypeSupported(Oe(l,e)))!=null?r:!1}function Oe(l,e){return`${e}/mp4;codecs=${l}`}function Ve(l){if(l){const e=l.substring(0,4);return Wr.video[e]}return 2}function at(l){const e=Ke();return l.split(",").reduce((t,r)=>{const o=e&&kt(r)?9:Wr.video[r];return o?(o*2+t)/(t?3:2):(Wr.audio[r]+t)/(t?2:1)},0)}const Pt={};function Le(l,e=!0){if(Pt[l])return Pt[l];const t={flac:["flac","fLaC","FLAC"],opus:["opus","Opus"],"mp4a.40.34":["mp3"]}[l];for(let i=0;i<t.length;i++){var r;if(Kt(t[i],"audio",e))return Pt[l]=t[i],t[i];if(t[i]==="mp3"&&(r=Ue(e))!=null&&r.isTypeSupported("audio/mpeg"))return""}return l}const Kr=/flac|opus|mp4a\.40\.34/i;function ht(l,e=!0){return l.replace(Kr,t=>Le(t.toLowerCase(),e))}function Sn(l,e){const t=[];if(l){const r=l.split(",");for(let i=0;i<r.length;i++)ct(r[i],"video")||t.push(r[i])}return e&&t.push(e),t.join(",")}function Bn(l,e){if(l&&(l.length>4||["ac-3","ec-3","alac","fLaC","Opus"].indexOf(l)!==-1)&&(ri(l,"audio")||ri(l,"video")))return l;if(e){const t=e.split(",");if(t.length>1){if(l){for(let r=t.length;r--;)if(t[r].substring(0,4)===l.substring(0,4))return t[r]}return t[0]}}return e||l}function ri(l,e){return ct(l,e)&&Kt(l,e)}function ws(l){const e=l.split(",");for(let t=0;t<e.length;t++){const r=e[t].split(".");r.length>2&&r[0]==="avc1"&&(e[t]=`avc1.${parseInt(r[1]).toString(16)}${("000"+parseInt(r[2]).toString(16)).slice(-4)}`)}return e.join(",")}function Ci(l){if(l.startsWith("av01.")){const e=l.split("."),t=["0","111","01","01","01","0"];for(let r=e.length;r>4&&r<10;r++)e[r]=t[r-4];return e.join(".")}return l}function Kn(l){const e=Ue(l)||{isTypeSupported:()=>!1};return{mpeg:e.isTypeSupported("audio/mpeg"),mp3:e.isTypeSupported('audio/mp4; codecs="mp3"'),ac3:e.isTypeSupported('audio/mp4; codecs="ac-3"')}}function Is(l){return l.replace(/^.+codecs=["']?([^"']+).*$/,"$1")}const Aa={supported:!0,powerEfficient:!0,smooth:!0},$i={supported:!1,smooth:!1,powerEfficient:!1},Ui={supported:!0,configurations:[],decodingInfoResults:[Aa]};function mn(l,e){return{supported:!1,configurations:e,decodingInfoResults:[$i],error:l}}function ln(l,e,t,r,i,o){const A=l.videoCodec,h=l.audioCodec?l.audioGroups:null,y=o==null?void 0:o.audioCodec,g=o==null?void 0:o.channels,F=g?parseInt(g):y?1/0:2;let N=null;if(h!=null&&h.length)try{h.length===1&&h[0]?N=e.groups[h[0]].channels:N=h.reduce((q,Ae)=>{if(Ae){const ue=e.groups[Ae];if(!ue)throw new Error(`Audio track group ${Ae} not found`);Object.keys(ue.channels).forEach(Re=>{q[Re]=(q[Re]||0)+ue.channels[Re]})}return q},{2:0})}catch(q){return!0}return A!==void 0&&(A.split(",").some(q=>kt(q))||l.width>1920&&l.height>1088||l.height>1920&&l.width>1088||l.frameRate>Math.max(r,30)||l.videoRange!=="SDR"&&l.videoRange!==t||l.bitrate>Math.max(i,8e6))||!!N&&Ie(F)&&Object.keys(N).some(q=>parseInt(q)>F)}function fn(l,e,t,r={}){const i=l.videoCodec;if(!i&&!l.audioCodec||!t)return Promise.resolve(Ui);const o=[],A=ni(l),h=A.length,y=Ei(l,e,h>0),g=y.length;for(let F=h||1*g||1;F--;){const N={type:"media-source"};if(h&&(N.video=A[F%h]),g){N.audio=y[F%g];const q=N.audio.bitrate;N.video&&q&&(N.video.bitrate-=q)}o.push(N)}if(i){const F=navigator.userAgent;if(i.split(",").some(N=>kt(N))&&Ke())return Promise.resolve(mn(new Error(`Overriding Windows Firefox HEVC MediaCapabilities result based on user-agent string: (${F})`),o))}return Promise.all(o.map(F=>{const N=Js(F);return r[N]||(r[N]=t.decodingInfo(F))})).then(F=>({supported:!F.some(N=>!N.supported),configurations:o,decodingInfoResults:F})).catch(F=>({supported:!1,configurations:o,decodingInfoResults:[],error:F}))}function ni(l){var e;const t=(e=l.videoCodec)==null?void 0:e.split(","),r=ks(l),i=l.width||640,o=l.height||480,A=l.frameRate||30,h=l.videoRange.toLowerCase();return t?t.map(y=>{const g={contentType:Oe(Ci(y),"video"),width:i,height:o,bitrate:r,framerate:A};return h!=="sdr"&&(g.transferFunction=h),g}):[]}function Ei(l,e,t){var r;const i=(r=l.audioCodec)==null?void 0:r.split(","),o=ks(l);return i&&l.audioGroups?l.audioGroups.reduce((A,h)=>{var y;const g=h?(y=e.groups[h])==null?void 0:y.tracks:null;return g?g.reduce((F,N)=>{if(N.groupId===h){const q=parseFloat(N.channels||"");i.forEach(Ae=>{const ue={contentType:Oe(Ae,"audio"),bitrate:t?Gi(Ae,o):o};q&&(ue.channels=""+q),F.push(ue)})}return F},A):A},[]):[]}function Gi(l,e){if(e<=1)return 1;let t=128e3;return l==="ec-3"?t=768e3:l==="ac-3"&&(t=64e4),Math.min(e/2,t)}function ks(l){return Math.ceil(Math.max(l.bitrate*.9,l.averageBitrate)/1e3)*1e3||1}function Js(l){let e="";const{audio:t,video:r}=l;if(r){const i=Is(r.contentType);e+=`${i}_r${r.height}x${r.width}f${Math.ceil(r.framerate)}${r.transferFunction||"sd"}_${Math.ceil(r.bitrate/1e5)}`}if(t){const i=Is(t.contentType);e+=`${r?"_":""}${i}_c${t.channels}`}return e}const ia=["NONE","TYPE-0","TYPE-1",null];function Ea(l){return ia.indexOf(l)>-1}const Mi=["SDR","PQ","HLG"];function sa(l){return!!l&&Mi.indexOf(l)>-1}var ds={No:"",Yes:"YES",v2:"v2"};function Do(l){const{canSkipUntil:e,canSkipDateRanges:t,age:r}=l,i=r<e/2;return e&&i?t?ds.v2:ds.Yes:ds.No}class Va{constructor(e,t,r){this.msn=void 0,this.part=void 0,this.skip=void 0,this.msn=e,this.part=t,this.skip=r}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 Qi{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(r=>!!r).map(r=>r.substring(0,4)).join(","),"supplemental"in e){var t;this.supplemental=e.supplemental;const r=(t=e.supplemental)==null?void 0:t.videoCodec;r&&r!==e.videoCodec&&(this.codecSet+=`,${r.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 Yi(this._audioGroups,e)}hasSubtitleGroup(e){return Yi(this._subtitleGroups,e)}get audioGroups(){return this._audioGroups}get subtitleGroups(){return this._subtitleGroups}addGroupId(e,t){if(t){if(e==="audio"){let r=this._audioGroups;r||(r=this._audioGroups=[]),r.indexOf(t)===-1&&r.push(t)}else if(e==="text"){let r=this._subtitleGroups;r||(r=this._subtitleGroups=[]),r.indexOf(t)===-1&&r.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 Yi(l,e){return!e||!l?!1:l.indexOf(e)!==-1}function Xi(){if(typeof matchMedia=="function"){const l=matchMedia("(dynamic-range: high)"),e=matchMedia("bad query");if(l.media!==e.media)return l.matches===!0}return!1}function ps(l,e){let t=!1,r=[];if(l&&(t=l!=="SDR",r=[l]),e){r=e.allowedVideoRanges||Mi.slice(0);const i=r.join("")!=="SDR"&&!e.videoCodec;t=e.preferHDR!==void 0?e.preferHDR:i&&Xi(),t||(r=["SDR"])}return{preferHDR:t,allowedVideoRanges:r}}const ji=l=>{const e=new WeakSet;return(t,r)=>{if(l&&(r=l(t,r)),typeof r=="object"&&r!==null){if(e.has(r))return;e.add(r)}return r}},Vn=(l,e)=>JSON.stringify(l,ji(e));function vo(l,e,t,r,i){const o=Object.keys(l),A=r==null?void 0:r.channels,h=r==null?void 0:r.audioCodec,y=i==null?void 0:i.videoCodec,g=A&&parseInt(A)===2;let F=!1,N=!1,q=1/0,Ae=1/0,ue=1/0,Re=1/0,ke=0,it=[];const{preferHDR:ft,allowedVideoRanges:_t}=ps(e,i);for(let Cr=o.length;Cr--;){const br=l[o[Cr]];F||(F=br.channels[2]>0),q=Math.min(q,br.minHeight),Ae=Math.min(Ae,br.minFramerate),ue=Math.min(ue,br.minBitrate),_t.filter(qr=>br.videoRanges[qr]>0).length>0&&(N=!0)}q=Ie(q)?q:0,Ae=Ie(Ae)?Ae:0;const zt=Math.max(1080,q),ir=Math.max(30,Ae);ue=Ie(ue)?ue:t,t=Math.max(ue,t),N||(e=void 0);const Nr=o.length>1;return{codecSet:o.reduce((Cr,br)=>{const pr=l[br];if(br===Cr)return Cr;if(it=N?_t.filter(qr=>pr.videoRanges[qr]>0):[],Nr){if(pr.minBitrate>t)return Ks(br,`min bitrate of ${pr.minBitrate} > current estimate of ${t}`),Cr;if(!pr.hasDefaultAudio)return Ks(br,"no renditions with default or auto-select sound found"),Cr;if(h&&br.indexOf(h.substring(0,4))%5!==0)return Ks(br,`audio codec preference "${h}" not found`),Cr;if(A&&!g){if(!pr.channels[A])return Ks(br,`no renditions with ${A} channel sound found (channels options: ${Object.keys(pr.channels)})`),Cr}else if((!h||g)&&F&&pr.channels[2]===0)return Ks(br,"no renditions with stereo sound found"),Cr;if(pr.minHeight>zt)return Ks(br,`min resolution of ${pr.minHeight} > maximum of ${zt}`),Cr;if(pr.minFramerate>ir)return Ks(br,`min framerate of ${pr.minFramerate} > maximum of ${ir}`),Cr;if(!it.some(qr=>pr.videoRanges[qr]>0))return Ks(br,`no variants with VIDEO-RANGE of ${Vn(it)} found`),Cr;if(y&&br.indexOf(y.substring(0,4))%5!==0)return Ks(br,`video codec preference "${y}" not found`),Cr;if(pr.maxScore<ke)return Ks(br,`max score of ${pr.maxScore} < selected max of ${ke}`),Cr}return Cr&&(at(br)>=at(Cr)||pr.fragmentError>l[Cr].fragmentError)?Cr:(Re=pr.minIndex,ke=pr.maxScore,br)},void 0),videoRanges:it,preferHDR:ft,minFramerate:Ae,minBitrate:ue,minIndex:Re}}function Ks(l,e){Qe.log(`[abr] start candidates with "${l}" ignored because ${e}`)}function yo(l){return l.reduce((e,t)=>{let r=e.groups[t.groupId];r||(r=e.groups[t.groupId]={tracks:[],channels:{2:0},hasDefault:!1,hasAutoSelect:!1}),r.tracks.push(t);const i=t.channels||"2";return r.channels[i]=(r.channels[i]||0)+1,r.hasDefault=r.hasDefault||t.default,r.hasAutoSelect=r.hasAutoSelect||t.autoselect,r.hasDefault&&(e.hasDefaultAudio=!0),r.hasAutoSelect&&(e.hasAutoSelectAudio=!0),e},{hasDefaultAudio:!1,hasAutoSelectAudio:!1,groups:{}})}function cl(l,e,t,r){return l.slice(t,r+1).reduce((i,o,A)=>{if(!o.codecSet)return i;const h=o.audioGroups;let y=i[o.codecSet];y||(i[o.codecSet]=y={minBitrate:1/0,minHeight:1/0,minFramerate:1/0,minIndex:A,maxScore:0,videoRanges:{SDR:0},channels:{2:0},hasDefaultAudio:!h,fragmentError:0}),y.minBitrate=Math.min(y.minBitrate,o.bitrate);const g=Math.min(o.height,o.width);return y.minHeight=Math.min(y.minHeight,g),y.minFramerate=Math.min(y.minFramerate,o.frameRate),y.minIndex=Math.min(y.minIndex,A),y.maxScore=Math.max(y.maxScore,o.score),y.fragmentError+=o.fragmentError,y.videoRanges[o.videoRange]=(y.videoRanges[o.videoRange]||0)+1,h&&h.forEach(F=>{if(!F)return;const N=e.groups[F];N&&(y.hasDefaultAudio=y.hasDefaultAudio||e.hasDefaultAudio?N.hasDefault:N.hasAutoSelect||!e.hasDefaultAudio&&!e.hasAutoSelectAudio,Object.keys(N.channels).forEach(q=>{y.channels[q]=(y.channels[q]||0)+N.channels[q]}))}),i},{})}function Ju(l){if(!l)return l;const{lang:e,assocLang:t,characteristics:r,channels:i,audioCodec:o}=l;return{lang:e,assocLang:t,characteristics:r,channels:i,audioCodec:o}}function Zo(l,e,t){if("attrs"in l){const r=e.indexOf(l);if(r!==-1)return r}for(let r=0;r<e.length;r++){const i=e[r];if(xA(l,i,t))return r}return-1}function xA(l,e,t){const{groupId:r,name:i,lang:o,assocLang:A,default:h}=l,y=l.forced;return(r===void 0||e.groupId===r)&&(i===void 0||e.name===i)&&(o===void 0||Bc(o,e.lang))&&(o===void 0||e.assocLang===A)&&(h===void 0||e.default===h)&&(y===void 0||e.forced===y)&&(!("characteristics"in l)||Dl(l.characteristics||"",e.characteristics))&&(t===void 0||t(l,e))}function Bc(l,e="--"){return l.length===e.length?l===e:l.startsWith(e)||e.startsWith(l)}function Dl(l,e=""){const t=l.split(","),r=e.split(",");return t.length===r.length&&!t.some(i=>r.indexOf(i)===-1)}function la(l,e){const{audioCodec:t,channels:r}=l;return(t===void 0||(e.audioCodec||"").substring(0,4)===t.substring(0,4))&&(r===void 0||r===(e.channels||"2"))}function Ts(l,e,t,r,i){const o=e[r],h=e.reduce((q,Ae,ue)=>{const Re=Ae.uri;return(q[Re]||(q[Re]=[])).push(ue),q},{})[o.uri];h.length>1&&(r=Math.max.apply(Math,h));const y=o.videoRange,g=o.frameRate,F=o.codecSet.substring(0,4),N=Ra(e,r,q=>{if(q.videoRange!==y||q.frameRate!==g||q.codecSet.substring(0,4)!==F)return!1;const Ae=q.audioGroups,ue=t.filter(Re=>!Ae||Ae.indexOf(Re.groupId)!==-1);return Zo(l,ue,i)>-1});return N>-1?N:Ra(e,r,q=>{const Ae=q.audioGroups,ue=t.filter(Re=>!Ae||Ae.indexOf(Re.groupId)!==-1);return Zo(l,ue,i)>-1})}function Ra(l,e,t){for(let r=e;r>-1;r--)if(t(l[r]))return r;for(let r=e+1;r<l.length;r++)if(t(l[r]))return r;return-1}function VA(l,e){var t;return!!l&&l!==((t=e.loadLevelObj)==null?void 0:t.uri)}class oo extends V{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 r;const{fragCurrent:i,partCurrent:o,hls:A}=this,{autoLevelEnabled:h,media:y}=A;if(!i||!y)return;const g=performance.now(),F=o?o.stats:i.stats,N=o?o.duration:i.duration,q=g-F.loading.start,Ae=A.minAutoLevel,ue=i.level,Re=this._nextAutoLevel;if(F.aborted||F.loaded&&F.loaded===F.total||ue<=Ae){this.clearTimer(),this._nextAutoLevel=-1;return}if(!h)return;const ke=Re>-1&&Re!==ue,it=!!t||ke;if(!it&&(y.paused||!y.playbackRate||!y.readyState))return;const ft=A.mainForwardBufferInfo;if(!it&&ft===null)return;const _t=this.bwEstimator.getEstimateTTFB(),zt=Math.abs(y.playbackRate);if(q<=Math.max(_t,1e3*(N/(zt*2))))return;const ir=ft?ft.len/zt:0,Nr=F.loading.first?F.loading.first-F.loading.start:-1,or=F.loaded&&Nr>-1,Cr=this.getBwEstimate(),br=A.levels,pr=br[ue],qr=Math.max(F.loaded,Math.round(N*(i.bitrate||pr.averageBitrate)/8));let Cn=or?q-Nr:q;Cn<1&&or&&(Cn=Math.min(q,F.loaded*8/Cr));const Yn=or?F.loaded*1e3/Cn:0,ii=_t/1e3,On=Yn?(qr-F.loaded)/Yn:qr*8/Cr+ii;if(On<=ir)return;const Tn=Yn?Yn*8:Cr,qn=((r=(t==null?void 0:t.details)||this.hls.latestLevelDetails)==null?void 0:r.live)===!0,Mn=this.hls.config.abrBandWidthUpFactor;let ei=Number.POSITIVE_INFINITY,Di;for(Di=ue-1;Di>Ae;Di--){const Vs=br[Di].maxBitrate,cs=!br[Di].details||qn;if(ei=this.getTimeToLoadFrag(ii,Tn,N*Vs,cs),ei<Math.min(ir,N+ii))break}if(ei>=On||ei>N*10)return;or?this.bwEstimator.sample(q-Math.min(_t,Nr),F.loaded):this.bwEstimator.sampleTTFB(q);const Dn=br[Di].maxBitrate;this.getBwEstimate()*Mn>Dn&&this.resetEstimator(Dn);const kn=this.findBestLevel(Dn,Ae,Di,0,ir,1,1);kn>-1&&(Di=kn),this.warn(`Fragment ${i.sn}${o?" part "+o.index:""} of level ${ue} is loading too slowly;
|
|
|
Fragment duration: ${i.duration.toFixed(3)}
|
|
|
Time to underbuffer: ${ir.toFixed(3)} s
|
|
|
Estimated load time for current fragment: ${On.toFixed(3)} s
|
|
|
Estimated load time for down switch fragment: ${ei.toFixed(3)} s
|
|
|
TTFB estimate: ${Nr|0} ms
|
|
|
Current BW estimate: ${Ie(Cr)?Cr|0:"Unknown"} bps
|
|
|
New BW estimate: ${this.getBwEstimate()|0} bps
|
|
|
Switching to level ${Di} @ ${Dn|0} bps`),A.nextLoadLevel=A.nextAutoLevel=Di,this.clearTimer();const os=()=>{if(this.clearTimer(),this.fragCurrent===i&&this.hls.loadLevel===Di&&Di>0){const Vs=this.getStarvationDelay();if(this.warn(`Aborting inflight request ${Di>0?"and switching down":""}
|
|
|
Fragment duration: ${i.duration.toFixed(3)} s
|
|
|
Time to underbuffer: ${Vs.toFixed(3)} s`),i.abortRequests(),this.fragCurrent=this.partCurrent=null,Di>Ae){let cs=this.findBestLevel(this.hls.levels[Ae].bitrate,Ae,Di,0,Vs,1,1);cs===-1&&(cs=Ae),this.hls.nextLoadLevel=this.hls.nextAutoLevel=cs,this.resetEstimator(this.hls.levels[cs].bitrate)}}};ke||On>ei*2?os():this.timer=self.setInterval(os,ei*1e3),A.trigger(I.FRAG_LOAD_EMERGENCY_ABORTED,{frag:i,part:o,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 C(e.abrEwmaSlowVoD,e.abrEwmaFastVoD,e.abrEwmaDefaultEstimate)}registerListeners(){const{hls:e}=this;e.on(I.MANIFEST_LOADING,this.onManifestLoading,this),e.on(I.FRAG_LOADING,this.onFragLoading,this),e.on(I.FRAG_LOADED,this.onFragLoaded,this),e.on(I.FRAG_BUFFERED,this.onFragBuffered,this),e.on(I.LEVEL_SWITCHING,this.onLevelSwitching,this),e.on(I.LEVEL_LOADED,this.onLevelLoaded,this),e.on(I.LEVELS_UPDATED,this.onLevelsUpdated,this),e.on(I.MAX_AUTO_LEVEL_UPDATED,this.onMaxAutoLevelUpdated,this),e.on(I.ERROR,this.onError,this)}unregisterListeners(){const{hls:e}=this;e&&(e.off(I.MANIFEST_LOADING,this.onManifestLoading,this),e.off(I.FRAG_LOADING,this.onFragLoading,this),e.off(I.FRAG_LOADED,this.onFragLoaded,this),e.off(I.FRAG_BUFFERED,this.onFragBuffered,this),e.off(I.LEVEL_SWITCHING,this.onLevelSwitching,this),e.off(I.LEVEL_LOADED,this.onLevelLoaded,this),e.off(I.LEVELS_UPDATED,this.onLevelsUpdated,this),e.off(I.MAX_AUTO_LEVEL_UPDATED,this.onMaxAutoLevelUpdated,this),e.off(I.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 r=t.frag;if(!this.ignoreFragment(r)){if(!r.bitrateTest){var i;this.fragCurrent=r,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 de.BUFFER_ADD_CODEC_ERROR:case de.BUFFER_APPEND_ERROR:this.lastLoadedFragLevel=-1,this.firstSelection=-1;break;case de.FRAG_LOAD_TIMEOUT:{const r=t.frag,{fragCurrent:i,partCurrent:o}=this;if(r&&i&&r.sn===i.sn&&r.level===i.level){const A=performance.now(),h=o?o.stats:r.stats,y=A-h.loading.start,g=h.loading.first?h.loading.first-h.loading.start:-1;if(h.loaded&&g>-1){const N=this.bwEstimator.getEstimateTTFB();this.bwEstimator.sample(y-Math.min(N,g),h.loaded)}else this.bwEstimator.sampleTTFB(y)}break}}}getTimeToLoadFrag(e,t,r,i){const o=e+r/t,A=i?e+this.lastLevelLoadSec:0;return o+A}onLevelLoaded(e,t){const r=this.hls.config,{loading:i}=t.stats,o=i.end-i.first;Ie(o)&&(this.lastLevelLoadSec=o/1e3),t.details.live?this.bwEstimator.update(r.abrEwmaSlowLive,r.abrEwmaFastLive):this.bwEstimator.update(r.abrEwmaSlowVoD,r.abrEwmaFastVoD),this.timer>-1&&this._abandonRulesCheck(t.levelInfo)}onFragLoaded(e,{frag:t,part:r}){const i=r?r.stats:t.stats;if(t.type===R.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 o=r?r.duration:t.duration,A=this.hls.levels[t.level],h=(A.loaded?A.loaded.bytes:0)+i.loaded,y=(A.loaded?A.loaded.duration:0)+o;A.loaded={bytes:h,duration:y},A.realBitrate=Math.round(8*h/y)}if(t.bitrateTest){const o={stats:i,frag:t,part:r,id:t.type};this.onFragBuffered(I.FRAG_BUFFERED,o),t.bitrateTest=!1}else this.lastLoadedFragLevel=t.level}}onFragBuffered(e,t){const{frag:r,part:i}=t,o=i!=null&&i.stats.loaded?i.stats:r.stats;if(o.aborted||this.ignoreFragment(r))return;const A=o.parsing.end-o.loading.start-Math.min(o.loading.first-o.loading.start,this.bwEstimator.getEstimateTTFB());this.bwEstimator.sample(A,o.loaded),o.bwEstimate=this.getBwEstimate(),r.bitrateTest?this.bitrateTestDelay=A/1e3:this.bitrateTestDelay=0}ignoreFragment(e){return e.type!==R.MAIN||e.sn==="initSegment"}clearTimer(){this.timer>-1&&(self.clearInterval(this.timer),this.timer=-1)}get firstAutoLevel(){const{maxAutoLevel:e,minAutoLevel:t}=this.hls,r=this.getBwEstimate(),i=this.hls.config.maxStarvationDelay,o=this.findBestLevel(r,t,e,0,i,1,1);if(o>-1)return o;const A=this.hls.firstLevel,h=Math.min(Math.max(A,t),e);return this.warn(`Could not find best starting auto level. Defaulting to first in playlist ${A} clamped to ${h}`),h}get forcedAutoLevel(){return this.nextAutoLevelKey?-1:this._nextAutoLevel}get nextAutoLevel(){const e=this.forcedAutoLevel,r=this.bwEstimator.canEstimate(),i=this.lastLoadedFragLevel>-1;if(e!==-1&&(!r||!i||this.nextAutoLevelKey===this.getAutoLevelKey()))return e;const o=r&&i?this.getNextABRAutoLevel():this.firstAutoLevel;if(e!==-1){const A=this.hls.levels;if(A.length>Math.max(e,o)&&A[e].loadError<=A[o].loadError)return e}return this._nextAutoLevel=o,this.nextAutoLevelKey=this.getAutoLevelKey(),o}getAutoLevelKey(){return`${this.getBwEstimate()}_${this.getStarvationDelay().toFixed(2)}`}getNextABRAutoLevel(){const{fragCurrent:e,partCurrent:t,hls:r}=this;if(r.levels.length<=1)return r.loadLevel;const{maxAutoLevel:i,config:o,minAutoLevel:A}=r,h=t?t.duration:e?e.duration:0,y=this.getBwEstimate(),g=this.getStarvationDelay();let F=o.abrBandWidthFactor,N=o.abrBandWidthUpFactor;if(g){const ke=this.findBestLevel(y,A,i,g,0,F,N);if(ke>=0)return this.rebufferNotice=-1,ke}let q=h?Math.min(h,o.maxStarvationDelay):o.maxStarvationDelay;if(!g){const ke=this.bitrateTestDelay;ke&&(q=(h?Math.min(h,o.maxLoadingDelay):o.maxLoadingDelay)-ke,this.info(`bitrate test took ${Math.round(1e3*ke)}ms, set first fragment max fetchDuration to ${Math.round(1e3*q)} ms`),F=N=1)}const Ae=this.findBestLevel(y,A,i,g,q,F,N);if(this.rebufferNotice!==Ae&&(this.rebufferNotice=Ae,this.info(`${g?"rebuffering expected":"buffer is empty"}, optimal quality level ${Ae}`)),Ae>-1)return Ae;const ue=r.levels[A],Re=r.loadLevelObj;return Re&&(ue==null?void 0:ue.bitrate)<Re.bitrate?A:r.loadLevel}getStarvationDelay(){const e=this.hls,t=e.media;if(!t)return 1/0;const r=t&&t.playbackRate!==0?Math.abs(t.playbackRate):1,i=e.mainForwardBufferInfo;return(i?i.len:0)/r}getBwEstimate(){return this.bwEstimator.canEstimate()?this.bwEstimator.getEstimate():this.hls.config.abrEwmaDefaultEstimate}findBestLevel(e,t,r,i,o,A,h){var y;const g=i+o,F=this.lastLoadedFragLevel,N=F===-1?this.hls.firstLevel:F,{fragCurrent:q,partCurrent:Ae}=this,{levels:ue,allAudioTracks:Re,loadLevel:ke,config:it}=this.hls;if(ue.length===1)return 0;const ft=ue[N],_t=!!((y=this.hls.latestLevelDetails)!=null&&y.live),zt=ke===-1||F===-1;let ir,Nr="SDR",or=(ft==null?void 0:ft.frameRate)||0;const{audioPreference:Cr,videoPreference:br}=it,pr=this.audioTracksByGroup||(this.audioTracksByGroup=yo(Re));let qr=-1;if(zt){if(this.firstSelection!==-1)return this.firstSelection;const Tn=this.codecTiers||(this.codecTiers=cl(ue,pr,t,r)),qn=vo(Tn,Nr,e,Cr,br),{codecSet:Mn,videoRanges:ei,minFramerate:Di,minBitrate:Dn,minIndex:kn,preferHDR:os}=qn;qr=kn,ir=Mn,Nr=os?ei[ei.length-1]:ei[0],or=Di,e=Math.max(e,Dn),this.log(`picked start tier ${Vn(qn)}`)}else ir=ft==null?void 0:ft.codecSet,Nr=ft==null?void 0:ft.videoRange;const Cn=Ae?Ae.duration:q?q.duration:0,Yn=this.bwEstimator.getEstimateTTFB()/1e3,ii=[];for(let Tn=r;Tn>=t;Tn--){var On;const qn=ue[Tn],Mn=Tn>N;if(!qn)continue;if(it.useMediaCapabilities&&!qn.supportedResult&&!qn.supportedPromise){const cs=navigator.mediaCapabilities;typeof(cs==null?void 0:cs.decodingInfo)=="function"&&ln(qn,pr,Nr,or,e,Cr)?(qn.supportedPromise=fn(qn,pr,cs,this.supportedCache),qn.supportedPromise.then(_s=>{if(!this.hls)return;qn.supportedResult=_s;const EA=this.hls.levels,nA=EA.indexOf(qn);_s.error?this.warn(`MediaCapabilities decodingInfo error: "${_s.error}" for level ${nA} ${Vn(_s)}`):_s.supported?_s.decodingInfoResults.some(Yl=>Yl.smooth===!1||Yl.powerEfficient===!1)&&this.log(`MediaCapabilities decodingInfo for level ${nA} not smooth or powerEfficient: ${Vn(_s)}`):(this.warn(`Unsupported MediaCapabilities decodingInfo result for level ${nA} ${Vn(_s)}`),nA>-1&&EA.length>1&&(this.log(`Removing unsupported level ${nA}`),this.hls.removeLevel(nA),this.hls.loadLevel===-1&&(this.hls.nextLoadLevel=0)))}).catch(_s=>{this.warn(`Error handling MediaCapabilities decodingInfo: ${_s}`)})):qn.supportedResult=Ui}if((ir&&qn.codecSet!==ir||Nr&&qn.videoRange!==Nr||Mn&&or>qn.frameRate||!Mn&&or>0&&or<qn.frameRate||(On=qn.supportedResult)!=null&&(On=On.decodingInfoResults)!=null&&On.some(cs=>cs.smooth===!1))&&(!zt||Tn!==qr)){ii.push(Tn);continue}const ei=qn.details,Di=(Ae?ei==null?void 0:ei.partTarget:ei==null?void 0:ei.averagetargetduration)||Cn;let Dn;Mn?Dn=h*e:Dn=A*e;const kn=Cn&&i>=Cn*2&&o===0?qn.averageBitrate:qn.maxBitrate,os=this.getTimeToLoadFrag(Yn,Dn,kn*Di,ei===void 0);if(Dn>=kn&&(Tn===F||qn.loadError===0&&qn.fragmentError===0)&&(os<=Yn||!Ie(os)||_t&&!this.bitrateTestDelay||os<g)){const cs=this.forcedAutoLevel;return Tn!==ke&&(cs===-1||cs!==ke)&&(ii.length&&this.trace(`Skipped level(s) ${ii.join(",")} of ${r} max with CODECS and VIDEO-RANGE:"${ue[ii[0]].codecs}" ${ue[ii[0]].videoRange}; not compatible with "${ir}" ${Nr}`),this.info(`switch candidate:${N}->${Tn} adjustedbw(${Math.round(Dn)})-bitrate=${Math.round(Dn-kn)} ttfb:${Yn.toFixed(1)} avgDuration:${Di.toFixed(1)} maxFetchDuration:${g.toFixed(1)} fetchDuration:${os.toFixed(1)} firstSelection:${zt} codecSet:${qn.codecSet} videoRange:${qn.videoRange} hls.loadLevel:${ke}`)),zt&&(this.firstSelection=Tn),Tn}}return-1}set nextAutoLevel(e){const t=this.deriveNextAutoLevel(e);this._nextAutoLevel!==t&&(this.nextAutoLevelKey="",this._nextAutoLevel=t)}deriveNextAutoLevel(e){const{maxAutoLevel:t,minAutoLevel:r}=this.hls;return Math.min(Math.max(e,r),t)}}const bs={search:function(l,e){let t=0,r=l.length-1,i=null,o=null;for(;t<=r;){i=(t+r)/2|0,o=l[i];const A=e(o);if(A>0)t=i+1;else if(A<0)r=i-1;else return o}return null}};function Es(l,e,t){if(e===null||!Array.isArray(l)||!l.length||!Ie(e))return null;const r=l[0].programDateTime;if(e<(r||0))return null;const i=l[l.length-1].endProgramDateTime;if(e>=(i||0))return null;for(let o=0;o<l.length;++o){const A=l[o];if(_o(e,t,A))return A}return null}function Ua(l,e,t=0,r=0,i=.005){let o=null;if(l){o=e[1+l.sn-e[0].sn]||null;const h=l.endDTS-t;h>0&&h<15e-7&&(t+=15e-7),o&&l.level!==o.level&&o.end<=l.end&&(o=e[2+l.sn-e[0].sn]||null)}else t===0&&e[0].start===0&&(o=e[0]);if(o&&((!l||l.level===o.level)&&Wa(t,r,o)===0||hl(o,l,Math.min(i,r))))return o;const A=bs.search(e,Wa.bind(null,t,r));return A&&(A!==l||!o)?A:o}function hl(l,e,t){if(e&&e.start===0&&e.level<l.level&&(e.endPTS||0)>0){const r=e.tagList.reduce((i,o)=>(o[0]==="INF"&&(i+=parseFloat(o[1])),i),t);return l.start<=r}return!1}function Wa(l=0,e=0,t){if(t.start<=l&&t.start+t.duration>l)return 0;const r=Math.min(e,t.duration+(t.deltaPTS?t.deltaPTS:0));return t.start+t.duration-r<=l?1:t.start-r>l&&t.start?-1:0}function _o(l,e,t){const r=Math.min(e,t.duration+(t.deltaPTS?t.deltaPTS:0))*1e3;return(t.endProgramDateTime||0)-r>l}function fl(l,e,t){if(l&&l.startCC<=e&&l.endCC>=e){let r=l.fragments;const{fragmentHint:i}=l;i&&(r=r.concat(i));let o;return bs.search(r,A=>A.cc<e?1:A.cc>e?-1:(o=A,A.end<=t?1:A.start>t?-1:0)),o||null}return null}function ko(l){switch(l.details){case de.FRAG_LOAD_TIMEOUT:case de.KEY_LOAD_TIMEOUT:case de.LEVEL_LOAD_TIMEOUT:case de.MANIFEST_LOAD_TIMEOUT:return!0}return!1}function CA(l){return l.details.startsWith("key")}function Rr(l){return CA(l)&&!!l.frag&&!l.frag.decryptdata}function hi(l,e){const t=ko(e);return l.default[`${t?"timeout":"error"}Retry`]}function Ws(l,e){const t=l.backoff==="linear"?1:Math.pow(2,e);return Math.min(t*l.retryDelayMs,l.maxRetryDelayMs)}function Pa(l){return B(B({},l),{errorRetry:null,timeoutRetry:null})}function WA(l,e,t,r){if(!l)return!1;const i=r==null?void 0:r.code,o=e<l.maxNumRetry&&(uA(i)||!!t);return l.shouldRetry?l.shouldRetry(l,e,t,r,o):o}function uA(l){return Ao(l)||!!l&&(l<400||l>499)}function Ao(l){return l===0&&navigator.onLine===!1}var pi={DoNothing:0,SendEndCallback:1,SendAlternateToPenaltyBox:2,RemoveAlternatePermanently:3,InsertDiscontinuity:4,RetryRequest:5},ms={None:0,MoveAllAlternatesMatchingHost:1,MoveAllAlternatesMatchingHDCP:2,MoveAllAlternatesMatchingKey:4,SwitchToSDR:8};class Ka extends V{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(I.ERROR,this.onError,this),e.on(I.MANIFEST_LOADING,this.onManifestLoading,this),e.on(I.LEVEL_UPDATED,this.onLevelUpdated,this)}unregisterListeners(){const e=this.hls;e&&(e.off(I.ERROR,this.onError,this),e.off(I.ERROR,this.onErrorOut,this),e.off(I.MANIFEST_LOADING,this.onManifestLoading,this),e.off(I.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)===R.MAIN?e.level:this.getVariantIndex()}getVariantIndex(){var e;const t=this.hls,r=t.currentLevel;return(e=t.loadLevelObj)!=null&&e.details||r===-1?t.loadLevel:r}variantHasKey(e,t){if(e){var r;if((r=e.details)!=null&&r.hasKey(t))return!0;const i=e.audioGroups;if(i)return this.hls.allAudioTracks.filter(A=>i.indexOf(A.groupId)>=0).some(A=>{var h;return(h=A.details)==null?void 0:h.hasKey(t)})}return!1}onManifestLoading(){this.playlistError=0}onLevelUpdated(){this.playlistError=0}onError(e,t){var r;if(t.fatal)return;const i=this.hls,o=t.context;switch(t.details){case de.FRAG_LOAD_ERROR:case de.FRAG_LOAD_TIMEOUT:case de.KEY_LOAD_ERROR:case de.KEY_LOAD_TIMEOUT:t.errorAction=this.getFragRetryOrSwitchAction(t);return;case de.FRAG_PARSING_ERROR:if((r=t.frag)!=null&&r.gap){t.errorAction=Ns();return}case de.FRAG_GAP:case de.FRAG_DECRYPT_ERROR:{t.errorAction=this.getFragRetryOrSwitchAction(t),t.errorAction.action=pi.SendAlternateToPenaltyBox;return}case de.LEVEL_EMPTY_ERROR:case de.LEVEL_PARSING_ERROR:{var A;const y=t.parent===R.MAIN?t.level:i.loadLevel;t.details===de.LEVEL_EMPTY_ERROR&&((A=t.context)!=null&&(A=A.levelDetails)!=null&&A.live)?t.errorAction=this.getPlaylistRetryOrSwitchAction(t,y):(t.levelRetry=!1,t.errorAction=this.getLevelSwitchAction(t,y))}return;case de.LEVEL_LOAD_ERROR:case de.LEVEL_LOAD_TIMEOUT:typeof(o==null?void 0:o.level)=="number"&&(t.errorAction=this.getPlaylistRetryOrSwitchAction(t,o.level));return;case de.AUDIO_TRACK_LOAD_ERROR:case de.AUDIO_TRACK_LOAD_TIMEOUT:case de.SUBTITLE_LOAD_ERROR:case de.SUBTITLE_TRACK_LOAD_TIMEOUT:if(o){const y=i.loadLevelObj;if(y&&(o.type===Be.AUDIO_TRACK&&y.hasAudioGroup(o.groupId)||o.type===Be.SUBTITLE_TRACK&&y.hasSubtitleGroup(o.groupId))){t.errorAction=this.getPlaylistRetryOrSwitchAction(t,i.loadLevel),t.errorAction.action=pi.SendAlternateToPenaltyBox,t.errorAction.flags=ms.MoveAllAlternatesMatchingHost;return}}return;case de.KEY_SYSTEM_STATUS_OUTPUT_RESTRICTED:t.errorAction={action:pi.SendAlternateToPenaltyBox,flags:ms.MoveAllAlternatesMatchingHDCP};return;case de.KEY_SYSTEM_SESSION_UPDATE_FAILED:case de.KEY_SYSTEM_STATUS_INTERNAL_ERROR:case de.KEY_SYSTEM_NO_SESSION:t.errorAction={action:pi.SendAlternateToPenaltyBox,flags:ms.MoveAllAlternatesMatchingKey};return;case de.BUFFER_ADD_CODEC_ERROR:case de.REMUX_ALLOC_ERROR:case de.BUFFER_APPEND_ERROR:if(!t.errorAction){var h;t.errorAction=this.getLevelSwitchAction(t,(h=t.level)!=null?h:i.loadLevel)}return;case de.INTERNAL_EXCEPTION:case de.BUFFER_APPENDING_ERROR:case de.BUFFER_FULL_ERROR:case de.LEVEL_SWITCH_ERROR:case de.BUFFER_STALLED_ERROR:case de.BUFFER_SEEK_OVER_HOLE:case de.BUFFER_NUDGE_ON_STALL:t.errorAction=Ns();return}t.type===Me.KEY_SYSTEM_ERROR&&(t.levelRetry=!1,t.errorAction=Ns())}getPlaylistRetryOrSwitchAction(e,t){const r=this.hls,i=hi(r.config.playlistLoadPolicy,e),o=this.playlistError++;if(WA(i,o,ko(e),e.response))return{action:pi.RetryRequest,flags:ms.None,retryConfig:i,retryCount:o};const h=this.getLevelSwitchAction(e,t);return i&&(h.retryConfig=i,h.retryCount=o),h}getFragRetryOrSwitchAction(e){const t=this.hls,r=this.getVariantLevelIndex(e.frag),i=t.levels[r],{fragLoadPolicy:o,keyLoadPolicy:A}=t.config,h=hi(CA(e)?A:o,e),y=t.levels.reduce((F,N)=>F+N.fragmentError,0);if(i&&(e.details!==de.FRAG_GAP&&i.fragmentError++,!Rr(e)&&WA(h,y,ko(e),e.response)))return{action:pi.RetryRequest,flags:ms.None,retryConfig:h,retryCount:y};const g=this.getLevelSwitchAction(e,r);return h&&(g.retryConfig=h,g.retryCount=y),g}getLevelSwitchAction(e,t){const r=this.hls;t==null&&(t=r.loadLevel);const i=this.hls.levels[t];if(i){var o,A;const g=e.details;i.loadError++,g===de.BUFFER_APPEND_ERROR&&i.fragmentError++;let F=-1;const{levels:N,loadLevel:q,minAutoLevel:Ae,maxAutoLevel:ue}=r;!r.autoLevelEnabled&&!r.config.preserveManualLevelOnError&&(r.loadLevel=-1);const Re=(o=e.frag)==null?void 0:o.type,it=(Re===R.AUDIO&&g===de.FRAG_PARSING_ERROR||e.sourceBufferName==="audio"&&(g===de.BUFFER_ADD_CODEC_ERROR||g===de.BUFFER_APPEND_ERROR))&&N.some(({audioCodec:Nr})=>i.audioCodec!==Nr),_t=e.sourceBufferName==="video"&&(g===de.BUFFER_ADD_CODEC_ERROR||g===de.BUFFER_APPEND_ERROR)&&N.some(({codecSet:Nr,audioCodec:or})=>i.codecSet!==Nr&&i.audioCodec===or),{type:zt,groupId:ir}=(A=e.context)!=null?A:{};for(let Nr=N.length;Nr--;){const or=(Nr+q)%N.length;if(or!==q&&or>=Ae&&or<=ue&&N[or].loadError===0){var h,y;const Cr=N[or];if(g===de.FRAG_GAP&&Re===R.MAIN&&e.frag){const br=N[or].details;if(br){const pr=Ua(e.frag,br.fragments,e.frag.start);if(pr!=null&&pr.gap)continue}}else{if(zt===Be.AUDIO_TRACK&&Cr.hasAudioGroup(ir)||zt===Be.SUBTITLE_TRACK&&Cr.hasSubtitleGroup(ir))continue;if(Re===R.AUDIO&&(h=i.audioGroups)!=null&&h.some(br=>Cr.hasAudioGroup(br))||Re===R.SUBTITLE&&(y=i.subtitleGroups)!=null&&y.some(br=>Cr.hasSubtitleGroup(br))||it&&i.audioCodec===Cr.audioCodec||_t&&i.codecSet===Cr.codecSet||!it&&i.codecSet!==Cr.codecSet)continue}F=or;break}}if(F>-1&&r.loadLevel!==F)return e.levelRetry=!0,this.playlistError=0,{action:pi.SendAlternateToPenaltyBox,flags:ms.None,nextAutoLevel:F}}return{action:pi.SendAlternateToPenaltyBox,flags:ms.MoveAllAlternatesMatchingHost}}onErrorOut(e,t){var r;switch((r=t.errorAction)==null?void 0:r.action){case pi.DoNothing:break;case pi.SendAlternateToPenaltyBox:this.sendAlternateToPenaltyBox(t),!t.errorAction.resolved&&t.details!==de.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 pi.RetryRequest:break}if(t.fatal){this.hls.stopLoad();return}}sendAlternateToPenaltyBox(e){const t=this.hls,r=e.errorAction;if(!r)return;const{flags:i}=r,o=r.nextAutoLevel;switch(i){case ms.None:this.switchLevel(e,o);break;case ms.MoveAllAlternatesMatchingHDCP:{const y=this.getVariantLevelIndex(e.frag),g=t.levels[y],F=g==null?void 0:g.attrs["HDCP-LEVEL"];if(r.hdcpLevel=F,F==="NONE")this.warn("HDCP policy resticted output with HDCP-LEVEL=NONE");else if(F){t.maxHdcpLevel=ia[ia.indexOf(F)-1],r.resolved=!0,this.warn(`Restricting playback to HDCP-LEVEL of "${t.maxHdcpLevel}" or lower`);break}}case ms.MoveAllAlternatesMatchingKey:{const y=e.decryptdata;if(y){const g=this.hls.levels,F=g.length;for(let q=F;q--;)if(this.variantHasKey(g[q],y)){var A,h;this.log(`Banned key found in level ${q} (${g[q].bitrate}bps) or audio group "${(A=g[q].audioGroups)==null?void 0:A.join(",")}" (${(h=e.frag)==null?void 0:h.type} fragment) ${pe(y.keyId||[])}`),g[q].fragmentError++,g[q].loadError++,this.log(`Removing level ${q} with key error (${e.error})`),this.hls.removeLevel(q)}const N=e.frag;if(this.hls.levels.length<F)r.resolved=!0;else if(N&&N.type!==R.MAIN){const q=N.decryptdata;q&&!y.matches(q)&&(r.resolved=!0)}}break}}r.resolved||this.switchLevel(e,o)}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===de.BUFFER_ADD_CODEC_ERROR&&e.mimeType&&e.sourceBufferName!=="audiovideo")){const r=Is(e.mimeType),i=this.hls.levels;for(let o=i.length;o--;)i[o][`${e.sourceBufferName}Codec`]===r&&(this.log(`Removing level ${o} for ${e.details} ("${r}" not supported)`),this.hls.removeLevel(o))}}}function Ns(l){const e={action:pi.DoNothing,flags:ms.None};return l&&(e.resolved=!0),e}var Cs={NOT_LOADED:"NOT_LOADED",APPENDING:"APPENDING",PARTIAL:"PARTIAL",OK:"OK"};class dl{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(I.MANIFEST_LOADING,this.onManifestLoading,this),e.on(I.BUFFER_APPENDED,this.onBufferAppended,this),e.on(I.FRAG_BUFFERED,this.onFragBuffered,this),e.on(I.FRAG_LOADED,this.onFragLoaded,this))}_unregisterListeners(){const{hls:e}=this;e&&(e.off(I.MANIFEST_LOADING,this.onManifestLoading,this),e.off(I.BUFFER_APPENDED,this.onBufferAppended,this),e.off(I.FRAG_BUFFERED,this.onFragBuffered,this),e.off(I.FRAG_LOADED,this.onFragLoaded,this))}destroy(){this._unregisterListeners(),this.hls=this.fragments=this.activePartLists=this.endListFragments=this.timeRanges=null}getAppendedFrag(e,t){const r=this.activePartLists[t];if(r)for(let i=r.length;i--;){const o=r[i];if(!o)break;if(o.start<=e&&e<=o.end&&o.loaded)return o}return this.getBufferedFrag(e,t)}getBufferedFrag(e,t){return this.getFragAtPos(e,t,!0)}getFragAtPos(e,t,r){const{fragments:i}=this,o=Object.keys(i);for(let A=o.length;A--;){const h=i[o[A]];if((h==null?void 0:h.body.type)===t&&(!r||h.buffered)){const y=h.body;if(y.start<=e&&e<=y.end)return y}}return null}detectEvictedFragments(e,t,r,i,o){this.timeRanges&&(this.timeRanges[e]=t);const A=(i==null?void 0:i.fragment.sn)||-1;Object.keys(this.fragments).forEach(h=>{const y=this.fragments[h];if(!y||A>=y.body.sn)return;if(!y.buffered&&(!y.loaded||o)){y.body.type===r&&this.removeFragment(y.body);return}const g=y.range[e];if(g){if(g.time.length===0){this.removeFragment(y.body);return}g.time.some(F=>{const N=!this.isTimeBuffered(F.startPTS,F.endPTS,t);return N&&this.removeFragment(y.body),N})}})}detectPartialFragments(e){const t=this.timeRanges;if(!t||e.frag.sn==="initSegment")return;const r=e.frag,i=Oa(r),o=this.fragments[i];if(!o||o.buffered&&r.gap)return;const A=!r.relurl;Object.keys(t).forEach(h=>{const y=r.elementaryStreams[h];if(!y)return;const g=t[h],F=A||y.partial===!0;o.range[h]=this.getBufferedTimes(r,e.part,F,g)}),o.loaded=null,Object.keys(o.range).length?(o.buffered=!0,(o.body.endList=r.endList||o.body.endList)&&(this.endListFragments[o.body.type]=o),$a(o)||this.removeParts(r.sn-1,r.type)):this.removeFragment(o.body)}removeParts(e,t){const r=this.activePartLists[t];r&&(this.activePartLists[t]=In(r,i=>i.fragment.sn>=e))}fragBuffered(e,t){const r=Oa(e);let i=this.fragments[r];!i&&t&&(i=this.fragments[r]={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,r,i){const o={time:[],partial:r},A=e.start,h=e.end,y=e.minEndPTS||h,g=e.maxStartPTS||A;for(let F=0;F<i.length;F++){const N=i.start(F)-this.bufferPadding,q=i.end(F)+this.bufferPadding;if(g>=N&&y<=q){o.time.push({startPTS:Math.max(A,i.start(F)),endPTS:Math.min(h,i.end(F))});break}else if(A<q&&h>N){const Ae=Math.max(A,i.start(F)),ue=Math.min(h,i.end(F));ue>Ae&&(o.partial=!0,o.time.push({startPTS:Ae,endPTS:ue}))}else if(h<=N)break}return o}getPartialFragment(e){let t=null,r,i,o,A=0;const{bufferPadding:h,fragments:y}=this;return Object.keys(y).forEach(g=>{const F=y[g];F&&$a(F)&&(i=F.body.start-h,o=F.body.end+h,e>=i&&e<=o&&(r=Math.min(e-i,o-e),A<=r&&(t=F.body,A=r)))}),t}isEndListAppended(e){const t=this.endListFragments[e];return t!==void 0&&(t.buffered||$a(t))}getState(e){const t=Oa(e),r=this.fragments[t];return r?r.buffered?$a(r)?Cs.PARTIAL:Cs.OK:Cs.APPENDING:Cs.NOT_LOADED}isTimeBuffered(e,t,r){let i,o;for(let A=0;A<r.length;A++){if(i=r.start(A)-this.bufferPadding,o=r.end(A)+this.bufferPadding,e>=i&&t<=o)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 r=t.frag,i=t.part?null:t,o=Oa(r);this.fragments[o]={body:r,appendedPTS:null,loaded:i,buffered:!1,range:Object.create(null)}}onBufferAppended(e,t){const{frag:r,part:i,timeRanges:o,type:A}=t;if(r.sn==="initSegment")return;const h=r.type;if(i){let g=this.activePartLists[h];g||(this.activePartLists[h]=g=[]),g.push(i)}this.timeRanges=o;const y=o[A];this.detectEvictedFragments(A,y,h,i)}onFragBuffered(e,t){this.detectPartialFragments(t)}hasFragment(e){const t=Oa(e);return!!this.fragments[t]}hasFragments(e){const{fragments:t}=this,r=Object.keys(t);if(!e)return r.length>0;for(let i=r.length;i--;){const o=t[r[i]];if((o==null?void 0:o.body.type)===e)return!0}return!1}hasParts(e){var t;return!!((t=this.activePartLists[e])!=null&&t.length)}removeFragmentsInRange(e,t,r,i,o){i&&!this.hasGaps||Object.keys(this.fragments).forEach(A=>{const h=this.fragments[A];if(!h)return;const y=h.body;y.type!==r||i&&!y.gap||y.start<t&&y.end>e&&(h.buffered||o)&&this.removeFragment(y)})}removeFragment(e){const t=Oa(e);e.clearElementaryStreamInfo();const r=this.activePartLists[e.type];if(r){const i=e.sn;this.activePartLists[e.type]=In(r,o=>o.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(r=>r.clearElementaryStreamInfo())}}function $a(l){var e,t,r;return l.buffered&&!!(l.body.gap||(e=l.range.video)!=null&&e.partial||(t=l.range.audio)!=null&&t.partial||(r=l.range.audiovideo)!=null&&r.partial)}function Oa(l){return`${l.type}_${l.level}_${l.sn}`}function In(l,e){return l.filter(t=>{const r=e(t);return r||t.clearElementaryStreamInfo(),r})}var Ba={cbc:0,ctr:1};class Rs{constructor(e,t,r){this.subtle=void 0,this.aesIV=void 0,this.aesMode=void 0,this.subtle=e,this.aesIV=t,this.aesMode=r}decrypt(e,t){switch(this.aesMode){case Ba.cbc:return this.subtle.decrypt({name:"AES-CBC",iv:this.aesIV},t,e);case Ba.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 Ro(l){const e=l.byteLength,t=e&&new DataView(l.buffer).getUint8(e-1);return t?l.slice(0,e-t):l}class $A{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),r=new Uint32Array(4);for(let i=0;i<4;i++)r[i]=t.getUint32(i*4);return r}initTable(){const e=this.sBox,t=this.invSBox,r=this.subMix,i=r[0],o=r[1],A=r[2],h=r[3],y=this.invSubMix,g=y[0],F=y[1],N=y[2],q=y[3],Ae=new Uint32Array(256);let ue=0,Re=0,ke=0;for(ke=0;ke<256;ke++)ke<128?Ae[ke]=ke<<1:Ae[ke]=ke<<1^283;for(ke=0;ke<256;ke++){let it=Re^Re<<1^Re<<2^Re<<3^Re<<4;it=it>>>8^it&255^99,e[ue]=it,t[it]=ue;const ft=Ae[ue],_t=Ae[ft],zt=Ae[_t];let ir=Ae[it]*257^it*16843008;i[ue]=ir<<24|ir>>>8,o[ue]=ir<<16|ir>>>16,A[ue]=ir<<8|ir>>>24,h[ue]=ir,ir=zt*16843009^_t*65537^ft*257^ue*16843008,g[it]=ir<<24|ir>>>8,F[it]=ir<<16|ir>>>16,N[it]=ir<<8|ir>>>24,q[it]=ir,ue?(ue=ft^Ae[Ae[Ae[zt^ft]]],Re^=Ae[Ae[Re]]):ue=Re=1}}expandKey(e){const t=this.uint8ArrayToUint32Array_(e);let r=!0,i=0;for(;i<t.length&&r;)r=t[i]===this.key[i],i++;if(r)return;this.key=t;const o=this.keySize=t.length;if(o!==4&&o!==6&&o!==8)throw new Error("Invalid aes key size="+o);const A=this.ksRows=(o+6+1)*4;let h,y;const g=this.keySchedule=new Uint32Array(A),F=this.invKeySchedule=new Uint32Array(A),N=this.sBox,q=this.rcon,Ae=this.invSubMix,ue=Ae[0],Re=Ae[1],ke=Ae[2],it=Ae[3];let ft,_t;for(h=0;h<A;h++){if(h<o){ft=g[h]=t[h];continue}_t=ft,h%o===0?(_t=_t<<8|_t>>>24,_t=N[_t>>>24]<<24|N[_t>>>16&255]<<16|N[_t>>>8&255]<<8|N[_t&255],_t^=q[h/o|0]<<24):o>6&&h%o===4&&(_t=N[_t>>>24]<<24|N[_t>>>16&255]<<16|N[_t>>>8&255]<<8|N[_t&255]),g[h]=ft=(g[h-o]^_t)>>>0}for(y=0;y<A;y++)h=A-y,y&3?_t=g[h]:_t=g[h-4],y<4||h<=4?F[y]=_t:F[y]=ue[N[_t>>>24]]^Re[N[_t>>>16&255]]^ke[N[_t>>>8&255]]^it[N[_t&255]],F[y]=F[y]>>>0}networkToHostOrderSwap(e){return e<<24|(e&65280)<<8|(e&16711680)>>8|e>>>24}decrypt(e,t,r){const i=this.keySize+6,o=this.invKeySchedule,A=this.invSBox,h=this.invSubMix,y=h[0],g=h[1],F=h[2],N=h[3],q=this.uint8ArrayToUint32Array_(r);let Ae=q[0],ue=q[1],Re=q[2],ke=q[3];const it=new Int32Array(e),ft=new Int32Array(it.length);let _t,zt,ir,Nr,or,Cr,br,pr,qr,Cn,Yn,ii,On,Tn;const qn=this.networkToHostOrderSwap;for(;t<it.length;){for(qr=qn(it[t]),Cn=qn(it[t+1]),Yn=qn(it[t+2]),ii=qn(it[t+3]),or=qr^o[0],Cr=ii^o[1],br=Yn^o[2],pr=Cn^o[3],On=4,Tn=1;Tn<i;Tn++)_t=y[or>>>24]^g[Cr>>16&255]^F[br>>8&255]^N[pr&255]^o[On],zt=y[Cr>>>24]^g[br>>16&255]^F[pr>>8&255]^N[or&255]^o[On+1],ir=y[br>>>24]^g[pr>>16&255]^F[or>>8&255]^N[Cr&255]^o[On+2],Nr=y[pr>>>24]^g[or>>16&255]^F[Cr>>8&255]^N[br&255]^o[On+3],or=_t,Cr=zt,br=ir,pr=Nr,On=On+4;_t=A[or>>>24]<<24^A[Cr>>16&255]<<16^A[br>>8&255]<<8^A[pr&255]^o[On],zt=A[Cr>>>24]<<24^A[br>>16&255]<<16^A[pr>>8&255]<<8^A[or&255]^o[On+1],ir=A[br>>>24]<<24^A[pr>>16&255]<<16^A[or>>8&255]<<8^A[Cr&255]^o[On+2],Nr=A[pr>>>24]<<24^A[or>>16&255]<<16^A[Cr>>8&255]<<8^A[br&255]^o[On+3],ft[t]=qn(_t^Ae),ft[t+1]=qn(Nr^ue),ft[t+2]=qn(ir^Re),ft[t+3]=qn(zt^ke),Ae=qr,ue=Cn,Re=Yn,ke=ii,t=t+4}return ft.buffer}}class SA{constructor(e,t,r){this.subtle=void 0,this.key=void 0,this.aesMode=void 0,this.subtle=e,this.key=t,this.aesMode=r}expandKey(){const e=YA(this.aesMode);return this.subtle.importKey("raw",this.key,{name:e},!1,["encrypt","decrypt"])}}function YA(l){switch(l){case Ba.cbc:return"AES-CBC";case Ba.ctr:return"AES-CTR";default:throw new Error(`[FastAESKey] invalid aes mode ${l}`)}}const cA=16;class Ms{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 r=self.crypto;r&&(this.subtle=r.subtle||r.webkitSubtle)}catch(r){}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 r=new Uint8Array(e);return this.reset(),this.removePKCS7Padding?Ro(r):r}reset(){this.currentResult=null,this.currentIV=null,this.remainderData=null,this.softwareDecrypter&&(this.softwareDecrypter=null)}decrypt(e,t,r,i){return this.useSoftware?new Promise((o,A)=>{const h=ArrayBuffer.isView(e)?e:new Uint8Array(e);this.softwareDecrypt(h,t,r,i);const y=this.flush();y?o(y.buffer):A(new Error("[softwareDecrypt] Failed to decrypt data"))}):this.webCryptoDecrypt(new Uint8Array(e),t,r,i)}softwareDecrypt(e,t,r,i){const{currentIV:o,currentResult:A,remainderData:h}=this;if(i!==Ba.cbc||t.byteLength!==16)return Qe.warn("SoftwareDecrypt: can only handle AES-128-CBC"),null;this.logOnce("JS AES decrypt"),h&&(e=cr(h,e),this.remainderData=null);const y=this.getValidChunk(e);if(!y.length)return null;o&&(r=o);let g=this.softwareDecrypter;g||(g=this.softwareDecrypter=new $A),g.expandKey(t);const F=A;return this.currentResult=g.decrypt(y.buffer,0,r),this.currentIV=y.slice(-16).buffer,F||null}webCryptoDecrypt(e,t,r,i){if(this.key!==t||!this.fastAesKey){if(!this.subtle)return Promise.resolve(this.onWebCryptoError(e,t,r,i));this.key=t,this.fastAesKey=new SA(this.subtle,t,i)}return this.fastAesKey.expandKey().then(o=>this.subtle?(this.logOnce("WebCrypto AES decrypt"),new Rs(this.subtle,new Uint8Array(r),i).decrypt(e.buffer,o)):Promise.reject(new Error("web crypto not initialized"))).catch(o=>(Qe.warn(`[decrypter]: WebCrypto Error, disable WebCrypto API, ${o.name}: ${o.message}`),this.onWebCryptoError(e,t,r,i)))}onWebCryptoError(e,t,r,i){const o=this.enableSoftwareAES;if(o){this.useSoftware=!0,this.logEnabled=!0,this.softwareDecrypt(e,t,r,i);const A=this.flush();if(A)return A.buffer}throw new Error("WebCrypto"+(o?" and softwareDecrypt":"")+": failed to decrypt data")}getValidChunk(e){let t=e;const r=e.length-e.length%cA;return r!==e.length&&(t=e.slice(0,r),this.remainderData=e.slice(r)),t}logOnce(e){this.logEnabled&&(Qe.log(`[decrypter]: ${e}`),this.logEnabled=!1)}}const IA=Math.pow(2,17);class ua{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 r=e.url;if(!r)return Promise.reject(new Si({type:Me.NETWORK_ERROR,details:de.FRAG_LOAD_ERROR,fatal:!1,frag:e,error:new Error(`Fragment does not have a ${r?"part list":"url"}`),networkDetails:null}));this.abort();const i=this.config,o=i.fLoader,A=i.loader;return new Promise((h,y)=>{if(this.loader&&this.loader.destroy(),e.gap)if(e.tagList.some(ue=>ue[0]==="GAP")){y(xa(e));return}else e.gap=!1;const g=this.loader=o?new o(i):new A(i),F=ca(e);e.loader=g;const N=Pa(i.fragLoadPolicy.default),q={loadPolicy:N,timeout:N.maxLoadTimeMs,maxRetry:0,retryDelay:0,maxRetryDelay:0,highWaterMark:e.sn==="initSegment"?1/0:IA};e.stats=g.stats;const Ae={onSuccess:(ue,Re,ke,it)=>{this.resetLoader(e,g);let ft=ue.data;ke.resetIV&&e.decryptdata&&(e.decryptdata.iv=new Uint8Array(ft.slice(0,16)),ft=ft.slice(16)),h({frag:e,part:null,payload:ft,networkDetails:it})},onError:(ue,Re,ke,it)=>{this.resetLoader(e,g),y(new Si({type:Me.NETWORK_ERROR,details:de.FRAG_LOAD_ERROR,fatal:!1,frag:e,response:B({url:r,data:void 0},ue),error:new Error(`HTTP Error ${ue.code} ${ue.text}`),networkDetails:ke,stats:it}))},onAbort:(ue,Re,ke)=>{this.resetLoader(e,g),y(new Si({type:Me.NETWORK_ERROR,details:de.INTERNAL_ABORTED,fatal:!1,frag:e,error:new Error("Aborted"),networkDetails:ke,stats:ue}))},onTimeout:(ue,Re,ke)=>{this.resetLoader(e,g),y(new Si({type:Me.NETWORK_ERROR,details:de.FRAG_LOAD_TIMEOUT,fatal:!1,frag:e,error:new Error(`Timeout after ${q.timeout}ms`),networkDetails:ke,stats:ue}))}};t&&(Ae.onProgress=(ue,Re,ke,it)=>t({frag:e,part:null,payload:ke,networkDetails:it})),g.load(F,q,Ae)})}loadPart(e,t,r){this.abort();const i=this.config,o=i.fLoader,A=i.loader;return new Promise((h,y)=>{if(this.loader&&this.loader.destroy(),e.gap||t.gap){y(xa(e,t));return}const g=this.loader=o?new o(i):new A(i),F=ca(e,t);e.loader=g;const N=Pa(i.fragLoadPolicy.default),q={loadPolicy:N,timeout:N.maxLoadTimeMs,maxRetry:0,retryDelay:0,maxRetryDelay:0,highWaterMark:IA};t.stats=g.stats,g.load(F,q,{onSuccess:(Ae,ue,Re,ke)=>{this.resetLoader(e,g),this.updateStatsFromPart(e,t);const it={frag:e,part:t,payload:Ae.data,networkDetails:ke};r(it),h(it)},onError:(Ae,ue,Re,ke)=>{this.resetLoader(e,g),y(new Si({type:Me.NETWORK_ERROR,details:de.FRAG_LOAD_ERROR,fatal:!1,frag:e,part:t,response:B({url:F.url,data:void 0},Ae),error:new Error(`HTTP Error ${Ae.code} ${Ae.text}`),networkDetails:Re,stats:ke}))},onAbort:(Ae,ue,Re)=>{e.stats.aborted=t.stats.aborted,this.resetLoader(e,g),y(new Si({type:Me.NETWORK_ERROR,details:de.INTERNAL_ABORTED,fatal:!1,frag:e,part:t,error:new Error("Aborted"),networkDetails:Re,stats:Ae}))},onTimeout:(Ae,ue,Re)=>{this.resetLoader(e,g),y(new Si({type:Me.NETWORK_ERROR,details:de.FRAG_LOAD_TIMEOUT,fatal:!1,frag:e,part:t,error:new Error(`Timeout after ${q.timeout}ms`),networkDetails:Re,stats:Ae}))}})})}updateStatsFromPart(e,t){const r=e.stats,i=t.stats,o=i.total;if(r.loaded+=i.loaded,o){const y=Math.round(e.duration/t.duration),g=Math.min(Math.round(r.loaded/o),y),N=(y-g)*Math.round(r.loaded/g);r.total=r.loaded+N}else r.total=Math.max(r.loaded,r.total);const A=r.loading,h=i.loading;A.start?A.first+=h.first-h.start:(A.start=h.start,A.first=h.first),A.end=h.end}resetLoader(e,t){e.loader=null,this.loader===t&&(self.clearTimeout(this.partLoadTimeout),this.loader=null),t.destroy()}}function ca(l,e=null){const t=e||l,r={frag:l,part:e,responseType:"arraybuffer",url:t.url,headers:{},rangeStart:0,rangeEnd:0},i=t.byteRangeStartOffset,o=t.byteRangeEndOffset;if(Ie(i)&&Ie(o)){var A;let h=i,y=o;if(l.sn==="initSegment"&&Ca((A=l.decryptdata)==null?void 0:A.method)){const g=o-i;g%16&&(y=o+(16-g%16)),i!==0&&(r.resetIV=!0,h=i-16)}r.rangeStart=h,r.rangeEnd=y}return r}function xa(l,e){const t=new Error(`GAP ${l.gap?"tag":"attribute"} found`),r={type:Me.MEDIA_ERROR,details:de.FRAG_GAP,fatal:!1,frag:l,error:t,networkDetails:null};return e&&(r.part=e),(e||l).stats.aborted=!0,new Si(r)}function Ca(l){return l==="AES-128"||l==="AES-256"}class Si extends Error{constructor(e){super(e.error.message),this.data=void 0,this.data=e}}class hA extends V{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 fA{constructor(e,t,r,i=0,o=-1,A=!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=TA(),this.buffering={audio:TA(),video:TA(),audiovideo:TA()},this.level=e,this.sn=t,this.id=r,this.size=i,this.part=o,this.partial=A}}function TA(){return{start:0,executeStart:0,executeEnd:0,end:0}}const Na={length:0,start:()=>0,end:()=>0};class oi{static isBuffered(e,t){if(e){const r=oi.getBuffered(e);for(let i=r.length;i--;)if(t>=r.start(i)&&t<=r.end(i))return!0}return!1}static bufferedRanges(e){if(e){const t=oi.getBuffered(e);return oi.timeRangesToArray(t)}return[]}static timeRangesToArray(e){const t=[];for(let r=0;r<e.length;r++)t.push({start:e.start(r),end:e.end(r)});return t}static bufferInfo(e,t,r){if(e){const i=oi.bufferedRanges(e);if(i.length)return oi.bufferedInfo(i,t,r)}return{len:0,start:t,end:t,bufferedIndex:-1}}static bufferedInfo(e,t,r){t=Math.max(0,t),e.length>1&&e.sort((F,N)=>F.start-N.start||N.end-F.end);let i=-1,o=[];if(r)for(let F=0;F<e.length;F++){t>=e[F].start&&t<=e[F].end&&(i=F);const N=o.length;if(N){const q=o[N-1].end;e[F].start-q<r?e[F].end>q&&(o[N-1].end=e[F].end):o.push(e[F])}else o.push(e[F])}else o=e;let A=0,h,y=t,g=t;for(let F=0;F<o.length;F++){const N=o[F].start,q=o[F].end;if(i===-1&&t>=N&&t<=q&&(i=F),t+r>=N&&t<q)y=N,g=q,A=g-t;else if(t+r<N){h=N;break}}return{len:A,start:y||0,end:g||0,nextStart:h,buffered:e,bufferedIndex:i}}static getBuffered(e){try{return e.buffered||Na}catch(t){return Qe.log("failed to get media.buffered",t),Na}}}const kl=/\{\$([a-zA-Z0-9-_]+)\}/g;function gn(l){return kl.test(l)}function ha(l,e){if(l.variableList!==null||l.hasVariableRefs){const t=l.variableList;return e.replace(kl,r=>{const i=r.substring(2,r.length-1),o=t==null?void 0:t[i];return o===void 0?(l.playlistParsingError||(l.playlistParsingError=new Error(`Missing preceding EXT-X-DEFINE tag for Variable Reference: "${i}"`)),r):o})}return e}function ga(l,e,t){let r=l.variableList;r||(l.variableList=r={});let i,o;if("QUERYPARAM"in e){i=e.QUERYPARAM;try{const A=new self.URL(t).searchParams;if(A.has(i))o=A.get(i);else throw new Error(`"${i}" does not match any query parameter in URI: "${t}"`)}catch(A){l.playlistParsingError||(l.playlistParsingError=new Error(`EXT-X-DEFINE QUERYPARAM: ${A.message}`))}}else i=e.NAME,o=e.VALUE;i in r?l.playlistParsingError||(l.playlistParsingError=new Error(`EXT-X-DEFINE duplicate Variable Name declarations: "${i}"`)):r[i]=o||""}function Ya(l,e,t){const r=e.IMPORT;if(t&&r in t){let i=l.variableList;i||(l.variableList=i={}),i[r]=t[r]}else l.playlistParsingError||(l.playlistParsingError=new Error(`EXT-X-DEFINE IMPORT attribute not found in Multivariant Playlist: "${r}"`))}const Za=/^(\d+)x(\d+)$/,wo=/(.+?)=(".*?"|.*?)(?:,|$)/g;class gi{constructor(e,t){typeof e=="string"&&(e=gi.parseAttrList(e,t)),w(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 r=new Uint8Array(t.length/2);for(let i=0;i<t.length/2;i++)r[i]=parseInt(t.slice(i*2,i*2+2),16);return r}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 r=this[e];return r?parseFloat(r):t}enumeratedString(e){return this[e]}enumeratedStringList(e,t){const r=this[e];return(r?r.split(/[ ,]+/):[]).reduce((i,o)=>(i[o.toLowerCase()]=!0,i),t)}bool(e){return this[e]==="YES"}decimalResolution(e){const t=Za.exec(this[e]);if(t!==null)return{width:parseInt(t[1],10),height:parseInt(t[2],10)}}static parseAttrList(e,t){let r;const i={},o='"';for(wo.lastIndex=0;(r=wo.exec(e))!==null;){const A=r[1].trim();let h=r[2];const y=h.indexOf(o)===0&&h.lastIndexOf(o)===h.length-1;let g=!1;if(y)h=h.slice(1,-1);else switch(A){case"IV":case"SCTE35-CMD":case"SCTE35-IN":case"SCTE35-OUT":g=!0}if(t&&(y||g))h=ha(t,h);else if(!g&&!y)switch(A){case"CLOSED-CAPTIONS":if(h==="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":Qe.warn(`${e}: attribute ${A} is missing quotes`)}i[A]=h}return i}}const Uo="com.apple.hls.interstitial";function Rl(l){return l!=="ID"&&l!=="CLASS"&&l!=="CUE"&&l!=="START-DATE"&&l!=="DURATION"&&l!=="END-DATE"&&l!=="END-ON-NEXT"}function Jl(l){return l==="SCTE35-OUT"||l==="SCTE35-IN"||l==="SCTE35-CMD"}class qa{constructor(e,t,r=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:r,t){const o=t.attr;for(const A in o)if(Object.prototype.hasOwnProperty.call(e,A)&&e[A]!==o[A]){Qe.warn(`DATERANGE tag attribute: "${A}" does not match for tags with ID: "${e.ID}"`),this._badValueForSameId=A;break}e=w(new gi({}),o,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 o=(t==null?void 0:t.endDate)||new Date(this.attr["END-DATE"]);Ie(o.getTime())&&(this._endDate=o)}}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?(Qe.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(Ie(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===Uo}get isValid(){return!!this.id&&!this._badValueForSameId&&Ie(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 pl=10;class Ul{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,r=this.lastPartIndex-e.lastPartIndex;this.updated=this.endSN!==e.endSN||!!r||!!t||!this.live,this.advanced=this.endSN>e.endSN||t>0||t===0&&r>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 r=t.decryptdata;return r||(t.setKeyFormat(e.keyFormat),r=t.decryptdata),!!r&&e.matches(r)})}get hasProgramDateTime(){return this.fragments.length?Ie(this.fragments[this.fragments.length-1].programDateTime):!1}get levelTargetDuration(){return this.averagetargetduration||this.targetduration||pl}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 r=e.length;r--;)if(e[r].index>t)return e[r].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 bo(l,e){return l.length===e.length?!l.some((t,r)=>t!==e[r]):!1}function Eo(l,e){return!l&&!e?!0:!l||!e?!1:bo(l,e)}function Po(l){return l==="AES-128"||l==="AES-256"||l==="AES-256-CTR"}function ZA(l){switch(l){case"AES-128":case"AES-256":return Ba.cbc;case"AES-256-CTR":return Ba.ctr;default:throw new Error(`invalid full segment method ${l}`)}}function FA(l){return Uint8Array.from(atob(l),e=>e.charCodeAt(0))}function dA(l){return Uint8Array.from(unescape(encodeURIComponent(l)),e=>e.charCodeAt(0))}function Ki(l){const e=dA(l).subarray(0,16),t=new Uint8Array(16);return t.set(e,16-e.length),t}function Nn(l){const e=function(r,i,o){const A=r[i];r[i]=r[o],r[o]=A};e(l,0,3),e(l,1,2),e(l,4,5),e(l,6,7)}function Ai(l){const e=l.split(":");let t=null;if(e[0]==="data"&&e.length===2){const r=e[1].split(";"),i=r[r.length-1].split(",");if(i.length===2){const o=i[0]==="base64",A=i[1];o?(r.splice(-1,1),t=FA(A)):t=Ki(A)}}return t}const Bs=typeof self!="undefined"?self:void 0;var fi={CLEARKEY:"org.w3.clearkey",FAIRPLAY:"com.apple.fps",PLAYREADY:"com.microsoft.playready",WIDEVINE:"com.widevine.alpha"},mi={CLEARKEY:"org.w3.clearkey",FAIRPLAY:"com.apple.streamingkeydelivery",PLAYREADY:"com.microsoft.playready",WIDEVINE:"urn:uuid:edef8ba9-79d6-4ace-a3c8-27dcd51d21ed"};function qA(l){switch(l){case mi.FAIRPLAY:return fi.FAIRPLAY;case mi.PLAYREADY:return fi.PLAYREADY;case mi.WIDEVINE:return fi.WIDEVINE;case mi.CLEARKEY:return fi.CLEARKEY}}function za(l){switch(l){case fi.FAIRPLAY:return mi.FAIRPLAY;case fi.PLAYREADY:return mi.PLAYREADY;case fi.WIDEVINE:return mi.WIDEVINE;case fi.CLEARKEY:return mi.CLEARKEY}}function Fs(l){const{drmSystems:e,widevineLicenseUrl:t}=l,r=e?[fi.FAIRPLAY,fi.WIDEVINE,fi.PLAYREADY,fi.CLEARKEY].filter(i=>!!e[i]):[];return!r[fi.WIDEVINE]&&t&&r.push(fi.WIDEVINE),r}const gl=function(l){return Bs!=null&&(l=Bs.navigator)!=null&&l.requestMediaKeySystemAccess?self.navigator.requestMediaKeySystemAccess.bind(self.navigator):null}();function Xa(l,e,t,r){let i;switch(l){case fi.FAIRPLAY:i=["cenc","sinf"];break;case fi.WIDEVINE:case fi.PLAYREADY:i=["cenc"];break;case fi.CLEARKEY:i=["cenc","keyids"];break;default:throw new Error(`Unknown key-system: ${l}`)}return Xc(i,e,t,r)}function Xc(l,e,t,r){return[{initDataTypes:l,persistentState:r.persistentState||"optional",distinctiveIdentifier:r.distinctiveIdentifier||"optional",sessionTypes:r.sessionTypes||[r.sessionType||"temporary"],audioCapabilities:e.map(o=>({contentType:`audio/mp4; codecs=${o}`,robustness:r.audioRobustness||"",encryptionScheme:r.audioEncryptionScheme||null})),videoCapabilities:t.map(o=>({contentType:`video/mp4; codecs=${o}`,robustness:r.videoRobustness||"",encryptionScheme:r.videoEncryptionScheme||null}))}]}function ml(l){var e;return!!l&&(l.sessionType==="persistent-license"||!!((e=l.sessionTypes)!=null&&e.some(t=>t==="persistent-license")))}function pA(l){const e=new Uint16Array(l.buffer,l.byteOffset,l.byteLength/2),t=String.fromCharCode.apply(null,Array.from(e)),r=t.substring(t.indexOf("<"),t.length),A=new DOMParser().parseFromString(r,"text/xml").getElementsByTagName("KID")[0];if(A){const h=A.childNodes[0]?A.childNodes[0].nodeValue:A.getAttribute("VALUE");if(h){const y=FA(h).subarray(0,16);return Nn(y),y}}return null}let Ji={};class vl{static clearKeyUriToKeyIdMap(){Ji={}}static setKeyIdForUri(e,t){Ji[e]=t}constructor(e,t,r,i=[1],o=null,A){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=r,this.keyFormatVersions=i,this.iv=o,this.encrypted=e?e!=="NONE":!1,this.isCommonEncryption=this.encrypted&&!Po(e),A!=null&&A.startsWith("0x")&&(this.keyId=new Uint8Array(M(A)))}matches(e){return e.uri===this.uri&&e.method===this.method&&e.encrypted===this.encrypted&&e.keyFormat===this.keyFormat&&bo(e.keyFormatVersions,this.keyFormatVersions)&&Eo(e.iv,this.iv)&&Eo(e.keyId,this.keyId)}isSupported(){if(this.method){if(Po(this.method)||this.method==="NONE")return!0;if(this.keyFormat==="identity")return this.method==="SAMPLE-AES";switch(this.keyFormat){case mi.FAIRPLAY:case mi.WIDEVINE:case mi.PLAYREADY:case mi.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(Po(this.method)){let o=this.iv;return o||(typeof e!="number"&&(Qe.warn(`missing IV for initialization segment with method="${this.method}" - compliance issue`),e=0),o=ma(e)),new vl(this.method,this.uri,"identity",this.keyFormatVersions,o)}if(this.keyId){const o=Ji[this.uri];if(o&&!bo(this.keyId,o)&&vl.setKeyIdForUri(this.uri,this.keyId),this.pssh)return this}const r=Ai(this.uri);if(r)switch(this.keyFormat){case mi.WIDEVINE:if(this.pssh=r,!this.keyId){const o=Ot(r.buffer);if(o.length){var i;const A=o[0];this.keyId=(i=A.kids)!=null&&i.length?A.kids[0]:null}}this.keyId||(this.keyId=Cc(t));break;case mi.PLAYREADY:{const o=new Uint8Array([154,4,240,121,152,64,66,134,171,146,230,91,224,136,95,149]);this.pssh=ie(o,null,r),this.keyId=pA(r);break}default:{let o=r.subarray(0,16);if(o.length!==16){const A=new Uint8Array(16);A.set(o,16-o.length),o=A}this.keyId=o;break}}if(!this.keyId||this.keyId.byteLength!==16){let o;o=xc(t),o||(o=Cc(t),o||(o=Ji[this.uri])),o&&(this.keyId=o,vl.setKeyIdForUri(this.uri,o))}return this}}function xc(l){const e=l==null?void 0:l[mi.WIDEVINE];return e?e.keyId:null}function Cc(l){const e=l==null?void 0:l[mi.PLAYREADY];if(e){const t=Ai(e.uri);if(t)return pA(t)}return null}function ma(l){const e=new Uint8Array(16);for(let t=12;t<16;t++)e[t]=l>>8*(15-t)&255;return e}const LA=/#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,XA=/#EXT-X-MEDIA:(.*)/g,$0=/^#EXT(?:INF|-X-TARGETDURATION):/m,Ja=new RegExp([/#EXTINF:\s*(\d*(?:\.\d+)?)(?:,(.*)\s+)?/.source,/(?!#) *(\S[^\r\n]*)/.source,/#.*/.source].join("|"),"g"),DA=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 ea{static findGroup(e,t){for(let r=0;r<e.length;r++){const i=e[r];if(i.id===t)return i}}static resolve(e,t){return z.buildAbsoluteURL(t,e,{alwaysNormalize:!0})}static isMediaPlaylist(e){return $0.test(e)}static parseMasterPlaylist(e,t){const r=gn(e),i={contentSteering:null,levels:[],playlistParsingError:null,sessionData:null,sessionKeys:null,startTimeOffset:null,variableList:null,hasVariableRefs:r},o=[];if(LA.lastIndex=0,!e.startsWith("#EXTM3U"))return i.playlistParsingError=new Error("no EXTM3U delimiter"),i;let A;for(;(A=LA.exec(e))!=null;)if(A[1]){var h;const g=new gi(A[1],i),F=ha(i,A[2]),N={attrs:g,bitrate:g.decimalInteger("BANDWIDTH")||g.decimalInteger("AVERAGE-BANDWIDTH"),name:g.NAME,url:ea.resolve(F,t)},q=g.decimalResolution("RESOLUTION");q&&(N.width=q.width,N.height=q.height),lo(g.CODECS,N);const Ae=g["SUPPLEMENTAL-CODECS"];Ae&&(N.supplemental={},lo(Ae,N.supplemental)),(h=N.unknownCodecs)!=null&&h.length||o.push(N),i.levels.push(N)}else if(A[3]){const g=A[3],F=A[4];switch(g){case"SESSION-DATA":{const N=new gi(F,i),q=N["DATA-ID"];q&&(i.sessionData===null&&(i.sessionData={}),i.sessionData[q]=N);break}case"SESSION-KEY":{const N=Sc(F,t,i);N.encrypted&&N.isSupported()?(i.sessionKeys===null&&(i.sessionKeys=[]),i.sessionKeys.push(N)):Qe.warn(`[Keys] Ignoring invalid EXT-X-SESSION-KEY tag: "${F}"`);break}case"DEFINE":{{const N=new gi(F,i);ga(i,N,t)}break}case"CONTENT-STEERING":{const N=new gi(F,i);i.contentSteering={uri:ea.resolve(N["SERVER-URI"],t),pathwayId:N["PATHWAY-ID"]||"."};break}case"START":{i.startTimeOffset=Jc(F);break}}}const y=o.length>0&&o.length<i.levels.length;return i.levels=y?o:i.levels,i.levels.length===0&&(i.playlistParsingError=new Error("no levels found in manifest")),i}static parseMasterPlaylistMedia(e,t,r){let i;const o={},A=r.levels,h={AUDIO:A.map(g=>({id:g.attrs.AUDIO,audioCodec:g.audioCodec})),SUBTITLES:A.map(g=>({id:g.attrs.SUBTITLES,textCodec:g.textCodec})),"CLOSED-CAPTIONS":[]};let y=0;for(XA.lastIndex=0;(i=XA.exec(e))!==null;){const g=new gi(i[1],r),F=g.TYPE;if(F){const N=h[F],q=o[F]||[];o[F]=q;const Ae=g.LANGUAGE,ue=g["ASSOC-LANGUAGE"],Re=g.CHANNELS,ke=g.CHARACTERISTICS,it=g["INSTREAM-ID"],ft={attrs:g,bitrate:0,id:y++,groupId:g["GROUP-ID"]||"",name:g.NAME||Ae||"",type:F,default:g.bool("DEFAULT"),autoselect:g.bool("AUTOSELECT"),forced:g.bool("FORCED"),lang:Ae,url:g.URI?ea.resolve(g.URI,t):""};if(ue&&(ft.assocLang=ue),Re&&(ft.channels=Re),ke&&(ft.characteristics=ke),it&&(ft.instreamId=it),N!=null&&N.length){const _t=ea.findGroup(N,ft.groupId)||N[0];ec(ft,_t,"audioCodec"),ec(ft,_t,"textCodec")}q.push(ft)}}return o}static parseLevelPlaylist(e,t,r,i,o,A){var h;const y={url:t},g=new Ul(t),F=g.fragments,N=[];let q=null,Ae=0,ue=0,Re=0,ke=0,it=0,ft=null,_t=new Ft(i,y),zt,ir,Nr,or=-1,Cr=!1,br=null,pr;if(Ja.lastIndex=0,g.m3u8=e,g.hasVariableRefs=gn(e),((h=Ja.exec(e))==null?void 0:h[0])!=="#EXTM3U")return g.playlistParsingError=new Error("Missing format identifier #EXTM3U"),g;for(;(zt=Ja.exec(e))!==null;){Cr&&(Cr=!1,_t=new Ft(i,y),_t.playlistOffset=Re,_t.setStart(Re),_t.sn=Ae,_t.cc=ke,it&&(_t.bitrate=it),_t.level=r,q&&(_t.initSegment=q,q.rawProgramDateTime&&(_t.rawProgramDateTime=q.rawProgramDateTime,q.rawProgramDateTime=null),br&&(_t.setByteRange(br),br=null)));const ii=zt[1];if(ii){_t.duration=parseFloat(ii);const On=(" "+zt[2]).slice(1);_t.title=On||null,_t.tagList.push(On?["INF",ii,On]:["INF",ii])}else if(zt[3]){if(Ie(_t.duration)){_t.playlistOffset=Re,_t.setStart(Re),Nr&&Y0(_t,Nr,g),_t.sn=Ae,_t.level=r,_t.cc=ke,F.push(_t);const On=(" "+zt[3]).slice(1);_t.relurl=ha(g,On),xo(_t,ft,N),ft=_t,Re+=_t.duration,Ae++,ue=0,Cr=!0}}else{if(zt=zt[0].match(DA),!zt){Qe.warn("No matches on slow regex match for level playlist!");continue}for(ir=1;ir<zt.length&&zt[ir]===void 0;ir++);const On=(" "+zt[ir]).slice(1),Tn=(" "+zt[ir+1]).slice(1),qn=zt[ir+2]?(" "+zt[ir+2]).slice(1):null;switch(On){case"BYTERANGE":ft?_t.setByteRange(Tn,ft):_t.setByteRange(Tn);break;case"PROGRAM-DATE-TIME":_t.rawProgramDateTime=Tn,_t.tagList.push(["PROGRAM-DATE-TIME",Tn]),or===-1&&(or=F.length);break;case"PLAYLIST-TYPE":g.type&&Oo(g,On,zt),g.type=Tn.toUpperCase();break;case"MEDIA-SEQUENCE":g.startSN!==0?Oo(g,On,zt):F.length>0&&Iu(g,On,zt),Ae=g.startSN=parseInt(Tn);break;case"SKIP":{g.skippedSegments&&Oo(g,On,zt);const Mn=new gi(Tn,g),ei=Mn.decimalInteger("SKIPPED-SEGMENTS");if(Ie(ei)){g.skippedSegments+=ei;for(let Dn=ei;Dn--;)F.push(null);Ae+=ei}const Di=Mn.enumeratedString("RECENTLY-REMOVED-DATERANGES");Di&&(g.recentlyRemovedDateranges=(g.recentlyRemovedDateranges||[]).concat(Di.split(" ")));break}case"TARGETDURATION":g.targetduration!==0&&Oo(g,On,zt),g.targetduration=Math.max(parseInt(Tn),1);break;case"VERSION":g.version!==null&&Oo(g,On,zt),g.version=parseInt(Tn);break;case"INDEPENDENT-SEGMENTS":break;case"ENDLIST":g.live||Oo(g,On,zt),g.live=!1;break;case"#":(Tn||qn)&&_t.tagList.push(qn?[Tn,qn]:[Tn]);break;case"DISCONTINUITY":ke++,_t.tagList.push(["DIS"]);break;case"GAP":_t.gap=!0,_t.tagList.push([On]);break;case"BITRATE":_t.tagList.push([On,Tn]),it=parseInt(Tn)*1e3,Ie(it)?_t.bitrate=it:it=0;break;case"DATERANGE":{const Mn=new gi(Tn,g),ei=new qa(Mn,g.dateRanges[Mn.ID],g.dateRangeTagCount);g.dateRangeTagCount++,ei.isValid||g.skippedSegments?g.dateRanges[ei.id]=ei:Qe.warn(`Ignoring invalid DATERANGE tag: "${Tn}"`),_t.tagList.push(["EXT-X-DATERANGE",Tn]);break}case"DEFINE":{{const Mn=new gi(Tn,g);"IMPORT"in Mn?Ya(g,Mn,A):ga(g,Mn,t)}break}case"DISCONTINUITY-SEQUENCE":g.startCC!==0?Oo(g,On,zt):F.length>0&&Iu(g,On,zt),g.startCC=ke=parseInt(Tn);break;case"KEY":{const Mn=Sc(Tn,t,g);if(Mn.isSupported()){if(Mn.method==="NONE"){Nr=void 0;break}Nr||(Nr={});const ei=Nr[Mn.keyFormat];ei!=null&&ei.matches(Mn)||(ei&&(Nr=w({},Nr)),Nr[Mn.keyFormat]=Mn)}else Qe.warn(`[Keys] Ignoring unsupported EXT-X-KEY tag: "${Tn}"`);break}case"START":g.startTimeOffset=Jc(Tn);break;case"MAP":{const Mn=new gi(Tn,g);if(_t.duration){const ei=new Ft(i,y);Sa(ei,Mn,r,Nr),q=ei,_t.initSegment=q,q.rawProgramDateTime&&!_t.rawProgramDateTime&&(_t.rawProgramDateTime=q.rawProgramDateTime)}else{const ei=_t.byteRangeEndOffset;if(ei){const Di=_t.byteRangeStartOffset;br=`${ei-Di}@${Di}`}else br=null;Sa(_t,Mn,r,Nr),q=_t,Cr=!0}q.cc=ke;break}case"SERVER-CONTROL":{pr&&Oo(g,On,zt),pr=new gi(Tn),g.canBlockReload=pr.bool("CAN-BLOCK-RELOAD"),g.canSkipUntil=pr.optionalFloat("CAN-SKIP-UNTIL",0),g.canSkipDateRanges=g.canSkipUntil>0&&pr.bool("CAN-SKIP-DATERANGES"),g.partHoldBack=pr.optionalFloat("PART-HOLD-BACK",0),g.holdBack=pr.optionalFloat("HOLD-BACK",0);break}case"PART-INF":{g.partTarget&&Oo(g,On,zt);const Mn=new gi(Tn);g.partTarget=Mn.decimalFloatingPoint("PART-TARGET");break}case"PART":{let Mn=g.partList;Mn||(Mn=g.partList=[]);const ei=ue>0?Mn[Mn.length-1]:void 0,Di=ue++,Dn=new gi(Tn,g),kn=new Vt(Dn,_t,y,Di,ei);Mn.push(kn),_t.duration+=kn.duration;break}case"PRELOAD-HINT":{const Mn=new gi(Tn,g);g.preloadHint=Mn;break}case"RENDITION-REPORT":{const Mn=new gi(Tn,g);g.renditionReports=g.renditionReports||[],g.renditionReports.push(Mn);break}default:Qe.warn(`line parsed but not handled: ${zt}`);break}}}ft&&!ft.relurl?(F.pop(),Re-=ft.duration,g.partList&&(g.fragmentHint=ft)):g.partList&&(xo(_t,ft,N),_t.cc=ke,g.fragmentHint=_t,Nr&&Y0(_t,Nr,g)),g.targetduration||(g.playlistParsingError=new Error("Missing Target Duration"));const qr=F.length,Cn=F[0],Yn=F[qr-1];if(Re+=g.skippedSegments*g.targetduration,Re>0&&qr&&Yn){g.averagetargetduration=Re/qr;const ii=Yn.sn;g.endSN=ii!=="initSegment"?ii:0,g.live||(Yn.endList=!0),or>0&&(eo(F,or),Cn&&N.unshift(Cn))}return g.fragmentHint&&(Re+=g.fragmentHint.duration),g.totalduration=Re,N.length&&g.dateRangeTagCount&&Cn&&Ma(N,g),g.endCC=ke,g}}function Ma(l,e){let t=l.length;if(!t)if(e.hasProgramDateTime){const h=e.fragments[e.fragments.length-1];l.push(h),t++}else return;const r=l[t-1],i=e.live?1/0:e.totalduration,o=Object.keys(e.dateRanges);for(let h=o.length;h--;){const y=e.dateRanges[o[h]],g=y.startDate.getTime();y.tagAnchor=r.ref;for(let F=t;F--;){var A;if(((A=l[F])==null?void 0:A.sn)<e.startSN)break;const N=Bo(e,g,l,F,i);if(N!==-1){y.tagAnchor=e.fragments[N].ref;break}}}}function Bo(l,e,t,r,i){const o=t[r];if(o){const h=o.programDateTime;if(e>=h||r===0){var A;const y=(((A=t[r+1])==null?void 0:A.start)||i)-o.start;if(e<=h+y*1e3){const g=t[r].sn-l.startSN;if(g<0)return-1;const F=l.fragments;if(F.length>t.length){const q=(t[r+1]||F[F.length-1]).sn-l.startSN;for(let Ae=q;Ae>g;Ae--){const ue=F[Ae].programDateTime;if(e>=ue&&e<ue+F[Ae].duration*1e3)return Ae}}return g}}}return-1}function Sc(l,e,t){var r,i;const o=new gi(l,t),A=(r=o.METHOD)!=null?r:"",h=o.URI,y=o.hexadecimalInteger("IV"),g=o.KEYFORMATVERSIONS,F=(i=o.KEYFORMAT)!=null?i:"identity";h&&o.IV&&!y&&Qe.error(`Invalid IV: ${o.IV}`);const N=h?ea.resolve(h,e):"",q=(g||"1").split("/").map(Number).filter(Number.isFinite);return new vl(A,N,F,q,y,o.KEYID)}function Jc(l){const t=new gi(l).decimalFloatingPoint("TIME-OFFSET");return Ie(t)?t:null}function lo(l,e){let t=(l||"").split(/[ ,]+/).filter(r=>r);["video","audio","text"].forEach(r=>{const i=t.filter(o=>ct(o,r));i.length&&(e[`${r}Codec`]=i.map(o=>o.split("/")[0]).join(","),t=t.filter(o=>i.indexOf(o)===-1))}),e.unknownCodecs=t}function ec(l,e,t){const r=e[t];r&&(l[t]=r)}function eo(l,e){let t=l[e];for(let r=e;r--;){const i=l[r];if(!i)return;i.programDateTime=t.programDateTime-i.duration*1e3,t=i}}function xo(l,e,t){l.rawProgramDateTime?t.push(l):e!=null&&e.programDateTime&&(l.programDateTime=e.endProgramDateTime)}function Sa(l,e,t,r){l.relurl=e.URI,e.BYTERANGE&&l.setByteRange(e.BYTERANGE),l.level=t,l.sn="initSegment",r&&(l.levelkeys=r),l.initSegment=null}function Y0(l,e,t){l.levelkeys=e;const{encryptedFragments:r}=t;(!r.length||r[r.length-1].levelkeys!==e)&&Object.keys(e).some(i=>e[i].isCommonEncryption)&&r.push(l)}function Oo(l,e,t){l.playlistParsingError=new Error(`#EXT-X-${e} must not appear more than once (${t[0]})`)}function Iu(l,e,t){l.playlistParsingError=new Error(`#EXT-X-${e} must appear before the first Media Segment (${t[0]})`)}function Tu(l,e){const t=e.startPTS;if(Ie(t)){let r=0,i;e.sn>l.sn?(r=t-l.start,i=l):(r=l.start-t,i=e),i.duration!==r&&i.setDuration(r)}else e.sn>l.sn?l.cc===e.cc&&l.minEndPTS?e.setStart(l.start+(l.minEndPTS-l.start)):e.setStart(l.start+l.duration):e.setStart(Math.max(l.start-e.duration,0))}function eu(l,e,t,r,i,o,A){r-t<=0&&(A.warn("Fragment should have a positive duration",e),r=t+e.duration,o=i+e.duration);let y=t,g=r;const F=e.startPTS,N=e.endPTS;if(Ie(F)){const it=Math.abs(F-t);l&&it>l.totalduration?A.warn(`media timestamps and playlist times differ by ${it}s for level ${e.level} ${l.url}`):Ie(e.deltaPTS)?e.deltaPTS=Math.max(it,e.deltaPTS):e.deltaPTS=it,y=Math.max(t,F),t=Math.min(t,F),i=e.startDTS!==void 0?Math.min(i,e.startDTS):i,g=Math.min(r,N),r=Math.max(r,N),o=e.endDTS!==void 0?Math.max(o,e.endDTS):o}const q=t-e.start;e.start!==0&&e.setStart(t),e.setDuration(r-e.start),e.startPTS=t,e.maxStartPTS=y,e.startDTS=i,e.endPTS=r,e.minEndPTS=g,e.endDTS=o;const Ae=e.sn;if(!l||Ae<l.startSN||Ae>l.endSN)return 0;let ue;const Re=Ae-l.startSN,ke=l.fragments;for(ke[Re]=e,ue=Re;ue>0;ue--)Tu(ke[ue],ke[ue-1]);for(ue=Re;ue<ke.length-1;ue++)Tu(ke[ue],ke[ue+1]);return l.fragmentHint&&Tu(ke[ke.length-1],l.fragmentHint),l.PTSKnown=l.alignedSliding=!0,q}function Z0(l,e,t){if(l===e)return;let r=null;const i=l.fragments;for(let F=i.length-1;F>=0;F--){const N=i[F].initSegment;if(N){r=N;break}}l.fragmentHint&&delete l.fragmentHint.endPTS;let o;tu(l,e,(F,N,q,Ae)=>{if((!e.startCC||e.skippedSegments)&&N.cc!==F.cc){const ue=F.cc-N.cc;for(let Re=q;Re<Ae.length;Re++)Ae[Re].cc+=ue;e.endCC=Ae[Ae.length-1].cc}Ie(F.startPTS)&&Ie(F.endPTS)&&(N.setStart(N.startPTS=F.startPTS),N.startDTS=F.startDTS,N.maxStartPTS=F.maxStartPTS,N.endPTS=F.endPTS,N.endDTS=F.endDTS,N.minEndPTS=F.minEndPTS,N.setDuration(F.endPTS-F.startPTS),N.duration&&(o=N),e.PTSKnown=e.alignedSliding=!0),F.hasStreams&&(N.elementaryStreams=F.elementaryStreams),N.loader=F.loader,F.hasStats&&(N.stats=F.stats),F.initSegment&&(N.initSegment=F.initSegment,r=F.initSegment)});const A=e.fragments,h=e.fragmentHint?A.concat(e.fragmentHint):A;if(r&&h.forEach(F=>{var N;F&&(!F.initSegment||F.initSegment.relurl===((N=r)==null?void 0:N.relurl))&&(F.initSegment=r)}),e.skippedSegments){if(e.deltaUpdateFailed=A.some(F=>!F),e.deltaUpdateFailed){t.warn("[level-helper] Previous playlist missing segments skipped in delta playlist");for(let F=e.skippedSegments;F--;)A.shift();e.startSN=A[0].sn}else{e.canSkipDateRanges&&(e.dateRanges=Ga(l.dateRanges,e,t));const F=l.fragments.filter(N=>N.rawProgramDateTime);if(l.hasProgramDateTime&&!e.hasProgramDateTime)for(let N=1;N<h.length;N++)h[N].programDateTime===null&&xo(h[N],h[N-1],F);Ma(F,e)}e.endCC=A[A.length-1].cc}if(!e.startCC){var y;const F=r0(l,e.startSN-1);e.startCC=(y=F==null?void 0:F.cc)!=null?y:A[0].cc}e0(l.partList,e.partList,(F,N)=>{N.elementaryStreams=F.elementaryStreams,N.stats=F.stats}),o?eu(e,o,o.startPTS,o.endPTS,o.startDTS,o.endDTS,t):gA(l,e),A.length&&(e.totalduration=e.edge-A[0].start),e.driftStartTime=l.driftStartTime,e.driftStart=l.driftStart;const g=e.advancedDateTime;if(e.advanced&&g){const F=e.edge;e.driftStart||(e.driftStartTime=g,e.driftStart=F),e.driftEndTime=g,e.driftEnd=F}else e.driftEndTime=l.driftEndTime,e.driftEnd=l.driftEnd,e.advancedDateTime=l.advancedDateTime;e.requestScheduled===-1&&(e.requestScheduled=l.requestScheduled)}function Ga(l,e,t){const{dateRanges:r,recentlyRemovedDateranges:i}=e,o=w({},l);i&&i.forEach(y=>{delete o[y]});const h=Object.keys(o).length;return h?(Object.keys(r).forEach(y=>{const g=o[y],F=new qa(r[y].attr,g);F.isValid?(o[y]=F,g||(F.tagOrder+=h)):t.warn(`Ignoring invalid Playlist Delta Update DATERANGE tag: "${Vn(r[y].attr)}"`)}),o):r}function e0(l,e,t){if(l&&e){let r=0;for(let i=0,o=l.length;i<=o;i++){const A=l[i],h=e[i+r];A&&h&&A.index===h.index&&A.fragment.sn===h.fragment.sn?t(A,h):r--}}}function tu(l,e,t){const r=e.skippedSegments,i=Math.max(l.startSN,e.startSN)-e.startSN,o=(l.fragmentHint?1:0)+(r?e.endSN:Math.min(l.endSN,e.endSN))-e.startSN,A=e.startSN-l.startSN,h=e.fragmentHint?e.fragments.concat(e.fragmentHint):e.fragments,y=l.fragmentHint?l.fragments.concat(l.fragmentHint):l.fragments;for(let g=i;g<=o;g++){const F=y[A+g];let N=h[g];if(r&&!N&&F&&(N=e.fragments[g]=F),F&&N){t(F,N,g,h);const q=F.relurl,Ae=N.relurl;if(q&&i0(q,Ae)){e.playlistParsingError=ru(`media sequence mismatch ${N.sn}:`,l,e,F,N);return}else if(F.cc!==N.cc){e.playlistParsingError=ru(`discontinuity sequence mismatch (${F.cc}!=${N.cc})`,l,e,F,N);return}}}}function ru(l,e,t,r,i){return new Error(`${l} ${i.url}
|
|
|
Playlist starting @${e.startSN}
|
|
|
${e.m3u8}
|
|
|
|
|
|
Playlist starting @${t.startSN}
|
|
|
${t.m3u8}`)}function gA(l,e,t=!0){const r=e.startSN+e.skippedSegments-l.startSN,i=l.fragments,o=r>=0;let A=0;if(o&&r<i.length)A=i[r].start;else if(o&&e.startSN===l.endSN+1)A=l.fragmentEnd;else if(o&&t)A=l.fragmentStart+r*e.levelTargetDuration;else if(!e.skippedSegments&&e.fragmentStart===0)A=l.fragmentStart;else return;t0(e,A)}function t0(l,e){if(e){const t=l.fragments;for(let r=l.skippedSegments;r<t.length;r++)t[r].addStart(e);l.fragmentHint&&l.fragmentHint.addStart(e)}}function JA(l,e=1/0){let t=1e3*l.targetduration;if(l.updated){const r=l.fragments;if(r.length&&t*4>e){const o=r[r.length-1].duration*1e3;o<t&&(t=o)}}else t/=2;return Math.round(t)}function r0(l,e,t){if(!l)return null;let r=l.fragments[e-l.startSN];return r||(r=l.fragmentHint,r&&r.sn===e)?r:e<l.startSN&&t&&t.sn===e?t:null}function q0(l,e,t){return l?Fu(l.partList,e,t):null}function Fu(l,e,t){if(l)for(let r=l.length;r--;){const i=l[r];if(i.index===t&&i.fragment.sn===e)return i}return null}function n0(l){l.forEach((e,t)=>{var r;(r=e.details)==null||r.fragments.forEach(i=>{i.level=t,i.initSegment&&(i.initSegment.level=t)})})}function i0(l,e){return l!==e&&e?Ic(l)!==Ic(e):!1}function Ic(l){return l.replace(/\?[^?]*$/,"")}function Pl(l,e){for(let r=0,i=l.length;r<i;r++){var t;if(((t=l[r])==null?void 0:t.cc)===e)return l[r]}return null}function ss(l,e){return!!(l&&e.startCC<l.endCC&&e.endCC>l.startCC)}function qo(l,e){const t=l.start+e;l.startPTS=t,l.setStart(t),l.endPTS=t+l.duration}function mA(l,e){const t=e.fragments;for(let r=0,i=t.length;r<i;r++)qo(t[r],l);e.fragmentHint&&qo(e.fragmentHint,l),e.alignedSliding=!0}function X0(l,e){l&&(kA(e,l),e.alignedSliding||Ol(e,l),!e.alignedSliding&&!e.skippedSegments&&gA(l,e,!1))}function kA(l,e){if(!ss(e,l))return;const t=Math.min(e.endCC,l.endCC),r=Pl(e.fragments,t),i=Pl(l.fragments,t);if(!r||!i)return;Qe.log(`Aligning playlist at start of dicontinuity sequence ${t}`);const o=r.start-i.start;mA(o,l)}function Ol(l,e){if(!l.hasProgramDateTime||!e.hasProgramDateTime)return;const t=l.fragments,r=e.fragments;if(!t.length||!r.length)return;let i,o;const A=Math.min(e.endCC,l.endCC);e.startCC<A&&l.startCC<A&&(i=Pl(r,A),o=Pl(t,A)),(!i||!o)&&(i=r[Math.floor(r.length/2)],o=Pl(t,i.cc)||t[Math.floor(t.length/2)]);const h=i.programDateTime,y=o.programDateTime;if(!h||!y)return;const g=(y-h)/1e3-(o.start-i.start);mA(g,l)}function Qa(l,e,t){to(l,e,t),l.addEventListener(e,t)}function to(l,e,t){l.removeEventListener(e,t)}const Tc={toString:function(l){let e="";const t=l.length;for(let r=0;r<t;r++)e+=`[${l.start(r).toFixed(3)}-${l.end(r).toFixed(3)}]`;return e}},Zr={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 RA extends hA{constructor(e,t,r,i,o){super(i,e.logger),this.hls=void 0,this.fragPrevious=null,this.fragCurrent=null,this.fragmentTracker=void 0,this.transmuxer=null,this._state=Zr.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:A,fragCurrent:h,media:y,mediaBuffer:g,state:F}=this,N=y?y.currentTime:0,q=oi.bufferInfo(g||y,N,A.maxBufferHole),Ae=!q.len;if(this.log(`Media seeking to ${Ie(N)?N.toFixed(3):N}, state: ${F}, ${Ae?"out of":"in"} buffer`),this.state===Zr.ENDED)this.resetLoadingState();else if(h){const ue=A.maxFragLookUpTolerance,Re=h.start-ue,ke=h.start+h.duration+ue;if(Ae||ke<q.start||Re>q.end){const it=N>ke;(N<Re||it)&&(it&&h.loader&&(this.log(`Cancelling fragment load for seek (sn: ${h.sn})`),h.abortRequests(),this.resetLoadingState()),this.fragPrevious=null)}}if(y){this.fragmentTracker.removeFragmentsInRange(N,1/0,this.playlistType,!0);const ue=this.lastCurrentTime;if(N>ue&&(this.lastCurrentTime=N),!this.loadingParts){const Re=Math.max(q.end,N),ke=this.shouldLoadParts(this.getLevelDetails(),Re);ke&&(this.log(`LL-Part loading ON after seeking to ${N.toFixed(2)} with buffer @${Re.toFixed(2)}`),this.loadingParts=ke)}}this.hls.hasEnoughToStart||(this.log(`Setting ${Ae?"startPosition":"nextLoadPosition"} to ${N} for seek without enough to start`),this.nextLoadPosition=N,Ae&&(this.startPosition=N)),Ae&&this.state===Zr.IDLE&&this.tickImmediate()},this.onMediaEnded=()=>{this.log("setting startPosition to 0 because media ended"),this.startPosition=this.lastCurrentTime=0},this.playlistType=o,this.hls=e,this.fragmentLoader=new ua(e.config),this.keyLoader=r,this.fragmentTracker=t,this.config=e.config,this.decrypter=new Ms(e.config)}registerListeners(){const{hls:e}=this;e.on(I.MEDIA_ATTACHED,this.onMediaAttached,this),e.on(I.MEDIA_DETACHING,this.onMediaDetaching,this),e.on(I.MANIFEST_LOADING,this.onManifestLoading,this),e.on(I.MANIFEST_LOADED,this.onManifestLoaded,this),e.on(I.ERROR,this.onError,this)}unregisterListeners(){const{hls:e}=this;e.off(I.MEDIA_ATTACHED,this.onMediaAttached,this),e.off(I.MEDIA_DETACHING,this.onMediaDetaching,this),e.off(I.MANIFEST_LOADING,this.onManifestLoading,this),e.off(I.MANIFEST_LOADED,this.onManifestLoaded,this),e.off(I.ERROR,this.onError,this)}doTick(){this.onTickEnd()}onTickEnd(){}startLoad(e){}stopLoad(){if(this.state===Zr.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=Zr.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 r=e.end||0,i=this.config.timelineOffset||0;if(r<=i)return!1;const o=e.buffered;this.config.maxBufferHole&&o&&o.length>1&&(e=oi.bufferedInfo(o,e.start,0));const A=e.nextStart;if(A&&A>i&&A<t.edge||this.media.currentTime<e.start)return!1;const y=t.partList;if(y!=null&&y.length){const F=y[y.length-1];return oi.isBuffered(this.media,F.start+F.duration/2)}const g=t.fragments[t.fragments.length-1].type;return this.fragmentTracker.isEndListAppended(g)}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 r=this.media=this.mediaBuffer=t.media;Qa(r,"seeking",this.onMediaSeeking),Qa(r,"ended",this.onMediaEnded);const i=this.config;this.levels&&i.autoStartLoad&&this.state===Zr.STOPPED&&this.startLoad(i.startPosition)}onMediaDetaching(e,t){const r=!!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),to(i,"seeking",this.onMediaSeeking),to(i,"ended",this.onMediaEnded),this.keyLoader&&!r&&this.keyLoader.detach(),this.media=this.mediaBuffer=null,this.loopSn=void 0,r){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=Zr.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,r){this.startFragRequested=!0,this._loadFragForPlayback(e,t,r)}_loadFragForPlayback(e,t,r){const i=o=>{const A=o.frag;if(this.fragContextChanged(A)){this.warn(`${A.type} sn: ${A.sn}${o.part?" part: "+o.part.index:""} of ${this.fragInfo(A,!1,o.part)}) was dropped during download.`),this.fragmentTracker.removeFragment(A);return}A.stats.chunkCount++,this._handleFragmentLoadProgress(o)};this._doFragLoad(e,t,r,i).then(o=>{if(!o)return;const A=this.state,h=o.frag;if(this.fragContextChanged(h)){(A===Zr.FRAG_LOADING||!this.fragCurrent&&A===Zr.PARSING)&&(this.fragmentTracker.removeFragment(h),this.state=Zr.IDLE);return}"payload"in o&&(this.log(`Loaded ${h.type} sn: ${h.sn} of ${this.playlistLabel()} ${h.level}`),this.hls.trigger(I.FRAG_LOADED,o)),this._handleFragmentLoadComplete(o)}).catch(o=>{this.state===Zr.STOPPED||this.state===Zr.ERROR||(this.warn(`Frag error: ${(o==null?void 0:o.message)||o}`),this.resetFragmentLoading(e))})}clearTrackerIfNeeded(e){var t;const{fragmentTracker:r}=this;if(r.getState(e)===Cs.APPENDING){const o=e.type,A=this.getFwdBufferInfo(this.mediaBuffer,o),h=Math.max(e.duration,A?A.len:this.config.maxBufferLength),y=this.backtrackFragment;((y?e.sn-y.sn:0)===1||this.reduceMaxBufferLength(h,e.duration))&&r.removeFragment(e)}else((t=this.mediaBuffer)==null?void 0:t.buffered.length)===0?r.removeAllFragments():r.hasParts(e.type)&&(r.detectPartialFragments({frag:e,part:null,stats:e.stats,id:e.type}),r.getState(e)===Cs.PARTIAL&&r.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,r=null){if(!(e-t))return;const i={startOffset:e,endOffset:t,type:r};this.hls.trigger(I.BUFFER_FLUSHING,i)}_loadInitSegment(e,t){this._doFragLoad(e,t).then(r=>{const i=r==null?void 0:r.frag;if(!i||this.fragContextChanged(i)||!this.levels)throw new Error("init load aborted");return r}).then(r=>{const{hls:i}=this,{frag:o,payload:A}=r,h=o.decryptdata;if(A&&A.byteLength>0&&h!=null&&h.key&&h.iv&&Po(h.method)){const y=self.performance.now();return this.decrypter.decrypt(new Uint8Array(A),h.key.buffer,h.iv.buffer,ZA(h.method)).catch(g=>{throw i.trigger(I.ERROR,{type:Me.MEDIA_ERROR,details:de.FRAG_DECRYPT_ERROR,fatal:!1,error:g,reason:g.message,frag:o}),g}).then(g=>{const F=self.performance.now();return i.trigger(I.FRAG_DECRYPTED,{frag:o,payload:g,stats:{tstart:y,tdecrypt:F}}),r.payload=g,this.completeInitSegmentLoad(r)})}return this.completeInitSegmentLoad(r)}).catch(r=>{this.state===Zr.STOPPED||this.state===Zr.ERROR||(this.warn(r),this.resetFragmentLoading(e))})}completeInitSegmentLoad(e){const{levels:t}=this;if(!t)throw new Error("init load aborted, missing levels");const r=e.frag.stats;this.state!==Zr.STOPPED&&(this.state=Zr.IDLE),e.frag.data=new Uint8Array(e.payload),r.parsing.start=r.buffering.start=self.performance.now(),r.parsing.end=r.buffering.end=self.performance.now(),this.tick()}unhandledEncryptionError(e,t){var r,i;const o=e.tracks;if(o&&!t.encrypted&&((r=o.audio)!=null&&r.encrypted||(i=o.video)!=null&&i.encrypted)&&(!this.config.emeEnabled||!this.keyLoader.emeController)){const A=this.media,h=new Error(`Encrypted track with no key in ${this.fragInfo(t)} (media ${A?"attached mediaKeys: "+A.mediaKeys:"detached"})`);return this.warn(h.message),!A||A.mediaKeys?!1:(this.hls.trigger(I.ERROR,{type:Me.KEY_SYSTEM_ERROR,details:de.KEY_SYSTEM_NO_KEYS,fatal:!1,error:h,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 r=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:${r?Tc.toString(oi.getBuffered(r)):"(detached)"})`),ut(e)){var i;if(e.type!==R.SUBTITLE){const A=e.elementaryStreams;if(!Object.keys(A).some(h=>!!A[h])){this.state=Zr.IDLE;return}}const o=(i=this.levels)==null?void 0:i[e.level];o!=null&&o.fragmentError&&(this.log(`Resetting level fragment error count of ${o.fragmentError} on frag buffered`),o.fragmentError=0)}this.state=Zr.IDLE}_handleFragmentLoadComplete(e){const{transmuxer:t}=this;if(!t)return;const{frag:r,part:i,partsLoaded:o}=e,A=!o||o.length===0||o.some(y=>!y),h=new fA(r.level,r.sn,r.stats.chunkCount+1,0,i?i.index:-1,!A);t.flush(h)}_handleFragmentLoadProgress(e){}_doFragLoad(e,t,r=null,i){var o;this.fragCurrent=e;const A=t.details;if(!this.levels||!A)throw new Error(`frag load aborted, missing level${A?"":" detail"}s`);let h=null;if(e.encrypted&&!((o=e.decryptdata)!=null&&o.key)){if(this.log(`Loading key for ${e.sn} of [${A.startSN}-${A.endSN}], ${this.playlistLabel()} ${e.level}`),this.state=Zr.KEY_LOADING,this.fragCurrent=e,h=this.keyLoader.load(e).then(q=>{if(!this.fragContextChanged(q.frag))return this.hls.trigger(I.KEY_LOADED,q),this.state===Zr.KEY_LOADING&&(this.state=Zr.IDLE),q}),this.hls.trigger(I.KEY_LOADING,{frag:e}),this.fragCurrent===null)return this.log("context changed in KEY_LOADING"),Promise.resolve(null)}else e.encrypted||(h=this.keyLoader.loadClear(e,A.encryptedFragments,this.startFragRequested),h&&this.log("[eme] blocking frag load until media-keys acquired"));const y=this.fragPrevious;if(ut(e)&&(!y||e.sn!==y.sn)){const q=this.shouldLoadParts(t.details,e.end);q!==this.loadingParts&&(this.log(`LL-Part loading ${q?"ON":"OFF"} loading sn ${y==null?void 0:y.sn}->${e.sn}`),this.loadingParts=q)}if(r=Math.max(e.start,r||0),this.loadingParts&&ut(e)){const q=A.partList;if(q&&i){r>A.fragmentEnd&&A.fragmentHint&&(e=A.fragmentHint);const Ae=this.getNextPart(q,e,r);if(Ae>-1){const ue=q[Ae];e=this.fragCurrent=ue.fragment,this.log(`Loading ${e.type} sn: ${e.sn} part: ${ue.index} (${Ae}/${q.length-1}) of ${this.fragInfo(e,!1,ue)}) cc: ${e.cc} [${A.startSN}-${A.endSN}], target: ${parseFloat(r.toFixed(3))}`),this.nextLoadPosition=ue.start+ue.duration,this.state=Zr.FRAG_LOADING;let Re;return h?Re=h.then(ke=>!ke||this.fragContextChanged(ke.frag)?null:this.doFragPartsLoad(e,ue,t,i)).catch(ke=>this.handleFragLoadError(ke)):Re=this.doFragPartsLoad(e,ue,t,i).catch(ke=>this.handleFragLoadError(ke)),this.hls.trigger(I.FRAG_LOADING,{frag:e,part:ue,targetBufferTime:r}),this.fragCurrent===null?Promise.reject(new Error("frag load aborted, context changed in FRAG_LOADING parts")):Re}else if(!e.url||this.loadedEndOfParts(q,r))return Promise.resolve(null)}}if(ut(e)&&this.loadingParts){var g;this.log(`LL-Part loading OFF after next part miss @${r.toFixed(2)} Check buffer at sn: ${e.sn} loaded parts: ${(g=A.partList)==null?void 0:g.filter(q=>q.loaded).map(q=>`[${q.start}-${q.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} ${"["+A.startSN+"-"+A.endSN+"]"}, target: ${parseFloat(r.toFixed(3))}`),Ie(e.sn)&&!this.bitrateTest&&(this.nextLoadPosition=e.start+e.duration),this.state=Zr.FRAG_LOADING;const F=this.config.progressive;let N;return F&&h?N=h.then(q=>!q||this.fragContextChanged(q.frag)?null:this.fragmentLoader.load(e,i)).catch(q=>this.handleFragLoadError(q)):N=Promise.all([this.fragmentLoader.load(e,F?i:void 0),h]).then(([q])=>(!F&&i&&i(q),q)).catch(q=>this.handleFragLoadError(q)),this.hls.trigger(I.FRAG_LOADING,{frag:e,targetBufferTime:r}),this.fragCurrent===null?Promise.reject(new Error("frag load aborted, context changed in FRAG_LOADING")):N}doFragPartsLoad(e,t,r,i){return new Promise((o,A)=>{var h;const y=[],g=(h=r.details)==null?void 0:h.partList,F=N=>{this.fragmentLoader.loadPart(e,N,i).then(q=>{y[N.index]=q;const Ae=q.part;this.hls.trigger(I.FRAG_LOADED,q);const ue=q0(r.details,e.sn,N.index+1)||Fu(g,e.sn,N.index+1);if(ue)F(ue);else return o({frag:e,part:Ae,partsLoaded:y})}).catch(A)};F(t)})}handleFragLoadError(e){if("data"in e){const t=e.data;t.frag&&t.details===de.INTERNAL_ABORTED?this.handleFragLoadAborted(t.frag,t.part):t.frag&&t.type===Me.KEY_SYSTEM_ERROR?(t.frag.abortRequests(),this.resetStartWhenNotLoaded(),this.resetFragmentLoading(t.frag)):this.hls.trigger(I.ERROR,t)}else this.hls.trigger(I.ERROR,{type:Me.OTHER_ERROR,details:de.INTERNAL_EXCEPTION,err:e,error:e,fatal:!0});return null}_handleTransmuxerFlush(e){const t=this.getCurrentContext(e);if(!t||this.state!==Zr.PARSING){!this.fragCurrent&&this.state!==Zr.STOPPED&&this.state!==Zr.ERROR&&(this.state=Zr.IDLE);return}const{frag:r,part:i,level:o}=t,A=self.performance.now();r.stats.parsing.end=A,i&&(i.stats.parsing.end=A);const h=this.getLevelDetails(),g=h&&r.sn>h.endSN||this.shouldLoadParts(h,r.end);g!==this.loadingParts&&(this.log(`LL-Part loading ${g?"ON":"OFF"} after parsing segment ending @${r.end.toFixed(2)}`),this.loadingParts=g),this.updateLevelTiming(r,i,o,e.partial)}shouldLoadParts(e,t){if(this.config.lowLatencyMode){if(!e)return this.loadingParts;if(e.partList){var r;const o=e.partList[0];if(o.fragment.type===R.SUBTITLE)return!1;const A=o.end+(((r=e.fragmentHint)==null?void 0:r.duration)||0);if(t>=A){var i;if((this.hls.hasEnoughToStart?((i=this.media)==null?void 0:i.currentTime)||this.lastCurrentTime:this.getLoadPosition())>o.start-o.fragment.duration)return!0}}}return!1}getCurrentContext(e){const{levels:t,fragCurrent:r}=this,{level:i,sn:o,part:A}=e;if(!(t!=null&&t[i]))return this.warn(`Levels object was unset while buffering fragment ${o} of ${this.playlistLabel()} ${i}. The current chunk will not be buffered.`),null;const h=t[i],y=h.details,g=A>-1?q0(y,o,A):null,F=g?g.fragment:r0(y,o,r);return F?(r&&r!==F&&(F.stats=r.stats),{frag:F,part:g,level:h}):null}bufferFragmentData(e,t,r,i,o){if(this.state!==Zr.PARSING)return;const{data1:A,data2:h}=e;let y=A;if(h&&(y=cr(A,h)),!y.length)return;const g=this.initPTS[t.cc],F=g?-g.baseTime/g.timescale:void 0,N={type:e.type,frag:t,part:r,chunkMeta:i,offset:F,parent:t.type,data:y};if(this.hls.trigger(I.BUFFER_APPENDING,N),e.dropped&&e.independent&&!r){if(o)return;this.flushBufferGap(t)}}flushBufferGap(e){const t=this.media;if(!t)return;if(!oi.isBuffered(t,t.currentTime)){this.flushMainBuffer(0,e.start);return}const r=t.currentTime,i=oi.bufferInfo(t,r,0),o=e.duration,A=Math.min(this.config.maxFragLookUpTolerance*2,o*.25),h=Math.max(Math.min(e.start-A,i.end-A),r+A);e.start-h>A&&this.flushMainBuffer(h,e.start)}getFwdBufferInfo(e,t){var r;const i=this.getLoadPosition();if(!Ie(i))return null;const A=this.lastCurrentTime>i||(r=this.media)!=null&&r.paused?0:this.config.maxBufferHole;return this.getFwdBufferInfoAtPos(e,i,t,A)}getFwdBufferInfoAtPos(e,t,r,i){const o=oi.bufferInfo(e,t,i);if(o.len===0&&o.nextStart!==void 0){const A=this.fragmentTracker.getBufferedFrag(t,r);if(A&&(o.nextStart<=A.end||A.gap)){const h=Math.max(Math.min(o.nextStart,A.end)-t,i);return oi.bufferInfo(e,t,h)}}return o}getMaxBufferLength(e){const{config:t}=this;let r;return e?r=Math.max(8*t.maxBufferSize/e,t.maxBufferLength):r=t.maxBufferLength,Math.min(r,t.maxMaxBufferLength)}reduceMaxBufferLength(e,t){const r=this.config,i=Math.max(Math.min(e-t,r.maxBufferLength),t),o=Math.max(e-t*3,r.maxMaxBufferLength/2,i);return o>=i?(r.maxMaxBufferLength=o,this.warn(`Reduce max buffer length to ${o}s`),!0):!1}getAppendedFrag(e,t=R.MAIN){const r=this.fragmentTracker?this.fragmentTracker.getAppendedFrag(e,t):null;return r&&"fragment"in r?r.fragment:r}getNextFragment(e,t){const r=t.fragments,i=r.length;if(!i)return null;const{config:o}=this,A=r[0].start,h=o.lowLatencyMode&&!!t.partList;let y=null;if(t.live){const N=o.initialLiveManifestSize;if(i<N)return this.warn(`Not enough fragments to start playback (have: ${i}, need: ${N})`),null;if(!t.PTSKnown&&!this.startFragRequested&&this.startPosition===-1||e<A){var g;h&&!this.loadingParts&&(this.log("LL-Part loading ON for initial live fragment"),this.loadingParts=!0),y=this.getInitialLiveFragment(t);const q=this.hls.startPosition,Ae=this.hls.liveSyncPosition,ue=y?(q!==-1&&q>=A?q:Ae)||y.start:e;this.log(`Setting startPosition to ${ue} to match start frag at live edge. mainStart: ${q} liveSyncPosition: ${Ae} frag.start: ${(g=y)==null?void 0:g.start}`),this.startPosition=this.nextLoadPosition=ue}}else e<=A&&(y=r[0]);if(!y){const N=this.loadingParts?t.partEnd:t.fragmentEnd;y=this.getFragmentAtPosition(e,N,t)}let F=this.filterReplacedPrimary(y,t);if(!F&&y){const N=y.sn-t.startSN;F=this.filterReplacedPrimary(r[N+1]||null,t)}return this.mapToInitFragWhenRequired(F)}isLoopLoading(e,t){const r=this.fragmentTracker.getState(e);return(r===Cs.OK||r===Cs.PARTIAL&&!!e.gap)&&this.nextLoadPosition>t}getNextFragmentLoopLoading(e,t,r,i,o){let A=null;if(e.gap&&(A=this.getNextFragment(this.nextLoadPosition,t),A&&!A.gap&&r.nextStart)){const h=this.getFwdBufferInfoAtPos(this.mediaBuffer?this.mediaBuffer:this.media,r.nextStart,i,0);if(h!==null&&r.len+h.len>=o){const y=A.sn;return this.loopSn!==y&&(this.log(`buffer full after gaps in "${i}" playlist starting at sn: ${y}`),this.loopSn=y),null}}return this.loopSn=void 0,A}get primaryPrefetch(){if(nu(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(nu(this.config)&&e.type!==R.SUBTITLE){const r=this.hls.interstitialsManager,i=r==null?void 0:r.bufferingItem;if(i){const A=i.event;if(A){if(A.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 o=r==null?void 0:r.playerQueue;if(o)for(let A=o.length;A--;){const h=o[A].interstitial;if(h.appendInPlace&&e.start>=h.startTime&&e.end<=h.resumeTime)return null}}return e}mapToInitFragWhenRequired(e){return e!=null&&e.initSegment&&!e.initSegment.data&&!this.bitrateTest?e.initSegment:e}getNextPart(e,t,r){let i=-1,o=!1,A=!0;for(let h=0,y=e.length;h<y;h++){const g=e[h];if(A=A&&!g.independent,i>-1&&r<g.start)break;const F=g.loaded;F?i=-1:(o||(g.independent||A)&&g.fragment===t)&&(g.fragment!==t&&this.warn(`Need buffer at ${r} but next unloaded part starts at ${g.start}`),i=h),o=F}return i}loadedEndOfParts(e,t){let r;for(let i=e.length;i--;){if(r=e[i],!r.loaded)return!1;if(t>r.start)return!0}return!1}getInitialLiveFragment(e){const t=e.fragments,r=this.fragPrevious;let i=null;if(r){if(e.hasProgramDateTime&&(this.log(`Live playlist, switching playlist, load frag with same PDT: ${r.programDateTime}`),i=Es(t,r.endProgramDateTime,this.config.maxFragLookUpTolerance)),!i){const o=r.sn+1;if(o>=e.startSN&&o<=e.endSN){const A=t[o-e.startSN];r.cc===A.cc&&(i=A,this.log(`Live playlist, switching playlist, load frag with next SN: ${i.sn}`))}i||(i=fl(e,r.cc,r.end),i&&this.log(`Live playlist, switching playlist, load frag with same CC: ${i.sn}`))}}else{const o=this.hls.liveSyncPosition;o!==null&&(i=this.getFragmentAtPosition(o,this.bitrateTest?e.fragmentEnd:e.edge,e))}return i}getFragmentAtPosition(e,t,r){const{config:i}=this;let{fragPrevious:o}=this,{fragments:A,endSN:h}=r;const{fragmentHint:y}=r,{maxFragLookUpTolerance:g}=i,F=r.partList,N=!!(this.loadingParts&&F!=null&&F.length&&y);N&&!this.bitrateTest&&F[F.length-1].fragment.sn===y.sn&&(A=A.concat(y),h=y.sn);let q;if(e<t){var Ae;const Re=e<this.lastCurrentTime||e>t-g||(Ae=this.media)!=null&&Ae.paused||!this.startFragRequested?0:g;q=Ua(o,A,e,Re)}else q=A[A.length-1];if(q){const ue=q.sn-r.startSN,Re=this.fragmentTracker.getState(q);if((Re===Cs.OK||Re===Cs.PARTIAL&&q.gap)&&(o=q),o&&q.sn===o.sn&&(!N||F[0].fragment.sn>q.sn||!r.live)&&q.level===o.level){const it=A[ue+1];q.sn<h&&this.fragmentTracker.getState(it)!==Cs.OK?q=it:q=null}}return q}alignPlaylists(e,t,r){const i=e.fragments.length;if(!i)return this.warn("No fragments in live playlist"),0;const o=e.fragmentStart,A=!t,h=e.alignedSliding&&Ie(o);if(A||!h&&!o){X0(r,e);const y=e.fragmentStart;return this.log(`Live playlist sliding: ${y.toFixed(2)} start-sn: ${t?t.startSN:"na"}->${e.startSN} fragments: ${i}`),y}return o}waitForCdnTuneIn(e){return e.live&&e.canBlockReload&&e.partTarget&&e.tuneInGoal>Math.max(e.partHoldBack,e.partTarget*3)}setStartPosition(e,t){let r=this.startPosition;r<t&&(r=-1);const i=this.timelineOffset;if(r===-1){const o=this.startTimeOffset!==null,A=o?this.startTimeOffset:e.startTimeOffset;A!==null&&Ie(A)?(r=t+A,A<0&&(r+=e.edge),r=Math.min(Math.max(t,r),t+e.totalduration),this.log(`Setting startPosition to ${r} for start time offset ${A} found in ${o?"multivariant":"media"} playlist`),this.startPosition=r):e.live?(r=this.hls.liveSyncPosition||t,this.log(`Setting startPosition to -1 to start at live edge ${r}`),this.startPosition=-1):(this.log("setting startPosition to 0 by default"),this.startPosition=r=0),this.lastCurrentTime=r+i}this.nextLoadPosition=r+i}getLoadPosition(){var e;const{media:t}=this;let r=0;return(e=this.hls)!=null&&e.hasEnoughToStart&&t?r=t.currentTime:this.nextLoadPosition>=0&&(r=this.nextLoadPosition),r}handleFragLoadAborted(e,t){this.transmuxer&&e.type===this.playlistType&&ut(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!==Zr.FRAG_LOADING_WAITING_RETRY)&&(this.state=Zr.IDLE)}onFragmentOrKeyLoadError(e,t){var r;if(t.chunkMeta&&!t.frag){const it=this.getCurrentContext(t.chunkMeta);it&&(t.frag=it.frag)}const i=t.frag;if(!i||i.type!==e||!this.levels)return;if(this.fragContextChanged(i)){var o;this.warn(`Frag load error must match current frag to retry ${i.url} > ${(o=this.fragCurrent)==null?void 0:o.url}`);return}const A=t.details===de.FRAG_GAP;A&&this.fragmentTracker.fragBuffered(i,!0);const h=t.errorAction;if(!h){this.state=Zr.ERROR;return}const{action:y,flags:g,retryCount:F=0,retryConfig:N}=h,q=!!N,Ae=q&&y===pi.RetryRequest,ue=q&&!h.resolved&&g===ms.MoveAllAlternatesMatchingHost,Re=(r=this.hls.latestLevelDetails)==null?void 0:r.live;if(!Ae&&ue&&ut(i)&&!i.endList&&Re&&!Rr(t))this.resetFragmentErrors(e),this.treatAsGap(i),h.resolved=!0;else if((Ae||ue)&&F<N.maxNumRetry){var ke;const it=Ao((ke=t.response)==null?void 0:ke.code),ft=Ws(N,F);if(this.resetStartWhenNotLoaded(),this.retryDate=self.performance.now()+ft,this.state=Zr.FRAG_LOADING_WAITING_RETRY,h.resolved=!0,it){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}/${N.maxNumRetry} in ${ft}ms`)}else if(N)if(this.resetFragmentErrors(e),F<N.maxNumRetry)!A&&y!==pi.RemoveAlternatePermanently&&(h.resolved=!0);else{this.warn(`${t.details} reached or exceeded max retry (${F})`);return}else y===pi.SendAlternateToPenaltyBox?this.state=Zr.WAITING_LEVEL:this.state=Zr.ERROR;this.tickImmediate()}checkRetryDate(){const e=self.performance.now(),t=this.retryDate,r=t===1/0;(!t||e>=t||r&&!Ao(0))&&(r&&this.log("Connection restored (online)"),this.resetStartWhenNotLoaded(),this.state=Zr.IDLE)}reduceLengthAndFlushBuffer(e){if(this.state===Zr.PARSING||this.state===Zr.PARSED){const t=e.frag,r=e.parent,i=this.getFwdBufferInfo(this.mediaBuffer,r),o=i&&i.len>.5;o&&this.reduceMaxBufferLength(i.len,(t==null?void 0:t.duration)||10);const A=!o;return A&&this.warn(`Buffer full error while media.currentTime (${this.getLoadPosition()}) is not buffered, flush ${r} buffer`),t&&(this.fragmentTracker.removeFragment(t),this.nextLoadPosition=t.start),this.resetLoadingState(),A}return!1}resetFragmentErrors(e){e===R.AUDIO&&(this.fragCurrent=null),this.hls.hasEnoughToStart||(this.startFragRequested=!1),this.state!==Zr.STOPPED&&(this.state=Zr.IDLE)}afterBufferFlushed(e,t,r){if(!e)return;const i=oi.getBuffered(e);this.fragmentTracker.detectEvictedFragments(t,i,r),this.state===Zr.ENDED&&this.resetLoadingState()}resetLoadingState(){this.log("Reset loading state"),this.fragCurrent=null,this.fragPrevious=null,this.state!==Zr.STOPPED&&(this.state=Zr.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,r,i){const o=r.details;if(!o){this.warn("level.details undefined");return}if(!Object.keys(e.elementaryStreams).reduce((y,g)=>{const F=e.elementaryStreams[g];if(F){const N=F.endPTS-F.startPTS;if(N<=0)return this.warn(`Could not parse fragment ${e.sn} ${g} duration reliably (${N})`),y||!1;const q=i?0:eu(o,e,F.startPTS,F.endPTS,F.startDTS,F.endDTS,this);return this.hls.trigger(I.LEVEL_PTS_UPDATED,{details:o,level:r,drift:q,type:g,frag:e,start:F.startPTS,end:F.endPTS}),!0}return y},!1)){var h;if(r.fragmentError===0&&this.treatAsGap(e,r),((h=this.transmuxer)==null?void 0:h.error)===null){const y=new Error(`Found no media in fragment ${e.sn} of ${this.playlistLabel()} ${e.level} resetting transmuxer to fallback to playlist timing`);if(this.warn(y.message),this.hls.trigger(I.ERROR,{type:Me.MEDIA_ERROR,details:de.FRAG_PARSING_ERROR,fatal:!1,error:y,frag:e,reason:`Found no media in msn ${e.sn} of ${this.playlistLabel()} "${r.url}"`}),!this.hls)return;this.resetTransmuxer()}}this.state=Zr.PARSED,this.log(`Parsed ${e.type} sn: ${e.sn}${t?" part: "+t.index:""} of ${this.fragInfo(e,!1,t)})`),this.hls.trigger(I.FRAG_PARSED,{frag:e,part:t})}playlistLabel(){return this.playlistType===R.MAIN?"level":"track"}fragInfo(e,t=!0,r){var i,o;return`${this.playlistLabel()} ${e.level} (${r?"part":"frag"}:[${((i=t&&!r?e.startPTS:(r||e).start)!=null?i:NaN).toFixed(3)}-${((o=t&&!r?e.endPTS:(r||e).end)!=null?o:NaN).toFixed(3)}]${r&&e.type==="main"?"INDEPENDENT="+(r.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 nu(l){return!!l.interstitialsController&&l.enableInterstitialPlayback!==!1}class fa{constructor(){this.chunks=[],this.dataLength=0}push(e){this.chunks.push(e),this.dataLength+=e.length}flush(){const{chunks:e,dataLength:t}=this;let r;if(e.length)e.length===1?r=e[0]:r=iu(e,t);else return new Uint8Array(0);return this.reset(),r}reset(){this.chunks.length=0,this.dataLength=0}}function iu(l,e){const t=new Uint8Array(e);let r=0;for(let i=0;i<l.length;i++){const o=l[i];t.set(o,r),r+=o.length}return t}var No={exports:{}},Mo;function Jh(){return Mo||(Mo=1,function(l){var e=Object.prototype.hasOwnProperty,t="~";function r(){}Object.create&&(r.prototype=Object.create(null),new r().__proto__||(t=!1));function i(y,g,F){this.fn=y,this.context=g,this.once=F||!1}function o(y,g,F,N,q){if(typeof F!="function")throw new TypeError("The listener must be a function");var Ae=new i(F,N||y,q),ue=t?t+g:g;return y._events[ue]?y._events[ue].fn?y._events[ue]=[y._events[ue],Ae]:y._events[ue].push(Ae):(y._events[ue]=Ae,y._eventsCount++),y}function A(y,g){--y._eventsCount===0?y._events=new r:delete y._events[g]}function h(){this._events=new r,this._eventsCount=0}h.prototype.eventNames=function(){var g=[],F,N;if(this._eventsCount===0)return g;for(N in F=this._events)e.call(F,N)&&g.push(t?N.slice(1):N);return Object.getOwnPropertySymbols?g.concat(Object.getOwnPropertySymbols(F)):g},h.prototype.listeners=function(g){var F=t?t+g:g,N=this._events[F];if(!N)return[];if(N.fn)return[N.fn];for(var q=0,Ae=N.length,ue=new Array(Ae);q<Ae;q++)ue[q]=N[q].fn;return ue},h.prototype.listenerCount=function(g){var F=t?t+g:g,N=this._events[F];return N?N.fn?1:N.length:0},h.prototype.emit=function(g,F,N,q,Ae,ue){var Re=t?t+g:g;if(!this._events[Re])return!1;var ke=this._events[Re],it=arguments.length,ft,_t;if(ke.fn){switch(ke.once&&this.removeListener(g,ke.fn,void 0,!0),it){case 1:return ke.fn.call(ke.context),!0;case 2:return ke.fn.call(ke.context,F),!0;case 3:return ke.fn.call(ke.context,F,N),!0;case 4:return ke.fn.call(ke.context,F,N,q),!0;case 5:return ke.fn.call(ke.context,F,N,q,Ae),!0;case 6:return ke.fn.call(ke.context,F,N,q,Ae,ue),!0}for(_t=1,ft=new Array(it-1);_t<it;_t++)ft[_t-1]=arguments[_t];ke.fn.apply(ke.context,ft)}else{var zt=ke.length,ir;for(_t=0;_t<zt;_t++)switch(ke[_t].once&&this.removeListener(g,ke[_t].fn,void 0,!0),it){case 1:ke[_t].fn.call(ke[_t].context);break;case 2:ke[_t].fn.call(ke[_t].context,F);break;case 3:ke[_t].fn.call(ke[_t].context,F,N);break;case 4:ke[_t].fn.call(ke[_t].context,F,N,q);break;default:if(!ft)for(ir=1,ft=new Array(it-1);ir<it;ir++)ft[ir-1]=arguments[ir];ke[_t].fn.apply(ke[_t].context,ft)}}return!0},h.prototype.on=function(g,F,N){return o(this,g,F,N,!1)},h.prototype.once=function(g,F,N){return o(this,g,F,N,!0)},h.prototype.removeListener=function(g,F,N,q){var Ae=t?t+g:g;if(!this._events[Ae])return this;if(!F)return A(this,Ae),this;var ue=this._events[Ae];if(ue.fn)ue.fn===F&&(!q||ue.once)&&(!N||ue.context===N)&&A(this,Ae);else{for(var Re=0,ke=[],it=ue.length;Re<it;Re++)(ue[Re].fn!==F||q&&!ue[Re].once||N&&ue[Re].context!==N)&&ke.push(ue[Re]);ke.length?this._events[Ae]=ke.length===1?ke[0]:ke:A(this,Ae)}return this},h.prototype.removeAllListeners=function(g){var F;return g?(F=t?t+g:g,this._events[F]&&A(this,F)):(this._events=new r,this._eventsCount=0),this},h.prototype.off=h.prototype.removeListener,h.prototype.addListener=h.prototype.on,h.prefixed=t,h.EventEmitter=h,l.exports=h}(No)),No.exports}var su=Jh(),tc=ye(su);const vA="1.6.14",el={};function ef(){return typeof __HLS_WORKER_BUNDLE__=="function"}function Nl(){const l=el[vA];if(l)return l.clientCount++,l;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 el[vA]=i,i}function Qo(l){const e=el[l];if(e)return e.clientCount++,e;const t=new self.URL(l,self.location.href).href,i={worker:new self.Worker(t),scriptURL:t,clientCount:1};return el[l]=i,i}function Xo(l){const e=el[l||vA];if(e&&e.clientCount--===1){const{worker:r,objectURL:i}=e;delete el[l||vA],i&&self.URL.revokeObjectURL(i),r.terminate()}}function as(l,e){return e+10<=l.length&&l[e]===51&&l[e+1]===68&&l[e+2]===73&&l[e+3]<255&&l[e+4]<255&&l[e+6]<128&&l[e+7]<128&&l[e+8]<128&&l[e+9]<128}function yl(l,e){return e+10<=l.length&&l[e]===73&&l[e+1]===68&&l[e+2]===51&&l[e+3]<255&&l[e+4]<255&&l[e+6]<128&&l[e+7]<128&&l[e+8]<128&&l[e+9]<128}function Ml(l,e){let t=0;return t=(l[e]&127)<<21,t|=(l[e+1]&127)<<14,t|=(l[e+2]&127)<<7,t|=l[e+3]&127,t}function au(l,e){const t=e;let r=0;for(;yl(l,e);){r+=10;const i=Ml(l,e+6);r+=i,as(l,e+10)&&(r+=10),e+=r}if(r>0)return l.subarray(t,t+r)}function ou(l,e,t,r){const i=[96e3,88200,64e3,48e3,44100,32e3,24e3,22050,16e3,12e3,11025,8e3,7350],o=e[t+2],A=o>>2&15;if(A>12){const Ae=new Error(`invalid ADTS sampling index:${A}`);l.emit(I.ERROR,I.ERROR,{type:Me.MEDIA_ERROR,details:de.FRAG_PARSING_ERROR,fatal:!0,error:Ae,reason:Ae.message});return}const h=(o>>6&3)+1,y=e[t+3]>>6&3|(o&1)<<2,g="mp4a.40."+h,F=i[A];let N=A;(h===5||h===29)&&(N-=3);const q=[h<<3|(N&14)>>1,(N&1)<<7|y<<3];return Qe.log(`manifest codec:${r}, parsed codec:${g}, channels:${y}, rate:${F} (ADTS object type:${h} sampling index:${A})`),{config:q,samplerate:F,channelCount:y,codec:g,parsedCodec:g,manifestCodec:r}}function Au(l,e){return l[e]===255&&(l[e+1]&246)===240}function Fc(l,e){return l[e+1]&1?7:9}function _l(l,e){return(l[e+3]&3)<<11|l[e+4]<<3|(l[e+5]&224)>>>5}function J0(l,e){return e+5<l.length}function Lc(l,e){return e+1<l.length&&Au(l,e)}function Ho(l,e){return J0(l,e)&&Au(l,e)&&_l(l,e)<=l.length-e}function lu(l,e){if(Lc(l,e)){const t=Fc(l,e);if(e+t>=l.length)return!1;const r=_l(l,e);if(r<=t)return!1;const i=e+r;return i===l.length||Lc(l,i)}return!1}function s0(l,e,t,r,i){if(!l.samplerate){const o=ou(e,t,r,i);if(!o)return;w(l,o)}}function eh(l){return 1024*9e4/l}function rc(l,e){const t=Fc(l,e);if(e+t<=l.length){const r=_l(l,e)-t;if(r>0)return{headerLength:t,frameLength:r}}}function a0(l,e,t,r,i){const o=eh(l.samplerate),A=r+i*o,h=rc(e,t);let y;if(h){const{frameLength:N,headerLength:q}=h,Ae=q+N,ue=Math.max(0,t+Ae-e.length);ue?(y=new Uint8Array(Ae-q),y.set(e.subarray(t+q,e.length),0)):y=e.subarray(t+q,t+Ae);const Re={unit:y,pts:A};return ue||l.samples.push(Re),{sample:Re,length:Ae,missing:ue}}const g=e.length-t;return y=new Uint8Array(g),y.set(e.subarray(t,e.length),0),{sample:{unit:y,pts:A},length:g,missing:-1}}function uu(l,e){return yl(l,e)&&Ml(l,e+6)+10<=l.length-e}function tf(l){return l instanceof ArrayBuffer?l:l.byteOffset==0&&l.byteLength==l.buffer.byteLength?l.buffer:new Uint8Array(l).buffer}function Dc(l,e=0,t=1/0){return o0(l,e,t,Uint8Array)}function o0(l,e,t,r){const i=rf(l);let o=1;"BYTES_PER_ELEMENT"in r&&(o=r.BYTES_PER_ELEMENT);const A=th(l)?l.byteOffset:0,h=(A+l.byteLength)/o,y=(A+e)/o,g=Math.floor(Math.max(0,Math.min(y,h))),F=Math.floor(Math.min(g+Math.max(t,0),h));return new r(i,g,F-g)}function rf(l){return l instanceof ArrayBuffer?l:l.buffer}function th(l){return l&&l.buffer instanceof ArrayBuffer&&l.byteLength!==void 0&&l.byteOffset!==void 0}function A0(l){const e={key:l.type,description:"",data:"",mimeType:null,pictureType:null},t=3;if(l.size<2)return;if(l.data[0]!==t){console.log("Ignore frame with unrecognized character encoding");return}const r=l.data.subarray(1).indexOf(0);if(r===-1)return;const i=Pe(Dc(l.data,1,r)),o=l.data[2+r],A=l.data.subarray(3+r).indexOf(0);if(A===-1)return;const h=Pe(Dc(l.data,3+r,A));let y;return i==="-->"?y=Pe(Dc(l.data,4+r+A)):y=tf(l.data.subarray(4+r+A)),e.mimeType=i,e.pictureType=o,e.description=h,e.data=y,e}function lt(l){if(l.size<2)return;const e=Pe(l.data,!0),t=new Uint8Array(l.data.subarray(e.length+1));return{key:l.type,info:e,data:t.buffer}}function rh(l){if(l.size<2)return;if(l.type==="TXXX"){let t=1;const r=Pe(l.data.subarray(t),!0);t+=r.length+1;const i=Pe(l.data.subarray(t));return{key:l.type,info:r,data:i}}const e=Pe(l.data.subarray(1));return{key:l.type,info:"",data:e}}function l0(l){if(l.type==="WXXX"){if(l.size<2)return;let t=1;const r=Pe(l.data.subarray(t),!0);t+=r.length+1;const i=Pe(l.data.subarray(t));return{key:l.type,info:r,data:i}}const e=Pe(l.data);return{key:l.type,info:"",data:e}}function u0(l){return l.type==="PRIV"?lt(l):l.type[0]==="W"?l0(l):l.type==="APIC"?A0(l):rh(l)}function nh(l){const e=String.fromCharCode(l[0],l[1],l[2],l[3]),t=Ml(l,4),r=10;return{type:e,size:t,data:l.subarray(r,r+t)}}const Lu=10,ih=10;function Du(l){let e=0;const t=[];for(;yl(l,e);){const r=Ml(l,e+6);l[e+5]>>6&1&&(e+=Lu),e+=Lu;const i=e+r;for(;e+ih<i;){const o=nh(l.subarray(e)),A=u0(o);A&&t.push(A),e+=o.size+Lu}as(l,e)&&(e+=Lu)}return t}function sh(l){return l&&l.key==="PRIV"&&l.info==="com.apple.streaming.transportStreamTimestamp"}function ku(l){if(l.data.byteLength===8){const e=new Uint8Array(l.data),t=e[3]&1;let r=(e[4]<<23)+(e[5]<<15)+(e[6]<<7)+e[7];return r/=45,t&&(r+=4772185884e-2),Math.round(r)}}function kc(l){const e=Du(l);for(let t=0;t<e.length;t++){const r=e[t];if(sh(r))return ku(r)}}let uo=function(l){return l.audioId3="org.id3",l.dateRange="com.apple.quicktime.HLS",l.emsg="https://aomedia.org/emsg/ID3",l.misbklv="urn:misb:KLV:bin:1910.1",l}({});function tl(l="",e=9e4){return{type:l,id:-1,pid:-1,inputTimeScale:e,sequenceNumber:-1,samples:[],dropped:0}}class Ql{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,r,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,r){}demux(e,t){this.cachedData&&(e=cr(this.cachedData,e),this.cachedData=null);let r=au(e,0),i=r?r.length:0,o;const A=this._audioTrack,h=this._id3Track,y=r?kc(r):void 0,g=e.length;for((this.basePTS===null||this.frameIndex===0&&Ie(y))&&(this.basePTS=c0(y,t,this.initPTS),this.lastPTS=this.basePTS),this.lastPTS===null&&(this.lastPTS=this.basePTS),r&&r.length>0&&h.samples.push({pts:this.lastPTS,dts:this.lastPTS,data:r,type:uo.audioId3,duration:Number.POSITIVE_INFINITY});i<g;){if(this.canParse(e,i)){const F=this.appendFrame(A,e,i);F?(this.frameIndex++,this.lastPTS=F.sample.pts,i+=F.length,o=i):i=g}else uu(e,i)?(r=au(e,i),h.samples.push({pts:this.lastPTS,dts:this.lastPTS,data:r,type:uo.audioId3,duration:Number.POSITIVE_INFINITY}),i+=r.length,o=i):i++;if(i===g&&o!==g){const F=e.slice(o);this.cachedData?this.cachedData=cr(this.cachedData,F):this.cachedData=F}}return{audioTrack:A,videoTrack:tl(),id3Track:h,textTrack:tl()}}demuxSampleAes(e,t,r){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:tl(),id3Track:this._id3Track,textTrack:tl()}}destroy(){this.cachedData=null,this._audioTrack=this._id3Track=void 0}}const c0=(l,e,t)=>{if(Ie(l))return l*90;const r=t?t.baseTime*9e4/t.timescale:0;return e*9e4+r};let Hl=null;const nf=[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],ah=[44100,48e3,32e3,22050,24e3,16e3,11025,12e3,8e3],h0=[[0,72,144,12],[0,0,0,0],[0,72,144,12],[0,144,144,12]],sf=[0,1,1,4];function cu(l,e,t,r,i){if(t+24>e.length)return;const o=af(e,t);if(o&&t+o.frameLength<=e.length){const A=o.samplesPerFrame*9e4/o.sampleRate,h=r+i*A,y={unit:e.subarray(t,t+o.frameLength),pts:h,dts:h};return l.config=[],l.channelCount=o.channelCount,l.samplerate=o.sampleRate,l.samples.push(y),{sample:y,length:o.frameLength,missing:0}}}function af(l,e){const t=l[e+1]>>3&3,r=l[e+1]>>1&3,i=l[e+2]>>4&15,o=l[e+2]>>2&3;if(t!==1&&i!==0&&i!==15&&o!==3){const A=l[e+2]>>1&1,h=l[e+3]>>6,y=t===3?3-r:r===3?3:4,g=nf[y*14+i-1]*1e3,N=ah[(t===3?0:t===2?1:2)*3+o],q=h===3?1:2,Ae=h0[t][r],ue=sf[r],Re=Ae*8*ue,ke=Math.floor(Ae*g/N+A)*ue;if(Hl===null){const _t=(navigator.userAgent||"").match(/Chrome\/(\d+)/i);Hl=_t?parseInt(_t[1]):0}return!!Hl&&Hl<=87&&r===2&&g>=224e3&&h===0&&(l[e+3]=l[e+3]|128),{sampleRate:N,channelCount:q,frameLength:ke,samplesPerFrame:Re}}}function Ee(l,e){return l[e]===255&&(l[e+1]&224)===224&&(l[e+1]&6)!==0}function f(l,e){return e+1<l.length&&Ee(l,e)}function v(l,e){return Ee(l,e)&&4<=l.length-e}function x(l,e){if(e+1<l.length&&Ee(l,e)){const r=af(l,e);let i=4;r!=null&&r.frameLength&&(i=r.frameLength);const o=e+i;return o===l.length||f(l,o)}return!1}class Q extends Ql{constructor(e,t){super(),this.observer=void 0,this.config=void 0,this.observer=e,this.config=t}resetInitSegment(e,t,r,i){super.resetInitSegment(e,t,r,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 r=au(e,0);let i=(r==null?void 0:r.length)||0;if(x(e,i))return!1;for(let o=e.length;i<o;i++)if(lu(e,i))return t.log("ADTS sync word found !"),!0;return!1}canParse(e,t){return Ho(e,t)}appendFrame(e,t,r){s0(e,this.observer,t,r,e.manifestCodec);const i=a0(e,t,r,this.basePTS,this.frameIndex);if(i&&i.missing===0)return i}}const re=(l,e)=>{let t=0,r=5;e+=r;const i=new Uint32Array(1),o=new Uint32Array(1),A=new Uint8Array(1);for(;r>0;){A[0]=l[e];const h=Math.min(r,8),y=8-h;o[0]=4278190080>>>24+y<<y,i[0]=(A[0]&o[0])>>y,t=t?t<<h|i[0]:i[0],e+=1,r-=h}return t};class be extends Ql{constructor(e){super(),this.observer=void 0,this.observer=e}resetInitSegment(e,t,r,i){super.resetInitSegment(e,t,r,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,r){const i=Ze(e,t,r,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=au(e,0);if(!t)return!1;const r=t.length;return e[r]===11&&e[r+1]===119&&kc(t)!==void 0&&re(e,r)<16}}function Ze(l,e,t,r,i){if(t+8>e.length||e[t]!==11||e[t+1]!==119)return-1;const o=e[t+4]>>6;if(o>=3)return-1;const h=[48e3,44100,32e3][o],y=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][y*3+o]*2;if(t+F>e.length)return-1;const N=e[t+6]>>5;let q=0;N===2?q+=2:(N&1&&N!==1&&(q+=2),N&4&&(q+=2));const Ae=(e[t+6]<<8|e[t+7])>>12-q&1,Re=[2,1,2,3,3,4,4,5][N]+Ae,ke=e[t+5]>>3,it=e[t+5]&7,ft=new Uint8Array([o<<6|ke<<1|it>>2,(it&3)<<6|N<<3|Ae<<2|y>>4,y<<4&224]),_t=1536/h*9e4,zt=r+i*_t,ir=e.subarray(t,t+F);return l.config=ft,l.channelCount=Re,l.samplerate=h,l.samples.push({unit:ir,pts:zt}),F}class nt extends Ql{resetInitSegment(e,t,r,i){super.resetInitSegment(e,t,r,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=au(e,0);let r=(t==null?void 0:t.length)||0;if(t&&e[r]===11&&e[r+1]===119&&kc(t)!==void 0&&re(e,r)<=16)return!1;for(let i=e.length;r<i;r++)if(x(e,r))return Qe.log("MPEG Audio sync word found !"),!0;return!1}canParse(e,t){return v(e,t)}appendFrame(e,t,r){if(this.basePTS!==null)return cu(e,t,r,this.basePTS,this.frameIndex)}}const St=/\/emsg[-/]ID3/i;class Jt{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,r,i){const o=this.videoTrack=tl("video",1),A=this.audioTrack=tl("audio",1),h=this.txtTrack=tl("text",1);if(this.id3Track=tl("id3",1),this.timeOffset=0,!(e!=null&&e.byteLength))return;const y=ae(e);if(y.video){const{id:g,timescale:F,codec:N,supplemental:q}=y.video;o.id=g,o.timescale=h.timescale=F,o.codec=N,o.supplemental=q}if(y.audio){const{id:g,timescale:F,codec:N}=y.audio;A.id=g,A.timescale=F,A.codec=N}h.id=dn.text,o.sampleDuration=0,o.duration=A.duration=i}resetContiguity(){this.remainderData=null}static probe(e){return le(e)}demux(e,t){this.timeOffset=t;let r=e;const i=this.videoTrack,o=this.txtTrack;if(this.config.progressive){this.remainderData&&(r=cr(this.remainderData,e));const h=Wt(r);this.remainderData=h.remainder,i.samples=h.valid||new Uint8Array}else i.samples=r;const A=this.extractID3Track(i,t);return o.samples=qt(t,i),{videoTrack:i,audioTrack:this.audioTrack,id3Track:A,textTrack:this.txtTrack}}flush(){const e=this.timeOffset,t=this.videoTrack,r=this.txtTrack;t.samples=this.remainderData||new Uint8Array,this.remainderData=null;const i=this.extractID3Track(t,this.timeOffset);return r.samples=qt(e,t),{videoTrack:t,audioTrack:tl(),id3Track:i,textTrack:tl()}}extractID3Track(e,t){const r=this.id3Track;if(e.samples.length){const i=_(e.samples,["emsg"]);i&&i.forEach(o=>{const A=An(o);if(St.test(A.schemeIdUri)){const h=dr(A,t);let y=A.eventDuration===4294967295?Number.POSITIVE_INFINITY:A.eventDuration/A.timeScale;y<=.001&&(y=Number.POSITIVE_INFINITY);const g=A.payload;r.samples.push({data:g,len:g.byteLength,dts:h,pts:h,type:uo.emsg,duration:y})}else if(this.config.enableEmsgKLVMetadata&&A.schemeIdUri.startsWith("urn:misb:KLV:bin:1910.1")){const h=dr(A,t);r.samples.push({data:A.payload,len:A.payload.byteLength,dts:h,pts:h,type:uo.misbklv,duration:Number.POSITIVE_INFINITY})}})}return r}demuxSampleAes(e,t,r){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 dr(l,e){return Ie(l.presentationTime)?l.presentationTime/l.timeScale:e+l.presentationTimeDelta/l.timeScale}class Or{constructor(e,t,r){this.keyData=void 0,this.decrypter=void 0,this.keyData=r,this.decrypter=new Ms(t,{removePKCS7Padding:!1})}decryptBuffer(e){return this.decrypter.decrypt(e,this.keyData.key.buffer,this.keyData.iv.buffer,Ba.cbc)}decryptAacSample(e,t,r){const i=e[t].unit;if(i.length<=16)return;const o=i.subarray(16,i.length-i.length%16),A=o.buffer.slice(o.byteOffset,o.byteOffset+o.length);this.decryptBuffer(A).then(h=>{const y=new Uint8Array(h);i.set(y,16),this.decrypter.isSync()||this.decryptAacSamples(e,t+1,r)}).catch(r)}decryptAacSamples(e,t,r){for(;;t++){if(t>=e.length){r();return}if(!(e[t].unit.length<32)&&(this.decryptAacSample(e,t,r),!this.decrypter.isSync()))return}}getAvcEncryptedData(e){const t=Math.floor((e.length-48)/160)*16+16,r=new Int8Array(t);let i=0;for(let o=32;o<e.length-16;o+=160,i+=16)r.set(e.subarray(o,o+16),i);return r}getAvcDecryptedUnit(e,t){const r=new Uint8Array(t);let i=0;for(let o=32;o<e.length-16;o+=160,i+=16)e.set(r.subarray(i,i+16),o);return e}decryptAvcSample(e,t,r,i,o){const A=yr(o.data),h=this.getAvcEncryptedData(A);this.decryptBuffer(h.buffer).then(y=>{o.data=this.getAvcDecryptedUnit(A,y),this.decrypter.isSync()||this.decryptAvcSamples(e,t,r+1,i)}).catch(i)}decryptAvcSamples(e,t,r,i){if(e instanceof Uint8Array)throw new Error("Cannot decrypt samples of type Uint8Array");for(;;t++,r=0){if(t>=e.length){i();return}const o=e[t].units;for(;!(r>=o.length);r++){const A=o[r];if(!(A.data.length<=48||A.type!==1&&A.type!==5)&&(this.decryptAvcSample(e,t,r,i,A),!this.decrypter.isSync()))return}}}}class on{constructor(){this.VideoSample=null}createVideoSample(e,t,r){return{key:e,frame:!1,pts:t,dts:r,units:[],length:0}}getLastNalUnit(e){var t;let r=this.VideoSample,i;if((!r||r.units.length===0)&&(r=e[e.length-1]),(t=r)!=null&&t.units){const o=r.units;i=o[o.length-1]}return i}pushAccessUnit(e,t){if(e.units.length&&e.frame){if(e.pts===void 0){const r=t.samples,i=r.length;if(i){const o=r[i-1];e.pts=o.pts,e.dts=o.dts}else{t.dropped++;return}}t.samples.push(e)}}parseNALu(e,t,r){const i=t.byteLength;let o=e.naluState||0;const A=o,h=[];let y=0,g,F,N,q=-1,Ae=0;for(o===-1&&(q=0,Ae=this.getNALuType(t,0),o=0,y=1);y<i;){if(g=t[y++],!o){o=g?0:1;continue}if(o===1){o=g?0:2;continue}if(!g)o=3;else if(g===1){if(F=y-o-1,q>=0){const ue={data:t.subarray(q,F),type:Ae};h.push(ue)}else{const ue=this.getLastNalUnit(e.samples);ue&&(A&&y<=4-A&&ue.state&&(ue.data=ue.data.subarray(0,ue.data.byteLength-A)),F>0&&(ue.data=cr(ue.data,t.subarray(0,F)),ue.state=0))}y<i?(N=this.getNALuType(t,y),q=y,Ae=N,o=0):o=-1}else o=0}if(q>=0&&o>=0){const ue={data:t.subarray(q,i),type:Ae,state:o};h.push(ue)}if(h.length===0){const ue=this.getLastNalUnit(e.samples);ue&&(ue.data=cr(ue.data,t))}return e.naluState=o,h}}class tn{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,r=e.byteLength-t,i=new Uint8Array(4),o=Math.min(4,t);if(o===0)throw new Error("no bytes available");i.set(e.subarray(r,r+o)),this.word=new DataView(i.buffer).getUint32(0),this.bitsAvailable=o*8,this.bytesAvailable-=o}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 r=this.word>>>32-t;if(e>32&&Qe.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?r<<t|this.readBits(t):r}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 Fn extends on{parsePES(e,t,r,i){const o=this.parseNALu(e,r.data,i);let A=this.VideoSample,h,y=!1;r.data=null,A&&o.length&&!e.audFound&&(this.pushAccessUnit(A,e),A=this.VideoSample=this.createVideoSample(!1,r.pts,r.dts)),o.forEach(g=>{var F,N;switch(g.type){case 1:{let Re=!1;h=!0;const ke=g.data;if(y&&ke.length>4){const it=this.readSliceType(ke);(it===2||it===4||it===7||it===9)&&(Re=!0)}if(Re){var q;(q=A)!=null&&q.frame&&!A.key&&(this.pushAccessUnit(A,e),A=this.VideoSample=null)}A||(A=this.VideoSample=this.createVideoSample(!0,r.pts,r.dts)),A.frame=!0,A.key=Re;break}case 5:h=!0,(F=A)!=null&&F.frame&&!A.key&&(this.pushAccessUnit(A,e),A=this.VideoSample=null),A||(A=this.VideoSample=this.createVideoSample(!0,r.pts,r.dts)),A.key=!0,A.frame=!0;break;case 6:{h=!0,$t(g.data,1,r.pts,t.samples);break}case 7:{var Ae,ue;h=!0,y=!0;const Re=g.data,ke=this.readSPS(Re);if(!e.sps||e.width!==ke.width||e.height!==ke.height||((Ae=e.pixelRatio)==null?void 0:Ae[0])!==ke.pixelRatio[0]||((ue=e.pixelRatio)==null?void 0:ue[1])!==ke.pixelRatio[1]){e.width=ke.width,e.height=ke.height,e.pixelRatio=ke.pixelRatio,e.sps=[Re];const it=Re.subarray(1,4);let ft="avc1.";for(let _t=0;_t<3;_t++){let zt=it[_t].toString(16);zt.length<2&&(zt="0"+zt),ft+=zt}e.codec=ft}break}case 8:h=!0,e.pps=[g.data];break;case 9:h=!0,e.audFound=!0,(N=A)!=null&&N.frame&&(this.pushAccessUnit(A,e),A=null),A||(A=this.VideoSample=this.createVideoSample(!1,r.pts,r.dts));break;case 12:h=!0;break;default:h=!1;break}A&&h&&A.units.push(g)}),i&&A&&(this.pushAccessUnit(A,e),this.VideoSample=null)}getNALuType(e,t){return e[t]&31}readSliceType(e){const t=new tn(e);return t.readUByte(),t.readUEG(),t.readUEG()}skipScalingList(e,t){let r=8,i=8,o;for(let A=0;A<e;A++)i!==0&&(o=t.readEG(),i=(r+o+256)%256),r=i===0?r:i}readSPS(e){const t=new tn(e);let r=0,i=0,o=0,A=0,h,y,g;const F=t.readUByte.bind(t),N=t.readBits.bind(t),q=t.readUEG.bind(t),Ae=t.readBoolean.bind(t),ue=t.skipBits.bind(t),Re=t.skipEG.bind(t),ke=t.skipUEG.bind(t),it=this.skipScalingList.bind(this);F();const ft=F();if(N(5),ue(3),F(),ke(),ft===100||ft===110||ft===122||ft===244||ft===44||ft===83||ft===86||ft===118||ft===128){const Cr=q();if(Cr===3&&ue(1),ke(),ke(),ue(1),Ae())for(y=Cr!==3?8:12,g=0;g<y;g++)Ae()&&(g<6?it(16,t):it(64,t))}ke();const _t=q();if(_t===0)q();else if(_t===1)for(ue(1),Re(),Re(),h=q(),g=0;g<h;g++)Re();ke(),ue(1);const zt=q(),ir=q(),Nr=N(1);Nr===0&&ue(1),ue(1),Ae()&&(r=q(),i=q(),o=q(),A=q());let or=[1,1];if(Ae()&&Ae())switch(F()){case 1:or=[1,1];break;case 2:or=[12,11];break;case 3:or=[10,11];break;case 4:or=[16,11];break;case 5:or=[40,33];break;case 6:or=[24,11];break;case 7:or=[20,11];break;case 8:or=[32,11];break;case 9:or=[80,33];break;case 10:or=[18,11];break;case 11:or=[15,11];break;case 12:or=[64,33];break;case 13:or=[160,99];break;case 14:or=[4,3];break;case 15:or=[3,2];break;case 16:or=[2,1];break;case 255:{or=[F()<<8|F(),F()<<8|F()];break}}return{width:Math.ceil((zt+1)*16-r*2-i*2),height:(2-Nr)*(ir+1)*16-(Nr?2:4)*(o+A),pixelRatio:or}}}class $n extends on{constructor(...e){super(...e),this.initVPS=null}parsePES(e,t,r,i){const o=this.parseNALu(e,r.data,i);let A=this.VideoSample,h,y=!1;r.data=null,A&&o.length&&!e.audFound&&(this.pushAccessUnit(A,e),A=this.VideoSample=this.createVideoSample(!1,r.pts,r.dts)),o.forEach(g=>{var F,N;switch(g.type){case 0:case 1:case 2:case 3:case 4:case 5:case 6:case 7:case 8:case 9:A||(A=this.VideoSample=this.createVideoSample(!1,r.pts,r.dts)),A.frame=!0,h=!0;break;case 16:case 17:case 18:case 21:if(h=!0,y){var q;(q=A)!=null&&q.frame&&!A.key&&(this.pushAccessUnit(A,e),A=this.VideoSample=null)}A||(A=this.VideoSample=this.createVideoSample(!0,r.pts,r.dts)),A.key=!0,A.frame=!0;break;case 19:case 20:h=!0,(F=A)!=null&&F.frame&&!A.key&&(this.pushAccessUnit(A,e),A=this.VideoSample=null),A||(A=this.VideoSample=this.createVideoSample(!0,r.pts,r.dts)),A.key=!0,A.frame=!0;break;case 39:h=!0,$t(g.data,2,r.pts,t.samples);break;case 32:h=!0,e.vps||(typeof e.params!="object"&&(e.params={}),e.params=w(e.params,this.readVPS(g.data)),this.initVPS=g.data),e.vps=[g.data];break;case 33:if(h=!0,y=!0,e.vps!==void 0&&e.vps[0]!==this.initVPS&&e.sps!==void 0&&!this.matchSPS(e.sps[0],g.data)&&(this.initVPS=e.vps[0],e.sps=e.pps=void 0),!e.sps){const Ae=this.readSPS(g.data);e.width=Ae.width,e.height=Ae.height,e.pixelRatio=Ae.pixelRatio,e.codec=Ae.codecString,e.sps=[],typeof e.params!="object"&&(e.params={});for(const ue in Ae.params)e.params[ue]=Ae.params[ue]}this.pushParameterSet(e.sps,g.data,e.vps),A||(A=this.VideoSample=this.createVideoSample(!0,r.pts,r.dts)),A.key=!0;break;case 34:if(h=!0,typeof e.params=="object"){if(!e.pps){e.pps=[];const Ae=this.readPPS(g.data);for(const ue in Ae)e.params[ue]=Ae[ue]}this.pushParameterSet(e.pps,g.data,e.vps)}break;case 35:h=!0,e.audFound=!0,(N=A)!=null&&N.frame&&(this.pushAccessUnit(A,e),A=null),A||(A=this.VideoSample=this.createVideoSample(!1,r.pts,r.dts));break;default:h=!1;break}A&&h&&A.units.push(g)}),i&&A&&(this.pushAccessUnit(A,e),this.VideoSample=null)}pushParameterSet(e,t,r){(r&&r[0]===this.initVPS||!r&&!e.length)&&e.push(t)}getNALuType(e,t){return(e[t]&126)>>>1}ebsp2rbsp(e){const t=new Uint8Array(e.byteLength);let r=0;for(let i=0;i<e.byteLength;i++)i>=2&&e[i]===3&&e[i-1]===0&&e[i-2]===0||(t[r]=e[i],r++);return new Uint8Array(t.buffer,0,r)}pushAccessUnit(e,t){super.pushAccessUnit(e,t),this.initVPS&&(this.initVPS=null)}readVPS(e){const t=new tn(e);t.readUByte(),t.readUByte(),t.readBits(4),t.skipBits(2),t.readBits(6);const r=t.readBits(3),i=t.readBoolean();return{numTemporalLayers:r+1,temporalIdNested:i}}readSPS(e){const t=new tn(this.ebsp2rbsp(e));t.readUByte(),t.readUByte(),t.readBits(4);const r=t.readBits(3);t.readBoolean();const i=t.readBits(2),o=t.readBoolean(),A=t.readBits(5),h=t.readUByte(),y=t.readUByte(),g=t.readUByte(),F=t.readUByte(),N=t.readUByte(),q=t.readUByte(),Ae=t.readUByte(),ue=t.readUByte(),Re=t.readUByte(),ke=t.readUByte(),it=t.readUByte(),ft=[],_t=[];for(let d=0;d<r;d++)ft.push(t.readBoolean()),_t.push(t.readBoolean());if(r>0)for(let d=r;d<8;d++)t.readBits(2);for(let d=0;d<r;d++)ft[d]&&(t.readUByte(),t.readUByte(),t.readUByte(),t.readUByte(),t.readUByte(),t.readUByte(),t.readUByte(),t.readUByte(),t.readUByte(),t.readUByte(),t.readUByte()),_t[d]&&t.readUByte();t.readUEG();const zt=t.readUEG();zt==3&&t.skipBits(1);const ir=t.readUEG(),Nr=t.readUEG(),or=t.readBoolean();let Cr=0,br=0,pr=0,qr=0;or&&(Cr+=t.readUEG(),br+=t.readUEG(),pr+=t.readUEG(),qr+=t.readUEG());const Cn=t.readUEG(),Yn=t.readUEG(),ii=t.readUEG(),On=t.readBoolean();for(let d=On?0:r;d<=r;d++)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 m=0;m<4;m++)for(let W=0;W<(m===3?2:6);W++)if(!t.readBoolean())t.readUEG();else{const $=Math.min(64,1<<4+(m<<1));m>1&&t.readEG();for(let J=0;J<$;J++)t.readEG()}t.readBoolean(),t.readBoolean(),t.readBoolean()&&(t.readUByte(),t.skipUEG(),t.skipUEG(),t.readBoolean());const Mn=t.readUEG();let ei=0;for(let d=0;d<Mn;d++){let m=!1;if(d!==0&&(m=t.readBoolean()),m){d===Mn&&t.readUEG(),t.readBoolean(),t.readUEG();let W=0;for(let O=0;O<=ei;O++){const $=t.readBoolean();let J=!1;$||(J=t.readBoolean()),($||J)&&W++}ei=W}else{const W=t.readUEG(),O=t.readUEG();ei=W+O;for(let $=0;$<W;$++)t.readUEG(),t.readBoolean();for(let $=0;$<O;$++)t.readUEG(),t.readBoolean()}}if(t.readBoolean()){const d=t.readUEG();for(let m=0;m<d;m++){for(let W=0;W<ii+4;W++)t.readBits(1);t.readBits(1)}}let Dn=0,kn=1,os=1,Vs=!0,cs=1,_s=0;t.readBoolean(),t.readBoolean();let EA=!1;if(t.readBoolean()){if(t.readBoolean()){const he=t.readUByte(),Ne=[1,12,10,16,40,24,20,32,80,18,15,64,160,4,3,2],Ye=[1,11,11,11,33,11,11,11,33,11,11,33,99,3,2,1];he>0&&he<16?(kn=Ne[he-1],os=Ye[he-1]):he===255&&(kn=t.readBits(16),os=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(),EA=t.readBoolean(),EA&&(t.skipUEG(),t.skipUEG(),t.skipUEG(),t.skipUEG()),t.readBoolean()&&(cs=t.readBits(32),_s=t.readBits(32),t.readBoolean()&&t.readUEG(),t.readBoolean())){const Ye=t.readBoolean(),ce=t.readBoolean();let wt=!1;(Ye||ce)&&(wt=t.readBoolean(),wt&&(t.readUByte(),t.readBits(5),t.readBoolean(),t.readBits(5)),t.readBits(4),t.readBits(4),wt&&t.readBits(4),t.readBits(5),t.readBits(5),t.readBits(5));for(let pt=0;pt<=r;pt++){Vs=t.readBoolean();const bt=Vs||t.readBoolean();let rt=!1;bt?t.readEG():rt=t.readBoolean();const Yt=rt?1:t.readUEG()+1;if(Ye)for(let jt=0;jt<Yt;jt++)t.readUEG(),t.readUEG(),wt&&(t.readUEG(),t.readUEG()),t.skipBits(1);if(ce)for(let jt=0;jt<Yt;jt++)t.readUEG(),t.readUEG(),wt&&(t.readUEG(),t.readUEG()),t.skipBits(1)}}t.readBoolean()&&(t.readBoolean(),t.readBoolean(),t.readBoolean(),Dn=t.readUEG())}let Yl=ir,Ku=Nr;if(or){let d=1,m=1;zt===1?d=m=2:zt==2&&(d=2),Yl=ir-d*br-d*Cr,Ku=Nr-m*qr-m*pr}const k0=i?["A","B","C"][i]:"",n=h<<24|y<<16|g<<8|F;let a=0;for(let d=0;d<32;d++)a=(a|(n>>d&1)<<31-d)>>>0;let s=a.toString(16);return A===1&&s==="2"&&(s="6"),{codecString:`hvc1.${k0}${A}.${s}.${o?"H":"L"}${it}.B0`,params:{general_tier_flag:o,general_profile_idc:A,general_profile_space:i,general_profile_compatibility_flags:[h,y,g,F],general_constraint_indicator_flags:[N,q,Ae,ue,Re,ke],general_level_idc:it,bit_depth:Cn+8,bit_depth_luma_minus8:Cn,bit_depth_chroma_minus8:Yn,min_spatial_segmentation_idc:Dn,chroma_format_idc:zt,frame_rate:{fixed:Vs,fps:_s/cs}},width:Yl,height:Ku,pixelRatio:[kn,os]}}readPPS(e){const t=new tn(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(),o=t.readBoolean();let A=1;return o&&i?A=0:o?A=3:i&&(A=2),{parallelismType:A}}matchSPS(e,t){return String.fromCharCode.apply(null,e).substr(3)===String.fromCharCode.apply(null,t).substr(3)}}const Zn=188;class yi{constructor(e,t,r,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=r,this.logger=i,this.videoParser=null}static probe(e,t){const r=yi.syncOffset(e);return r>0&&t.warn(`MPEG2-TS detected but first sync word found @ offset ${r}`),r!==-1}static syncOffset(e){const t=e.length;let r=Math.min(Zn*5,t-Zn)+1,i=0;for(;i<r;){let o=!1,A=-1,h=0;for(let y=i;y<t;y+=Zn)if(e[y]===71&&(t-y===Zn||e[y+Zn]===71)){if(h++,A===-1&&(A=y,A!==0&&(r=Math.min(A+Zn*99,e.length-Zn)+1)),o||(o=Oi(e,y)===0),o&&h>1&&(A===0&&h>2||y+Zn>r))return A}else{if(h)return-1;break}i++}return-1}static createTrack(e,t){return{container:e==="video"||e==="audio"?"video/mp2t":void 0,type:e,id:dn[e],pid:-1,inputTimeScale:9e4,sequenceNumber:0,samples:[],dropped:0,duration:e==="audio"?t:void 0}}resetInitSegment(e,t,r,i){this.pmtParsed=!1,this._pmtId=-1,this._videoTrack=yi.createTrack("video"),this._videoTrack.duration=i,this._audioTrack=yi.createTrack("audio",i),this._id3Track=yi.createTrack("id3"),this._txtTrack=yi.createTrack("text"),this._audioTrack.segmentCodec="aac",this.videoParser=null,this.aacOverFlow=null,this.remainderData=null,this.audioCodec=t,this.videoCodec=r}resetTimeStamp(){}resetContiguity(){const{_audioTrack:e,_videoTrack:t,_id3Track:r}=this;e&&(e.pesData=null),t&&(t.pesData=null),r&&(r.pesData=null),this.aacOverFlow=null,this.remainderData=null}demux(e,t,r=!1,i=!1){r||(this.sampleAes=null);let o;const A=this._videoTrack,h=this._audioTrack,y=this._id3Track,g=this._txtTrack;let F=A.pid,N=A.pesData,q=h.pid,Ae=y.pid,ue=h.pesData,Re=y.pesData,ke=null,it=this.pmtParsed,ft=this._pmtId,_t=e.length;if(this.remainderData&&(e=cr(this.remainderData,e),_t=e.length,this.remainderData=null),_t<Zn&&!i)return this.remainderData=e,{audioTrack:h,videoTrack:A,id3Track:y,textTrack:g};const zt=Math.max(0,yi.syncOffset(e));_t-=(_t-zt)%Zn,_t<e.byteLength&&!i&&(this.remainderData=new Uint8Array(e.buffer,_t,e.buffer.byteLength-_t));let ir=0;for(let or=zt;or<_t;or+=Zn)if(e[or]===71){const Cr=!!(e[or+1]&64),br=Oi(e,or),pr=(e[or+3]&48)>>4;let qr;if(pr>1){if(qr=or+5+e[or+4],qr===or+Zn)continue}else qr=or+4;switch(br){case F:Cr&&(N&&(o=ys(N,this.logger))&&(this.readyVideoParser(A.segmentCodec),this.videoParser!==null&&this.videoParser.parsePES(A,g,o,!1)),N={data:[],size:0}),N&&(N.data.push(e.subarray(qr,or+Zn)),N.size+=or+Zn-qr);break;case q:if(Cr){if(ue&&(o=ys(ue,this.logger)))switch(h.segmentCodec){case"aac":this.parseAACPES(h,o);break;case"mp3":this.parseMPEGPES(h,o);break;case"ac3":this.parseAC3PES(h,o);break}ue={data:[],size:0}}ue&&(ue.data.push(e.subarray(qr,or+Zn)),ue.size+=or+Zn-qr);break;case Ae:Cr&&(Re&&(o=ys(Re,this.logger))&&this.parseID3PES(y,o),Re={data:[],size:0}),Re&&(Re.data.push(e.subarray(qr,or+Zn)),Re.size+=or+Zn-qr);break;case 0:Cr&&(qr+=e[qr]+1),ft=this._pmtId=Qs(e,qr);break;case ft:{Cr&&(qr+=e[qr]+1);const Cn=xs(e,qr,this.typeSupported,r,this.observer,this.logger);F=Cn.videoPid,F>0&&(A.pid=F,A.segmentCodec=Cn.segmentVideoCodec),q=Cn.audioPid,q>0&&(h.pid=q,h.segmentCodec=Cn.segmentAudioCodec),Ae=Cn.id3Pid,Ae>0&&(y.pid=Ae),ke!==null&&!it&&(this.logger.warn(`MPEG-TS PMT found at ${or} after unknown PID '${ke}'. Backtracking to sync byte @${zt} to parse all TS packets.`),ke=null,or=zt-188),it=this.pmtParsed=!0;break}case 17:case 8191:break;default:ke=br;break}}else ir++;ir>0&&zs(this.observer,new Error(`Found ${ir} TS packet/s that do not start with 0x47`),void 0,this.logger),A.pesData=N,h.pesData=ue,y.pesData=Re;const Nr={audioTrack:h,videoTrack:A,id3Track:y,textTrack:g};return i&&this.extractRemainingSamples(Nr),Nr}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:r,id3Track:i,textTrack:o}=e,A=r.pesData,h=t.pesData,y=i.pesData;let g;if(A&&(g=ys(A,this.logger))?(this.readyVideoParser(r.segmentCodec),this.videoParser!==null&&(this.videoParser.parsePES(r,o,g,!0),r.pesData=null)):r.pesData=A,h&&(g=ys(h,this.logger))){switch(t.segmentCodec){case"aac":this.parseAACPES(t,g);break;case"mp3":this.parseMPEGPES(t,g);break;case"ac3":this.parseAC3PES(t,g);break}t.pesData=null}else h!=null&&h.size&&this.logger.log("last AAC PES packet truncated,might overlap between fragments"),t.pesData=h;y&&(g=ys(y,this.logger))?(this.parseID3PES(i,g),i.pesData=null):i.pesData=y}demuxSampleAes(e,t,r){const i=this.demux(e,r,!0,!this.config.progressive),o=this.sampleAes=new Or(this.observer,this.config,t);return this.decrypt(i,o)}readyVideoParser(e){this.videoParser===null&&(e==="avc"?this.videoParser=new Fn:e==="hevc"&&(this.videoParser=new $n))}decrypt(e,t){return new Promise(r=>{const{audioTrack:i,videoTrack:o}=e;i.samples&&i.segmentCodec==="aac"?t.decryptAacSamples(i.samples,0,()=>{o.samples?t.decryptAvcSamples(o.samples,0,0,()=>{r(e)}):r(e)}):o.samples&&t.decryptAvcSamples(o.samples,0,0,()=>{r(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 r=0;const i=this.aacOverFlow;let o=t.data;if(i){this.aacOverFlow=null;const N=i.missing,q=i.sample.unit.byteLength;if(N===-1)o=cr(i.sample.unit,o);else{const Ae=q-N;i.sample.unit.set(o.subarray(0,N),Ae),e.samples.push(i.sample),r=i.missing}}let A,h;for(A=r,h=o.length;A<h-1&&!Lc(o,A);A++);if(A!==r){let N;const q=A<h-1;if(q?N=`AAC PES did not start with ADTS header,offset:${A}`:N="No ADTS header found in AAC PES",zs(this.observer,new Error(N),q,this.logger),!q)return}s0(e,this.observer,o,A,this.audioCodec);let y;if(t.pts!==void 0)y=t.pts;else if(i){const N=eh(e.samplerate);y=i.sample.pts+N}else{this.logger.warn("[tsdemuxer]: AAC PES unknown PTS");return}let g=0,F;for(;A<h;)if(F=a0(e,o,A,y,g),A+=F.length,F.missing){this.aacOverFlow=F;break}else for(g++;A<h-1&&!Lc(o,A);A++);}parseMPEGPES(e,t){const r=t.data,i=r.length;let o=0,A=0;const h=t.pts;if(h===void 0){this.logger.warn("[tsdemuxer]: MPEG PES unknown PTS");return}for(;A<i;)if(f(r,A)){const y=cu(e,r,A,h,o);if(y)A+=y.length,o++;else break}else A++}parseAC3PES(e,t){{const r=t.data,i=t.pts;if(i===void 0){this.logger.warn("[tsdemuxer]: AC3 PES unknown PTS");return}const o=r.length;let A=0,h=0,y;for(;h<o&&(y=Ze(e,r,h,i,A++))>0;)h+=y}}parseID3PES(e,t){if(t.pts===void 0){this.logger.warn("[tsdemuxer]: ID3 PES unknown PTS");return}const r=w({},t,{type:this._videoTrack?uo.emsg:uo.audioId3,duration:Number.POSITIVE_INFINITY});e.samples.push(r)}}function Oi(l,e){return((l[e+1]&31)<<8)+l[e+2]}function Qs(l,e){return(l[e+10]&31)<<8|l[e+11]}function xs(l,e,t,r,i,o){const A={audioPid:-1,videoPid:-1,id3Pid:-1,segmentVideoCodec:"avc",segmentAudioCodec:"aac"},h=(l[e+1]&15)<<8|l[e+2],y=e+3+h-4,g=(l[e+10]&15)<<8|l[e+11];for(e+=12+g;e<y;){const F=Oi(l,e),N=(l[e+3]&15)<<8|l[e+4];switch(l[e]){case 207:if(!r){Gs("ADTS AAC",o);break}case 15:A.audioPid===-1&&(A.audioPid=F);break;case 21:A.id3Pid===-1&&(A.id3Pid=F);break;case 219:if(!r){Gs("H.264",o);break}case 27:A.videoPid===-1&&(A.videoPid=F);break;case 3:case 4:!t.mpeg&&!t.mp3?o.log("MPEG audio found, not supported in this browser"):A.audioPid===-1&&(A.audioPid=F,A.segmentAudioCodec="mp3");break;case 193:if(!r){Gs("AC-3",o);break}case 129:t.ac3?A.audioPid===-1&&(A.audioPid=F,A.segmentAudioCodec="ac3"):o.log("AC-3 audio found, not supported in this browser");break;case 6:if(A.audioPid===-1&&N>0){let q=e+5,Ae=N;for(;Ae>2;){switch(l[q]){case 106:t.ac3!==!0?o.log("AC-3 audio found, not supported in this browser for now"):(A.audioPid=F,A.segmentAudioCodec="ac3");break}const Re=l[q+1]+2;q+=Re,Ae-=Re}}break;case 194:case 135:return zs(i,new Error("Unsupported EC-3 in M2TS found"),void 0,o),A;case 36:A.videoPid===-1&&(A.videoPid=F,A.segmentVideoCodec="hevc",o.log("HEVC in M2TS found"));break}e+=N+5}return A}function zs(l,e,t,r){r.warn(`parsing error: ${e.message}`),l.emit(I.ERROR,I.ERROR,{type:Me.MEDIA_ERROR,details:de.FRAG_PARSING_ERROR,fatal:!1,levelRetry:t,error:e,reason:e.message})}function Gs(l,e){e.log(`${l} with AES-128-CBC encryption found in unencrypted stream`)}function ys(l,e){let t=0,r,i,o,A,h;const y=l.data;if(!l||l.size===0)return null;for(;y[0].length<19&&y.length>1;)y[0]=cr(y[0],y[1]),y.splice(1,1);if(r=y[0],(r[0]<<16)+(r[1]<<8)+r[2]===1){if(i=(r[4]<<8)+r[5],i&&i>l.size-6)return null;const F=r[7];F&192&&(A=(r[9]&14)*536870912+(r[10]&255)*4194304+(r[11]&254)*16384+(r[12]&255)*128+(r[13]&254)/2,F&64?(h=(r[14]&14)*536870912+(r[15]&255)*4194304+(r[16]&254)*16384+(r[17]&255)*128+(r[18]&254)/2,A-h>60*9e4&&(e.warn(`${Math.round((A-h)/9e4)}s delta between PTS and DTS, align them`),A=h)):h=A),o=r[8];let N=o+9;if(l.size<=N)return null;l.size-=N;const q=new Uint8Array(l.size);for(let Ae=0,ue=y.length;Ae<ue;Ae++){r=y[Ae];let Re=r.byteLength;if(N)if(N>Re){N-=Re;continue}else r=r.subarray(N),Re-=N,N=0;q.set(r,t),t+=Re}return i&&(i-=o+3),{data:q,pts:A,dts:h,len:i}}return null}class ro{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 rr{static init(){rr.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 rr.types)rr.types.hasOwnProperty(e)&&(rr.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]),r=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]);rr.HDLR_TYPES={video:t,audio:r};const i=new Uint8Array([0,0,0,0,0,0,0,1,0,0,0,12,117,114,108,32,0,0,0,1]),o=new Uint8Array([0,0,0,0,0,0,0,0]);rr.STTS=rr.STSC=rr.STCO=o,rr.STSZ=new Uint8Array([0,0,0,0,0,0,0,0,0,0,0,0]),rr.VMHD=new Uint8Array([0,0,0,1,0,0,0,0,0,0,0,0]),rr.SMHD=new Uint8Array([0,0,0,0,0,0,0,0]),rr.STSD=new Uint8Array([0,0,0,0,0,0,0,1]);const A=new Uint8Array([105,115,111,109]),h=new Uint8Array([97,118,99,49]),y=new Uint8Array([0,0,0,1]);rr.FTYP=rr.box(rr.types.ftyp,A,y,A,h),rr.DINF=rr.box(rr.types.dinf,rr.box(rr.types.dref,i))}static box(e,...t){let r=8,i=t.length;const o=i;for(;i--;)r+=t[i].byteLength;const A=new Uint8Array(r);for(A[0]=r>>24&255,A[1]=r>>16&255,A[2]=r>>8&255,A[3]=r&255,A.set(e,4),i=0,r=8;i<o;i++)A.set(t[i],r),r+=t[i].byteLength;return A}static hdlr(e){return rr.box(rr.types.hdlr,rr.HDLR_TYPES[e])}static mdat(e){return rr.box(rr.types.mdat,e)}static mdhd(e,t){t*=e;const r=Math.floor(t/($s+1)),i=Math.floor(t%($s+1));return rr.box(rr.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,r>>24,r>>16&255,r>>8&255,r&255,i>>24,i>>16&255,i>>8&255,i&255,85,196,0,0]))}static mdia(e){return rr.box(rr.types.mdia,rr.mdhd(e.timescale||0,e.duration||0),rr.hdlr(e.type),rr.minf(e))}static mfhd(e){return rr.box(rr.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"?rr.box(rr.types.minf,rr.box(rr.types.smhd,rr.SMHD),rr.DINF,rr.stbl(e)):rr.box(rr.types.minf,rr.box(rr.types.vmhd,rr.VMHD),rr.DINF,rr.stbl(e))}static moof(e,t,r){return rr.box(rr.types.moof,rr.mfhd(e),rr.traf(r,t))}static moov(e){let t=e.length;const r=[];for(;t--;)r[t]=rr.trak(e[t]);return rr.box.apply(null,[rr.types.moov,rr.mvhd(e[0].timescale||0,e[0].duration||0)].concat(r).concat(rr.mvex(e)))}static mvex(e){let t=e.length;const r=[];for(;t--;)r[t]=rr.trex(e[t]);return rr.box.apply(null,[rr.types.mvex,...r])}static mvhd(e,t){t*=e;const r=Math.floor(t/($s+1)),i=Math.floor(t%($s+1)),o=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,r>>24,r>>16&255,r>>8&255,r&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 rr.box(rr.types.mvhd,o)}static sdtp(e){const t=e.samples||[],r=new Uint8Array(4+t.length);let i,o;for(i=0;i<t.length;i++)o=t[i].flags,r[i+4]=o.dependsOn<<4|o.isDependedOn<<2|o.hasRedundancy;return rr.box(rr.types.sdtp,r)}static stbl(e){return rr.box(rr.types.stbl,rr.stsd(e),rr.box(rr.types.stts,rr.STTS),rr.box(rr.types.stsc,rr.STSC),rr.box(rr.types.stsz,rr.STSZ),rr.box(rr.types.stco,rr.STCO))}static avc1(e){let t=[],r=[],i,o,A;for(i=0;i<e.sps.length;i++)o=e.sps[i],A=o.byteLength,t.push(A>>>8&255),t.push(A&255),t=t.concat(Array.prototype.slice.call(o));for(i=0;i<e.pps.length;i++)o=e.pps[i],A=o.byteLength,r.push(A>>>8&255),r.push(A&255),r=r.concat(Array.prototype.slice.call(o));const h=rr.box(rr.types.avcC,new Uint8Array([1,t[3],t[4],t[5],255,224|e.sps.length].concat(t).concat([e.pps.length]).concat(r))),y=e.width,g=e.height,F=e.pixelRatio[0],N=e.pixelRatio[1];return rr.box(rr.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,y>>8&255,y&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]),h,rr.box(rr.types.btrt,new Uint8Array([0,28,156,128,0,45,198,192,0,45,198,192])),rr.box(rr.types.pasp,new Uint8Array([F>>24,F>>16&255,F>>8&255,F&255,N>>24,N>>16&255,N>>8&255,N&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 rr.box(rr.types.mp4a,rr.audioStsd(e),rr.box(rr.types.esds,rr.esds(e)))}static mp3(e){return rr.box(rr.types[".mp3"],rr.audioStsd(e))}static ac3(e){return rr.box(rr.types["ac-3"],rr.audioStsd(e),rr.box(rr.types.dac3,e.config))}static stsd(e){const{segmentCodec:t}=e;if(e.type==="audio"){if(t==="aac")return rr.box(rr.types.stsd,rr.STSD,rr.mp4a(e));if(t==="ac3"&&e.config)return rr.box(rr.types.stsd,rr.STSD,rr.ac3(e));if(t==="mp3"&&e.codec==="mp3")return rr.box(rr.types.stsd,rr.STSD,rr.mp3(e))}else if(e.pps&&e.sps){if(t==="avc")return rr.box(rr.types.stsd,rr.STSD,rr.avc1(e));if(t==="hevc"&&e.vps)return rr.box(rr.types.stsd,rr.STSD,rr.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,r=(e.duration||0)*(e.timescale||0),i=e.width||0,o=e.height||0,A=Math.floor(r/($s+1)),h=Math.floor(r%($s+1));return rr.box(rr.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,A>>24,A>>16&255,A>>8&255,A&255,h>>24,h>>16&255,h>>8&255,h&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,o>>8&255,o&255,0,0]))}static traf(e,t){const r=rr.sdtp(e),i=e.id,o=Math.floor(t/($s+1)),A=Math.floor(t%($s+1));return rr.box(rr.types.traf,rr.box(rr.types.tfhd,new Uint8Array([0,0,0,0,i>>24,i>>16&255,i>>8&255,i&255])),rr.box(rr.types.tfdt,new Uint8Array([1,0,0,0,o>>24,o>>16&255,o>>8&255,o&255,A>>24,A>>16&255,A>>8&255,A&255])),rr.trun(e,r.length+16+20+8+16+8+8),r)}static trak(e){return e.duration=e.duration||4294967295,rr.box(rr.types.trak,rr.tkhd(e),rr.mdia(e))}static trex(e){const t=e.id;return rr.box(rr.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 r=e.samples||[],i=r.length,o=12+16*i,A=new Uint8Array(o);let h,y,g,F,N,q;for(t+=8+o,A.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),h=0;h<i;h++)y=r[h],g=y.duration,F=y.size,N=y.flags,q=y.cts,A.set([g>>>24&255,g>>>16&255,g>>>8&255,g&255,F>>>24&255,F>>>16&255,F>>>8&255,F&255,N.isLeading<<2|N.dependsOn,N.isDependedOn<<6|N.hasRedundancy<<4|N.paddingValue<<1|N.isNonSync,N.degradPrio&61440,N.degradPrio&15,q>>>24&255,q>>>16&255,q>>>8&255,q&255],12+16*h);return rr.box(rr.types.trun,A)}static initSegment(e){rr.types||rr.init();const t=rr.moov(e);return cr(rr.FTYP,t)}static hvc1(e){const t=e.params,r=[e.vps,e.sps,e.pps],i=4,o=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),r.length]);let A=o.length;for(let ue=0;ue<r.length;ue+=1){A+=3;for(let Re=0;Re<r[ue].length;Re+=1)A+=2+r[ue][Re].length}const h=new Uint8Array(A);h.set(o,0),A=o.length;const y=r.length-1;for(let ue=0;ue<r.length;ue+=1){h.set(new Uint8Array([32+ue|(ue===y?128:0),0,r[ue].length]),A),A+=3;for(let Re=0;Re<r[ue].length;Re+=1)h.set(new Uint8Array([r[ue][Re].length>>8,r[ue][Re].length&255]),A),A+=2,h.set(r[ue][Re],A),A+=r[ue][Re].length}const g=rr.box(rr.types.hvcC,h),F=e.width,N=e.height,q=e.pixelRatio[0],Ae=e.pixelRatio[1];return rr.box(rr.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,N>>8&255,N&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]),g,rr.box(rr.types.btrt,new Uint8Array([0,28,156,128,0,45,198,192,0,45,198,192])),rr.box(rr.types.pasp,new Uint8Array([q>>24,q>>16&255,q>>8&255,q&255,Ae>>24,Ae>>16&255,Ae>>8&255,Ae&255])))}}rr.types=void 0,rr.HDLR_TYPES=void 0,rr.STTS=void 0,rr.STSC=void 0,rr.STCO=void 0,rr.STSZ=void 0,rr.VMHD=void 0,rr.SMHD=void 0,rr.STSD=void 0,rr.FTYP=void 0,rr.DINF=void 0;const bn=9e4;function UA(l,e,t=1,r=!1){const i=l*e*t;return r?Math.round(i):i}function PA(l,e,t=1,r=!1){return UA(l,e,1/t,r)}function da(l,e=!1){return UA(l,1e3,1/bn,e)}function no(l,e=1){return UA(l,bn,1/e)}function rl(l){const{baseTime:e,timescale:t,trackId:r}=l;return`${e/t} (${e}/${t}) trackId: ${r}`}const oh=10*1e3,wl=1024,bl=1152,hu=1536;let yA=null,fu=null;function OA(l,e,t,r){return{duration:e,size:t,cts:r,flags:{isLeading:0,isDependedOn:0,hasRedundancy:0,degradPrio:0,dependsOn:l?2:1,isNonSync:l?0:1}}}class El extends V{constructor(e,t,r,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=r,this.ISGenerated=!1,yA===null){const A=(navigator.userAgent||"").match(/Chrome\/(\d+)/i);yA=A?parseInt(A[1]):0}if(fu===null){const o=navigator.userAgent.match(/Safari\/(\d+)/i);fu=o?parseInt(o[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&&rl(t)} > ${e&&rl(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 r=e[0].pts,i=e.reduce((o,A)=>{let h=A.pts,y=h-o;return y<-4294967296&&(t=!0,h=va(h,r),y=h-o),y>0?o:h},r);return t&&this.debug("PTS rollover detected"),i}remux(e,t,r,i,o,A,h,y){let g,F,N,q,Ae,ue,Re=o,ke=o;const it=e.pid>-1,ft=t.pid>-1,_t=t.samples.length,zt=e.samples.length>0,ir=h&&_t>0||_t>1;if((!it||zt)&&(!ft||ir)||this.ISGenerated||h){if(this.ISGenerated){var or,Cr,br,pr;const ii=this.videoTrackConfig;(ii&&(t.width!==ii.width||t.height!==ii.height||((or=t.pixelRatio)==null?void 0:or[0])!==((Cr=ii.pixelRatio)==null?void 0:Cr[0])||((br=t.pixelRatio)==null?void 0:br[1])!==((pr=ii.pixelRatio)==null?void 0:pr[1]))||!ii&&ir||this.nextAudioTs===null&&zt)&&this.resetInitSegment()}this.ISGenerated||(N=this.generateIS(e,t,o,A));const qr=this.isVideoContiguous;let Cn=-1,Yn;if(ir&&(Cn=of(t.samples),!qr&&this.config.forceKeyFrameOnDiscontinuity))if(ue=!0,Cn>0){this.warn(`Dropped ${Cn} out of ${_t} video samples due to a missing keyframe`);const ii=this.getVideoStartPts(t.samples);t.samples=t.samples.slice(Cn),t.dropped+=Cn,ke+=(t.samples[0].pts-ii)/t.inputTimeScale,Yn=ke}else Cn===-1&&(this.warn(`No keyframe found out of ${_t} video samples`),ue=!1);if(this.ISGenerated){if(zt&&ir){const ii=this.getVideoStartPts(t.samples),Tn=(va(e.samples[0].pts,ii)-ii)/t.inputTimeScale;Re+=Math.max(0,Tn),ke+=Math.max(0,-Tn)}if(zt){if(e.samplerate||(this.warn("regenerate InitSegment as audio detected"),N=this.generateIS(e,t,o,A)),F=this.remuxAudio(e,Re,this.isAudioContiguous,A,ft||ir||y===R.AUDIO?ke:void 0),ir){const ii=F?F.endPTS-F.startPTS:0;t.inputTimeScale||(this.warn("regenerate InitSegment as video detected"),N=this.generateIS(e,t,o,A)),g=this.remuxVideo(t,ke,qr,ii)}}else ir&&(g=this.remuxVideo(t,ke,qr,0));g&&(g.firstKeyFrame=Cn,g.independent=Cn!==-1,g.firstKeyFramePTS=Yn)}}return this.ISGenerated&&this._initPTS&&this._initDTS&&(r.samples.length&&(Ae=nc(r,o,this._initPTS,this._initDTS)),i.samples.length&&(q=jo(i,o,this._initPTS))),{audio:F,video:g,initSegment:N,independent:ue,text:q,id3:Ae}}computeInitPts(e,t,r,i){const o=Math.round(r*t);let A=va(e,o);if(A<o+t)for(this.log(`Adjusting PTS for rollover in timeline near ${(o-A)/t} ${i}`);A<o+t;)A+=8589934592;return A-o}generateIS(e,t,r,i){const o=e.samples,A=t.samples,h=this.typeSupported,y={},g=this._initPTS;let F=!g||i,N="audio/mp4",q,Ae,ue,Re=-1;if(F&&(q=Ae=1/0),e.config&&o.length){switch(e.timescale=e.samplerate,e.segmentCodec){case"mp3":h.mpeg?(N="audio/mpeg",e.codec=""):h.mp3&&(e.codec="mp3");break;case"ac3":e.codec="ac-3";break}y.audio={id:"audio",container:N,codec:e.codec,initSegment:e.segmentCodec==="mp3"&&h.mpeg?new Uint8Array(0):rr.initSegment([e]),metadata:{channelCount:e.channelCount}},F&&(Re=e.id,ue=e.inputTimeScale,!g||ue!==g.timescale?q=Ae=this.computeInitPts(o[0].pts,ue,r,"audio"):F=!1)}if(t.sps&&t.pps&&A.length){if(t.timescale=t.inputTimeScale,y.video={id:"main",container:"video/mp4",codec:t.codec,initSegment:rr.initSegment([t]),metadata:{width:t.width,height:t.height}},F)if(Re=t.id,ue=t.inputTimeScale,!g||ue!==g.timescale){const ke=this.getVideoStartPts(A),it=va(A[0].dts,ke),ft=this.computeInitPts(it,ue,r,"video"),_t=this.computeInitPts(ke,ue,r,"video");Ae=Math.min(Ae,ft),q=Math.min(q,_t)}else F=!1;this.videoTrackConfig={width:t.width,height:t.height,pixelRatio:t.pixelRatio}}if(Object.keys(y).length)return this.ISGenerated=!0,F?(g&&this.warn(`Timestamps at playlist time: ${i?"":"~"}${r} ${q/ue} != initPTS: ${g.baseTime/g.timescale} (${g.baseTime}/${g.timescale}) trackId: ${g.trackId}`),this.log(`Found initPTS at playlist time: ${r} offset: ${q/ue} (${q}/${ue}) trackId: ${Re}`),this._initPTS={baseTime:q,timescale:ue,trackId:Re},this._initDTS={baseTime:Ae,timescale:ue,trackId:Re}):q=ue=void 0,{tracks:y,initPTS:q,timescale:ue,trackId:Re}}remuxVideo(e,t,r,i){const o=e.inputTimeScale,A=e.samples,h=[],y=A.length,g=this._initPTS,F=g.baseTime*o/g.timescale;let N=this.nextVideoTs,q=8,Ae=this.videoSampleDuration,ue,Re,ke=Number.POSITIVE_INFINITY,it=Number.NEGATIVE_INFINITY,ft=!1;if(!r||N===null){const Dn=F+t*o,kn=A[0].pts-va(A[0].dts,A[0].pts);yA&&N!==null&&Math.abs(Dn-kn-(N+F))<15e3?r=!0:N=Dn-kn-F}const _t=N+F;for(let Dn=0;Dn<y;Dn++){const kn=A[Dn];kn.pts=va(kn.pts,_t),kn.dts=va(kn.dts,_t),kn.dts<A[Dn>0?Dn-1:Dn].dts&&(ft=!0)}ft&&A.sort(function(Dn,kn){const os=Dn.dts-kn.dts,Vs=Dn.pts-kn.pts;return os||Vs}),ue=A[0].dts,Re=A[A.length-1].dts;const zt=Re-ue,ir=zt?Math.round(zt/(y-1)):Ae||e.inputTimeScale/30;if(r){const Dn=ue-_t,kn=Dn>ir,os=Dn<-1;if((kn||os)&&(kn?this.warn(`${(e.segmentCodec||"").toUpperCase()}: ${da(Dn,!0)} ms (${Dn}dts) hole between fragments detected at ${t.toFixed(3)}`):this.warn(`${(e.segmentCodec||"").toUpperCase()}: ${da(-Dn,!0)} ms (${Dn}dts) overlapping between fragments detected at ${t.toFixed(3)}`),!os||_t>=A[0].pts||yA)){ue=_t;const Vs=A[0].pts-Dn;if(kn)A[0].dts=ue,A[0].pts=Vs;else{let cs=!0;for(let _s=0;_s<A.length&&!(A[_s].dts>Vs&&cs);_s++){const EA=A[_s].pts;if(A[_s].dts-=Dn,A[_s].pts-=Dn,_s<A.length-1){const nA=A[_s+1].pts,Yl=A[_s].pts,Ku=nA<=Yl,k0=nA<=EA;cs=Ku==k0}}}this.log(`Video: Initial PTS/DTS adjusted: ${da(Vs,!0)}/${da(ue,!0)}, delta: ${da(Dn,!0)} ms`)}}ue=Math.max(0,ue);let Nr=0,or=0,Cr=ue;for(let Dn=0;Dn<y;Dn++){const kn=A[Dn],os=kn.units,Vs=os.length;let cs=0;for(let _s=0;_s<Vs;_s++)cs+=os[_s].data.length;or+=cs,Nr+=Vs,kn.length=cs,kn.dts<Cr?(kn.dts=Cr,Cr+=ir/4|0||1):Cr=kn.dts,ke=Math.min(kn.pts,ke),it=Math.max(kn.pts,it)}Re=A[y-1].dts;const br=or+4*Nr+8;let pr;try{pr=new Uint8Array(br)}catch(Dn){this.observer.emit(I.ERROR,I.ERROR,{type:Me.MUX_ERROR,details:de.REMUX_ALLOC_ERROR,fatal:!1,error:Dn,bytes:br,reason:`fail allocating video mdat ${br}`});return}const qr=new DataView(pr.buffer);qr.setUint32(0,br),pr.set(rr.types.mdat,4);let Cn=!1,Yn=Number.POSITIVE_INFINITY,ii=Number.POSITIVE_INFINITY,On=Number.NEGATIVE_INFINITY,Tn=Number.NEGATIVE_INFINITY;for(let Dn=0;Dn<y;Dn++){const kn=A[Dn],os=kn.units;let Vs=0;for(let EA=0,nA=os.length;EA<nA;EA++){const Yl=os[EA],Ku=Yl.data,k0=Yl.data.byteLength;qr.setUint32(q,k0),q+=4,pr.set(Ku,q),q+=k0,Vs+=4+k0}let cs;if(Dn<y-1)Ae=A[Dn+1].dts-kn.dts,cs=A[Dn+1].pts-kn.pts;else{const EA=this.config,nA=Dn>0?kn.dts-A[Dn-1].dts:ir;if(cs=Dn>0?kn.pts-A[Dn-1].pts:ir,EA.stretchShortVideoTrack&&this.nextAudioTs!==null){const Yl=Math.floor(EA.maxBufferHole*o),Ku=(i?ke+i*o:this.nextAudioTs+F)-kn.pts;Ku>Yl?(Ae=Ku-nA,Ae<0?Ae=nA:Cn=!0,this.log(`It is approximately ${Ku/90} ms to the next segment; using duration ${Ae/90} ms for the last video frame.`)):Ae=nA}else Ae=nA}const _s=Math.round(kn.pts-kn.dts);Yn=Math.min(Yn,Ae),On=Math.max(On,Ae),ii=Math.min(ii,cs),Tn=Math.max(Tn,cs),h.push(OA(kn.key,Ae,Vs,_s))}if(h.length){if(yA){if(yA<70){const Dn=h[0].flags;Dn.dependsOn=2,Dn.isNonSync=0}}else if(fu&&Tn-ii<On-Yn&&ir/On<.025&&h[0].cts===0){this.warn("Found irregular gaps in sample duration. Using PTS instead of DTS to determine MP4 sample duration.");let Dn=ue;for(let kn=0,os=h.length;kn<os;kn++){const Vs=Dn+h[kn].duration,cs=Dn+h[kn].cts;if(kn<os-1){const _s=Vs+h[kn+1].cts;h[kn].duration=_s-cs}else h[kn].duration=kn?h[kn-1].duration:ir;h[kn].cts=0,Dn=Vs}}}Ae=Cn||!Ae?ir:Ae;const qn=Re+Ae;this.nextVideoTs=N=qn-F,this.videoSampleDuration=Ae,this.isVideoContiguous=!0;const Di={data1:rr.moof(e.sequenceNumber++,ue,w(e,{samples:h})),data2:pr,startPTS:(ke-F)/o,endPTS:(it+Ae-F)/o,startDTS:(ue-F)/o,endDTS:N/o,type:"video",hasAudio:!1,hasVideo:!0,nb:h.length,dropped:e.dropped};return e.samples=[],e.dropped=0,Di}getSamplesPerFrame(e){switch(e.segmentCodec){case"mp3":return bl;case"ac3":return hu;default:return wl}}remuxAudio(e,t,r,i,o){const A=e.inputTimeScale,h=e.samplerate?e.samplerate:A,y=A/h,g=this.getSamplesPerFrame(e),F=g*y,N=this._initPTS,q=e.segmentCodec==="mp3"&&this.typeSupported.mpeg,Ae=[],ue=o!==void 0;let Re=e.samples,ke=q?0:8,it=this.nextAudioTs||-1;const ft=N.baseTime*A/N.timescale,_t=ft+t*A;if(this.isAudioContiguous=r=r||Re.length&&it>0&&(i&&Math.abs(_t-(it+ft))<9e3||Math.abs(va(Re[0].pts,_t)-(it+ft))<20*F),Re.forEach(function(Tn){Tn.pts=va(Tn.pts,_t)}),!r||it<0){const Tn=Re.length;if(Re=Re.filter(qn=>qn.pts>=0),Tn!==Re.length&&this.warn(`Removed ${Re.length-Tn} of ${Tn} samples (initPTS ${ft} / ${A})`),!Re.length)return;o===0?it=0:i&&!ue?it=Math.max(0,_t-ft):it=Re[0].pts-ft}if(e.segmentCodec==="aac"){const Tn=this.config.maxAudioFramesDrift;for(let qn=0,Mn=it+ft;qn<Re.length;qn++){const ei=Re[qn],Di=ei.pts,Dn=Di-Mn,kn=Math.abs(1e3*Dn/A);if(Dn<=-Tn*F&&ue)qn===0&&(this.warn(`Audio frame @ ${(Di/A).toFixed(3)}s overlaps marker by ${Math.round(1e3*Dn/A)} ms.`),this.nextAudioTs=it=Di-ft,Mn=Di);else if(Dn>=Tn*F&&kn<oh&&ue){let os=Math.round(Dn/F);for(Mn=Di-os*F;Mn<0&&os&&F;)os--,Mn+=F;qn===0&&(this.nextAudioTs=it=Mn-ft),this.warn(`Injecting ${os} audio frames @ ${((Mn-ft)/A).toFixed(3)}s due to ${Math.round(1e3*Dn/A)} ms gap.`);for(let Vs=0;Vs<os;Vs++){let cs=ro.getSilentFrame(e.parsedCodec||e.manifestCodec||e.codec,e.channelCount);cs||(this.log("Unable to get silent frame for given audio codec; duplicating last frame instead."),cs=ei.unit.subarray()),Re.splice(qn,0,{unit:cs,pts:Mn}),Mn+=F,qn++}}ei.pts=Mn,Mn+=F}}let zt=null,ir=null,Nr,or=0,Cr=Re.length;for(;Cr--;)or+=Re[Cr].unit.byteLength;for(let Tn=0,qn=Re.length;Tn<qn;Tn++){const Mn=Re[Tn],ei=Mn.unit;let Di=Mn.pts;if(ir!==null){const kn=Ae[Tn-1];kn.duration=Math.round((Di-ir)/y)}else if(r&&e.segmentCodec==="aac"&&(Di=it+ft),zt=Di,or>0){or+=ke;try{Nr=new Uint8Array(or)}catch(kn){this.observer.emit(I.ERROR,I.ERROR,{type:Me.MUX_ERROR,details:de.REMUX_ALLOC_ERROR,fatal:!1,error:kn,bytes:or,reason:`fail allocating audio mdat ${or}`});return}q||(new DataView(Nr.buffer).setUint32(0,or),Nr.set(rr.types.mdat,4))}else return;Nr.set(ei,ke);const Dn=ei.byteLength;ke+=Dn,Ae.push(OA(!0,g,Dn,0)),ir=Di}const br=Ae.length;if(!br)return;const pr=Ae[Ae.length-1];it=ir-ft,this.nextAudioTs=it+y*pr.duration;const qr=q?new Uint8Array(0):rr.moof(e.sequenceNumber++,zt/y,w({},e,{samples:Ae}));e.samples=[];const Cn=(zt-ft)/A,Yn=it/A,On={data1:qr,data2:Nr,startPTS:Cn,endPTS:Yn,startDTS:Cn,endDTS:Yn,type:"audio",hasAudio:!0,hasVideo:!1,nb:br};return this.isAudioContiguous=!0,On}}function va(l,e){let t;if(e===null)return l;for(e<l?t=-8589934592:t=8589934592;Math.abs(l-e)>4294967296;)l+=t;return l}function of(l){for(let e=0;e<l.length;e++)if(l[e].key)return e;return-1}function nc(l,e,t,r){const i=l.samples.length;if(!i)return;const o=l.inputTimeScale;for(let h=0;h<i;h++){const y=l.samples[h];y.pts=va(y.pts-t.baseTime*o/t.timescale,e*o)/o,y.dts=va(y.dts-r.baseTime*o/r.timescale,e*o)/o}const A=l.samples;return l.samples=[],{samples:A}}function jo(l,e,t){const r=l.samples.length;if(!r)return;const i=l.inputTimeScale;for(let A=0;A<r;A++){const h=l.samples[A];h.pts=va(h.pts-t.baseTime*i/t.timescale,e*i)/i}l.samples.sort((A,h)=>A.pts-h.pts);const o=l.samples;return l.samples=[],{samples:o}}class ic extends V{constructor(e,t,r,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,r,i){this.audioCodec=t,this.videoCodec=r,this.generateInitSegment(e,i),this.emitInitSegment=!0}generateInitSegment(e,t){let{audioCodec:r,videoCodec:i}=this;if(!(e!=null&&e.byteLength)){this.initTracks=void 0,this.initData=void 0;return}const{audio:o,video:A}=this.initData=ae(e);if(t)nr(e,t);else{const y=o||A;y!=null&&y.encrypted&&this.warn(`Init segment with encrypted track with has no key ("${y.codec}")!`)}o&&(r=Af(o,ee.AUDIO,this)),A&&(i=Af(A,ee.VIDEO,this));const h={};o&&A?h.audiovideo={container:"video/mp4",codec:r+","+i,supplemental:A.supplemental,encrypted:A.encrypted,initSegment:e,id:"main"}:o?h.audio={container:"audio/mp4",codec:r,encrypted:o.encrypted,initSegment:e,id:"audio"}:A?h.video={container:"video/mp4",codec:i,supplemental:A.supplemental,encrypted:A.encrypted,initSegment:e,id:"main"}:this.warn("initSegment does not contain moov or trak boxes."),this.initTracks=h}remux(e,t,r,i,o,A){var h,y;let{initPTS:g,lastEndTime:F}=this;const N={audio:void 0,video:void 0,text:i,id3:r,initSegment:void 0};Ie(F)||(F=this.lastEndTime=o||0);const q=t.samples;if(!q.length)return N;const Ae={initPTS:void 0,timescale:void 0,trackId:void 0};let ue=this.initData;if((h=ue)!=null&&h.length||(this.generateInitSegment(q),ue=this.initData),!((y=ue)!=null&&y.length))return this.warn("Failed to generate initSegment."),N;this.emitInitSegment&&(Ae.tracks=this.initTracks,this.emitInitSegment=!1);const Re=Mt(q,ue,this),ke=ue.audio?Re[ue.audio.id]:null,it=ue.video?Re[ue.video.id]:null,ft=Ru(it,1/0),_t=Ru(ke,1/0),zt=Ru(it,0,!0),ir=Ru(ke,0,!0);let Nr=o,or=0;const Cr=ke&&(!it||!g&&_t<ft||g&&g.trackId===ue.audio.id),br=Cr?ke:it;if(br){const Mn=br.timescale,ei=br.start-o*Mn,Di=Cr?ue.audio.id:ue.video.id;Nr=br.start/Mn,or=Cr?ir-_t:zt-ft,(A||!g)&&(Rc(g,Nr,o,or)||Mn!==g.timescale)&&(g&&this.warn(`Timestamps at playlist time: ${A?"":"~"}${o} ${ei/Mn} != initPTS: ${g.baseTime/g.timescale} (${g.baseTime}/${g.timescale}) trackId: ${g.trackId}`),this.log(`Found initPTS at playlist time: ${o} offset: ${Nr-o} (${ei}/${Mn}) trackId: ${Di}`),g=null,Ae.initPTS=ei,Ae.timescale=Mn,Ae.trackId=Di)}else this.warn(`No audio or video samples found for initPTS at playlist time: ${o}`);g?(Ae.initPTS=g.baseTime,Ae.timescale=g.timescale,Ae.trackId=g.trackId):((!Ae.timescale||Ae.trackId===void 0||Ae.initPTS===void 0)&&(this.warn("Could not set initPTS"),Ae.initPTS=Nr,Ae.timescale=1,Ae.trackId=-1),this.initPTS=g={baseTime:Ae.initPTS,timescale:Ae.timescale,trackId:Ae.trackId});const pr=Nr-g.baseTime/g.timescale,qr=pr+or;or>0?this.lastEndTime=qr:(this.warn("Duration parsed from mp4 should be greater than zero"),this.resetNextTimestamp());const Cn=!!ue.audio,Yn=!!ue.video;let ii="";Cn&&(ii+="audio"),Yn&&(ii+="video");const On=(ue.audio?ue.audio.encrypted:!1)||(ue.video?ue.video.encrypted:!1),Tn={data1:q,startPTS:pr,startDTS:pr,endPTS:qr,endDTS:qr,type:ii,hasAudio:Cn,hasVideo:Yn,nb:1,dropped:0,encrypted:On};N.audio=Cn&&!Yn?Tn:void 0,N.video=Yn?Tn:void 0;const qn=it==null?void 0:it.sampleCount;if(qn){const Mn=it.keyFrameIndex,ei=Mn!==-1;Tn.nb=qn,Tn.dropped=Mn===0||this.isVideoContiguous?0:ei?Mn:qn,Tn.independent=ei,Tn.firstKeyFrame=Mn,ei&&it.keyFrameStart&&(Tn.firstKeyFramePTS=(it.keyFrameStart-g.baseTime)/g.timescale),this.isVideoContiguous||(N.independent=ei),this.isVideoContiguous||(this.isVideoContiguous=ei),Tn.dropped&&this.warn(`fmp4 does not start with IDR: firstIDR ${Mn}/${qn} dropped: ${Tn.dropped} start: ${Tn.firstKeyFramePTS||"NA"}`)}return N.initSegment=Ae,N.id3=nc(r,o,g,g),i.samples.length&&(N.text=jo(i,o,g)),N}}function Ru(l,e,t=!1){return(l==null?void 0:l.start)!==void 0?(l.start+(t?l.duration:0))/l.timescale:e}function Rc(l,e,t,r){if(l===null)return!0;const i=Math.max(r,1),o=e-l.baseTime/l.timescale;return Math.abs(o-t)>i}function Af(l,e,t){const r=l.codec;return r&&r.length>4?r:e===ee.AUDIO?r==="ec-3"||r==="ac-3"||r==="alac"?r:r==="fLaC"||r==="Opus"?ht(r,!1):(t.warn(`Unhandled audio codec "${r}" in mp4 MAP`),r||"mp4a"):(t.warn(`Unhandled video codec "${r}" in mp4 MAP`),r||"avc1")}let nl;try{nl=self.performance.now.bind(self.performance)}catch(l){nl=Date.now}const f0=[{demux:Jt,remux:ic},{demux:yi,remux:El},{demux:Q,remux:El},{demux:nt,remux:El}];f0.splice(2,0,{demux:be,remux:El});class lf{constructor(e,t,r,i,o,A){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=r,this.id=o,this.logger=A}configure(e){this.transmuxConfig=e,this.decrypter&&this.decrypter.reset()}push(e,t,r,i){const o=r.transmuxing;o.executeStart=nl();let A=new Uint8Array(e);const{currentTransmuxState:h,transmuxConfig:y}=this;i&&(this.currentTransmuxState=i);const{contiguous:g,discontinuity:F,trackSwitch:N,accurateTimeOffset:q,timeOffset:Ae,initSegmentChange:ue}=i||h,{audioCodec:Re,videoCodec:ke,defaultInitPts:it,duration:ft,initSegmentData:_t}=y,zt=ud(A,t);if(zt&&Po(zt.method)){const Cr=this.getDecrypter(),br=ZA(zt.method);if(Cr.isSync()){let pr=Cr.softwareDecrypt(A,zt.key.buffer,zt.iv.buffer,br);if(r.part>-1){const Cn=Cr.flush();pr=Cn&&Cn.buffer}if(!pr)return o.executeEnd=nl(),Ah(r);A=new Uint8Array(pr)}else return this.asyncResult=!0,this.decryptionPromise=Cr.webCryptoDecrypt(A,zt.key.buffer,zt.iv.buffer,br).then(pr=>{const qr=this.push(pr,null,r);return this.decryptionPromise=null,qr}),this.decryptionPromise}const ir=this.needsProbing(F,N);if(ir){const Cr=this.configureTransmuxer(A);if(Cr)return this.logger.warn(`[transmuxer] ${Cr.message}`),this.observer.emit(I.ERROR,I.ERROR,{type:Me.MEDIA_ERROR,details:de.FRAG_PARSING_ERROR,fatal:!1,error:Cr,reason:Cr.message}),o.executeEnd=nl(),Ah(r)}(F||N||ue||ir)&&this.resetInitSegment(_t,Re,ke,ft,t),(F||ue||ir)&&this.resetInitialTimestamp(it),g||this.resetContiguity();const Nr=this.transmux(A,zt,Ae,q,r);this.asyncResult=sc(Nr);const or=this.currentTransmuxState;return or.contiguous=!0,or.discontinuity=!1,or.trackSwitch=!1,o.executeEnd=nl(),Nr}flush(e){const t=e.transmuxing;t.executeStart=nl();const{decrypter:r,currentTransmuxState:i,decryptionPromise:o}=this;if(o)return this.asyncResult=!0,o.then(()=>this.flush(e));const A=[],{timeOffset:h}=i;if(r){const N=r.flush();N&&A.push(this.push(N.buffer,null,e))}const{demuxer:y,remuxer:g}=this;if(!y||!g){t.executeEnd=nl();const N=[Ah(e)];return this.asyncResult?Promise.resolve(N):N}const F=y.flush(h);return sc(F)?(this.asyncResult=!0,F.then(N=>(this.flushRemux(A,N,e),A))):(this.flushRemux(A,F,e),this.asyncResult?Promise.resolve(A):A)}flushRemux(e,t,r){const{audioTrack:i,videoTrack:o,id3Track:A,textTrack:h}=t,{accurateTimeOffset:y,timeOffset:g}=this.currentTransmuxState;this.logger.log(`[transmuxer.ts]: Flushed ${this.id} sn: ${r.sn}${r.part>-1?" part: "+r.part:""} of ${this.id===R.MAIN?"level":"track"} ${r.level}`);const F=this.remuxer.remux(i,o,A,h,g,y,!0,this.id);e.push({remuxResult:F,chunkMeta:r}),r.transmuxing.executeEnd=nl()}resetInitialTimestamp(e){const{demuxer:t,remuxer:r}=this;!t||!r||(t.resetTimeStamp(e),r.resetTimeStamp(e))}resetContiguity(){const{demuxer:e,remuxer:t}=this;!e||!t||(e.resetContiguity(),t.resetNextTimestamp())}resetInitSegment(e,t,r,i,o){const{demuxer:A,remuxer:h}=this;!A||!h||(A.resetInitSegment(e,t,r,i),h.resetInitSegment(e,t,r,o))}destroy(){this.demuxer&&(this.demuxer.destroy(),this.demuxer=void 0),this.remuxer&&(this.remuxer.destroy(),this.remuxer=void 0)}transmux(e,t,r,i,o){let A;return t&&t.method==="SAMPLE-AES"?A=this.transmuxSampleAes(e,t,r,i,o):A=this.transmuxUnencrypted(e,r,i,o),A}transmuxUnencrypted(e,t,r,i){const{audioTrack:o,videoTrack:A,id3Track:h,textTrack:y}=this.demuxer.demux(e,t,!1,!this.config.progressive);return{remuxResult:this.remuxer.remux(o,A,h,y,t,r,!1,this.id),chunkMeta:i}}transmuxSampleAes(e,t,r,i,o){return this.demuxer.demuxSampleAes(e,t,r).then(A=>({remuxResult:this.remuxer.remux(A.audioTrack,A.videoTrack,A.id3Track,A.textTrack,r,i,!1,this.id),chunkMeta:o}))}configureTransmuxer(e){const{config:t,observer:r,typeSupported:i}=this;let o;for(let N=0,q=f0.length;N<q;N++){var A;if((A=f0[N].demux)!=null&&A.probe(e,this.logger)){o=f0[N];break}}if(!o)return new Error("Failed to find demuxer by probing fragment data");const h=this.demuxer,y=this.remuxer,g=o.remux,F=o.demux;(!y||!(y instanceof g))&&(this.remuxer=new g(r,t,i,this.logger)),(!h||!(h instanceof F))&&(this.demuxer=new F(r,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 Ms(this.config)),e}}function ud(l,e){let t=null;return l.byteLength>0&&(e==null?void 0:e.key)!=null&&e.iv!==null&&e.method!=null&&(t=e),t}const Ah=l=>({remuxResult:{},chunkMeta:l});function sc(l){return"then"in l&&l.then instanceof Function}class cd{constructor(e,t,r,i,o){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=r,this.duration=i,this.defaultInitPts=o||null}}class hd{constructor(e,t,r,i,o,A){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=r,this.trackSwitch=i,this.timeOffset=o,this.initSegmentChange=A}}let uf=0;class lh{constructor(e,t,r,i){this.error=null,this.hls=void 0,this.id=void 0,this.instanceNo=uf++,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=y=>{const g=y.data,F=this.hls;if(!(!F||!(g!=null&&g.event)||g.instanceNo!==this.instanceNo))switch(g.event){case"init":{var N;const q=(N=this.workerContext)==null?void 0:N.objectURL;q&&self.URL.revokeObjectURL(q);break}case"transmuxComplete":{this.handleTransmuxComplete(g.data);break}case"flush":{this.onFlush(g.data);break}case"workerLog":{F.logger[g.data.logType]&&F.logger[g.data.logType](g.data.message);break}default:{g.data=g.data||{},g.data.frag=this.frag,g.data.part=this.part,g.data.id=this.id,F.trigger(g.event,g.data);break}}},this.onWorkerError=y=>{if(!this.hls)return;const g=new Error(`${y.message} (${y.filename}:${y.lineno})`);this.hls.config.enableWorker=!1,this.hls.logger.warn(`Error in "${this.id}" Web Worker, fallback to inline`),this.hls.trigger(I.ERROR,{type:Me.OTHER_ERROR,details:de.INTERNAL_EXCEPTION,fatal:!1,event:"demuxerWorker",error:g})};const o=e.config;this.hls=e,this.id=t,this.useWorker=!!o.enableWorker,this.onTransmuxComplete=r,this.onFlush=i;const A=(y,g)=>{g=g||{},g.frag=this.frag||void 0,y===I.ERROR&&(g=g,g.parent=this.id,g.part=this.part,this.error=g.error),this.hls.trigger(y,g)};this.observer=new tc,this.observer.on(I.FRAG_DECRYPTED,A),this.observer.on(I.ERROR,A);const h=Kn(o.preferManagedMediaSource);if(this.useWorker&&typeof Worker!="undefined"){const y=this.hls.logger;if(o.workerPath||ef()){try{o.workerPath?(y.log(`loading Web Worker ${o.workerPath} for "${t}"`),this.workerContext=Qo(o.workerPath)):(y.log(`injecting Web Worker for "${t}"`),this.workerContext=Nl());const{worker:F}=this.workerContext;F.addEventListener("message",this.onWorkerMessage),F.addEventListener("error",this.onWorkerError),F.postMessage({instanceNo:this.instanceNo,cmd:"init",typeSupported:h,id:t,config:Vn(o)})}catch(F){y.warn(`Error setting up "${t}" Web Worker, fallback to inline`,F),this.terminateWorker(),this.error=null,this.transmuxer=new lf(this.observer,h,o,"",t,e.logger)}return}}this.transmuxer=new lf(this.observer,h,o,"",t,e.logger)}reset(){if(this.frag=null,this.part=null,this.workerContext){const e=this.instanceNo;this.instanceNo=uf++;const t=this.hls.config,r=Kn(t.preferManagedMediaSource);this.workerContext.worker.postMessage({instanceNo:this.instanceNo,cmd:"reset",resetNo:e,typeSupported:r,id:this.id,config:Vn(t)})}}terminateWorker(){if(this.workerContext){const{worker:e}=this.workerContext;this.workerContext=null,e.removeEventListener("message",this.onWorkerMessage),e.removeEventListener("error",this.onWorkerError),Xo(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,r,i,o,A,h,y,g,F){var N,q;g.transmuxing.start=self.performance.now();const{instanceNo:Ae,transmuxer:ue}=this,Re=A?A.start:o.start,ke=o.decryptdata,it=this.frag,ft=!(it&&o.cc===it.cc),_t=!(it&&g.level===it.level),zt=it?g.sn-it.sn:-1,ir=this.part?g.part-this.part.index:-1,Nr=zt===0&&g.id>1&&g.id===(it==null?void 0:it.stats.chunkCount),or=!_t&&(zt===1||zt===0&&(ir===1||Nr&&ir<=0)),Cr=self.performance.now();(_t||zt||o.stats.parsing.start===0)&&(o.stats.parsing.start=Cr),A&&(ir||!or)&&(A.stats.parsing.start=Cr);const br=!(it&&((N=o.initSegment)==null?void 0:N.url)===((q=it.initSegment)==null?void 0:q.url)),pr=new hd(ft,or,y,_t,Re,br);if(!or||ft||br){this.hls.logger.log(`[transmuxer-interface]: Starting new transmux session for ${o.type} sn: ${g.sn}${g.part>-1?" part: "+g.part:""} ${this.id===R.MAIN?"level":"track"}: ${g.level} id: ${g.id}
|
|
|
discontinuity: ${ft}
|
|
|
trackSwitch: ${_t}
|
|
|
contiguous: ${or}
|
|
|
accurateTimeOffset: ${y}
|
|
|
timeOffset: ${Re}
|
|
|
initSegmentChange: ${br}`);const qr=new cd(r,i,t,h,F);this.configureTransmuxer(qr)}if(this.frag=o,this.part=A,this.workerContext)this.workerContext.worker.postMessage({instanceNo:Ae,cmd:"demux",data:e,decryptdata:ke,chunkMeta:g,state:pr},e instanceof ArrayBuffer?[e]:[]);else if(ue){const qr=ue.push(e,ke,g,pr);sc(qr)?qr.then(Cn=>{this.handleTransmuxComplete(Cn)}).catch(Cn=>{this.transmuxerError(Cn,g,"transmuxer-interface push error")}):this.handleTransmuxComplete(qr)}}flush(e){e.transmuxing.start=self.performance.now();const{instanceNo:t,transmuxer:r}=this;if(this.workerContext)this.workerContext.worker.postMessage({instanceNo:t,cmd:"flush",chunkMeta:e});else if(r){const i=r.flush(e);sc(i)?i.then(o=>{this.handleFlushResult(o,e)}).catch(o=>{this.transmuxerError(o,e,"transmuxer-interface flush error")}):this.handleFlushResult(i,e)}}transmuxerError(e,t,r){this.hls&&(this.error=e,this.hls.trigger(I.ERROR,{type:Me.MEDIA_ERROR,details:de.FRAG_PARSING_ERROR,chunkMeta:t,frag:this.frag||void 0,part:this.part||void 0,fatal:!1,error:e,err:e,reason:r}))}handleFlushResult(e,t){e.forEach(r=>{this.handleTransmuxComplete(r)}),this.onFlush(t)}configureTransmuxer(e){const{instanceNo:t,transmuxer:r}=this;this.workerContext?this.workerContext.worker.postMessage({instanceNo:t,cmd:"configure",config:e}):r&&r.configure(e)}handleTransmuxComplete(e){e.chunkMeta.transmuxing.end=self.performance.now(),this.onTransmuxComplete(e)}}const d0=100;class il extends RA{constructor(e,t,r){super(e,t,r,"audio-stream-controller",R.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(I.LEVEL_LOADED,this.onLevelLoaded,this),e.on(I.AUDIO_TRACKS_UPDATED,this.onAudioTracksUpdated,this),e.on(I.AUDIO_TRACK_SWITCHING,this.onAudioTrackSwitching,this),e.on(I.AUDIO_TRACK_LOADED,this.onAudioTrackLoaded,this),e.on(I.BUFFER_RESET,this.onBufferReset,this),e.on(I.BUFFER_CREATED,this.onBufferCreated,this),e.on(I.BUFFER_FLUSHING,this.onBufferFlushing,this),e.on(I.BUFFER_FLUSHED,this.onBufferFlushed,this),e.on(I.INIT_PTS_FOUND,this.onInitPtsFound,this),e.on(I.FRAG_LOADING,this.onFragLoading,this),e.on(I.FRAG_BUFFERED,this.onFragBuffered,this)}unregisterListeners(){const{hls:e}=this;e&&(super.unregisterListeners(),e.off(I.LEVEL_LOADED,this.onLevelLoaded,this),e.off(I.AUDIO_TRACKS_UPDATED,this.onAudioTracksUpdated,this),e.off(I.AUDIO_TRACK_SWITCHING,this.onAudioTrackSwitching,this),e.off(I.AUDIO_TRACK_LOADED,this.onAudioTrackLoaded,this),e.off(I.BUFFER_RESET,this.onBufferReset,this),e.off(I.BUFFER_CREATED,this.onBufferCreated,this),e.off(I.BUFFER_FLUSHING,this.onBufferFlushing,this),e.off(I.BUFFER_FLUSHED,this.onBufferFlushed,this),e.off(I.INIT_PTS_FOUND,this.onInitPtsFound,this),e.off(I.FRAG_LOADING,this.onFragLoading,this),e.off(I.FRAG_BUFFERED,this.onFragBuffered,this))}onInitPtsFound(e,{frag:t,id:r,initPTS:i,timescale:o,trackId:A}){if(r===R.MAIN){const h=t.cc,y=this.fragCurrent;if(this.initPTS[h]={baseTime:i,timescale:o,trackId:A},this.log(`InitPTS for cc: ${h} found from main: ${i/o} (${i}/${o}) trackId: ${A}`),this.mainAnchor=t,this.state===Zr.WAITING_INIT_PTS){const g=this.waitingData;(!g&&!this.loadingParts||g&&g.frag.cc!==h)&&this.syncWithAnchor(t,g==null?void 0:g.frag)}else!this.hls.hasEnoughToStart&&y&&y.cc!==h?(y.abortRequests(),this.syncWithAnchor(t,y)):this.state===Zr.IDLE&&this.tick()}}getLoadPosition(){return!this.startFragRequested&&this.nextLoadPosition>=0?this.nextLoadPosition:super.getLoadPosition()}syncWithAnchor(e,t){var r;const i=((r=this.mainFragLoading)==null?void 0:r.frag)||null;if(t&&(i==null?void 0:i.cc)===t.cc)return;const o=(i||e).cc,A=this.getLevelDetails(),h=this.getLoadPosition(),y=fl(A,o,h);y&&(this.log(`Syncing with main frag at ${y.start} cc ${y.cc}`),this.startFragRequested=!1,this.nextLoadPosition=y.start,this.resetLoadingState(),this.state===Zr.IDLE&&this.doTickIdle())}startLoad(e,t){if(!this.levels){this.startPosition=e,this.state=Zr.STOPPED;return}const r=this.lastCurrentTime;this.stopLoad(),this.setInterval(d0),r>0&&e===-1?(this.log(`Override startPosition with lastCurrentTime @${r.toFixed(3)}`),e=r,this.state=Zr.IDLE):this.state=Zr.WAITING_TRACK,this.nextLoadPosition=this.lastCurrentTime=e+this.timelineOffset,this.startPosition=t?-1:e,this.tick()}doTick(){switch(this.state){case Zr.IDLE:this.doTickIdle();break;case Zr.WAITING_TRACK:{const{levels:e,trackId:t}=this,r=e==null?void 0:e[t],i=r==null?void 0:r.details;if(i&&!this.waitForLive(r)){if(this.waitForCdnTuneIn(i))break;this.state=Zr.WAITING_INIT_PTS}break}case Zr.FRAG_LOADING_WAITING_RETRY:{this.checkRetryDate();break}case Zr.WAITING_INIT_PTS:{const e=this.waitingData;if(e){const{frag:t,part:r,cache:i,complete:o}=e,A=this.mainAnchor;if(this.initPTS[t.cc]!==void 0){this.waitingData=null,this.state=Zr.FRAG_LOADING;const h=i.flush().buffer,y={frag:t,part:r,payload:h,networkDetails:null};this._handleFragmentLoadProgress(y),o&&super._handleFragmentLoadComplete(y)}else A&&A.cc!==e.frag.cc&&this.syncWithAnchor(A,e.frag)}else this.state=Zr.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:r,media:i,trackId:o}=this,A=t.config;if(!this.buffering||!i&&!this.primaryPrefetch&&(this.startFragRequested||!A.startFragPrefetch)||!(r!=null&&r[o]))return;const h=r[o],y=h.details;if(!y||this.waitForLive(h)||this.waitForCdnTuneIn(y)){this.state=Zr.WAITING_TRACK,this.startFragRequested=!1;return}const g=this.mediaBuffer?this.mediaBuffer:this.media;this.bufferFlushed&&g&&(this.bufferFlushed=!1,this.afterBufferFlushed(g,ee.AUDIO,R.AUDIO));const F=this.getFwdBufferInfo(g,R.AUDIO);if(F===null)return;if(!this.switchingTrack&&this._streamEnded(F,y)){t.trigger(I.BUFFER_EOS,{type:"audio"}),this.state=Zr.ENDED;return}const N=F.len,q=t.maxBufferLength,Ae=y.fragments,ue=Ae[0].start,Re=this.getLoadPosition(),ke=this.flushing?Re:F.end;if(this.switchingTrack&&i){const _t=Re;y.PTSKnown&&_t<ue&&(F.end>ue||F.nextStart)&&(this.log("Alt audio track ahead of main track, seek to start of alt audio track"),i.currentTime=ue+.05)}if(N>=q&&!this.switchingTrack&&ke<Ae[Ae.length-1].start)return;let it=this.getNextFragment(ke,y);if(it&&this.isLoopLoading(it,ke)&&(it=this.getNextFragmentLoopLoading(it,y,F,R.MAIN,q)),!it){this.bufferFlushed=!0;return}let ft=((e=this.mainFragLoading)==null?void 0:e.frag)||null;if(!this.audioOnly&&this.startFragRequested&&ft&&ut(it)&&!it.endList&&(!y.live||!this.loadingParts&&ke<this.hls.liveSyncPosition)&&(this.fragmentTracker.getState(ft)===Cs.OK&&(this.mainFragLoading=ft=null),ft&&ut(ft))){if(it.start>ft.end){const zt=this.fragmentTracker.getFragAtPos(ke,R.MAIN);zt&&zt.end>ft.end&&(ft=zt,this.mainFragLoading={frag:zt,targetBufferTime:null})}if(it.start>ft.end)return}this.loadFragment(it,h,ke)}onMediaDetaching(e,t){this.bufferFlushed=this.flushing=!1,super.onMediaDetaching(e,t)}onAudioTracksUpdated(e,{audioTracks:t}){this.resetTransmuxer(),this.levels=t.map(r=>new Qi(r))}onAudioTrackSwitching(e,t){const r=!!t.url;this.trackId=t.id;const{fragCurrent:i}=this;i&&(i.abortRequests(),this.removeUnbufferedFrags(i.start)),this.resetLoadingState(),r?(this.switchingTrack=t,this.flushAudioIfNeeded(t),this.state!==Zr.STOPPED&&(this.setInterval(d0),this.state=Zr.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 r=this.cachedTrackLoadedData;r&&(this.cachedTrackLoadedData=null,this.onAudioTrackLoaded(I.AUDIO_TRACK_LOADED,r))}onAudioTrackLoaded(e,t){var r;const{levels:i}=this,{details:o,id:A,groupId:h,track:y}=t;if(!i){this.warn(`Audio tracks reset while loading track ${A} "${y.name}" of "${h}"`);return}const g=this.mainDetails;if(!g||o.endCC>g.endCC||g.expired){this.cachedTrackLoadedData=t,this.state!==Zr.STOPPED&&(this.state=Zr.WAITING_TRACK);return}this.cachedTrackLoadedData=null,this.log(`Audio track ${A} "${y.name}" of "${h}" loaded [${o.startSN},${o.endSN}]${o.lastPartSn?`[part-${o.lastPartSn}-${o.lastPartIndex}]`:""},duration:${o.totalduration}`);const F=i[A];let N=0;if(o.live||(r=F.details)!=null&&r.live){if(this.checkLiveUpdate(o),o.deltaUpdateFailed)return;if(F.details){var q;N=this.alignPlaylists(o,F.details,(q=this.levelLastLoaded)==null?void 0:q.details)}o.alignedSliding||(kA(o,g),o.alignedSliding||Ol(o,g),N=o.fragmentStart)}F.details=o,this.levelLastLoaded=F,this.startFragRequested||this.setStartPosition(g,N),this.hls.trigger(I.AUDIO_TRACK_UPDATED,{details:o,id:A,groupId:t.groupId}),this.state===Zr.WAITING_TRACK&&!this.waitForCdnTuneIn(o)&&(this.state=Zr.IDLE),this.tick()}_handleFragmentLoadProgress(e){var t;const r=e.frag,{part:i,payload:o}=e,{config:A,trackId:h,levels:y}=this;if(!y){this.warn(`Audio tracks were reset while fragment load was in progress. Fragment ${r.sn} of level ${r.level} will not be buffered`);return}const g=y[h];if(!g){this.warn("Audio track is undefined on fragment load progress");return}const F=g.details;if(!F){this.warn("Audio track details undefined on fragment load progress"),this.removeUnbufferedFrags(r.start);return}const N=A.defaultAudioCodec||g.audioCodec||"mp4a.40.2";let q=this.transmuxer;q||(q=this.transmuxer=new lh(this.hls,R.AUDIO,this._handleTransmuxComplete.bind(this),this._handleTransmuxerFlush.bind(this)));const Ae=this.initPTS[r.cc],ue=(t=r.initSegment)==null?void 0:t.data;if(Ae!==void 0){const ke=i?i.index:-1,it=ke!==-1,ft=new fA(r.level,r.sn,r.stats.chunkCount,o.byteLength,ke,it);q.push(o,ue,N,"",r,i,F.totalduration,!1,ft,Ae)}else{this.log(`Unknown video PTS for cc ${r.cc}, waiting for video PTS before demuxing audio frag ${r.sn} of [${F.startSN} ,${F.endSN}],track ${h}`);const{cache:Re}=this.waitingData=this.waitingData||{frag:r,part:i,cache:new fa,complete:!1};Re.push(new Uint8Array(o)),this.state!==Zr.STOPPED&&(this.state=Zr.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 r=t.tracks.audio;r&&(this.mediaBuffer=r.buffer||null)}onFragLoading(e,t){!this.audioOnly&&t.frag.type===R.MAIN&&ut(t.frag)&&(this.mainFragLoading=t,this.state===Zr.IDLE&&this.tick())}onFragBuffered(e,t){const{frag:r,part:i}=t;if(r.type!==R.AUDIO){!this.audioOnly&&r.type===R.MAIN&&!r.elementaryStreams.video&&!r.elementaryStreams.audiovideo&&(this.audioOnly=!0,this.mainFragLoading=null);return}if(this.fragContextChanged(r)){this.warn(`Fragment ${r.sn}${i?" p: "+i.index:""} of level ${r.level} finished buffering, but was aborted. state: ${this.state}, audioSwitch: ${this.switchingTrack?this.switchingTrack.name:"false"}`);return}if(ut(r)){this.fragPrevious=r;const o=this.switchingTrack;o&&(this.bufferedTrack=o,this.switchingTrack=null,this.hls.trigger(I.AUDIO_TRACK_SWITCHED,B({},o)))}this.fragBufferedComplete(r,i),this.media&&this.tick()}onError(e,t){var r;if(t.fatal){this.state=Zr.ERROR;return}switch(t.details){case de.FRAG_GAP:case de.FRAG_PARSING_ERROR:case de.FRAG_DECRYPT_ERROR:case de.FRAG_LOAD_ERROR:case de.FRAG_LOAD_TIMEOUT:case de.KEY_LOAD_ERROR:case de.KEY_LOAD_TIMEOUT:this.onFragmentOrKeyLoadError(R.AUDIO,t);break;case de.AUDIO_TRACK_LOAD_ERROR:case de.AUDIO_TRACK_LOAD_TIMEOUT:case de.LEVEL_PARSING_ERROR:!t.levelRetry&&this.state===Zr.WAITING_TRACK&&((r=t.context)==null?void 0:r.type)===Be.AUDIO_TRACK&&(this.state=Zr.IDLE);break;case de.BUFFER_ADD_CODEC_ERROR:case de.BUFFER_APPEND_ERROR:if(t.parent!=="audio")return;this.reduceLengthAndFlushBuffer(t)||this.resetLoadingState();break;case de.BUFFER_FULL_ERROR:if(t.parent!=="audio")return;this.reduceLengthAndFlushBuffer(t)&&(this.bufferedTrack=null,super.flushMainBuffer(0,Number.POSITIVE_INFINITY,"audio"));break;case de.INTERNAL_EXCEPTION:this.recoverWorkerError(t);break}}onBufferFlushing(e,{type:t}){t!==ee.VIDEO&&(this.flushing=!0)}onBufferFlushed(e,{type:t}){if(t!==ee.VIDEO){this.flushing=!1,this.bufferFlushed=!0,this.state===Zr.ENDED&&(this.state=Zr.IDLE);const r=this.mediaBuffer||this.media;r&&(this.afterBufferFlushed(r,t,R.AUDIO),this.tick())}}_handleTransmuxComplete(e){var t;const r="audio",{hls:i}=this,{remuxResult:o,chunkMeta:A}=e,h=this.getCurrentContext(A);if(!h){this.resetWhenMissingContext(A);return}const{frag:y,part:g,level:F}=h,{details:N}=F,{audio:q,text:Ae,id3:ue,initSegment:Re}=o;if(this.fragContextChanged(y)||!N){this.fragmentTracker.removeFragment(y);return}if(this.state=Zr.PARSING,this.switchingTrack&&q&&this.completeAudioSwitch(this.switchingTrack),Re!=null&&Re.tracks){const ke=y.initSegment||y;if(this.unhandledEncryptionError(Re,y))return;this._bufferInitSegment(F,Re.tracks,ke,A),i.trigger(I.FRAG_PARSING_INIT_SEGMENT,{frag:ke,id:r,tracks:Re.tracks})}if(q){const{startPTS:ke,endPTS:it,startDTS:ft,endDTS:_t}=q;g&&(g.elementaryStreams[ee.AUDIO]={startPTS:ke,endPTS:it,startDTS:ft,endDTS:_t}),y.setElementaryStreamInfo(ee.AUDIO,ke,it,ft,_t),this.bufferFragmentData(q,y,g,A)}if(ue!=null&&(t=ue.samples)!=null&&t.length){const ke=w({id:r,frag:y,details:N},ue);i.trigger(I.FRAG_PARSING_METADATA,ke)}if(Ae){const ke=w({id:r,frag:y,details:N},Ae);i.trigger(I.FRAG_PARSING_USERDATA,ke)}}_bufferInitSegment(e,t,r,i){if(this.state!==Zr.PARSING||(t.video&&delete t.video,t.audiovideo&&delete t.audiovideo,!t.audio))return;const o=t.audio;o.id=R.AUDIO;const A=e.audioCodec;this.log(`Init audio buffer, container:${o.container}, codecs[level/parsed]=[${A}/${o.codec}]`),A&&A.split(",").length===1&&(o.levelCodec=A),this.hls.trigger(I.BUFFER_CODECS,t);const h=o.initSegment;if(h!=null&&h.byteLength){const y={type:"audio",frag:r,part:null,chunkMeta:i,parent:r.type,data:h};this.hls.trigger(I.BUFFER_APPENDING,y)}this.tickImmediate()}loadFragment(e,t,r){const i=this.fragmentTracker.getState(e);if(this.switchingTrack||i===Cs.NOT_LOADED||i===Cs.PARTIAL){var o;if(!ut(e))this._loadInitSegment(e,t);else if((o=t.details)!=null&&o.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=Zr.WAITING_INIT_PTS;const A=this.mainDetails;A&&A.fragmentStart!==t.details.fragmentStart&&Ol(t.details,A)}else super.loadFragment(e,t,r)}else this.clearTrackerIfNeeded(e)}flushAudioIfNeeded(e){if(this.media&&this.bufferedTrack){const{name:t,lang:r,assocLang:i,characteristics:o,audioCodec:A,channels:h}=this.bufferedTrack;xA({name:t,lang:r,assocLang:i,characteristics:o,audioCodec:A,channels:h},e,la)||(VA(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(I.AUDIO_TRACK_SWITCHED,B({},e))}}class p0 extends V{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,r){const i=t==null?void 0:t.renditionReports;if(i){let o=-1;for(let A=0;A<i.length;A++){const h=i[A];let y;try{y=new self.URL(h.URI,t.url).href}catch(g){this.warn(`Could not construct new URL for Rendition Report: ${g}`),y=h.URI||""}if(y===e){o=A;break}else y===e.substring(0,y.length)&&(o=A)}if(o!==-1){const A=i[o],h=parseInt(A["LAST-MSN"])||t.lastPartSn;let y=parseInt(A["LAST-PART"])||t.lastPartIndex;if(this.hls.config.lowLatencyMode){const F=Math.min(t.age-t.partTarget,t.targetduration);y>=0&&F>t.partTarget&&(y+=1)}const g=r&&Do(r);return new Va(h,y>=0?y:void 0,g)}}}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(r){this.warn(`Could not construct new URL with HLS Delivery Directives: ${r}`)}return e}playlistLoaded(e,t,r){const{details:i,stats:o}=t,A=self.performance.now(),h=o.loading.first?Math.max(0,A-o.loading.first):0;i.advancedDateTime=Date.now()-h;const y=this.hls.config.timelineOffset;if(y!==i.appliedTimelineOffset){const F=Math.max(y||0,0);i.appliedTimelineOffset=F,i.fragments.forEach(N=>{N.setStart(N.playlistOffset+F)})}if(i.live||r!=null&&r.live){const F="levelInfo"in t?t.levelInfo:t.track;if(i.reloaded(r),r&&i.fragments.length>0){Z0(r,i,this);const ft=i.playlistParsingError;if(ft){this.warn(ft);const _t=this.hls;if(!_t.config.ignorePlaylistParsingErrors){var g;const{networkDetails:zt}=t;_t.trigger(I.ERROR,{type:Me.NETWORK_ERROR,details:de.LEVEL_PARSING_ERROR,fatal:!1,url:i.url,error:ft,reason:ft.message,level:t.level||void 0,parent:(g=i.fragments[0])==null?void 0:g.type,networkDetails:zt,stats:o});return}i.playlistParsingError=null}}i.requestScheduled===-1&&(i.requestScheduled=o.loading.start);const N=this.hls.mainForwardBufferInfo,q=N?N.end-N.len:0,Ae=(i.edge-q)*1e3,ue=JA(i,Ae);if(i.requestScheduled+ue<A?i.requestScheduled=A:i.requestScheduled+=ue,this.log(`live playlist ${e} ${i.advanced?"REFRESHED "+i.lastPartSn+"-"+i.lastPartIndex:i.updated?"UPDATED":"MISSED"}`),!this.canLoad||!i.live)return;let Re,ke,it;if(i.canBlockReload&&i.endSN&&i.advanced){const ft=this.hls.config.lowLatencyMode,_t=i.lastPartSn,zt=i.endSN,ir=i.lastPartIndex,Nr=ir!==-1,or=_t===zt;Nr?or?(ke=zt+1,it=ft?0:ir):(ke=_t,it=ft?ir+1:i.maxPartIndex):ke=zt+1;const Cr=i.age,br=Cr+i.ageHeader;let pr=Math.min(br-i.partTarget,i.targetduration*1.5);if(pr>0){if(br>i.targetduration*3)this.log(`Playlist last advanced ${Cr.toFixed(2)}s ago. Omitting segment and part directives.`),ke=void 0,it=void 0;else if(r!=null&&r.tuneInGoal&&br-i.partTarget>r.tuneInGoal)this.warn(`CDN Tune-in goal increased from: ${r.tuneInGoal} to: ${pr} with playlist age: ${i.age}`),pr=0;else{const qr=Math.floor(pr/i.targetduration);if(ke+=qr,it!==void 0){const Cn=Math.round(pr%i.targetduration/i.partTarget);it+=Cn}this.log(`CDN Tune-in age: ${i.ageHeader}s last advanced ${Cr.toFixed(2)}s goal: ${pr} skip sn ${qr} to part ${it}`)}i.tuneInGoal=pr}if(Re=this.getDeliveryDirectives(i,t.deliveryDirectives,ke,it),ft||!or){i.requestScheduled=A,this.loadingPlaylist(F,Re);return}}else(i.canBlockReload||i.canSkipUntil)&&(Re=this.getDeliveryDirectives(i,t.deliveryDirectives,ke,it));Re&&ke!==void 0&&i.canBlockReload&&(i.requestScheduled=o.loading.first+Math.max(ue-h*2,ue/2)),this.scheduleLoading(F,Re,i)}else this.clearTimer()}scheduleLoading(e,t,r){const i=r||e.details;if(!i){this.loadingPlaylist(e,t);return}const o=self.performance.now(),A=i.requestScheduled;if(o>=A){this.loadingPlaylist(e,t);return}const h=A-o;this.log(`reload live playlist ${e.name||e.bitrate+"bps"} in ${Math.round(h)} ms`),this.clearTimer(),this.timer=self.setTimeout(()=>this.loadingPlaylist(e,t),h)}getDeliveryDirectives(e,t,r,i){let o=Do(e);return t!=null&&t.skip&&e.deltaUpdateFailed&&(r=t.msn,i=t.part,o=ds.No),new Va(r,i,o)}checkRetry(e){const t=e.details,r=ko(e),i=e.errorAction,{action:o,retryCount:A=0,retryConfig:h}=i||{},y=!!i&&!!h&&(o===pi.RetryRequest||!i.resolved&&o===pi.SendAlternateToPenaltyBox);if(y){var g;if(A>=h.maxNumRetry)return!1;if(r&&(g=e.context)!=null&&g.deliveryDirectives)this.warn(`Retrying playlist loading ${A+1}/${h.maxNumRetry} after "${t}" without delivery-directives`),this.loadPlaylist();else{const F=Ws(h,A);this.clearTimer(),this.timer=self.setTimeout(()=>this.loadPlaylist(),F),this.warn(`Retrying playlist loading ${A+1}/${h.maxNumRetry} after "${t}" in ${F}ms`)}e.levelRetry=!0,i.resolved=!0}return y}}function g0(l,e){if(l.length!==e.length)return!1;for(let t=0;t<l.length;t++)if(!du(l[t].attrs,e[t].attrs))return!1;return!0}function du(l,e,t){const r=l["STABLE-RENDITION-ID"];return r&&!t?r===e["STABLE-RENDITION-ID"]:!(t||["LANGUAGE","NAME","CHARACTERISTICS","AUTOSELECT","DEFAULT","FORCED","ASSOC-LANGUAGE"]).some(i=>l[i]!==e[i])}function m0(l,e){return e.label.toLowerCase()===l.name.toLowerCase()&&(!e.language||e.language.toLowerCase()===(l.lang||"").toLowerCase())}class cf extends p0{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(I.MANIFEST_LOADING,this.onManifestLoading,this),e.on(I.MANIFEST_PARSED,this.onManifestParsed,this),e.on(I.LEVEL_LOADING,this.onLevelLoading,this),e.on(I.LEVEL_SWITCHING,this.onLevelSwitching,this),e.on(I.AUDIO_TRACK_LOADED,this.onAudioTrackLoaded,this),e.on(I.ERROR,this.onError,this)}unregisterListeners(){const{hls:e}=this;e.off(I.MANIFEST_LOADING,this.onManifestLoading,this),e.off(I.MANIFEST_PARSED,this.onManifestParsed,this),e.off(I.LEVEL_LOADING,this.onLevelLoading,this),e.off(I.LEVEL_SWITCHING,this.onLevelSwitching,this),e.off(I.AUDIO_TRACK_LOADED,this.onAudioTrackLoaded,this),e.off(I.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:r,groupId:i,details:o}=t,A=this.tracksInGroup[r];if(!A||A.groupId!==i){this.warn(`Audio track with id:${r} and group:${i} not found in active group ${A==null?void 0:A.groupId}`);return}const h=A.details;A.details=t.details,this.log(`Audio track ${r} "${A.name}" lang:${A.lang} group:${i} loaded [${o.startSN}-${o.endSN}]`),r===this.trackId&&this.playlistLoaded(r,t,h)}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 r=t.audioGroups||null,i=this.groupIds;let o=this.currentTrack;if(!r||(i==null?void 0:i.length)!==(r==null?void 0:r.length)||r!=null&&r.some(h=>(i==null?void 0:i.indexOf(h))===-1)){this.groupIds=r,this.trackId=-1,this.currentTrack=null;const h=this.tracks.filter(q=>!r||r.indexOf(q.groupId)!==-1);if(h.length)this.selectDefaultTrack&&!h.some(q=>q.default)&&(this.selectDefaultTrack=!1),h.forEach((q,Ae)=>{q.id=Ae});else if(!o&&!this.tracksInGroup.length)return;this.tracksInGroup=h;const y=this.hls.config.audioPreference;if(!o&&y){const q=Zo(y,h,la);if(q>-1)o=h[q];else{const Ae=Zo(y,this.tracks);o=this.tracks[Ae]}}let g=this.findTrackId(o);g===-1&&o&&(g=this.findTrackId(null));const F={audioTracks:h};this.log(`Updating audio tracks, ${h.length} track(s) found in group(s): ${r==null?void 0:r.join(",")}`),this.hls.trigger(I.AUDIO_TRACKS_UPDATED,F);const N=this.trackId;if(g!==-1&&N===-1)this.setAudioTrack(g);else if(h.length&&N===-1){var A;const q=new Error(`No audio track selected for current audio group-ID(s): ${(A=this.groupIds)==null?void 0:A.join(",")} track count: ${h.length}`);this.warn(q.message),this.hls.trigger(I.ERROR,{type:Me.MEDIA_ERROR,details:de.AUDIO_TRACK_LOAD_ERROR,fatal:!0,error:q})}}}onError(e,t){t.fatal||!t.context||t.context.type===Be.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 r=this.allAudioTracks;if(this.selectDefaultTrack=!1,r.length){const i=this.currentTrack;if(i&&xA(e,i,la))return i;const o=Zo(e,this.tracksInGroup,la);if(o>-1){const A=this.tracksInGroup[o];return this.setAudioTrack(o),A}else if(i){let A=t.loadLevel;A===-1&&(A=t.firstAutoLevel);const h=Ts(e,t.levels,r,A,la);if(h===-1)return null;t.nextLoadLevel=h}if(e.channels||e.audioCodec){const A=Zo(e,r);if(A>-1)return r[A]}}}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 r=this.currentTrack,i=t[e],o=i.details&&!i.details.live;if(e===this.trackId&&i===r&&o||(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(I.AUDIO_TRACK_SWITCHING,B({},i)),o))return;const A=this.switchParams(i.url,r==null?void 0:r.details,i.details);this.loadPlaylist(A)}findTrackId(e){const t=this.tracksInGroup;for(let r=0;r<t.length;r++){const i=t[r];if(!(this.selectDefaultTrack&&!i.default)&&(!e||xA(e,i,la)))return r}if(e){const{name:r,lang:i,assocLang:o,characteristics:A,audioCodec:h,channels:y}=e;for(let g=0;g<t.length;g++){const F=t[g];if(xA({name:r,lang:i,assocLang:o,characteristics:A,audioCodec:h,channels:y},F,la))return g}for(let g=0;g<t.length;g++){const F=t[g];if(du(e.attrs,F.attrs,["LANGUAGE","ASSOC-LANGUAGE","CHARACTERISTICS"]))return g}for(let g=0;g<t.length;g++){const F=t[g];if(du(e.attrs,F.attrs,["LANGUAGE"]))return g}}return-1}loadPlaylist(e){super.loadPlaylist();const t=this.currentTrack;this.shouldLoadPlaylist(t)&&VA(t.url,this.hls)&&this.scheduleLoading(t,e)}loadingPlaylist(e,t){super.loadingPlaylist(e,t);const r=e.id,i=e.groupId,o=this.getUrlWithDirectives(e.url,t),A=e.details,h=A==null?void 0:A.age;this.log(`Loading audio-track ${r} "${e.name}" lang:${e.lang} group:${i}${(t==null?void 0:t.msn)!==void 0?" at sn "+t.msn+" part "+t.part:""}${h&&A.live?" age "+h.toFixed(1)+(A.type?" "+A.type||0:""):""} ${o}`),this.hls.trigger(I.AUDIO_TRACK_LOADING,{url:o,id:r,groupId:i,deliveryDirectives:t||null,track:e})}}class fd{constructor(e){this.tracks=void 0,this.queues={video:[],audio:[],audiovideo:[]},this.tracks=e}destroy(){this.tracks=this.queues=null}append(e,t,r){if(this.queues===null||this.tracks===null)return;const i=this.queues[t];i.push(e),i.length===1&&!r&&this.executeNext(t)}appendBlocker(e){return new Promise(t=>{const r={label:"async-blocker",execute:t,onStart:()=>{},onComplete:()=>{},onError:()=>{}};this.append(r,e)})}prependBlocker(e){return new Promise(t=>{if(this.queues){const r={label:"async-blocker-prepend",execute:t,onStart:()=>{},onComplete:()=>{},onError:()=>{}};this.queues[e].unshift(r)}})}removeBlockers(){this.queues!==null&&[this.queues.video,this.queues.audio,this.queues.audiovideo].forEach(e=>{var t;const r=(t=e[0])==null?void 0:t.label;(r==="async-blocker"||r==="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(o){var r;if(i.onError(o),this.queues===null||this.tracks===null)return;const A=(r=this.tracks[e])==null?void 0:r.buffer;A!=null&&A.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,r;return(t=this.queues)!=null&&t[e]||(r=this.tracks)!=null&&r[e]?`${e}: (${this.listSbInfo(e)}) ${this.listOps(e)}`:""}listSbInfo(e){var t;const r=(t=this.tracks)==null?void 0:t[e],i=r==null?void 0:r.buffer;return i?`SourceBuffer${i.updating?" updating":""}${r.ended?" ended":""}${r.ending?" ending":""}`:"none"}listOps(e){var t;return((t=this.queues)==null?void 0:t[e].map(r=>r.label).join(", "))||""}}const uh=/(avc[1234]|hvc1|hev1|dvh[1e]|vp09|av01)(?:\.[^.,]+)+/,ac="HlsJsTrackRemovedError";class Uc extends Error{constructor(e){super(e),this.name=ac}}class hf extends V{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=r=>{var i;this.hls&&((i=this.mediaSource)==null?void 0:i.readyState)==="open"&&this.hls.pauseBuffering()},this._onStartStreaming=r=>{this.hls&&this.hls.resumeBuffering()},this._onMediaSourceOpen=r=>{const{media:i,mediaSource:o}=this;r&&this.log("Media source opened"),!(!i||!o)&&(o.removeEventListener("sourceopen",this._onMediaSourceOpen),i.removeEventListener("emptied",this._onMediaEmptied),this.updateDuration(),this.hls.trigger(I.MEDIA_ATTACHED,{media:i,mediaSource:o}),this.mediaSource!==null&&this.checkPendingTracks())},this._onMediaSourceClose=()=>{this.log("Media source closed")},this._onMediaSourceEnded=()=>{this.log("Media source ended")},this._onMediaEmptied=()=>{const{mediaSrc:r,_objectUrl:i}=this;r!==i&&this.error(`Media element src was set while attaching MediaSource (${i} > ${r})`)},this.hls=e,this.fragmentTracker=t,this.appendSource=qe(Ue(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(I.MEDIA_ATTACHING,this.onMediaAttaching,this),e.on(I.MEDIA_DETACHING,this.onMediaDetaching,this),e.on(I.MANIFEST_LOADING,this.onManifestLoading,this),e.on(I.MANIFEST_PARSED,this.onManifestParsed,this),e.on(I.BUFFER_RESET,this.onBufferReset,this),e.on(I.BUFFER_APPENDING,this.onBufferAppending,this),e.on(I.BUFFER_CODECS,this.onBufferCodecs,this),e.on(I.BUFFER_EOS,this.onBufferEos,this),e.on(I.BUFFER_FLUSHING,this.onBufferFlushing,this),e.on(I.LEVEL_UPDATED,this.onLevelUpdated,this),e.on(I.FRAG_PARSED,this.onFragParsed,this),e.on(I.FRAG_CHANGED,this.onFragChanged,this),e.on(I.ERROR,this.onError,this)}unregisterListeners(){const{hls:e}=this;e.off(I.MEDIA_ATTACHING,this.onMediaAttaching,this),e.off(I.MEDIA_DETACHING,this.onMediaDetaching,this),e.off(I.MANIFEST_LOADING,this.onManifestLoading,this),e.off(I.MANIFEST_PARSED,this.onManifestParsed,this),e.off(I.BUFFER_RESET,this.onBufferReset,this),e.off(I.BUFFER_APPENDING,this.onBufferAppending,this),e.off(I.BUFFER_CODECS,this.onBufferCodecs,this),e.off(I.BUFFER_EOS,this.onBufferEos,this),e.off(I.BUFFER_FLUSHING,this.onBufferFlushing,this),e.off(I.LEVEL_UPDATED,this.onLevelUpdated,this),e.off(I.FRAG_PARSED,this.onFragParsed,this),e.off(I.FRAG_CHANGED,this.onFragChanged,this),e.off(I.ERROR,this.onError,this)}transferMedia(){const{media:e,mediaSource:t}=this;if(!e)return null;const r={};if(this.operationQueue){const o=this.isUpdating();o||this.operationQueue.removeBlockers();const A=this.isQueued();(o||A)&&this.warn(`Transfering MediaSource with${A?" operations in queue":""}${o?" updating SourceBuffer(s)":""} ${this.operationQueue}`),this.operationQueue.destroy()}const i=this.transferData;return!this.sourceBufferCount&&i&&i.mediaSource===t?w(r,i.tracks):this.sourceBuffers.forEach(o=>{const[A]=o;A&&(r[A]=w({},this.tracks[A]),this.removeBuffer(A)),o[0]=o[1]=null}),{media:e,mediaSource:t,tracks:r}}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 r;let i=2;(t.audio&&!t.video||!t.altAudio)&&(i=1),this.bufferCodecEventsTotal=i,this.log(`${i} bufferCodec event(s) expected.`),(r=this.transferData)!=null&&r.mediaSource&&this.sourceBufferCount&&i&&this.bufferCreated()}onMediaAttaching(e,t){const r=this.media=t.media;this.transferData=this.overrides=void 0;const i=Ue(this.appendSource);if(i){const o=!!t.mediaSource;(o||t.overrides)&&(this.transferData=t,this.overrides=t.overrides);const A=this.mediaSource=t.mediaSource||new i;if(this.assignMediaSource(A),o)this._objectUrl=r.src,this.attachTransferred();else{const h=this._objectUrl=self.URL.createObjectURL(A);if(this.appendSource)try{r.removeAttribute("src");const y=self.ManagedMediaSource;r.disableRemotePlayback=r.disableRemotePlayback||y&&A instanceof y,ch(r),ff(r,h),r.load()}catch(y){r.src=h}else r.src=h}r.addEventListener("emptied",this._onMediaEmptied)}}assignMediaSource(e){var t,r;this.log(`${((t=this.transferData)==null?void 0:t.mediaSource)===e?"transferred":"created"} media source: ${(r=e.constructor)==null?void 0:r.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 r=this.tracks,i=t.tracks,o=i?Object.keys(i):null,A=o?o.length:0,h=()=>{Promise.resolve().then(()=>{this.media&&this.mediaSourceOpenOrEnded&&this._onMediaSourceOpen()})};if(i&&o&&A){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: ${Vn(r,(y,g)=>y==="initSegment"?void 0:g)};
|
|
|
transfer tracks: ${Vn(i,(y,g)=>y==="initSegment"?void 0:g)}}`),!st(i,r)){t.mediaSource=null,t.tracks=void 0;const y=e.currentTime,g=this.details,F=Math.max(y,(g==null?void 0:g.fragments[0].start)||0);if(F-y>1){this.log(`attachTransferred: waiting for playback to reach new tracks start time ${y} -> ${F}`);return}this.warn(`attachTransferred: resetting MediaSource for incompatible tracks ("${Object.keys(i)}"->"${Object.keys(r)}") start time: ${F} currentTime: ${y}`),this.onMediaDetaching(I.MEDIA_DETACHING,{}),this.onMediaAttaching(I.MEDIA_ATTACHING,t),e.currentTime=F;return}this.transferData=void 0,o.forEach(y=>{const g=y,F=i[g];if(F){const N=F.buffer;if(N){const q=this.fragmentTracker,Ae=F.id;if(q.hasFragments(Ae)||q.hasParts(Ae)){const ke=oi.getBuffered(N);q.detectEvictedFragments(g,ke,Ae,null,!0)}const ue=v0(g),Re=[g,N];this.sourceBuffers[ue]=Re,N.updating&&this.operationQueue&&this.operationQueue.prependBlocker(g),this.trackSourceBuffer(g,F)}}}),h(),this.bufferCreated()}else this.log("attachTransferred: MediaSource w/o SourceBuffers"),h()}get mediaSourceOpenOrEnded(){var e;const t=(e=this.mediaSource)==null?void 0:e.readyState;return t==="open"||t==="ended"}onMediaDetaching(e,t){const r=!!t.transferMedia;this.transferData=this.overrides=void 0;const{media:i,mediaSource:o,_objectUrl:A}=this;if(o){if(this.log(`media source ${r?"transferring":"detaching"}`),r)this.sourceBuffers.forEach(([h])=>{h&&this.removeBuffer(h)}),this.resetQueue();else{if(this.mediaSourceOpenOrEnded){const h=o.readyState==="open";try{const y=o.sourceBuffers;for(let g=y.length;g--;)h&&y[g].abort(),o.removeSourceBuffer(y[g]);h&&o.endOfStream()}catch(y){this.warn(`onMediaDetaching: ${y.message} while calling endOfStream`)}}this.sourceBufferCount&&this.onBufferReset()}o.removeEventListener("sourceopen",this._onMediaSourceOpen),o.removeEventListener("sourceended",this._onMediaSourceEnded),o.removeEventListener("sourceclose",this._onMediaSourceClose),this.appendSource&&(o.removeEventListener("startstreaming",this._onStartStreaming),o.removeEventListener("endstreaming",this._onEndStreaming)),this.mediaSource=null,this._objectUrl=null}i&&(i.removeEventListener("emptied",this._onMediaEmptied),r||(A&&self.URL.revokeObjectURL(A),this.mediaSrc===A?(i.removeAttribute("src"),this.appendSource&&ch(i),i.load()):this.warn("media|source.src was changed by a third party - skip cleanup")),this.media=null),this.hls.trigger(I.MEDIA_DETACHED,t)}onBufferReset(){this.sourceBuffers.forEach(([e])=>{e&&this.resetBuffer(e)}),this.initTracks()}resetBuffer(e){var t;const r=(t=this.tracks[e])==null?void 0:t.buffer;if(this.removeBuffer(e),r)try{var i;(i=this.mediaSource)!=null&&i.sourceBuffers.length&&this.mediaSource.removeSourceBuffer(r)}catch(o){this.warn(`onBufferReset ${e}`,o)}delete this.tracks[e]}removeBuffer(e){this.removeBufferListeners(e),this.sourceBuffers[v0(e)]=[null,null];const t=this.tracks[e];t&&(t.buffer=void 0)}resetQueue(){this.operationQueue&&this.operationQueue.destroy(),this.operationQueue=new fd(this.tracks)}onBufferCodecs(e,t){var r;const i=this.tracks,o=Object.keys(t);this.log(`BUFFER_CODECS: "${o}" (current SB count ${this.sourceBufferCount})`);const A="audiovideo"in t&&(i.audio||i.video)||i.audiovideo&&("audio"in t||"video"in t),h=!A&&this.sourceBufferCount&&this.media&&o.some(y=>!i[y]);if(A||h){this.warn(`Unsupported transition between "${Object.keys(i)}" and "${o}" SourceBuffers`);return}o.forEach(y=>{var g,F;const N=t[y],{id:q,codec:Ae,levelCodec:ue,container:Re,metadata:ke,supplemental:it}=N;let ft=i[y];const _t=(g=this.transferData)==null||(g=g.tracks)==null?void 0:g[y],zt=_t!=null&&_t.buffer?_t:ft,ir=(zt==null?void 0:zt.pendingCodec)||(zt==null?void 0:zt.codec),Nr=zt==null?void 0:zt.levelCodec;ft||(ft=i[y]={buffer:void 0,listeners:[],codec:Ae,supplemental:it,container:Re,levelCodec:ue,metadata:ke,id:q});const or=Bn(ir,Nr),Cr=or==null?void 0:or.replace(uh,"$1");let br=Bn(Ae,ue);const pr=(F=br)==null?void 0:F.replace(uh,"$1");br&&or&&Cr!==pr&&(y.slice(0,5)==="audio"&&(br=ht(br,this.appendSource)),this.log(`switching codec ${ir} to ${br}`),br!==(ft.pendingCodec||ft.codec)&&(ft.pendingCodec=br),ft.container=Re,this.appendChangeType(y,Re,br))}),(this.tracksReady||this.sourceBufferCount)&&(t.tracks=this.sourceBufferTracks),!this.sourceBufferCount&&(this.bufferCodecEventsTotal>1&&!this.tracks.video&&!t.video&&((r=t.audio)==null?void 0:r.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 r=this.tracks[t];return e[t]={id:r.id,container:r.container,codec:r.codec,levelCodec:r.levelCodec},e},{})}appendChangeType(e,t,r){const i=`${t};codecs=${r}`,o={label:`change-type=${i}`,execute:()=>{const A=this.tracks[e];if(A){const h=A.buffer;h!=null&&h.changeType&&(this.log(`changing ${e} sourceBuffer type to ${i}`),h.changeType(i),A.codec=r,A.container=t)}this.shiftAndExecuteNext(e)},onStart:()=>{},onComplete:()=>{},onError:A=>{this.warn(`Failed to change ${e} SourceBuffer type`,A)}};this.append(o,e,this.isPending(this.tracks[e]))}blockAudio(e){var t;const r=e.start,i=r+e.duration*.05;if(((t=this.fragmentTracker.getAppendedFrag(r,R.MAIN))==null?void 0:t.gap)===!0)return;const A={label:"block-audio",execute:()=>{var h;const y=this.tracks.video;(this.lastVideoAppendEnd>i||y!=null&&y.buffer&&oi.isBuffered(y.buffer,i)||((h=this.fragmentTracker.getAppendedFrag(i,R.MAIN))==null?void 0:h.gap)===!0)&&(this.blockedAudioAppend=null,this.shiftAndExecuteNext("audio"))},onStart:()=>{},onComplete:()=>{},onError:h=>{this.warn("Error executing block-audio operation",h)}};this.blockedAudioAppend={op:A,frag:e},this.append(A,"audio",!0)}unblockAudio(){const{blockedAudioAppend:e,operationQueue:t}=this;e&&t&&(this.blockedAudioAppend=null,t.unblockAudio(e.op))}onBufferAppending(e,t){const{tracks:r}=this,{data:i,type:o,parent:A,frag:h,part:y,chunkMeta:g,offset:F}=t,N=g.buffering[o],{sn:q,cc:Ae}=h,ue=self.performance.now();N.start=ue;const Re=h.stats.buffering,ke=y?y.stats.buffering:null;Re.start===0&&(Re.start=ue),ke&&ke.start===0&&(ke.start=ue);const it=r.audio;let ft=!1;o==="audio"&&(it==null?void 0:it.container)==="audio/mpeg"&&(ft=!this.lastMpegAudioChunk||g.id===1||this.lastMpegAudioChunk.sn!==g.sn,this.lastMpegAudioChunk=g);const _t=r.video,zt=_t==null?void 0:_t.buffer;if(zt&&q!=="initSegment"){const or=y||h,Cr=this.blockedAudioAppend;if(o==="audio"&&A!=="main"&&!this.blockedAudioAppend&&!(_t.ending||_t.ended)){const pr=or.start+or.duration*.05,qr=zt.buffered,Cn=this.currentOp("video");!qr.length&&!Cn?this.blockAudio(or):!Cn&&!oi.isBuffered(zt,pr)&&this.lastVideoAppendEnd<pr&&this.blockAudio(or)}else if(o==="video"){const br=or.end;if(Cr){const pr=Cr.frag.start;(br>pr||br<this.lastVideoAppendEnd||oi.isBuffered(zt,pr))&&this.unblockAudio()}this.lastVideoAppendEnd=br}}const ir=(y||h).start,Nr={label:`append-${o}`,execute:()=>{var or;N.executeStart=self.performance.now();const Cr=(or=this.tracks[o])==null?void 0:or.buffer;Cr&&(ft?this.updateTimestampOffset(Cr,ir,.1,o,q,Ae):F!==void 0&&Ie(F)&&this.updateTimestampOffset(Cr,F,1e-6,o,q,Ae)),this.appendExecutor(i,o)},onStart:()=>{},onComplete:()=>{const or=self.performance.now();N.executeEnd=N.end=or,Re.first===0&&(Re.first=or),ke&&ke.first===0&&(ke.first=or);const Cr={};this.sourceBuffers.forEach(([br,pr])=>{br&&(Cr[br]=oi.getBuffered(pr))}),this.appendErrors[o]=0,o==="audio"||o==="video"?this.appendErrors.audiovideo=0:(this.appendErrors.audio=0,this.appendErrors.video=0),this.hls.trigger(I.BUFFER_APPENDED,{type:o,frag:h,part:y,chunkMeta:g,parent:h.type,timeRanges:Cr})},onError:or=>{var Cr;const br={type:Me.MEDIA_ERROR,parent:h.type,details:de.BUFFER_APPEND_ERROR,sourceBufferName:o,frag:h,part:y,chunkMeta:g,error:or,err:or,fatal:!1},pr=(Cr=this.media)==null?void 0:Cr.error;if(or.code===DOMException.QUOTA_EXCEEDED_ERR||or.name=="QuotaExceededError"||"quota"in or)br.details=de.BUFFER_FULL_ERROR;else if(or.code===DOMException.INVALID_STATE_ERR&&this.mediaSourceOpenOrEnded&&!pr)br.errorAction=Ns(!0);else if(or.name===ac&&this.sourceBufferCount===0)br.errorAction=Ns(!0);else{const qr=++this.appendErrors[o];this.warn(`Failed ${qr}/${this.hls.config.appendErrorMaxRetry} times to append segment in "${o}" sourceBuffer (${pr||"no media error"})`),(qr>=this.hls.config.appendErrorMaxRetry||pr)&&(br.fatal=!0)}this.hls.trigger(I.ERROR,br)}};this.log(`queuing "${o}" append sn: ${q}${y?" p: "+y.index:""} of ${h.type===R.MAIN?"level":"track"} ${h.level} cc: ${Ae}`),this.append(Nr,o,this.isPending(this.tracks[o]))}getFlushOp(e,t,r){return this.log(`queuing "${e}" remove ${t}-${r}`),{label:"remove",execute:()=>{this.removeExecutor(e,t,r)},onStart:()=>{},onComplete:()=>{this.hls.trigger(I.BUFFER_FLUSHED,{type:e})},onError:i=>{this.warn(`Failed to remove ${t}-${r} from "${e}" SourceBuffer`,i)}}}onBufferFlushing(e,t){const{type:r,startOffset:i,endOffset:o}=t;r?this.append(this.getFlushOp(r,i,o),r):this.sourceBuffers.forEach(([A])=>{A&&this.append(this.getFlushOp(A,i,o),A)})}onFragParsed(e,t){const{frag:r,part:i}=t,o=[],A=i?i.elementaryStreams:r.elementaryStreams;A[ee.AUDIOVIDEO]?o.push("audiovideo"):(A[ee.AUDIO]&&o.push("audio"),A[ee.VIDEO]&&o.push("video"));const h=()=>{const y=self.performance.now();r.stats.buffering.end=y,i&&(i.stats.buffering.end=y);const g=i?i.stats:r.stats;this.hls.trigger(I.FRAG_BUFFERED,{frag:r,part:i,stats:g,id:r.type})};o.length===0&&this.warn(`Fragments must have at least one ElementaryStreamType set. type: ${r.type} level: ${r.level} sn: ${r.sn}`),this.blockBuffers(h,o).catch(y=>{this.warn(`Fragment buffered callback ${y}`),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 r;this.sourceBuffers.forEach(([A])=>{if(A){const h=this.tracks[A];(!t.type||t.type===A)&&(h.ending=!0,h.ended||(h.ended=!0,this.log(`${A} buffer reached EOS`)))}});const i=((r=this.overrides)==null?void 0:r.endOfStream)!==!1;this.sourceBufferCount>0&&!this.sourceBuffers.some(([A])=>{var h;return A&&!((h=this.tracks[A])!=null&&h.ended)})?i?(this.log("Queueing EOS"),this.blockUntilOpen(()=>{this.tracksEnded();const{mediaSource:A}=this;if(!A||A.readyState!=="open"){A&&this.log(`Could not call mediaSource.endOfStream(). mediaSource.readyState: ${A.readyState}`);return}this.log("Calling mediaSource.endOfStream()"),A.endOfStream(),this.hls.trigger(I.BUFFERED_TO_END,void 0)})):(this.tracksEnded(),this.hls.trigger(I.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===de.BUFFER_APPEND_ERROR&&t.frag){var r;const i=(r=t.errorAction)==null?void 0:r.nextAutoLevel;Ie(i)&&i!==t.frag.level&&this.resetAppendErrors()}}resetAppendErrors(){this.appendErrors={audio:0,video:0,audiovideo:0}}trimBuffers(){const{hls:e,details:t,media:r}=this;if(!r||t===null||!this.sourceBufferCount)return;const i=e.config,o=r.currentTime,A=t.levelTargetDuration,h=t.live&&i.liveBackBufferLength!==null?i.liveBackBufferLength:i.backBufferLength;if(Ie(h)&&h>=0){const g=Math.max(h,A),F=Math.floor(o/A)*A-g;this.flushBackBuffer(o,A,F)}const y=i.frontBufferFlushThreshold;if(Ie(y)&&y>0){const g=Math.max(i.maxBufferLength,y),F=Math.max(g,A),N=Math.floor(o/A)*A+F;this.flushFrontBuffer(o,A,N)}}flushBackBuffer(e,t,r){this.sourceBuffers.forEach(([i,o])=>{if(o){const h=oi.getBuffered(o);if(h.length>0&&r>h.start(0)){var A;this.hls.trigger(I.BACK_BUFFER_REACHED,{bufferEnd:r});const y=this.tracks[i];if((A=this.details)!=null&&A.live)this.hls.trigger(I.LIVE_BACK_BUFFER_REACHED,{bufferEnd:r});else if(y!=null&&y.ended){this.log(`Cannot flush ${i} back buffer while SourceBuffer is in ended state`);return}this.hls.trigger(I.BUFFER_FLUSHING,{startOffset:0,endOffset:r,type:i})}}})}flushFrontBuffer(e,t,r){this.sourceBuffers.forEach(([i,o])=>{if(o){const A=oi.getBuffered(o),h=A.length;if(h<2)return;const y=A.start(h-1),g=A.end(h-1);if(r>y||e>=y&&e<=g)return;this.hls.trigger(I.BUFFER_FLUSHING,{startOffset:y,endOffset:1/0,type:i})}})}getDurationAndRange(){var e;const{details:t,mediaSource:r}=this;if(!t||!this.media||(r==null?void 0:r.readyState)!=="open")return null;const i=t.edge;if(t.live&&this.hls.config.liveDurationInfinity){if(t.fragments.length&&r.setLiveSeekableRange){const g=Math.max(0,t.fragmentStart),F=Math.max(g,i);return{duration:1/0,start:g,end:F}}return{duration:1/0}}const o=(e=this.overrides)==null?void 0:e.duration;if(o)return Ie(o)?{duration:o}:null;const A=this.media.duration,h=Ie(r.duration)?r.duration:0;return i>h&&i>A||!Ie(A)?{duration:i}:null}updateMediaSource({duration:e,start:t,end:r}){const i=this.mediaSource;!this.media||!i||i.readyState!=="open"||(i.duration!==e&&(Ie(e)&&this.log(`Updating MediaSource duration to ${e.toFixed(3)}`),i.duration=e),t!==void 0&&r!==void 0&&(this.log(`MediaSource duration is set to ${i.duration}. Setting seekable range to ${t}-${r}.`),i.setLiveSeekableRange(t,r)))}get tracksReady(){const e=this.pendingTrackCount;return e>0&&(e>=this.bufferCodecEventsTotal||this.isPending(this.tracks.audiovideo))}checkPendingTracks(){const{bufferCodecEventsTotal:e,pendingTrackCount:t,tracks:r}=this;if(this.log(`checkPendingTracks (pending: ${t} codec events expected: ${e}) ${Vn(r)}`),this.tracksReady){var i;const o=(i=this.transferData)==null?void 0:i.tracks;o&&Object.keys(o).length?this.attachTransferred():this.createSourceBuffers()}}bufferCreated(){if(this.sourceBufferCount){const e={};this.sourceBuffers.forEach(([t,r])=>{if(t){const i=this.tracks[t];e[t]={buffer:r,container:i.container,codec:i.codec,supplemental:i.supplemental,levelCodec:i.levelCodec,id:i.id,metadata:i.metadata}}}),this.hls.trigger(I.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(I.ERROR,{type:Me.MEDIA_ERROR,details:de.BUFFER_INCOMPATIBLE_CODECS_ERROR,fatal:!0,error:e,reason:e.message})}}createSourceBuffers(){const{tracks:e,sourceBuffers:t,mediaSource:r}=this;if(!r)throw new Error("createSourceBuffers called when mediaSource was null");for(const o in e){const A=o,h=e[A];if(this.isPending(h)){const y=this.getTrackCodec(h,A),g=`${h.container};codecs=${y}`;h.codec=y,this.log(`creating sourceBuffer(${g})${this.currentOp(A)?" Queued":""} ${Vn(h)}`);try{const F=r.addSourceBuffer(g),N=v0(A),q=[A,F];t[N]=q,h.buffer=F}catch(F){var i;this.error(`error while trying to add sourceBuffer: ${F.message}`),this.shiftAndExecuteNext(A),(i=this.operationQueue)==null||i.removeBlockers(),delete this.tracks[A],this.hls.trigger(I.ERROR,{type:Me.MEDIA_ERROR,details:de.BUFFER_ADD_CODEC_ERROR,fatal:!1,error:F,sourceBufferName:A,mimeType:g,parent:h.id});return}this.trackSourceBuffer(A,h)}}this.bufferCreated()}getTrackCodec(e,t){const r=e.supplemental;let i=e.codec;r&&(t==="video"||t==="audiovideo")&&Dt(r,"video")&&(i=Sn(i,r));const o=Bn(i,e.levelCodec);return o?t.slice(0,5)==="audio"?ht(o,this.appendSource):o:""}trackSourceBuffer(e,t){const r=t.buffer;if(!r)return;const i=this.getTrackCodec(t,e);this.tracks[e]={buffer:r,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",(o,A)=>{const h=A.removedRanges;h!=null&&h.length&&this.hls.trigger(I.BUFFER_FLUSHED,{type:o})})}get mediaSrc(){var e,t;const r=((e=this.media)==null||(t=e.querySelector)==null?void 0:t.call(e,"source"))||this.media;return r==null?void 0:r.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 r=this.currentOp(e);r&&(r.onComplete(),this.shiftAndExecuteNext(e))}onSBUpdateError(e,t){var r;const i=new Error(`${e} SourceBuffer error. MediaSource readyState: ${(r=this.mediaSource)==null?void 0:r.readyState}`);this.error(`${i}`,t),this.hls.trigger(I.ERROR,{type:Me.MEDIA_ERROR,details:de.BUFFER_APPENDING_ERROR,sourceBufferName:e,error:i,fatal:!1});const o=this.currentOp(e);o&&o.onError(i)}updateTimestampOffset(e,t,r,i,o,A){const h=t-e.timestampOffset;Math.abs(h)>=r&&(this.log(`Updating ${i} SourceBuffer timestampOffset to ${t} (sn: ${o} cc: ${A})`),e.timestampOffset=t)}removeExecutor(e,t,r){const{media:i,mediaSource:o}=this,A=this.tracks[e],h=A==null?void 0:A.buffer;if(!i||!o||!h){this.warn(`Attempting to remove from the ${e} SourceBuffer, but it does not exist`),this.shiftAndExecuteNext(e);return}const y=Ie(i.duration)?i.duration:1/0,g=Ie(o.duration)?o.duration:1/0,F=Math.max(0,t),N=Math.min(r,y,g);N>F&&(!A.ending||A.ended)?(A.ended=!1,this.log(`Removing [${F},${N}] from the ${e} SourceBuffer`),h.remove(F,N)):this.shiftAndExecuteNext(e)}appendExecutor(e,t){const r=this.tracks[t],i=r==null?void 0:r.buffer;if(!i)throw new Uc(`Attempting to append to the ${t} SourceBuffer, but it does not exist`);r.ending=!1,r.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:r}=this,i=t.map(A=>this.appendBlocker(A));return t.length>1&&!!this.blockedAudioAppend&&this.unblockAudio(),Promise.all(i).then(A=>{r===this.operationQueue&&(e(),this.stepOperationQueue(this.sourceBufferTypes))})}stepOperationQueue(e){e.forEach(t=>{var r;const i=(r=this.tracks[t])==null?void 0:r.buffer;!i||i.updating||this.shiftAndExecuteNext(t)})}append(e,t,r){this.operationQueue&&this.operationQueue.append(e,t,r)}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,r){const i=this.tracks[e];if(!i)return;const o=i.buffer;if(!o)return;const A=r.bind(this,e);i.listeners.push({event:t,listener:A}),o.addEventListener(t,A)}removeBufferListeners(e){const t=this.tracks[e];if(!t)return;const r=t.buffer;r&&(t.listeners.forEach(i=>{r.removeEventListener(i.event,i.listener)}),t.listeners.length=0)}}function ch(l){const e=l.querySelectorAll("source");[].slice.call(e).forEach(t=>{l.removeChild(t)})}function ff(l,e){const t=self.document.createElement("source");t.type="video/mp4",t.src=e,l.appendChild(t)}function v0(l){return l==="audio"?1:0}class Pc{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(I.FPS_DROP_LEVEL_CAPPING,this.onFpsDropLevelCapping,this),e.on(I.MEDIA_ATTACHING,this.onMediaAttaching,this),e.on(I.MANIFEST_PARSED,this.onManifestParsed,this),e.on(I.LEVELS_UPDATED,this.onLevelsUpdated,this),e.on(I.BUFFER_CODECS,this.onBufferCodecs,this),e.on(I.MEDIA_DETACHING,this.onMediaDetaching,this)}unregisterListener(){const{hls:e}=this;e.off(I.FPS_DROP_LEVEL_CAPPING,this.onFpsDropLevelCapping,this),e.off(I.MEDIA_ATTACHING,this.onMediaAttaching,this),e.off(I.MANIFEST_PARSED,this.onManifestParsed,this),e.off(I.LEVELS_UPDATED,this.onLevelsUpdated,this),e.off(I.BUFFER_CODECS,this.onBufferCodecs,this),e.off(I.MEDIA_DETACHING,this.onMediaDetaching,this)}onFpsDropLevelCapping(e,t){const r=this.hls.levels[t.droppedLevel];this.isLevelAllowed(r)&&this.restrictedLevels.push({bitrate:r.bitrate,height:r.height,width:r.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 r=this.hls;this.restrictedLevels=[],this.firstLevel=t.firstLevel,r.config.capLevelToPlayerSize&&t.video&&this.startCapping()}onLevelsUpdated(e,t){this.timer&&Ie(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,r=this.getMaxLevel(e.length-1);r!==this.autoLevelCapping&&t.logger.log(`Setting autoLevelCapping to ${r}: ${e[r].height}p@${e[r].bitrate} for media ${this.mediaWidth}x${this.mediaHeight}`),t.autoLevelCapping=r,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 r=t.filter((i,o)=>this.isLevelAllowed(i)&&o<=e);return this.clientRect=null,Pc.getMaxLevelByMediaSize(r,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 r=e.getBoundingClientRect();t.width=r.width,t.height=r.height,!t.width&&!t.height&&(t.width=r.right-r.left||e.width||0,t.height=r.bottom-r.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(r=>e.bitrate===r.bitrate&&e.width===r.width&&e.height===r.height)}static getMaxLevelByMediaSize(e,t,r){if(!(e!=null&&e.length))return-1;const i=(h,y)=>y?h.width!==y.width||h.height!==y.height:!0;let o=e.length-1;const A=Math.max(t,r);for(let h=0;h<e.length;h+=1){const y=e[h];if((y.width>=A||y.height>=A)&&i(y,e[h+1])){o=h;break}}return o}}const Jo={MANIFEST:"m",AUDIO:"a",VIDEO:"v",MUXED:"av",INIT:"i",CAPTION:"c",TIMED_TEXT:"tt",KEY:"k",OTHER:"o"},vs={HLS:"h"};class NA{constructor(e,t){Array.isArray(e)&&(e=e.map(r=>r instanceof NA?r:new NA(r))),this.value=e,this.params=t}}const pd="Dict";function tp(l){return Array.isArray(l)?JSON.stringify(l):l instanceof Map?"Map{}":l instanceof Set?"Set{}":typeof l=="object"?JSON.stringify(l):String(l)}function rp(l,e,t,r){return new Error(`failed to ${l} "${tp(e)}" as ${t}`,{cause:r})}function pu(l,e,t){return rp("serialize",l,e,t)}class gd{constructor(e){this.description=e}}const df="Bare Item",np="Boolean";function oc(l){if(typeof l!="boolean")throw pu(l,np);return l?"?1":"?0"}function md(l){return btoa(String.fromCharCode(...l))}const pf="Byte Sequence";function vd(l){if(ArrayBuffer.isView(l)===!1)throw pu(l,pf);return`:${md(l)}:`}const hh="Integer";function yd(l){return l<-999999999999999||999999999999999<l}function io(l){if(yd(l))throw pu(l,hh);return l.toString()}function Ac(l){return`@${io(l.getTime()/1e3)}`}function fh(l,e){if(l<0)return-fh(-l,e);const t=Math.pow(10,e);if(Math.abs(l*t%1-.5)<Number.EPSILON){const i=Math.floor(l*t);return(i%2===0?i:i+1)/t}else return Math.round(l*t)/t}const ip="Decimal";function gf(l){const e=fh(l,3);if(Math.floor(Math.abs(e)).toString().length>12)throw pu(l,ip);const t=e.toString();return t.includes(".")?t:`${t}.0`}const mf="String",sp=/[\x00-\x1f\x7f]+/;function ap(l){if(sp.test(l))throw pu(l,mf);return`"${l.replace(/\\/g,"\\\\").replace(/"/g,'\\"')}"`}function op(l){return l.description||l.toString().slice(7,-1)}const Ap="Token";function _d(l){const e=op(l);if(/^([a-zA-Z*])([!#$%&'*+\-.^_`|~\w:/]*)$/.test(e)===!1)throw pu(e,Ap);return e}function vf(l){switch(typeof l){case"number":if(!Ie(l))throw pu(l,df);return Number.isInteger(l)?io(l):gf(l);case"string":return ap(l);case"symbol":return _d(l);case"boolean":return oc(l);case"object":if(l instanceof Date)return Ac(l);if(l instanceof Uint8Array)return vd(l);if(l instanceof gd)return _d(l);default:throw pu(l,df)}}const lp="Key";function yf(l){if(/^[a-z*][a-z0-9\-_.*]*$/.test(l)===!1)throw pu(l,lp);return l}function dh(l){return l==null?"":Object.entries(l).map(([e,t])=>t===!0?`;${yf(e)}`:`;${yf(e)}=${vf(t)}`).join("")}function _f(l){return l instanceof NA?`${vf(l.value)}${dh(l.params)}`:vf(l)}function wd(l){return`(${l.value.map(_f).join(" ")})${dh(l.params)}`}function bd(l,e={whitespace:!0}){if(typeof l!="object"||l==null)throw pu(l,pd);const t=l instanceof Map?l.entries():Object.entries(l),r=e!=null&&e.whitespace?" ":"";return Array.from(t).map(([i,o])=>{o instanceof NA||(o=new NA(o));let A=yf(i);return o.value===!0?A+=dh(o.params):(A+="=",Array.isArray(o.value)?A+=wd(o):A+=_f(o)),A}).join(`,${r}`)}function ph(l,e){return bd(l,e)}const co="CMCD-Object",Ia="CMCD-Request",lc="CMCD-Session",gu="CMCD-Status",gh={br:co,ab:co,d:co,ot:co,tb:co,tpb:co,lb:co,tab:co,lab:co,url:co,pb:Ia,bl:Ia,tbl:Ia,dl:Ia,ltc:Ia,mtp:Ia,nor:Ia,nrr:Ia,rc:Ia,sn:Ia,sta:Ia,su:Ia,ttfb:Ia,ttfbb:Ia,ttlb:Ia,cmsdd:Ia,cmsds:Ia,smrt:Ia,df:Ia,cs:Ia,ts:Ia,cid:lc,pr:lc,sf:lc,sid:lc,st:lc,v:lc,msd:lc,bs:gu,bsd:gu,cdn:gu,rtp:gu,bg:gu,pt:gu,ec:gu,e:gu},mh={REQUEST:Ia};function y0(l){return Object.keys(l).reduce((e,t)=>{var r;return(r=l[t])===null||r===void 0||r.forEach(i=>e[i]=t),e},{})}function vh(l,e){const t={};if(!l)return t;const r=Object.keys(l),i=e?y0(e):{};return r.reduce((o,A)=>{var h;const y=gh[A]||i[A]||mh.REQUEST,g=(h=o[y])!==null&&h!==void 0?h:o[y]={};return g[A]=l[A],o},t)}function _0(l){return["ot","sf","st","e","sta"].includes(l)}function Ed(l){return typeof l=="number"?Ie(l):l!=null&&l!==""&&l!==!1}const yh="event";function Bd(l,e){const t=new URL(l),r=new URL(e);if(t.origin!==r.origin)return l;const i=t.pathname.split("/").slice(1),o=r.pathname.split("/").slice(1,-1);for(;i[0]===o[0];)i.shift(),o.shift();for(;o.length;)o.shift(),i.unshift("..");return i.join("/")+t.search+t.hash}const Uu=l=>Math.round(l),Pu=(l,e)=>Array.isArray(l)?l.map(t=>Pu(t,e)):l instanceof NA&&typeof l.value=="string"?new NA(Pu(l.value,e),l.params):(e.baseUrl&&(l=Bd(l,e.baseUrl)),e.version===1?encodeURIComponent(l):l),w0=l=>Uu(l/100)*100,cp={br:Uu,d:Uu,bl:w0,dl:w0,mtp:w0,nor:(l,e)=>{let t=l;return e.version>=2&&(l instanceof NA&&typeof l.value=="string"?t=new NA([l]):typeof l=="string"&&(t=[l])),Pu(t,e)},rtp:w0,tb:Uu},xd="request",wf="response",Ou=["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"],bf=["e"],_h=/^[a-zA-Z0-9-.]+-[a-zA-Z0-9-.]+$/;function wh(l){return _h.test(l)}function hp(l){return Ou.includes(l)||bf.includes(l)||wh(l)}const Cd=["d","dl","nor","ot","rtp","su"];function fp(l){return Ou.includes(l)||Cd.includes(l)||wh(l)}const Sd=["cmsdd","cmsds","rc","smrt","ttfb","ttfbb","ttlb","url"];function Ef(l){return Ou.includes(l)||Cd.includes(l)||Sd.includes(l)||wh(l)}const Id=["bl","br","bs","cid","d","dl","mtp","nor","nrr","ot","pr","rtp","sf","sid","st","su","tb","v"];function Td(l){return Id.includes(l)||wh(l)}const Bf={[wf]:Ef,[yh]:hp,[xd]:fp};function xf(l,e={}){const t={};if(l==null||typeof l!="object")return t;const r=e.version||l.v||1,i=e.reportingMode||xd,o=r===1?Td:Bf[i];let A=Object.keys(l).filter(o);const h=e.filter;typeof h=="function"&&(A=A.filter(h));const y=i===wf||i===yh;y&&!A.includes("ts")&&A.push("ts"),r>1&&!A.includes("v")&&A.push("v");const g=w({},cp,e.formatters),F={version:r,reportingMode:i,baseUrl:e.baseUrl};return A.sort().forEach(N=>{let q=l[N];const Ae=g[N];if(typeof Ae=="function"&&(q=Ae(q,F)),N==="v"){if(r===1)return;q=r}N=="pr"&&q===1||(y&&N==="ts"&&!Ie(q)&&(q=Date.now()),Ed(q)&&(_0(N)&&typeof q=="string"&&(q=new gd(q)),t[N]=q))}),t}function Fd(l,e={}){const t={};if(!l)return t;const r=xf(l,e),i=vh(r,e==null?void 0:e.customHeaderMap);return Object.entries(i).reduce((o,[A,h])=>{const y=ph(h,{whitespace:!1});return y&&(o[A]=y),o},t)}function Cf(l,e,t){return w(l,Fd(e,t))}const b0="CMCD";function bh(l,e={}){return l?ph(xf(l,e),{whitespace:!1}):""}function Ld(l,e={}){if(!l)return"";const t=bh(l,e);return encodeURIComponent(t)}function Dd(l,e={}){if(!l)return"";const t=Ld(l,e);return`${b0}=${t}`}const dp=/CMCD=[^&#]+/;function Sf(l,e,t){const r=Dd(e,t);if(!r)return l;if(dp.test(l))return l.replace(dp,r);const i=l.includes("?")?"&":"?";return`${l}${i}${r}`}class If{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:Jo.MANIFEST,su:!this.initialized})}catch(o){this.hls.logger.warn("Could not generate manifest CMCD data.",o)}},this.applyFragmentData=i=>{try{const{frag:o,part:A}=i,h=this.hls.levels[o.level],y=this.getObjectType(o),g={d:(A||o).duration*1e3,ot:y};(y===Jo.VIDEO||y===Jo.AUDIO||y==Jo.MUXED)&&(g.br=h.bitrate/1e3,g.tb=this.getTopBandwidth(y)/1e3,g.bl=this.getBufferLength(y));const F=A?this.getNextPart(A):this.getNextFrag(o);F!=null&&F.url&&F.url!==o.url&&(g.nor=F.url),this.apply(i,g)}catch(o){this.hls.logger.warn("Could not generate segment CMCD data.",o)}},this.hls=e;const t=this.config=e.config,{cmcd:r}=t;r!=null&&(t.pLoader=this.createPlaylistLoader(),t.fLoader=this.createFragmentLoader(),this.sid=r.sessionId||e.sessionId,this.cid=r.contentId,this.useHeaders=r.useHeaders===!0,this.includeKeys=r.includeKeys,this.registerListeners())}registerListeners(){const e=this.hls;e.on(I.MEDIA_ATTACHED,this.onMediaAttached,this),e.on(I.MEDIA_DETACHED,this.onMediaDetached,this),e.on(I.BUFFER_CREATED,this.onBufferCreated,this)}unregisterListeners(){const e=this.hls;e.off(I.MEDIA_ATTACHED,this.onMediaAttached,this),e.off(I.MEDIA_DETACHED,this.onMediaDetached,this),e.off(I.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 r,i;this.audioBuffer=(r=t.tracks.audio)==null?void 0:r.buffer,this.videoBuffer=(i=t.tracks.video)==null?void 0:i.buffer}createData(){var e;return{v:1,sf:vs.HLS,sid:this.sid,cid:this.cid,pr:(e=this.media)==null?void 0:e.playbackRate,mtp:this.hls.bandwidthEstimate/1e3}}apply(e,t={}){w(t,this.createData());const r=t.ot===Jo.INIT||t.ot===Jo.VIDEO||t.ot===Jo.MUXED;this.starved&&r&&(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((A,h)=>(i.includes(h)&&(A[h]=t[h]),A),{}));const o={baseUrl:e.url};this.useHeaders?(e.headers||(e.headers={}),Cf(e.headers,t,o)):e.url=Sf(e.url,t,o)}getNextFrag(e){var t;const r=(t=this.hls.levels[e.level])==null?void 0:t.details;if(r){const i=e.sn-r.startSN;return r.fragments[i+1]}}getNextPart(e){var t;const{index:r,fragment:i}=e,o=(t=this.hls.levels[i.level])==null||(t=t.details)==null?void 0:t.partList;if(o){const{sn:A}=i;for(let h=o.length-1;h>=0;h--){const y=o[h];if(y.index===r&&y.fragment.sn===A)return o[h+1]}}}getObjectType(e){const{type:t}=e;if(t==="subtitle")return Jo.TIMED_TEXT;if(e.sn==="initSegment")return Jo.INIT;if(t==="audio")return Jo.AUDIO;if(t==="main")return this.hls.audioTracks.length?Jo.VIDEO:Jo.MUXED}getTopBandwidth(e){let t=0,r;const i=this.hls;if(e===Jo.AUDIO)r=i.audioTracks;else{const o=i.maxAutoLevel,A=o>-1?o+1:i.levels.length;r=i.levels.slice(0,A)}return r.forEach(o=>{o.bitrate>t&&(t=o.bitrate)}),t>0?t:NaN}getBufferLength(e){const t=this.media,r=e===Jo.AUDIO?this.audioBuffer:this.videoBuffer;return!r||!t?NaN:oi.bufferInfo(r,t.currentTime,this.config.maxBufferHole).len*1e3}createPlaylistLoader(){const{pLoader:e}=this.config,t=this.applyPlaylistData,r=e||this.config.loader;return class{constructor(o){this.loader=void 0,this.loader=new r(o)}get stats(){return this.loader.stats}get context(){return this.loader.context}destroy(){this.loader.destroy()}abort(){this.loader.abort()}load(o,A,h){t(o),this.loader.load(o,A,h)}}}createFragmentLoader(){const{fLoader:e}=this.config,t=this.applyFragmentData,r=e||this.config.loader;return class{constructor(o){this.loader=void 0,this.loader=new r(o)}get stats(){return this.loader.stats}get context(){return this.loader.context}destroy(){this.loader.destroy()}abort(){this.loader.abort()}load(o,A,h){t(o),this.loader.load(o,A,h)}}}}const pp=3e5;class kd extends V{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(I.MANIFEST_LOADING,this.onManifestLoading,this),e.on(I.MANIFEST_LOADED,this.onManifestLoaded,this),e.on(I.MANIFEST_PARSED,this.onManifestParsed,this),e.on(I.ERROR,this.onError,this)}unregisterListeners(){const e=this.hls;e&&(e.off(I.MANIFEST_LOADING,this.onManifestLoading,this),e.off(I.MANIFEST_LOADED,this.onManifestLoaded,this),e.off(I.MANIFEST_PARSED,this.onManifestParsed,this),e.off(I.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(r=>r!==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:r}=t;r!==null&&(this.pathwayId=r.pathwayId,this.uri=r.uri,this.started&&this.startLoad())}onManifestParsed(e,t){this.audioTracks=t.audioTracks,this.subtitleTracks=t.subtitleTracks}onError(e,t){const{errorAction:r}=t;if((r==null?void 0:r.action)===pi.SendAlternateToPenaltyBox&&r.flags===ms.MoveAllAlternatesMatchingHost){const i=this.levels;let o=this._pathwayPriority,A=this.pathwayId;if(t.context){const{groupId:h,pathwayId:y,type:g}=t.context;h&&i?A=this.getPathwayForGroupId(h,g,A):y&&(A=y)}A in this.penalizedPathways||(this.penalizedPathways[A]=performance.now()),!o&&i&&(o=this.pathways()),o&&o.length>1&&(this.updatePathwayPriority(o),r.resolved=this.pathwayId!==A),t.details===de.BUFFER_APPEND_ERROR&&!t.fatal?r.resolved=!0:r.resolved||this.warn(`Could not resolve ${t.details} ("${t.error.message}") with content-steering for Pathway: ${A} levels: ${i&&i.length} priorities: ${Vn(o)} penalized: ${Vn(this.penalizedPathways)}`)}}filterParsedLevels(e){this.levels=e;let t=this.getLevelsForPathway(this.pathwayId);if(t.length===0){const r=e[0].pathwayId;this.log(`No levels found in Pathway ${this.pathwayId}. Setting initial Pathway to "${r}"`),t=this.getLevelsForPathway(r),this.pathwayId=r}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 r=this.penalizedPathways,i=performance.now();Object.keys(r).forEach(o=>{i-r[o]>pp&&delete r[o]});for(let o=0;o<e.length;o++){const A=e[o];if(A in r)continue;if(A===this.pathwayId)return;const h=this.hls.nextLoadLevel,y=this.hls.levels[h];if(t=this.getLevelsForPathway(A),t.length>0){this.log(`Setting Pathway to "${A}"`),this.pathwayId=A,n0(t),this.hls.trigger(I.LEVELS_UPDATED,{levels:t});const g=this.hls.levels[h];y&&g&&this.levels&&(g.attrs["STABLE-VARIANT-ID"]!==y.attrs["STABLE-VARIANT-ID"]&&g.bitrate!==y.bitrate&&this.log(`Unstable Pathways change from bitrate ${y.bitrate} to ${g.bitrate}`),this.hls.nextLoadLevel=h);break}}}getPathwayForGroupId(e,t,r){const i=this.getLevelsForPathway(r).concat(this.levels||[]);for(let o=0;o<i.length;o++)if(t===Be.AUDIO_TRACK&&i[o].hasAudioGroup(e)||t===Be.SUBTITLE_TRACK&&i[o].hasSubtitleGroup(e))return i[o].pathwayId;return r}clonePathways(e){const t=this.levels;if(!t)return;const r={},i={};e.forEach(o=>{const{ID:A,"BASE-ID":h,"URI-REPLACEMENT":y}=o;if(t.some(F=>F.pathwayId===A))return;const g=this.getLevelsForPathway(h).map(F=>{const N=new gi(F.attrs);N["PATHWAY-ID"]=A;const q=N.AUDIO&&`${N.AUDIO}_clone_${A}`,Ae=N.SUBTITLES&&`${N.SUBTITLES}_clone_${A}`;q&&(r[N.AUDIO]=q,N.AUDIO=q),Ae&&(i[N.SUBTITLES]=Ae,N.SUBTITLES=Ae);const ue=Rd(F.uri,N["STABLE-VARIANT-ID"],"PER-VARIANT-URIS",y),Re=new Qi({attrs:N,audioCodec:F.audioCodec,bitrate:F.bitrate,height:F.height,name:F.name,url:ue,videoCodec:F.videoCodec,width:F.width});if(F.audioGroups)for(let ke=1;ke<F.audioGroups.length;ke++)Re.addGroupId("audio",`${F.audioGroups[ke]}_clone_${A}`);if(F.subtitleGroups)for(let ke=1;ke<F.subtitleGroups.length;ke++)Re.addGroupId("text",`${F.subtitleGroups[ke]}_clone_${A}`);return Re});t.push(...g),Nu(this.audioTracks,r,y,A),Nu(this.subtitleTracks,i,y,A)})}loadSteeringManifest(e){const t=this.hls.config,r=t.loader;this.loader&&this.loader.destroy(),this.loader=new r(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 o={responseType:"json",url:i.href},A=t.steeringManifestLoadPolicy.default,h=A.errorRetry||A.timeoutRetry||{},y={loadPolicy:A,timeout:A.maxLoadTimeMs,maxRetry:h.maxNumRetry||0,retryDelay:h.retryDelayMs||0,maxRetryDelay:h.maxRetryDelayMs||0},g={onSuccess:(F,N,q,Ae)=>{this.log(`Loaded steering manifest: "${i}"`);const ue=F.data;if((ue==null?void 0:ue.VERSION)!==1){this.log(`Steering VERSION ${ue.VERSION} not supported!`);return}this.updated=performance.now(),this.timeToLoad=ue.TTL;const{"RELOAD-URI":Re,"PATHWAY-CLONES":ke,"PATHWAY-PRIORITY":it}=ue;if(Re)try{this.uri=new self.URL(Re,i).href}catch(_t){this.enabled=!1,this.log(`Failed to parse Steering Manifest RELOAD-URI: ${Re}`);return}this.scheduleRefresh(this.uri||q.url),ke&&this.clonePathways(ke);const ft={steeringManifest:ue,url:i.toString()};this.hls.trigger(I.STEERING_MANIFEST_LOADED,ft),it&&this.updatePathwayPriority(it)},onError:(F,N,q,Ae)=>{if(this.log(`Error loading steering manifest: ${F.code} ${F.text} (${N.url})`),this.stopLoad(),F.code===410){this.enabled=!1,this.log(`Steering manifest ${N.url} no longer available`);return}let ue=this.timeToLoad*1e3;if(F.code===429){const Re=this.loader;if(typeof(Re==null?void 0:Re.getResponseHeader)=="function"){const ke=Re.getResponseHeader("Retry-After");ke&&(ue=parseFloat(ke)*1e3)}this.log(`Steering manifest ${N.url} rate limited`);return}this.scheduleRefresh(this.uri||N.url,ue)},onTimeout:(F,N,q)=>{this.log(`Timeout loading steering manifest (${N.url})`),this.scheduleRefresh(this.uri||N.url)}};this.log(`Requesting steering manifest: ${i}`),this.loader.load(o,y,g)}scheduleRefresh(e,t=this.timeToLoad*1e3){this.clearTimeout(),this.reloadTimer=self.setTimeout(()=>{var r;const i=(r=this.hls)==null?void 0:r.media;if(i&&!i.ended){this.loadSteeringManifest(e);return}this.scheduleRefresh(e,this.timeToLoad*1e3)},t)}}function Nu(l,e,t,r){l&&Object.keys(e).forEach(i=>{const o=l.filter(A=>A.groupId===i).map(A=>{const h=w({},A);return h.details=void 0,h.attrs=new gi(h.attrs),h.url=h.attrs.URI=Rd(A.url,A.attrs["STABLE-RENDITION-ID"],"PER-RENDITION-URIS",t),h.groupId=h.attrs["GROUP-ID"]=e[i],h.attrs["PATHWAY-ID"]=r,h});l.push(...o)})}function Rd(l,e,t,r){const{HOST:i,PARAMS:o,[t]:A}=r;let h;e&&(h=A==null?void 0:A[e],h&&(l=h));const y=new self.URL(l);return i&&!h&&(y.host=i),o&&Object.keys(o).sort().forEach(g=>{g&&y.searchParams.set(g,o[g])}),y.href}class Ys extends V{constructor(e){super("eme",e.logger),this.hls=void 0,this.config=void 0,this.media=null,this.mediaResolved=void 0,this.keyFormatPromise=null,this.keySystemAccessPromises={},this._requestLicenseFailureCount=0,this.mediaKeySessions=[],this.keyIdToKeySessionPromise={},this.mediaKeys=null,this.setMediaKeysQueue=Ys.CDMCleanupPromise?[Ys.CDMCleanupPromise]:[],this.bannedKeyIds={},this.onMediaEncrypted=t=>{const{initDataType:r,initData:i}=t,o=`"${t.type}" event: init data type: "${r}"`;if(this.debug(o),i!==null){if(!this.keyFormatPromise){let A=Object.keys(this.keySystemAccessPromises);A.length||(A=Fs(this.config));const h=A.map(za).filter(y=>!!y);this.keyFormatPromise=this.getKeyFormatPromise(h)}this.keyFormatPromise.then(A=>{const h=qA(A);if(r!=="sinf"||h!==fi.FAIRPLAY){this.log(`Ignoring "${t.type}" event with init data type: "${r}" for selected key-system ${h}`);return}let y;try{const Ae=ar(new Uint8Array(i)),ue=FA(JSON.parse(Ae).sinf),Re=Bt(ue);if(!Re)throw new Error("'schm' box missing or not cbcs/cenc with schi > tenc");y=new Uint8Array(Re.subarray(8,24))}catch(Ae){this.warn(`${o} Failed to parse sinf: ${Ae}`);return}const g=pe(y),{keyIdToKeySessionPromise:F,mediaKeySessions:N}=this;let q=F[g];for(let Ae=0;Ae<N.length;Ae++){const ue=N[Ae],Re=ue.decryptdata;if(!Re.keyId)continue;const ke=pe(Re.keyId);if(bo(y,Re.keyId)||Re.uri.replace(/-/g,"").indexOf(g)!==-1){if(q=F[ke],!q)continue;if(Re.pssh)break;delete F[ke],Re.pssh=new Uint8Array(i),Re.keyId=y,q=F[g]=q.then(()=>this.generateRequestWithPreferredKeySession(ue,r,i,"encrypted-event-key-match")),q.catch(it=>this.handleError(it));break}}q||this.handleError(new Error(`Key ID ${g} not encountered in playlist. Key-system sessions ${N.length}.`))}).catch(A=>this.handleError(A))}},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(I.MEDIA_ATTACHED,this.onMediaAttached,this),this.hls.on(I.MEDIA_DETACHED,this.onMediaDetached,this),this.hls.on(I.MANIFEST_LOADING,this.onManifestLoading,this),this.hls.on(I.MANIFEST_LOADED,this.onManifestLoaded,this),this.hls.on(I.DESTROYING,this.onDestroying,this)}unregisterListeners(){this.hls.off(I.MEDIA_ATTACHED,this.onMediaAttached,this),this.hls.off(I.MEDIA_DETACHED,this.onMediaDetached,this),this.hls.off(I.MANIFEST_LOADING,this.onManifestLoading,this),this.hls.off(I.MANIFEST_LOADED,this.onManifestLoaded,this),this.hls.off(I.DESTROYING,this.onDestroying,this)}getLicenseServerUrl(e){const{drmSystems:t,widevineLicenseUrl:r}=this.config,i=t==null?void 0:t[e];if(i)return i.licenseUrl;if(e===fi.WIDEVINE&&r)return r}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,r=t==null?void 0:t[e];if(r)return r.serverCertificateUrl;this.log(`No Server Certificate in config.drmSystems["${e}"]`)}attemptKeySystemAccess(e){const t=this.hls.levels,r=(A,h,y)=>!!A&&y.indexOf(A)===h,i=t.map(A=>A.audioCodec).filter(r),o=t.map(A=>A.videoCodec).filter(r);return i.length+o.length===0&&o.push("avc1.42e01e"),new Promise((A,h)=>{const y=g=>{const F=g.shift();this.getMediaKeysPromise(F,i,o).then(N=>A({keySystem:F,mediaKeys:N})).catch(N=>{g.length?y(g):N instanceof Ha?h(N):h(new Ha({type:Me.KEY_SYSTEM_ERROR,details:de.KEY_SYSTEM_NO_ACCESS,error:N,fatal:!0},N.message))})};y(e)})}requestMediaKeySystemAccess(e,t){const{requestMediaKeySystemAccessFunc:r}=this.config;if(typeof r!="function"){let i=`Configured requestMediaKeySystemAccess is not a function ${r}`;return gl===null&&self.location.protocol==="http:"&&(i=`navigator.requestMediaKeySystemAccess is not available over insecure protocol ${location.protocol}`),Promise.reject(new Error(i))}return r(e,t)}getMediaKeysPromise(e,t,r){var i;const o=Xa(e,t,r,this.config.drmSystemOptions||{});let A=this.keySystemAccessPromises[e],h=(i=A)==null?void 0:i.keySystemAccess;if(!h){this.log(`Requesting encrypted media "${e}" key-system access with config: ${Vn(o)}`),h=this.requestMediaKeySystemAccess(e,o);const y=A=this.keySystemAccessPromises[e]={keySystemAccess:h};return h.catch(g=>{this.log(`Failed to obtain access to key-system "${e}": ${g}`)}),h.then(g=>{this.log(`Access for key-system "${g.keySystem}" obtained`);const F=this.fetchServerCertificate(e);this.log(`Create media-keys for "${e}"`);const N=y.mediaKeys=g.createMediaKeys().then(q=>(this.log(`Media-keys created for "${e}"`),y.hasMediaKeys=!0,F.then(Ae=>Ae?this.setMediaKeysServerCertificate(q,e,Ae):q)));return N.catch(q=>{this.error(`Failed to create media-keys for "${e}"}: ${q}`)}),N})}return h.then(()=>A.mediaKeys)}createMediaKeySessionContext({decryptdata:e,keySystem:t,mediaKeys:r}){this.log(`Creating key-system session "${t}" keyId: ${pe(e.keyId||[])} keyUri: ${e.uri}`);const i=r.createSession(),o={decryptdata:e,keySystem:t,mediaKeys:r,mediaKeysSession:i,keyStatus:"status-pending"};return this.mediaKeySessions.push(o),o}renewKeySession(e){const t=e.decryptdata;if(t.pssh){const r=this.createMediaKeySessionContext(e),i=Bl(t),o="cenc";this.keyIdToKeySessionPromise[i]=this.generateRequestWithPreferredKeySession(r,o,t.pssh.buffer,"expired")}else this.warn("Could not renew expired session. Missing pssh initData.");this.removeSession(e)}updateKeySession(e,t){const r=e.mediaKeysSession;return this.log(`Updating key-session "${r.sessionId}" for keyId ${pe(e.decryptdata.keyId||[])}
|
|
|
} (data length: ${t.byteLength})`),r.update(t)}getSelectedKeySystemFormats(){return Object.keys(this.keySystemAccessPromises).map(e=>({keySystem:e,hasMediaKeys:this.keySystemAccessPromises[e].hasMediaKeys})).filter(({hasMediaKeys:e})=>!!e).map(({keySystem:e})=>za(e)).filter(e=>!!e)}getKeySystemAccess(e){return this.getKeySystemSelectionPromise(e).then(({keySystem:t,mediaKeys:r})=>this.attemptSetMediaKeys(t,r))}selectKeySystem(e){return new Promise((t,r)=>{this.getKeySystemSelectionPromise(e).then(({keySystem:i})=>{const o=za(i);o?t(o):r(new Error(`Unable to find format for key-system "${i}"`))}).catch(r)})}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=Fs(this.config),r=e.map(qA).filter(i=>!!i&&t.indexOf(i)!==-1);return this.selectKeySystem(r)}getKeyStatus(e){const{mediaKeySessions:t}=this;for(let r=0;r<t.length;r++){const i=uc(e,t[r]);if(i)return i}}loadKey(e){const t=e.keyInfo.decryptdata,r=Bl(t),i=this.bannedKeyIds[r];if(i||this.getKeyStatus(t)==="internal-error"){const h=jl(i||"internal-error",t);return this.handleError(h,e.frag),Promise.reject(h)}const o=`(keyId: ${r} format: "${t.keyFormat}" method: ${t.method} uri: ${t.uri})`;this.log(`Starting session for key ${o}`);const A=this.keyIdToKeySessionPromise[r];if(!A){const h=this.getKeySystemForKeyPromise(t).then(({keySystem:y,mediaKeys:g})=>(this.throwIfDestroyed(),this.log(`Handle encrypted media sn: ${e.frag.sn} ${e.frag.type}: ${e.frag.level} using key ${o}`),this.attemptSetMediaKeys(y,g).then(()=>(this.throwIfDestroyed(),this.createMediaKeySessionContext({keySystem:y,mediaKeys:g,decryptdata:t}))))).then(y=>{const g="cenc",F=t.pssh?t.pssh.buffer:null;return this.generateRequestWithPreferredKeySession(y,g,F,"playlist-key")});return h.catch(y=>this.handleError(y,e.frag)),this.keyIdToKeySessionPromise[r]=h,h}return A.catch(h=>{if(h instanceof Ha){const y=B({},h.data);this.getKeyStatus(t)==="internal-error"&&(y.decryptdata=t);const g=new Ha(y,h.message);this.handleError(g,e.frag)}}),A}throwIfDestroyed(e="Invalid state"){if(!this.hls)throw new Error("invalid state")}handleError(e,t){if(this.hls)if(e instanceof Ha){t&&(e.data.frag=t);const r=e.data.decryptdata;this.error(`${e.message}${r?` (${pe(r.keyId||[])})`:""}`),this.hls.trigger(I.ERROR,e.data)}else this.error(e.message),this.hls.trigger(I.ERROR,{type:Me.KEY_SYSTEM_ERROR,details:de.KEY_SYSTEM_NO_KEYS,error:e,fatal:!0})}getKeySystemForKeyPromise(e){const t=Bl(e),r=this.keyIdToKeySessionPromise[t];if(!r){const i=qA(e.keyFormat),o=i?[i]:Fs(this.config);return this.attemptKeySystemAccess(o)}return r}getKeySystemSelectionPromise(e){if(e.length||(e=Fs(this.config)),e.length===0)throw new Ha({type:Me.KEY_SYSTEM_ERROR,details:de.KEY_SYSTEM_NO_CONFIGURED_LICENSE,fatal:!0},`Missing key-system license configuration options ${Vn({drmSystems:this.config.drmSystems})}`);return this.attemptKeySystemAccess(e)}attemptSetMediaKeys(e,t){if(this.mediaResolved=void 0,this.mediaKeys===t)return Promise.resolve();const r=this.setMediaKeysQueue.slice();this.log(`Setting media-keys for "${e}"`);const i=Promise.all(r).then(()=>this.media?this.media.setMediaKeys(t):new Promise((o,A)=>{this.mediaResolved=()=>{if(this.mediaResolved=void 0,!this.media)return A(new Error("Attempted to set mediaKeys without media element attached"));this.mediaKeys=t,this.media.setMediaKeys(t).then(o).catch(A)}}));return this.mediaKeys=t,this.setMediaKeysQueue.push(i),i.then(()=>{this.log(`Media-keys set for "${e}"`),r.push(i),this.setMediaKeysQueue=this.setMediaKeysQueue.filter(o=>r.indexOf(o)===-1)})}generateRequestWithPreferredKeySession(e,t,r,i){var o;const A=(o=this.config.drmSystems)==null||(o=o[e.keySystem])==null?void 0:o.generateRequest;if(A)try{const ue=A.call(this.hls,t,r,e);if(!ue)throw new Error("Invalid response from configured generateRequest filter");t=ue.initDataType,r=ue.initData?ue.initData:null,e.decryptdata.pssh=r?new Uint8Array(r):null}catch(ue){if(this.warn(ue.message),this.hls&&this.hls.config.debug)throw ue}if(r===null)return this.log(`Skipping key-session request for "${i}" (no initData)`),Promise.resolve(e);const h=Bl(e.decryptdata),y=e.decryptdata.uri;this.log(`Generating key-session request for "${i}" keyId: ${h} URI: ${y} (init data type: ${t} length: ${r.byteLength})`);const g=new tc,F=e._onmessage=ue=>{const Re=e.mediaKeysSession;if(!Re){g.emit("error",new Error("invalid state"));return}const{messageType:ke,message:it}=ue;this.log(`"${ke}" message event for session "${Re.sessionId}" message size: ${it.byteLength}`),ke==="license-request"||ke==="license-renewal"?this.renewLicense(e,it).catch(ft=>{g.eventNames().length?g.emit("error",ft):this.handleError(ft)}):ke==="license-release"?e.keySystem===fi.FAIRPLAY&&this.updateKeySession(e,dA("acknowledged")).then(()=>this.removeSession(e)).catch(ft=>this.handleError(ft)):this.warn(`unhandled media key message type "${ke}"`)},N=(ue,Re)=>{Re.keyStatus=ue;let ke;ue.startsWith("usable")?g.emit("resolved"):ue==="internal-error"||ue==="output-restricted"||ue==="output-downscaled"?ke=jl(ue,Re.decryptdata):ue==="expired"?ke=new Error(`key expired (keyId: ${h})`):ue==="released"?ke=new Error("key released"):ue==="status-pending"||this.warn(`unhandled key status change "${ue}" (keyId: ${h})`),ke&&(g.eventNames().length?g.emit("error",ke):this.handleError(ke))},q=e._onkeystatuseschange=ue=>{if(!e.mediaKeysSession){g.emit("error",new Error("invalid state"));return}const ke=this.getKeyStatuses(e);if(!Object.keys(ke).some(zt=>ke[zt]!=="status-pending"))return;if(ke[h]==="expired"){this.log(`Expired key ${Vn(ke)} in key-session "${e.mediaKeysSession.sessionId}"`),this.renewKeySession(e);return}let ft=ke[h];if(ft)N(ft,e);else{var _t;e.keyStatusTimeouts||(e.keyStatusTimeouts={}),(_t=e.keyStatusTimeouts)[h]||(_t[h]=self.setTimeout(()=>{if(!e.mediaKeysSession||!this.mediaKeys)return;const ir=this.getKeyStatus(e.decryptdata);if(ir&&ir!=="status-pending")return this.log(`No status for keyId ${h} in key-session "${e.mediaKeysSession.sessionId}". Using session key-status ${ir} from other session.`),N(ir,e);this.log(`key status for ${h} in key-session "${e.mediaKeysSession.sessionId}" timed out after 1000ms`),ft="internal-error",N(ft,e)},1e3)),this.log(`No status for keyId ${h} (${Vn(ke)}).`)}};Qa(e.mediaKeysSession,"message",F),Qa(e.mediaKeysSession,"keystatuseschange",q);const Ae=new Promise((ue,Re)=>{g.on("error",Re),g.on("resolved",ue)});return e.mediaKeysSession.generateRequest(t,r).then(()=>{this.log(`Request generated for key-session "${e.mediaKeysSession.sessionId}" keyId: ${h} URI: ${y}`)}).catch(ue=>{throw new Ha({type:Me.KEY_SYSTEM_ERROR,details:de.KEY_SYSTEM_NO_SESSION,error:ue,decryptdata:e.decryptdata,fatal:!1},`Error generating key-session request: ${ue}`)}).then(()=>Ae).catch(ue=>(g.removeAllListeners(),this.removeSession(e).then(()=>{throw ue}))).then(()=>(g.removeAllListeners(),e))}getKeyStatuses(e){const t={};return e.mediaKeysSession.keyStatuses.forEach((r,i)=>{if(typeof i=="string"&&typeof r=="object"){const h=i;i=r,r=h}const o="buffer"in i?new Uint8Array(i.buffer,i.byteOffset,i.byteLength):new Uint8Array(i);e.keySystem===fi.PLAYREADY&&o.length===16&&Nn(o);const A=pe(o);r==="internal-error"&&(this.bannedKeyIds[A]=r),this.log(`key status change "${r}" for keyStatuses keyId: ${A} key-session "${e.mediaKeysSession.sessionId}"`),t[A]=r}),t}fetchServerCertificate(e){const t=this.config,r=t.loader,i=new r(t),o=this.getServerCertificateUrl(e);return o?(this.log(`Fetching server certificate for "${e}"`),new Promise((A,h)=>{const y={responseType:"arraybuffer",url:o},g=t.certLoadPolicy.default,F={loadPolicy:g,timeout:g.maxLoadTimeMs,maxRetry:0,retryDelay:0,maxRetryDelay:0},N={onSuccess:(q,Ae,ue,Re)=>{A(q.data)},onError:(q,Ae,ue,Re)=>{h(new Ha({type:Me.KEY_SYSTEM_ERROR,details:de.KEY_SYSTEM_SERVER_CERTIFICATE_REQUEST_FAILED,fatal:!0,networkDetails:ue,response:B({url:y.url,data:void 0},q)},`"${e}" certificate request failed (${o}). Status: ${q.code} (${q.text})`))},onTimeout:(q,Ae,ue)=>{h(new Ha({type:Me.KEY_SYSTEM_ERROR,details:de.KEY_SYSTEM_SERVER_CERTIFICATE_REQUEST_FAILED,fatal:!0,networkDetails:ue,response:{url:y.url,data:void 0}},`"${e}" certificate request timed out (${o})`))},onAbort:(q,Ae,ue)=>{h(new Error("aborted"))}};i.load(y,F,N)})):Promise.resolve()}setMediaKeysServerCertificate(e,t,r){return new Promise((i,o)=>{e.setServerCertificate(r).then(A=>{this.log(`setServerCertificate ${A?"success":"not supported by CDM"} (${r.byteLength}) on "${t}"`),i(e)}).catch(A=>{o(new Ha({type:Me.KEY_SYSTEM_ERROR,details:de.KEY_SYSTEM_SERVER_CERTIFICATE_UPDATE_FAILED,error:A,fatal:!0},A.message))})})}renewLicense(e,t){return this.requestLicense(e,new Uint8Array(t)).then(r=>this.updateKeySession(e,new Uint8Array(r)).catch(i=>{throw new Ha({type:Me.KEY_SYSTEM_ERROR,details:de.KEY_SYSTEM_SESSION_UPDATE_FAILED,decryptdata:e.decryptdata,error:i,fatal:!1},i.message)}))}unpackPlayReadyKeyMessage(e,t){const r=String.fromCharCode.apply(null,new Uint16Array(t.buffer));if(!r.includes("PlayReadyKeyMessage"))return e.setRequestHeader("Content-Type","text/xml; charset=utf-8"),t;const i=new DOMParser().parseFromString(r,"application/xml"),o=i.querySelectorAll("HttpHeader");if(o.length>0){let F;for(let N=0,q=o.length;N<q;N++){var A,h;F=o[N];const Ae=(A=F.querySelector("name"))==null?void 0:A.textContent,ue=(h=F.querySelector("value"))==null?void 0:h.textContent;Ae&&ue&&e.setRequestHeader(Ae,ue)}}const y=i.querySelector("Challenge"),g=y==null?void 0:y.textContent;if(!g)throw new Error("Cannot find <Challenge> in key message");return dA(atob(g))}setupLicenseXHR(e,t,r,i){const o=this.config.licenseXhrSetup;return o?Promise.resolve().then(()=>{if(!r.decryptdata)throw new Error("Key removed");return o.call(this.hls,e,t,r,i)}).catch(A=>{if(!r.decryptdata)throw A;return e.open("POST",t,!0),o.call(this.hls,e,t,r,i)}).then(A=>(e.readyState||e.open("POST",t,!0),{xhr:e,licenseChallenge:A||i})):(e.open("POST",t,!0),Promise.resolve({xhr:e,licenseChallenge:i}))}requestLicense(e,t){const r=this.config.keyLoadPolicy.default;return new Promise((i,o)=>{const A=this.getLicenseServerUrlOrThrow(e.keySystem);this.log(`Sending license request to URL: ${A}`);const h=new XMLHttpRequest;h.responseType="arraybuffer",h.onreadystatechange=()=>{if(!this.hls||!e.mediaKeysSession)return o(new Error("invalid state"));if(h.readyState===4)if(h.status===200){this._requestLicenseFailureCount=0;let y=h.response;this.log(`License received ${y instanceof ArrayBuffer?y.byteLength:y}`);const g=this.config.licenseResponseCallback;if(g)try{y=g.call(this.hls,h,A,e)}catch(F){this.error(F)}i(y)}else{const y=r.errorRetry,g=y?y.maxNumRetry:0;if(this._requestLicenseFailureCount++,this._requestLicenseFailureCount>g||h.status>=400&&h.status<500)o(new Ha({type:Me.KEY_SYSTEM_ERROR,details:de.KEY_SYSTEM_LICENSE_REQUEST_FAILED,decryptdata:e.decryptdata,fatal:!0,networkDetails:h,response:{url:A,data:void 0,code:h.status,text:h.statusText}},`License Request XHR failed (${A}). Status: ${h.status} (${h.statusText})`));else{const F=g-this._requestLicenseFailureCount+1;this.warn(`Retrying license request, ${F} attempts left`),this.requestLicense(e,t).then(i,o)}}},e.licenseXhr&&e.licenseXhr.readyState!==XMLHttpRequest.DONE&&e.licenseXhr.abort(),e.licenseXhr=h,this.setupLicenseXHR(h,A,e,t).then(({xhr:y,licenseChallenge:g})=>{e.keySystem==fi.PLAYREADY&&(g=this.unpackPlayReadyKeyMessage(y,g)),y.send(g)}).catch(o)})}onDestroying(){this.unregisterListeners(),this._clear()}onMediaAttached(e,t){if(!this.config.emeEnabled)return;const r=t.media;this.media=r,Qa(r,"encrypted",this.onMediaEncrypted),Qa(r,"waitingforkey",this.onWaitingForKey);const i=this.mediaResolved;i?i():this.mediaKeys=r.mediaKeys}onMediaDetached(){const e=this.media;e&&(to(e,"encrypted",this.onMediaEncrypted),to(e,"waitingforkey",this.onWaitingForKey),this.media=null,this.mediaKeys=null)}_clear(){var e;this._requestLicenseFailureCount=0,this.keyIdToKeySessionPromise={},this.bannedKeyIds={};const t=this.mediaResolved;if(t&&t(),!this.mediaKeys&&!this.mediaKeySessions.length)return;const r=this.media,i=this.mediaKeySessions.slice();this.mediaKeySessions=[],this.mediaKeys=null,vl.clearKeyUriToKeyIdMap();const o=i.length;Ys.CDMCleanupPromise=Promise.all(i.map(A=>this.removeSession(A)).concat((r==null||(e=r.setMediaKeys(null))==null?void 0:e.catch(A=>{this.log(`Could not clear media keys: ${A}`),this.hls&&this.hls.trigger(I.ERROR,{type:Me.OTHER_ERROR,details:de.KEY_SYSTEM_DESTROY_MEDIA_KEYS_ERROR,fatal:!1,error:new Error(`Could not clear media keys: ${A}`)})}))||Promise.resolve())).catch(A=>{this.log(`Could not close sessions and clear media keys: ${A}`),this.hls&&this.hls.trigger(I.ERROR,{type:Me.OTHER_ERROR,details:de.KEY_SYSTEM_DESTROY_CLOSE_SESSION_ERROR,fatal:!1,error:new Error(`Could not close sessions and clear media keys: ${A}`)})}).then(()=>{o&&this.log("finished closing key sessions and clearing media keys")})}onManifestLoading(){this._clear()}onManifestLoaded(e,{sessionKeys:t}){if(!(!t||!this.config.emeEnabled)&&!this.keyFormatPromise){const r=t.reduce((i,o)=>(i.indexOf(o.keyFormat)===-1&&i.push(o.keyFormat),i),[]);this.log(`Selecting key-system from session-keys ${r.join(", ")}`),this.keyFormatPromise=this.getKeyFormatPromise(r)}}removeSession(e){const{mediaKeysSession:t,licenseXhr:r,decryptdata:i}=e;if(t){this.log(`Remove licenses and keys and close session "${t.sessionId}" keyId: ${pe((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),r&&r.readyState!==XMLHttpRequest.DONE&&r.abort(),e.mediaKeysSession=e.decryptdata=e.licenseXhr=void 0;const o=this.mediaKeySessions.indexOf(e);o>-1&&this.mediaKeySessions.splice(o,1);const{keyStatusTimeouts:A}=e;A&&Object.keys(A).forEach(g=>self.clearTimeout(A[g]));const{drmSystemOptions:h}=this.config;return(ml(h)?new Promise((g,F)=>{self.setTimeout(()=>F(new Error("MediaKeySession.remove() timeout")),8e3),t.remove().then(g).catch(F)}):Promise.resolve()).catch(g=>{this.log(`Could not remove session: ${g}`),this.hls&&this.hls.trigger(I.ERROR,{type:Me.OTHER_ERROR,details:de.KEY_SYSTEM_DESTROY_REMOVE_SESSION_ERROR,fatal:!1,error:new Error(`Could not remove session: ${g}`)})}).then(()=>t.close()).catch(g=>{this.log(`Could not close session: ${g}`),this.hls&&this.hls.trigger(I.ERROR,{type:Me.OTHER_ERROR,details:de.KEY_SYSTEM_DESTROY_CLOSE_SESSION_ERROR,fatal:!1,error:new Error(`Could not close session: ${g}`)})})}return Promise.resolve()}}Ys.CDMCleanupPromise=void 0;function Bl(l){if(!l)throw new Error("Could not read keyId of undefined decryptdata");if(l.keyId===null)throw new Error("keyId is null");return pe(l.keyId)}function uc(l,e){if(l.keyId&&e.mediaKeysSession.keyStatuses.has(l.keyId))return e.mediaKeysSession.keyStatuses.get(l.keyId);if(l.matches(e.decryptdata))return e.keyStatus}class Ha 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 jl(l,e){const t=l==="output-restricted",r=t?de.KEY_SYSTEM_STATUS_OUTPUT_RESTRICTED:de.KEY_SYSTEM_STATUS_INTERNAL_ERROR;return new Ha({type:Me.KEY_SYSTEM_ERROR,details:r,fatal:!1,decryptdata:e},t?"HDCP level output restricted":`key status changed to "${l}"`)}class E0{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(I.MEDIA_ATTACHING,this.onMediaAttaching,this),this.hls.on(I.MEDIA_DETACHING,this.onMediaDetaching,this)}unregisterListeners(){this.hls.off(I.MEDIA_ATTACHING,this.onMediaAttaching,this),this.hls.off(I.MEDIA_DETACHING,this.onMediaDetaching,this)}destroy(){this.timer&&clearInterval(this.timer),this.unregisterListeners(),this.isVideoPlaybackQualityAvailable=!1,this.media=null}onMediaAttaching(e,t){const r=this.hls.config;if(r.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),r.fpsDroppedMonitoringPeriod)}}onMediaDetaching(){this.media=null}checkFPS(e,t,r){const i=performance.now();if(t){if(this.lastTime){const o=i-this.lastTime,A=r-this.lastDroppedFrames,h=t-this.lastDecodedFrames,y=1e3*A/o,g=this.hls;if(g.trigger(I.FPS_DROP,{currentDropped:A,currentDecoded:h,totalDroppedFrames:r}),y>0&&A>g.config.fpsDroppedMonitoringThreshold*h){let F=g.currentLevel;g.logger.warn("drop FPS ratio greater than max allowed value for currentLevel: "+F),F>0&&(g.autoLevelCapping===-1||g.autoLevelCapping>=F)&&(F=F-1,g.trigger(I.FPS_DROP_LEVEL_CAPPING,{level:F,droppedLevel:g.currentLevel}),g.autoLevelCapping=F,this.streamController.nextLevelSwitch())}}this.lastTime=i,this.lastDroppedFrames=r,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 Kl(l,e){let t;try{t=new Event("addtrack")}catch(r){t=document.createEvent("Event"),t.initEvent("addtrack",!1,!1)}t.track=l,e.dispatchEvent(t)}function Tf(l,e){const t=l.mode;if(t==="disabled"&&(l.mode="hidden"),l.cues&&!l.cues.getCueById(e.id))try{if(l.addCue(e),!l.cues.getCueById(e.id))throw new Error(`addCue is failed for: ${e}`)}catch(r){Qe.debug(`[texttrack-utils]: ${r}`);try{const i=new self.TextTrackCue(e.startTime,e.endTime,e.text);i.id=e.id,l.addCue(i)}catch(i){Qe.debug(`[texttrack-utils]: Legacy TextTrackCue fallback failed: ${i}`)}}t==="disabled"&&(l.mode=t)}function Oc(l,e){const t=l.mode;if(t==="disabled"&&(l.mode="hidden"),l.cues)for(let r=l.cues.length;r--;)e&&l.cues[r].removeEventListener("enter",e),l.removeCue(l.cues[r]);t==="disabled"&&(l.mode=t)}function Eh(l,e,t,r){const i=l.mode;if(i==="disabled"&&(l.mode="hidden"),l.cues&&l.cues.length>0){const o=B0(l.cues,e,t);for(let A=0;A<o.length;A++)(!r||r(o[A]))&&l.removeCue(o[A])}i==="disabled"&&(l.mode=i)}function Ff(l,e){if(e<=l[0].startTime)return 0;const t=l.length-1;if(e>l[t].endTime)return-1;let r=0,i=t,o;for(;r<=i;)if(o=Math.floor((i+r)/2),e<l[o].startTime)i=o-1;else if(e>l[o].startTime&&r<t)r=o+1;else return o;return l[r].startTime-e<e-l[i].startTime?r:i}function B0(l,e,t){const r=[],i=Ff(l,e);if(i>-1)for(let o=i,A=l.length;o<A;o++){const h=l[o];if(h.startTime>=e&&h.endTime<=t)r.push(h);else if(h.startTime>t)return r}return r}function x0(l){const e=[];for(let t=0;t<l.length;t++){const r=l[t];(r.kind==="subtitles"||r.kind==="captions")&&r.label&&e.push(l[t])}return e}class gp extends p0{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 r=x0(this.media.textTracks);for(let o=0;o<r.length;o++)if(r[o].mode==="hidden")t=r[o];else if(r[o].mode==="showing"){t=r[o];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(I.MEDIA_ATTACHED,this.onMediaAttached,this),e.on(I.MEDIA_DETACHING,this.onMediaDetaching,this),e.on(I.MANIFEST_LOADING,this.onManifestLoading,this),e.on(I.MANIFEST_PARSED,this.onManifestParsed,this),e.on(I.LEVEL_LOADING,this.onLevelLoading,this),e.on(I.LEVEL_SWITCHING,this.onLevelSwitching,this),e.on(I.SUBTITLE_TRACK_LOADED,this.onSubtitleTrackLoaded,this),e.on(I.ERROR,this.onError,this)}unregisterListeners(){const{hls:e}=this;e.off(I.MEDIA_ATTACHED,this.onMediaAttached,this),e.off(I.MEDIA_DETACHING,this.onMediaDetaching,this),e.off(I.MANIFEST_LOADING,this.onManifestLoading,this),e.off(I.MANIFEST_PARSED,this.onManifestParsed,this),e.off(I.LEVEL_LOADING,this.onLevelLoading,this),e.off(I.LEVEL_SWITCHING,this.onLevelSwitching,this),e.off(I.SUBTITLE_TRACK_LOADED,this.onSubtitleTrackLoaded,this),e.off(I.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 r=this.media;if(!r)return;const i=!!t.transferMedia;if(self.clearInterval(this.subtitlePollingInterval),this.useTextTrackPolling||r.textTracks.removeEventListener("change",this.asyncPollTrackChange),this.trackId>-1&&(this.queuedDefaultTrack=this.trackId),this.subtitleTrack=-1,this.media=null,i)return;x0(r.textTracks).forEach(A=>{Oc(A)})}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:r,groupId:i,details:o}=t,A=this.tracksInGroup[r];if(!A||A.groupId!==i){this.warn(`Subtitle track with id:${r} and group:${i} not found in active group ${A==null?void 0:A.groupId}`);return}const h=A.details;A.details=t.details,this.log(`Subtitle track ${r} "${A.name}" lang:${A.lang} group:${i} loaded [${o.startSN}-${o.endSN}]`),r===this.trackId&&this.playlistLoaded(r,t,h)}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 r=t.subtitleGroups||null,i=this.groupIds;let o=this.currentTrack;if(!r||(i==null?void 0:i.length)!==(r==null?void 0:r.length)||r!=null&&r.some(A=>(i==null?void 0:i.indexOf(A))===-1)){this.groupIds=r,this.trackId=-1,this.currentTrack=null;const A=this.tracks.filter(F=>!r||r.indexOf(F.groupId)!==-1);if(A.length)this.selectDefaultTrack&&!A.some(F=>F.default)&&(this.selectDefaultTrack=!1),A.forEach((F,N)=>{F.id=N});else if(!o&&!this.tracksInGroup.length)return;this.tracksInGroup=A;const h=this.hls.config.subtitlePreference;if(!o&&h){this.selectDefaultTrack=!1;const F=Zo(h,A);if(F>-1)o=A[F];else{const N=Zo(h,this.tracks);o=this.tracks[N]}}let y=this.findTrackId(o);y===-1&&o&&(y=this.findTrackId(null));const g={subtitleTracks:A};this.log(`Updating subtitle tracks, ${A.length} track(s) found in "${r==null?void 0:r.join(",")}" group-id`),this.hls.trigger(I.SUBTITLE_TRACKS_UPDATED,g),y!==-1&&this.trackId===-1&&this.setSubtitleTrack(y)}}findTrackId(e){const t=this.tracksInGroup,r=this.selectDefaultTrack;for(let i=0;i<t.length;i++){const o=t[i];if(!(r&&!o.default||!r&&!e)&&(!e||xA(o,e)))return i}if(e){for(let i=0;i<t.length;i++){const o=t[i];if(du(e.attrs,o.attrs,["LANGUAGE","ASSOC-LANGUAGE","CHARACTERISTICS"]))return i}for(let i=0;i<t.length;i++){const o=t[i];if(du(e.attrs,o.attrs,["LANGUAGE"]))return i}}return-1}findTrackForTextTrack(e){if(e){const t=this.tracksInGroup;for(let r=0;r<t.length;r++){const i=t[r];if(m0(i,e))return r}}return-1}onError(e,t){t.fatal||!t.context||t.context.type===Be.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 r=this.currentTrack;if(r&&xA(e,r))return r;const i=Zo(e,this.tracksInGroup);if(i>-1){const o=this.tracksInGroup[i];return this.setSubtitleTrack(i),o}else{if(r)return null;{const o=Zo(e,t);if(o>-1)return t[o]}}}}return null}loadPlaylist(e){super.loadPlaylist(),this.shouldLoadPlaylist(this.currentTrack)&&this.scheduleLoading(this.currentTrack,e)}loadingPlaylist(e,t){super.loadingPlaylist(e,t);const r=e.id,i=e.groupId,o=this.getUrlWithDirectives(e.url,t),A=e.details,h=A==null?void 0:A.age;this.log(`Loading subtitle ${r} "${e.name}" lang:${e.lang} group:${i}${(t==null?void 0:t.msn)!==void 0?" at sn "+t.msn+" part "+t.part:""}${h&&A.live?" age "+h.toFixed(1)+(A.type?" "+A.type||0:""):""} ${o}`),this.hls.trigger(I.SUBTITLE_TRACK_LOADING,{url:o,id:r,groupId:i,deliveryDirectives:t||null,track:e})}toggleTrackModes(){const{media:e}=this;if(!e)return;const t=x0(e.textTracks),r=this.currentTrack;let i;if(r&&(i=t.filter(o=>m0(r,o))[0],i||this.warn(`Unable to find subtitle TextTrack with name "${r.name}" and language "${r.lang}"`)),[].slice.call(t).forEach(o=>{o.mode!=="disabled"&&o!==i&&(o.mode="disabled")}),i){const o=this.subtitleDisplay?"showing":"hidden";i.mode!==o&&(i.mode=o)}}setSubtitleTrack(e){const t=this.tracksInGroup;if(!this.media){this.queuedDefaultTrack=e;return}if(e<-1||e>=t.length||!Ie(e)){this.warn(`Invalid subtitle track id: ${e}`);return}this.selectDefaultTrack=!1;const r=this.currentTrack,i=t[e]||null;if(this.trackId=e,this.currentTrack=i,this.toggleTrackModes(),!i){this.hls.trigger(I.SUBTITLE_TRACK_SWITCH,{id:e});return}const o=!!i.details&&!i.details.live;if(e===this.trackId&&i===r&&o)return;this.log(`Switching to subtitle-track ${e}`+(i?` "${i.name}" lang:${i.lang} group:${i.groupId}`:""));const{id:A,groupId:h="",name:y,type:g,url:F}=i;this.hls.trigger(I.SUBTITLE_TRACK_SWITCH,{id:A,groupId:h,name:y,type:g,url:F});const N=this.switchParams(i.url,r==null?void 0:r.details,i.details);this.loadPlaylist(N)}}function C0(){try{return crypto.randomUUID()}catch(l){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 o=(t+Math.random()*16)%16|0;return t=Math.floor(t/16),(i=="x"?o:o&3|8).toString(16)})}}}function S0(l){let e=5381,t=l.length;for(;t;)e=e*33^l.charCodeAt(--t);return(e>>>0).toString()}const cc=.025;let Bh=function(l){return l[l.Point=0]="Point",l[l.Range=1]="Range",l}({});function I0(l,e,t){return`${l.identifier}-${t+1}-${S0(e)}`}class Zp{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 r=this.playoutLimit;return e<=0||isNaN(r)?!1:r===0?!0:(((t=this.assetList[e])==null?void 0:t.startOffset)||0)>r}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 Nc(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,r=Nc(t,e);return t-r<.1}return!1}get resumptionOffset(){const e=this.resumeOffset,t=Ie(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 Nc(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)<cc))}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"?Bh.Range:Bh.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 Pd(this)}}function Nc(l,e){return l-e.start<e.duration/2&&!(Math.abs(l-(e.start+e.duration))<cc)?e.start:e.start+e.duration}function Ud(l,e,t){const r=new self.URL(l,t);return r.protocol!=="data:"&&r.searchParams.set("_HLS_primary_id",e),r}function xh(l,e){for(;(t=l.assetList[++e])!=null&&t.error;)var t;return e}function Pd(l){return`["${l.identifier}" ${l.cue.pre?"<pre>":l.cue.post?"<post>":""}${l.timelineStart.toFixed(2)}-${l.resumeTime.toFixed(2)}]`}function hc(l){const e=l.timelineStart,t=l.duration||0;return`["${l.identifier}" ${e.toFixed(2)}-${(e+t).toFixed(2)}]`}class Od{constructor(e,t,r,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(I.PLAYOUT_LIMIT_REACHED,{})};const o=this.hls=new e(t);this.interstitial=r,this.assetItem=i;const A=()=>{this.hasDetails=!0};o.once(I.LEVEL_LOADED,A),o.once(I.AUDIO_TRACK_LOADED,A),o.once(I.SUBTITLE_TRACK_LOADED,A),o.on(I.MEDIA_ATTACHING,(h,{media:y})=>{this.removeMediaListeners(),this.mediaAttached=y,this.interstitial.playoutLimit&&(y.addEventListener("timeupdate",this.checkPlayout),this.appendInPlace&&o.on(I.BUFFER_APPENDED,()=>{const F=this.bufferedEnd;this.reachedPlayout(F)&&(this._bufferedEosTime=F,o.trigger(I.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=Ud(t,e.config.primarySessionId||"").href}catch(r){}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 r=Math.min(this._bufferedEosTime||1/0,this.duration),i=this.timelineOffset,o=oi.bufferInfo(e,i,0);return this.getAssetTime(o.end)>=r-.02}reachedPlayout(e){const r=this.interstitial.playoutLimit;return this.startOffset+e>=r}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=oi.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 r=t-this.startOffset;if(r>0&&r<e)return r}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 r=e-t;if(Math.abs(r)>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,r=this.duration;return Math.min(Math.max(0,e-t),r)}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=r=>delete r.details;e.levels.forEach(t),e.allAudioTracks.forEach(t),e.allSubtitleTracks.forEach(t),this.hasDetails=!1}}on(e,t,r){var i;(i=this.hls)==null||i.on(e,t)}once(e,t,r){var i;(i=this.hls)==null||i.once(e,t)}off(e,t,r){var i;(i=this.hls)==null||i.off(e,t)}toString(){var e;return`HlsAssetPlayer: ${hc(this.assetItem)} ${(e=this.hls)==null?void 0:e.sessionId} ${this.appendInPlace?"append-in-place":""}`}}const Ch=.033;class Sh extends V{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((r,i)=>e<=i.startOffset&&t>i.startOffset?(delete i.error,r+1):r,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 r=-1;e.nextEvent?r=this.findEventIndex(e.nextEvent.identifier)-1:e.previousEvent&&(r=this.findEventIndex(e.previousEvent.identifier)+1);const i=this.items;if(i)for(i[r]||(t===void 0&&(t=e.start),r=this.findItemIndexAtTime(t));r>=0&&(o=i[r])!=null&&o.event;){var o;r--}return r}findItemIndexAtTime(e,t){const r=this.items;if(r)for(let i=0;i<r.length;i++){let o=r[i];if(t&&t!=="primary"&&(o=o[t]),e===o.start||e>o.start&&e<o.end)return i}return-1}findJumpRestrictedIndex(e,t){const r=this.items;if(r)for(let i=e;i<=t&&r[i];i++){const o=r[i].event;if(o!=null&&o.restrictions.jump&&!o.appendInPlace)return i}return-1}findEventIndex(e){const t=this.items;if(t)for(let i=t.length;i--;){var r;if(((r=t[i].event)==null?void 0:r.identifier)===e)return i}return-1}findAssetIndex(e,t){const r=e.assetList,i=r.length;if(i>1)for(let o=0;o<i;o++){const A=r[o];if(!A.error){const h=A.timelineStart;if(t===h||t>h&&(t<h+(A.duration||0)||o===i-1))return o}}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 r=t.assetList,i=r[r.length-1];if(i)return i.identifier}return null}parseInterstitialDateRanges(e,t){const r=e.main.details,{dateRanges:i}=r,o=this.events,A=this.parseDateRanges(i,{url:r.url},t),h=Object.keys(i),y=o?o.filter(g=>!h.includes(g.identifier)):[];A.length&&A.sort((g,F)=>{const N=g.cue.pre,q=g.cue.post,Ae=F.cue.pre,ue=F.cue.post;if(N&&!Ae)return-1;if(Ae&&!N||q&&!ue)return 1;if(ue&&!q)return-1;if(!N&&!Ae&&!q&&!ue){const Re=g.startTime,ke=F.startTime;if(Re!==ke)return Re-ke}return g.dateRange.tagOrder-F.dateRange.tagOrder}),this.events=A,y.forEach(g=>{this.removeEvent(g)}),this.updateSchedule(e,y)}updateSchedule(e,t=[],r=!1){const i=this.events||[];if(i.length||t.length||this.length<2){const o=this.items,A=this.parseSchedule(i,e);(r||t.length||(o==null?void 0:o.length)!==A.length||A.some((y,g)=>Math.abs(y.playout.start-o[g].playout.start)>.005||Math.abs(y.playout.end-o[g].playout.end)>.005))&&(this.items=A,this.onScheduleUpdate(t,o))}}parseDateRanges(e,t,r){const i=[],o=Object.keys(e);for(let A=0;A<o.length;A++){const h=o[A],y=e[h];if(y.isInterstitial){let g=this.eventMap[h];g?g.setDateRange(y):(g=new Zp(y,t),this.eventMap[h]=g,r===!1&&(g.appendInPlace=r)),i.push(g)}}return i}parseSchedule(e,t){const r=[],i=t.main.details,o=i.live?1/0:i.edge;let A=0;if(e=e.filter(y=>!y.error&&!(y.cue.once&&y.hasPlayed)),e.length){this.resolveOffsets(e,t);let y=0,g=0;if(e.forEach((F,N)=>{const q=F.cue.pre,Ae=F.cue.post,ue=e[N-1]||null,Re=F.appendInPlace,ke=Ae?o:F.startOffset,it=F.duration,ft=F.timelineOccupancy===Bh.Range?it:0,_t=F.resumptionOffset,zt=(ue==null?void 0:ue.startTime)===ke,ir=ke+F.cumulativeDuration;let Nr=Re?ir+it:ke+_t;if(q||!Ae&&ke<=0){const Cr=g;g+=ft,F.timelineStart=ir;const br=A;A+=it,r.push({event:F,start:ir,end:Nr,playout:{start:br,end:A},integrated:{start:Cr,end:g}})}else if(ke<=o){if(!zt){const pr=ke-y;if(pr>Ch){const qr=y,Cn=g;g+=pr;const Yn=A;A+=pr;const ii={previousEvent:e[N-1]||null,nextEvent:F,start:qr,end:qr+pr,playout:{start:Yn,end:A},integrated:{start:Cn,end:g}};r.push(ii)}else pr>0&&ue&&(ue.cumulativeDuration+=pr,r[r.length-1].end=ke)}Ae&&(Nr=ir),F.timelineStart=ir;const Cr=g;g+=ft;const br=A;A+=it,r.push({event:F,start:ir,end:Nr,playout:{start:br,end:A},integrated:{start:Cr,end:g}})}else return;const or=F.resumeTime;Ae||or>o?y=o:y=or}),y<o){var h;const F=y,N=g,q=o-y;g+=q;const Ae=A;A+=q,r.push({previousEvent:((h=r[r.length-1])==null?void 0:h.event)||null,nextEvent:null,start:y,end:F+q,playout:{start:Ae,end:A},integrated:{start:N,end:g}})}this.setDurations(o,A,g)}else r.push({previousEvent:null,nextEvent:null,start:0,end:o,playout:{start:0,end:o},integrated:{start:0,end:o}}),this.setDurations(o,o,o);return r}setDurations(e,t,r){this.durations={primary:e,playout:t,integrated:r}}resolveOffsets(e,t){const r=t.main.details,i=r.live?1/0:r.edge;let o=0,A=-1;e.forEach((h,y)=>{const g=h.cue.pre,F=h.cue.post,N=g?0:F?i:h.startTime;this.updateAssetDurations(h),A===N?h.cumulativeDuration=o:(o=0,A=N),!F&&h.snapOptions.in&&(h.resumeAnchor=Ua(null,r.fragments,h.startOffset+h.resumptionOffset,0,0)||void 0),h.appendInPlace&&!h.appendInPlaceStarted&&(this.primaryCanResumeInPlaceAt(h,t)||(h.appendInPlace=!1)),!h.appendInPlace&&y+1<e.length&&e[y+1].startTime-e[y].resumeTime<Ch&&(e[y+1].appendInPlace=!1,e[y+1].appendInPlace&&this.warn(`Could not change append strategy for abutting event ${h}`));const Ae=Ie(h.resumeOffset)?h.resumeOffset:h.duration;o+=Ae})}primaryCanResumeInPlaceAt(e,t){const r=e.resumeTime,i=e.startTime+e.resumptionOffset;return Math.abs(r-i)>cc?(this.log(`"${e.identifier}" resumption ${r} not aligned with estimated timeline end ${i}`),!1):!Object.keys(t).some(A=>{const h=t[A].details,y=h.edge;if(r>=y)return this.log(`"${e.identifier}" resumption ${r} past ${A} playlist end ${y}`),!1;const g=Ua(null,h.fragments,r);if(!g)return this.log(`"${e.identifier}" resumption ${r} does not align with any fragments in ${A} playlist (${h.fragStart}-${h.fragmentEnd})`),!0;const F=A==="audio"?.175:0;return Math.abs(g.start-r)<cc+F||Math.abs(g.end-r)<cc+F?!1:(this.log(`"${e.identifier}" resumption ${r} not aligned with ${A} fragment bounds (${g.start}-${g.end} sn: ${g.sn} cc: ${g.cc})`),!0)})}updateAssetDurations(e){if(!e.assetListLoaded)return;const t=e.timelineStart;let r=0,i=!1,o=!1;for(let A=0;A<e.assetList.length;A++){const h=e.assetList[A],y=t+r;h.startOffset=r,h.timelineStart=y,i||(i=h.duration===null),o||(o=!!h.error);const g=h.error?0:h.duration||0;r+=g}i&&!o?e.duration=Math.max(r,e.duration):e.duration=r}removeEvent(e){e.reset(),delete this.eventMap[e.identifier]}}function sl(l){return`[${l.event?'"'+l.event.identifier+'"':"primary"}: ${l.start.toFixed(2)}-${l.end.toFixed(2)}]`}class qp{constructor(e){this.hls=void 0,this.hls=e}destroy(){this.hls=null}loadAssetList(e,t){const r=e.assetListUrl;let i;try{i=Ud(r,this.hls.sessionId,e.baseUrl)}catch(q){const Ae=this.assignAssetListError(e,de.ASSET_LIST_LOAD_ERROR,q,r);this.hls.trigger(I.ERROR,Ae);return}t&&i.protocol!=="data:"&&i.searchParams.set("_HLS_start_offset",""+t);const o=this.hls.config,A=o.loader,h=new A(o),y={responseType:"json",url:i.href},g=o.interstitialAssetListLoadPolicy.default,F={loadPolicy:g,timeout:g.maxLoadTimeMs,maxRetry:0,retryDelay:0,maxRetryDelay:0},N={onSuccess:(q,Ae,ue,Re)=>{const ke=q.data,it=ke==null?void 0:ke.ASSETS;if(!Array.isArray(it)){const ft=this.assignAssetListError(e,de.ASSET_LIST_PARSING_ERROR,new Error("Invalid interstitial asset list"),ue.url,Ae,Re);this.hls.trigger(I.ERROR,ft);return}e.assetListResponse=ke,this.hls.trigger(I.ASSET_LIST_LOADED,{event:e,assetListResponse:ke,networkDetails:Re})},onError:(q,Ae,ue,Re)=>{const ke=this.assignAssetListError(e,de.ASSET_LIST_LOAD_ERROR,new Error(`Error loading X-ASSET-LIST: HTTP status ${q.code} ${q.text} (${Ae.url})`),Ae.url,Re,ue);this.hls.trigger(I.ERROR,ke)},onTimeout:(q,Ae,ue)=>{const Re=this.assignAssetListError(e,de.ASSET_LIST_LOAD_TIMEOUT,new Error(`Timeout loading X-ASSET-LIST (${Ae.url})`),Ae.url,q,ue);this.hls.trigger(I.ERROR,Re)}};return h.load(y,F,N),this.hls.trigger(I.ASSET_LIST_LOADING,{event:e}),h}assignAssetListError(e,t,r,i,o,A){return e.error=r,{type:Me.NETWORK_ERROR,details:t,fatal:!1,interstitial:e,url:i,error:r,networkDetails:A,stats:o}}}function Lf(l){var e;l==null||(e=l.play())==null||e.catch(()=>{})}function T0(l,e){return`[${l}] Advancing timeline position to ${e}`}class MA extends V{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 r=this.currentTime;if(r===void 0||this.playbackDisabled||!this.schedule)return;const i=r-this.timelinePos;if(Math.abs(i)<1/7056e5)return;const A=i<=-.01;this.timelinePos=r,this.bufferedPos=r;const h=this.playingItem;if(!h){this.checkBuffer();return}if(A&&this.schedule.resetErrorsInRange(r,r-i)&&this.updateSchedule(!0),this.checkBuffer(),A&&r<h.start||r>=h.end){var y;const Ae=this.findItemIndex(h);let ue=this.schedule.findItemIndexAtTime(r);if(ue===-1&&(ue=Ae+(A?-1:1),this.log(`seeked ${A?"back ":""}to position not covered by schedule ${r} (resolving from ${Ae} to ${ue})`)),!this.isInterstitial(h)&&(y=this.media)!=null&&y.paused&&(this.shouldPlay=!1),!A&&ue>Ae){const Re=this.schedule.findJumpRestrictedIndex(Ae+1,ue);if(Re>Ae){this.setSchedulePosition(Re);return}}this.setSchedulePosition(ue);return}const g=this.playingAsset;if(!g){if(this.playingLastItem&&this.isInterstitial(h)){const Ae=h.event.assetList[0];Ae&&(this.endedItem=this.playingItem,this.playingItem=null,this.setScheduleToAssetAtTime(r,Ae))}return}const F=g.timelineStart,N=g.duration||0;if(A&&r<F||r>=F+N){var q;(q=h.event)!=null&&q.appendInPlace&&(this.clearInterstitial(h.event,h),this.flushFrontBuffer(r)),this.setScheduleToAssetAtTime(r,g)}},this.onTimeupdate=()=>{const r=this.currentTime;if(r===void 0||this.playbackDisabled)return;if(r>this.timelinePos)this.timelinePos=r,r>this.bufferedPos&&this.checkBuffer();else return;const i=this.playingItem;if(!i||this.playingLastItem)return;if(r>=i.end){this.timelinePos=i.end;const h=this.findItemIndex(i);this.setSchedulePosition(h+1)}const o=this.playingAsset;if(!o)return;const A=o.timelineStart+(o.duration||0);r>=A&&this.setScheduleToAssetAtTime(r,o)},this.onScheduleUpdate=(r,i)=>{const o=this.schedule;if(!o)return;const A=this.playingItem,h=o.events||[],y=o.items||[],g=o.durations,F=r.map(Re=>Re.identifier),N=!!(h.length||F.length);(N||i)&&this.log(`INTERSTITIALS_UPDATED (${h.length}): ${h}
|
|
|
Schedule: ${y.map(Re=>sl(Re))} pos: ${this.timelinePos}`),F.length&&this.log(`Removed events ${F}`);let q=null,Ae=null;A&&(q=this.updateItem(A,this.timelinePos),this.itemsMatch(A,q)?this.playingItem=q:this.waitingItem=this.endedItem=null),this.waitingItem=this.updateItem(this.waitingItem),this.endedItem=this.updateItem(this.endedItem);const ue=this.bufferingItem;if(ue&&(Ae=this.updateItem(ue,this.bufferedPos),this.itemsMatch(ue,Ae)?this.bufferingItem=Ae:ue.event&&(this.bufferingItem=this.playingItem,this.clearInterstitial(ue.event,null))),r.forEach(Re=>{Re.assetList.forEach(ke=>{this.clearAssetPlayer(ke.identifier,null)})}),this.playerQueue.forEach(Re=>{if(Re.interstitial.appendInPlace){const ke=Re.assetItem.timelineStart,it=Re.timelineOffset-ke;if(it)try{Re.timelineOffset=ke}catch(ft){Math.abs(it)>cc&&this.warn(`${ft} ("${Re.assetId}" ${Re.timelineOffset}->${ke})`)}}}),N||i){if(this.hls.trigger(I.INTERSTITIALS_UPDATED,{events:h.slice(0),schedule:y.slice(0),durations:g,removedIds:F}),this.isInterstitial(A)&&F.includes(A.event.identifier)){this.warn(`Interstitial "${A.event.identifier}" removed while playing`),this.primaryFallback(A.event);return}A&&this.trimInPlace(q,A),ue&&Ae!==q&&this.trimInPlace(Ae,ue),this.checkBuffer()}},this.hls=e,this.HlsPlayerClass=t,this.assetListLoader=new qp(e),this.schedule=new Sh(this.onScheduleUpdate,e.logger),this.registerListeners()}registerListeners(){const e=this.hls;e&&(e.on(I.MEDIA_ATTACHING,this.onMediaAttaching,this),e.on(I.MEDIA_ATTACHED,this.onMediaAttached,this),e.on(I.MEDIA_DETACHING,this.onMediaDetaching,this),e.on(I.MANIFEST_LOADING,this.onManifestLoading,this),e.on(I.LEVEL_UPDATED,this.onLevelUpdated,this),e.on(I.AUDIO_TRACK_SWITCHING,this.onAudioTrackSwitching,this),e.on(I.AUDIO_TRACK_UPDATED,this.onAudioTrackUpdated,this),e.on(I.SUBTITLE_TRACK_SWITCH,this.onSubtitleTrackSwitch,this),e.on(I.SUBTITLE_TRACK_UPDATED,this.onSubtitleTrackUpdated,this),e.on(I.EVENT_CUE_ENTER,this.onInterstitialCueEnter,this),e.on(I.ASSET_LIST_LOADED,this.onAssetListLoaded,this),e.on(I.BUFFER_APPENDED,this.onBufferAppended,this),e.on(I.BUFFER_FLUSHED,this.onBufferFlushed,this),e.on(I.BUFFERED_TO_END,this.onBufferedToEnd,this),e.on(I.MEDIA_ENDED,this.onMediaEnded,this),e.on(I.ERROR,this.onError,this),e.on(I.DESTROYING,this.onDestroying,this))}unregisterListeners(){const e=this.hls;e&&(e.off(I.MEDIA_ATTACHING,this.onMediaAttaching,this),e.off(I.MEDIA_ATTACHED,this.onMediaAttached,this),e.off(I.MEDIA_DETACHING,this.onMediaDetaching,this),e.off(I.MANIFEST_LOADING,this.onManifestLoading,this),e.off(I.LEVEL_UPDATED,this.onLevelUpdated,this),e.off(I.AUDIO_TRACK_SWITCHING,this.onAudioTrackSwitching,this),e.off(I.AUDIO_TRACK_UPDATED,this.onAudioTrackUpdated,this),e.off(I.SUBTITLE_TRACK_SWITCH,this.onSubtitleTrackSwitch,this),e.off(I.SUBTITLE_TRACK_UPDATED,this.onSubtitleTrackUpdated,this),e.off(I.EVENT_CUE_ENTER,this.onInterstitialCueEnter,this),e.off(I.ASSET_LIST_LOADED,this.onAssetListLoaded,this),e.off(I.BUFFER_CODECS,this.onBufferCodecs,this),e.off(I.BUFFER_APPENDED,this.onBufferAppended,this),e.off(I.BUFFER_FLUSHED,this.onBufferFlushed,this),e.off(I.BUFFERED_TO_END,this.onBufferedToEnd,this),e.off(I.MEDIA_ENDED,this.onMediaEnded,this),e.off(I.ERROR,this.onError,this),e.off(I.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){to(e,"play",this.onPlay),to(e,"pause",this.onPause),to(e,"seeking",this.onSeeking),to(e,"timeupdate",this.onTimeupdate)}onMediaAttaching(e,t){const r=this.media=t.media;Qa(r,"seeking",this.onSeeking),Qa(r,"timeupdate",this.onTimeupdate),Qa(r,"play",this.onPlay),Qa(r,"pause",this.onPause)}onMediaAttached(e,t){const r=this.effectivePlayingItem,i=this.detachedData;if(this.detachedData=null,r===null)this.checkStart();else if(!i){this.clearScheduleState();const o=this.findItemIndex(r);this.setSchedulePosition(o)}}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 r=!!t.transferMedia,i=this.media;if(this.media=null,!r&&(i&&this.removeMediaListeners(i),this.detachedData)){const o=this.getBufferingPlayer();o&&(this.log(`Removing schedule state for detachedData and ${o}`),this.playingAsset=this.endedAsset=this.bufferingAsset=this.bufferingItem=this.waitingItem=this.detachedData=null,o.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,r=N=>N&&e.getAssetPlayer(N.identifier),i=(N,q,Ae,ue,Re)=>{if(N){let ke=N[q].start;const it=N.event;if(it){if(q==="playout"||it.timelineOccupancy!==Bh.Point){const ft=r(Ae);(ft==null?void 0:ft.interstitial)===it&&(ke+=ft.assetItem.startOffset+ft[Re])}}else{const ft=ue==="bufferedPos"?A():e[ue];ke+=ft-N.start}return ke}return 0},o=(N,q)=>{var Ae;if(N!==0&&q!=="primary"&&(Ae=e.schedule)!=null&&Ae.length){var ue;const Re=e.schedule.findItemIndexAtTime(N),ke=(ue=e.schedule.items)==null?void 0:ue[Re];if(ke){const it=ke[q].start-ke.start;return N+it}}return N},A=()=>{const N=e.bufferedPos;return N===Number.MAX_VALUE?h("primary"):Math.max(N,0)},h=N=>{var q,Ae;return(q=e.primaryDetails)!=null&&q.live?e.primaryDetails.edge:((Ae=e.schedule)==null?void 0:Ae.durations[N])||0},y=(N,q)=>{var Ae,ue;const Re=e.effectivePlayingItem;if(Re!=null&&(Ae=Re.event)!=null&&Ae.restrictions.skip||!e.schedule)return;e.log(`seek to ${N} "${q}"`);const ke=e.effectivePlayingItem,it=e.schedule.findItemIndexAtTime(N,q),ft=(ue=e.schedule.items)==null?void 0:ue[it],_t=e.getBufferingPlayer(),zt=_t==null?void 0:_t.interstitial,ir=zt==null?void 0:zt.appendInPlace,Nr=ke&&e.itemsMatch(ke,ft);if(ke&&(ir||Nr)){const or=r(e.playingAsset),Cr=(or==null?void 0:or.media)||e.primaryMedia;if(Cr){const br=q==="primary"?Cr.currentTime:i(ke,q,e.playingAsset,"timelinePos","currentTime"),pr=N-br,qr=(ir?br:Cr.currentTime)+pr;if(qr>=0&&(!or||ir||qr<=or.duration)){Cr.currentTime=qr;return}}}if(ft){let or=N;if(q!=="primary"){const br=ft[q].start,pr=N-br;or=ft.start+pr}const Cr=!e.isInterstitial(ft);if((!e.isInterstitial(ke)||ke.event.appendInPlace)&&(Cr||ft.event.appendInPlace)){const br=e.media||(ir?_t==null?void 0:_t.media:null);br&&(br.currentTime=or)}else if(ke){const br=e.findItemIndex(ke);if(it>br){const qr=e.schedule.findJumpRestrictedIndex(br+1,it);if(qr>br){e.setSchedulePosition(qr);return}}let pr=0;if(Cr)e.timelinePos=or,e.checkBuffer();else{const qr=ft.event.assetList,Cn=N-(ft[q]||ft).start;for(let Yn=qr.length;Yn--;){const ii=qr[Yn];if(ii.duration&&Cn>=ii.startOffset&&Cn<ii.startOffset+ii.duration){pr=Yn;break}}}e.setSchedulePosition(it,pr)}}},g=()=>{const N=e.effectivePlayingItem;if(e.isInterstitial(N))return N;const q=t();return e.isInterstitial(q)?q:null},F={get bufferedEnd(){const N=t(),q=e.bufferingItem;if(q&&q===N){var Ae;return i(q,"playout",e.bufferingAsset,"bufferedPos","bufferedEnd")-q.playout.start||((Ae=e.bufferingAsset)==null?void 0:Ae.startOffset)||0}return 0},get currentTime(){const N=g(),q=e.effectivePlayingItem;return q&&q===N?i(q,"playout",e.effectivePlayingAsset,"timelinePos","currentTime")-q.playout.start:0},set currentTime(N){const q=g(),Ae=e.effectivePlayingItem;Ae&&Ae===q&&y(N+Ae.playout.start,"playout")},get duration(){const N=g();return N?N.playout.end-N.playout.start:0},get assetPlayers(){var N;const q=(N=g())==null?void 0:N.event.assetList;return q?q.map(Ae=>e.getAssetPlayer(Ae.identifier)):[]},get playingIndex(){var N;const q=(N=g())==null?void 0:N.event;return q&&e.effectivePlayingAsset?q.findAssetIndex(e.effectivePlayingAsset):-1},get scheduleItem(){return g()}};return this.manager={get events(){var N;return((N=e.schedule)==null||(N=N.events)==null?void 0:N.slice(0))||[]},get schedule(){var N;return((N=e.schedule)==null||(N=N.items)==null?void 0:N.slice(0))||[]},get interstitialPlayer(){return g()?F:null},get playerQueue(){return e.playerQueue.slice(0)},get bufferingAsset(){return e.bufferingAsset},get bufferingItem(){return t()},get bufferingIndex(){const N=t();return e.findItemIndex(N)},get playingAsset(){return e.effectivePlayingAsset},get playingItem(){return e.effectivePlayingItem},get playingIndex(){const N=e.effectivePlayingItem;return e.findItemIndex(N)},primary:{get bufferedEnd(){return A()},get currentTime(){const N=e.timelinePos;return N>0?N:0},set currentTime(N){y(N,"primary")},get duration(){return h("primary")},get seekableStart(){var N;return((N=e.primaryDetails)==null?void 0:N.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(N){y(N,"integrated")},get duration(){return h("integrated")},get seekableStart(){var N;return o(((N=e.primaryDetails)==null?void 0:N.fragmentStart)||0,"integrated")}},skip:()=>{const N=e.effectivePlayingItem,q=N==null?void 0:N.event;if(q&&!q.restrictions.skip){const Ae=e.findItemIndex(N);if(q.appendInPlace){const ue=N.playout.start+N.event.duration;y(ue+.001,"playout")}else e.advanceAfterAssetEnded(q,Ae,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,r=(e=this.schedule)==null?void 0:e.items;return!this.playbackStarted||!t||!r?!1:this.findItemIndex(t)===r.length-1}get playbackStarted(){return this.effectivePlayingItem!==null}get currentTime(){var e,t;if(this.mediaSelection===null)return;const r=this.waitingItem||this.playingItem;if(this.isInterstitial(r)&&!r.event.appendInPlace)return;let i=this.media;!i&&(e=this.bufferingItem)!=null&&(e=e.event)!=null&&e.appendInPlace&&(i=this.primaryMedia);const o=(t=i)==null?void 0:t.currentTime;if(!(o===void 0||!Ie(o)))return o}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 r=this.getAssetPlayer(e);r&&this.transferMediaFromPlayer(r,t)}transferMediaFromPlayer(e,t){const r=e.interstitial.appendInPlace,i=e.media;if(r&&i===this.primaryMedia){if(this.bufferingAsset=null,(!t||this.isInterstitial(t)&&!t.event.appendInPlace)&&t&&i){this.detachedData={media:i};return}const o=e.transferMedia();this.log(`transfer MediaSource from ${e} ${Vn(o)}`),this.detachedData=o}else t&&i&&(this.shouldPlay||(this.shouldPlay=!i.paused))}transferMediaTo(e,t){var r,i;if(e.media===t)return;let o=null;const A=this.hls,h=e!==A,y=h&&e.interstitial.appendInPlace,g=(r=this.detachedData)==null?void 0:r.mediaSource;let F;if(A.media)y&&(o=A.transferMedia(),this.detachedData=o),F="Primary";else if(g){const ue=this.getBufferingPlayer();ue?(o=ue.transferMedia(),F=`${ue}`):F="detached MediaSource"}else F="detached media";if(!o){if(g)o=this.detachedData,this.log(`using detachedData: MediaSource ${Vn(o)}`);else if(!this.detachedData||A.media===t){const ue=this.playerQueue;ue.length>1&&ue.forEach(Re=>{if(h&&Re.interstitial.appendInPlace!==y){const ke=Re.interstitial;this.clearInterstitial(Re.interstitial,null),ke.appendInPlace=!1,ke.appendInPlace&&this.warn(`Could not change append strategy for queued assets ${ke}`)}}),this.hls.detachMedia(),this.detachedData={media:t}}}const N=o&&"mediaSource"in o&&((i=o.mediaSource)==null?void 0:i.readyState)!=="closed",q=N&&o?o:t;this.log(`${N?"transfering MediaSource":"attaching media"} to ${h?e:"Primary"} from ${F} (media.currentTime: ${t.currentTime})`);const Ae=this.schedule;if(q===o&&Ae){const ue=h&&e.assetId===Ae.assetIdAtEnd;q.overrides={duration:Ae.duration,endOfStream:!h||ue,cueRemoval:!h}}e.attachMedia(q)}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 r=this.timelinePos,i=this.effectivePlayingItem;if(r===-1){const o=this.hls.startPosition;if(this.log(T0("checkStart",o)),this.timelinePos=o,t.length&&t[0].cue.pre){const A=e.findEventIndex(t[0].identifier);this.setSchedulePosition(A)}else if(o>=0||!this.primaryLive){const A=this.timelinePos=o>0?o:0,h=e.findItemIndexAtTime(A);this.setSchedulePosition(h)}}else if(i&&!this.playingItem){const o=e.findItemIndex(i);this.setSchedulePosition(o)}}advanceAssetBuffering(e,t){const r=e.event,i=r.findAssetIndex(t),o=xh(r,i);if(!r.isAssetPastPlayoutLimit(o))this.bufferedToEvent(e,o);else if(this.schedule){var A;const h=(A=this.schedule.items)==null?void 0:A[this.findItemIndex(e)+1];h&&this.bufferedToItem(h)}}advanceAfterAssetEnded(e,t,r){const i=xh(e,r);if(e.isAssetPastPlayoutLimit(i)){if(this.schedule){const o=this.schedule.items;if(o){const A=t+1,h=o.length;if(A>=h){this.setSchedulePosition(-1);return}const y=e.resumeTime;this.timelinePos<y&&(this.log(T0("advanceAfterAssetEnded",y)),this.timelinePos=y,e.appendInPlace&&this.advanceInPlace(y),this.checkBuffer(this.bufferedPos<y)),this.setSchedulePosition(A)}}}else{if(e.appendInPlace){const o=e.assetList[i];o&&this.advanceInPlace(o.timelineStart)}this.setSchedulePosition(t,i)}}setScheduleToAssetAtTime(e,t){const r=this.schedule;if(!r)return;const i=t.parentIdentifier,o=r.getEvent(i);if(o){const A=r.findEventIndex(i),h=r.findAssetIndex(o,e);this.advanceAfterAssetEnded(o,A,h-1)}}setSchedulePosition(e,t){var r;const i=(r=this.schedule)==null?void 0:r.items;if(!i||this.playbackDisabled)return;const o=e>=0?i[e]:null;this.log(`setSchedulePosition ${e}, ${t} (${o&&sl(o)}) pos: ${this.timelinePos}`);const A=this.waitingItem||this.playingItem,h=this.playingLastItem;if(this.isInterstitial(A)){const F=A.event,N=this.playingAsset,q=N==null?void 0:N.identifier,Ae=q?this.getAssetPlayer(q):null;if(Ae&&q&&(!this.eventItemsMatch(A,o)||t!==void 0&&q!==F.assetList[t].identifier)){var y;const ue=F.findAssetIndex(N);if(this.log(`INTERSTITIAL_ASSET_ENDED ${ue+1}/${F.assetList.length} ${hc(N)}`),this.endedAsset=N,this.playingAsset=null,this.hls.trigger(I.INTERSTITIAL_ASSET_ENDED,{asset:N,assetListIndex:ue,event:F,schedule:i.slice(0),scheduleIndex:e,player:Ae}),A!==this.playingItem){this.itemsMatch(A,this.playingItem)&&!this.playingAsset&&this.advanceAfterAssetEnded(F,this.findItemIndex(this.playingItem),ue);return}this.retreiveMediaSource(q,o),Ae.media&&!((y=this.detachedData)!=null&&y.mediaSource)&&Ae.detachMedia()}if(!this.eventItemsMatch(A,o)&&(this.endedItem=A,this.playingItem=null,this.log(`INTERSTITIAL_ENDED ${F} ${sl(A)}`),F.hasPlayed=!0,this.hls.trigger(I.INTERSTITIAL_ENDED,{event:F,schedule:i.slice(0),scheduleIndex:e}),F.cue.once)){var g;this.updateSchedule();const ue=(g=this.schedule)==null?void 0:g.items;if(o&&ue){const Re=this.findItemIndex(o);this.advanceSchedule(Re,ue,t,A,h)}return}}this.advanceSchedule(e,i,t,A,h)}advanceSchedule(e,t,r,i,o){const A=this.schedule;if(!A)return;const h=t[e]||null,y=this.primaryMedia,g=this.playerQueue;if(g.length&&g.forEach(F=>{const N=F.interstitial,q=A.findEventIndex(N.identifier);(q<e||q>e+1)&&this.clearInterstitial(N,h)}),this.isInterstitial(h)){this.timelinePos=Math.min(Math.max(this.timelinePos,h.start),h.end);const F=h.event;if(r===void 0){r=A.findAssetIndex(F,this.timelinePos);const ue=xh(F,r-1);if(F.isAssetPastPlayoutLimit(ue)||F.appendInPlace&&this.timelinePos===h.end){this.advanceAfterAssetEnded(F,e,r);return}r=ue}const N=this.waitingItem;this.assetsBuffered(h,y)||this.setBufferingItem(h);let q=this.preloadAssets(F,r);if(this.eventItemsMatch(h,N||i)||(this.waitingItem=h,this.log(`INTERSTITIAL_STARTED ${sl(h)} ${F.appendInPlace?"append in place":""}`),this.hls.trigger(I.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),!y){this.log(`Waiting for attachMedia to start Interstitial ${F}`);return}this.waitingItem=this.endedItem=null,this.playingItem=h;const Ae=F.assetList[r];if(!Ae){this.advanceAfterAssetEnded(F,e,r||0);return}if(q||(q=this.getAssetPlayer(Ae.identifier)),q===null||q.destroyed){const ue=F.assetList.length;this.warn(`asset ${r+1}/${ue} player destroyed ${F}`),q=this.createAssetPlayer(F,Ae,r),q.loadSource()}if(!this.eventItemsMatch(h,this.bufferingItem)&&F.appendInPlace&&this.isAssetBuffered(Ae))return;this.startAssetPlayer(q,r,t,e,y),this.shouldPlay&&Lf(q.media)}else h?(this.resumePrimary(h,e,i),this.shouldPlay&&Lf(this.hls.media)):o&&this.isInterstitial(i)&&(this.endedItem=null,this.playingItem=i,i.event.appendInPlace||this.attachPrimary(A.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,r){var i,o;if(this.playingItem=e,this.playingAsset=this.endedAsset=null,this.waitingItem=this.endedItem=null,this.bufferedToItem(e),this.log(`resuming ${sl(e)}`),!((i=this.detachedData)!=null&&i.mediaSource)){let h=this.timelinePos;(h<e.start||h>=e.end)&&(h=this.getPrimaryResumption(e,t),this.log(T0("resumePrimary",h)),this.timelinePos=h),this.attachPrimary(h,e)}if(!r)return;const A=(o=this.schedule)==null?void 0:o.items;A&&(this.log(`INTERSTITIALS_PRIMARY_RESUMED ${sl(e)}`),this.hls.trigger(I.INTERSTITIALS_PRIMARY_RESUMED,{schedule:A.slice(0),scheduleIndex:t}),this.checkBuffer())}getPrimaryResumption(e,t){const r=e.start;if(this.primaryLive){const i=this.primaryDetails;if(t===0)return this.hls.startPosition;if(i&&(r<i.fragmentStart||r>i.edge))return this.hls.liveSyncPosition||-1}return r}isAssetBuffered(e){const t=this.getAssetPlayer(e.identifier);return t!=null&&t.hls?t.hls.bufferedToEnd:oi.bufferInfo(this.primaryMedia,this.timelinePos,0).end+1>=e.timelineStart+(e.duration||0)}attachPrimary(e,t,r){t?this.setBufferingItem(t):this.bufferingItem=this.playingItem,this.bufferingAsset=null;const i=this.primaryMedia;if(!i)return;const o=this.hls;o.media?this.checkBuffer():(this.transferMediaTo(o,i),r&&this.startLoadingPrimaryAt(e,r)),r||(this.log(T0("attachPrimary",e)),this.timelinePos=e,this.startLoadingPrimaryAt(e,r))}startLoadingPrimaryAt(e,t){var r;const i=this.hls;!i.loadingEnabled||!i.media||Math.abs((((r=i.mainForwardBufferInfo)==null?void 0:r.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(I.BUFFER_CODECS,this.onBufferCodecs,this),this.hls.on(I.BUFFER_CODECS,this.onBufferCodecs,this)}onLevelUpdated(e,t){if(t.level===-1||!this.schedule)return;const r=this.hls.levels[t.level];if(!r.details)return;const i=B(B({},this.mediaSelection||this.altSelection),{},{main:r});this.mediaSelection=i,this.schedule.parseInterstitialDateRanges(i,this.hls.config.interstitialAppendInPlace),!this.effectivePlayingItem&&this.schedule.items&&this.checkStart()}onAudioTrackUpdated(e,t){const r=this.hls.audioTracks[t.id],i=this.mediaSelection;if(!i){this.altSelection=B(B({},this.altSelection),{},{audio:r});return}const o=B(B({},i),{},{audio:r});this.mediaSelection=o}onSubtitleTrackUpdated(e,t){const r=this.hls.subtitleTracks[t.id],i=this.mediaSelection;if(!i){this.altSelection=B(B({},this.altSelection),{},{subtitles:r});return}const o=B(B({},i),{},{subtitles:r});this.mediaSelection=o}onAudioTrackSwitching(e,t){const r=Ju(t);this.playerQueue.forEach(({hls:i})=>i&&(i.setAudioOption(t)||i.setAudioOption(r)))}onSubtitleTrackSwitch(e,t){const r=Ju(t);this.playerQueue.forEach(({hls:i})=>i&&(i.setSubtitleOption(t)||t.id!==-1&&i.setSubtitleOption(r)))}onBufferCodecs(e,t){const r=t.tracks;r&&(this.requiredTracks=r)}onBufferAppended(e,t){this.checkBuffer()}onBufferFlushed(e,t){const r=this.playingItem;if(r&&!this.itemsMatch(r,this.bufferingItem)&&!this.isInterstitial(r)){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 o=t[i];if(o.cue.post){var r;const A=this.schedule.findEventIndex(o.identifier),h=(r=this.schedule.items)==null?void 0:r[A];this.isInterstitial(h)&&this.eventItemsMatch(h,this.bufferingItem)&&this.bufferedToItem(h,0);break}}this.bufferedPos=Number.MAX_VALUE}}onMediaEnded(e){const t=this.playingItem;if(!this.playingLastItem&&t){const r=this.findItemIndex(t);this.setSchedulePosition(r+1)}else this.shouldPlay=!1}updateItem(e,t){var r;const i=(r=this.schedule)==null?void 0:r.items;if(e&&i){const o=this.findItemIndex(e,t);return i[o]||null}return null}trimInPlace(e,t){if(this.isInterstitial(e)&&e.event.appendInPlace&&t.end-e.end>.25){e.event.assetList.forEach((o,A)=>{e.event.isAssetPastPlayoutLimit(A)&&this.clearAssetPlayer(o.identifier,null)});const r=e.end+.25,i=oi.bufferInfo(this.primaryMedia,r,0);(i.end>r||(i.nextStart||0)>r)&&(this.log(`trim buffered interstitial ${sl(e)} (was ${sl(t)})`),this.attachPrimary(r,null,!0),this.flushFrontBuffer(r))}}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 r;return!!t&&(e===t||e.event.identifier===((r=t.event)==null?void 0:r.identifier))}findItemIndex(e,t){return e&&this.schedule?this.schedule.findItemIndex(e,t):-1}updateSchedule(e=!1){var t;const r=this.mediaSelection;r&&((t=this.schedule)==null||t.updateSchedule(r,[],e))}checkBuffer(e){var t;const r=(t=this.schedule)==null?void 0:t.items;if(!r)return;const i=oi.bufferInfo(this.primaryMedia,this.timelinePos,0);e&&(this.bufferedPos=this.timelinePos),e||(e=i.len<1),this.updateBufferedPos(i.end,r,e)}updateBufferedPos(e,t,r){const i=this.schedule,o=this.bufferingItem;if(this.bufferedPos>e||!i)return;if(t.length===1&&this.itemsMatch(t[0],o)){this.bufferedPos=e;return}const A=this.playingItem,h=this.findItemIndex(A);let y=i.findItemIndexAtTime(e);if(this.bufferedPos<e){var g;const F=this.findItemIndex(o),N=Math.min(F+1,t.length-1),q=t[N];if((y===-1&&o&&e>=o.end||(g=q.event)!=null&&g.appendInPlace&&e+.01>=q.start)&&(y=N),this.isInterstitial(o)){const Ae=o.event;if(N-h>1&&Ae.appendInPlace===!1||Ae.assetList.length===0&&Ae.assetListLoader)return}if(this.bufferedPos=e,y>F&&y>h)this.bufferedToItem(q);else{const Ae=this.primaryDetails;this.primaryLive&&Ae&&e>Ae.edge-Ae.targetduration&&q.start<Ae.edge+this.hls.config.interstitialLiveLookAhead&&this.isInterstitial(q)&&this.preloadAssets(q.event,0)}}else r&&A&&!this.itemsMatch(A,o)&&(y===h?this.bufferedToItem(A):y===h+1&&this.bufferedToItem(t[y]))}assetsBuffered(e,t){return e.event.assetList.length===0?!1:!e.event.assetList.some(i=>{const o=this.getAssetPlayer(i.identifier);return!(o!=null&&o.bufferedInPlaceToEnd(t))})}setBufferingItem(e){const t=this.bufferingItem,r=this.schedule;if(!this.itemsMatch(e,t)&&r){const{items:i,events:o}=r;if(!i||!o)return t;const A=this.isInterstitial(e),h=this.getBufferingPlayer();this.bufferingItem=e,this.bufferedPos=Math.max(e.start,Math.min(e.end,this.timelinePos));const y=h?h.remaining:t?t.end-this.timelinePos:0;if(this.log(`INTERSTITIALS_BUFFERED_TO_BOUNDARY ${sl(e)}`+(t?` (${y.toFixed(2)} remaining)`:"")),!this.playbackDisabled)if(A){const g=r.findAssetIndex(e.event,this.bufferedPos);e.event.assetList.forEach((F,N)=>{const q=this.getAssetPlayer(F.identifier);q&&(N===g&&q.loadSource(),q.resumeBuffering())})}else this.hls.resumeBuffering(),this.playerQueue.forEach(g=>g.pauseBuffering());this.hls.trigger(I.INTERSTITIALS_BUFFERED_TO_BOUNDARY,{events:o.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 r=this.setBufferingItem(e);if(!this.playbackDisabled){if(this.isInterstitial(e))this.bufferedToEvent(e,t);else if(r!==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),r=this.getPrimaryResumption(e,t);this.startLoadingPrimaryAt(r)}bufferedToEvent(e,t){const r=e.event,i=r.assetList.length===0&&!r.assetListLoader,o=r.cue.once;if(i||!o){const A=this.preloadAssets(r,t);if(A!=null&&A.interstitial.appendInPlace){const h=this.primaryMedia;h&&this.bufferAssetPlayer(A,h)}}}preloadAssets(e,t){const r=e.assetUrl,i=e.assetList.length,o=i===0&&!e.assetListLoader,A=e.cue.once;if(o){const y=e.timelineStart;if(e.appendInPlace){var h;const q=this.playingItem;!this.isInterstitial(q)&&(q==null||(h=q.nextEvent)==null?void 0:h.identifier)===e.identifier&&this.flushFrontBuffer(y+.25)}let g,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 q=F-y;q>0&&(g=Math.round(q*1e3)/1e3)}if(this.log(`Load interstitial asset ${t+1}/${r?1:i} ${e}${g?` live-start: ${F} start-offset: ${g}`:""}`),r)return this.createAsset(e,0,0,y,e.duration,r);const N=this.assetListLoader.loadAssetList(e,g);N&&(e.assetListLoader=N)}else if(!A&&i){for(let g=t;g<i;g++){const F=e.assetList[g],N=this.getAssetPlayerQueueIndex(F.identifier);(N===-1||this.playerQueue[N].destroyed)&&!F.error&&this.createAssetPlayer(e,F,g)}const y=e.assetList[t];if(y){const g=this.getAssetPlayer(y.identifier);return g&&g.loadSource(),g}}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(I.BUFFER_FLUSHING,{startOffset:e,endOffset:1/0,type:i})})}getAssetPlayerQueueIndex(e){const t=this.playerQueue;for(let r=0;r<t.length;r++)if(e===t[r].assetId)return r;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 r=0;r<e.length;r++)if(e[r].media===t)return e[r]}return null}createAsset(e,t,r,i,o,A){const h={parentIdentifier:e.identifier,identifier:I0(e,A,t),duration:o,startOffset:r,timelineStart:i,uri:A};return this.createAssetPlayer(e,h,t)}createAssetPlayer(e,t,r){const i=this.hls,o=i.userConfig;let A=o.videoPreference;const h=i.loadLevelObj||i.levels[i.currentLevel];(A||h)&&(A=w({},A),h.videoCodec&&(A.videoCodec=h.videoCodec),h.videoRange&&(A.allowedVideoRanges=[h.videoRange]));const y=i.audioTracks[i.audioTrack],g=i.subtitleTracks[i.subtitleTrack];let F=0;if(this.primaryLive||e.appendInPlace){const zt=this.timelinePos-t.timelineStart;if(zt>1){const ir=t.duration;ir&&zt<ir&&(F=zt)}}const N=t.identifier,q=B(B({},o),{},{maxMaxBufferLength:Math.min(180,i.config.maxMaxBufferLength),autoStartLoad:!0,startFragPrefetch:!0,primarySessionId:i.sessionId,assetPlayerId:N,abrEwmaDefaultEstimate:i.bandwidthEstimate,interstitialsController:void 0,startPosition:F,liveDurationInfinity:!1,testBandwidth:!1,videoPreference:A,audioPreference:y||o.audioPreference,subtitlePreference:g||o.subtitlePreference});e.appendInPlace&&(e.appendInPlaceStarted=!0,t.timelineStart&&(q.timelineOffset=t.timelineStart));const Ae=q.cmcd;Ae!=null&&Ae.sessionId&&Ae.contentId&&(q.cmcd=w({},Ae,{contentId:S0(t.uri)})),this.getAssetPlayer(N)&&this.warn(`Duplicate date range identifier ${e} and asset ${N}`);const ue=new Od(this.HlsPlayerClass,q,e,t);this.playerQueue.push(ue),e.assetList[r]=t;let Re=!0;const ke=zt=>{if(zt.live){var ir;const Cr=new Error(`Interstitials MUST be VOD assets ${e}`),br={fatal:!0,type:Me.OTHER_ERROR,details:de.INTERSTITIAL_ASSET_ITEM_ERROR,error:Cr},pr=((ir=this.schedule)==null?void 0:ir.findEventIndex(e.identifier))||-1;this.handleAssetItemError(br,e,pr,r,Cr.message);return}const Nr=zt.edge-zt.fragmentStart,or=t.duration;(Re||or===null||Nr>or)&&(Re=!1,this.log(`Interstitial asset "${N}" duration change ${or} > ${Nr}`),t.duration=Nr,this.updateSchedule())};ue.on(I.LEVEL_UPDATED,(zt,{details:ir})=>ke(ir)),ue.on(I.LEVEL_PTS_UPDATED,(zt,{details:ir})=>ke(ir)),ue.on(I.EVENT_CUE_ENTER,()=>this.onInterstitialCueEnter());const it=(zt,ir)=>{const Nr=this.getAssetPlayer(N);if(Nr&&ir.tracks){Nr.off(I.BUFFER_CODECS,it),Nr.tracks=ir.tracks;const or=this.primaryMedia;this.bufferingAsset===Nr.assetItem&&or&&!Nr.media&&this.bufferAssetPlayer(Nr,or)}};ue.on(I.BUFFER_CODECS,it);const ft=()=>{var zt;const ir=this.getAssetPlayer(N);if(this.log(`buffered to end of asset ${ir}`),!ir||!this.schedule)return;const Nr=this.schedule.findEventIndex(e.identifier),or=(zt=this.schedule.items)==null?void 0:zt[Nr];this.isInterstitial(or)&&this.advanceAssetBuffering(or,t)};ue.on(I.BUFFERED_TO_END,ft);const _t=zt=>()=>{if(!this.getAssetPlayer(N)||!this.schedule)return;this.shouldPlay=!0;const Nr=this.schedule.findEventIndex(e.identifier);this.advanceAfterAssetEnded(e,Nr,zt)};return ue.once(I.MEDIA_ENDED,_t(r)),ue.once(I.PLAYOUT_LIMIT_REACHED,_t(1/0)),ue.on(I.ERROR,(zt,ir)=>{if(!this.schedule)return;const Nr=this.getAssetPlayer(N);if(ir.details===de.BUFFER_STALLED_ERROR){if(Nr!=null&&Nr.appendInPlace){this.handleInPlaceStall(e);return}this.onTimeupdate(),this.checkBuffer(!0);return}this.handleAssetItemError(ir,e,this.schedule.findEventIndex(e.identifier),r,`Asset player error ${ir.error} ${e}`)}),ue.on(I.DESTROYING,()=>{if(!this.getAssetPlayer(N)||!this.schedule)return;const ir=new Error(`Asset player destroyed unexpectedly ${N}`),Nr={fatal:!0,type:Me.OTHER_ERROR,details:de.INTERSTITIAL_ASSET_ITEM_ERROR,error:ir};this.handleAssetItemError(Nr,e,this.schedule.findEventIndex(e.identifier),r,ir.message)}),this.log(`INTERSTITIAL_ASSET_PLAYER_CREATED ${hc(t)}`),this.hls.trigger(I.INTERSTITIAL_ASSET_PLAYER_CREATED,{asset:t,assetListIndex:r,event:e,player:ue}),ue}clearInterstitial(e,t){e.assetList.forEach(r=>{this.clearAssetPlayer(r.identifier,t)}),e.reset()}resetAssetPlayer(e){const t=this.getAssetPlayerQueueIndex(e);if(t!==-1){this.log(`reset asset player "${e}" after error`);const r=this.playerQueue[t];this.transferMediaFromPlayer(r,null),r.resetDetails()}}clearAssetPlayer(e,t){const r=this.getAssetPlayerQueueIndex(e);if(r!==-1){const i=this.playerQueue[r];this.log(`clear ${i} toSegment: ${t&&sl(t)}`),this.transferMediaFromPlayer(i,t),this.playerQueue.splice(r,1),i.destroy()}}emptyPlayerQueue(){let e;for(;e=this.playerQueue.pop();)e.destroy();this.playerQueue=[]}startAssetPlayer(e,t,r,i,o){const{interstitial:A,assetItem:h,assetId:y}=e,g=A.assetList.length,F=this.playingAsset;this.endedAsset=null,this.playingAsset=h,(!F||F.identifier!==y)&&(F&&(this.clearAssetPlayer(F.identifier,r[i]),delete F.error),this.log(`INTERSTITIAL_ASSET_STARTED ${t+1}/${g} ${hc(h)}`),this.hls.trigger(I.INTERSTITIAL_ASSET_STARTED,{asset:h,assetListIndex:t,event:A,schedule:r.slice(0),scheduleIndex:i,player:e})),this.bufferAssetPlayer(e,o)}bufferAssetPlayer(e,t){var r,i;if(!this.schedule)return;const{interstitial:o,assetItem:A}=e,h=this.schedule.findEventIndex(o.identifier),y=(r=this.schedule.items)==null?void 0:r[h];if(!y)return;e.loadSource(),this.setBufferingItem(y),this.bufferingAsset=A;const g=this.getBufferingPlayer();if(g===e)return;const F=o.appendInPlace;if(F&&(g==null?void 0:g.interstitial.appendInPlace)===!1)return;const N=(g==null?void 0:g.tracks)||((i=this.detachedData)==null?void 0:i.tracks)||this.requiredTracks;if(F&&A!==this.playingAsset){if(!e.tracks){this.log(`Waiting for track info before buffering ${e}`);return}if(N&&!st(N,e.tracks)){const q=new Error(`Asset ${hc(A)} SourceBuffer tracks ('${Object.keys(e.tracks)}') are not compatible with primary content tracks ('${Object.keys(N)}')`),Ae={fatal:!0,type:Me.OTHER_ERROR,details:de.INTERSTITIAL_ASSET_ITEM_ERROR,error:q},ue=o.findAssetIndex(A);this.handleAssetItemError(Ae,o,h,ue,q.message);return}}this.transferMediaTo(e,t)}handleInPlaceStall(e){const t=this.schedule,r=this.primaryMedia;if(!t||!r)return;const i=r.currentTime,o=t.findAssetIndex(e,i),A=e.assetList[o];if(A){const h=this.getAssetPlayer(A.identifier);if(h){const y=h.currentTime||i-A.timelineStart,g=h.duration-y;if(this.warn(`Stalled at ${y} of ${y+g} in ${h} ${e} (media.currentTime: ${i})`),y&&(g/r.playbackRate<.5||h.bufferedInPlaceToEnd(r))&&h.hls){const F=t.findEventIndex(e.identifier);this.advanceAfterAssetEnded(e,F,o)}}}}advanceInPlace(e){const t=this.primaryMedia;t&&t.currentTime<e&&(t.currentTime=e)}handleAssetItemError(e,t,r,i,o){if(e.details===de.BUFFER_STALLED_ERROR)return;const A=t.assetList[i]||null;if(this.warn(`INTERSTITIAL_ASSET_ERROR ${A&&hc(A)} ${e.error}`),!this.schedule)return;const h=(A==null?void 0:A.identifier)||"",y=this.getAssetPlayerQueueIndex(h),g=this.playerQueue[y]||null,F=this.schedule.items,N=w({},e,{fatal:!1,errorAction:Ns(!0),asset:A,assetListIndex:i,event:t,schedule:F,scheduleIndex:r,player:g});if(this.hls.trigger(I.INTERSTITIAL_ASSET_ERROR,N),!e.fatal)return;const q=this.playingAsset,Ae=this.bufferingAsset,ue=new Error(o);if(A&&(this.clearAssetPlayer(h,null),A.error=ue),!t.assetList.some(Re=>!Re.error))t.error=ue;else for(let Re=i;Re<t.assetList.length;Re++)this.resetAssetPlayer(t.assetList[Re].identifier);this.updateSchedule(!0),t.error?this.primaryFallback(t):q&&q.identifier===h?this.advanceAfterAssetEnded(t,r,i):Ae&&Ae.identifier===h&&this.isInterstitial(this.bufferingItem)&&this.advanceAssetBuffering(this.bufferingItem,Ae)}primaryFallback(e){const t=e.timelineStart,r=this.effectivePlayingItem;if(r){this.log(`Fallback to primary from event "${e.identifier}" start: ${t} pos: ${this.timelinePos} playing: ${sl(r)} error: ${e.error}`);let i=this.timelinePos;i===-1&&(i=this.hls.startPosition);const o=this.updateItem(r,i);if(this.itemsMatch(r,o)&&this.clearInterstitial(e,null),e.appendInPlace&&(this.attachPrimary(t,null),this.flushFrontBuffer(t)),!this.schedule)return;const A=this.schedule.findItemIndexAtTime(i);this.setSchedulePosition(A)}else this.checkStart()}onAssetListLoaded(e,t){var r,i;const o=t.event,A=o.identifier,h=t.assetListResponse.ASSETS;if(!((r=this.schedule)!=null&&r.hasEvent(A)))return;const y=o.timelineStart,g=o.duration;let F=0;h.forEach((Re,ke)=>{const it=parseFloat(Re.DURATION);this.createAsset(o,ke,F,y+F,it,Re.URI),F+=it}),o.duration=F,this.log(`Loaded asset-list with duration: ${F} (was: ${g}) ${o}`);const N=this.waitingItem,q=(N==null?void 0:N.event.identifier)===A;this.updateSchedule();const Ae=(i=this.bufferingItem)==null?void 0:i.event;if(q){var ue;const Re=this.schedule.findEventIndex(A),ke=(ue=this.schedule.items)==null?void 0:ue[Re];if(ke){if(!this.playingItem&&this.timelinePos>ke.end&&this.schedule.findItemIndexAtTime(this.timelinePos)!==Re){o.error=new Error(`Interstitial no longer within playback range ${this.timelinePos} ${o}`),this.updateSchedule(!0),this.primaryFallback(o);return}this.setBufferingItem(ke)}this.setSchedulePosition(Re)}else if((Ae==null?void 0:Ae.identifier)===A){const Re=o.assetList[0];if(Re){const ke=this.getAssetPlayer(Re.identifier);if(Ae.appendInPlace){const it=this.primaryMedia;ke&&it&&this.bufferAssetPlayer(ke,it)}else ke&&ke.loadSource()}}}onError(e,t){if(this.schedule)switch(t.details){case de.ASSET_LIST_PARSING_ERROR:case de.ASSET_LIST_LOAD_ERROR:case de.ASSET_LIST_LOAD_TIMEOUT:{const r=t.interstitial;r&&(this.updateSchedule(!0),this.primaryFallback(r));break}case de.BUFFER_STALLED_ERROR:{const r=this.endedItem||this.waitingItem||this.playingItem;if(this.isInterstitial(r)&&r.event.appendInPlace){this.handleInPlaceStall(r.event);return}this.log(`Primary player stall @${this.timelinePos} bufferedPos: ${this.bufferedPos}`),this.onTimeupdate(),this.checkBuffer(!0);break}}}}const Ih=500;class Nd extends RA{constructor(e,t,r){super(e,t,r,"subtitle-stream-controller",R.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(I.LEVEL_LOADED,this.onLevelLoaded,this),e.on(I.SUBTITLE_TRACKS_UPDATED,this.onSubtitleTracksUpdated,this),e.on(I.SUBTITLE_TRACK_SWITCH,this.onSubtitleTrackSwitch,this),e.on(I.SUBTITLE_TRACK_LOADED,this.onSubtitleTrackLoaded,this),e.on(I.SUBTITLE_FRAG_PROCESSED,this.onSubtitleFragProcessed,this),e.on(I.BUFFER_FLUSHING,this.onBufferFlushing,this)}unregisterListeners(){super.unregisterListeners();const{hls:e}=this;e.off(I.LEVEL_LOADED,this.onLevelLoaded,this),e.off(I.SUBTITLE_TRACKS_UPDATED,this.onSubtitleTracksUpdated,this),e.off(I.SUBTITLE_TRACK_SWITCH,this.onSubtitleTrackSwitch,this),e.off(I.SUBTITLE_TRACK_LOADED,this.onSubtitleTrackLoaded,this),e.off(I.SUBTITLE_FRAG_PROCESSED,this.onSubtitleFragProcessed,this),e.off(I.BUFFER_FLUSHING,this.onBufferFlushing,this)}startLoad(e,t){this.stopLoad(),this.state=Zr.IDLE,this.setInterval(Ih),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:r,success:i}=t;if(this.fragContextChanged(r)||(ut(r)&&(this.fragPrevious=r),this.state=Zr.IDLE),!i)return;const o=this.tracksBuffered[this.currentTrackId];if(!o)return;let A;const h=r.start;for(let g=0;g<o.length;g++)if(h>=o[g].start&&h<=o[g].end){A=o[g];break}const y=r.start+r.duration;A?A.end=y:(A={start:h,end:y},o.push(A)),this.fragmentTracker.fragBuffered(r),this.fragBufferedComplete(r,null),this.media&&this.tick()}onBufferFlushing(e,t){const{startOffset:r,endOffset:i}=t;if(r===0&&i!==Number.POSITIVE_INFINITY){const o=i-1;if(o<=0)return;t.endOffsetSubtitles=Math.max(0,o),this.tracksBuffered.forEach(A=>{for(let h=0;h<A.length;){if(A[h].end<=o){A.shift();continue}else if(A[h].start<o)A[h].start=o;else break;h++}}),this.fragmentTracker.removeFragmentsInRange(r,o,R.SUBTITLE)}}onError(e,t){const r=t.frag;(r==null?void 0:r.type)===R.SUBTITLE&&(t.details===de.FRAG_GAP&&this.fragmentTracker.fragBuffered(r,!0),this.fragCurrent&&this.fragCurrent.abortRequests(),this.state!==Zr.STOPPED&&(this.state=Zr.IDLE))}onSubtitleTracksUpdated(e,{subtitleTracks:t}){if(this.levels&&g0(this.levels,t)){this.levels=t.map(r=>new Qi(r));return}this.tracksBuffered=[],this.levels=t.map(r=>{const i=new Qi(r);return this.tracksBuffered[i.id]=[],i}),this.fragmentTracker.removeFragmentsInRange(0,Number.POSITIVE_INFINITY,R.SUBTITLE),this.fragPrevious=null,this.mediaBuffer=null}onSubtitleTrackSwitch(e,t){var r;if(this.currentTrackId=t.id,!((r=this.levels)!=null&&r.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!==Zr.STOPPED&&this.setInterval(Ih)}onSubtitleTrackLoaded(e,t){var r;const{currentTrackId:i,levels:o}=this,{details:A,id:h}=t;if(!o){this.warn(`Subtitle tracks were reset while loading level ${h}`);return}const y=o[h];if(h>=o.length||!y)return;this.log(`Subtitle track ${h} loaded [${A.startSN},${A.endSN}]${A.lastPartSn?`[part-${A.lastPartSn}-${A.lastPartIndex}]`:""},duration:${A.totalduration}`),this.mediaBuffer=this.mediaBufferTimeRanges;let g=0;if(A.live||(r=y.details)!=null&&r.live){if(A.deltaUpdateFailed)return;const N=this.mainDetails;if(!N){this.startFragRequested=!1;return}const q=N.fragments[0];if(!y.details)A.hasProgramDateTime&&N.hasProgramDateTime?(Ol(A,N),g=A.fragmentStart):q&&(g=q.start,t0(A,g));else{var F;g=this.alignPlaylists(A,y.details,(F=this.levelLastLoaded)==null?void 0:F.details),g===0&&q&&(g=q.start,t0(A,g))}N&&!this.startFragRequested&&this.setStartPosition(N,g)}y.details=A,this.levelLastLoaded=y,h===i&&(this.hls.trigger(I.SUBTITLE_TRACK_UPDATED,{details:A,id:h,groupId:t.groupId}),this.tick(),A.live&&!this.fragCurrent&&this.media&&this.state===Zr.IDLE&&(Ua(null,A.fragments,this.media.currentTime,0)||(this.warn("Subtitle playlist not aligned with playback"),y.details=void 0)))}_handleFragmentLoadComplete(e){const{frag:t,payload:r}=e,i=t.decryptdata,o=this.hls;if(!this.fragContextChanged(t)&&r&&r.byteLength>0&&i!=null&&i.key&&i.iv&&Po(i.method)){const A=performance.now();this.decrypter.decrypt(new Uint8Array(r),i.key.buffer,i.iv.buffer,ZA(i.method)).catch(h=>{throw o.trigger(I.ERROR,{type:Me.MEDIA_ERROR,details:de.FRAG_DECRYPT_ERROR,fatal:!1,error:h,reason:h.message,frag:t}),h}).then(h=>{const y=performance.now();o.trigger(I.FRAG_DECRYPTED,{frag:t,payload:h,stats:{tstart:A,tdecrypt:y}})}).catch(h=>{this.warn(`${h.name}: ${h.message}`),this.state=Zr.IDLE})}}doTick(){if(!this.media){this.state=Zr.IDLE;return}if(this.state===Zr.IDLE){const{currentTrackId:e,levels:t}=this,r=t==null?void 0:t[e];if(!r||!t.length||!r.details||this.waitForLive(r))return;const{config:i}=this,o=this.getLoadPosition(),A=oi.bufferedInfo(this.tracksBuffered[this.currentTrackId]||[],o,i.maxBufferHole),{end:h,len:y}=A,g=r.details,F=this.hls.maxBufferLength+g.levelTargetDuration;if(y>F)return;const N=g.fragments,q=N.length,Ae=g.edge;let ue=null;const Re=this.fragPrevious;if(h<Ae){const ft=i.maxFragLookUpTolerance,_t=h>Ae-ft?0:ft;ue=Ua(Re,N,Math.max(N[0].start,h),_t),!ue&&Re&&Re.start<N[0].start&&(ue=N[0])}else ue=N[q-1];if(ue=this.filterReplacedPrimary(ue,r.details),!ue)return;const ke=ue.sn-g.startSN,it=N[ke-1];if(it&&it.cc===ue.cc&&this.fragmentTracker.getState(it)===Cs.NOT_LOADED&&(ue=it),this.fragmentTracker.getState(ue)===Cs.NOT_LOADED){const ft=this.mapToInitFragWhenRequired(ue);ft&&this.loadFragment(ft,r,h)}}}loadFragment(e,t,r){ut(e)?super.loadFragment(e,t,r):this._loadInitSegment(e,t)}get mediaBufferTimeRanges(){return new Df(this.tracksBuffered[this.currentTrackId]||[])}}class Df{constructor(e){this.buffered=void 0;const t=(r,i,o)=>{if(i=i>>>0,i>o-1)throw new DOMException(`Failed to execute '${r}' on 'TimeRanges': The index provided (${i}) is greater than the maximum bound (${o})`);return e[i][r]};this.buffered={get length(){return e.length},end(r){return t("end",r,e.length)},start(r){return t("start",r,e.length)}}}}const Th={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},Mc=l=>String.fromCharCode(Th[l]||l),xl=15,Cl=100,mp={17:1,18:3,21:5,22:7,23:9,16:11,19:12,20:14},Qn={17:2,18:4,21:6,22:8,23:10,19:13,20:15},fc={25:1,26:3,29:5,30:7,31:9,24:11,27:12,28:14},Fh={25:2,26:4,29:6,30:8,31:10,27:13,28:15},al=["white","green","blue","cyan","red","yellow","magenta","black","transparent"];class vp{constructor(){this.time=null,this.verboseLevel=0}log(e,t){if(this.verboseLevel>=e){const r=typeof t=="function"?t():t;Qe.log(`${this.time} [${e}] ${r}`)}}}const gs=function(e){const t=[];for(let r=0;r<e.length;r++)t.push(e[r].toString(16));return t};class ta{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 r=0;r<t.length;r++){const i=t[r];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 Lh{constructor(){this.uchar=" ",this.penState=new ta}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 Xp{constructor(e){this.chars=[],this.pos=0,this.currPenState=new ta,this.cueStartTime=null,this.logger=void 0;for(let t=0;t<Cl;t++)this.chars.push(new Lh);this.logger=e}equals(e){for(let t=0;t<Cl;t++)if(!this.chars[t].equals(e.chars[t]))return!1;return!0}copy(e){for(let t=0;t<Cl;t++)this.chars[t].copy(e.chars[t])}isEmpty(){let e=!0;for(let t=0;t<Cl;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>Cl&&(this.logger.log(3,"Too large cursor position "+this.pos),this.pos=Cl)}moveCursor(e){const t=this.pos+e;if(e>1)for(let r=this.pos+1;r<t+1;r++)this.chars[r].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=Mc(e);if(this.pos>=Cl){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<Cl;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 r=0;r<Cl;r++){const i=this.chars[r].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 F0{constructor(e){this.rows=[],this.currRow=xl-1,this.nrRollUpRows=null,this.lastOutputScreen=null,this.logger=void 0;for(let t=0;t<xl;t++)this.rows.push(new Xp(e));this.logger=e}reset(){for(let e=0;e<xl;e++)this.rows[e].clear();this.currRow=xl-1}equals(e){let t=!0;for(let r=0;r<xl;r++)if(!this.rows[r].equals(e.rows[r])){t=!1;break}return t}copy(e){for(let t=0;t<xl;t++)this.rows[t].copy(e.rows[t])}isEmpty(){let e=!0;for(let t=0;t<xl;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 = "+Vn(e));let t=e.row-1;if(this.nrRollUpRows&&t<this.nrRollUpRows-1&&(t=this.nrRollUpRows-1),this.nrRollUpRows&&this.currRow!==t){for(let h=0;h<xl;h++)this.rows[h].clear();const o=this.currRow+1-this.nrRollUpRows,A=this.lastOutputScreen;if(A){const h=A.rows[o].cueStartTime,y=this.logger.time;if(h!==null&&y!==null&&h<y)for(let g=0;g<this.nrRollUpRows;g++)this.rows[t-this.nrRollUpRows+g+1].copy(A.rows[o+g])}}this.currRow=t;const r=this.rows[this.currRow];if(e.indent!==null){const o=e.indent,A=Math.max(o-1,0);r.setCursor(e.indent),e.color=r.chars[A].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 = "+Vn(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 r="",i=-1;for(let o=0;o<xl;o++){const A=this.rows[o].getTextString();A&&(i=o+1,e?t.push("Row "+i+": '"+A+"'"):t.push(A.trim()))}return t.length>0&&(e?r="["+t.join(" | ")+"]":r=t.join(`
|
|
|
`)),r}getTextAndFormat(){return this.rows}}class Ii{constructor(e,t,r){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 F0(r),this.nonDisplayedMemory=new F0(r),this.lastOutputScreen=new F0(r),this.currRollUpRow=this.displayedMemory.rows[xl-1],this.writeScreen=this.displayedMemory,this.mode=null,this.cueStartTime=null,this.logger=r}reset(){this.mode=null,this.displayedMemory.reset(),this.nonDisplayedMemory.reset(),this.lastOutputScreen.reset(),this.outputFilter.reset(),this.currRollUpRow=this.displayedMemory.rows[xl-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 r=0;r<e.length;r++)this.writeScreen.insertChar(e[r]);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 r=Math.floor(e/2)-16,i=["white","green","blue","cyan","red","yellow","magenta"];t.foreground=i[r]}this.logger.log(2,"MIDROW: "+Vn(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 dc{constructor(e,t,r){this.channels=void 0,this.currentChannel=0,this.cmdHistory=Rf(),this.logger=void 0;const i=this.logger=new vp;this.channels=[null,new Ii(e,t,i),new Ii(e+1,r,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 r=0;r<t.length;r+=2){const i=t[r]&127,o=t[r+1]&127;let A=!1,h=null;if(i===0&&o===0)continue;this.logger.log(3,()=>"["+gs([t[r],t[r+1]])+"] -> ("+gs([i,o])+")");const y=this.cmdHistory;if(i>=16&&i<=31){if(kf(i,o,y)){Us(null,null,y),this.logger.log(3,()=>"Repeated command ("+gs([i,o])+") is dropped");continue}Us(i,o,this.cmdHistory),A=this.parseCmd(i,o),A||(A=this.parseMidrow(i,o)),A||(A=this.parsePAC(i,o)),A||(A=this.parseBackgroundAttributes(i,o))}else Us(null,null,y);if(!A&&(h=this.parseChars(i,o),h)){const F=this.currentChannel;F&&F>0?this.channels[F].insertChars(h):this.logger.log(2,"No channel found yet. TEXT-MODE?")}!A&&!h&&this.logger.log(2,()=>"Couldn't parse cleaned data "+gs([i,o])+" orig: "+gs([t[r],t[r+1]]))}}parseCmd(e,t){const r=(e===20||e===28||e===21||e===29)&&t>=32&&t<=47,i=(e===23||e===31)&&t>=33&&t<=35;if(!(r||i))return!1;const o=e===20||e===21||e===23?1:2,A=this.channels[o];return e===20||e===21||e===28||e===29?t===32?A.ccRCL():t===33?A.ccBS():t===34?A.ccAOF():t===35?A.ccAON():t===36?A.ccDER():t===37?A.ccRU(2):t===38?A.ccRU(3):t===39?A.ccRU(4):t===40?A.ccFON():t===41?A.ccRDC():t===42?A.ccTR():t===43?A.ccRTD():t===44?A.ccEDM():t===45?A.ccCR():t===46?A.ccENM():t===47&&A.ccEOC():A.ccTO(t-32),this.currentChannel=o,!0}parseMidrow(e,t){let r=0;if((e===17||e===25)&&t>=32&&t<=47){if(e===17?r=1:r=2,r!==this.currentChannel)return this.logger.log(0,"Mismatch channel in midrow parsing"),!1;const i=this.channels[r];return i?(i.ccMIDROW(t),this.logger.log(3,()=>"MIDROW ("+gs([e,t])+")"),!0):!1}return!1}parsePAC(e,t){let r;const i=(e>=17&&e<=23||e>=25&&e<=31)&&t>=64&&t<=127,o=(e===16||e===24)&&t>=64&&t<=95;if(!(i||o))return!1;const A=e<=23?1:2;t>=64&&t<=95?r=A===1?mp[e]:fc[e]:r=A===1?Qn[e]:Fh[e];const h=this.channels[A];return h?(h.setPAC(this.interpretPAC(r,t)),this.currentChannel=A,!0):!1}interpretPAC(e,t){let r;const i={color:null,italics:!1,indent:null,underline:!1,row:e};return t>95?r=t-96:r=t-64,i.underline=(r&1)===1,r<=13?i.color=["white","green","blue","cyan","red","yellow","magenta","white"][Math.floor(r/2)]:r<=15?(i.italics=!0,i.color="white"):i.indent=Math.floor((r-16)/2)*4,i}parseChars(e,t){let r,i=null,o=null;if(e>=25?(r=2,o=e-8):(r=1,o=e),o>=17&&o<=19){let A;o===17?A=t+80:o===18?A=t+112:A=t+144,this.logger.log(2,()=>"Special char '"+Mc(A)+"' in channel "+r),i=[A]}else e>=32&&e<=127&&(i=t===0?[e]:[e,t]);return i&&this.logger.log(3,()=>"Char codes = "+gs(i).join(",")),i}parseBackgroundAttributes(e,t){const r=(e===16||e===24)&&t>=32&&t<=47,i=(e===23||e===31)&&t>=45&&t<=47;if(!(r||i))return!1;let o;const A={};e===16||e===24?(o=Math.floor((t-32)/2),A.background=al[o],t%2===1&&(A.background=A.background+"_semi")):t===45?A.background="transparent":(A.foreground="black",t===47&&(A.underline=!0));const h=e<=23?1:2;return this.channels[h].setBkgData(A),!0}reset(){for(let e=0;e<Object.keys(this.channels).length;e++){const t=this.channels[e];t&&t.reset()}Us(null,null,this.cmdHistory)}cueSplitAtTime(e){for(let t=0;t<this.channels.length;t++){const r=this.channels[t];r&&r.cueSplitAtTime(e)}}}function Us(l,e,t){t.a=l,t.b=e}function kf(l,e,t){return t.a===l&&t.b===e}function Rf(){return{a:null,b:null}}var Qc=function(){if(Bs!=null&&Bs.VTTCue)return self.VTTCue;const l=["","lr","rl"],e=["start","middle","end","left","right"];function t(h,y){if(typeof y!="string"||!Array.isArray(h))return!1;const g=y.toLowerCase();return~h.indexOf(g)?g:!1}function r(h){return t(l,h)}function i(h){return t(e,h)}function o(h,...y){let g=1;for(;g<arguments.length;g++){const F=arguments[g];for(const N in F)h[N]=F[N]}return h}function A(h,y,g){const F=this,N={enumerable:!0};F.hasBeenReset=!1;let q="",Ae=!1,ue=h,Re=y,ke=g,it=null,ft="",_t=!0,zt="auto",ir="start",Nr=50,or="middle",Cr=50,br="middle";Object.defineProperty(F,"id",o({},N,{get:function(){return q},set:function(pr){q=""+pr}})),Object.defineProperty(F,"pauseOnExit",o({},N,{get:function(){return Ae},set:function(pr){Ae=!!pr}})),Object.defineProperty(F,"startTime",o({},N,{get:function(){return ue},set:function(pr){if(typeof pr!="number")throw new TypeError("Start time must be set to a number.");ue=pr,this.hasBeenReset=!0}})),Object.defineProperty(F,"endTime",o({},N,{get:function(){return Re},set:function(pr){if(typeof pr!="number")throw new TypeError("End time must be set to a number.");Re=pr,this.hasBeenReset=!0}})),Object.defineProperty(F,"text",o({},N,{get:function(){return ke},set:function(pr){ke=""+pr,this.hasBeenReset=!0}})),Object.defineProperty(F,"region",o({},N,{get:function(){return it},set:function(pr){it=pr,this.hasBeenReset=!0}})),Object.defineProperty(F,"vertical",o({},N,{get:function(){return ft},set:function(pr){const qr=r(pr);if(qr===!1)throw new SyntaxError("An invalid or illegal string was specified.");ft=qr,this.hasBeenReset=!0}})),Object.defineProperty(F,"snapToLines",o({},N,{get:function(){return _t},set:function(pr){_t=!!pr,this.hasBeenReset=!0}})),Object.defineProperty(F,"line",o({},N,{get:function(){return zt},set:function(pr){if(typeof pr!="number"&&pr!=="auto")throw new SyntaxError("An invalid number or illegal string was specified.");zt=pr,this.hasBeenReset=!0}})),Object.defineProperty(F,"lineAlign",o({},N,{get:function(){return ir},set:function(pr){const qr=i(pr);if(!qr)throw new SyntaxError("An invalid or illegal string was specified.");ir=qr,this.hasBeenReset=!0}})),Object.defineProperty(F,"position",o({},N,{get:function(){return Nr},set:function(pr){if(pr<0||pr>100)throw new Error("Position must be between 0 and 100.");Nr=pr,this.hasBeenReset=!0}})),Object.defineProperty(F,"positionAlign",o({},N,{get:function(){return or},set:function(pr){const qr=i(pr);if(!qr)throw new SyntaxError("An invalid or illegal string was specified.");or=qr,this.hasBeenReset=!0}})),Object.defineProperty(F,"size",o({},N,{get:function(){return Cr},set:function(pr){if(pr<0||pr>100)throw new Error("Size must be between 0 and 100.");Cr=pr,this.hasBeenReset=!0}})),Object.defineProperty(F,"align",o({},N,{get:function(){return br},set:function(pr){const qr=i(pr);if(!qr)throw new SyntaxError("An invalid or illegal string was specified.");br=qr,this.hasBeenReset=!0}})),F.displayState=void 0}return A.prototype.getCueAsHTML=function(){return self.WebVTT.convertCueToDOMTree(self,this.text)},A}();class Mu{decode(e,t){if(!e)return"";if(typeof e!="string")throw new Error("Error - expected string data.");return decodeURIComponent(encodeURIComponent(e))}}function Uf(l){function e(r,i,o,A){return(r|0)*3600+(i|0)*60+(o|0)+parseFloat(A||0)}const t=l.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 L0{constructor(){this.values=Object.create(null)}set(e,t){!this.get(e)&&t!==""&&(this.values[e]=t)}get(e,t,r){return r?this.has(e)?this.values[e]:t[r]:this.has(e)?this.values[e]:t}has(e){return e in this.values}alt(e,t,r){for(let i=0;i<r.length;++i)if(t===r[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 r=parseFloat(t);if(r>=0&&r<=100)return this.set(e,r),!0}return!1}}function Dh(l,e,t,r){const i=r?l.split(r):[l];for(const o in i){if(typeof i[o]!="string")continue;const A=i[o].split(t);if(A.length!==2)continue;const h=A[0],y=A[1];e(h,y)}}const pc=new Qc(0,0,""),Qu=pc.align==="middle"?"middle":"center";function Ko(l,e,t){const r=l;function i(){const h=Uf(l);if(h===null)throw new Error("Malformed timestamp: "+r);return l=l.replace(/^[^\sa-zA-Z-]+/,""),h}function o(h,y){const g=new L0;Dh(h,function(q,Ae){let ue;switch(q){case"region":for(let Re=t.length-1;Re>=0;Re--)if(t[Re].id===Ae){g.set(q,t[Re].region);break}break;case"vertical":g.alt(q,Ae,["rl","lr"]);break;case"line":ue=Ae.split(","),g.integer(q,ue[0]),g.percent(q,ue[0])&&g.set("snapToLines",!1),g.alt(q,ue[0],["auto"]),ue.length===2&&g.alt("lineAlign",ue[1],["start",Qu,"end"]);break;case"position":ue=Ae.split(","),g.percent(q,ue[0]),ue.length===2&&g.alt("positionAlign",ue[1],["start",Qu,"end","line-left","line-right","auto"]);break;case"size":g.percent(q,Ae);break;case"align":g.alt(q,Ae,["start",Qu,"end","left","right"]);break}},/:/,/\s/),y.region=g.get("region",null),y.vertical=g.get("vertical","");let F=g.get("line","auto");F==="auto"&&pc.line===-1&&(F=-1),y.line=F,y.lineAlign=g.get("lineAlign","start"),y.snapToLines=g.get("snapToLines",!0),y.size=g.get("size",100),y.align=g.get("align",Qu);let N=g.get("position","auto");N==="auto"&&pc.position===50&&(N=y.align==="start"||y.align==="left"?0:y.align==="end"||y.align==="right"?100:50),y.position=N}function A(){l=l.replace(/^\s+/,"")}if(A(),e.startTime=i(),A(),l.slice(0,3)!=="-->")throw new Error("Malformed time stamp (time stamps must be separated by '-->'): "+r);l=l.slice(3),A(),e.endTime=i(),A(),o(l,e)}function ho(l){return l.replace(/<br(?: \/)?>/gi,`
|
|
|
`)}class zo{constructor(){this.state="INITIAL",this.buffer="",this.decoder=new Mu,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 r(){let o=t.buffer,A=0;for(o=ho(o);A<o.length&&o[A]!=="\r"&&o[A]!==`
|
|
|
`;)++A;const h=o.slice(0,A);return o[A]==="\r"&&++A,o[A]===`
|
|
|
`&&++A,t.buffer=o.slice(A),h}function i(o){Dh(o,function(A,h){},/:/)}try{let o="";if(t.state==="INITIAL"){if(!/\r\n|\n/.test(t.buffer))return this;o=r();const h=o.match(/^()?WEBVTT([ \t].*)?$/);if(!(h!=null&&h[0]))throw new Error("Malformed WebVTT signature.");t.state="HEADER"}let A=!1;for(;t.buffer;){if(!/\r\n|\n/.test(t.buffer))return this;switch(A?A=!1:o=r(),t.state){case"HEADER":/:/.test(o)?i(o):o||(t.state="ID");continue;case"NOTE":o||(t.state="ID");continue;case"ID":if(/^NOTE($|[ \t])/.test(o)){t.state="NOTE";break}if(!o)continue;if(t.cue=new Qc(0,0,""),t.state="CUE",o.indexOf("-->")===-1){t.cue.id=o;continue}case"CUE":if(!t.cue){t.state="BADCUE";continue}try{Ko(o,t.cue,t.regionList)}catch(h){t.cue=null,t.state="BADCUE";continue}t.state="CUETEXT";continue;case"CUETEXT":{const h=o.indexOf("-->")!==-1;if(!o||h&&(A=!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+=o}continue;case"BADCUE":o||(t.state="ID")}}}catch(o){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 Go=/\r\n|\n\r|\n|\r/g,kh=function(e,t,r=0){return e.slice(r,r+t.length)===t},Rh=function(e){let t=parseInt(e.slice(-3));const r=parseInt(e.slice(-6,-4)),i=parseInt(e.slice(-9,-7)),o=e.length>9?parseInt(e.substring(0,e.indexOf(":"))):0;if(!Ie(t)||!Ie(r)||!Ie(i)||!Ie(o))throw Error(`Malformed X-TIMESTAMP-MAP: Local:${e}`);return t+=1e3*r,t+=60*1e3*i,t+=60*60*1e3*o,t};function eA(l,e,t){return S0(l.toString())+S0(e.toString())+S0(t)}const Md=function(e,t,r){let i=e[t],o=e[i.prevCC];if(!o||!o.new&&i.new){e.ccOffset=e.presentationOffset=i.start,i.new=!1;return}for(;(A=o)!=null&&A.new;){var A;e.ccOffset+=i.start-o.start,i.new=!1,i=o,o=e[i.prevCC]}e.presentationOffset=r};function Uh(l,e,t,r,i,o,A){const h=new zo,y=Pe(new Uint8Array(l)).trim().replace(Go,`
|
|
|
`).split(`
|
|
|
`),g=[],F=e?no(e.baseTime,e.timescale):0;let N="00:00.000",q=0,Ae=0,ue,Re=!0;h.oncue=function(ke){const it=t[r];let ft=t.ccOffset;const _t=(q-F)/9e4;if(it!=null&&it.new&&(Ae!==void 0?ft=t.ccOffset=it.start:Md(t,r,_t)),_t){if(!e){ue=new Error("Missing initPTS for VTT MPEGTS");return}ft=_t-t.presentationOffset}const zt=ke.endTime-ke.startTime,ir=va((ke.startTime+ft-Ae)*9e4,i*9e4)/9e4;ke.startTime=Math.max(ir,0),ke.endTime=Math.max(ir+zt,0);const Nr=ke.text.trim();ke.text=decodeURIComponent(encodeURIComponent(Nr)),ke.id||(ke.id=eA(ke.startTime,ke.endTime,Nr)),ke.endTime>0&&g.push(ke)},h.onparsingerror=function(ke){ue=ke},h.onflush=function(){if(ue){A(ue);return}o(g)},y.forEach(ke=>{if(Re)if(kh(ke,"X-TIMESTAMP-MAP=")){Re=!1,ke.slice(16).split(",").forEach(it=>{kh(it,"LOCAL:")?N=it.slice(6):kh(it,"MPEGTS:")&&(q=parseInt(it.slice(7)))});try{Ae=Rh(N)/1e3}catch(it){ue=it}return}else ke===""&&(Re=!1);h.parse(ke+`
|
|
|
`)}),h.flush()}const D0="stpp.ttml.im1t",Qd=/^(\d{2,}):(\d{2}):(\d{2}):(\d{2})\.?(\d+)?$/,Sl=/^(\d*(?:\.\d*)?)(h|m|s|ms|f|t)$/,Hu={left:"start",center:"center",right:"end",start:"start",end:"end"};function Hc(l,e,t,r){const i=_(new Uint8Array(l),["mdat"]);if(i.length===0){r(new Error("Could not parse IMSC1 mdat"));return}const o=i.map(h=>Pe(h)),A=PA(e.baseTime,1,e.timescale);try{o.forEach(h=>t(jc(h,A)))}catch(h){r(h)}}function jc(l,e){const i=new DOMParser().parseFromString(l,"text/xml").getElementsByTagName("tt")[0];if(!i)throw new Error("Invalid ttml");const o={frameRate:30,subFrameRate:1,frameRateMultiplier:0,tickRate:0},A=Object.keys(o).reduce((N,q)=>(N[q]=i.getAttribute(`ttp:${q}`)||o[q],N),{}),h=i.getAttribute("xml:space")!=="preserve",y=Pf(QA(i,"styling","style")),g=Pf(QA(i,"layout","region")),F=QA(i,"body","[begin]");return[].map.call(F,N=>{const q=Kc(N,h);if(!q||!N.hasAttribute("begin"))return null;const Ae=Xn(N.getAttribute("begin"),A),ue=Xn(N.getAttribute("dur"),A);let Re=Xn(N.getAttribute("end"),A);if(Ae===null)throw mu(N);if(Re===null){if(ue===null)throw mu(N);Re=Ae+ue}const ke=new Qc(Ae-e,Re-e,q);ke.id=eA(ke.startTime,ke.endTime,ke.text);const it=g[N.getAttribute("region")],ft=y[N.getAttribute("style")],_t=Of(it,ft,y),{textAlign:zt}=_t;if(zt){const ir=Hu[zt];ir&&(ke.lineAlign=ir),ke.align=zt}return w(ke,_t),ke}).filter(N=>N!==null)}function QA(l,e,t){const r=l.getElementsByTagName(e)[0];return r?[].slice.call(r.querySelectorAll(t)):[]}function Pf(l){return l.reduce((e,t)=>{const r=t.getAttribute("xml:id");return r&&(e[r]=t),e},{})}function Kc(l,e){return[].slice.call(l.childNodes).reduce((t,r,i)=>{var o;return r.nodeName==="br"&&i?t+`
|
|
|
`:(o=r.childNodes)!=null&&o.length?Kc(r,e):e?t+r.textContent.trim().replace(/\s+/g," "):t+r.textContent},"")}function Of(l,e,t){const r="http://www.w3.org/ns/ttml#styling";let i=null;const o=["displayAlign","textAlign","color","backgroundColor","fontSize","fontFamily"],A=l!=null&&l.hasAttribute("style")?l.getAttribute("style"):null;return A&&t.hasOwnProperty(A)&&(i=t[A]),o.reduce((h,y)=>{const g=zl(e,r,y)||zl(l,r,y)||zl(i,r,y);return g&&(h[y]=g),h},{})}function zl(l,e,t){return l&&l.hasAttributeNS(e,t)?l.getAttributeNS(e,t):null}function mu(l){return new Error(`Could not parse ttml timestamp ${l}`)}function Xn(l,e){if(!l)return null;let t=Uf(l);return t===null&&(Qd.test(l)?t=Ta(l,e):Sl.test(l)&&(t=Nf(l,e))),t}function Ta(l,e){const t=Qd.exec(l),r=(t[4]|0)+(t[5]|0)/e.subFrameRate;return(t[1]|0)*3600+(t[2]|0)*60+(t[3]|0)+r/e.frameRate}function Nf(l,e){const t=Sl.exec(l),r=Number(t[1]);switch(t[2]){case"h":return r*3600;case"m":return r*60;case"ms":return r*1e3;case"f":return r/e.frameRate;case"t":return r/e.tickRate}return r}class Gl{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,r){(this.startTime===null||this.startTime>e)&&(this.startTime=e),this.endTime=t,this.screen=r,this.timelineController.createCaptionsTrack(this.trackName)}reset(){this.cueRanges=[],this.startTime=null}}class zc{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=Mf(),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(I.MEDIA_ATTACHING,this.onMediaAttaching,this),e.on(I.MEDIA_DETACHING,this.onMediaDetaching,this),e.on(I.MANIFEST_LOADING,this.onManifestLoading,this),e.on(I.MANIFEST_LOADED,this.onManifestLoaded,this),e.on(I.SUBTITLE_TRACKS_UPDATED,this.onSubtitleTracksUpdated,this),e.on(I.FRAG_LOADING,this.onFragLoading,this),e.on(I.FRAG_LOADED,this.onFragLoaded,this),e.on(I.FRAG_PARSING_USERDATA,this.onFragParsingUserdata,this),e.on(I.FRAG_DECRYPTED,this.onFragDecrypted,this),e.on(I.INIT_PTS_FOUND,this.onInitPtsFound,this),e.on(I.SUBTITLE_TRACKS_CLEARED,this.onSubtitleTracksCleared,this),e.on(I.BUFFER_FLUSHING,this.onBufferFlushing,this)}destroy(){const{hls:e}=this;e.off(I.MEDIA_ATTACHING,this.onMediaAttaching,this),e.off(I.MEDIA_DETACHING,this.onMediaDetaching,this),e.off(I.MANIFEST_LOADING,this.onManifestLoading,this),e.off(I.MANIFEST_LOADED,this.onManifestLoaded,this),e.off(I.SUBTITLE_TRACKS_UPDATED,this.onSubtitleTracksUpdated,this),e.off(I.FRAG_LOADING,this.onFragLoading,this),e.off(I.FRAG_LOADED,this.onFragLoaded,this),e.off(I.FRAG_PARSING_USERDATA,this.onFragParsingUserdata,this),e.off(I.FRAG_DECRYPTED,this.onFragDecrypted,this),e.off(I.INIT_PTS_FOUND,this.onInitPtsFound,this),e.off(I.SUBTITLE_TRACKS_CLEARED,this.onSubtitleTracksCleared,this),e.off(I.BUFFER_FLUSHING,this.onBufferFlushing,this),this.hls=this.config=this.media=null,this.cea608Parser1=this.cea608Parser2=void 0}initCea608Parsers(){const e=new Gl(this,"textTrack1"),t=new Gl(this,"textTrack2"),r=new Gl(this,"textTrack3"),i=new Gl(this,"textTrack4");this.cea608Parser1=new dc(1,e,t),this.cea608Parser2=new dc(3,r,i)}addCues(e,t,r,i,o){let A=!1;for(let h=o.length;h--;){const y=o[h],g=_A(y[0],y[1],t,r);if(g>=0&&(y[0]=Math.min(y[0],t),y[1]=Math.max(y[1],r),A=!0,g/(r-t)>.5))return}if(A||o.push([t,r]),this.config.renderTextTracksNatively){const h=this.captionsTracks[e];this.Cues.newCue(h,t,r,i)}else{const h=this.Cues.newCue(null,t,r,i);this.hls.trigger(I.CUES_PARSED,{type:"captions",cues:h,track:e})}}onInitPtsFound(e,{frag:t,id:r,initPTS:i,timescale:o,trackId:A}){const{unparsedVttFrags:h}=this;r===R.MAIN&&(this.initPTS[t.cc]={baseTime:i,timescale:o,trackId:A}),h.length&&(this.unparsedVttFrags=[],h.forEach(y=>{this.initPTS[y.frag.cc]?this.onFragLoaded(I.FRAG_LOADED,y):this.hls.trigger(I.SUBTITLE_FRAG_PROCESSED,{success:!1,frag:y.frag,error:new Error("Subtitle discontinuity domain does not match main")})}))}getExistingTrack(e,t){const{media:r}=this;if(r)for(let i=0;i<r.textTracks.length;i++){const o=r.textTracks[i];if(vu(o,{name:e,lang:t,characteristics:"transcribes-spoken-dialog,describes-music-and-sound"}))return o}return null}createCaptionsTrack(e){this.config.renderTextTracksNatively?this.createNativeTrack(e):this.createNonNativeTrack(e)}createNativeTrack(e){if(this.captionsTracks[e])return;const{captionsProperties:t,captionsTracks:r,media:i}=this,{label:o,languageCode:A}=t[e],h=this.getExistingTrack(o,A);if(h)r[e]=h,Oc(r[e]),Kl(r[e],i);else{const y=this.createTextTrack("captions",o,A);y&&(y[e]=!0,r[e]=y)}}createNonNativeTrack(e){if(this.nonNativeCaptionsTracks[e])return;const t=this.captionsProperties[e];if(!t)return;const r=t.label,i={_id:e,label:r,kind:"captions",default:t.media?!!t.media.default:!1,closedCaptions:t.media};this.nonNativeCaptionsTracks[e]=i,this.hls.trigger(I.NON_NATIVE_TEXT_TRACKS_FOUND,{tracks:[i]})}createTextTrack(e,t,r){const i=this.media;if(i)return i.addTextTrack(e,t,r)}onMediaAttaching(e,t){this.media=t.media,t.mediaSource||this._cleanTracks()}onMediaDetaching(e,t){const r=!!t.transferMedia;if(this.media=null,r)return;const{captionsTracks:i}=this;Object.keys(i).forEach(o=>{Oc(i[o]),delete i[o]}),this.nonNativeCaptionsTracks={}}onManifestLoading(){this.lastCc=-1,this.lastSn=-1,this.lastPartIndex=-1,this.prevCC=-1,this.vttCCs=Mf(),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 r=0;r<t.length;r++)Oc(t[r])}onSubtitleTracksUpdated(e,t){const r=t.subtitleTracks||[],i=r.some(o=>o.textCodec===D0);if(this.config.enableWebVTT||i&&this.config.enableIMSC1){if(g0(this.tracks,r)){this.tracks=r;return}if(this.textTracks=[],this.tracks=r,this.config.renderTextTracksNatively){const A=this.media,h=A?x0(A.textTracks):null;if(this.tracks.forEach((y,g)=>{let F;if(h){let N=null;for(let q=0;q<h.length;q++)if(h[q]&&vu(h[q],y)){N=h[q],h[q]=null;break}N&&(F=N)}if(F)Oc(F);else{const N=Pi(y);F=this.createTextTrack(N,y.name,y.lang),F&&(F.mode="disabled")}F&&this.textTracks.push(F)}),h!=null&&h.length){const y=h.filter(g=>g!==null).map(g=>g.label);y.length&&this.hls.logger.warn(`Media element contains unused subtitle tracks: ${y.join(", ")}. Replace media element for each source to clear TextTracks and captions menu.`)}}else if(this.tracks.length){const A=this.tracks.map(h=>({label:h.name,kind:h.type.toLowerCase(),default:h.default,subtitleTrack:h}));this.hls.trigger(I.NON_NATIVE_TEXT_TRACKS_FOUND,{tracks:A})}}}onManifestLoaded(e,t){this.config.enableCEA708Captions&&t.captions&&t.captions.forEach(r=>{const i=/(?:CC|SERVICE)([1-4])/.exec(r.instreamId);if(!i)return;const o=`textTrack${i[1]}`,A=this.captionsProperties[o];A&&(A.label=r.name,r.lang&&(A.languageCode=r.lang),A.media=r)})}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===R.MAIN){var r,i;const{cea608Parser1:o,cea608Parser2:A,lastSn:h}=this,{cc:y,sn:g}=t.frag,F=(r=(i=t.part)==null?void 0:i.index)!=null?r:-1;o&&A&&(g!==h+1||g===h&&F!==this.lastPartIndex+1||y!==this.lastCc)&&(o.reset(),A.reset()),this.lastCc=y,this.lastSn=g,this.lastPartIndex=F}}onFragLoaded(e,t){const{frag:r,payload:i}=t;if(r.type===R.SUBTITLE)if(i.byteLength){const o=r.decryptdata,A="stats"in t;if(o==null||!o.encrypted||A){const h=this.tracks[r.level],y=this.vttCCs;y[r.cc]||(y[r.cc]={start:r.start,prevCC:this.prevCC,new:!0},this.prevCC=r.cc),h&&h.textCodec===D0?this._parseIMSC1(r,i):this._parseVTTs(t)}}else this.hls.trigger(I.SUBTITLE_FRAG_PROCESSED,{success:!1,frag:r,error:new Error("Empty subtitle payload")})}_parseIMSC1(e,t){const r=this.hls;Hc(t,this.initPTS[e.cc],i=>{this._appendCues(i,e.level),r.trigger(I.SUBTITLE_FRAG_PROCESSED,{success:!0,frag:e})},i=>{r.logger.log(`Failed to parse IMSC1: ${i}`),r.trigger(I.SUBTITLE_FRAG_PROCESSED,{success:!1,frag:e,error:i})})}_parseVTTs(e){var t;const{frag:r,payload:i}=e,{initPTS:o,unparsedVttFrags:A}=this,h=o.length-1;if(!o[r.cc]&&h===-1){A.push(e);return}const y=this.hls,g=(t=r.initSegment)!=null&&t.data?cr(r.initSegment.data,new Uint8Array(i)).buffer:i;Uh(g,this.initPTS[r.cc],this.vttCCs,r.cc,r.start,F=>{this._appendCues(F,r.level),y.trigger(I.SUBTITLE_FRAG_PROCESSED,{success:!0,frag:r})},F=>{const N=F.message==="Missing initPTS for VTT MPEGTS";N?A.push(e):this._fallbackToIMSC1(r,i),y.logger.log(`Failed to parse VTT cue: ${F}`),!(N&&h>r.cc)&&y.trigger(I.SUBTITLE_FRAG_PROCESSED,{success:!1,frag:r,error:F})})}_fallbackToIMSC1(e,t){const r=this.tracks[e.level];r.textCodec||Hc(t,this.initPTS[e.cc],()=>{r.textCodec=D0,this._parseIMSC1(e,t)},()=>{r.textCodec="wvtt"})}_appendCues(e,t){const r=this.hls;if(this.config.renderTextTracksNatively){const i=this.textTracks[t];if(!i||i.mode==="disabled")return;e.forEach(o=>Tf(i,o))}else{const i=this.tracks[t];if(!i)return;const o=i.default?"default":"subtitles"+t;r.trigger(I.CUES_PARSED,{type:"subtitles",cues:e,track:o})}}onFragDecrypted(e,t){const{frag:r}=t;r.type===R.SUBTITLE&&this.onFragLoaded(I.FRAG_LOADED,t)}onSubtitleTracksCleared(){this.tracks=[],this.captionsTracks={}}onFragParsingUserdata(e,t){if(!this.enabled||!this.config.enableCEA708Captions)return;const{frag:r,samples:i}=t;if(!(r.type===R.MAIN&&this.closedCaptionsForLevel(r)==="NONE"))for(let o=0;o<i.length;o++){const A=i[o].bytes;if(A){this.cea608Parser1||this.initCea608Parsers();const h=this.extractCea608Data(A);this.cea608Parser1.addData(i[o].pts,h[0]),this.cea608Parser2.addData(i[o].pts,h[1])}}}onBufferFlushing(e,{startOffset:t,endOffset:r,endOffsetSubtitles:i,type:o}){const{media:A}=this;if(!(!A||A.currentTime<r)){if(!o||o==="video"){const{captionsTracks:h}=this;Object.keys(h).forEach(y=>Eh(h[y],t,r))}if(this.config.renderTextTracksNatively&&t===0&&i!==void 0){const{textTracks:h}=this;Object.keys(h).forEach(y=>Eh(h[y],t,i))}}}extractCea608Data(e){const t=[[],[]],r=e[0]&31;let i=2;for(let o=0;o<r;o++){const A=e[i++],h=127&e[i++],y=127&e[i++];if(h===0&&y===0)continue;if((4&A)!==0){const F=3&A;(F===0||F===1)&&(t[F].push(h),t[F].push(y))}}return t}}function Pi(l){return l.characteristics&&/transcribes-spoken-dialog/gi.test(l.characteristics)&&/describes-music-and-sound/gi.test(l.characteristics)?"captions":"subtitles"}function vu(l,e){return!!l&&l.kind===Pi(e)&&m0(e,l)}function _A(l,e,t,r){return Math.min(e,r)-Math.max(l,t)}function Mf(){return{ccOffset:0,presentationOffset:0,0:{start:0,prevCC:-1,new:!0}}}const Vl=/\s/,yp={newCue(l,e,t,r){const i=[];let o,A,h,y,g;const F=self.VTTCue||self.TextTrackCue;for(let q=0;q<r.rows.length;q++)if(o=r.rows[q],h=!0,y=0,g="",!o.isEmpty()){var N;for(let Re=0;Re<o.chars.length;Re++)Vl.test(o.chars[Re].uchar)&&h?y++:(g+=o.chars[Re].uchar,h=!1);o.cueStartTime=e,e===t&&(t+=1e-4),y>=16?y--:y++;const Ae=ho(g.trim()),ue=eA(e,t,Ae);l!=null&&(N=l.cues)!=null&&N.getCueById(ue)||(A=new F(e,t,Ae),A.id=ue,A.line=q+1,A.align="left",A.position=10+Math.min(80,Math.floor(y*8/32)*10),i.push(A))}return l&&i.length&&(i.sort((q,Ae)=>q.line==="auto"||Ae.line==="auto"?0:q.line>8&&Ae.line>8?Ae.line-q.line:q.line-Ae.line),i.forEach(q=>Tf(l,q))),i}};function _p(){if(self.fetch&&self.AbortController&&self.ReadableStream&&self.Request)try{return new self.ReadableStream({}),!0}catch(l){}return!1}const wp=/(\d+)-(\d+)\/(\d+)/;class Fa{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||S,this.controller=new self.AbortController,this.stats=new j}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,r){const i=this.stats;if(i.loading.start)throw new Error("Loader can only be used once.");i.loading.start=self.performance.now();const o=E(e,this.controller.signal),A=e.responseType==="arraybuffer",h=A?"byteLength":"length",{maxTimeToFirstByteMs:y,maxLoadTimeMs:g}=t.loadPolicy;this.context=e,this.config=t,this.callbacks=r,this.request=this.fetchSetup(e,o),self.clearTimeout(this.requestTimeout),t.timeout=y&&Ie(y)?y:g,this.requestTimeout=self.setTimeout(()=>{this.callbacks&&(this.abortInternal(),this.callbacks.onTimeout(i,e,this.response))},t.timeout),(sc(this.request)?this.request.then(self.fetch):self.fetch(this.request)).then(N=>{var q;this.response=this.loader=N;const Ae=Math.max(self.performance.now(),i.loading.start);if(self.clearTimeout(this.requestTimeout),t.timeout=g,this.requestTimeout=self.setTimeout(()=>{this.callbacks&&(this.abortInternal(),this.callbacks.onTimeout(i,e,this.response))},g-(Ae-i.loading.start)),!N.ok){const{status:Re,statusText:ke}=N;throw new te(ke||"fetch, bad network response",Re,N)}i.loading.first=Ae,i.total=T(N.headers)||i.total;const ue=(q=this.callbacks)==null?void 0:q.onProgress;return ue&&Ie(t.highWaterMark)?this.loadProgressively(N,i,e,t.highWaterMark,ue):A?N.arrayBuffer():e.responseType==="json"?N.json():N.text()}).then(N=>{var q,Ae;const ue=this.response;if(!ue)throw new Error("loader destroyed");self.clearTimeout(this.requestTimeout),i.loading.end=Math.max(self.performance.now(),i.loading.first);const Re=N[h];Re&&(i.loaded=i.total=Re);const ke={url:ue.url,data:N,code:ue.status},it=(q=this.callbacks)==null?void 0:q.onProgress;it&&!Ie(t.highWaterMark)&&it(i,e,N,ue),(Ae=this.callbacks)==null||Ae.onSuccess(ke,i,e,ue)}).catch(N=>{var q;if(self.clearTimeout(this.requestTimeout),i.aborted)return;const Ae=N&&N.code||0,ue=N?N.message:null;(q=this.callbacks)==null||q.onError({code:Ae,text:ue},e,N?N.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,r,i=0,o){const A=new fa,h=e.body.getReader(),y=()=>h.read().then(g=>{if(g.done)return A.dataLength&&o(t,r,A.flush().buffer,e),Promise.resolve(new ArrayBuffer(0));const F=g.value,N=F.length;return t.loaded+=N,N<i||A.dataLength?(A.push(F),A.dataLength>=i&&o(t,r,A.flush().buffer,e)):o(t,r,F.buffer,e),y()}).catch(()=>Promise.reject());return y()}}function E(l,e){const t={method:"GET",mode:"cors",credentials:"same-origin",signal:e,headers:new self.Headers(w({},l.headers))};return l.rangeEnd&&t.headers.set("Range","bytes="+l.rangeStart+"-"+String(l.rangeEnd-1)),t}function p(l){const e=wp.exec(l);if(e)return parseInt(e[2])-parseInt(e[1])+1}function T(l){const e=l.get("Content-Range");if(e){const r=p(e);if(Ie(r))return r}const t=l.get("Content-Length");if(t)return parseInt(t)}function S(l,e){return new self.Request(l.url,e)}class te extends Error{constructor(e,t,r){super(e),this.code=void 0,this.details=void 0,this.code=t,this.details=r}}const Ce=/^age:\s*[\d.]+\s*$/im;class $e{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 j,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,r){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=r,this.loadInternal()}loadInternal(){const{config:e,context:t}=this;if(!e||!t)return;const r=this.loader=new self.XMLHttpRequest,i=this.stats;i.loading.first=0,i.loaded=0,i.aborted=!1;const o=this.xhrSetup;o?Promise.resolve().then(()=>{if(!(this.loader!==r||this.stats.aborted))return o(r,t.url)}).catch(A=>{if(!(this.loader!==r||this.stats.aborted))return r.open("GET",t.url,!0),o(r,t.url)}).then(()=>{this.loader!==r||this.stats.aborted||this.openAndSendXhr(r,t,e)}).catch(A=>{var h;(h=this.callbacks)==null||h.onError({code:r.status,text:A.message},t,r,i)}):this.openAndSendXhr(r,t,e)}openAndSendXhr(e,t,r){e.readyState||e.open("GET",t.url,!0);const i=t.headers,{maxTimeToFirstByteMs:o,maxLoadTimeMs:A}=r.loadPolicy;if(i)for(const h in i)e.setRequestHeader(h,i[h]);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),r.timeout=o&&Ie(o)?o:A,this.requestTimeout=self.setTimeout(this.loadtimeout.bind(this),r.timeout),e.send()}readystatechange(){const{context:e,loader:t,stats:r}=this;if(!e||!t)return;const i=t.readyState,o=this.config;if(!r.aborted&&i>=2&&(r.loading.first===0&&(r.loading.first=Math.max(self.performance.now(),r.loading.start),o.timeout!==o.loadPolicy.maxLoadTimeMs&&(self.clearTimeout(this.requestTimeout),o.timeout=o.loadPolicy.maxLoadTimeMs,this.requestTimeout=self.setTimeout(this.loadtimeout.bind(this),o.loadPolicy.maxLoadTimeMs-(r.loading.first-r.loading.start)))),i===4)){self.clearTimeout(this.requestTimeout),t.onreadystatechange=null,t.onprogress=null;const g=t.status,F=t.responseType==="text"?t.responseText:null;if(g>=200&&g<300){const ue=F!=null?F:t.response;if(ue!=null){var A,h;r.loading.end=Math.max(self.performance.now(),r.loading.first);const Re=t.responseType==="arraybuffer"?ue.byteLength:ue.length;r.loaded=r.total=Re,r.bwEstimate=r.total*8e3/(r.loading.end-r.loading.first);const ke=(A=this.callbacks)==null?void 0:A.onProgress;ke&&ke(r,e,ue,t);const it={url:t.responseURL,data:ue,code:g};(h=this.callbacks)==null||h.onSuccess(it,r,e,t);return}}const N=o.loadPolicy.errorRetry,q=r.retry,Ae={url:e.url,data:void 0,code:g};if(WA(N,q,!1,Ae))this.retry(N);else{var y;Qe.error(`${g} while loading ${e.url}`),(y=this.callbacks)==null||y.onError({code:g,text:t.statusText},e,t,r)}}}loadtimeout(){if(!this.config)return;const e=this.config.loadPolicy.timeoutRetry,t=this.stats.retry;if(WA(e,t,!0))this.retry(e);else{var r;Qe.warn(`timeout while loading ${(r=this.context)==null?void 0:r.url}`);const i=this.callbacks;i&&(this.abortInternal(),i.onTimeout(this.stats,this.context,this.loader))}}retry(e){const{context:t,stats:r}=this;this.retryDelay=Ws(e,r.retry),r.retry++,Qe.warn(`${status?"HTTP Status "+status:"Timeout"} while loading ${t==null?void 0:t.url}, retrying ${r.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&&Ce.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 yt={maxTimeToFirstByteMs:8e3,maxLoadTimeMs:2e4,timeoutRetry:null,errorRetry:null},vt=B(B({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:$e,fLoader:void 0,pLoader:void 0,xhrSetup:void 0,licenseXhrSetup:void 0,licenseResponseCallback:void 0,abrController:oo,bufferController:hf,capLevelController:Pc,errorController:Ka,fpsController:E0,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:gl,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:yt},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},er()),{},{subtitleStreamController:Nd,subtitleTrackController:gp,timelineController:zc,audioStreamController:il,audioTrackController:cf,emeController:Ys,cmcdController:If,contentSteeringController:kd,interstitialsController:MA});function er(){return{cueHandler:yp,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 lr(l,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 r=mr(l),i=["manifest","level","frag"],o=["TimeOut","MaxRetry","RetryDelay","MaxRetryTimeout"];return i.forEach(A=>{const h=`${A==="level"?"playlist":A}LoadPolicy`,y=e[h]===void 0,g=[];o.forEach(F=>{const N=`${A}Loading${F}`,q=e[N];if(q!==void 0&&y){g.push(N);const Ae=r[h].default;switch(e[h]={default:Ae},F){case"TimeOut":Ae.maxLoadTimeMs=q,Ae.maxTimeToFirstByteMs=q;break;case"MaxRetry":Ae.errorRetry.maxNumRetry=q,Ae.timeoutRetry.maxNumRetry=q;break;case"RetryDelay":Ae.errorRetry.retryDelayMs=q,Ae.timeoutRetry.retryDelayMs=q;break;case"MaxRetryTimeout":Ae.errorRetry.maxRetryDelayMs=q,Ae.timeoutRetry.maxRetryDelayMs=q;break}}}),g.length&&t.warn(`hls.js config: "${g.join('", "')}" setting(s) are deprecated, use "${h}": ${Vn(e[h])}`)}),B(B({},r),e)}function mr(l){return l&&typeof l=="object"?Array.isArray(l)?l.map(mr):Object.keys(l).reduce((e,t)=>(e[t]=mr(l[t]),e),{}):l}function Gr(l,e){const t=l.loader;t!==Fa&&t!==$e?(e.log("[config]: Custom loader detected, cannot enable progressive streaming"),l.progressive=!1):_p()&&(l.loader=Fa,l.progressive=!0,l.enableSoftwareAES=!0,e.log("[config]: Progressive streaming enabled, using FetchLoader"))}const Pn=2,pn=.1,Ln=.05,Fi=100;class Wn extends hA{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 r;(r=this.media)!=null&&r.seeking||(this.waiting=self.performance.now(),this.tick())},this.onMediaEnded=()=>{if(this.hls){var r;this.ended=((r=this.media)==null?void 0:r.currentTime)||1,this.hls.trigger(I.MEDIA_ENDED,{stalled:!1})}},this.hls=e,this.fragmentTracker=t,this.registerListeners()}registerListeners(){const{hls:e}=this;e&&(e.on(I.MEDIA_ATTACHED,this.onMediaAttached,this),e.on(I.MEDIA_DETACHING,this.onMediaDetaching,this),e.on(I.BUFFER_APPENDED,this.onBufferAppended,this))}unregisterListeners(){const{hls:e}=this;e&&(e.off(I.MEDIA_ATTACHED,this.onMediaAttached,this),e.off(I.MEDIA_DETACHING,this.onMediaDetaching,this),e.off(I.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(Fi),this.mediaSource=t.mediaSource;const r=this.media=t.media;Qa(r,"playing",this.onMediaPlaying),Qa(r,"waiting",this.onMediaWaiting),Qa(r,"ended",this.onMediaEnded)}onMediaDetaching(e,t){this.clearInterval();const{media:r}=this;r&&(to(r,"playing",this.onMediaPlaying),to(r,"waiting",this.onMediaWaiting),to(r,"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 r,i;const o=(r=this.hls)==null?void 0:r.config;if(!o)return;const A=this.media;if(!A)return;const{seeking:h}=A,y=this.seeking&&!h,g=!this.seeking&&h,F=A.paused&&!h||A.ended||A.playbackRate===0;if(this.seeking=h,e!==t){t&&(this.ended=0),this.moved=!0,h||(this.nudgeRetry=0,o.nudgeOnVideoHole&&!F&&e>t&&this.nudgeOnVideoHole(e,t)),this.waiting===0&&this.stallResolved(e);return}if(g||y){y&&this.stallResolved(e);return}if(F){this.nudgeRetry=0,this.stallResolved(e),!this.ended&&A.ended&&this.hls&&(this.ended=e||1,this.hls.trigger(I.MEDIA_ENDED,{stalled:!1}));return}if(!oi.getBuffered(A).length){this.nudgeRetry=0;return}const N=oi.bufferInfo(A,e,0),q=N.nextStart||0,Ae=this.fragmentTracker;if(h&&Ae&&this.hls){const Nr=zn(this.hls.inFlightFragments,e),or=N.len>Pn,Cr=!q||Nr||q-e>Pn&&!Ae.getPartialFragment(e);if(or||Cr)return;this.moved=!1}const ue=(i=this.hls)==null?void 0:i.latestLevelDetails;if(!this.moved&&this.stalled!==null&&Ae){if(!(N.len>0)&&!q)return;const or=Math.max(q,N.start||0)-e,br=!!(ue!=null&&ue.live)?ue.targetduration*2:Pn,pr=Li(e,Ae);if(or>0&&(or<=br||pr)){A.paused||this._trySkipBufferHole(pr);return}}const Re=o.detectStallWithCurrentTimeMs,ke=self.performance.now(),it=this.waiting;let ft=this.stalled;if(ft===null)if(it>0&&ke-it<Re)ft=this.stalled=it;else{this.stalled=ke;return}const _t=ke-ft;if(!h&&(_t>=Re||it)&&this.hls){var zt;if(((zt=this.mediaSource)==null?void 0:zt.readyState)==="ended"&&!(ue!=null&&ue.live)&&Math.abs(e-((ue==null?void 0:ue.edge)||0))<1){if(this.ended)return;this.ended=e||1,this.hls.trigger(I.MEDIA_ENDED,{stalled:!0});return}if(this._reportStall(N),!this.media||!this.hls)return}const ir=oi.bufferInfo(A,e,o.maxBufferHole);this._tryFixBufferStall(ir,_t,e)}stallResolved(e){const t=this.stalled;if(t&&this.hls&&(this.stalled=null,this.stallReported)){const r=self.performance.now()-t;this.log(`playback not stuck anymore @${e}, after ${Math.round(r)}ms`),this.stallReported=!1,this.waiting=0,this.hls.trigger(I.STALL_RESOLVED,{})}}nudgeOnVideoHole(e,t){var r;const i=this.buffered.video;if(this.hls&&this.media&&this.fragmentTracker&&(r=this.buffered.audio)!=null&&r.length&&i&&i.length>1&&e>i.end(0)){const o=oi.bufferedInfo(oi.timeRangesToArray(this.buffered.audio),e,0);if(o.len>1&&t>=o.start){const A=oi.timeRangesToArray(i),h=oi.bufferedInfo(A,t,0).bufferedIndex;if(h>-1&&h<A.length-1){const y=oi.bufferedInfo(A,e,0).bufferedIndex,g=A[h].end,F=A[h+1].start;if((y===-1||y>h)&&F-g<1&&e-g<2){const N=new Error(`nudging playhead to flush pipeline after video hole. currentTime: ${e} hole: ${g} -> ${F} buffered index: ${y}`);this.warn(N.message),this.media.currentTime+=1e-6;let q=Li(e,this.fragmentTracker);q&&"fragment"in q?q=q.fragment:q||(q=void 0);const Ae=oi.bufferInfo(this.media,e,0);this.hls.trigger(I.ERROR,{type:Me.MEDIA_ERROR,details:de.BUFFER_SEEK_OVER_HOLE,fatal:!1,error:N,reason:N.message,frag:q,buffer:Ae.len,bufferInfo:Ae})}}}}}_tryFixBufferStall(e,t,r){var i,o;const{fragmentTracker:A,media:h}=this,y=(i=this.hls)==null?void 0:i.config;if(!h||!A||!y)return;const g=(o=this.hls)==null?void 0:o.latestLevelDetails,F=Li(r,A);if((F||g!=null&&g.live&&r<g.fragmentStart)&&(this._trySkipBufferHole(F)||!this.media))return;const N=e.buffered,q=this.adjacentTraversal(e,r);(N&&N.length>1&&e.len>y.maxBufferHole||e.nextStart&&(e.nextStart-r<y.maxBufferHole||q))&&(t>y.highBufferWatchdogPeriod*1e3||this.waiting)&&(this.warn("Trying to nudge playhead over buffer-hole"),this._tryNudgeBuffer(e))}adjacentTraversal(e,t){const r=this.fragmentTracker,i=e.nextStart;if(r&&i){const o=r.getFragAtPos(t,R.MAIN),A=r.getFragAtPos(i,R.MAIN);if(o&&A)return A.sn-o.sn<2}return!1}_reportStall(e){const{hls:t,media:r,stallReported:i,stalled:o}=this;if(!i&&o!==null&&r&&t){this.stallReported=!0;const A=new Error(`Playback stalling at @${r.currentTime} due to low buffer (${Vn(e)})`);this.warn(A.message),t.trigger(I.ERROR,{type:Me.MEDIA_ERROR,details:de.BUFFER_STALLED_ERROR,fatal:!1,error:A,buffer:e.len,bufferInfo:e,stalled:{start:o}})}}_trySkipBufferHole(e){var t;const{fragmentTracker:r,media:i}=this,o=(t=this.hls)==null?void 0:t.config;if(!i||!r||!o)return 0;const A=i.currentTime,h=oi.bufferInfo(i,A,0),y=A<h.start?h.start:h.nextStart;if(y&&this.hls){const F=h.len<=o.maxBufferHole,N=h.len>0&&h.len<1&&i.readyState<3,q=y-A;if(q>0&&(F||N)){if(q>o.maxBufferHole){let ue=!1;if(A===0){const Re=r.getAppendedFrag(0,R.MAIN);Re&&y<Re.end&&(ue=!0)}if(!ue&&e){var g;if(!((g=this.hls.loadLevelObj)!=null&&g.details)||zn(this.hls.inFlightFragments,y))return 0;let ke=!1,it=e.end;for(;it<y;){const ft=Li(it,r);if(ft)it+=ft.duration;else{ke=!0;break}}if(ke)return 0}}const Ae=Math.max(y+Ln,A+pn);if(this.warn(`skipping hole, adjusting currentTime from ${A} to ${Ae}`),this.moved=!0,i.currentTime=Ae,!(e!=null&&e.gap)){const ue=new Error(`fragment loaded with buffer holes, seeking from ${A} to ${Ae}`),Re={type:Me.MEDIA_ERROR,details:de.BUFFER_SEEK_OVER_HOLE,fatal:!1,error:ue,reason:ue.message,buffer:h.len,bufferInfo:h};e&&("fragment"in e?Re.part=e:Re.frag=e),this.hls.trigger(I.ERROR,Re)}return Ae}}return 0}_tryNudgeBuffer(e){const{hls:t,media:r,nudgeRetry:i}=this,o=t==null?void 0:t.config;if(!r||!o)return 0;const A=r.currentTime;if(this.nudgeRetry++,i<o.nudgeMaxRetry){const h=A+(i+1)*o.nudgeOffset,y=new Error(`Nudging 'currentTime' from ${A} to ${h}`);this.warn(y.message),r.currentTime=h,t.trigger(I.ERROR,{type:Me.MEDIA_ERROR,details:de.BUFFER_NUDGE_ON_STALL,error:y,fatal:!1,buffer:e.len,bufferInfo:e})}else{const h=new Error(`Playhead still not moving while enough data buffered @${A} after ${o.nudgeMaxRetry} nudges`);this.error(h.message),t.trigger(I.ERROR,{type:Me.MEDIA_ERROR,details:de.BUFFER_STALLED_ERROR,error:h,fatal:!0,buffer:e.len,bufferInfo:e})}}}function zn(l,e){const t=_i(l.main);if(t&&t.start<=e)return t;const r=_i(l.audio);return r&&r.start<=e?r:null}function _i(l){if(!l)return null;switch(l.state){case Zr.IDLE:case Zr.STOPPED:case Zr.ENDED:case Zr.ERROR:return null}return l.frag}function Li(l,e){return e.getAppendedFrag(l,R.MAIN)||e.getPartialFragment(l)}const di=.25;function Rn(){if(typeof self!="undefined")return self.VTTCue||self.TextTrackCue}function Zi(l,e,t,r,i){let o=new l(e,t,"");try{o.value=r,i&&(o.type=i)}catch(A){o=new l(e,t,Vn(i?B({type:i},r):r))}return o}const Ni=(()=>{const l=Rn();try{l&&new l(0,Number.POSITIVE_INFINITY,"")}catch(e){return Number.MAX_VALUE}return Number.POSITIVE_INFINITY})();class Bi{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(I.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(I.MEDIA_ATTACHING,this.onMediaAttaching,this),e.on(I.MEDIA_ATTACHED,this.onMediaAttached,this),e.on(I.MEDIA_DETACHING,this.onMediaDetaching,this),e.on(I.MANIFEST_LOADING,this.onManifestLoading,this),e.on(I.FRAG_PARSING_METADATA,this.onFragParsingMetadata,this),e.on(I.BUFFER_FLUSHING,this.onBufferFlushing,this),e.on(I.LEVEL_UPDATED,this.onLevelUpdated,this),e.on(I.LEVEL_PTS_UPDATED,this.onLevelPtsUpdated,this))}_unregisterListeners(){const{hls:e}=this;e&&(e.off(I.MEDIA_ATTACHING,this.onMediaAttaching,this),e.off(I.MEDIA_ATTACHED,this.onMediaAttached,this),e.off(I.MEDIA_DETACHING,this.onMediaDetaching,this),e.off(I.MANIFEST_LOADING,this.onManifestLoading,this),e.off(I.FRAG_PARSING_METADATA,this.onFragParsingMetadata,this),e.off(I.BUFFER_FLUSHING,this.onBufferFlushing,this),e.off(I.LEVEL_UPDATED,this.onLevelUpdated,this),e.off(I.LEVEL_PTS_UPDATED,this.onLevelPtsUpdated,this))}onMediaAttaching(e,t){var r;this.media=t.media,((r=t.overrides)==null?void 0:r.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&&Oc(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 r=e[t];if(r.kind==="metadata"&&r.label==="id3")return Kl(r,this.media),r}return this.media.addTextTrack("metadata","id3")}}onFragParsingMetadata(e,t){if(!this.media||!this.hls)return;const{enableEmsgMetadataCues:r,enableID3MetadataCues:i}=this.hls.config;if(!r&&!i)return;const{samples:o}=t;this.id3Track||(this.id3Track=this.createTrack(this.media));const A=Rn();if(A)for(let h=0;h<o.length;h++){const y=o[h].type;if(y===uo.emsg&&!r||!i)continue;const g=Du(o[h].data),F=o[h].pts;let N=F+o[h].duration;N>Ni&&(N=Ni),N-F<=0&&(N=F+di);for(let Ae=0;Ae<g.length;Ae++){const ue=g[Ae];if(!sh(ue)){this.updateId3CueEnds(F,y);const Re=Zi(A,F,N,ue,y);Re&&this.id3Track.addCue(Re)}}}}updateId3CueEnds(e,t){var r;const i=(r=this.id3Track)==null?void 0:r.cues;if(i)for(let o=i.length;o--;){const A=i[o];A.type===t&&A.startTime<e&&A.endTime===Ni&&(A.endTime=e)}}onBufferFlushing(e,{startOffset:t,endOffset:r,type:i}){const{id3Track:o,hls:A}=this;if(!A)return;const{config:{enableEmsgMetadataCues:h,enableID3MetadataCues:y}}=A;if(o&&(h||y)){let g;i==="audio"?g=F=>F.type===uo.audioId3&&y:i==="video"?g=F=>F.type===uo.emsg&&h:g=F=>F.type===uo.audioId3&&y||F.type===uo.emsg&&h,Eh(o,t,r,g)}}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:r,timelineOffset:i,enableDateRangeMetadataCues:o,interstitialsController:A}=this.hls.config;if(!o)return;const h=Rn();if(r&&i&&!A){const{fragmentStart:Re,fragmentEnd:ke}=e;let it=this.assetCue;it?(it.startTime=Re,it.endTime=ke):h&&(it=this.assetCue=Zi(h,Re,ke,{assetPlayerId:this.hls.config.assetPlayerId},"hlsjs.interstitial.asset"),it&&(it.id=r,this.id3Track||(this.id3Track=this.createTrack(this.media)),this.id3Track.addCue(it),it.addEventListener("enter",this.onEventCueEnter)))}if(!e.hasProgramDateTime)return;const{id3Track:y}=this,{dateRanges:g}=e,F=Object.keys(g);let N=this.dateRangeCuesAppended;if(y&&t){var q;if((q=y.cues)!=null&&q.length){const Re=Object.keys(N).filter(ke=>!F.includes(ke));for(let ke=Re.length;ke--;){var Ae;const it=Re[ke],ft=(Ae=N[it])==null?void 0:Ae.cues;delete N[it],ft&&Object.keys(ft).forEach(_t=>{const zt=ft[_t];if(zt){zt.removeEventListener("enter",this.onEventCueEnter);try{y.removeCue(zt)}catch(ir){}}})}}else N=this.dateRangeCuesAppended={}}const ue=e.fragments[e.fragments.length-1];if(!(F.length===0||!Ie(ue==null?void 0:ue.programDateTime))){this.id3Track||(this.id3Track=this.createTrack(this.media));for(let Re=0;Re<F.length;Re++){const ke=F[Re],it=g[ke],ft=it.startTime,_t=N[ke],zt=(_t==null?void 0:_t.cues)||{};let ir=(_t==null?void 0:_t.durationKnown)||!1,Nr=Ni;const{duration:or,endDate:Cr}=it;if(Cr&&or!==null)Nr=ft+or,ir=!0;else if(it.endOnNext&&!ir){const pr=F.reduce((qr,Cn)=>{if(Cn!==it.id){const Yn=g[Cn];if(Yn.class===it.class&&Yn.startDate>it.startDate&&(!qr||it.startDate<qr.startDate))return Yn}return qr},null);pr&&(Nr=pr.startTime,ir=!0)}const br=Object.keys(it.attr);for(let pr=0;pr<br.length;pr++){const qr=br[pr];if(!Rl(qr))continue;const Cn=zt[qr];if(Cn)ir&&!(_t!=null&&_t.durationKnown)?Cn.endTime=Nr:Math.abs(Cn.startTime-ft)>.01&&(Cn.startTime=ft,Cn.endTime=Nr);else if(h){let Yn=it.attr[qr];Jl(qr)&&(Yn=M(Yn));const On=Zi(h,ft,Nr,{key:qr,data:Yn},uo.dateRange);On&&(On.id=ke,this.id3Track.addCue(On),zt[qr]=On,A&&(qr==="X-ASSET-LIST"||qr==="X-ASSET-URL")&&On.addEventListener("enter",this.onEventCueEnter))}}N[ke]={cues:zt,dateRange:it,durationKnown:ir}}}}}class xn{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,r=this.levelDetails;if(!t||!r)return;this.currentTime=t.currentTime;const i=this.computeLatency();if(i===null)return;this._latency=i;const{lowLatencyMode:o,maxLiveSyncPlaybackRate:A}=this.config;if(!o||A===1||!r.live)return;const h=this.targetLatency;if(h===null)return;const y=i-h,g=Math.min(this.maxLatency,h+r.targetduration);if(y<g&&y>.05&&this.forwardBufferLength>1){const N=Math.min(2,Math.max(1,A)),q=Math.round(2/(1+Math.exp(-.75*y-this.edgeStalled))*20)/20,Ae=Math.min(N,Math.max(1,q));this.changeMediaPlaybackRate(t,Ae)}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:r,targetduration:i}=e,{liveSyncDuration:o,liveSyncDurationCount:A,lowLatencyMode:h}=this.config,y=this.hls.userConfig;let g=h&&r||t;(this._targetLatencyUpdated||y.liveSyncDuration||y.liveSyncDurationCount||g===0)&&(g=o!==void 0?o:A*i);const F=i;return g+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 r=this.levelDetails;if(r===null)return null;const i=r.edge,o=e-t-this.edgeStalled,A=i-r.totalduration,h=i-(this.config.lowLatencyMode&&r.partTarget||r.targetduration);return Math.min(Math.max(A,o),h)}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 r=e.buffered.length;return(r?e.buffered.end(r-1):t.edge)-this.currentTime}destroy(){this.unregisterListeners(),this.onMediaDetaching(),this.hls=null}registerListeners(){const{hls:e}=this;e&&(e.on(I.MEDIA_ATTACHED,this.onMediaAttached,this),e.on(I.MEDIA_DETACHING,this.onMediaDetaching,this),e.on(I.MANIFEST_LOADING,this.onManifestLoading,this),e.on(I.LEVEL_UPDATED,this.onLevelUpdated,this),e.on(I.ERROR,this.onError,this))}unregisterListeners(){const{hls:e}=this;e&&(e.off(I.MEDIA_ATTACHED,this.onMediaAttached,this),e.off(I.MEDIA_DETACHING,this.onMediaDetaching,this),e.off(I.MANIFEST_LOADING,this.onManifestLoading,this),e.off(I.LEVEL_UPDATED,this.onLevelUpdated,this),e.off(I.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 r;t.details===de.BUFFER_STALLED_ERROR&&(this.stallCount++,this.hls&&(r=this.levelDetails)!=null&&r.live&&this.hls.logger.warn("[latency-controller]: Stall detected, adjusting target latency"))}changeMediaPlaybackRate(e,t){var r,i;e.playbackRate!==t&&((r=this.hls)==null||r.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 wA extends p0{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(I.MANIFEST_LOADING,this.onManifestLoading,this),e.on(I.MANIFEST_LOADED,this.onManifestLoaded,this),e.on(I.LEVEL_LOADED,this.onLevelLoaded,this),e.on(I.LEVELS_UPDATED,this.onLevelsUpdated,this),e.on(I.FRAG_BUFFERED,this.onFragBuffered,this),e.on(I.ERROR,this.onError,this)}_unregisterListeners(){const{hls:e}=this;e.off(I.MANIFEST_LOADING,this.onManifestLoading,this),e.off(I.MANIFEST_LOADED,this.onManifestLoaded,this),e.off(I.LEVEL_LOADED,this.onLevelLoaded,this),e.off(I.LEVELS_UPDATED,this.onLevelsUpdated,this),e.off(I.FRAG_BUFFERED,this.onFragBuffered,this),e.off(I.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 r=this.hls.config.preferManagedMediaSource,i=[],o={},A={};let h=!1,y=!1,g=!1;t.levels.forEach(F=>{const N=F.attrs;let{audioCodec:q,videoCodec:Ae}=F;q&&(F.audioCodec=q=ht(q,r)||void 0),Ae&&(Ae=F.videoCodec=ws(Ae));const{width:ue,height:Re,unknownCodecs:ke}=F,it=(ke==null?void 0:ke.length)||0;if(h||(h=!!(ue&&Re)),y||(y=!!Ae),g||(g=!!q),it||q&&!this.isAudioSupported(q)||Ae&&!this.isVideoSupported(Ae)){this.log(`Some or all CODECS not supported "${N.CODECS}"`);return}const{CODECS:ft,"FRAME-RATE":_t,"HDCP-LEVEL":zt,"PATHWAY-ID":ir,RESOLUTION:Nr,"VIDEO-RANGE":or}=N,br=`${`${ir||"."}-`}${F.bitrate}-${Nr}-${_t}-${ft}-${or}-${zt}`;if(o[br])if(o[br].uri!==F.url&&!F.attrs["PATHWAY-ID"]){const pr=A[br]+=1;F.attrs["PATHWAY-ID"]=new Array(pr+1).join(".");const qr=this.createLevel(F);o[br]=qr,i.push(qr)}else o[br].addGroupId("audio",N.AUDIO),o[br].addGroupId("text",N.SUBTITLES);else{const pr=this.createLevel(F);o[br]=pr,A[br]=1,i.push(pr)}}),this.filterAndSortMediaOptions(i,t,h,y,g)}createLevel(e){const t=new Qi(e),r=e.supplemental;if(r!=null&&r.videoCodec&&!this.isVideoSupported(r.videoCodec)){const i=new Error(`SUPPLEMENTAL-CODECS not supported "${r.videoCodec}"`);this.log(i.message),t.supportedResult=mn(i,[])}return t}isAudioSupported(e){return Dt(e,"audio",this.hls.config.preferManagedMediaSource)}isVideoSupported(e){return Dt(e,"video",this.hls.config.preferManagedMediaSource)}filterAndSortMediaOptions(e,t,r,i,o){var A;let h=[],y=[],g=e;const F=((A=t.stats)==null?void 0:A.parsing)||{};if((r||i)&&o&&(g=g.filter(({videoCodec:ft,videoRange:_t,width:zt,height:ir})=>(!!ft||!!(zt&&ir))&&sa(_t))),g.length===0){Promise.resolve().then(()=>{if(this.hls){let ft="no level with compatible codecs found in manifest",_t=ft;t.levels.length&&(_t=`one or more CODECS in variant not supported: ${Vn(t.levels.map(ir=>ir.attrs.CODECS).filter((ir,Nr,or)=>or.indexOf(ir)===Nr))}`,this.warn(_t),ft+=` (${_t})`);const zt=new Error(ft);this.hls.trigger(I.ERROR,{type:Me.MEDIA_ERROR,details:de.MANIFEST_INCOMPATIBLE_CODECS_ERROR,fatal:!0,url:t.url,error:zt,reason:_t})}}),F.end=performance.now();return}t.audioTracks&&(h=t.audioTracks.filter(ft=>!ft.audioCodec||this.isAudioSupported(ft.audioCodec)),bA(h)),t.subtitles&&(y=t.subtitles,bA(y));const N=g.slice(0);g.sort((ft,_t)=>{if(ft.attrs["HDCP-LEVEL"]!==_t.attrs["HDCP-LEVEL"])return(ft.attrs["HDCP-LEVEL"]||"")>(_t.attrs["HDCP-LEVEL"]||"")?1:-1;if(r&&ft.height!==_t.height)return ft.height-_t.height;if(ft.frameRate!==_t.frameRate)return ft.frameRate-_t.frameRate;if(ft.videoRange!==_t.videoRange)return Mi.indexOf(ft.videoRange)-Mi.indexOf(_t.videoRange);if(ft.videoCodec!==_t.videoCodec){const zt=Ve(ft.videoCodec),ir=Ve(_t.videoCodec);if(zt!==ir)return ir-zt}if(ft.uri===_t.uri&&ft.codecSet!==_t.codecSet){const zt=at(ft.codecSet),ir=at(_t.codecSet);if(zt!==ir)return ir-zt}return ft.averageBitrate!==_t.averageBitrate?ft.averageBitrate-_t.averageBitrate:0});let q=N[0];if(this.steering&&(g=this.steering.filterParsedLevels(g),g.length!==N.length)){for(let ft=0;ft<N.length;ft++)if(N[ft].pathwayId===g[0].pathwayId){q=N[ft];break}}this._levels=g;for(let ft=0;ft<g.length;ft++)if(g[ft]===q){var Ae;this._firstLevel=ft;const _t=q.bitrate,zt=this.hls.bandwidthEstimate;if(this.log(`manifest loaded, ${g.length} level(s) found, first bitrate: ${_t}`),((Ae=this.hls.userConfig)==null?void 0:Ae.abrEwmaDefaultEstimate)===void 0){const ir=Math.min(_t,this.hls.config.abrEwmaDefaultEstimateMax);ir>zt&&zt===this.hls.abrEwmaDefaultEstimate&&(this.hls.bandwidthEstimate=ir)}break}const ue=o&&!i,Re=this.hls.config,ke=!!(Re.audioStreamController&&Re.audioTrackController),it={levels:g,audioTracks:h,subtitleTracks:y,sessionData:t.sessionData,sessionKeys:t.sessionKeys,firstLevel:this._firstLevel,stats:t.stats,audio:o,video:i,altAudio:ke&&!ue&&h.some(ft=>!!ft.url)};F.end=performance.now(),this.hls.trigger(I.MANIFEST_PARSED,it)}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"),N=e<0;if(this.hls.trigger(I.ERROR,{type:Me.OTHER_ERROR,details:de.LEVEL_SWITCH_ERROR,level:e,fatal:N,error:F,reason:F.message}),N)return;e=Math.min(e,t.length-1)}const r=this.currentLevelIndex,i=this.currentLevel,o=i?i.attrs["PATHWAY-ID"]:void 0,A=t[e],h=A.attrs["PATHWAY-ID"];if(this.currentLevelIndex=e,this.currentLevel=A,r===e&&i&&o===h)return;this.log(`Switching to level ${e} (${A.height?A.height+"p ":""}${A.videoRange?A.videoRange+" ":""}${A.codecSet?A.codecSet+" ":""}@${A.bitrate})${h?" with Pathway "+h:""} from level ${r}${o?" with Pathway "+o:""}`);const y={level:e,attrs:A.attrs,details:A.details,bitrate:A.bitrate,averageBitrate:A.averageBitrate,maxBitrate:A.maxBitrate,realBitrate:A.realBitrate,width:A.width,height:A.height,codecSet:A.codecSet,audioCodec:A.audioCodec,videoCodec:A.videoCodec,audioGroups:A.audioGroups,subtitleGroups:A.subtitleGroups,loaded:A.loaded,loadError:A.loadError,fragmentError:A.fragmentError,name:A.name,id:A.id,uri:A.uri,url:A.url,urlId:0,audioGroupIds:A.audioGroupIds,textGroupIds:A.textGroupIds};this.hls.trigger(I.LEVEL_SWITCHING,y);const g=A.details;if(!g||g.live){const F=this.switchParams(A.uri,i==null?void 0:i.details,g);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(),r=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=r}}onError(e,t){t.fatal||!t.context||t.context.type===Be.LEVEL&&t.context.level===this.level&&this.checkRetry(t)}onFragBuffered(e,{frag:t}){if(t!==void 0&&t.type===R.MAIN){const r=t.elementaryStreams;if(!Object.keys(r).some(o=>!!r[o]))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 r;const{level:i,details:o}=t,A=t.levelInfo;if(!A){var h;this.warn(`Invalid level index ${i}`),(h=t.deliveryDirectives)!=null&&h.skip&&(o.deltaUpdateFailed=!0);return}if(A===this.currentLevel||t.withoutMultiVariant){A.fragmentError===0&&(A.loadError=0);let y=A.details;y===t.details&&y.advanced&&(y=void 0),this.playlistLoaded(i,t,y)}else(r=t.deliveryDirectives)!=null&&r.skip&&(o.deltaUpdateFailed=!0)}loadPlaylist(e){super.loadPlaylist(),this.shouldLoadPlaylist(this.currentLevel)&&this.scheduleLoading(this.currentLevel,e)}loadingPlaylist(e,t){super.loadingPlaylist(e,t);const r=this.getUrlWithDirectives(e.uri,t),i=this.currentLevelIndex,o=e.attrs["PATHWAY-ID"],A=e.details,h=A==null?void 0:A.age;this.log(`Loading level index ${i}${(t==null?void 0:t.msn)!==void 0?" at sn "+t.msn+" part "+t.part:""}${o?" Pathway "+o:""}${h&&A.live?" age "+h.toFixed(1)+(A.type?" "+A.type||0:""):""} ${r}`),this.hls.trigger(I.LEVEL_LOADING,{url:r,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 r=this._levels.filter((o,A)=>A!==e?!0:(this.steering&&this.steering.removeLevel(o),o===this.currentLevel&&(this.currentLevel=null,this.currentLevelIndex=-1,o.details&&o.details.fragments.forEach(h=>h.level=-1)),!1));n0(r),this._levels=r,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=r.length-1;this._firstLevel=Math.min(this._firstLevel,i),this._startLevel&&(this._startLevel=Math.min(this._startLevel,i)),this.hls.trigger(I.LEVELS_UPDATED,{levels:r})}onLevelsUpdated(e,{levels:t}){this._levels=t}checkMaxAutoUpdated(){const{autoLevelCapping:e,maxAutoLevel:t,maxHdcpLevel:r}=this.hls;this._maxAutoLevel!==t&&(this._maxAutoLevel=t,this.hls.trigger(I.MAX_AUTO_LEVEL_UPDATED,{autoLevelCapping:e,levels:this.levels,maxAutoLevel:t,minAutoLevel:this.hls.minAutoLevel,maxHdcpLevel:r}))}}function bA(l){const e={};l.forEach(t=>{const r=t.groupId||"";t.id=e[r]=e[r]||0,e[r]++})}function Ps(){return self.SourceBuffer||self.WebKitSourceBuffer}function so(){if(!Ue())return!1;const e=Ps();return!e||e.prototype&&typeof e.prototype.appendBuffer=="function"&&typeof e.prototype.remove=="function"}function yu(){if(!so())return!1;const l=Ue();return typeof(l==null?void 0:l.isTypeSupported)=="function"&&(["avc1.42E01E,mp4a.40.2","av01.0.01M.08","vp09.00.50.08"].some(e=>l.isTypeSupported(Oe(e,"video")))||["mp4a.40.2","fLaC"].some(e=>l.isTypeSupported(Oe(e,"audio"))))}function Vo(){var l;const e=Ps();return typeof(e==null||(l=e.prototype)==null?void 0:l.changeType)=="function"}const tA=100;class gc extends RA{constructor(e,t,r){super(e,t,r,"stream-controller",R.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,o=i?i.currentTime:null;if(o===null||!Ie(o)||(this.log(`Media seeked to ${o.toFixed(3)}`),!this.getBufferedFrag(o)))return;const A=this.getFwdBufferInfoAtPos(i,o,R.MAIN,0);if(A===null||A.len===0){this.warn(`Main forward buffer length at ${o} on "seeked" event ${A?A.len:"empty"})`);return}this.tick()},this.registerListeners()}registerListeners(){super.registerListeners();const{hls:e}=this;e.on(I.MANIFEST_PARSED,this.onManifestParsed,this),e.on(I.LEVEL_LOADING,this.onLevelLoading,this),e.on(I.LEVEL_LOADED,this.onLevelLoaded,this),e.on(I.FRAG_LOAD_EMERGENCY_ABORTED,this.onFragLoadEmergencyAborted,this),e.on(I.AUDIO_TRACK_SWITCHING,this.onAudioTrackSwitching,this),e.on(I.AUDIO_TRACK_SWITCHED,this.onAudioTrackSwitched,this),e.on(I.BUFFER_CREATED,this.onBufferCreated,this),e.on(I.BUFFER_FLUSHED,this.onBufferFlushed,this),e.on(I.LEVELS_UPDATED,this.onLevelsUpdated,this),e.on(I.FRAG_BUFFERED,this.onFragBuffered,this)}unregisterListeners(){super.unregisterListeners();const{hls:e}=this;e.off(I.MANIFEST_PARSED,this.onManifestParsed,this),e.off(I.LEVEL_LOADED,this.onLevelLoaded,this),e.off(I.FRAG_LOAD_EMERGENCY_ABORTED,this.onFragLoadEmergencyAborted,this),e.off(I.AUDIO_TRACK_SWITCHING,this.onAudioTrackSwitching,this),e.off(I.AUDIO_TRACK_SWITCHED,this.onAudioTrackSwitched,this),e.off(I.BUFFER_CREATED,this.onBufferCreated,this),e.off(I.BUFFER_FLUSHED,this.onBufferFlushed,this),e.off(I.LEVELS_UPDATED,this.onLevelsUpdated,this),e.off(I.FRAG_BUFFERED,this.onFragBuffered,this)}onHandlerDestroying(){this.onMediaPlaying=this.onMediaSeeked=null,this.unregisterListeners(),super.onHandlerDestroying()}startLoad(e,t){if(this.levels){const{lastCurrentTime:r,hls:i}=this;if(this.stopLoad(),this.setInterval(tA),this.level=-1,!this.startFragRequested){let o=i.startLevel;o===-1&&(i.config.testBandwidth&&this.levels.length>1?(o=0,this.bitrateTest=!0):o=i.firstAutoLevel),i.nextLoadLevel=o,this.level=i.loadLevel,this._hasEnoughToStart=!!t}r>0&&e===-1&&!t&&(this.log(`Override startPosition with lastCurrentTime @${r.toFixed(3)}`),e=r),this.state=Zr.IDLE,this.nextLoadPosition=this.lastCurrentTime=e+this.timelineOffset,this.startPosition=t?-1:e,this.tick()}else this._forceStartLoad=!0,this.state=Zr.STOPPED}stopLoad(){this._forceStartLoad=!1,super.stopLoad()}doTick(){switch(this.state){case Zr.WAITING_LEVEL:{const{levels:e,level:t}=this,r=e==null?void 0:e[t],i=r==null?void 0:r.details;if(i&&(!i.live||this.levelLastLoaded===r&&!this.waitForLive(r))){if(this.waitForCdnTuneIn(i))break;this.state=Zr.IDLE;break}else if(this.hls.nextLoadLevel!==this.level){this.state=Zr.IDLE;break}break}case Zr.FRAG_LOADING_WAITING_RETRY:this.checkRetryDate();break}this.state===Zr.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:r,media:i}=this;if(t===null||!i&&!this.primaryPrefetch&&(this.startFragRequested||!e.config.startFragPrefetch)||this.altAudio&&this.audioOnly)return;const o=this.buffering?e.nextLoadLevel:e.loadLevel;if(!(r!=null&&r[o]))return;const A=r[o],h=this.getMainFwdBufferInfo();if(h===null)return;const y=this.getLevelDetails();if(y&&this._streamEnded(h,y)){const Re={};this.altAudio===2&&(Re.type="video"),this.hls.trigger(I.BUFFER_EOS,Re),this.state=Zr.ENDED;return}if(!this.buffering)return;e.loadLevel!==o&&e.manualLevel===-1&&this.log(`Adapting to level ${o} from level ${this.level}`),this.level=e.nextLoadLevel=o;const g=A.details;if(!g||this.state===Zr.WAITING_LEVEL||this.waitForLive(A)){this.level=o,this.state=Zr.WAITING_LEVEL,this.startFragRequested=!1;return}const F=h.len,N=this.getMaxBufferLength(A.maxBitrate);if(F>=N)return;this.backtrackFragment&&this.backtrackFragment.start>h.end&&(this.backtrackFragment=null);const q=this.backtrackFragment?this.backtrackFragment.start:h.end;let Ae=this.getNextFragment(q,g);if(this.couldBacktrack&&!this.fragPrevious&&Ae&&ut(Ae)&&this.fragmentTracker.getState(Ae)!==Cs.OK){var ue;const ke=((ue=this.backtrackFragment)!=null?ue:Ae).sn-g.startSN,it=g.fragments[ke-1];it&&Ae.cc===it.cc&&(Ae=it,this.fragmentTracker.removeFragment(it))}else this.backtrackFragment&&h.len&&(this.backtrackFragment=null);if(Ae&&this.isLoopLoading(Ae,q)){if(!Ae.gap){const ke=this.audioOnly&&!this.altAudio?ee.AUDIO:ee.VIDEO,it=(ke===ee.VIDEO?this.videoBuffer:this.mediaBuffer)||this.media;it&&this.afterBufferFlushed(it,ke,R.MAIN)}Ae=this.getNextFragmentLoopLoading(Ae,g,h,R.MAIN,N)}Ae&&(Ae.initSegment&&!Ae.initSegment.data&&!this.bitrateTest&&(Ae=Ae.initSegment),this.loadFragment(Ae,A,q))}loadFragment(e,t,r){const i=this.fragmentTracker.getState(e);i===Cs.NOT_LOADED||i===Cs.PARTIAL?ut(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,r):this._loadInitSegment(e,t):this.clearTrackerIfNeeded(e)}getBufferedFrag(e){return this.fragmentTracker.getBufferedFrag(e,R.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 r;const i=this.getAppendedFrag(t.currentTime);i&&i.start>1&&this.flushMainBuffer(0,i.start-1);const o=this.getLevelDetails();if(o!=null&&o.live){const h=this.getMainFwdBufferInfo();if(!h||h.len<o.targetduration*2)return}if(!t.paused&&e){const h=this.hls.nextLoadLevel,y=e[h],g=this.fragLastKbps;g&&this.fragCurrent?r=this.fragCurrent.duration*y.maxBitrate/(1e3*g)+1:r=0}else r=0;const A=this.getBufferedFrag(t.currentTime+r);if(A){const h=this.followingBufferedFrag(A);if(h){this.abortCurrentFrag();const y=h.maxStartPTS?h.maxStartPTS:h.start,g=h.duration,F=Math.max(A.end,y+Math.min(Math.max(g-this.config.maxFragLookUpTolerance,g*(this.couldBacktrack?.5:.125)),g*(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 Zr.KEY_LOADING:case Zr.FRAG_LOADING:case Zr.FRAG_LOADING_WAITING_RETRY:case Zr.PARSING:case Zr.PARSED:this.state=Zr.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 r=t.media;Qa(r,"playing",this.onMediaPlaying),Qa(r,"seeked",this.onMediaSeeked)}onMediaDetaching(e,t){const{media:r}=this;r&&(to(r,"playing",this.onMediaPlaying),to(r,"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(I.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 r=!1,i=!1;for(let o=0;o<t.levels.length;o++){const A=t.levels[o].audioCodec;A&&(r=r||A.indexOf("mp4a.40.2")!==-1,i=i||A.indexOf("mp4a.40.5")!==-1)}this.audioCodecSwitch=r&&i&&!Vo(),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:r}=this;if(!r||this.state!==Zr.IDLE)return;const i=t.levelInfo;(!i.details||i.details.live&&(this.levelLastLoaded!==i||i.details.expired)||this.waitForCdnTuneIn(i.details))&&(this.state=Zr.WAITING_LEVEL)}onLevelLoaded(e,t){var r;const{levels:i,startFragRequested:o}=this,A=t.level,h=t.details,y=h.totalduration;if(!i){this.warn(`Levels were reset while loading level ${A}`);return}this.log(`Level ${A} loaded [${h.startSN},${h.endSN}]${h.lastPartSn?`[part-${h.lastPartSn}-${h.lastPartIndex}]`:""}, cc [${h.startCC}, ${h.endCC}] duration:${y}`);const g=t.levelInfo,F=this.fragCurrent;F&&(this.state===Zr.FRAG_LOADING||this.state===Zr.FRAG_LOADING_WAITING_RETRY)&&F.level!==t.level&&F.loader&&this.abortCurrentFrag();let N=0;if(h.live||(r=g.details)!=null&&r.live){var q;if(this.checkLiveUpdate(h),h.deltaUpdateFailed)return;N=this.alignPlaylists(h,g.details,(q=this.levelLastLoaded)==null?void 0:q.details)}if(g.details=h,this.levelLastLoaded=g,o||this.setStartPosition(h,N),this.hls.trigger(I.LEVEL_UPDATED,{details:h,level:A}),this.state===Zr.WAITING_LEVEL){if(this.waitForCdnTuneIn(h))return;this.state=Zr.IDLE}o&&h.live&&this.synchronizeToLiveEdge(h),this.tick()}synchronizeToLiveEdge(e){const{config:t,media:r}=this;if(!r)return;const i=this.hls.liveSyncPosition,o=this.getLoadPosition(),A=e.fragmentStart,h=e.edge,y=o>=A-t.maxFragLookUpTolerance&&o<=h;if(i!==null&&r.duration>i&&(o<i||!y)){const F=t.liveMaxLatencyDuration!==void 0?t.liveMaxLatencyDuration:t.liveMaxLatencyDurationCount*e.targetduration;if((!y&&r.readyState<4||o<h-F)&&(this._hasEnoughToStart||(this.nextLoadPosition=i),r.readyState))if(this.warn(`Playback: ${o.toFixed(3)} is located too far from the end of live sliding playlist: ${h}, reset currentTime to : ${i.toFixed(3)}`),this.config.liveSyncMode==="buffered"){var g;const N=oi.bufferInfo(r,i,0);if(!((g=N.buffered)!=null&&g.length)){r.currentTime=i;return}if(N.start<=o){r.currentTime=i;return}const{nextStart:Ae}=oi.bufferedInfo(N.buffered,o,0);Ae&&(r.currentTime=Ae)}else r.currentTime=i}}_handleFragmentLoadProgress(e){var t;const r=e.frag,{part:i,payload:o}=e,{levels:A}=this;if(!A){this.warn(`Levels were reset while fragment load was in progress. Fragment ${r.sn} of level ${r.level} will not be buffered`);return}const h=A[r.level];if(!h){this.warn(`Level ${r.level} not found on progress`);return}const y=h.details;if(!y){this.warn(`Dropping fragment ${r.sn} of level ${r.level} after level details were reset`),this.fragmentTracker.removeFragment(r);return}const g=h.videoCodec,F=y.PTSKnown||!y.live,N=(t=r.initSegment)==null?void 0:t.data,q=this._getAudioCodec(h),Ae=this.transmuxer=this.transmuxer||new lh(this.hls,R.MAIN,this._handleTransmuxComplete.bind(this),this._handleTransmuxerFlush.bind(this)),ue=i?i.index:-1,Re=ue!==-1,ke=new fA(r.level,r.sn,r.stats.chunkCount,o.byteLength,ue,Re),it=this.initPTS[r.cc];Ae.push(o,N,q,g,r,i,y.totalduration,F,ke,it)}onAudioTrackSwitching(e,t){const r=this.hls,i=this.altAudio===2;if(VA(t.url,r))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 A=this.fragCurrent;A&&(this.log("Switching to main audio track, cancel main fragment load"),A.abortRequests(),this.fragmentTracker.removeFragment(A)),this.resetTransmuxer(),this.resetLoadingState()}else this.audioOnly&&this.resetTransmuxer();if(i){this.fragmentTracker.removeAllFragments(),r.once(I.BUFFER_FLUSHED,()=>{this.hls&&this.hls.trigger(I.AUDIO_TRACK_SWITCHED,t)}),r.trigger(I.BUFFER_FLUSHING,{startOffset:0,endOffset:Number.POSITIVE_INFINITY,type:null});return}r.trigger(I.AUDIO_TRACK_SWITCHED,t)}}onAudioTrackSwitched(e,t){const r=VA(t.url,this.hls);if(r){const i=this.videoBuffer;i&&this.mediaBuffer!==i&&(this.log("Switching on alternate audio, use video.buffered to schedule main fragment loading"),this.mediaBuffer=i)}this.altAudio=r?2:0,this.tick()}onBufferCreated(e,t){const r=t.tracks;let i,o,A=!1;for(const h in r){const y=r[h];if(y.id==="main"){if(o=h,i=y,h==="video"){const g=r[h];g&&(this.videoBuffer=g.buffer)}}else A=!0}A&&i?(this.log(`Alternate track found, use ${o}.buffered to schedule main fragment loading`),this.mediaBuffer=i.buffer):this.mediaBuffer=this.media}onFragBuffered(e,t){const{frag:r,part:i}=t,o=r.type===R.MAIN;if(o){if(this.fragContextChanged(r)){this.warn(`Fragment ${r.sn}${i?" p: "+i.index:""} of level ${r.level} finished buffering, but was aborted. state: ${this.state}`),this.state===Zr.PARSED&&(this.state=Zr.IDLE);return}const h=i?i.stats:r.stats;this.fragLastKbps=Math.round(8*h.total/(h.buffering.end-h.loading.first)),ut(r)&&(this.fragPrevious=r),this.fragBufferedComplete(r,i)}const A=this.media;A&&(!this._hasEnoughToStart&&oi.getBuffered(A).length&&(this._hasEnoughToStart=!0,this.seekToStartPos()),o&&this.tick())}get hasEnoughToStart(){return this._hasEnoughToStart}onError(e,t){var r;if(t.fatal){this.state=Zr.ERROR;return}switch(t.details){case de.FRAG_GAP:case de.FRAG_PARSING_ERROR:case de.FRAG_DECRYPT_ERROR:case de.FRAG_LOAD_ERROR:case de.FRAG_LOAD_TIMEOUT:case de.KEY_LOAD_ERROR:case de.KEY_LOAD_TIMEOUT:this.onFragmentOrKeyLoadError(R.MAIN,t);break;case de.LEVEL_LOAD_ERROR:case de.LEVEL_LOAD_TIMEOUT:case de.LEVEL_PARSING_ERROR:!t.levelRetry&&this.state===Zr.WAITING_LEVEL&&((r=t.context)==null?void 0:r.type)===Be.LEVEL&&(this.state=Zr.IDLE);break;case de.BUFFER_ADD_CODEC_ERROR:case de.BUFFER_APPEND_ERROR:if(t.parent!=="main")return;this.reduceLengthAndFlushBuffer(t)&&this.resetLoadingState();break;case de.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 de.INTERNAL_EXCEPTION:this.recoverWorkerError(t);break}}onFragLoadEmergencyAborted(){this.state=Zr.IDLE,this._hasEnoughToStart||(this.startFragRequested=!1,this.nextLoadPosition=this.lastCurrentTime),this.tickImmediate()}onBufferFlushed(e,{type:t}){if(t!==ee.AUDIO||!this.altAudio){const r=(t===ee.VIDEO?this.videoBuffer:this.mediaBuffer)||this.media;r&&(this.afterBufferFlushed(r,t,R.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 r=this.startPosition;if(r>=0&&t<r){if(e.seeking){this.log(`could not seek to ${r}, already seeking at ${t}`);return}const i=this.timelineOffset;i&&r&&(r+=i);const o=this.getLevelDetails(),A=oi.getBuffered(e),h=A.length?A.start(0):0,y=h-r,g=Math.max(this.config.maxBufferHole,this.config.maxFragLookUpTolerance);(this.config.startOnSegmentBoundary||y>0&&(y<g||this.loadingParts&&y<2*((o==null?void 0:o.partTarget)||0)))&&(this.log(`adjusting start position by ${y} to match buffer start`),r+=y,this.startPosition=r),t<r&&(this.log(`seek to target start position ${r} from current time ${t} buffer start ${h}`),e.currentTime=r)}}_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(r=>{const{hls:i}=this,o=r==null?void 0:r.frag;if(!o||this.fragContextChanged(o))return;t.fragmentError=0,this.state=Zr.IDLE,this.startFragRequested=!1,this.bitrateTest=!1;const A=o.stats;A.parsing.start=A.parsing.end=A.buffering.start=A.buffering.end=self.performance.now(),i.trigger(I.FRAG_LOADED,r),o.bitrateTest=!1}).catch(r=>{this.state===Zr.STOPPED||this.state===Zr.ERROR||(this.warn(r),this.resetFragmentLoading(e))})}_handleTransmuxComplete(e){const t=this.playlistType,{hls:r}=this,{remuxResult:i,chunkMeta:o}=e,A=this.getCurrentContext(o);if(!A){this.resetWhenMissingContext(o);return}const{frag:h,part:y,level:g}=A,{video:F,text:N,id3:q,initSegment:Ae}=i,{details:ue}=g,Re=this.altAudio?void 0:i.audio;if(this.fragContextChanged(h)){this.fragmentTracker.removeFragment(h);return}if(this.state=Zr.PARSING,Ae){const ke=Ae.tracks;if(ke){const zt=h.initSegment||h;if(this.unhandledEncryptionError(Ae,h))return;this._bufferInitSegment(g,ke,zt,o),r.trigger(I.FRAG_PARSING_INIT_SEGMENT,{frag:zt,id:t,tracks:ke})}const it=Ae.initPTS,ft=Ae.timescale,_t=this.initPTS[h.cc];if(Ie(it)&&(!_t||_t.baseTime!==it||_t.timescale!==ft)){const zt=Ae.trackId;this.initPTS[h.cc]={baseTime:it,timescale:ft,trackId:zt},r.trigger(I.INIT_PTS_FOUND,{frag:h,id:t,initPTS:it,timescale:ft,trackId:zt})}}if(F&&ue){Re&&F.type==="audiovideo"&&this.logMuxedErr(h);const ke=ue.fragments[h.sn-1-ue.startSN],it=h.sn===ue.startSN,ft=!ke||h.cc>ke.cc;if(i.independent!==!1){const{startPTS:_t,endPTS:zt,startDTS:ir,endDTS:Nr}=F;if(y)y.elementaryStreams[F.type]={startPTS:_t,endPTS:zt,startDTS:ir,endDTS:Nr};else if(F.firstKeyFrame&&F.independent&&o.id===1&&!ft&&(this.couldBacktrack=!0),F.dropped&&F.independent){const or=this.getMainFwdBufferInfo(),Cr=(or?or.end:this.getLoadPosition())+this.config.maxBufferHole,br=F.firstKeyFramePTS?F.firstKeyFramePTS:_t;if(!it&&Cr<br-this.config.maxBufferHole&&!ft){this.backtrack(h);return}else ft&&(h.gap=!0);h.setElementaryStreamInfo(F.type,h.start,zt,h.start,Nr,!0)}else it&&_t-(ue.appliedTimelineOffset||0)>Pn&&(h.gap=!0);h.setElementaryStreamInfo(F.type,_t,zt,ir,Nr),this.backtrackFragment&&(this.backtrackFragment=h),this.bufferFragmentData(F,h,y,o,it||ft)}else if(it||ft)h.gap=!0;else{this.backtrack(h);return}}if(Re){const{startPTS:ke,endPTS:it,startDTS:ft,endDTS:_t}=Re;y&&(y.elementaryStreams[ee.AUDIO]={startPTS:ke,endPTS:it,startDTS:ft,endDTS:_t}),h.setElementaryStreamInfo(ee.AUDIO,ke,it,ft,_t),this.bufferFragmentData(Re,h,y,o)}if(ue&&q!=null&&q.samples.length){const ke={id:t,frag:h,details:ue,samples:q.samples};r.trigger(I.FRAG_PARSING_METADATA,ke)}if(ue&&N){const ke={id:t,frag:h,details:ue,samples:N.samples};r.trigger(I.FRAG_PARSING_USERDATA,ke)}}logMuxedErr(e){this.warn(`${ut(e)?"Media":"Init"} segment with muxed audiovideo where only video expected: ${e.url}`)}_bufferInitSegment(e,t,r,i){if(this.state!==Zr.PARSING)return;this.audioOnly=!!t.audio&&!t.video,this.altAudio&&!this.audioOnly&&(delete t.audio,t.audiovideo&&this.logMuxedErr(r));const{audio:o,video:A,audiovideo:h}=t;if(o){const g=e.audioCodec;let F=Bn(o.codec,g);F==="mp4a"&&(F="mp4a.40.5");const N=navigator.userAgent.toLowerCase();if(this.audioCodecSwitch){F&&(F.indexOf("mp4a.40.5")!==-1?F="mp4a.40.2":F="mp4a.40.5");const q=o.metadata;q&&"channelCount"in q&&(q.channelCount||1)!==1&&N.indexOf("firefox")===-1&&(F="mp4a.40.5")}F&&F.indexOf("mp4a.40.5")!==-1&&N.indexOf("android")!==-1&&o.container!=="audio/mpeg"&&(F="mp4a.40.2",this.log(`Android: force audio codec to ${F}`)),g&&g!==F&&this.log(`Swapping manifest audio codec "${g}" for "${F}"`),o.levelCodec=F,o.id=R.MAIN,this.log(`Init audio buffer, container:${o.container}, codecs[selected/level/parsed]=[${F||""}/${g||""}/${o.codec}]`),delete t.audiovideo}if(A){A.levelCodec=e.videoCodec,A.id=R.MAIN;const g=A.codec;if((g==null?void 0:g.length)===4)switch(g){case"hvc1":case"hev1":A.codec="hvc1.1.6.L120.90";break;case"av01":A.codec="av01.0.04M.08";break;case"avc1":A.codec="avc1.42e01e";break}this.log(`Init video buffer, container:${A.container}, codecs[level/parsed]=[${e.videoCodec||""}/${g}]${A.codec!==g?" parsed-corrected="+A.codec:""}${A.supplemental?" supplemental="+A.supplemental:""}`),delete t.audiovideo}h&&(this.log(`Init audiovideo buffer, container:${h.container}, codecs[level/parsed]=[${e.codecs}/${h.codec}]`),delete t.video,delete t.audio);const y=Object.keys(t);if(y.length){if(this.hls.trigger(I.BUFFER_CODECS,t),!this.hls)return;y.forEach(g=>{const N=t[g].initSegment;N!=null&&N.byteLength&&this.hls.trigger(I.BUFFER_APPENDING,{type:g,data:N,frag:r,part:null,chunkMeta:i,parent:r.type})})}this.tickImmediate()}getMainFwdBufferInfo(){const e=this.mediaBuffer&&this.altAudio===2?this.mediaBuffer:this.media;return this.getFwdBufferInfo(e,R.MAIN)}get maxBufferLength(){const{levels:e,level:t}=this,r=e==null?void 0:e[t];return r?this.getMaxBufferLength(r.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=Zr.IDLE}checkFragmentChanged(){const e=this.media;let t=null;if(e&&e.readyState>1&&e.seeking===!1){const r=e.currentTime;if(oi.isBuffered(e,r)?t=this.getAppendedFrag(r):oi.isBuffered(e,r+.1)&&(t=this.getAppendedFrag(r+.1)),t){this.backtrackFragment=null;const i=this.fragPlaying,o=t.level;(!i||t.sn!==i.sn||i.level!==o)&&(this.fragPlaying=t,this.hls.trigger(I.FRAG_CHANGED,{frag:t}),(!i||i.level!==o)&&this.hls.trigger(I.LEVEL_SWITCHED,{level:o}))}}}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 Ie(t)?this.getAppendedFrag(t):null}get currentProgramDateTime(){var e;const t=((e=this.media)==null?void 0:e.currentTime)||this.lastCurrentTime;if(Ie(t)){const r=this.getLevelDetails(),i=this.currentFrag||(r?Ua(null,r.fragments,t):null);if(i){const o=i.programDateTime;if(o!==null){const A=o+(t-i.start)*1e3;return new Date(A)}}}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 ol extends V{constructor(e,t){super("key-loader",t),this.config=void 0,this.keyIdToKeyInfo={},this.emeController=null,this.config=e}abort(e){for(const r in this.keyIdToKeyInfo){const i=this.keyIdToKeyInfo[r].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=de.KEY_LOAD_ERROR,r,i,o){return new Si({type:Me.NETWORK_ERROR,details:t,fatal:!1,frag:e,response:o,error:r,networkDetails:i})}loadClear(e,t,r){if(this.emeController&&this.config.emeEnabled&&!this.emeController.getSelectedKeySystemFormats().length){if(t.length)for(let i=0,o=t.length;i<o;i++){const A=t[i];if(e.cc<=A.cc&&(!ut(e)||!ut(A)||e.sn<A.sn)||!r&&i==o-1)return this.emeController.selectKeySystemFormat(A).then(h=>{if(!this.emeController)return;A.setKeyFormat(h);const y=qA(h);if(y)return this.emeController.getKeySystemAccess([y])})}if(this.config.requireKeySystemAccessOnStart){const i=Fs(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 r,i;t&&e.setKeyFormat(t);const o=e.decryptdata;if(!o){const g=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,de.KEY_LOAD_ERROR,g))}const A=o.uri;if(!A)return Promise.reject(this.createKeyLoadError(e,de.KEY_LOAD_ERROR,new Error(`Invalid key URI: "${A}"`)));const h=Il(o);let y=this.keyIdToKeyInfo[h];if((r=y)!=null&&r.decryptdata.key)return o.key=y.decryptdata.key,Promise.resolve({frag:e,keyInfo:y});if(this.emeController&&(i=y)!=null&&i.keyLoadPromise)switch(this.emeController.getKeyStatus(y.decryptdata)){case"usable":case"usable-in-future":return y.keyLoadPromise.then(F=>{const{keyInfo:N}=F;return o.key=N.decryptdata.key,{frag:e,keyInfo:N}})}switch(this.log(`${this.keyIdToKeyInfo[h]?"Rel":"L"}oading${o.keyId?" keyId: "+pe(o.keyId):""} URI: ${o.uri} from ${e.type} ${e.level}`),y=this.keyIdToKeyInfo[h]={decryptdata:o,keyLoadPromise:null,loader:null,mediaKeySessionContext:null},o.method){case"SAMPLE-AES":case"SAMPLE-AES-CENC":case"SAMPLE-AES-CTR":return o.keyFormat==="identity"?this.loadKeyHTTP(y,e):this.loadKeyEME(y,e);case"AES-128":case"AES-256":case"AES-256-CTR":return this.loadKeyHTTP(y,e);default:return Promise.reject(this.createKeyLoadError(e,de.KEY_LOAD_ERROR,new Error(`Key supplied with unsupported METHOD: "${o.method}"`)))}}loadKeyEME(e,t){const r={frag:t,keyInfo:e};if(this.emeController&&this.config.emeEnabled){var i;if(!e.decryptdata.keyId&&(i=t.initSegment)!=null&&i.data){const A=xr(t.initSegment.data);if(A.length){const h=A[0];h.some(y=>y!==0)&&(this.log(`Using keyId found in init segment ${pe(h)}`),e.decryptdata.keyId=h,vl.setKeyIdForUri(e.decryptdata.uri,h))}}const o=this.emeController.loadKey(r);return(e.keyLoadPromise=o.then(A=>(e.mediaKeySessionContext=A,r))).catch(A=>{throw e.keyLoadPromise=null,"data"in A&&(A.data.frag=t),A})}return Promise.resolve(r)}loadKeyHTTP(e,t){const r=this.config,i=r.loader,o=new i(r);return t.keyLoader=e.loader=o,e.keyLoadPromise=new Promise((A,h)=>{const y={keyInfo:e,frag:t,responseType:"arraybuffer",url:e.decryptdata.uri},g=r.keyLoadPolicy.default,F={loadPolicy:g,timeout:g.maxLoadTimeMs,maxRetry:0,retryDelay:0,maxRetryDelay:0},N={onSuccess:(q,Ae,ue,Re)=>{const{frag:ke,keyInfo:it}=ue,ft=Il(it.decryptdata);if(!ke.decryptdata||it!==this.keyIdToKeyInfo[ft])return h(this.createKeyLoadError(ke,de.KEY_LOAD_ERROR,new Error("after key load, decryptdata unset or changed"),Re));it.decryptdata.key=ke.decryptdata.key=new Uint8Array(q.data),ke.keyLoader=null,it.loader=null,A({frag:ke,keyInfo:it})},onError:(q,Ae,ue,Re)=>{this.resetLoader(Ae),h(this.createKeyLoadError(t,de.KEY_LOAD_ERROR,new Error(`HTTP Error ${q.code} loading key ${q.text}`),ue,B({url:y.url,data:void 0},q)))},onTimeout:(q,Ae,ue)=>{this.resetLoader(Ae),h(this.createKeyLoadError(t,de.KEY_LOAD_TIMEOUT,new Error("key loading timed out"),ue))},onAbort:(q,Ae,ue)=>{this.resetLoader(Ae),h(this.createKeyLoadError(t,de.INTERNAL_ABORTED,new Error("key loading aborted"),ue))}};o.load(y,F,N)})}resetLoader(e){const{frag:t,keyInfo:r,url:i}=e,o=r.loader;t.keyLoader===o&&(t.keyLoader=null,r.loader=null);const A=Il(r.decryptdata)||i;delete this.keyIdToKeyInfo[A],o&&o.destroy()}}function Il(l){if(l.keyFormat!==mi.FAIRPLAY){const e=l.keyId;if(e)return pe(e)}return l.uri}function ju(l){const{type:e}=l;switch(e){case Be.AUDIO_TRACK:return R.AUDIO;case Be.SUBTITLE_TRACK:return R.SUBTITLE;default:return R.MAIN}}function Wl(l,e){let t=l.url;return(t===void 0||t.indexOf("data:")===0)&&(t=e.url),t}class $l{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(I.MANIFEST_LOADING,this.onManifestLoading,this),e.on(I.LEVEL_LOADING,this.onLevelLoading,this),e.on(I.AUDIO_TRACK_LOADING,this.onAudioTrackLoading,this),e.on(I.SUBTITLE_TRACK_LOADING,this.onSubtitleTrackLoading,this),e.on(I.LEVELS_UPDATED,this.onLevelsUpdated,this)}unregisterListeners(){const{hls:e}=this;e.off(I.MANIFEST_LOADING,this.onManifestLoading,this),e.off(I.LEVEL_LOADING,this.onLevelLoading,this),e.off(I.AUDIO_TRACK_LOADING,this.onAudioTrackLoading,this),e.off(I.SUBTITLE_TRACK_LOADING,this.onSubtitleTrackLoading,this),e.off(I.LEVELS_UPDATED,this.onLevelsUpdated,this)}createInternalLoader(e){const t=this.hls.config,r=t.pLoader,i=t.loader,o=r||i,A=new o(t);return this.loaders[e.type]=A,A}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:r}=t;this.variableList=null,this.load({id:null,level:0,responseType:"text",type:Be.MANIFEST,url:r,deliveryDirectives:null,levelOrTrack:null})}onLevelLoading(e,t){const{id:r,level:i,pathwayId:o,url:A,deliveryDirectives:h,levelInfo:y}=t;this.load({id:r,level:i,pathwayId:o,responseType:"text",type:Be.LEVEL,url:A,deliveryDirectives:h,levelOrTrack:y})}onAudioTrackLoading(e,t){const{id:r,groupId:i,url:o,deliveryDirectives:A,track:h}=t;this.load({id:r,groupId:i,level:null,responseType:"text",type:Be.AUDIO_TRACK,url:o,deliveryDirectives:A,levelOrTrack:h})}onSubtitleTrackLoading(e,t){const{id:r,groupId:i,url:o,deliveryDirectives:A,track:h}=t;this.load({id:r,groupId:i,level:null,responseType:"text",type:Be.SUBTITLE_TRACK,url:o,deliveryDirectives:A,levelOrTrack:h})}onLevelsUpdated(e,t){const r=this.loaders[Be.LEVEL];if(r){const i=r.context;i&&!t.levels.some(o=>o===i.levelOrTrack)&&(r.abort(),delete this.loaders[Be.LEVEL])}}load(e){var t;const r=this.hls.config;let i=this.getInternalLoader(e);if(i){const g=this.hls.logger,F=i.context;if(F&&F.levelOrTrack===e.levelOrTrack&&(F.url===e.url||F.deliveryDirectives&&!e.deliveryDirectives)){F.url===e.url?g.log(`[playlist-loader]: ignore ${e.url} ongoing request`):g.log(`[playlist-loader]: ignore ${e.url} in favor of ${F.url}`);return}g.log(`[playlist-loader]: aborting previous loader for type: ${e.type}`),i.abort()}let o;if(e.type===Be.MANIFEST?o=r.manifestLoadPolicy.default:o=w({},r.playlistLoadPolicy.default,{timeoutRetry:null,errorRetry:null}),i=this.createInternalLoader(e),Ie((t=e.deliveryDirectives)==null?void 0:t.part)){let g;if(e.type===Be.LEVEL&&e.level!==null?g=this.hls.levels[e.level].details:e.type===Be.AUDIO_TRACK&&e.id!==null?g=this.hls.audioTracks[e.id].details:e.type===Be.SUBTITLE_TRACK&&e.id!==null&&(g=this.hls.subtitleTracks[e.id].details),g){const F=g.partTarget,N=g.targetduration;if(F&&N){const q=Math.max(F*3,N*.8)*1e3;o=w({},o,{maxTimeToFirstByteMs:Math.min(q,o.maxTimeToFirstByteMs),maxLoadTimeMs:Math.min(q,o.maxTimeToFirstByteMs)})}}}const A=o.errorRetry||o.timeoutRetry||{},h={loadPolicy:o,timeout:o.maxLoadTimeMs,maxRetry:A.maxNumRetry||0,retryDelay:A.retryDelayMs||0,maxRetryDelay:A.maxRetryDelayMs||0},y={onSuccess:(g,F,N,q)=>{const Ae=this.getInternalLoader(N);this.resetInternalLoader(N.type);const ue=g.data;F.parsing.start=performance.now(),ea.isMediaPlaylist(ue)||N.type!==Be.MANIFEST?this.handleTrackOrLevelPlaylist(g,F,N,q||null,Ae):this.handleMasterPlaylist(g,F,N,q)},onError:(g,F,N,q)=>{this.handleNetworkError(F,N,!1,g,q)},onTimeout:(g,F,N)=>{this.handleNetworkError(F,N,!0,void 0,g)}};i.load(e,h,y)}checkAutostartLoad(){if(!this.hls)return;const{config:{autoStartLoad:e,startPosition:t},forceStartLoad:r}=this.hls;(e||r)&&(this.hls.logger.log(`${e?"auto":"force"} startLoad with configured startPosition ${t}`),this.hls.startLoad(t))}handleMasterPlaylist(e,t,r,i){const o=this.hls,A=e.data,h=Wl(e,r),y=ea.parseMasterPlaylist(A,h);if(y.playlistParsingError){t.parsing.end=performance.now(),this.handleManifestParsingError(e,r,y.playlistParsingError,i,t);return}const{contentSteering:g,levels:F,sessionData:N,sessionKeys:q,startTimeOffset:Ae,variableList:ue}=y;this.variableList=ue,F.forEach(ft=>{const{unknownCodecs:_t}=ft;if(_t){const{preferManagedMediaSource:zt}=this.hls.config;let{audioCodec:ir,videoCodec:Nr}=ft;for(let or=_t.length;or--;){const Cr=_t[or];Dt(Cr,"audio",zt)?(ft.audioCodec=ir=ir?`${ir},${Cr}`:Cr,Wr.audio[ir.substring(0,4)]=2,_t.splice(or,1)):Dt(Cr,"video",zt)&&(ft.videoCodec=Nr=Nr?`${Nr},${Cr}`:Cr,Wr.video[Nr.substring(0,4)]=2,_t.splice(or,1))}}});const{AUDIO:Re=[],SUBTITLES:ke,"CLOSED-CAPTIONS":it}=ea.parseMasterPlaylistMedia(A,h,y);Re.length&&!Re.some(_t=>!_t.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"),Re.unshift({type:"main",name:"main",groupId:"main",default:!1,autoselect:!1,forced:!1,id:-1,attrs:new gi({}),bitrate:0,url:""})),o.trigger(I.MANIFEST_LOADED,{levels:F,audioTracks:Re,subtitles:ke,captions:it,contentSteering:g,url:h,stats:t,networkDetails:i,sessionData:N,sessionKeys:q,startTimeOffset:Ae,variableList:ue})}handleTrackOrLevelPlaylist(e,t,r,i,o){const A=this.hls,{id:h,level:y,type:g}=r,F=Wl(e,r),N=Ie(y)?y:Ie(h)?h:0,q=ju(r),Ae=ea.parseLevelPlaylist(e.data,F,N,q,0,this.variableList);if(g===Be.MANIFEST){const ue={attrs:new gi({}),bitrate:0,details:Ae,name:"",url:F};Ae.requestScheduled=t.loading.start+JA(Ae,0),A.trigger(I.MANIFEST_LOADED,{levels:[ue],audioTracks:[],url:F,stats:t,networkDetails:i,sessionData:null,sessionKeys:null,contentSteering:null,startTimeOffset:null,variableList:null})}t.parsing.end=performance.now(),r.levelDetails=Ae,this.handlePlaylistLoaded(Ae,e,t,r,i,o)}handleManifestParsingError(e,t,r,i,o){this.hls.trigger(I.ERROR,{type:Me.NETWORK_ERROR,details:de.MANIFEST_PARSING_ERROR,fatal:t.type===Be.MANIFEST,url:e.url,err:r,error:r,reason:r.message,response:e,context:t,networkDetails:i,stats:o})}handleNetworkError(e,t,r=!1,i,o){let A=`A network ${r?"timeout":"error"+(i?" (status "+i.code+")":"")} occurred while loading ${e.type}`;e.type===Be.LEVEL?A+=`: ${e.level} id: ${e.id}`:(e.type===Be.AUDIO_TRACK||e.type===Be.SUBTITLE_TRACK)&&(A+=` id: ${e.id} group-id: "${e.groupId}"`);const h=new Error(A);this.hls.logger.warn(`[playlist-loader]: ${A}`);let y=de.UNKNOWN,g=!1;const F=this.getInternalLoader(e);switch(e.type){case Be.MANIFEST:y=r?de.MANIFEST_LOAD_TIMEOUT:de.MANIFEST_LOAD_ERROR,g=!0;break;case Be.LEVEL:y=r?de.LEVEL_LOAD_TIMEOUT:de.LEVEL_LOAD_ERROR,g=!1;break;case Be.AUDIO_TRACK:y=r?de.AUDIO_TRACK_LOAD_TIMEOUT:de.AUDIO_TRACK_LOAD_ERROR,g=!1;break;case Be.SUBTITLE_TRACK:y=r?de.SUBTITLE_TRACK_LOAD_TIMEOUT:de.SUBTITLE_LOAD_ERROR,g=!1;break}F&&this.resetInternalLoader(e.type);const N={type:Me.NETWORK_ERROR,details:y,fatal:g,url:e.url,loader:F,context:e,error:h,networkDetails:t,stats:o};if(i){const q=(t==null?void 0:t.url)||e.url;N.response=B({url:q,data:void 0},i)}this.hls.trigger(I.ERROR,N)}handlePlaylistLoaded(e,t,r,i,o,A){const h=this.hls,{type:y,level:g,levelOrTrack:F,id:N,groupId:q,deliveryDirectives:Ae}=i,ue=Wl(t,i),Re=ju(i);let ke=typeof i.level=="number"&&Re===R.MAIN?g:void 0;const it=e.playlistParsingError;if(it){if(this.hls.logger.warn(`${it} ${e.url}`),!h.config.ignorePlaylistParsingErrors){h.trigger(I.ERROR,{type:Me.NETWORK_ERROR,details:de.LEVEL_PARSING_ERROR,fatal:!1,url:ue,error:it,reason:it.message,response:t,context:i,level:ke,parent:Re,networkDetails:o,stats:r});return}e.playlistParsingError=null}if(!e.fragments.length){const ft=e.playlistParsingError=new Error("No Segments found in Playlist");h.trigger(I.ERROR,{type:Me.NETWORK_ERROR,details:de.LEVEL_EMPTY_ERROR,fatal:!1,url:ue,error:ft,reason:ft.message,response:t,context:i,level:ke,parent:Re,networkDetails:o,stats:r});return}switch(e.live&&A&&(A.getCacheAge&&(e.ageHeader=A.getCacheAge()||0),(!A.getCacheAge||isNaN(e.ageHeader))&&(e.ageHeader=0)),y){case Be.MANIFEST:case Be.LEVEL:if(ke){if(!F)ke=0;else if(F!==h.levels[ke]){const ft=h.levels.indexOf(F);ft>-1&&(ke=ft)}}h.trigger(I.LEVEL_LOADED,{details:e,levelInfo:F||h.levels[0],level:ke||0,id:N||0,stats:r,networkDetails:o,deliveryDirectives:Ae,withoutMultiVariant:y===Be.MANIFEST});break;case Be.AUDIO_TRACK:h.trigger(I.AUDIO_TRACK_LOADED,{details:e,track:F,id:N||0,groupId:q||"",stats:r,networkDetails:o,deliveryDirectives:Ae});break;case Be.SUBTITLE_TRACK:h.trigger(I.SUBTITLE_TRACK_LOADED,{details:e,track:F,id:N||0,groupId:q||"",stats:r,networkDetails:o,deliveryDirectives:Ae});break}}}class rA{static get version(){return vA}static isMSESupported(){return so()}static isSupported(){return yu()}static getMediaSource(){return Ue()}static get Events(){return I}static get MetadataSchema(){return uo}static get ErrorTypes(){return Me}static get ErrorDetails(){return de}static get DefaultConfig(){return rA.defaultConfig?rA.defaultConfig:vt}static set DefaultConfig(e){rA.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 tc,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=He(e.debug||!1,"Hls instance",e.assetPlayerId),r=this.config=lr(rA.DefaultConfig,e,t);this.userConfig=e,r.progressive&&Gr(r,t);const{abrController:i,bufferController:o,capLevelController:A,errorController:h,fpsController:y}=r,g=new h(this),F=this.abrController=new i(this),N=new dl(this),q=r.interstitialsController,Ae=q?this.interstitialsController=new q(this,rA):null,ue=this.bufferController=new o(this,N),Re=this.capLevelController=new A(this),ke=new y(this),it=new $l(this),ft=r.contentSteeringController,_t=ft?new ft(this):null,zt=this.levelController=new wA(this,_t),ir=new Bi(this),Nr=new ol(this.config,this.logger),or=this.streamController=new gc(this,N,Nr),Cr=this.gapController=new Wn(this,N);Re.setStreamController(or),ke.setStreamController(or);const br=[it,zt,or];Ae&&br.splice(1,0,Ae),_t&&br.splice(1,0,_t),this.networkControllers=br;const pr=[F,ue,Cr,Re,ke,ir,N];this.audioTrackController=this.createController(r.audioTrackController,br);const qr=r.audioStreamController;qr&&br.push(this.audioStreamController=new qr(this,N,Nr)),this.subtitleTrackController=this.createController(r.subtitleTrackController,br);const Cn=r.subtitleStreamController;Cn&&br.push(this.subtititleStreamController=new Cn(this,N,Nr)),this.createController(r.timelineController,pr),Nr.emeController=this.emeController=this.createController(r.emeController,pr),this.cmcdController=this.createController(r.cmcdController,pr),this.latencyController=this.createController(xn,pr),this.coreComponents=pr,br.push(g);const Yn=g.onErrorOut;typeof Yn=="function"&&this.on(I.ERROR,Yn,g),this.on(I.MANIFEST_LOADED,it.onManifestLoaded,it)}createController(e,t){if(e){const r=new e(this);return t&&t.push(r),r}return null}on(e,t,r=this){this._emitter.on(e,t,r)}once(e,t,r=this){this._emitter.once(e,t,r)}removeAllListeners(e){this._emitter.removeAllListeners(e)}off(e,t,r=this,i){this._emitter.off(e,t,r,i)}listeners(e){return this._emitter.listeners(e)}emit(e,t,r){return this._emitter.emit(e,t,r)}trigger(e,t){if(this.config.debug)return this.emit(e,e,t);try{return this.emit(e,e,t)}catch(r){if(this.logger.error("An internal error happened while handling event "+e+'. Error message: "'+r.message+'". Here is a stacktrace:',r),!this.triggeringException){this.triggeringException=!0;const i=e===I.ERROR;this.trigger(I.ERROR,{type:Me.OTHER_ERROR,details:de.INTERNAL_EXCEPTION,fatal:i,event:e,error:r}),this.triggeringException=!1}}return!1}listenerCount(e){return this._emitter.listenerCount(e)}destroy(){this.logger.log("destroy"),this.trigger(I.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 o=new Error(`attachMedia failed: invalid argument (${e})`);this.trigger(I.ERROR,{type:Me.OTHER_ERROR,details:de.ATTACH_MEDIA_ERROR,fatal:!0,error:o});return}this.logger.log("attachMedia"),this._media&&(this.logger.warn("media must be detached before attaching"),this.detachMedia());const t="media"in e,r=t?e.media:e,i=t?e:{media:r};this._media=r,this.trigger(I.MEDIA_ATTACHING,i)}detachMedia(){this.logger.log("detachMedia"),this.trigger(I.MEDIA_DETACHING,{}),this._media=null}transferMedia(){this._media=null;const e=this.bufferController.transferMedia();return this.trigger(I.MEDIA_DETACHING,{transferMedia:e}),e}loadSource(e){this.stopLoad();const t=this.media,r=this._url,i=this._url=z.buildAbsoluteURL(self.location.href,e,{alwaysNormalize:!0});this._autoLevelCapping=-1,this._maxHdcpLevel=null,this.logger.log(`loadSource:${i}`),t&&r&&(r!==i||this.bufferController.hasSourceTypes())&&(this.detachMedia(),this.attachMedia(t)),this.trigger(I.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 r=0;r<this.networkControllers.length&&(this.networkControllers[r].startLoad(e,t),!(!this.started||!this.networkControllers));r++);}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={[R.MAIN]:this.streamController.inFlightFrag};return this.audioStreamController&&(e[R.AUDIO]=this.audioStreamController.inFlightFrag),this.subtititleStreamController&&(e[R.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=C0()),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){Ea(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 r=e.length;for(let i=0;i<r;i++)if(e[i].maxBitrate>=t)return i;return 0}get maxAutoLevel(){const{levels:e,autoLevelCapping:t,maxHdcpLevel:r}=this;let i;if(t===-1&&e!=null&&e.length?i=e.length-1:i=t,r)for(let o=i;o--;){const A=e[o].attrs["HDCP-LEVEL"];if(A&&A<=r)return o}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 r=yo(t);return fn(e,r,navigator.mediaCapabilities)}}rA.defaultConfig=void 0}}]);
|
|
|
}()); |