You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
NewEduCoderBuild/p__virtualSpaces__Lists__An...

1345 lines
1.4 MiB

!(function(){var Yo=Math.pow;(self.webpackChunk=self.webpackChunk||[]).push([[7477],{70557:function(Ht,et,_){"use strict";_.d(et,{Z:function(){return be}});var T=_(96663),N=_(59301),ie={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M862 465.3h-81c-4.6 0-9 2-12.1 5.5L550 723.1V160c0-4.4-3.6-8-8-8h-60c-4.4 0-8 3.6-8 8v563.1L255.1 470.8c-3-3.5-7.4-5.5-12.1-5.5h-81c-6.8 0-10.5 8.1-6 13.2L487.9 861a31.96 31.96 0 0048.3 0L868 478.5c4.5-5.2.8-13.2-6-13.2z"}}]},name:"arrow-down",theme:"outlined"},Re=ie,ve=_(7657),le=function(L,$){return N.createElement(ve.Z,(0,T.Z)({},L,{ref:$,icon:Re}))},Te=N.forwardRef(le),be=Te},40001:function(Ht,et,_){"use strict";_.d(et,{Z:function(){return be}});var T=_(96663),N=_(59301),ie={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M912 190h-69.9c-9.8 0-19.1 4.5-25.1 12.2L404.7 724.5 207 474a32 32 0 00-25.1-12.2H112c-6.7 0-10.4 7.7-6.3 12.9l273.9 347c12.8 16.2 37.4 16.2 50.3 0l488.4-618.9c4.1-5.1.4-12.8-6.3-12.8z"}}]},name:"check",theme:"outlined"},Re=ie,ve=_(7657),le=function(L,$){return N.createElement(ve.Z,(0,T.Z)({},L,{ref:$,icon:Re}))},Te=N.forwardRef(le),be=Te},49198:function(Ht,et,_){"use strict";_.d(et,{Z:function(){return be}});var T=_(96663),N=_(59301),ie={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M533.2 492.3L277.9 166.1c-3-3.9-7.7-6.1-12.6-6.1H188c-6.7 0-10.4 7.7-6.3 12.9L447.1 512 181.7 851.1A7.98 7.98 0 00188 864h77.3c4.9 0 9.6-2.3 12.6-6.1l255.3-326.1c9.1-11.7 9.1-27.9 0-39.5zm304 0L581.9 166.1c-3-3.9-7.7-6.1-12.6-6.1H492c-6.7 0-10.4 7.7-6.3 12.9L751.1 512 485.7 851.1A7.98 7.98 0 00492 864h77.3c4.9 0 9.6-2.3 12.6-6.1l255.3-326.1c9.1-11.7 9.1-27.9 0-39.5z"}}]},name:"double-right",theme:"outlined"},Re=ie,ve=_(7657),le=function(L,$){return N.createElement(ve.Z,(0,T.Z)({},L,{ref:$,icon:Re}))},Te=N.forwardRef(le),be=Te},84105:function(Ht,et,_){"use strict";_.d(et,{Z:function(){return be}});var T=_(96663),N=_(59301),ie={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M884 256h-75c-5.1 0-9.9 2.5-12.9 6.6L512 654.2 227.9 262.6c-3-4.1-7.8-6.6-12.9-6.6h-75c-6.5 0-10.3 7.4-6.5 12.7l352.6 486.1c12.8 17.6 39 17.6 51.7 0l352.6-486.1c3.9-5.3.1-12.7-6.4-12.7z"}}]},name:"down",theme:"outlined"},Re=ie,ve=_(7657),le=function(L,$){return N.createElement(ve.Z,(0,T.Z)({},L,{ref:$,icon:Re}))},Te=N.forwardRef(le),be=Te},18785:function(Ht,et,_){"use strict";_.d(et,{Z:function(){return be}});var T=_(96663),N=_(59301),ie={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M176 511a56 56 0 10112 0 56 56 0 10-112 0zm280 0a56 56 0 10112 0 56 56 0 10-112 0zm280 0a56 56 0 10112 0 56 56 0 10-112 0z"}}]},name:"ellipsis",theme:"outlined"},Re=ie,ve=_(7657),le=function(L,$){return N.createElement(ve.Z,(0,T.Z)({},L,{ref:$,icon:Re}))},Te=N.forwardRef(le),be=Te},73331:function(Ht,et,_){"use strict";_.d(et,{Z:function(){return be}});var T=_(96663),N=_(59301),ie={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M942.2 486.2Q889.47 375.11 816.7 305l-50.88 50.88C807.31 395.53 843.45 447.4 874.7 512 791.5 684.2 673.4 766 512 766q-72.67 0-133.87-22.38L323 798.75Q408 838 512 838q288.3 0 430.2-300.3a60.29 60.29 0 000-51.5zm-63.57-320.64L836 122.88a8 8 0 00-11.32 0L715.31 232.2Q624.86 186 512 186q-288.3 0-430.2 300.3a60.3 60.3 0 000 51.5q56.69 119.4 136.5 191.41L112.48 835a8 8 0 000 11.31L155.17 889a8 8 0 0011.31 0l712.15-712.12a8 8 0 000-11.32zM149.3 512C232.6 339.8 350.7 258 512 258c54.54 0 104.13 9.36 149.12 28.39l-70.3 70.3a176 176 0 00-238.13 238.13l-83.42 83.42C223.1 637.49 183.3 582.28 149.3 512zm246.7 0a112.11 112.11 0 01146.2-106.69L401.31 546.2A112 112 0 01396 512z"}},{tag:"path",attrs:{d:"M508 624c-3.46 0-6.87-.16-10.25-.47l-52.82 52.82a176.09 176.09 0 00227.42-227.42l-52.82 52.82c.31 3.38.47 6.79.47 10.25a111.94 111.94 0 01-112 112z"}}]},name:"eye-invisible",theme:"outlined"},Re=ie,ve=_(7657),le=function(L,$){return N.createElement(ve.Z,(0,T.Z)({},L,{ref:$,icon:Re}))},Te=N.forwardRef(le),be=Te},15277:function(Ht,et,_){"use strict";_.d(et,{Z:function(){return be}});var T=_(96663),N=_(59301),ie={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M942.2 486.2C847.4 286.5 704.1 186 512 186c-192.2 0-335.4 100.5-430.2 300.3a60.3 60.3 0 000 51.5C176.6 737.5 319.9 838 512 838c192.2 0 335.4-100.5 430.2-300.3 7.7-16.2 7.7-35 0-51.5zM512 766c-161.3 0-279.4-81.8-362.7-254C232.6 339.8 350.7 258 512 258c161.3 0 279.4 81.8 362.7 254C791.5 684.2 673.4 766 512 766zm-4-430c-97.2 0-176 78.8-176 176s78.8 176 176 176 176-78.8 176-176-78.8-176-176-176zm0 288c-61.9 0-112-50.1-112-112s50.1-112 112-112 112 50.1 112 112-50.1 112-112 112z"}}]},name:"eye",theme:"outlined"},Re=ie,ve=_(7657),le=function(L,$){return N.createElement(ve.Z,(0,T.Z)({},L,{ref:$,icon:Re}))},Te=N.forwardRef(le),be=Te},33853:function(Ht,et,_){"use strict";_.d(et,{Z:function(){return be}});var T=_(96663),N=_(59301),ie={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M724 218.3V141c0-6.7-7.7-10.4-12.9-6.3L260.3 486.8a31.86 31.86 0 000 50.3l450.8 352.1c5.3 4.1 12.9.4 12.9-6.3v-77.3c0-4.9-2.3-9.6-6.1-12.6l-360-281 360-281.1c3.8-3 6.1-7.7 6.1-12.6z"}}]},name:"left",theme:"outlined"},Re=ie,ve=_(7657),le=function(L,$){return N.createElement(ve.Z,(0,T.Z)({},L,{ref:$,icon:Re}))},Te=N.forwardRef(le),be=Te},38819:function(Ht,et,_){"use strict";_.d(et,{Z:function(){return be}});var T=_(96663),N=_(59301),ie={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M765.7 486.8L314.9 134.7A7.97 7.97 0 00302 141v77.3c0 4.9 2.3 9.6 6.1 12.6l360 281.1-360 281.1c-3.9 3-6.1 7.7-6.1 12.6V883c0 6.7 7.7 10.4 12.9 6.3l450.8-352.1a31.96 31.96 0 000-50.4z"}}]},name:"right",theme:"outlined"},Re=ie,ve=_(7657),le=function(L,$){return N.createElement(ve.Z,(0,T.Z)({},L,{ref:$,icon:Re}))},Te=N.forwardRef(le),be=Te},47472:function(Ht,et,_){"use strict";_.d(et,{Z:function(){return be}});var T=_(96663),N=_(59301),ie={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M909.6 854.5L649.9 594.8C690.2 542.7 712 479 712 412c0-80.2-31.3-155.4-87.9-212.1-56.6-56.7-132-87.9-212.1-87.9s-155.5 31.3-212.1 87.9C143.2 256.5 112 331.8 112 412c0 80.1 31.3 155.5 87.9 212.1C256.5 680.8 331.8 712 412 712c67 0 130.6-21.8 182.7-62l259.7 259.6a8.2 8.2 0 0011.6 0l43.6-43.5a8.2 8.2 0 000-11.6zM570.4 570.4C528 612.7 471.8 636 412 636s-116-23.3-158.4-65.6C211.3 528 188 471.8 188 412s23.3-116.1 65.6-158.4C296 211.3 352.2 188 412 188s116.1 23.2 158.4 65.6S636 352.2 636 412s-23.3 116.1-65.6 158.4z"}}]},name:"search",theme:"outlined"},Re=ie,ve=_(7657),le=function(L,$){return N.createElement(ve.Z,(0,T.Z)({},L,{ref:$,icon:Re}))},Te=N.forwardRef(le),be=Te},35593:function(Ht,et,_){"use strict";_.d(et,{Z:function(){return Et}});var T=_(44127),N=_(72071),ie=_(6620),Re=_(43403),ve=_(92310),le=_.n(ve),Te=_(29301),be=_(76846),o=_(96452),L=_(6089),$=_(80402),v=_(34280),c=_(49658),S=_(59301),y=_(96663),q=_(77900),ae=_(8654);function P(oe){var _e=oe.prefixCls,M=oe.align,ce=oe.arrow,xe=oe.arrowPos,O=ce||{},C=O.className,k=O.content,he=xe.x,de=he===void 0?0:he,K=xe.y,Ie=K===void 0?0:K,$e=S.useRef();if(!M||!M.points)return null;var Me={position:"absolute"};if(M.autoArrow!==!1){var Be=M.points[0],Ye=M.points[1],Qe=Be[0],Je=Be[1],dt=Ye[0],At=Ye[1];Qe===dt||!["t","b"].includes(Qe)?Me.top=Ie:Qe==="t"?Me.top=0:Me.bottom=0,Je===At||!["l","r"].includes(Je)?Me.left=de:Je==="l"?Me.left=0:Me.right=0}return S.createElement("div",{ref:$e,className:le()("".concat(_e,"-arrow"),C),style:Me},k)}function z(oe){var _e=oe.prefixCls,M=oe.open,ce=oe.zIndex,xe=oe.mask,O=oe.motion;return xe?S.createElement(q.default,(0,y.Z)({},O,{motionAppear:!0,visible:M,removeOnLeave:!0}),function(C){var k=C.className;return S.createElement("div",{style:{zIndex:ce},className:le()("".concat(_e,"-mask"),k)})}):null}var W=S.memo(function(oe){var _e=oe.children;return _e},function(oe,_e){return _e.cache}),re=W,b=S.forwardRef(function(oe,_e){var M=oe.popup,ce=oe.className,xe=oe.prefixCls,O=oe.style,C=oe.target,k=oe.onVisibleChanged,he=oe.open,de=oe.keepDom,K=oe.fresh,Ie=oe.onClick,$e=oe.mask,Me=oe.arrow,Be=oe.arrowPos,Ye=oe.align,Qe=oe.motion,Je=oe.maskMotion,dt=oe.forceRender,At=oe.getPopupContainer,gt=oe.autoDestroy,Rt=oe.portal,Ct=oe.zIndex,x=oe.onMouseEnter,A=oe.onMouseLeave,rt=oe.onPointerEnter,Y=oe.ready,Ce=oe.offsetX,vn=oe.offsetY,ke=oe.offsetR,He=oe.offsetB,We=oe.onAlign,te=oe.onPrepare,pe=oe.stretch,De=oe.targetWidth,ze=oe.targetHeight,V=typeof M=="function"?M():M,kt=he||de,Le=(At==null?void 0:At.length)>0,jt=S.useState(!At||!Le),ln=(0,N.Z)(jt,2),bt=ln[0],Lt=ln[1];if((0,v.Z)(function(){!bt&&Le&&C&&Lt(!0)},[bt,Le,C]),!bt)return null;var ot="auto",ft={left:"-1000vw",top:"-1000vh",right:ot,bottom:ot};if(Y||!he){var Gt,yn=Ye.points,nn=Ye.dynamicInset||((Gt=Ye._experimental)===null||Gt===void 0?void 0:Gt.dynamicInset),je=nn&&yn[0][1]==="r",we=nn&&yn[0][0]==="b";je?(ft.right=ke,ft.left=ot):(ft.left=Ce,ft.right=ot),we?(ft.bottom=He,ft.top=ot):(ft.top=vn,ft.bottom=ot)}var ut={};return pe&&(pe.includes("height")&&ze?ut.height=ze:pe.includes("minHeight")&&ze&&(ut.minHeight=ze),pe.includes("width")&&De?ut.width=De:pe.includes("minWidth")&&De&&(ut.minWidth=De)),he||(ut.pointerEvents="none"),S.createElement(Rt,{open:dt||kt,getContainer:At&&function(){return At(C)},autoDestroy:gt},S.createElement(z,{prefixCls:xe,open:he,zIndex:Ct,mask:$e,motion:Je}),S.createElement(Te.Z,{onResize:We,disabled:!he},function(it){return S.createElement(q.default,(0,y.Z)({motionAppear:!0,motionEnter:!0,motionLeave:!0,removeOnLeave:!1,forceRender:dt,leavedClassName:"".concat(xe,"-hidden")},Qe,{onAppearPrepare:te,onEnterPrepare:te,visible:he,onVisibleChanged:function(Mt){var Kt;Qe==null||(Kt=Qe.onVisibleChanged)===null||Kt===void 0||Kt.call(Qe,Mt),k(Mt)}}),function(yt,Mt){var Kt=yt.className,Pt=yt.style,Zt=le()(xe,Kt,ce);return S.createElement("div",{ref:(0,ae.sQ)(it,_e,Mt),className:Zt,style:(0,T.Z)((0,T.Z)((0,T.Z)((0,T.Z)({"--arrow-x":"".concat(Be.x||0,"px"),"--arrow-y":"".concat(Be.y||0,"px")},ft),ut),Pt),{},{boxSizing:"border-box",zIndex:Ct},O),onMouseEnter:x,onMouseLeave:A,onPointerEnter:rt,onClick:Ie},Me&&S.createElement(P,{prefixCls:xe,arrow:Me,arrowPos:Be,align:Ye}),S.createElement(re,{cache:!he&&!K},V))})}))}),D=b,F=S.forwardRef(function(oe,_e){var M=oe.children,ce=oe.getTriggerDOMNode,xe=(0,ae.Yr)(M),O=S.useCallback(function(k){(0,ae.mH)(_e,ce?ce(k):k)},[ce]),C=(0,ae.x1)(O,M.ref);return xe?S.cloneElement(M,{ref:C}):M}),U=F,fe=S.createContext(null),ye=fe;function Se(oe){return oe?Array.isArray(oe)?oe:[oe]:[]}function Ne(oe,_e,M,ce){return S.useMemo(function(){var xe=Se(M!=null?M:_e),O=Se(ce!=null?ce:_e),C=new Set(xe),k=new Set(O);return oe&&(C.has("hover")&&(C.delete("hover"),C.add("click")),k.has("hover")&&(k.delete("hover"),k.add("click"))),[C,k]},[oe,_e,M,ce])}var Z=_(29194);function B(){var oe=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],_e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],M=arguments.length>2?arguments[2]:void 0;return M?oe[0]===_e[0]:oe[0]===_e[0]&&oe[1]===_e[1]}function ne(oe,_e,M,ce){for(var xe=M.points,O=Object.keys(oe),C=0;C<O.length;C+=1){var k,he=O[C];if(B((k=oe[he])===null||k===void 0?void 0:k.points,xe,ce))return"".concat(_e,"-placement-").concat(he)}return""}function X(oe,_e,M,ce){return _e||(M?{motionName:"".concat(oe,"-").concat(M)}:ce?{motionName:ce}:null)}function me(oe){return oe.ownerDocument.defaultView}function ee(oe){for(var _e=[],M=oe==null?void 0:oe.parentElement,ce=["hidden","scroll","clip","auto"];M;){var xe=me(M).getComputedStyle(M),O=xe.overflowX,C=xe.overflowY,k=xe.overflow;[O,C,k].some(function(he){return ce.includes(he)})&&_e.push(M),M=M.parentElement}return _e}function g(oe){var _e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1;return Number.isNaN(oe)?_e:oe}function w(oe){return g(parseFloat(oe),0)}function Q(oe,_e){var M=(0,T.Z)({},oe);return(_e||[]).forEach(function(ce){if(!(ce instanceof HTMLBodyElement||ce instanceof HTMLHtmlElement)){var xe=me(ce).getComputedStyle(ce),O=xe.overflow,C=xe.overflowClipMargin,k=xe.borderTopWidth,he=xe.borderBottomWidth,de=xe.borderLeftWidth,K=xe.borderRightWidth,Ie=ce.getBoundingClientRect(),$e=ce.offsetHeight,Me=ce.clientHeight,Be=ce.offsetWidth,Ye=ce.clientWidth,Qe=w(k),Je=w(he),dt=w(de),At=w(K),gt=g(Math.round(Ie.width/Be*1e3)/1e3),Rt=g(Math.round(Ie.height/$e*1e3)/1e3),Ct=(Be-Ye-dt-At)*gt,x=($e-Me-Qe-Je)*Rt,A=Qe*Rt,rt=Je*Rt,Y=dt*gt,Ce=At*gt,vn=0,ke=0;if(O==="clip"){var He=w(C);vn=He*gt,ke=He*Rt}var We=Ie.x+Y-vn,te=Ie.y+A-ke,pe=We+Ie.width+2*vn-Y-Ce-Ct,De=te+Ie.height+2*ke-A-rt-x;M.left=Math.max(M.left,We),M.top=Math.max(M.top,te),M.right=Math.min(M.right,pe),M.bottom=Math.min(M.bottom,De)}}),M}function J(oe){var _e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,M="".concat(_e),ce=M.match(/^(.*)\%$/);return ce?oe*(parseFloat(ce[1])/100):parseFloat(M)}function Pe(oe,_e){var M=_e||[],ce=(0,N.Z)(M,2),xe=ce[0],O=ce[1];return[J(oe.width,xe),J(oe.height,O)]}function Ue(){var oe=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"";return[oe[0],oe[1]]}function Xe(oe,_e){var M=_e[0],ce=_e[1],xe,O;return M==="t"?O=oe.y:M==="b"?O=oe.y+oe.height:O=oe.y+oe.height/2,ce==="l"?xe=oe.x:ce==="r"?xe=oe.x+oe.width:xe=oe.x+oe.width/2,{x:xe,y:O}}function Ze(oe,_e){var M={t:"b",b:"t",l:"r",r:"l"};return oe.map(function(ce,xe){return xe===_e?M[ce]||"c":ce}).join("")}function lt(oe,_e,M,ce,xe,O,C){var k=S.useState({ready:!1,offsetX:0,offsetY:0,offsetR:0,offsetB:0,arrowX:0,arrowY:0,scaleX:1,scaleY:1,align:xe[ce]||{}}),he=(0,N.Z)(k,2),de=he[0],K=he[1],Ie=S.useRef(0),$e=S.useMemo(function(){return _e?ee(_e):[]},[_e]),Me=S.useRef({}),Be=function(){Me.current={}};oe||Be();var Ye=(0,L.Z)(function(){if(_e&&M&&oe){let Cn=function(er,dr){var Hr=arguments.length>2&&arguments[2]!==void 0?arguments[2]:Zt,Dr=V.x+er,zr=V.y+dr,Wr=Dr+Gt,bi=zr+ft,xi=Math.max(Dr,Hr.left),Hi=Math.max(zr,Hr.top),Ni=Math.min(Wr,Hr.right),mi=Math.min(bi,Hr.bottom);return Math.max(0,(Ni-xi)*(mi-Hi))},En=function(){pn=V.y+Jt,Ln=pn+ft,Xn=V.x+dn,Gn=Xn+Gt};var dt,At,gt=_e,Rt=gt.ownerDocument,Ct=me(gt),x=Ct.getComputedStyle(gt),A=x.width,rt=x.height,Y=x.position,Ce=gt.style.left,vn=gt.style.top,ke=gt.style.right,He=gt.style.bottom,We=gt.style.overflow,te=(0,T.Z)((0,T.Z)({},xe[ce]),O),pe=Rt.createElement("div");(dt=gt.parentElement)===null||dt===void 0||dt.appendChild(pe),pe.style.left="".concat(gt.offsetLeft,"px"),pe.style.top="".concat(gt.offsetTop,"px"),pe.style.position=Y,pe.style.height="".concat(gt.offsetHeight,"px"),pe.style.width="".concat(gt.offsetWidth,"px"),gt.style.left="0",gt.style.top="0",gt.style.right="auto",gt.style.bottom="auto",gt.style.overflow="hidden";var De;if(Array.isArray(M))De={x:M[0],y:M[1],width:0,height:0};else{var ze=M.getBoundingClientRect();De={x:ze.x,y:ze.y,width:ze.width,height:ze.height}}var V=gt.getBoundingClientRect(),kt=Rt.documentElement,Le=kt.clientWidth,jt=kt.clientHeight,ln=kt.scrollWidth,bt=kt.scrollHeight,Lt=kt.scrollTop,ot=kt.scrollLeft,ft=V.height,Gt=V.width,yn=De.height,nn=De.width,je={left:0,top:0,right:Le,bottom:jt},we={left:-ot,top:-Lt,right:ln-ot,bottom:bt-Lt},ut=te.htmlRegion,it="visible",yt="visibleFirst";ut!=="scroll"&&ut!==yt&&(ut=it);var Mt=ut===yt,Kt=Q(we,$e),Pt=Q(je,$e),Zt=ut===it?Pt:Kt,Yt=Mt?Pt:Zt;gt.style.left="auto",gt.style.top="auto",gt.style.right="0",gt.style.bottom="0";var Nt=gt.getBoundingClientRect();gt.style.left=Ce,gt.style.top=vn,gt.style.right=ke,gt.style.bottom=He,gt.style.overflow=We,(At=gt.parentElement)===null||At===void 0||At.removeChild(pe);var xt=g(Math.round(Gt/parseFloat(A)*1e3)/1e3),rn=g(Math.round(ft/parseFloat(rt)*1e3)/1e3);if(xt===0||rn===0||(0,be.Sh)(M)&&!(0,Z.Z)(M))return;var Qt=te.offset,hn=te.targetOffset,zn=Pe(V,Qt),Qn=(0,N.Z)(zn,2),On=Qn[0],Vt=Qn[1],qe=Pe(De,hn),tt=(0,N.Z)(qe,2),ht=tt[0],wt=tt[1];De.x-=ht,De.y-=wt;var mt=te.points||[],It=(0,N.Z)(mt,2),Tt=It[0],Wt=It[1],mn=Ue(Wt),cn=Ue(Tt),Pn=Xe(De,mn),kn=Xe(V,cn),Un=(0,T.Z)({},te),dn=Pn.x-kn.x+On,Jt=Pn.y-kn.y+Vt,Mn=Cn(dn,Jt),wn=Cn(dn,Jt,Pt),rr=Xe(De,["t","l"]),Yn=Xe(V,["t","l"]),Wn=Xe(De,["b","r"]),Jn=Xe(V,["b","r"]),Bn=te.overflow||{},qn=Bn.adjustX,wr=Bn.adjustY,An=Bn.shiftX,sn=Bn.shiftY,Ge=function(dr){return typeof dr=="boolean"?dr:dr>=0},pn,Ln,Xn,Gn;En();var ir=Ge(wr),lr=cn[0]===mn[0];if(ir&&cn[0]==="t"&&(Ln>Yt.bottom||Me.current.bt)){var Nn=Jt;lr?Nn-=ft-yn:Nn=rr.y-Jn.y-Vt;var ur=Cn(dn,Nn),_n=Cn(dn,Nn,Pt);ur>Mn||ur===Mn&&(!Mt||_n>=wn)?(Me.current.bt=!0,Jt=Nn,Vt=-Vt,Un.points=[Ze(cn,0),Ze(mn,0)]):Me.current.bt=!1}if(ir&&cn[0]==="b"&&(pn<Yt.top||Me.current.tb)){var tn=Jt;lr?tn+=ft-yn:tn=Wn.y-Yn.y-Vt;var Dn=Cn(dn,tn),Zn=Cn(dn,tn,Pt);Dn>Mn||Dn===Mn&&(!Mt||Zn>=wn)?(Me.current.tb=!0,Jt=tn,Vt=-Vt,Un.points=[Ze(cn,0),Ze(mn,0)]):Me.current.tb=!1}var sr=Ge(qn),Pr=cn[1]===mn[1];if(sr&&cn[1]==="l"&&(Gn>Yt.right||Me.current.rl)){var gn=dn;Pr?gn-=Gt-nn:gn=rr.x-Jn.x-On;var cr=Cn(gn,Jt),ar=Cn(gn,Jt,Pt);cr>Mn||cr===Mn&&(!Mt||ar>=wn)?(Me.current.rl=!0,dn=gn,On=-On,Un.points=[Ze(cn,1),Ze(mn,1)]):Me.current.rl=!1}if(sr&&cn[1]==="r"&&(Xn<Yt.left||Me.current.lr)){var xr=dn;Pr?xr+=Gt-nn:xr=Wn.x-Yn.x-On;var Mr=Cn(xr,Jt),Fr=Cn(xr,Jt,Pt);Mr>Mn||Mr===Mn&&(!Mt||Fr>=wn)?(Me.current.lr=!0,dn=xr,On=-On,Un.points=[Ze(cn,1),Ze(mn,1)]):Me.current.lr=!1}En();var vr=An===!0?0:An;typeof vr=="number"&&(Xn<Pt.left&&(dn-=Xn-Pt.left-On,De.x+nn<Pt.left+vr&&(dn+=De.x-Pt.left+nn-vr)),Gn>Pt.right&&(dn-=Gn-Pt.right-On,De.x>Pt.right-vr&&(dn+=De.x-Pt.right+vr)));var Cr=sn===!0?0:sn;typeof Cr=="number"&&(pn<Pt.top&&(Jt-=pn-Pt.top-Vt,De.y+yn<Pt.top+Cr&&(Jt+=De.y-Pt.top+yn-Cr)),Ln>Pt.bottom&&(Jt-=Ln-Pt.bottom-Vt,De.y>Pt.bottom-Cr&&(Jt+=De.y-Pt.bottom+Cr)));var Er=V.x+dn,qr=Er+Gt,Yr=V.y+Jt,ii=Yr+ft,kr=De.x,ei=kr+nn,nr=De.y,ci=nr+yn,yi=Math.max(Er,kr),hi=Math.min(qr,ei),Tr=(yi+hi)/2,fi=Tr-Er,Ai=Math.max(Yr,nr),on=Math.min(ii,ci),Qr=(Ai+on)/2,oi=Qr-Yr;C==null||C(_e,Un);var Rn=Nt.right-V.x-(dn+V.width),$n=Nt.bottom-V.y-(Jt+V.height);K({ready:!0,offsetX:dn/xt,offsetY:Jt/rn,offsetR:Rn/xt,offsetB:$n/rn,arrowX:fi/xt,arrowY:oi/rn,scaleX:xt,scaleY:rn,align:Un})}}),Qe=function(){Ie.current+=1;var At=Ie.current;Promise.resolve().then(function(){Ie.current===At&&Ye()})},Je=function(){K(function(At){return(0,T.Z)((0,T.Z)({},At),{},{ready:!1})})};return(0,v.Z)(Je,[ce]),(0,v.Z)(function(){oe||Je()},[oe]),[de.ready,de.offsetX,de.offsetY,de.offsetR,de.offsetB,de.arrowX,de.arrowY,de.scaleX,de.scaleY,de.align,Qe]}var at=_(19127);function ct(oe,_e,M,ce,xe){(0,v.Z)(function(){if(oe&&_e&&M){let Ie=function(){ce(),xe()};var O=_e,C=M,k=ee(O),he=ee(C),de=me(C),K=new Set([de].concat((0,at.Z)(k),(0,at.Z)(he)));return K.forEach(function($e){$e.addEventListener("scroll",Ie,{passive:!0})}),de.addEventListener("resize",Ie,{passive:!0}),ce(),function(){K.forEach(function($e){$e.removeEventListener("scroll",Ie),de.removeEventListener("resize",Ie)})}}},[oe,_e,M])}var Ot=_(48736),Ut=_(16089);function un(oe,_e,M,ce,xe,O,C,k){var he=S.useRef(oe),de=S.useRef(!1);he.current!==oe&&(de.current=!0,he.current=oe),S.useEffect(function(){var K=(0,Ut.Z)(function(){de.current=!1});return function(){Ut.Z.cancel(K)}},[oe]),S.useEffect(function(){if(_e&&ce&&(!xe||O)){var K=function(){var Y=!1,Ce=function(He){var We=He.target;Y=C(We)},vn=function(He){var We=He.target;!de.current&&he.current&&!Y&&!C(We)&&k(!1)};return[Ce,vn]},Ie=K(),$e=(0,N.Z)(Ie,2),Me=$e[0],Be=$e[1],Ye=K(),Qe=(0,N.Z)(Ye,2),Je=Qe[0],dt=Qe[1],At=me(ce);At.addEventListener("mousedown",Me,!0),At.addEventListener("click",Be,!0),At.addEventListener("contextmenu",Be,!0);var gt=(0,o.A)(M);if(gt&&(gt.addEventListener("mousedown",Je,!0),gt.addEventListener("click",dt,!0),gt.addEventListener("contextmenu",dt,!0)),0)var Rt,Ct,x,A;return function(){At.removeEventListener("mousedown",Me,!0),At.removeEventListener("click",Be,!0),At.removeEventListener("contextmenu",Be,!0),gt&&(gt.removeEventListener("mousedown",Je,!0),gt.removeEventListener("click",dt,!0),gt.removeEventListener("contextmenu",dt,!0))}}},[_e,M,ce,xe,O])}var Ft=["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 nt(){var oe=arguments.length>0&&arguments[0]!==void 0?arguments[0]:Re.Z,_e=S.forwardRef(function(M,ce){var xe=M.prefixCls,O=xe===void 0?"rc-trigger-popup":xe,C=M.children,k=M.action,he=k===void 0?"hover":k,de=M.showAction,K=M.hideAction,Ie=M.popupVisible,$e=M.defaultPopupVisible,Me=M.onPopupVisibleChange,Be=M.afterPopupVisibleChange,Ye=M.mouseEnterDelay,Qe=M.mouseLeaveDelay,Je=Qe===void 0?.1:Qe,dt=M.focusDelay,At=M.blurDelay,gt=M.mask,Rt=M.maskClosable,Ct=Rt===void 0?!0:Rt,x=M.getPopupContainer,A=M.forceRender,rt=M.autoDestroy,Y=M.destroyPopupOnHide,Ce=M.popup,vn=M.popupClassName,ke=M.popupStyle,He=M.popupPlacement,We=M.builtinPlacements,te=We===void 0?{}:We,pe=M.popupAlign,De=M.zIndex,ze=M.stretch,V=M.getPopupClassNameFromAlign,kt=M.fresh,Le=M.alignPoint,jt=M.onPopupClick,ln=M.onPopupAlign,bt=M.arrow,Lt=M.popupMotion,ot=M.maskMotion,ft=M.popupTransitionName,Gt=M.popupAnimation,yn=M.maskTransitionName,nn=M.maskAnimation,je=M.className,we=M.getTriggerDOMNode,ut=(0,ie.Z)(M,Ft),it=rt||Y||!1,yt=S.useState(!1),Mt=(0,N.Z)(yt,2),Kt=Mt[0],Pt=Mt[1];(0,v.Z)(function(){Pt((0,c.Z)())},[]);var Zt=S.useRef({}),Yt=S.useContext(ye),Nt=S.useMemo(function(){return{registerSubPopup:function(Tn,hr){Zt.current[Tn]=hr,Yt==null||Yt.registerSubPopup(Tn,hr)}}},[Yt]),xt=(0,$.Z)(),rn=S.useState(null),Qt=(0,N.Z)(rn,2),hn=Qt[0],zn=Qt[1],Qn=(0,L.Z)(function(In){(0,be.Sh)(In)&&hn!==In&&zn(In),Yt==null||Yt.registerSubPopup(xt,In)}),On=S.useState(null),Vt=(0,N.Z)(On,2),qe=Vt[0],tt=Vt[1],ht=S.useRef(null),wt=(0,L.Z)(function(In){(0,be.Sh)(In)&&qe!==In&&(tt(In),ht.current=In)}),mt=S.Children.only(C),It=(mt==null?void 0:mt.props)||{},Tt={},Wt=(0,L.Z)(function(In){var Tn,hr,Gr=qe;return(Gr==null?void 0:Gr.contains(In))||((Tn=(0,o.A)(Gr))===null||Tn===void 0?void 0:Tn.host)===In||In===Gr||(hn==null?void 0:hn.contains(In))||((hr=(0,o.A)(hn))===null||hr===void 0?void 0:hr.host)===In||In===hn||Object.values(Zt.current).some(function(Sr){return(Sr==null?void 0:Sr.contains(In))||In===Sr})}),mn=X(O,Lt,Gt,ft),cn=X(O,ot,nn,yn),Pn=S.useState($e||!1),kn=(0,N.Z)(Pn,2),Un=kn[0],dn=kn[1],Jt=Ie!=null?Ie:Un,Mn=(0,L.Z)(function(In){Ie===void 0&&dn(In)});(0,v.Z)(function(){dn(Ie||!1)},[Ie]);var wn=S.useRef(Jt);wn.current=Jt;var rr=S.useRef([]);rr.current=[];var Yn=(0,L.Z)(function(In){var Tn;Mn(In),((Tn=rr.current[rr.current.length-1])!==null&&Tn!==void 0?Tn:Jt)!==In&&(rr.current.push(In),Me==null||Me(In))}),Wn=S.useRef(),Jn=function(){clearTimeout(Wn.current)},Bn=function(Tn){var hr=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;Jn(),hr===0?Yn(Tn):Wn.current=setTimeout(function(){Yn(Tn)},hr*1e3)};S.useEffect(function(){return Jn},[]);var qn=S.useState(!1),wr=(0,N.Z)(qn,2),An=wr[0],sn=wr[1];(0,v.Z)(function(In){(!In||Jt)&&sn(!0)},[Jt]);var Ge=S.useState(null),pn=(0,N.Z)(Ge,2),Ln=pn[0],Xn=pn[1],Gn=S.useState([0,0]),ir=(0,N.Z)(Gn,2),lr=ir[0],Nn=ir[1],ur=function(Tn){Nn([Tn.clientX,Tn.clientY])},_n=lt(Jt,hn,Le?lr:qe,He,te,pe,ln),tn=(0,N.Z)(_n,11),Dn=tn[0],Zn=tn[1],sr=tn[2],Pr=tn[3],gn=tn[4],cr=tn[5],ar=tn[6],xr=tn[7],Mr=tn[8],Fr=tn[9],vr=tn[10],Cr=Ne(Kt,he,de,K),Er=(0,N.Z)(Cr,2),qr=Er[0],Yr=Er[1],ii=qr.has("click"),kr=Yr.has("click")||Yr.has("contextMenu"),ei=(0,L.Z)(function(){An||vr()}),nr=function(){wn.current&&Le&&kr&&Bn(!1)};ct(Jt,qe,hn,ei,nr),(0,v.Z)(function(){ei()},[lr,He]),(0,v.Z)(function(){Jt&&!(te!=null&&te[He])&&ei()},[JSON.stringify(pe)]);var ci=S.useMemo(function(){var In=ne(te,O,Fr,Le);return le()(In,V==null?void 0:V(Fr))},[Fr,V,te,O,Le]);S.useImperativeHandle(ce,function(){return{nativeElement:ht.current,forceAlign:ei}});var yi=S.useState(0),hi=(0,N.Z)(yi,2),Tr=hi[0],fi=hi[1],Ai=S.useState(0),on=(0,N.Z)(Ai,2),Qr=on[0],oi=on[1],Rn=function(){if(ze&&qe){var Tn=qe.getBoundingClientRect();fi(Tn.width),oi(Tn.height)}},$n=function(){Rn(),ei()},Cn=function(Tn){sn(!1),vr(),Be==null||Be(Tn)},En=function(){return new Promise(function(Tn){Rn(),Xn(function(){return Tn})})};(0,v.Z)(function(){Ln&&(vr(),Ln(),Xn(null))},[Ln]);function er(In,Tn,hr,Gr){Tt[In]=function(Sr){var pi;Gr==null||Gr(Sr),Bn(Tn,hr);for(var Gi=arguments.length,ji=new Array(Gi>1?Gi-1:0),Ci=1;Ci<Gi;Ci++)ji[Ci-1]=arguments[Ci];(pi=It[In])===null||pi===void 0||pi.call.apply(pi,[It,Sr].concat(ji))}}(ii||kr)&&(Tt.onClick=function(In){var Tn;wn.current&&kr?Bn(!1):!wn.current&&ii&&(ur(In),Bn(!0));for(var hr=arguments.length,Gr=new Array(hr>1?hr-1:0),Sr=1;Sr<hr;Sr++)Gr[Sr-1]=arguments[Sr];(Tn=It.onClick)===null||Tn===void 0||Tn.call.apply(Tn,[It,In].concat(Gr))}),un(Jt,kr,qe,hn,gt,Ct,Wt,Bn);var dr=qr.has("hover"),Hr=Yr.has("hover"),Dr,zr;dr&&(er("onMouseEnter",!0,Ye,function(In){ur(In)}),er("onPointerEnter",!0,Ye,function(In){ur(In)}),Dr=function(Tn){(Jt||An)&&hn!==null&&hn!==void 0&&hn.contains(Tn.target)&&Bn(!0,Ye)},Le&&(Tt.onMouseMove=function(In){var Tn;(Tn=It.onMouseMove)===null||Tn===void 0||Tn.call(It,In)})),Hr&&(er("onMouseLeave",!1,Je),er("onPointerLeave",!1,Je),zr=function(){Bn(!1,Je)}),qr.has("focus")&&er("onFocus",!0,dt),Yr.has("focus")&&er("onBlur",!1,At),qr.has("contextMenu")&&(Tt.onContextMenu=function(In){var Tn;wn.current&&Yr.has("contextMenu")?Bn(!1):(ur(In),Bn(!0)),In.preventDefault();for(var hr=arguments.length,Gr=new Array(hr>1?hr-1:0),Sr=1;Sr<hr;Sr++)Gr[Sr-1]=arguments[Sr];(Tn=It.onContextMenu)===null||Tn===void 0||Tn.call.apply(Tn,[It,In].concat(Gr))}),je&&(Tt.className=le()(It.className,je));var Wr=(0,T.Z)((0,T.Z)({},It),Tt),bi={},xi=["onContextMenu","onClick","onMouseDown","onTouchStart","onMouseEnter","onMouseLeave","onFocus","onBlur"];xi.forEach(function(In){ut[In]&&(bi[In]=function(){for(var Tn,hr=arguments.length,Gr=new Array(hr),Sr=0;Sr<hr;Sr++)Gr[Sr]=arguments[Sr];(Tn=Wr[In])===null||Tn===void 0||Tn.call.apply(Tn,[Wr].concat(Gr)),ut[In].apply(ut,Gr)})});var Hi=S.cloneElement(mt,(0,T.Z)((0,T.Z)({},Wr),bi)),Ni={x:cr,y:ar},mi=bt?(0,T.Z)({},bt!==!0?bt:{}):null;return S.createElement(S.Fragment,null,S.createElement(Te.Z,{disabled:!Jt,ref:wt,onResize:$n},S.createElement(U,{getTriggerDOMNode:we},Hi)),S.createElement(ye.Provider,{value:Nt},S.createElement(D,{portal:oe,ref:Qn,prefixCls:O,popup:Ce,className:le()(vn,ci),style:ke,target:qe,onMouseEnter:Dr,onMouseLeave:zr,onPointerEnter:Dr,zIndex:De,open:Jt,keepDom:An,fresh:kt,onClick:jt,mask:gt,motion:mn,maskMotion:cn,onVisibleChanged:Cn,onPrepare:En,forceRender:A,autoDestroy:it,getPopupContainer:x,align:Fr,arrow:mi,arrowPos:Ni,ready:Dn,offsetX:Zn,offsetY:sr,offsetR:Pr,offsetB:gn,onAlign:ei,stretch:ze,targetWidth:Tr/xr,targetHeight:Qr/Mr})))});return _e}var Et=nt(Re.Z)},50304:function(){"use strict"},76895:function(Ht,et){"use strict";et.Z={flex_box_center:"flex_box_center___vG4eV",flex_space_between:"flex_space_between___qVVxe",flex_box_vertical_center:"flex_box_vertical_center___P8Z8s",flex_box_center_end:"flex_box_center_end___VMme3",flex_box_column:"flex_box_column___VMHwm",dropdownmenus:"dropdownmenus___oVzoj",popupClassNames:"popupClassNames___OcZq7",selectdown:"selectdown___mmcA8"}},8797:function(Ht,et,_){"use strict";var T=_(59301),N=_(93314),ie=_(3113),Re=Object.defineProperty,ve=Object.defineProperties,le=Object.getOwnPropertyDescriptors,Te=Object.getOwnPropertySymbols,be=Object.prototype.hasOwnProperty,o=Object.prototype.propertyIsEnumerable,L=(S,y,q)=>y in S?Re(S,y,{enumerable:!0,configurable:!0,writable:!0,value:q}):S[y]=q,$=(S,y)=>{for(var q in y||(y={}))be.call(y,q)&&L(S,q,y[q]);if(Te)for(var q of Te(y))o.call(y,q)&&L(S,q,y[q]);return S},v=(S,y)=>ve(S,le(y));const c=({img:S,buttonProps:y={},styles:q={},customText:ae,ButtonText:P,ButtonClick:z,Buttonclass:W,ButtonTwo:re,imgStyles:b,loading:D=!1})=>T.createElement("section",{className:"tc animated fadeIn",style:$($({},{color:"#999",margin:"100px auto",visibility:D?"hidden":"visible"}),q)},T.createElement("img",{src:S||N,style:v($({},b),{pointerEvents:"none",userSelect:"none"})}),T.createElement("p",{className:"mt20 font14"},ae||"\u6682\u65F6\u8FD8\u6CA1\u6709\u76F8\u5173\u6570\u636E\u54E6!"),P&&T.createElement(ie.ZP,$({className:W,onClick:z},y),P),re&&re);et.Z=c},23210:function(Ht,et,_){"use strict";_.d(et,{Z:function(){return W}});var T=_(59301),N={wrp:"wrp___dq7YK",bgBlack:"bgBlack___ARIUV",monaco:"monaco___VnZC3",darkBlue:"darkBlue___UprA9",close:"close___LKoWu",embed:"embed___hvpEJ"},ie=_(3113),Re=_(70557),ve=_(23954),le=_(6848),Te=_(955),be=_(94941),o=_(8797),L=_(3294),$=_(19381),v=_(59301),c=Object.defineProperty,S=Object.getOwnPropertySymbols,y=Object.prototype.hasOwnProperty,q=Object.prototype.propertyIsEnumerable,ae=(re,b,D)=>b in re?c(re,b,{enumerable:!0,configurable:!0,writable:!0,value:D}):re[b]=D,P=(re,b)=>{for(var D in b||(b={}))y.call(b,D)&&ae(re,D,b[D]);if(S)for(var D of S(b))q.call(b,D)&&ae(re,D,b[D]);return re},z=(re,b,D)=>new Promise((F,U)=>{var fe=Ne=>{try{Se(D.next(Ne))}catch(Z){U(Z)}},ye=Ne=>{try{Se(D.throw(Ne))}catch(Z){U(Z)}},Se=Ne=>Ne.done?F(Ne.value):Promise.resolve(Ne.value).then(fe,ye);Se((D=D.apply(re,b)).next())}),W=({editOffice:re="view",data:b,theme:D,type:F,filename:U,monacoEditor:fe,className:ye,style:Se,close:Ne,onClose:Z,hasMask:B,disabledDownload:ne,onImgDimensions:X,showNodata:me,recordInfo:ee})=>{const[g,w]=(0,T.useState)("https://view.officeapps.live.com/op/view.aspx?src=http://testgs.educoder.net//rails/active_storage/blobs/eyJfcmFpbHMiOnsibWVzc2FnZSI6IkJBaHBCZz09IiwiZXhwIjpudWxsLCJwdXIiOiJibG9iX2lkIn19--03541f6234b93d7ac3b2d84e7eb0e6594a952945/1.ppt"),[Q,J]=(0,T.useState)(""),[Pe,Ue]=(0,T.useState)(),Xe=window.ENV==="build"?"/react/build":"",Ze=location.host.startsWith("localhost")?L.Z.PROXY_SERVER:L.Z.API_SERVER,at=10*(1024*1024),ct=(0,T.useRef)();b!=null&&b.startsWith("/api")&&F!=="txt"&&(b=L.Z.API_SERVER+b);const Ot=nt=>nt.substring(nt.lastIndexOf("/")+1).split(".").pop();U&&fe&&(fe.filename=U),(0,T.useEffect)(()=>{var nt,Et;const oe=(Et=(nt=document.cookie)==null?void 0:nt.replace(/\s/g,""))==null?void 0:Et.split(";");oe==null||oe.map(_e=>{let M=_e.split("=");M[0]==="_educoder_session"&&J(M[1])})},[]),(0,T.useEffect)(()=>{F==="office"&&(b.indexOf("bigfilescdn.")>-1||b.indexOf("bigfiles1")>-1?Ue({url:b,fileType:Ot(b),model:b.indexOf("model=edit")?"edit":"view"}):Ut())},[F,b]);const Ut=()=>z(void 0,null,function*(){console.log("data:",b);let nt=b;b.startsWith("http")||(nt=location.origin+nt);let Et=new URL(nt).pathname.split("/").pop();const oe=yield(0,be.gJ)({attachment_id:Et});oe.url=Ze+oe.url,Ue(oe)}),un=()=>{if(b.startsWith("http")||b.startsWith("blob:")){Ft();return}(0,Te.Sv)(U||"educoder",b,U)},Ft=()=>{ee&&(0,$.fc)({id:ee==null?void 0:ee.id,watch_type:1,course_id:ee==null?void 0:ee.course_id}),(0,Te.Nd)(U||"educoder",decodeURIComponent(b))};return v.createElement("div",{style:P({},Se||{}),className:`${B&&N.bgBlack} ${F?N.wrp:"hide"}`},Ne&&v.createElement("div",{className:N.close,ref:ct},!!X&&v.createElement(le.Z,{title:"\u70B9\u51FB\u5BF9\u56FE\u7247\u8FDB\u884C\u6279\u6CE8",getPopupContainer:()=>ct.current},v.createElement("span",{onClick:()=>{Z(),X()}},v.createElement("i",{className:"icon-yulanpizhu"}))),!ne&&v.createElement(le.Z,{title:"\u70B9\u51FB\u4E0B\u8F7D\u6B64\u6587\u4EF6",getPopupContainer:()=>ct.current},v.createElement("span",{onClick:Ft},v.createElement("i",{className:"icon-quxiaozhiding"}))),v.createElement(le.Z,{title:"\u5173\u95ED",getPopupContainer:()=>ct.current},v.createElement("span",{className:"",onClick:Z},v.createElement("i",{className:"icon-guanbi1"})))),v.createElement("div",{className:`${N[ye]} ${ye} ${N.monaco} ${F==="txt"?"show":"hide"}`},F==="txt"&&v.createElement(v.Fragment,null,v.createElement(ve.ZP,P({},fe)))),F==="audio"&&v.createElement("audio",{src:`${(b==null?void 0:b.indexOf("http://"))>-1||(b==null?void 0:b.indexOf("https://"))>-1?"":"data:audio/mp3;base64,"}${b}`,autoPlay:!0}),F==="video"&&v.createElement(v.Fragment,null,(b==null?void 0:b.indexOf("http"))>-1?v.createElement("video",{controls:!0,src:`${b}`,autoPlay:!0}):v.createElement("video",{controls:!0,src:`data:video/mp4;base64,${b}`,autoPlay:!0})),F==="office"&&Pe&&v.createElement("iframe",{src:`${Xe}/office.html?key=${Pe.key}&url=${btoa(Pe.url)}&callbackUrl=${Ze+(Pe.callbackUrl||"")}&fileType=${Pe.fileType}&title=${Pe.title||""}&model=${re}&officeServer=${L.Z.ONLYOFFICE}&disabledDownload=${!!ne}`}),F==="html"&&v.createElement("iframe",{src:b+"&disposition=inline"}),F==="pdf"&&v.createElement("iframe",{src:`${Xe}/js/pdfview/index.html?filename=${U||"educoder.pdf"}&url=${encodeURIComponent(b)}&disabledDownload=${!!ne}`}),F==="image"&&v.createElement("img",{src:`${(b==null?void 0:b.indexOf("http://"))>-1||(b==null?void 0:b.indexOf("https://"))>-1?"":"data:image/png;base64,"}${b}`}),(F==="other"||F==="download")&&v.createElement(v.Fragment,null,me?v.createElement(o.Z,{customText:"\u5F53\u524D\u6587\u4EF6\u4E0D\u652F\u6301\u9884\u89C8\uFF0C\u53EF\u70B9\u51FB\u4E0B\u8F7D\u67E5\u770B",ButtonTwo:v.createElement(ie.ZP,{icon:v.createElement("i",{className:"iconfont icon-xiazai4 font14"}),type:"primary",size:"middle",onClick:un,disabled:ne},"\u4E0B\u8F7D")}):v.createElement(ie.ZP,{type:"primary",size:"middle",onClick:un,disabled:ne},v.createElement(Re.Z,null),"\u70B9\u51FB\u4E0B\u8F7D")))}},85149:function(Ht,et,_){"use strict";_.d(et,{z:function(){return F},Z:function(){return U}});var T=_(59301),N=_(50304),ie=_(24768),Re=_(64018),ve=_(40846),le=_(3294),Te=_(955),be=_(15342),o=_(1012),L=_(23210),$=_(59301),c=({html:fe})=>{const ye=(0,T.useRef)(null),Se=(0,T.useRef)(null),Ne=`.markdown-body p {
margin: 0 0 16px 0 !important;
line-height: 28px;
white-space: pre-wrap;
}
ol,
ul,
li {
list-style-type: none
}
ol,
ul,
dl {
margin-bottom: 0px;
}
.markdown-body {
-ms-text-size-adjust: 100%;
-webkit-text-size-adjust: 100%;
color: #333;
overflow: hidden;
font-family: "Microsoft YaHei", Helvetica, "Meiryo UI", "Malgun Gothic", "Segoe UI", "Trebuchet MS", "Monaco", monospace, Tahoma, STXihei, "\u534E\u6587\u7EC6\u9ED1", STHeiti, "Helvetica Neue", "Droid Sans", "wenquanyi micro hei", FreeSans, Arimo, Arial, SimSun, "\u5B8B\u4F53", Heiti, "\u9ED1\u4F53", sans-serif;
word-break: break-word;
font-size: 16px;
line-height: 1.6;
white-space: normal;
word-wrap: break-word;
position: relative;
}
.markdown-body ul>li {
list-style-type: disc;
}
.markdown-body ol>li {
list-style-type: decimal;
}
.markdown-body a {
background: transparent;
}
.markdown-body a:active,
.markdown-body a:hover {
outline: 0;
}
.markdown-body strong {
font-weight: bold;
}
.markdown-body h1 {
font-size: 2em;
margin: 0.67em 0;
}
.markdown-body img {
border: 0;
}
.markdown-body hr {
-moz-box-sizing: content-box;
box-sizing: content-box;
height: 0;
}
.markdown-body pre {
overflow: auto;
}
.markdown-body code,
.markdown-body kbd,
.markdown-body pre {
font-family: "Meiryo UI", "YaHei Consolas Hybrid", Consolas, "Malgun Gothic", "Segoe UI", "Trebuchet MS", Helvetica, monospace, monospace;
font-size: 1em;
}
.markdown-body input {
color: inherit;
font: inherit;
margin: 0;
}
.markdown-body html input[disabled] {
cursor: default;
}
.markdown-body input {
line-height: normal;
}
.markdown-body input[type="checkbox"] {
-moz-box-sizing: border-box;
box-sizing: border-box;
padding: 0;
}
.markdown-body table {
border-collapse: collapse;
border-spacing: 0;
}
.markdown-body td,
.markdown-body th {
padding: 0;
}
.markdown-body * {
-moz-box-sizing: border-box;
box-sizing: border-box;
}
.markdown-body input {
font: 13px/1.4 Helvetica, arial, freesans, clean, sans-serif, "Segoe UI Emoji", "Segoe UI Symbol";
}
.markdown-body a {
color: #4183c4;
text-decoration: none;
}
.markdown-body a:hover,
.markdown-body a:active {
text-decoration: underline;
}
.markdown-body hr {
height: 0;
margin: 15px 0;
overflow: hidden;
background: transparent;
border: 0;
border-bottom: 1px solid #ddd;
}
.markdown-body hr:before {
display: table;
content: "";
}
.markdown-body hr:after {
display: table;
clear: both;
content: "";
}
.markdown-body h1,
.markdown-body h2,
.markdown-body h3,
.markdown-body h4,
.markdown-body h5,
.markdown-body h6 {
margin-top: 15px;
margin-bottom: 15px;
line-height: 1.1;
}
.markdown-body h1 {
font-size: 30px;
}
.markdown-body h2 {
font-size: 21px;
}
.markdown-body h3 {
font-size: 16px;
}
.markdown-body h4 {
font-size: 14px;
}
.markdown-body h5 {
font-size: 12px;
}
.markdown-body h6 {
font-size: 11px;
}
.markdown-body blockquote {
margin: 0;
}
.markdown-body ul,
.markdown-body ol {
padding: 0;
margin-top: 0;
margin-bottom: 0;
}
ul.linenums,
ol.linenums {
padding: 16px 0 0 36px !important;
}
.markdown-body ul,
.markdown-body ol {
padding-left: 2em;
}
.markdown-body ol ol,
.markdown-body ul ol {
list-style-type: lower-roman;
}
.markdown-body ul ul ol,
.markdown-body ul ol ol,
.markdown-body ol ul ol,
.markdown-body ol ol ol {
list-style-type: lower-alpha;
}
.markdown-body dd {
margin-left: 0;
}
.markdown-body code {
font-family: Consolas, "Liberation Mono", Menlo, Courier, monospace;
font-size: 12px;
}
.markdown-body pre {
margin-top: 0;
margin-bottom: 0;
font: 12px Consolas, "Liberation Mono", Menlo, Courier, monospace;
}
.markdown-body .octicon {
font: normal normal 16px octicons-anchor;
line-height: 1;
display: inline-block;
text-decoration: none;
-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale;
-webkit-user-select: none;
-moz-user-select: none;
-ms-user-select: none;
user-select: none;
}
.markdown-body .octicon-link:before {
content: '\f05c';
}
.markdown-body>*:first-child {
margin-top: 0 !important;
}
.markdown-body>*:last-child {
margin-bottom: 0 !important;
}
.markdown-body .anchor {
position: absolute;
top: 0;
left: 0;
display: block;
padding-right: 6px;
padding-left: 30px;
margin-left: -30px;
}
.markdown-body .anchor:focus {
outline: none;
}
.markdown-body h1,
.markdown-body h2,
.markdown-body h3,
.markdown-body h4,
.markdown-body h5,
.markdown-body h6 {
position: relative;
margin-top: 1em;
margin-bottom: 16px;
font-weight: bold;
line-height: 1.4;
}
.markdown-body h1 .octicon-link,
.markdown-body h2 .octicon-link,
.markdown-body h3 .octicon-link,
.markdown-body h4 .octicon-link,
.markdown-body h5 .octicon-link,
.markdown-body h6 .octicon-link {
display: none;
color: #000;
vertical-align: middle;
}
.markdown-body h1:hover .anchor,
.markdown-body h2:hover .anchor,
.markdown-body h3:hover .anchor,
.markdown-body h4:hover .anchor,
.markdown-body h5:hover .anchor,
.markdown-body h6:hover .anchor {
padding-left: 8px;
margin-left: -30px;
text-decoration: none;
}
.markdown-body h1:hover .anchor .octicon-link,
.markdown-body h2:hover .anchor .octicon-link,
.markdown-body h3:hover .anchor .octicon-link,
.markdown-body h4:hover .anchor .octicon-link,
.markdown-body h5:hover .anchor .octicon-link,
.markdown-body h6:hover .anchor .octicon-link {
display: inline-block;
}
.markdown-body h1 {
padding-bottom: 0.3em;
font-size: 2.25em;
line-height: 1.2;
border-bottom: 1px solid #eee;
}
.markdown-body h1 .anchor {
line-height: 1;
}
.markdown-body h2 {
padding-bottom: 0.3em;
font-size: 1.75em;
line-height: 1.225;
border-bottom: 1px solid #eee;
}
.markdown-body h2 .anchor {
line-height: 1;
}
.markdown-body h3 {
font-size: 1.5em;
line-height: 1.43;
}
.markdown-body h3 .anchor {
line-height: 1.2;
}
.markdown-body h4 {
font-size: 1.25em;
}
.markdown-body h4 .anchor {
line-height: 1.2;
}
.markdown-body h5 {
font-size: 1em;
}
.markdown-body h5 .anchor {
line-height: 1.1;
}
.markdown-body h6 {
font-size: 1em;
color: #777;
}
.markdown-body h6 .anchor {
line-height: 1.1;
}
.markdown-body p,
.markdown-body blockquote,
.markdown-body ul,
.markdown-body ol,
.markdown-body dl,
.markdown-body table,
.markdown-body pre {
margin-top: 0;
margin-bottom: 16px;
}
.markdown-body ul ul,
.markdown-body ul ol,
.markdown-body ol ol,
.markdown-body ol ul {
margin-top: 0;
margin-bottom: 0;
}
.markdown-body li>p {
margin-top: 16px;
}
.markdown-body dl {
padding: 0;
}
.markdown-body dl dt {
padding: 0;
margin-top: 16px;
font-size: 1em;
font-style: italic;
font-weight: bold;
}
.markdown-body dl dd {
padding: 0 16px;
margin-bottom: 16px;
}
.markdown-body blockquote {
padding: 0 15px;
color: #777;
border-left: 4px solid #ddd;
}
.markdown-body blockquote> :first-child {
margin-top: 0;
}
.markdown-body blockquote> :last-child {
margin-bottom: 0;
}
.markdown-body table {
display: block;
width: 100%;
overflow: auto;
word-break: normal;
word-break: keep-all;
}
.markdown-body table th {
font-weight: bold;
text-align: revert;
}
.markdown-body table th,
.markdown-body table td {
padding: 6px 13px;
border: 1px solid #ddd;
}
.markdown-body table tr {
background-color: #fff;
border-top: 1px solid #ccc;
}
.markdown-body table tr:nth-child(2n) {
background-color: #f8f8f8;
}
.markdown-body img {
max-width: 100%;
-moz-box-sizing: border-box;
box-sizing: border-box;
}
.markdown-body code {
padding: 0;
padding-top: 0.2em;
padding-bottom: 0.2em;
margin: 0;
font-size: 85%;
background-color: rgba(0, 0, 0, 0.04);
border-radius: 3px;
}
.markdown-body code:has(.katex) {
background-color: transparent;
}
.markdown-body code:before,
.markdown-body code:after {
letter-spacing: -0.2em;
content: "\\00a0";
}
.markdown-body pre>code {
padding: 0;
margin: 0;
font-size: 100%;
word-break: normal;
white-space: pre;
background: transparent;
border: 0;
}
.markdown-body .highlight {
margin-bottom: 16px;
}
.markdown-body .highlight pre,
.markdown-body pre {
padding: 16px;
overflow: auto;
font-size: 85%;
line-height: 1.45;
background-color: #f7f7f7;
border-radius: 3px;
}
.markdown-body .highlight pre {
margin-bottom: 0;
word-break: normal;
}
.markdown-body pre {
word-wrap: normal;
}
.markdown-body pre code {
display: inline;
max-width: initial;
padding: 0;
margin: 0;
overflow: initial;
line-height: inherit;
word-wrap: normal;
background-color: transparent;
border: 0;
}
.markdown-body pre code:before,
.markdown-body pre code:after {
content: normal;
}
.markdown-body kbd {
display: inline-block;
padding: 3px 5px;
font-size: 11px;
line-height: 10px;
color: #555;
vertical-align: middle;
background-color: #fcfcfc;
border: solid 1px #ccc;
border-bottom-color: #bbb;
border-radius: 3px;
box-shadow: inset 0 -1px 0 #bbb;
}
.markdown-body .pl-c {
color: #969896;
}
.markdown-body .pl-c1,
.markdown-body .pl-mdh,
.markdown-body .pl-mm,
.markdown-body .pl-mp,
.markdown-body .pl-mr,
.markdown-body .pl-s1 .pl-v,
.markdown-body .pl-s3,
.markdown-body .pl-sc,
.markdown-body .pl-sv {
color: #0086b3;
}
.markdown-body .pl-e,
.markdown-body .pl-en {
color: #795da3;
}
.markdown-body .pl-s1 .pl-s2,
.markdown-body .pl-smi,
.markdown-body .pl-smp,
.markdown-body .pl-stj,
.markdown-body .pl-vo,
.markdown-body .pl-vpf {
color: #333;
}
.markdown-body .pl-ent {
color: #63a35c;
}
.markdown-body .pl-k,
.markdown-body .pl-s,
.markdown-body .pl-st {
color: #a71d5d;
}
.markdown-body .pl-pds,
.markdown-body .pl-s1,
.markdown-body .pl-s1 .pl-pse .pl-s2,
.markdown-body .pl-sr,
.markdown-body .pl-sr .pl-cce,
.markdown-body .pl-sr .pl-sra,
.markdown-body .pl-sr .pl-sre,
.markdown-body .pl-src {
color: #df5000;
}
.markdown-body .pl-mo,
.markdown-body .pl-v {
color: #1d3e81;
}
.markdown-body .pl-id {
color: #b52a1d;
}
.markdown-body .pl-ii {
background-color: #b52a1d;
color: #f8f8f8;
}
.markdown-body .pl-sr .pl-cce {
color: #63a35c;
font-weight: bold;
}
.markdown-body .pl-ml {
color: #693a17;
}
.markdown-body .pl-mh,
.markdown-body .pl-mh .pl-en,
.markdown-body .pl-ms {
color: #1d3e81;
font-weight: bold;
}
.markdown-body .pl-mq {
color: #008080;
}
.markdown-body .pl-mi {
color: #333;
font-style: italic;
}
.markdown-body .pl-mb {
color: #333;
font-weight: bold;
}
.markdown-body .pl-md,
.markdown-body .pl-mdhf {
background-color: #ffecec;
color: #bd2c00;
}
.markdown-body .pl-mdht,
.markdown-body .pl-mi1 {
background-color: #eaffea;
color: #55a532;
}
.markdown-body .pl-mdr {
color: #795da3;
font-weight: bold;
}
.markdown-body kbd {
display: inline-block;
padding: 3px 5px;
font: 11px Consolas, "Liberation Mono", Menlo, Courier, monospace;
line-height: 10px;
color: #555;
vertical-align: middle;
background-color: #fcfcfc;
border: solid 1px #ccc;
border-bottom-color: #bbb;
border-radius: 3px;
box-shadow: inset 0 -1px 0 #bbb;
}
.markdown-body .task-list-item {
list-style-type: none;
}
.markdown-body .task-list-item+.task-list-item {
margin-top: 3px;
}
.markdown-body .task-list-item input {
float: left;
margin: 0.3em 0 0.25em -1.6em;
vertical-align: middle;
}
.markdown-body :checked+.radio-label {
z-index: 1;
position: relative;
border-color: #4183c4;
}
/*! Pretty printing styles. Used with prettify.js. */
/* SPAN elements with the classes below are added by prettyprint. */
.pln {
color: #000
}
/* plain text */
@media screen {
.str {
color: #080
}
/* string content */
.kwd {
color: #008
}
/* a keyword */
.com {
color: #800
}
/* a comment */
.typ {
color: #606
}
/* a type name */
.lit {
color: #066
}
/* a literal value */
/* punctuation, lisp open bracket, lisp close bracket */
.pun,
.opn,
.clo {
color: #660
}
.tag {
color: #008
}
/* a markup tag name */
.atn {
color: #606
}
/* a markup attribute name */
.atv {
color: #080
}
/* a markup attribute value */
.dec,
.var {
color: #606
}
/* a declaration; a variable name */
.fun {
color: red
}
/* a function name */
}
/* Use higher contrast and text-weight for printable form. */
@media print,
projection {
.str {
color: #060
}
.kwd {
color: #006;
font-weight: bold
}
.com {
color: #600;
font-style: italic
}
.typ {
color: #404;
font-weight: bold
}
.lit {
color: #044
}
.pun,
.opn,
.clo {
color: #440
}
.tag {
color: #006;
font-weight: bold
}
.atn {
color: #404
}
.atv {
color: #060
}
}
/* Put a border around prettyprinted code snippets. */
pre.prettyprint {
padding: 2px;
/* border: 1px solid #888 */
}
/* Specify class=linenums on a pre to get line numbering */
ol.linenums {
margin-top: 0;
margin-bottom: 0
}
/* IE indents via margin-left */
li.L0,
li.L1,
li.L2,
li.L3,
li.L5,
li.L6,
li.L7,
li.L8 {
list-style-type: none
}
/* Alternate shading for lines */
li.L1,
li.L3,
li.L5,
li.L7,
li.L9 {
background: #eee
}
.markdown-body p,
.markdown-body blockquote,
.markdown-body ul,
.markdown-body ol,
.markdown-body dl,
.markdown-body table,
.markdown-body pre {
margin-top: 0;
margin-bottom: 16px;
}`;return(0,T.useEffect)(()=>{const Z=ye.current.attachShadow({mode:"open"});Se.current=document.createElement("div"),Se.current.className="markdown-body",Se.current.innerHTML=fe,Z.appendChild(Se.current);const B=document.createElement("style");return B.textContent=Ne,Z.appendChild(B),()=>{Z.innerHTML=""}},[]),(0,T.useEffect)(()=>{Se.current&&(Se.current.innerHTML=fe)},[fe]),$.createElement("div",{ref:ye})},S=Object.defineProperty,y=Object.getOwnPropertySymbols,q=Object.prototype.hasOwnProperty,ae=Object.prototype.propertyIsEnumerable,P=(fe,ye,Se)=>ye in fe?S(fe,ye,{enumerable:!0,configurable:!0,writable:!0,value:Se}):fe[ye]=Se,z=(fe,ye)=>{for(var Se in ye||(ye={}))q.call(ye,Se)&&P(fe,Se,ye[Se]);if(y)for(var Se of y(ye))ae.call(ye,Se)&&P(fe,Se,ye[Se]);return fe};const W="@\u2581\u2581@",re="@\u2581@",b=/<pre[^>]*>/g;function D(fe){let ye=document.createElement("div");return ye.innerHTML=fe,ye.childNodes.length===0?"":ye.childNodes[0].nodeValue}const F=(fe,ye)=>{fe=fe||"";const Se=/(?:https?:\/\/[^\/]+)?\/api\/attachments\/([A-Za-z0-9+/=]+)(\?.*?)?\)|(?:https?:\/\/[^\/]+)?\/api\/attachments\/([A-Za-z0-9+/=]+)(\?.*?)?|(?:https?:\/\/[^\/]+)?\/attachments\/download\/([A-Za-z0-9+/=]+)(\?.*?)?\//g,Ne=/\"(?:https?:\/\/[^\/]+)?\/api\/attachments\/([A-Za-z0-9+/=]+)(\?.*?)?|\"(?:https?:\/\/[^\/]+)?\/attachments\/download\/([A-Za-z0-9+/=]+)(\?.*?)?\//g,Z=/\(\s+(?:https?:\/\/[^\/]+)?\/files\/uploads\/([A-Za-z0-9+/=]+)(\?.*?)?|\"(?:https?:\/\/[^\/]+)?\/files\/uploads\/([A-Za-z0-9+/=]+)(\?.*?)?\//g,B=/(?:https?:\/\/[^\/]+)?\/attachments\/download\/([A-Za-z0-9+/=]+)(\?.*?)?\//g;return ye?fe.replaceAll("https://www.educoder.net","").replaceAll("https://www-cdn.educoder.net","").replaceAll("//api/attachments","/api/attachments").replace(Se,(ne,X,me,ee,g,w,Q)=>{const J=X||ee||w,Pe=me||g||Q||"?";return le.Z.API_SERVER+"/api/attachments/"+J+Pe+"&t="+(0,Te.Jn)(J,Date.now())+(ne.indexOf(")")>-1?")":"&")}).replaceAll('src="(','src="').replaceAll("src='(",'src="'):(fe=fe.replace(B,(ne,X,me,ee,g,w,Q)=>{const J=X||ee||w,Pe=me||g||Q||"?";return le.Z.API_SERVER+"/attachments/download/"+J+Pe+"&t="+(0,Te.Jn)(J,Date.now())+(ne.indexOf(")")>-1?")":"&")}).replace(Se,(ne,X,me,ee,g,w,Q)=>{const J=X||ee||w,Pe=me||g||Q||"?";return le.Z.API_SERVER+"/api/attachments/"+J+Pe+"&t="+(0,Te.Jn)(J,Date.now())+(ne.indexOf(")")>-1?")":"&")}).replace(Ne,(ne,X,me,ee,g)=>{const w=X||ee,Q=me||g||"";return'"'+le.Z.API_SERVER+"/api/attachments/"+w+Q+w+Q+"&t="+(0,Te.Jn)(w,Date.now())}).replace(Z,(ne,X,me,ee,g)=>{const w=X||ee,Q=me||g||"";return"("+le.Z.API_SERVER+"/files/uploads/"+w+Q+w+Q+"&t="+(0,Te.Jn)(w,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,`
`),fe)};var U=({value:fe="",className:ye,showTextOnly:Se,showLines:Ne,style:Z={},stylesPrev:B={},highlightKeywords:ne,showProgramFill:X,isProgramFill:me,disabledFill:ee=!1,programFillValue:g,onFillChange:w=Pe=>{},onFillBlur:Q=()=>{},onFillFocus:J=()=>{}})=>{let Pe=String(fe);const[Ue,Xe]=(0,T.useState)(""),[Ze,lt]=(0,T.useState)("office"),[at,ct]=(0,T.useState)([]),Ot=(0,T.useRef)("a"+(0,o.Z)()),Ut={},un=(he,de,K)=>{const Ie=document.createElement(he===re?"input":"textarea");Ie.style.width="100%",Ie.style.height=he===re?"40px":"151px",Ie.rows=5,Ie.spellcheck=!1,Ie.name="edu-program-fill",Ie.placeholder="\u8BF7\u8F93\u5165",Ie.dataset.id=de;const $e=Object.keys(Ut).length;return Ut[$e]=Ie,`<span class="edu-program-fill-wrap ${he===re?"":"show"}" style="width:${he===re?"400px":"100%"}" title=${K||""}><span>${Ie.outerHTML}<span class="edu-program-fill-score" style="margin:0 6px"></span></span></span>`};function Ft(he){return he=he.replace(/!\[.*?\]\(.*?\)/g,""),he=he.replace(/\[.*?\]\(.*?\)/g,""),he=he.replace(new RegExp("<iframe.*?<\\/iframe>","gs"),""),he=he.replace(/<embed.*?>/g,""),he=he.replace(/<img.*?>/g,""),he=he.replace(new RegExp("<video.*?>.*?<\\/video>","gs"),""),he=he.replace(new RegExp("<audio.*?>.*?<\\/audio>","gs"),""),he=he.replace(new RegExp("<style.*?>.*?<\\/style>","gs"),""),he=he.replace(new RegExp("<script.*?>.*?<\\/script>","gs"),""),he}const nt=he=>he.replace(/<style.*?>([\s\S]+?)<\/style>/gim,function(de,K){let Ie=K.replace(/(\n|\r)/g,"").split("}"),$e=[];return Ie.map(Me=>{Me!=""&&$e.push(`.${Ot.current} ${Me}`)}),`<style>${$e.join("}")}</style>`}),Et=(0,T.useMemo)(()=>{try{const Ie=/\(\s+\/api\/attachments\/|\(\/api\/attachments\//g,$e=/\"\/api\/attachments\/|\"\/attachments\/download\//g,Me=/\(\s+\/files\/uploads\/|\"\/files\/uploads\//g,Be=/\(\/attachments\/download\//g;Pe=Pe.replace(Be,"("+le.Z.API_SERVER+"/attachments/download/").replace(Ie,"("+le.Z.API_SERVER+"/api/attachments/").replace($e,'"'+le.Z.API_SERVER+"/api/attachments/").replace(Me,'"'+le.Z.API_SERVER+"/files/uploads/").replaceAll("http://video.educoder","https://video.educoder").replaceAll("http://www.educoder.net/api","https://data.educoder.net/api").replaceAll("https://www.educoder.net/api","https://data.educoder.net/api").replace(/\r\n/g,`
`)}catch(Ie){}if(X){let Ie=-1;return Pe=Pe.replaceAll("<","&lt;").replaceAll(">","&gt;").replace(/(@▁▁@|@▁@)/g,function($e,Me,Be){var Ye;return++Ie,un($e,Ie,(Ye=g==null?void 0:g[Ie])==null?void 0:Ye.value.replaceAll("<","&lt;").replaceAll(">","&gt;"))}),`<pre style="background:#fff;padding:4px">${nt(Pe||"")}</pre>`}let he=nt(Pe);he=(0,ie.ZP)(he);const de=(0,ie.ez)();Pe.match(/\[TOC\]/)&&(he=he.replace("<p>[TOC]</p>",(0,ie.Qv)()),(0,ie.Iy)()),he=he.replace(/(__special_katext_id_\d+__)/g,(Ie,$e)=>{const{type:Me,expression:Be}=de[$e];return(0,be.renderToString)(D(Be)||"",{displayMode:Me==="block",throwOnError:!1,output:"html"})}),he=he.replace(/▁/g,"\u2581\u2581\u2581\u2581\u2581"),(0,ie.AL)();const K=document.createElement("div");if(K.innerHTML=he,Se)return K.innerText;if(ne){const Ie=ne.replace(/[.*+?^${}()|[\]\\]/g,"\\$&");return ce(K,Ie),K.innerHTML}return setTimeout(()=>C(),500),K.innerHTML},[Pe,ne]);(0,T.useEffect)(()=>{xe.current&&xe.current.querySelectorAll(["input","textarea"]).forEach(de=>{de.oninput=oe,de.onblur=_e,de.onfocus=M})},[at]),(0,T.useEffect)(()=>{var he,de,K,Ie,$e;if(g!=null&&g.length)try{const Me=xe.current.querySelectorAll(".edu-program-fill-score"),Be=xe.current.querySelectorAll('[name="edu-program-fill"]');for(const[Ye,Qe]of Be.entries())Qe.value=((he=g==null?void 0:g[Ye])==null?void 0:he.value)||"",((de=g==null?void 0:g[Ye])==null?void 0:de.type)==="warning"?Qe.className="program-fill-warning":((K=g==null?void 0:g[Ye])==null?void 0:K.type)==="success"?Qe.className="program-fill-success":Qe.className="";for(const[Ye,Qe]of Me.entries())Qe.innerHTML=(Ie=g==null?void 0:g[Ye])!=null&&Ie.score?`${($e=g==null?void 0:g[Ye])==null?void 0:$e.score}\u5206`:"";ct(g)}catch(Me){console.log(Me,"error")}},[g]);const oe=he=>{at[he.target.dataset.id]=at[he.target.dataset.id]||{},at[he.target.dataset.id].value=he.target.value,ct([...at]),w(at,he.target.dataset.id)},_e=he=>{at[he.target.dataset.id]=at[he.target.dataset.id]||{},at[he.target.dataset.id].value=he.target.value,ct([...at]),Q(at,he.target.dataset.id)},M=he=>{at[he.target.dataset.id]=at[he.target.dataset.id]||{},at[he.target.dataset.id].value=he.target.value,ct([...at]),J(at,he.target.dataset.id)};function ce(he,de){return he.childNodes.forEach(K=>{var Ie;if(K.childNodes.length>0)ce(K,de);else if(K.nodeName!=="IMG")if(K.innerHTML)K.innerHTML=(Ie=K.innerHTML)==null?void 0:Ie.replace(new RegExp(de,"gi"),'<span style="color:#0152d9;background-color:#1890ff33">$&</span>');else{const $e=document.createElement("span");$e.innerHTML=K.textContent.replace(new RegExp(de,"gi"),'<span style="color:#0152d9;background-color:#1890ff33">$&</span>'),K.replaceWith($e)}})}const xe=(0,T.useRef)();ie.jb.WebkitLineClamp=Ne,Ne&&(Z=z(z({},Z),ie.jb));function O(he){let de=he.target;if(de.tagName.toUpperCase()==="A"){let K=de.getAttribute("href");if(K.indexOf("office")>-1)he.preventDefault(),Xe(K),lt("office");else if(K.indexOf("application/pdf")>-1)he.preventDefault(),Xe(K),lt("pdf");else if(K.indexOf("text/html")>-1)he.preventDefault(),Xe(K),lt("html");else if(K.startsWith("#")){he.preventDefault();let Ie=document.getElementById(K.replace("#",""));Ie&&Ie.scrollIntoView(!0)}}}const C=()=>{var he;const de=(he=xe.current)==null?void 0:he.querySelectorAll("video");de==null||de.forEach(K=>{if(K.oncontextmenu=()=>!1,K.src.indexOf(".m3u8")>-1&&!K.canPlayType("application/vnd.apple.mpegurl")){if(ve.ZP.isSupported()){var Ie=new ve.ZP;Ie.loadSource(K.src),Ie.attachMedia(K)}}})};(0,T.useEffect)(()=>{if(xe.current&&Et&&Et.match(b)&&window.PR.prettyPrint(),xe.current)return xe.current.addEventListener("click",O),()=>{var he;(he=xe.current)==null||he.removeEventListener("click",O),(0,ie.AL)(),(0,ie.Iy)()}},[Et,xe.current,O]),(0,T.useEffect)(()=>{var he;const de=K=>{K.preventDefault(),K.clipboardData.setData("text",window.getSelection().toString())};return(he=xe.current)==null||he.addEventListener("copy",de),()=>{var K;(K=xe.current)==null||K.removeEventListener("copy",de)}},[xe.current]);const k=he=>/<style[\s\S]*?>/i.test(he||"");return T.createElement(T.Fragment,null,Se&&T.createElement("div",{ref:xe},Et),!Se&&!k(Et)&&T.createElement("div",{ref:xe,style:z({},Z),className:`${ye||""} ${ee?"disabled-fill":""} markdown-body ${Ot.current}`,dangerouslySetInnerHTML:{__html:Et}}),!Se&&k(Et)&&T.createElement(c,{html:Et}),T.createElement(L.Z,{close:!0,data:Ue,type:Ue!=null&&Ue.length?Ze:"",style:z({},B),onClose:()=>Xe("")}))}},23954:function(Ht,et,_){"use strict";_.d(et,{SV:function(){return xe},ZP:function(){return ce}});var T=_(59301),N=_(76374);const ie={keywords:["print","auto","break","case","char","const","continue","default","do","double","else","enum","extern","float","for","goto","if","int","long","register","return","short","signed","sizeof","static","struct","switch","typedef","union","unsigned","void","volatile","while"]},Re={quickKey:[{label:"main",content:["public static void main(String[] args) {"," $0","}"].join(`
`)},{label:"System.out.println",content:["System.out.println($0)"].join(`
`)},{label:"System.out.print",content:["System.out.print($0)"].join(`
`)}],keywords:["abstract","continue","for","new","switch","assert","default","goto","package","synchronized","boolean","do","if","private","this","break","double","implements","protected","throw","byte","else","import","public","throws","case","enum","instanceof","return","transient","catch","extends","int","short","try","char","final","interface","static","void","class","finally","long","strictfp","volatile","const","float","native","super","while","true","false"]},ve={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(`
`)}]},le={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(`
`)}]},Te={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 be=_(53184),o=_.n(be),L=Object.defineProperty,$=Object.defineProperties,v=Object.getOwnPropertyDescriptors,c=Object.getOwnPropertySymbols,S=Object.prototype.hasOwnProperty,y=Object.prototype.propertyIsEnumerable,q=(O,C,k)=>C in O?L(O,C,{enumerable:!0,configurable:!0,writable:!0,value:k}):O[C]=k,ae=(O,C)=>{for(var k in C||(C={}))S.call(C,k)&&q(O,k,C[k]);if(c)for(var k of c(C))y.call(C,k)&&q(O,k,C[k]);return O},P=(O,C)=>$(O,v(C)),z=(O,C,k)=>new Promise((he,de)=>{var K=Me=>{try{$e(k.next(Me))}catch(Be){de(Be)}},Ie=Me=>{try{$e(k.throw(Me))}catch(Be){de(Be)}},$e=Me=>Me.done?he(Me.value):Promise.resolve(Me.value).then(K,Ie);$e((k=k.apply(O,C)).next())});const W={languages:["c","abap","apex","azcli","bat","cameligo","clojure","coffee","cpp","csharp","csp","css","dockerfile","fsharp","go","graphql","handlebars","html","ini","java","javascript","json","kotlin","less","lua","markdown","mips","msdax","mysql","objective-c","pascal","pascaligo","perl","pgsql","php","postiats","powerquery","powershell","pug","python","r","razor","redis","redshift","restructuredtext","ruby","rust","sb","scheme","scss","shell","solidity","sophia","sql","st","swift","tcl","twig","vb","xml","yaml'"],tables:{users:["name","id","email","phone","password"],roles:["id","name","order","created_at","updated_at","deleted_at"]}},re=(O,C)=>C.map(k=>({label:k,kind:O.languages.CompletionItemKind.Keyword,insertText:k})),b=O=>Object.keys(W.tables).map(C=>({label:C,kind:O.languages.CompletionItemKind.Variable,insertText:C})),D=(O,C)=>{const k=W.tables[O];return k?k.map(he=>({label:he,kind:C.languages.CompletionItemKind.Field,insertText:he})):[]};function F(O,C,k,he,de){let K=C.getWordUntilPosition(k),Ie={startLineNumber:k.lineNumber,endLineNumber:k.lineNumber,startColumn:K.startColumn,endColumn:K.endColumn},$e=he.map(Me=>({label:Me,kind:O.languages.CompletionItemKind.Keyword,insertText:Me,insertTextRules:O.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:Ie}));return de.map(Me=>{$e.push(P(ae({},Me),{range:Ie}))}),$e}var U=O=>{W.languages.map(de=>(O.languages.registerDocumentFormattingEditProvider(de,{provideDocumentFormattingEdits(K,Ie,$e){return z(this,null,function*(){const Me=o()(K.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:K.getFullModelRange(),text:Me}]})}}),de));const C=ve.quickKey.map(de=>({label:de.label,kind:O.languages.CompletionItemKind.Method,insertText:de.content,insertTextRules:O.languages.CompletionItemInsertTextRule.InsertAsSnippet})),k=le.quickKey.map(de=>({label:de.label,kind:O.languages.CompletionItemKind.Method,insertText:de.content,insertTextRules:O.languages.CompletionItemInsertTextRule.InsertAsSnippet})),he=Re.quickKey.map(de=>({label:de.label,kind:O.languages.CompletionItemKind.Method,insertText:de.content,insertTextRules:O.languages.CompletionItemInsertTextRule.InsertAsSnippet}));O.languages.registerCompletionItemProvider("cpp",{provideCompletionItems:function(de,K){var Ie=de.getWordUntilPosition(K),$e={startLineNumber:K.lineNumber,endLineNumber:K.lineNumber,startColumn:Ie.startColumn,endColumn:Ie.endColumn},Me=de.getLineContent(K.lineNumber).substring(Ie.startColumn-2,Ie.endColumn);return{suggestions:[...ve.keywords.map(Be=>({label:Be,kind:O.languages.CompletionItemKind.Function,documentation:Be,insertText:Be,insertTextRules:O.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:$e})),...ve.quickKey.map(Be=>({label:Be.label,kind:O.languages.CompletionItemKind.Function,documentation:Be.content,insertText:Me.startsWith("#")?Be.content.replace(/#/,""):Be.content,insertTextRules:O.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:$e}))]}}}),O.languages.registerCompletionItemProvider("c",{provideCompletionItems:function(de,K){var Ie=de.getWordUntilPosition(K),$e={startLineNumber:K.lineNumber,endLineNumber:K.lineNumber,startColumn:Ie.startColumn,endColumn:Ie.endColumn};return{suggestions:[...ie.keywords.map(Me=>({label:Me,kind:O.languages.CompletionItemKind.Function,documentation:Me,insertText:Me,insertTextRules:O.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:$e}))]}}}),O.languages.registerCompletionItemProvider("java",{provideCompletionItems:function(de,K){var Ie=de.getWordUntilPosition(K),$e={startLineNumber:K.lineNumber,endLineNumber:K.lineNumber,startColumn:Ie.startColumn,endColumn:Ie.endColumn},Me=de.getLineContent(K.lineNumber).substring(Ie.startColumn-2,Ie.endColumn);return{suggestions:[...Re.keywords.map(Be=>({label:Be,kind:O.languages.CompletionItemKind.Function,documentation:Be,insertText:Be,insertTextRules:O.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:$e})),...Re.quickKey.map(Be=>({label:Be.label,kind:O.languages.CompletionItemKind.Function,documentation:Be.content,insertText:Me.startsWith("#")?Be.content.replace(/#/,""):Be.content,insertTextRules:O.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:$e}))]}}}),O.languages.registerCompletionItemProvider("scala",{provideCompletionItems:function(de,K){var Ie=de.getWordUntilPosition(K),$e={startLineNumber:K.lineNumber,endLineNumber:K.lineNumber,startColumn:Ie.startColumn,endColumn:Ie.endColumn},Me=de.getLineContent(K.lineNumber).substring(Ie.startColumn-2,Ie.endColumn);return{suggestions:[...Te.keywords.map(Be=>({label:Be,kind:O.languages.CompletionItemKind.Function,documentation:Be,insertText:Be,insertTextRules:O.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:$e})),...Te.quickKey.map(Be=>({label:Be.label,kind:O.languages.CompletionItemKind.Function,documentation:Be.content,insertText:Me.startsWith("#")?Be.content.replace(/#/,""):Be.content,insertTextRules:O.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:$e}))]}}}),O.languages.registerCompletionItemProvider("python",{provideCompletionItems:function(de,K){var Ie=de.getWordUntilPosition(K),$e={startLineNumber:K.lineNumber,endLineNumber:K.lineNumber,startColumn:Ie.startColumn,endColumn:Ie.endColumn},Me=de.getLineContent(K.lineNumber).substring(Ie.startColumn-2,Ie.endColumn);return{suggestions:[...le.keywords.map(Be=>({label:Be,kind:O.languages.CompletionItemKind.Function,documentation:Be,insertText:Be,insertTextRules:O.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:$e})),...le.quickKey.map(Be=>({label:Be.label,kind:O.languages.CompletionItemKind.Function,documentation:Be.content,insertText:Me.startsWith("#")?Be.content.replace(/#/,""):Be.content,insertTextRules:O.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:$e}))]}}})};const fe="\u8BE5\u4EFB\u52A1\u5173\u5361\u8BBE\u7F6E\u4E86\u7981\u6B62\u590D\u5236\u7C98\u8D34\uFF0C\u8BF7\u624B\u52A8\u8F93\u5165\u4EE3\u7801\u3002";var ye=Object.defineProperty,Se=(O,C,k)=>C in O?ye(O,C,{enumerable:!0,configurable:!0,writable:!0,value:k}):O[C]=k,Ne=(O,C,k)=>Se(O,typeof C!="symbol"?C+"":C,k);const Z=class Xo{constructor(C,k,he){this.placeholder=C,this.editor=k,this.monaco=he,k.onDidChangeModelContent(()=>this.onDidChangeModelContent()),this.onDidChangeModelContent()}onDidChangeModelContent(){this.editor.getValue()===""?this.editor.addContentWidget(this):this.editor.removeContentWidget(this)}getId(){return Xo.ID}getDomNode(){return this.domNode||(this.domNode=document.createElement("div"),this.domNode.style.width="max-content",this.domNode.textContent=this.placeholder,this.domNode.style.fontStyle="initial",this.domNode.style.color="#D7D7D7",this.domNode.style.pointerEvents="none",this.editor.applyFontInfo(this.domNode)),this.domNode}getPosition(){return{position:{lineNumber:1,column:1},preference:[this.monaco.editor.ContentWidgetPositionPreference.EXACT]}}dispose(){this.editor.removeContentWidget(this)}};Ne(Z,"ID","editor.widget.placeholderHint");var ne=Z,X=_(96236),me=_(8591),ee=_(6848),g=_(89392),w=_(34604),Q=_(56102),J=Object.defineProperty,Pe=Object.defineProperties,Ue=Object.getOwnPropertyDescriptors,Xe=Object.getOwnPropertySymbols,Ze=Object.prototype.hasOwnProperty,lt=Object.prototype.propertyIsEnumerable,at=(O,C,k)=>C in O?J(O,C,{enumerable:!0,configurable:!0,writable:!0,value:k}):O[C]=k,ct=(O,C)=>{for(var k in C||(C={}))Ze.call(C,k)&&at(O,k,C[k]);if(Xe)for(var k of Xe(C))lt.call(C,k)&&at(O,k,C[k]);return O},Ot=(O,C)=>Pe(O,Ue(C)),Ut=(O,C)=>{var k={};for(var he in O)Ze.call(O,he)&&C.indexOf(he)<0&&(k[he]=O[he]);if(O!=null&&Xe)for(var he of Xe(O))C.indexOf(he)<0&&lt.call(O,he)&&(k[he]=O[he]);return k},un=(O,C,k)=>new Promise((he,de)=>{var K=Me=>{try{$e(k.next(Me))}catch(Be){de(Be)}},Ie=Me=>{try{$e(k.throw(Me))}catch(Be){de(Be)}},$e=Me=>Me.done?he(Me.value):Promise.resolve(Me.value).then(K,Ie);$e((k=k.apply(O,C)).next())});function Ft(O){return/^\d+$/.test(O)?`${O}px`:O}function nt(){}let Et=!1;const oe={"Python3.6":"python","Python2.7":"python",Dynamips:"cpp",Java:"java",Web:"php",Html:"html",Hive:"sql",Hadoop:"java",SDL:"cpp",PHP:"php",Matlab:"python",Git:"python",Python:"python","C/C++":"cpp","C++":"cpp",C:"cpp",Ruby:"ruby",Shell:"shell",JavaScript:"javascript",Perl6:"perl",Kotlin:"kotlin",Elixir:"elixir",Android:"java",JavaWeb:"java",Go:"go",Spark:"sql",MachineLearning:"python",Verilog:"xml","Verilog/VNC":"xml",Docker:"dockerfile","C#":"csharp",SQLite3:"sql",Oracle:"sql",Vhdl:"vhdl",R:"r",Swift:"swift",SQLServer:"mysql",MySQL:"mysql",Mongo:"sql",PostgreSql:"pgsql",Hbase:"powershell",Sqoop:"sql",Nasm:"cpp",Kafka:"java",Flink:"java",Sml:"javascript",OpenGL:"cpp",Perl5:"perl",Orange:"python",Scala:"scale",solidity:"sol"};function _e(O=[]){let C=O;if(Array.isArray(O)){for(let k=0;k<O.length;k++){let he=oe[O[k]];if(he)return he}return C[0]}return oe[C]||C}let M=null;var ce=O=>{var C=O,{width:k="100%",height:he="100%",value:de,language:K="javascript",style:Ie={},options:$e={},overrideServices:Me={},theme:Be="vs-dark",onEditBlur:Ye,isCopy:Qe=!1,onSave:Je,autoHeight:dt=!1,forbidCopy:At=!1,onChange:gt=nt,editorDidMount:Rt=nt,onFocus:Ct=nt,onBreakPoint:x=nt,breakPointValue:A=[],filename:rt="educoder.txt",errorLine:Y,errorContent:Ce="",highlightLine:vn,openBreakPoint:ke=!1,placeholder:He=""}=C,We=Ut(C,["width","height","value","language","style","options","overrideServices","theme","onEditBlur","isCopy","onSave","autoHeight","forbidCopy","onChange","editorDidMount","onFocus","onBreakPoint","breakPointValue","filename","errorLine","errorContent","highlightLine","openBreakPoint","placeholder"]);const te=(0,T.useRef)(),pe=(0,T.useRef)({}),De=(0,T.useRef)(),ze=(0,T.useRef)(),V=(0,T.useRef)([]),kt=(0,T.useRef)(!1),Le=(0,T.useRef)(),jt=(0,T.useRef)(),ln=(0,T.useRef)(!1),[bt,Lt]=(0,T.useState)(!1);function ot(){let Nt;return te.current&&(Nt=new N.Z(xt=>{for(let rn of xt)(rn.target.offsetHeight>0||rn.target.offsetWidth>0)&&pe.current.instance.layout()}),Nt.observe(te.current)),Nt}function ft(){me.ZP.warning({content:decodeURIComponent(fe),key:"monaco-editor-tip"})}const Gt=()=>{let Nt=pe.current.instance;if(de!=null&&Nt&&bt){const xt=Nt.getModel();xt&&de!==xt.getValue()&&(Et=!0,xt.setValue(de),Nt.layout(),Et=!1)}};(0,T.useEffect)(()=>{const Nt=w.Z.subscribe("formatDocument",xt=>{var rn;let Qt=pe.current.instance;(rn=Qt==null?void 0:Qt.getAction)==null||rn.call(Qt,"editor.action.formatDocument").run()});return window.updateMonacoValue=xt=>{gt(xt)},Nt},[]),(0,T.useEffect)(()=>{var Nt;let xt=pe.current.instance;ze.current&&clearTimeout(ze.current),ze.current=setTimeout(()=>{Gt()},500),de&&(de!=null&&de.length)&&((Nt=xt==null?void 0:xt.updateOptions)==null||Nt.call(xt,{lineNumbersMinChars:Math.max(Math.floor(Math.log10(de.split(/\r\n|\r|\n/g).length))+3,5)}))},[de,bt,pe.current]),(0,T.useEffect)(()=>{if(Y&&pe.current&&pe.current.instance){let xt=pe.current.instance;xt.changeViewZones(function(rn){var Qt=document.createElement("div");Qt.style.padding="10px 20px",Qt.style.width="calc(100% - 20px)",Qt.className="my-error-line-wrp",Qt.innerHTML=Ce,rn.addZone({afterLineNumber:Y||11,heightInLines:3,domNode:Qt})});var Nt={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}};xt.addOverlayWidget(Nt),xt.revealPositionInCenter({lineNumber:20,column:1})}},[Y,pe.current,bt]);const yn=(Nt="",xt)=>{if(!Nt||Nt.trim()==="")return!0;const Qt=pe.current.instance.getModel().getLineTokens(xt);let hn=!1;for(let zn=0;zn<2;zn++)Qt.getStandardTokenType(zn)===1&&(hn=!0);return hn};(0,T.useEffect)(()=>{var Nt;const xt=(Nt=pe.current)==null?void 0:Nt.instance;if(xt&&bt&&At){const rn=xt.onDidBlurEditorWidget(()=>{ln.current=!1}),Qt=xt.onDidFocusEditorText(()=>{ln.current=!0});return()=>{rn.dispose(),Qt.dispose()}}},[pe.current,bt,At]),(0,T.useEffect)(()=>{var Nt;if((Nt=pe.current)!=null&&Nt.instance&&bt&&ke){let xt=pe.current.instance,rn=xt.getModel();if(!rn)return;(()=>{var It;let Tt=[],Wt=[];const mn=rn.getAllDecorations();for(let Pn of mn)Pn.options.className==="highlighted-line"&&(Tt.push((It=Pn==null?void 0:Pn.range)==null?void 0:It.startLineNumber),Wt.push(Pn==null?void 0:Pn.id));if(vn===Tt[0])return;rn.deltaDecorations(Wt,[]);const cn=rn.getLineCount();vn&&vn<=cn&&(xt.deltaDecorations([],[{range:new M.Range(vn,1,vn,rn.getLineMaxColumn(vn)),options:{isWholeLine:!0,className:"highlighted-line"}}]),xt.revealLineInCenter(vn))})();const hn=(It=!1)=>{var Tt;let Wt=[],mn=[];const cn=rn.getAllDecorations();for(let Pn of cn)Pn.options.linesDecorationsClassName==="breakpoints-select"&&(Wt.push((Tt=Pn==null?void 0:Pn.range)==null?void 0:Tt.startLineNumber),mn.push(Pn==null?void 0:Pn.id));if(It)return{lines:Wt,ids:mn};x(Wt)},zn=It=>un(void 0,null,function*(){let Tt={range:new M.Range(It,1,It,1),options:{isWholeLine:!1,linesDecorationsClassName:"breakpoints-select"}};yield rn.deltaDecorations([],[Tt]),hn()}),Qn=It=>un(void 0,null,function*(){let Tt=[];const Wt=xt.getLineDecorations(It);for(let mn of Wt)mn.options.linesDecorationsClassName==="breakpoints-select"&&Tt.push(mn.id);yield rn.deltaDecorations(Tt,[]),hn()}),On=It=>{let Tt=xt.getLineDecorations(It);for(let Wt of Tt)if(Wt.options.linesDecorationsClassName==="breakpoints-select")return!0;return!1};if(!(0,g.isEqual)(A,hn(!0).lines)){rn.deltaDecorations(hn(!0).ids,[]);const It=A.map(Tt=>({range:new M.Range(Tt,1,Tt,1),options:{isWholeLine:!1,linesDecorationsClassName:"breakpoints-select"}}));rn.deltaDecorations([],It)}const Vt=xt.onDidChangeModelContent(It=>{let Tt=xt.getPosition();if(Tt){let Wt=Tt.lineNumber;clearTimeout(jt.current),jt.current=setTimeout(()=>{yn(rn.getLineContent(Wt),Wt)?Qn(Wt):On(Wt)?(Qn(Wt),zn(Wt)):hn()},100)}}),qe=xt.onMouseDown(It=>{var Tt,Wt,mn;if(It.target.detail&&((mn=(Wt=(Tt=It.target)==null?void 0:Tt.element)==null?void 0:Wt.className)!=null&&mn.includes("line-numbers"))){let cn=It.target.position.lineNumber;if(yn(rn.getLineContent(cn),cn))return;On(cn)?Qn(cn):zn(cn)}}),tt=It=>{let Tt={range:new M.Range(It,1,It,1),options:{isWholeLine:!1,linesDecorationsClassName:"breakpoints-fake"}};V.current=xt.deltaDecorations(V.current,[Tt])},ht=()=>{V.current=xt.deltaDecorations(V.current,[])},wt=xt.onMouseMove(It=>{var Tt,Wt,mn;if(ht(),It.target.detail&&((mn=(Wt=(Tt=It.target)==null?void 0:Tt.element)==null?void 0:Wt.className)!=null&&mn.includes("line-numbers"))){let cn=It.target.position.lineNumber;if(yn(rn.getLineContent(cn),cn))return;tt(cn)}}),mt=xt.onMouseLeave(()=>{ht()});return()=>{Vt.dispose(),qe.dispose(),wt.dispose(),mt.dispose()}}},[pe.current,bt,A,vn,ke,K]),(0,T.useEffect)(()=>{var Nt;(Nt=pe.current)!=null&&Nt.instance&&ke&&pe.current.instance.setPosition({lineNumber:0,column:0})},[vn]);function nn(){let Nt=pe.current.instance;if(Nt){const xt=Nt.getSelection(),rn=pe.current.pastePos||{},Qt=new M.Range(rn.startLineNumber||xt.endLineNumber,rn.startColumn||xt.endColumn,rn.endLineNumber||xt.endLineNumber,rn.endColumn||xt.endColumn);setTimeout(()=>{Nt.executeEdits("",[{range:Qt,text:""}])},300)}}function je(Nt){(window.navigator.platform.match("Mac")?Nt.metaKey:Nt.ctrlKey)&&Nt.keyCode==83&&(Nt.preventDefault(),Je())}const we=()=>{if(dt&&pe.current.instance){const Nt=pe.current.instance.getContentHeight();Zt(Nt<he?he:Nt)}else Zt(he)};function ut(Nt){var xt=document.createEvent("MouseEvents");xt.initMouseEvent("click",!0,!1,window,0,0,0,0,0,!1,!1,!1,!1,0,null),Nt.dispatchEvent(xt)}const it=Nt=>{if(!ln.current)return;const{keyCode:xt,ctrlKey:rn,metaKey:Qt,target:hn,type:zn}=Nt;return(zn==="paste"||(xt===67||xt===86)&&(Qt||rn))&&hn.nodeName==="TEXTAREA"&&(ft(),Nt.preventDefault()),!1};function yt(Nt,xt){var rn=window.URL||window.webkitURL||window,Qt=new Blob([xt]),hn=document.createElementNS("http://www.w3.org/1999/xhtml","a");hn.href=rn.createObjectURL(Qt),hn.download=Nt,ut(hn)}(0,T.useEffect)(()=>{we()},[we]),(0,T.useEffect)(()=>{te.current&&!bt&&Promise.all([_.e(8909),_.e(3267)]).then(_.bind(_,71448)).then(Nt=>{try{M=Nt,pe.current.instance=M.editor.create(te.current,{value:de,language:_e(K),theme:Be,requireConfig:{"vs/nls":{availableLanguages:{"*":"zh-cn"}}},wordWrap:!0,autoIndent:!0,contextmenu:!0,formatOnType:!0},Me);const xt=pe.current.instance;let hn=[...X.BH._menuItems].find(Vt=>Vt[0]._debugName=="EditorContext")[1],zn=["editor.action.clipboardCopyWithSyntaxHighlightingAction","editor.action.quickCommand","editor.action.clipboardCopyAction","editor.action.clipboardPasteAction","editor.action.clipboardCutAction"],Qn=(Vt,qe)=>{var tt,ht;let wt=Vt._first;do qe.includes((ht=(tt=wt.element)==null?void 0:tt.command)==null?void 0:ht.id)&&Vt._remove(wt);while(wt=wt.next)};if(Rt(xt,M),setTimeout(()=>{we(),pe.current.instance.addAction({id:"d123123",label:"Download File",contextMenuGroupId:"9_cutcopypaste",run:()=>{yt(rt||"educoder.txt",xt.getValue())}})},500),pe.current.subscription=xt.onDidChangeModelContent(Vt=>{kt.current?clearTimeout(Le.current):(we(),gt(xt.getValue(),Vt)),Le.current=setTimeout(()=>{kt.current=!1},500)}),window.Monaco||U(M,_e(K)),At&&(Qn(hn,zn),te.current.classList.add("noCopyPaste"),window.removeEventListener("keydown",it),window.removeEventListener("paste",it),window.addEventListener("keydown",it),window.addEventListener("paste",it)),window.Monaco=M,Ye&&xt.onDidBlurEditorWidget(()=>{Ye(xt.getValue())}),Ct&&xt.onDidFocusEditorText(()=>{Ct(xt.getValue())}),At)try{xt.onDidPaste(Vt=>{const qe=xt.getSelection(),tt=pe.current.pastePos||{},ht=new M.Range(tt.startLineNumber||qe.endLineNumber,tt.startColumn||qe.endColumn,tt.endLineNumber||qe.endLineNumber,tt.endColumn||qe.endColumn);xt.executeEdits("",[{range:Vt.range,text:""}])})}catch(Vt){}let On=ot();return He&&typeof He=="string"&&new ne(He,xt,M),Lt(!0),()=>{const Vt=pe.current.instance;Vt.dispose();const qe=Vt.getModel();qe&&qe.dispose(),pe.current.subscription&&pe.current.subscription.dispose(),On.unobserve(te.current)}}catch(xt){}})},[]),(0,T.useEffect)(()=>{if(pe.current.instance&&bt)return document.addEventListener("keydown",je,!1),()=>{document.removeEventListener("keydown",je)}},[Je,bt]),(0,T.useEffect)(()=>{let Nt=pe.current.instance;if(Nt&&bt){let xt=_e(K);M.editor.setModelLanguage(Nt.getModel(),xt)}},[K,bt]),(0,T.useEffect)(()=>{pe.current.instance&&bt&&M.editor.setTheme(Be)},[Be,bt]),(0,T.useEffect)(()=>{let Nt=pe.current.instance;De.current=$e,Nt&&bt&&(Nt.updateOptions(ct({},$e)),setTimeout(()=>{Nt.getModel().updateOptions(ct({},$e))},200))},[JSON.stringify($e),bt]),(0,T.useEffect)(()=>{let Nt=pe.current.instance;Nt&&bt&&Nt.layout()},[k,he,bt]);const[Mt,Kt]=(0,T.useState)(Ft(k)),[Pt,Zt]=(0,T.useState)(Ft(he)),Yt=Ot(ct({},Ie),{width:Mt,height:Pt,position:"relative"});return T.createElement("div",{className:"my-monaco-editor",ref:te,style:Yt},Qe&&T.createElement(Q.CopyToClipboard,{text:de,onCopy:()=>me.ZP.success("\u590D\u5236\u6210\u529F")},T.createElement(ee.Z,{title:"\u590D\u5236\u4EE3\u7801"},T.createElement("div",{style:{position:"absolute",top:0,right:10,cursor:"pointer",zIndex:10,color:"#165DFF"}},T.createElement("i",{className:"iconfont icon-fuzhi8",style:{fontSize:14}})," \u590D\u5236\u4EE3\u7801"))))};function xe({width:O="100%",height:C="100%",original:k,modified:he,language:de,options:K={}}){const Ie=(0,T.useRef)(),[$e,Me]=(0,T.useState)(null);function Be(dt){let At;return Ie.current&&(At=new N.Z(gt=>{for(let Rt of gt)(Rt.target.offsetHeight>0||Rt.target.offsetWidth>0)&&dt.layout()}),At.observe(Ie.current)),At}(0,T.useEffect)(()=>(Ie.current&&Promise.all([_.e(8909),_.e(9404)]).then(_.bind(_,2550)).then(dt=>{M=dt;const At=M.editor.createDiffEditor(Ie.current,Ot(ct({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},K),{wordWrap:!0}));Me(At);let gt=Be(At);return()=>{At.dispose();const Rt=At.getModel();Rt&&Rt.dispose(),gt.unobserve(Ie.current)}}),()=>{window.removeEventListener("keydown",checkPaste),window.removeEventListener("paste",checkPaste)}),[]),(0,T.useEffect)(()=>{$e&&$e.setModel({original:M.editor.createModel(k,de),modified:M.editor.createModel(he,de)})},[k,he,de,$e]);const Ye=Ft(O),Qe=Ft(C),Je={width:Ye,height:Qe};return T.createElement("div",{className:"my-diff-editor",ref:Ie,style:Je})}},85057:function(Ht,et,_){"use strict";_.d(et,{jL:function(){return ve},w9:function(){return Ze},QD:function(){return gt},cQ:function(){return Q},op:function(){return Be},O5:function(){return ln},_b:function(){return Y},t7:function(){return P},Gi:function(){return un},YG:function(){return Ot},qp:function(){return $},vr:function(){return x},qE:function(){return Je},Je:function(){return re},wb:function(){return X},cq:function(){return M},tp:function(){return S}});var T=_(59301),N={flex_box_center:"flex_box_center___NeSU8",flex_space_between:"flex_space_between___ImTGl",flex_box_vertical_center:"flex_box_vertical_center___BtRd9",flex_box_center_end:"flex_box_center_end___qcLe3",flex_box_column:"flex_box_column___Ze_3q",banner:"banner___PoUBO",content:"content___XoDjy",btns:"btns___Pb35j"},ie="data:image/png;base64,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",ve=({dataSource:bt=[],img:Lt,imgWidth:ot=346,title:ft,sunTitle:Gt,bannerExtraContent:yn})=>T.createElement("div",{className:N.banner},T.createElement("div",{className:N.content},T.createElement("aside",null,T.createElement("p",null,T.createElement("b",null,ft),T.createElement("span",null,Gt)),bt.length>0&&T.createElement("div",{className:N.btns},bt.map((nn,je)=>T.createElement("div",{key:je,onClick:nn.click},nn.name,nn.sign?T.createElement("img",{src:ie,width:39}):null))),yn),Lt&&T.createElement("img",{style:{marginTop:33,marginRight:38},src:Lt,width:ot}))),le={flex_box_center:"flex_box_center___hG6RI",flex_space_between:"flex_space_between___ss3Fh",flex_box_vertical_center:"flex_box_vertical_center___K80p9",flex_box_center_end:"flex_box_center_end___qmXX3",flex_box_column:"flex_box_column___GFV8F",row:"row___aXJjm",title:"title___HUKL0",tagsWrap:"tagsWrap___XB2W3",action:"action___VdHb1",bar:"bar___t1kKC",tag:"tag___V7Eft",name:"name___Hk1Ip",num:"num___xQpcH",active:"active___XryTX",tagsBorderWrap:"tagsBorderWrap___OMxjs"},Te=_(92310),be=_.n(Te),o=_(89392),$=({dataSource:bt=[],value:Lt,onChange:ot,onTitleChange:ft,className:Gt,title:yn,titleWidth:nn=41,style:je={},fontColor:we="#6A7283",showCount:ut})=>{const[it,yt]=(0,T.useState)(0),[Mt,Kt]=(0,T.useState)(!1),Pt=(0,T.useRef)(null),Zt=(0,T.useRef)(null);return(0,T.useEffect)(()=>{var Yt;bt.length!==0&&(((Yt=Pt==null?void 0:Pt.current)==null?void 0:Yt.clientHeight)>97?yt(1):yt(0)),bt.length===0&&yt(0),Kt(!1)},[bt]),T.createElement("div",{className:be()(le.row,Gt),style:je},T.createElement("div",{onClick:(0,o.throttle)(()=>ft==null?void 0:ft(),2e3),style:{width:nn,marginTop:Mt?12:4},className:`${le.title} ${ft?"current":""}`},yn),T.createElement("div",{className:Mt?`${le.tagsWrap} ${le.tagsBorderWrap}`:le.tagsWrap},T.createElement("div",{className:le.bar,ref:Zt,style:it>0?{height:it===1?97:"auto",overflow:it===1?"hidden":"auto",paddingRight:55}:{paddingRight:0}},T.createElement("div",{className:le.tag,ref:Pt},bt==null?void 0:bt.map(Yt=>T.createElement("span",{onClick:()=>ot(Yt.id),key:Yt.id,style:{color:we},className:Lt===Yt.id?le.active:""},T.createElement("span",{title:Yt.name,className:le.name},Yt.name),!!ut&&T.createElement("span",{className:le.num},Yt.count))))),!!it&&T.createElement(T.Fragment,null,it===1?T.createElement("div",{onClick:()=>{var Yt;yt(2),((Yt=Pt==null?void 0:Pt.current)==null?void 0:Yt.clientHeight)>245?Kt(!0):Kt(!1)},className:le.action},"\u5C55\u5F00",T.createElement("i",{style:{transform:"translateY(1px) scale(0.6)"},className:"iconfont icon-zhankai4"})):T.createElement("div",{onClick:()=>{Zt.current.scrollTop=0,yt(1),Kt(!1)},className:le.action},"\u6536\u8D77",T.createElement("i",{style:{transform:"translateY(0px) scale(0.6)"},className:"iconfont icon-shouqi3"})))))},v={flex_box_center:"flex_box_center___aK2n3",flex_space_between:"flex_space_between___HX0Oh",flex_box_vertical_center:"flex_box_vertical_center___LJOJr",flex_box_center_end:"flex_box_center_end___SCakF",flex_box_column:"flex_box_column___AYv4m",tabs:"tabs___GTqPV",active:"active___F26E8"},S=({dataSource:bt=[],value:Lt,onChange:ot,className:ft,style:Gt={}})=>T.createElement("div",{style:Gt,className:be()(v.tabs,ft)},bt.map(yn=>T.createElement("span",{onClick:()=>ot(yn.id),className:Lt===yn.id?v.active:"",key:yn.id},yn.name))),y={flex_box_center:"flex_box_center___yX6Oa",flex_space_between:"flex_space_between___t7oqF",flex_box_vertical_center:"flex_box_vertical_center___dEIHy",flex_box_center_end:"flex_box_center_end___taQDF",flex_box_column:"flex_box_column___xY_Lr",input:"input___PW2zI",dropdown:"dropdown___vSy8B",menu:"menu___NiyBu",text:"text___Grueu",b1:"b1___ZKryM",b2:"b2___aKyGa"},q=_(92832),P=({dataSource:bt=[],value:Lt="",onChange:ot,onInputChange:ft=()=>{},className:Gt,style:yn={},placeholder:nn,allowClear:je=!1})=>{var we;const[ut,it]=(0,T.useState)(""),[yt,Mt]=(0,T.useState)("");(0,T.useEffect)(()=>{var Zt;let Yt=Lt;(Zt=JSON.stringify(Lt))!=null&&Zt.includes("{")&&(it(Lt.id),Yt=Lt.value||"");try{Mt(decodeURIComponent(Yt||""))}catch(Nt){Mt(decodeURIComponent(Yt||""))}},[Lt]);const Kt=()=>{ot(encodeURIComponent(yt),ut||null)},Pt=Zt=>{Zt!==ut&&(it(Zt),ot(encodeURIComponent(yt),Zt))};return T.createElement("div",{className:be()(y.input,Gt),style:yn},!!bt.length&&T.createElement("div",{className:y.dropdown},T.createElement("div",{className:y.text},(we=bt.find(Zt=>Zt.id===ut))==null?void 0:we.name,T.createElement("i",{className:"iconfont icon-zhankai4"}),T.createElement("b",{className:y.b1}),T.createElement("b",{className:y.b2})),T.createElement("div",{className:y.menu},bt.map((Zt,Yt)=>T.createElement("div",{key:Yt,onClick:()=>Pt(Zt.id)},Zt.name)))),T.createElement(q.default,{onPressEnter:Kt,value:yt,onChange:Zt=>{Mt(Zt.target.value),ft(encodeURIComponent(Zt.target.value),ut||null)},bordered:!1,placeholder:nn}),T.createElement("i",{onClick:Kt,className:"iconfont icon-sousuo9 font14 pl10 current"}))},z={flex_box_center:"flex_box_center___tol8o",flex_space_between:"flex_space_between___Z235C",flex_box_vertical_center:"flex_box_vertical_center___Wq1sZ",flex_box_center_end:"flex_box_center_end___LLxom",flex_box_column:"flex_box_column___DbMSN",quickPager:"quickPager___GM30J",disabled:"disabled___Ozc8I"},re=({value:bt,onChange:Lt,className:ot,total:ft,pageSize:Gt,style:yn={}})=>{const nn=bt<2,je=bt>=Math.ceil(ft/Gt);return ft<=Gt?T.createElement(T.Fragment,null):T.createElement("div",{className:be()(z.quickPager,ot),style:yn},T.createElement("div",{onClick:()=>{nn||Lt(bt-1,"prev")},className:nn?z.disabled:""},"\u4E0A\u4E00\u9875"),T.createElement("div",{onClick:()=>{je||Lt(bt+1,"next")},className:je?z.disabled:""},"\u4E0B\u4E00\u9875"))},b={flex_box_center:"flex_box_center___FO7TP",flex_space_between:"flex_space_between___LotYx",flex_box_vertical_center:"flex_box_vertical_center___bWdaw",flex_box_center_end:"flex_box_center_end___mVJ1o",flex_box_column:"flex_box_column___M83Mm",list:"list___oOsiS",wrap:"wrap___G6T7F",lockWrap:"lockWrap___Rl79E",li:"li___oZZ7l",cover:"cover___b2bYW",img:"img___IQX7w",sign:"sign___HkT6C",name:"name___SsJx8",e:"e___TMqq0",tags:"tags___bcjyo",rate:"rate___YACg7"},D=_(71418),F=_(6848),U=_(13570),fe=_(3294),ye=_(955),Se=_(96908),Ne=_(57177),Z=_(81378),B=_(8797),X=({className:bt,dataSource:Lt=[],col:ot=4,right:ft,bottom:Gt=23,precision:yn=0,wrapWidth:nn=1200,trackEventItems:je,loading:we})=>{const ut=Math.floor((nn-(ot-1)*ft)/ot);return T.createElement(D.Z,{spinning:we},T.createElement("div",{className:be()(b.list,bt)},!!Lt.length&&Lt.map((it,yt)=>{const{name:Mt,id:Kt,identifier:Pt,power:Zt,cover_image_id:Yt,pic:Nt}=it;return T.createElement("div",{className:b.wrap,key:Kt,style:{width:ut,marginRight:(1+yt)%ot===0?0:ft+yn,marginBottom:Gt}},T.createElement("a",{target:"_blank",href:`/shixuns/${Pt}/challenges`,className:b.li,onClick:xt=>{xt.preventDefault(),je&&(0,ye.L9)([je]),Zt&&(0,ye.xg)(`/shixuns/${Pt}/challenges`)}},T.createElement("div",{className:b.img},T.createElement("img",{className:b.cover,src:`${Nt}`}),it.is_jupyter&&T.createElement("img",{className:b.sign,src:Se}),it.is_jupyter_lab&&T.createElement("img",{className:b.sign,src:Ne}),it.is_unity_3d&&T.createElement("img",{className:b.sign,src:Z})),T.createElement("div",{className:b.name},T.createElement(F.Z,{title:Mt||"\u5B9E\u8DF5\u9879\u76EE\u540D\u79F0-\u672A\u586B\u5199"},T.createElement("span",{className:b.e},Mt||"\u5B9E\u8DF5\u9879\u76EE\u540D\u79F0-\u672A\u586B\u5199"))),T.createElement("div",{className:b.tags},T.createElement(F.Z,{placement:"bottom",title:"\u5173\u5361\u6570"},T.createElement("span",null,T.createElement("i",{className:"iconfont icon-shixunguanqia font14 mr2"}),T.createElement("span",null,it.challenges_count))),!!it.myshixuns_count&&T.createElement(F.Z,{placement:"bottom",title:"\u5B66\u4E60\u4EBA\u6570"},T.createElement("span",null,T.createElement("i",{className:"iconfont icon-chengyuan font14 mr2"}),T.createElement("span",null,it.myshixuns_count))),T.createElement(F.Z,{placement:"bottom",title:"\u96BE\u5EA6\u7B49\u7EA7"},T.createElement("span",null,T.createElement("span",null,it.level))),T.createElement("div",{className:b.rate},T.createElement(U.Z,{allowHalf:!0,disabled:!0,defaultValue:it.score_info}),T.createElement("span",null,"\xA0",it.score_info?`${it.score_info}\u5206`:"5\u5206")))),!Zt&&T.createElement("div",{className:b.lockWrap},T.createElement("img",{src:`${fe.Z.IMG_SERVER}/images/educoder/icon/lockclose.svg`}),T.createElement("span",{className:"mt15 font16 c-white"},"\u5B9A\u5411\u5F00\u653E\u5185\u5BB9\uFF0C\u9700\u8981\u6388\u6743")))}),!Lt.length&&T.createElement(B.Z,null)))},me={flex_box_center:"flex_box_center___AQ53o",flex_space_between:"flex_space_between___i2aIa",flex_box_vertical_center:"flex_box_vertical_center___sPEKB",flex_box_center_end:"flex_box_center_end___GhSSH",flex_box_column:"flex_box_column___R9_Hb",list:"list___jb2Ay",wrap:"wrap___VsQDr",lockWrap:"lockWrap___g1k1T",li:"li___IxCLC",cover:"cover___Mu8wr",img:"img___IpFLA",movebq:"movebq___mF7wt",bq:"bq___Bil0T",sign:"sign___DXJ4d",name:"name___l7FoJ",e:"e___pXQUG",unit:"unit___wCIFR",tags:"tags___w_Mil",tag1:"tag1___dxm7r",tag2:"tag2___llZkf"},ee=_(24065),g=_(59301),Q=({className:bt,dataSource:Lt=[],col:ot=4,right:ft,bottom:Gt=23,precision:yn=0,wrapWidth:nn=1200,trackEventItems:je,loading:we,onRemove:ut=()=>{},isCurrent:it=!0,showAlias:yt=!1})=>{const Mt=Math.floor((nn-(ot-1)*ft)/ot),Kt=[{name:"\u63A8\u8350\u81EA\u5B66",ptimg:"/images/tjzx.png",swimg:"/images/sw_tjzx.png"},{name:"101\u8BA1\u5212",ptimg:"/images/jh.png",swimg:"/images/sw_jh.png"},{name:"\u56FD\u5BB6\u4E00\u6D41",ptimg:"/images/gjyl.png",swimg:"/images/sw_gjyl.png"},{name:"\u7701\u7EA7\u4E00\u6D41",ptimg:"/images/sjyl.png",swimg:"/images/sw_sjyl.png"},{name:"\u7CBE\u54C1\u8BFE\u7A0B",ptimg:"/images/jpkc.png",swimg:"/images/sw_jpkc.png"},{name:"\u519B\u961F\u4E00\u6D41",ptimg:"/images/jdyl.png",swimg:"/images/sw_jdyl.png"},{name:"\u65B0\u578B\u6559\u6750",ptimg:"/images/xxjc.png",swimg:"/images/sw_xxjc.png"}];return g.createElement(D.Z,{spinning:we},g.createElement("div",{className:be()(me.list,bt)},!!(Lt!=null&&Lt.length)&&(Lt==null?void 0:Lt.map((Pt,Zt)=>{var Yt;const{name:Nt,id:xt,identifier:rn,featured:Qt,school_name:hn,image_url:zn,excellent:Qn,is_plan:On}=Pt;return g.createElement("div",{key:xt,className:me.wrap,style:{width:Mt,marginRight:(1+Zt)%ot===0?0:ft+yn,marginBottom:Gt}},g.createElement("a",{className:me.li,onClick:Vt=>{Vt.preventDefault(),Vt.stopPropagation(),je&&(0,ye.L9)([je]),(0,ye.xg)(`/paths/${rn}`)}},g.createElement("div",{className:me.img},g.createElement("img",{className:me.cover,src:`${zn}`}),it&&(0,ee.bg)()&&(Pt==null?void 0:Pt.studying)&&g.createElement("div",{className:`${me.movebq} user-path-items`,onClick:Vt=>{Vt.stopPropagation(),ut(Pt)}},g.createElement("i",{className:"iconfont icon-yichu1 mr5 c-red"}),g.createElement("span",{className:"c-red"},"\u79FB\u9664")),(Yt=Pt==null?void 0:Pt.subject_tags)==null?void 0:Yt.map((Vt,qe)=>{var tt,ht;if(qe===0){const mt=(tt=Kt.find(It=>It.name==Vt))==null?void 0:tt.swimg;return g.createElement("img",{className:me.sign,src:mt,style:{left:"-4px"}})}const wt=(ht=Kt.find(mt=>mt.name==Vt))==null?void 0:ht.ptimg;return g.createElement("img",{className:me.sign,src:wt,style:{left:`${48+52*(qe-1)+2*qe}px`}})}),g.createElement("div",{style:{position:"absolute",top:"150px",left:"4px"}},(Pt==null?void 0:Pt.excellent)&&g.createElement("div",{className:me.bq},"\u5F00\u653E\u8BFE\u7A0B"))),g.createElement("div",{className:me.name},g.createElement(F.Z,{title:yt&&(Pt!=null&&Pt.excellent_alias_name)?g.createElement("span",null,`\u8BFE\u7A0B\u539F\u540D\uFF1A${Nt}`,g.createElement("br",null),g.createElement("span",null,`\u8BFE\u7A0B\u522B\u540D\uFF1A${Pt==null?void 0:Pt.excellent_alias_name}`)):Nt},g.createElement("span",{className:me.e},yt&&(Pt==null?void 0:Pt.excellent_alias_name)||Nt))),g.createElement(F.Z,{title:`\u53D1\u5E03\u5355\u4F4D\uFF1A${hn}`},g.createElement("div",{className:me.unit},g.createElement("i",{className:"iconfont icon-danwei1 font14 mr3"}),hn)),g.createElement("div",{className:me.tags},g.createElement("div",null,g.createElement(F.Z,{placement:"bottom",title:"\u7AE0\u8282\u6570"},g.createElement("span",null,g.createElement("i",{className:"iconfont icon-zhangjie1 font14 mr3"}),g.createElement("span",null,Pt.stages_count))),g.createElement(F.Z,{placement:"bottom",title:"\u5B66\u4E60\u4EBA\u6570"},g.createElement("span",null,g.createElement("i",{className:"iconfont icon-chengyuan font14 mr3"}),g.createElement("span",null,Pt.members_count)))))))})),!Lt.length&&g.createElement(B.Z,null)))},J={flex_box_center:"flex_box_center___eMcr7",flex_space_between:"flex_space_between___HcNca",flex_box_vertical_center:"flex_box_vertical_center___ZnvVN",flex_box_center_end:"flex_box_center_end___fdgDf",flex_box_column:"flex_box_column___SEKvd",list:"list___L1hmU",wrap:"wrap___pKgcW",lockWrap:"lockWrap___SMhkK",top:"top___udHSB",sign:"sign___uwRpq",name:"name___Fpf90",img:"img___AMLhL",text:"text___KiTb7",btns:"btns___i6IuZ",bottom:"bottom____k2sh"},Pe="data:image/png;base64,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",Ue=_(59301),Ze=({className:bt,dataSource:Lt=[],col:ot=4,right:ft,bottom:Gt=23,precision:yn=0,wrapWidth:nn=1200,trackEventItems:je,loading:we,handleVery:ut=()=>!0})=>{const it=Math.floor((nn-(ot-1)*ft)/ot);return Ue.createElement(D.Z,{spinning:we},Ue.createElement("div",{className:be()(J.list,bt)},!!Lt.length&&Lt.map((yt,Mt)=>{const{subject_identifier:Kt,id:Pt,identifier:Zt,power:Yt}=yt,Nt=yt.is_public!=0&&yt.is_public;return Ue.createElement("div",{className:J.wrap,key:Pt,style:{width:it,marginRight:(1+Mt)%ot===0?0:ft+yn,marginBottom:Gt}},Ue.createElement("a",{className:J.li,onClick:xt=>{xt.preventDefault(),ut(yt==null?void 0:yt.first_category_url)&&(je&&(0,ye.L9)([je]),(0,ye.xg)(yt.first_category_url))}},Ue.createElement("div",{className:J.top},Ue.createElement(F.Z,{title:yt.name},Ue.createElement("div",{className:J.name},yt.name)),Ue.createElement("img",{className:J.img,src:fe.Z.IMG_SERVER+"/images/"+yt.avatar_url}),Ue.createElement("div",{className:J.text,title:yt.creator},yt.creator),Kt&&Ue.createElement("div",{className:J.btns},Ue.createElement("div",null,"\u5F00\u653E\u8BFE\u7A0B"),Ue.createElement("aside",null,"\u5F00\u653E\u8BFE\u5802")),Nt&&Ue.createElement("div",{className:J.sign},"\u516C\u5F00")),Ue.createElement("div",{className:J.bottom},yt.visits>0&&Ue.createElement(F.Z,{title:"\u8BBF\u95EE\u91CF",placement:"bottom"},Ue.createElement("span",null,Ue.createElement("i",{className:"iconfont icon-liulanyan"}),Ue.createElement("span",null,yt.visits))),yt.course_members_count>0&&Ue.createElement(F.Z,{title:"\u6210\u5458",placement:"bottom"},Ue.createElement("span",null,Ue.createElement("i",{className:"iconfont icon-chengyuan"}),yt.course_members_count)),yt.tasks_count>0&&Ue.createElement(F.Z,{title:"\u4F5C\u4E1A",placement:"bottom"},Ue.createElement("span",null,Ue.createElement("i",{className:"iconfont icon-zuoye"}),yt.tasks_count)),yt.is_end?Ue.createElement("div",{style:{color:"#6B758B"}},"\u5DF2\u7ED3\u675F"):Ue.createElement("div",{style:{color:"#00B187"}},"\u8FDB\u884C\u4E2D"))),!yt.is_accessible&&Ue.createElement("div",{className:J.lockWrap},Ue.createElement("img",{src:`${fe.Z.IMG_SERVER}/images/educoder/icon/lockclose.svg`}),Ue.createElement("span",{className:"mt15 font16 c-white"},"\u975E\u8BFE\u5802\u6210\u5458\u4E0D\u53EF\u8FDB\u5165")))}),!Lt.length&&Ue.createElement(B.Z,null)))},lt={flex_box_center:"flex_box_center___d27mZ",flex_space_between:"flex_space_between___qfRU9",flex_box_vertical_center:"flex_box_vertical_center___fCRld",flex_box_center_end:"flex_box_center_end___ORMV8",flex_box_column:"flex_box_column___PNKtZ",tabs:"tabs___alpa7",tabsWrap:"tabsWrap___aCQjw",tab:"tab___MKLr4",active:"active___nl_4v"},at=_(89070),Ot=({dataSource:bt=[],value:Lt,onChange:ot,className:ft,style:Gt={},tabBarExtraContent:yn})=>T.createElement("div",{className:be()(lt.tabs,ft),style:Gt},T.createElement("div",{className:lt.tabsWrap},bt.map((nn,je)=>!(nn!=null&&nn.hide)&&T.createElement("aside",{className:lt.tab,onClick:()=>{ot(nn.id),nn.link&&at.history.push(nn.link)},key:je},T.createElement("div",{className:Lt===nn.id?lt.active:""},nn.name),(nn==null?void 0:nn.resetCount)==null&&(nn==null?void 0:nn.total)!==void 0&&T.createElement("span",null,"\uFF08",nn==null?void 0:nn.total,"\uFF09"),(nn==null?void 0:nn.resetCount)!==void 0&&(nn==null?void 0:nn.total)!==void 0&&T.createElement(F.Z,{title:(nn==null?void 0:nn.tip)!=null?nn==null?void 0:nn.tip:""},T.createElement("span",{style:{color:"#9096A3"}},"\uFF08",T.createElement("span",{style:{color:"#000"}},nn==null?void 0:nn.resetCount),"/",T.createElement("span",null,nn==null?void 0:nn.total),"\uFF09"))))),T.createElement("div",{className:lt.tabBar},yn)),un=({className:bt,style:Lt={},children:ot})=>T.createElement("div",{className:be()(bt),style:Lt},ot),Ft={flex_box_center:"flex_box_center___e6HxQ",flex_space_between:"flex_space_between___RnXYe",flex_box_vertical_center:"flex_box_vertical_center___lVxPk",flex_box_center_end:"flex_box_center_end___bu8yv",flex_box_column:"flex_box_column___JczGj",orderWrap:"orderWrap___ZfyGX",orderIconWrap:"orderIconWrap___XTB_O",orderAsc:"orderAsc___KWHmA",orderDesc:"orderDesc___rHdbB",active:"active___a7eSP",cursorPointer:"cursorPointer___gs9kL",orderTextWrap:"orderTextWrap___teAKn"},nt=_(38854),Et=_(20834);const oe=[{id:"updated_at",name:"\u6700\u65B0\u52A8\u6001"},{id:"created_at",name:"\u6700\u65B0\u521B\u5EFA"},{id:"name",name:"\u540D\u79F0\u6392\u5E8F"}];var M=({sortValue:bt,dropValue:Lt,className:ot,onSort:ft,onDrop:Gt,dataSource:yn=oe})=>{var nn;return T.createElement("div",{className:be()(Ft.orderWrap,ot)},T.createElement(nt.Z,{dropdownRender:()=>T.createElement(Et.default,null,yn.map((je,we)=>T.createElement(Et.default.Item,{key:we,onClick:()=>Gt(je.id)},je.name)))},T.createElement("span",{className:Ft.orderTextWrap},(nn=yn.find(je=>Lt===je.id))==null?void 0:nn.name)),T.createElement("span",{className:Ft.orderIconWrap},T.createElement("span",{className:Ft.orderAsc},T.createElement("i",{className:bt==="asc"?`iconfont icon-sanjiaoxing-up font12 ${Ft.cursorPointer} ${Ft.active}`:`iconfont icon-sanjiaoxing-up font12 ${Ft.cursorPointer}`,onClick:()=>ft(bt==="asc"?"desc":"asc")})),T.createElement("span",{className:Ft.orderDesc},T.createElement("i",{className:bt==="desc"?`iconfont icon-sanjiaoxing-down font12 ${Ft.cursorPointer} ${Ft.active}`:`iconfont icon-sanjiaoxing-down font12 ${Ft.cursorPointer}`,onClick:()=>ft(bt==="asc"?"desc":"asc")}))))},ce={flex_box_center:"flex_box_center___LCi0B",flex_space_between:"flex_space_between___hzONe",flex_box_vertical_center:"flex_box_vertical_center___ZyQRE",flex_box_center_end:"flex_box_center_end___XKM74",flex_box_column:"flex_box_column___p8LCU",btn:"btn___In02G","mediacy-round":"mediacy-round___uveEv","mediacy-default":"mediacy-default___dDxsd",default:"default___K791v"},xe=_(3113),O=Object.defineProperty,C=Object.getOwnPropertySymbols,k=Object.prototype.hasOwnProperty,he=Object.prototype.propertyIsEnumerable,de=(bt,Lt,ot)=>Lt in bt?O(bt,Lt,{enumerable:!0,configurable:!0,writable:!0,value:ot}):bt[Lt]=ot,K=(bt,Lt)=>{for(var ot in Lt||(Lt={}))k.call(Lt,ot)&&de(bt,ot,Lt[ot]);if(C)for(var ot of C(Lt))he.call(Lt,ot)&&de(bt,ot,Lt[ot]);return bt},Ie=(bt,Lt)=>{var ot={};for(var ft in bt)k.call(bt,ft)&&Lt.indexOf(ft)<0&&(ot[ft]=bt[ft]);if(bt!=null&&C)for(var ft of C(bt))Lt.indexOf(ft)<0&&he.call(bt,ft)&&(ot[ft]=bt[ft]);return ot},$e=(bt,Lt,ot)=>new Promise((ft,Gt)=>{var yn=we=>{try{je(ot.next(we))}catch(ut){Gt(ut)}},nn=we=>{try{je(ot.throw(we))}catch(ut){Gt(ut)}},je=we=>we.done?ft(we.value):Promise.resolve(we.value).then(yn,nn);je((ot=ot.apply(bt,Lt)).next())}),Be=bt=>{var Lt=bt,{className:ot,style:ft,children:Gt,loading:yn=!1,openLoading:nn,onClick:je=()=>{},size:we="middle",shape:ut="round"}=Lt,it=Ie(Lt,["className","style","children","loading","openLoading","onClick","size","shape"]);const[yt,Mt]=(0,T.useState)(!1);return T.createElement(xe.ZP,K({onClick:(0,o.throttle)(Kt=>$e(void 0,null,function*(){nn&&Mt(!0);try{yield je(Kt)}catch(Pt){console.log("error",Pt)}nn&&Mt(!1)}),2e3,{leading:!0,trailing:!1}),className:be()(ce.btn,ce[`${we}-${ut}`],ot),style:ft,size:we,shape:ut,loading:yt||yn},it),Gt)},Ye={flex_box_center:"flex_box_center___TB7bQ",flex_space_between:"flex_space_between___oBlTb",flex_box_vertical_center:"flex_box_vertical_center___b5XbB",flex_box_center_end:"flex_box_center_end___CNhe7",flex_box_column:"flex_box_column___yHXKW",head:"head___ghH72",node:"node___mjPEy"},Je=({className:bt,style:Lt,children:ot=null,onClick:ft,title:Gt})=>T.createElement("div",{className:be()(Ye.head,bt),style:Lt},T.createElement("span",{className:"primary-hover",onClick:ft},T.createElement("i",{className:"iconfont icon-fanhui2 font12"}),"\u8FD4\u56DE"),T.createElement("b",{title:Gt},Gt),T.createElement("div",{className:Ye.node},ot)),dt={flex_box_center:"flex_box_center___AlHuF",flex_space_between:"flex_space_between___vN2LW",flex_box_vertical_center:"flex_box_vertical_center___Ac7D2",flex_box_center_end:"flex_box_center_end___y38I7",flex_box_column:"flex_box_column___iQE6P",btns:"btns___sNgTb",confirm:"confirm___Ozirl",cancel:"cancel___aiq1I"},gt=({confirmShow:bt=!0,confirmTitle:Lt,confirmClick:ot,cancelShow:ft=!0,cancelTitle:Gt,cancelClick:yn,className:nn,style:je,confirmLoading:we=!1})=>T.createElement("div",{className:be()(dt.btns,nn),style:je},bt&&T.createElement(xe.ZP,{loading:we,onClick:ot,type:"primary",className:dt.confirm},Lt),ft&&T.createElement(xe.ZP,{onClick:yn,className:dt.cancel},Gt)),Rt={flex_box_center:"flex_box_center___jkpdr",flex_space_between:"flex_space_between___OtsL8",flex_box_vertical_center:"flex_box_vertical_center___rbcb_",flex_box_center_end:"flex_box_center_end___zBR21",flex_box_column:"flex_box_column___nS_eP",fixedBottom:"fixedBottom___oJl7m",wrap:"wrap___A3Oq1",center:"center____VL1y"},x=({className:bt,style:Lt={},LeftContent:ot,children:ft,RightContent:Gt})=>T.createElement("div",{className:be()(Rt.fixedBottom,bt),style:Lt},T.createElement("div",{className:Rt.wrap},T.createElement("div",{className:Rt.left},ot),T.createElement("div",{className:Rt.center},ft),T.createElement("div",{className:Rt.right},Gt))),A={flex_box_center:"flex_box_center___tY8Yn",flex_space_between:"flex_space_between___vHdYA",flex_box_vertical_center:"flex_box_vertical_center___pa61F",flex_box_center_end:"flex_box_center_end___HyDXt",flex_box_column:"flex_box_column___UjZek",crumbs:"crumbs___V41Oe",hover:"hover___bEIVd"},Y=({className:bt,style:Lt={},dataSource:ot=[]})=>T.createElement("div",{className:be()(A.crumbs,bt),style:Lt},ot.map((ft,Gt)=>Gt<ot.length-1?T.createElement(T.Fragment,{key:Gt},ft.path||ft.onClick?T.createElement("span",{className:A.hover,onClick:ft!=null&&ft.onClick?ft.onClick:()=>at.history.push(ft.path)},ft.name):T.createElement("span",null,ft.name),T.createElement("span",null,"\xA0",">","\xA0")):T.createElement("span",{key:Gt,style:{color:"#5F6368"}},ft.name))),Ce=_(31797),vn=Object.defineProperty,ke=Object.defineProperties,He=Object.getOwnPropertyDescriptors,We=Object.getOwnPropertySymbols,te=Object.prototype.hasOwnProperty,pe=Object.prototype.propertyIsEnumerable,De=(bt,Lt,ot)=>Lt in bt?vn(bt,Lt,{enumerable:!0,configurable:!0,writable:!0,value:ot}):bt[Lt]=ot,ze=(bt,Lt)=>{for(var ot in Lt||(Lt={}))te.call(Lt,ot)&&De(bt,ot,Lt[ot]);if(We)for(var ot of We(Lt))pe.call(Lt,ot)&&De(bt,ot,Lt[ot]);return bt},V=(bt,Lt)=>ke(bt,He(Lt)),kt=(bt,Lt)=>{var ot={};for(var ft in bt)te.call(bt,ft)&&Lt.indexOf(ft)<0&&(ot[ft]=bt[ft]);if(bt!=null&&We)for(var ft of We(bt))Lt.indexOf(ft)<0&&pe.call(bt,ft)&&(ot[ft]=bt[ft]);return ot};const{Countdown:Le}=Ce.default;var ln=bt=>{var Lt=bt,{onChange:ot}=Lt,ft=kt(Lt,["onChange"]);const[Gt,yn]=(0,T.useState)(null);(0,T.useEffect)(()=>{typeof Gt=="number"&&Gt>=0&&ot(Gt)},[Gt]);const nn=je=>{const we=Math.floor(je/1e3);yn(we)};return T.createElement(Le,V(ze({},ft),{onChange:nn}))}},64739:function(Ht,et,_){"use strict";_.r(et),_.d(et,{default:function(){return fe}});var T=_(59301),N=_(89070),ie=_(43418),Re=_(8591),ve=_(71418),le=_(58421),Te=_(8797),be={flex_box_center:"flex_box_center___uWmAu",flex_space_between:"flex_space_between___BrEbQ",flex_box_vertical_center:"flex_box_vertical_center___DkRSF",flex_box_center_end:"flex_box_center_end___Exn1w",flex_box_column:"flex_box_column___TBrGv",wrap:"wrap___fcPQI",list:"list___DJifR",title:"title___tvX3h",des:"des___NKWF6",footer:"footer___Nj_Tl",tag:"tag___SySVL",btns:"btns___WdmJv",line:"line___c1Gmr",b1:"b1___T3_ck",b2:"b2___cxZqr"},o="data:image/png;base64,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",L=_(99064),$=_(61186),v=_.n($),c=_(85057),S=_(24065),y=_(955),q=_(76895),ae=_(85149),P=Object.defineProperty,z=Object.getOwnPropertySymbols,W=Object.prototype.hasOwnProperty,re=Object.prototype.propertyIsEnumerable,b=(ye,Se,Ne)=>Se in ye?P(ye,Se,{enumerable:!0,configurable:!0,writable:!0,value:Ne}):ye[Se]=Ne,D=(ye,Se)=>{for(var Ne in Se||(Se={}))W.call(Se,Ne)&&b(ye,Ne,Se[Ne]);if(z)for(var Ne of z(Se))re.call(Se,Ne)&&b(ye,Ne,Se[Ne]);return ye},F=(ye,Se,Ne)=>new Promise((Z,B)=>{var ne=ee=>{try{me(Ne.next(ee))}catch(g){B(g)}},X=ee=>{try{me(Ne.throw(ee))}catch(g){B(g)}},me=ee=>ee.done?Z(ee.value):Promise.resolve(ee.value).then(ne,X);me((Ne=Ne.apply(ye,Se)).next())});const U=({globalSetting:ye,dispatch:Se,virtualSpaces:Ne})=>{var Z;const[B,ne]=(0,T.useState)([]),[X,me]=(0,T.useState)(0),[ee,g]=(0,T.useState)(!0),{virtualSpacesDetails:w,menus:Q}=Ne,J=(0,N.useParams)();let[Pe,Ue]=(0,T.useState)({page:1,limit:20});const Xe=((Z=Q==null?void 0:Q.find(Ot=>Ot.id==window.localStorage.getItem("vtrsModuleId")))==null?void 0:Z.name)||"";(0,T.useEffect)(()=>{Ze(Pe)},[]);const Ze=Ot=>F(void 0,null,function*(){g(!0);let Ut=yield(0,L.ZP)(`/api/virtual_classrooms/${J.virtual_spacesId}/informs.json`,{method:"get",params:Ot});Ut!=null&&Ut.informs&&(ne(Ut==null?void 0:Ut.informs),me(Ut==null?void 0:Ut.total_count)),g(!1)}),lt=Ot=>{Pe.page=Ot,Ue(D({},Pe)),Ze(Pe)},at=Ot=>{ie.default.confirm({title:"\u63D0\u793A",okText:"\u786E\u5B9A\u5220\u9664",className:q.Z.CustomTipsModalCss,cancelText:"\u53D6\u6D88",okButtonProps:{danger:!0},content:T.createElement("div",null,T.createElement("div",null,"\u786E\u8BA4\u5220\u9664\u300A",Ot.name,"\u300B\u5417\uFF1F"),T.createElement("div",{className:"mt10"},"\u5220\u9664\u540E\uFF0C\u5C06\u65E0\u6CD5\u6062\u590D\uFF0C\u8BF7\u8C28\u614E\u64CD\u4F5C")),onOk:()=>F(void 0,null,function*(){const Ut=yield(0,L.ZP)(`/api/virtual_classrooms/${J.virtual_spacesId}/informs/${Ot.id}.json`,{method:"delete"});if((Ut==null?void 0:Ut.status)===0){const un=B.length===1&&Pe.page>1?Pe.page-1:Pe.page;Pe.page=un,Ue(D({},Pe)),Ze(Pe),Re.ZP.success("\u5220\u9664\u6210\u529F")}})})},ct=(w==null?void 0:w.is_member)||(0,S.Ny)();return T.createElement("section",{className:be.wrap},T.createElement(c.YG,{value:"all",onChange:()=>{},tabBarExtraContent:ct&&T.createElement(c.op,{onClick:()=>N.history.push(`/${y.AS}/${J.virtual_spacesId}/announcement/add?leftMenuId=${window.localStorage.getItem("vtrsModuleId")}`)},T.createElement("img",{width:18,src:o,style:{margin:"-2px 4px 0 0"}}),"\u53D1\u5E03\u65B0\u516C\u544A"),dataSource:[{id:"all",name:Xe,total:X}]}),T.createElement(ve.Z,{spinning:ee},!B.length&&T.createElement(Te.Z,null),B==null?void 0:B.map(Ot=>T.createElement("div",{className:be.list,key:Ot.id},T.createElement("aside",{onClick:()=>N.history.push(`/${y.AS}/${J.virtual_spacesId}/announcement/${Ot.id}/detail?leftMenuId=${window.localStorage.getItem("vtrsModuleId")}`)},T.createElement("div",{className:be.title},Ot.name),T.createElement(ae.Z,{key:1,showLines:1,showTextOnly:!0,className:be.des,value:Ot.description})),T.createElement("div",{className:be.footer},T.createElement("span",{className:be.tag},T.createElement("span",null,"\u53D1\u5E03\u4EBA"),T.createElement("b",null,Ot.author_name)),T.createElement("span",{className:be.tag},T.createElement("span",null,"\u6240\u5C5E\u5355\u4F4D"),T.createElement("b",null,Ot.author_department)),T.createElement("span",{className:be.tag},T.createElement("span",null,"\u65E5\u671F"),T.createElement("b",null,v()(Ot.publish_time).format("YYYY-MM-DD HH:mm"))),T.createElement("div",{className:be.btns},Ot.can_edit&&T.createElement("div",null,T.createElement("div",{className:be.line},T.createElement("b",{className:be.b1}),T.createElement("b",{className:be.b2})),T.createElement("span",{onClick:()=>N.history.push(`/${y.AS}/${J.virtual_spacesId}/announcement/${Ot.id}/edit?leftMenuId=${window.localStorage.getItem("vtrsModuleId")}`),className:"primary-hover"},T.createElement("i",{className:"iconfont icon-bianji7 font14 mr5"}),"\u7F16\u8F91")),Ot.can_remove&&T.createElement("div",null,T.createElement("div",{className:be.line},T.createElement("b",{className:be.b1}),T.createElement("b",{className:be.b2})),T.createElement("span",{onClick:()=>at(Ot),className:"delete-hover"}," ",T.createElement("i",{className:"iconfont icon-piliangshanchubeifen font14 mr5"}),"\u5220\u9664"))))))),T.createElement(le.Z,{hideOnSinglePage:!0,onChange:Ot=>lt(Ot),current:Pe.page,pageSize:Pe.limit,total:X,showQuickJumper:!0,showSizeChanger:!1,showTotal:Ot=>T.createElement("span",{className:"mr10"},"\u5171",T.createElement("span",{className:"c-orange"},Ot),"\u6761\u6570\u636E"),className:"pb20 mt20"}))};var fe=(0,N.connect)(({virtualSpaces:ye,globalSetting:Se})=>({globalSetting:Se,virtualSpaces:ye}))(U)},24768:function(Ht,et,_){"use strict";_.d(et,{AL:function(){return re},Iy:function(){return $},Qv:function(){return S},ez:function(){return W},jb:function(){return v}});var T=_(32834),N=_.n(T),ie=_(11690),Re=_.n(ie);let ve=1;function le(fe,ye){const Se=fe.match(/^(\s+)(?:```)/);if(Se===null)return ye;const Ne=Se[1];return ye.split(`
`).map(Z=>{const B=Z.match(/^\s+/);if(B===null)return Z;const[ne]=B;return ne.length>=Ne.length?Z.slice(Ne.length):Z}).join(`
`)}let Te=[],be=["<ul>"];const o=new(N()).Renderer,L=/^ *(#{1,6}) *([^\n]+?) *(?:#+ *)?(?:\n+|$)/;function $(){Te.length=0,be=["<ul>"]}const v={overflow:"hidden",WebkitBoxOrient:"vertical",display:"-webkit-box",WebkitLineClamp:2};function c(fe,ye,Se,Ne){if(ye>=fe.length||fe[ye].level<=Se)return ye;var Z=fe[ye];Ne.push("<li><a href='#"+ve+Z.anchor+"'>"+Z.text+"</a>"),ye++;var B=[];return ye=c(fe,ye,Z.level,B),B.length>0&&(Ne.push("<ul>"),B.forEach(function(ne){Ne.push(ne)}),Ne.push("</ul>")),Ne.push("</li>"),ye=c(fe,ye,Se,Ne),ye}function S(){return c(Te,0,0,be),be.push("</ul>"),be.join("")}const y={heading(fe){const ye=L.exec(fe);if(ve+=1,ye)return{type:"heading",raw:ye[0],depth:ye[1].length,text:ye[2]}},fences(fe){const ye=this.rules.block.fences.exec(fe);if(ye){const Se=ye[0];let Ne=le(Se,ye[3]||"");const Z=ye[2]?ye[2].trim():ye[2];if(["latex","katex","math"].indexOf(Z)>=0){const B=P(),ne=Ne;Ne=B,z[B]={type:"block",expression:ne}}return{type:"code",raw:Se,lang:Z,text:Ne}}}},q=/(?:\${2})([^\n`]+?)(?:\${2})/gi;let ae=0;const P=()=>`__special_katext_id_${ae++}__`;let z={};function W(){return z}function re(){ae=0,z={}}function b(fe){return fe=fe.replace(q,(ye,Se)=>{const Ne=P();return z[Ne]={type:"inline",expression:Se},Ne}),fe}const D=o.listitem;o.listitem=function(fe){return D(b(fe))};const F=o.paragraph;o.paragraph=function(fe){return F(b(fe))};const U=o.tablecell;o.tablecell=function(fe,ye){return U(b(fe),ye)},o.code=function(fe,ye,Se){const Ne=(ye||"").match(/\S*/)[0];return Ne?["latex","katex","math"].indexOf(Ne)>=0?`<p class='editormd-tex'>${fe}</p>`:`<pre class="prettyprint linenums"><code class="language-${ye}">${Se?fe:(0,ie.escape)(fe,!0)}</code></pre>
`:'<pre class="prettyprint linenums"><code>'+(Se?fe:(0,ie.escape)(fe,!0))+"</code></pre>"},o.heading=function(fe,ye,Se){let Ne=this.options.headerPrefix+Se.toLowerCase().replace(/[^\w\\u4e00-\\u9fa5]]+/g,"-");return Te.push({anchor:Ne,level:ye,text:fe}),"<h"+ye+' id="'+ve+Ne+'">'+fe+"</h"+ye+">"},N().setOptions({silent:!0,gfm:!0,pedantic:!1}),N().use({tokenizer:y,renderer:o}),et.ZP=N()},36785:function(Ht,et,_){"use strict";_.d(et,{o2:function(){return ve},yT:function(){return le}});var T=_(19127),N=_(33166);const ie=N.i.map(Te=>`${Te}-inverse`),Re=["success","processing","error","default","warning"];function ve(Te){return(arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0)?[].concat((0,T.Z)(ie),(0,T.Z)(N.i)).includes(Te):N.i.includes(Te)}function le(Te){return Re.includes(Te)}},56762:function(Ht,et,_){"use strict";_.d(et,{Z:function(){return N}});var T=_(59301);function N(){const[,ie]=T.useReducer(Re=>Re+1,0);return ie}},79676:function(Ht,et,_){"use strict";_.d(et,{Z:function(){return le}});var T=_(19447);function N(Te,be,o,L){if(L===!1)return{adjustX:!1,adjustY:!1};const $=L&&typeof L=="object"?L:{},v={};switch(Te){case"top":case"bottom":v.shiftX=be.dropdownArrowOffset*2+o;break;case"left":case"right":v.shiftY=be.dropdownArrowOffsetVertical*2+o;break}const c=Object.assign(Object.assign({},v),$);return c.shiftX||(c.adjustX=!0),c.shiftY||(c.adjustY=!0),c}const ie={left:{points:["cr","cl"]},right:{points:["cl","cr"]},top:{points:["bc","tc"]},bottom:{points:["tc","bc"]},topLeft:{points:["bl","tl"]},leftTop:{points:["tr","tl"]},topRight:{points:["br","tr"]},rightTop:{points:["tl","tr"]},bottomRight:{points:["tr","br"]},rightBottom:{points:["bl","br"]},bottomLeft:{points:["tl","bl"]},leftBottom:{points:["br","bl"]}},Re={topLeft:{points:["bl","tc"]},leftTop:{points:["tr","cl"]},topRight:{points:["br","tc"]},rightTop:{points:["tl","cr"]},bottomRight:{points:["tr","bc"]},rightBottom:{points:["bl","cr"]},bottomLeft:{points:["tl","bc"]},leftBottom:{points:["br","cl"]}},ve=new Set(["topLeft","topRight","bottomLeft","bottomRight","leftTop","leftBottom","rightTop","rightBottom"]);function le(Te){const{arrowWidth:be,autoAdjustOverflow:o,arrowPointAtCenter:L,offset:$,borderRadius:v,visibleFirst:c}=Te,S=be/2,y={};return Object.keys(ie).forEach(q=>{const ae=L&&Re[q]||ie[q],P=Object.assign(Object.assign({},ae),{offset:[0,0]});switch(y[q]=P,ve.has(q)&&(P.autoArrow=!1),q){case"top":case"topLeft":case"topRight":P.offset[1]=-S-$;break;case"bottom":case"bottomLeft":case"bottomRight":P.offset[1]=S+$;break;case"left":case"leftTop":case"leftBottom":P.offset[0]=-S-$;break;case"right":case"rightTop":case"rightBottom":P.offset[0]=S+$;break}const z=(0,T.fS)({contentRadius:v,limitVerticalRadius:!0});if(L)switch(q){case"topLeft":case"bottomLeft":P.offset[0]=-z.dropdownArrowOffset-S;break;case"topRight":case"bottomRight":P.offset[0]=z.dropdownArrowOffset+S;break;case"leftTop":case"rightTop":P.offset[1]=-z.dropdownArrowOffset-S;break;case"leftBottom":case"rightBottom":P.offset[1]=z.dropdownArrowOffset+S;break}P.overflow=N(q,z,be,o),c&&(P.htmlRegion="visibleFirst")}),y}},19080:function(Ht,et,_){"use strict";_.d(et,{F:function(){return ve},Z:function(){return Re}});var T=_(92310),N=_.n(T);const ie=null;function Re(le,Te,be){return N()({[`${le}-status-success`]:Te==="success",[`${le}-status-warning`]:Te==="warning",[`${le}-status-error`]:Te==="error",[`${le}-status-validating`]:Te==="validating",[`${le}-has-feedback`]:be})}const ve=(le,Te)=>Te||le},93891:function(Ht,et,_){"use strict";var T=_(59301),N=_(36355),ie=_(64165);const Re=ve=>{const{componentName:le}=ve,{getPrefixCls:Te}=(0,T.useContext)(N.E_),be=Te("empty");switch(le){case"Table":case"List":return T.createElement(ie.Z,{image:ie.Z.PRESENTED_IMAGE_SIMPLE});case"Select":case"TreeSelect":case"Cascader":case"Transfer":case"Mentions":return T.createElement(ie.Z,{image:ie.Z.PRESENTED_IMAGE_SIMPLE,className:`${be}-small`});default:return T.createElement(ie.Z,null)}};et.Z=Re},91857:function(Ht,et,_){"use strict";var T=_(59301),N=_(38819),ie=_(92310),Re=_.n(ie),ve=_(31561),le=_(70425),Te=_(18929),be=_(2738),o=_(79676),L=_(53487),$=_(92343),v=_(36355),c=_(20834),S=_(40875),y=_(88088),q=_(47211);const ae=null,P=b=>{const{menu:D,arrow:F,prefixCls:U,children:fe,trigger:ye,disabled:Se,dropdownRender:Ne,getPopupContainer:Z,overlayClassName:B,rootClassName:ne,open:X,onOpenChange:me,visible:ee,onVisibleChange:g,mouseEnterDelay:w=.15,mouseLeaveDelay:Q=.1,autoAdjustOverflow:J=!0,placement:Pe="",overlay:Ue,transitionName:Xe}=b,{getPopupContainer:Ze,getPrefixCls:lt,direction:at}=T.useContext(v.E_),ct=T.useMemo(()=>{const K=lt();return Xe!==void 0?Xe:Pe.includes("top")?`${K}-slide-down`:`${K}-slide-up`},[lt,Pe,Xe]),Ot=T.useMemo(()=>Pe?Pe.includes("Center")?Pe.slice(0,Pe.indexOf("Center")):Pe:at==="rtl"?"bottomRight":"bottomLeft",[Pe,at]),Ut=lt("dropdown",U),[un,Ft]=(0,q.Z)(Ut),[,nt]=(0,y.Z)(),Et=T.Children.only(fe),oe=(0,$.Tm)(Et,{className:Re()(`${Ut}-trigger`,{[`${Ut}-rtl`]:at==="rtl"},Et.props.className),disabled:Se}),_e=Se?[]:ye;let M;_e&&_e.includes("contextMenu")&&(M=!0);const[ce,xe]=(0,Te.Z)(!1,{value:X!=null?X:ee}),O=(0,le.useEvent)(K=>{me==null||me(K),g==null||g(K),xe(K)}),C=Re()(B,ne,Ft,{[`${Ut}-rtl`]:at==="rtl"}),k=(0,o.Z)({arrowPointAtCenter:typeof F=="object"&&F.pointAtCenter,autoAdjustOverflow:J,offset:nt.marginXXS,arrowWidth:F?nt.sizePopupArrow:0,borderRadius:nt.borderRadius}),he=T.useCallback(()=>{xe(!1)},[]),de=()=>{let K;return D!=null&&D.items?K=T.createElement(c.default,Object.assign({},D)):typeof Ue=="function"?K=Ue():K=Ue,Ne&&(K=Ne(K)),K=T.Children.only(typeof K=="string"?T.createElement("span",null,K):K),T.createElement(S.J,{prefixCls:`${Ut}-menu`,expandIcon:T.createElement("span",{className:`${Ut}-menu-submenu-arrow`},T.createElement(N.Z,{className:`${Ut}-menu-submenu-arrow-icon`})),mode:"vertical",selectable:!1,onClick:he,validator:Ie=>{let{mode:$e}=Ie}},K)};return un(T.createElement(ve.Z,Object.assign({alignPoint:M},(0,be.Z)(b,["rootClassName"]),{mouseEnterDelay:w,mouseLeaveDelay:Q,visible:ce,builtinPlacements:k,arrow:!!F,overlayClassName:C,prefixCls:Ut,getPopupContainer:Z||Ze,transitionName:ct,trigger:_e,overlay:de,placement:Ot,onVisibleChange:O}),oe))};function z(b){return Object.assign(Object.assign({},b),{align:{overflow:{adjustX:!1,adjustY:!1}}})}const W=(0,L.Z)(P,"dropdown",b=>b,z),re=b=>T.createElement(W,Object.assign({},b),T.createElement("span",null));P._InternalPanelDoNotUseOrYouWillBeFired=re,et.Z=P},38854:function(Ht,et,_){"use strict";_.d(et,{Z:function(){return y}});var T=_(91857),N=_(92310),ie=_.n(N),Re=_(59301),ve=_(18785),le=_(3113),Te=_(36355),be=_(81327),o=_(33234),L=_(47211),$=function(q,ae){var P={};for(var z in q)Object.prototype.hasOwnProperty.call(q,z)&&ae.indexOf(z)<0&&(P[z]=q[z]);if(q!=null&&typeof Object.getOwnPropertySymbols=="function")for(var W=0,z=Object.getOwnPropertySymbols(q);W<z.length;W++)ae.indexOf(z[W])<0&&Object.prototype.propertyIsEnumerable.call(q,z[W])&&(P[z[W]]=q[z[W]]);return P};const v=q=>{const{getPopupContainer:ae,getPrefixCls:P,direction:z}=Re.useContext(Te.E_),{prefixCls:W,type:re="default",danger:b,disabled:D,loading:F,onClick:U,htmlType:fe,children:ye,className:Se,menu:Ne,arrow:Z,autoFocus:B,overlay:ne,trigger:X,align:me,open:ee,onOpenChange:g,placement:w,getPopupContainer:Q,href:J,icon:Pe=Re.createElement(ve.Z,null),title:Ue,buttonsRender:Xe=de=>de,mouseEnterDelay:Ze,mouseLeaveDelay:lt,overlayClassName:at,overlayStyle:ct,destroyPopupOnHide:Ot,dropdownRender:Ut}=q,un=$(q,["prefixCls","type","danger","disabled","loading","onClick","htmlType","children","className","menu","arrow","autoFocus","overlay","trigger","align","open","onOpenChange","placement","getPopupContainer","href","icon","title","buttonsRender","mouseEnterDelay","mouseLeaveDelay","overlayClassName","overlayStyle","destroyPopupOnHide","dropdownRender"]),Ft=P("dropdown",W),nt=`${Ft}-button`,[Et,oe]=(0,L.Z)(Ft),_e={menu:Ne,arrow:Z,autoFocus:B,align:me,disabled:D,trigger:D?[]:X,onOpenChange:g,getPopupContainer:Q||ae,mouseEnterDelay:Ze,mouseLeaveDelay:lt,overlayClassName:at,overlayStyle:ct,destroyPopupOnHide:Ot,dropdownRender:Ut},{compactSize:M,compactItemClassnames:ce}=(0,o.ri)(Ft,z),xe=ie()(nt,ce,Se,oe);"overlay"in q&&(_e.overlay=ne),"open"in q&&(_e.open=ee),"placement"in q?_e.placement=w:_e.placement=z==="rtl"?"bottomLeft":"bottomRight";const O=Re.createElement(le.ZP,{type:re,danger:b,disabled:D,loading:F,onClick:U,htmlType:fe,href:J,title:Ue},ye),C=Re.createElement(le.ZP,{type:re,danger:b,icon:Pe}),[k,he]=Xe([O,C]);return Et(Re.createElement(be.Z.Compact,Object.assign({className:xe,size:M,block:!0},un),k,Re.createElement(T.Z,Object.assign({},_e),he)))};v.__ANT_BUTTON=!0;var c=v;const S=T.Z;S.Button=c;var y=S},47211:function(Ht,et,_){"use strict";_.d(et,{Z:function(){return $}});var T=_(17313),N=_(13826),ie=_(92899),Re=_(29878),ve=_(19447),le=_(83116),Te=_(37613),o=v=>{const{componentCls:c,menuCls:S,colorError:y,colorTextLightSolid:q}=v,ae=`${S}-item`;return{[`${c}, ${c}-menu-submenu`]:{[`${S} ${ae}`]:{[`&${ae}-danger:not(${ae}-disabled)`]:{color:y,"&:hover":{color:q,backgroundColor:y}}}}}};const L=v=>{const{componentCls:c,menuCls:S,zIndexPopup:y,dropdownArrowDistance:q,sizePopupArrow:ae,antCls:P,iconCls:z,motionDurationMid:W,dropdownPaddingVertical:re,fontSize:b,dropdownEdgeChildPadding:D,colorTextDisabled:F,fontSizeIcon:U,controlPaddingHorizontal:fe,colorBgElevated:ye}=v;return[{[c]:Object.assign(Object.assign({},(0,T.Wf)(v)),{position:"absolute",top:-9999,left:{_skip_check_:!0,value:-9999},zIndex:y,display:"block","&::before":{position:"absolute",insetBlock:-q+ae/2,zIndex:-9999,opacity:1e-4,content:'""'},[`&-trigger${P}-btn`]:{[`& > ${z}-down, & > ${P}-btn-icon > ${z}-down`]:{fontSize:U}},[`${c}-wrap`]:{position:"relative",[`${P}-btn > ${z}-down`]:{fontSize:U},[`${z}-down::before`]:{transition:`transform ${W}`}},[`${c}-wrap-open`]:{[`${z}-down::before`]:{transform:"rotate(180deg)"}},"\n &-hidden,\n &-menu-hidden,\n &-menu-submenu-hidden\n ":{display:"none"},[`&${P}-slide-down-enter${P}-slide-down-enter-active${c}-placement-bottomLeft,
&${P}-slide-down-appear${P}-slide-down-appear-active${c}-placement-bottomLeft,
&${P}-slide-down-enter${P}-slide-down-enter-active${c}-placement-bottom,
&${P}-slide-down-appear${P}-slide-down-appear-active${c}-placement-bottom,
&${P}-slide-down-enter${P}-slide-down-enter-active${c}-placement-bottomRight,
&${P}-slide-down-appear${P}-slide-down-appear-active${c}-placement-bottomRight`]:{animationName:N.fJ},[`&${P}-slide-up-enter${P}-slide-up-enter-active${c}-placement-topLeft,
&${P}-slide-up-appear${P}-slide-up-appear-active${c}-placement-topLeft,
&${P}-slide-up-enter${P}-slide-up-enter-active${c}-placement-top,
&${P}-slide-up-appear${P}-slide-up-appear-active${c}-placement-top,
&${P}-slide-up-enter${P}-slide-up-enter-active${c}-placement-topRight,
&${P}-slide-up-appear${P}-slide-up-appear-active${c}-placement-topRight`]:{animationName:N.Qt},[`&${P}-slide-down-leave${P}-slide-down-leave-active${c}-placement-bottomLeft,
&${P}-slide-down-leave${P}-slide-down-leave-active${c}-placement-bottom,
&${P}-slide-down-leave${P}-slide-down-leave-active${c}-placement-bottomRight`]:{animationName:N.Uw},[`&${P}-slide-up-leave${P}-slide-up-leave-active${c}-placement-topLeft,
&${P}-slide-up-leave${P}-slide-up-leave-active${c}-placement-top,
&${P}-slide-up-leave${P}-slide-up-leave-active${c}-placement-topRight`]:{animationName:N.ly}})},(0,ve.ZP)(v,{colorBg:ye,limitVerticalRadius:!0,arrowPlacement:{top:!0,bottom:!0}}),{[`${c} ${S}`]:{position:"relative",margin:0},[`${S}-submenu-popup`]:{position:"absolute",zIndex:y,background:"transparent",boxShadow:"none",transformOrigin:"0 0","ul, li":{listStyle:"none",margin:0}},[`${c}, ${c}-menu-submenu`]:{[S]:Object.assign(Object.assign({padding:D,listStyleType:"none",backgroundColor:ye,backgroundClip:"padding-box",borderRadius:v.borderRadiusLG,outline:"none",boxShadow:v.boxShadowSecondary},(0,T.Qy)(v)),{[`${S}-item-group-title`]:{padding:`${re}px ${fe}px`,color:v.colorTextDescription,transition:`all ${W}`},[`${S}-item`]:{position:"relative",display:"flex",alignItems:"center"},[`${S}-item-icon`]:{minWidth:b,marginInlineEnd:v.marginXS,fontSize:v.fontSizeSM},[`${S}-title-content`]:{flex:"auto","> a":{color:"inherit",transition:`all ${W}`,"&:hover":{color:"inherit"},"&::after":{position:"absolute",inset:0,content:'""'}}},[`${S}-item, ${S}-submenu-title`]:Object.assign(Object.assign({clear:"both",margin:0,padding:`${re}px ${fe}px`,color:v.colorText,fontWeight:"normal",fontSize:b,lineHeight:v.lineHeight,cursor:"pointer",transition:`all ${W}`,borderRadius:v.borderRadiusSM,"&:hover, &-active":{backgroundColor:v.controlItemBgHover}},(0,T.Qy)(v)),{"&-selected":{color:v.colorPrimary,backgroundColor:v.controlItemBgActive,"&:hover, &-active":{backgroundColor:v.controlItemBgActiveHover}},"&-disabled":{color:F,cursor:"not-allowed","&:hover":{color:F,backgroundColor:ye,cursor:"not-allowed"},a:{pointerEvents:"none"}},"&-divider":{height:1,margin:`${v.marginXXS}px 0`,overflow:"hidden",lineHeight:0,backgroundColor:v.colorSplit},[`${c}-menu-submenu-expand-icon`]:{position:"absolute",insetInlineEnd:v.paddingXS,[`${c}-menu-submenu-arrow-icon`]:{marginInlineEnd:"0 !important",color:v.colorTextDescription,fontSize:U,fontStyle:"normal"}}}),[`${S}-item-group-list`]:{margin:`0 ${v.marginXS}px`,padding:0,listStyle:"none"},[`${S}-submenu-title`]:{paddingInlineEnd:fe+v.fontSizeSM},[`${S}-submenu-vertical`]:{position:"relative"},[`${S}-submenu${S}-submenu-disabled ${c}-menu-submenu-title`]:{[`&, ${c}-menu-submenu-arrow-icon`]:{color:F,backgroundColor:ye,cursor:"not-allowed"}},[`${S}-submenu-selected ${c}-menu-submenu-title`]:{color:v.colorPrimary}})}},[(0,N.oN)(v,"slide-up"),(0,N.oN)(v,"slide-down"),(0,ie.Fm)(v,"move-up"),(0,ie.Fm)(v,"move-down"),(0,Re._y)(v,"zoom-big")]]};var $=(0,le.Z)("Dropdown",(v,c)=>{let{rootPrefixCls:S}=c;const{marginXXS:y,sizePopupArrow:q,controlHeight:ae,fontSize:P,lineHeight:z,paddingXXS:W,componentCls:re,borderRadiusLG:b}=v,D=(ae-P*z)/2,{dropdownArrowOffset:F}=(0,ve.fS)({contentRadius:b}),U=(0,Te.TS)(v,{menuCls:`${re}-menu`,rootPrefixCls:S,dropdownArrowDistance:q/2+y,dropdownArrowOffset:F,dropdownPaddingVertical:D,dropdownEdgeChildPadding:W});return[L(U),o(U)]},v=>({zIndexPopup:v.zIndexPopupBase+50}))},64165:function(Ht,et,_){"use strict";_.d(et,{Z:function(){return W}});var T=_(92310),N=_.n(T),ie=_(59301),Re=_(36355),ve=_(9763),le=_(64993),Te=_(88088),o=()=>{const[,re]=(0,Te.Z)(),D=new le.C(re.colorBgBase).toHsl().l<.5?{opacity:.65}:{};return ie.createElement("svg",{style:D,width:"184",height:"152",viewBox:"0 0 184 152",xmlns:"http://www.w3.org/2000/svg"},ie.createElement("g",{fill:"none",fillRule:"evenodd"},ie.createElement("g",{transform:"translate(24 31.67)"},ie.createElement("ellipse",{fillOpacity:".8",fill:"#F5F5F7",cx:"67.797",cy:"106.89",rx:"67.797",ry:"12.668"}),ie.createElement("path",{d:"M122.034 69.674L98.109 40.229c-1.148-1.386-2.826-2.225-4.593-2.225h-51.44c-1.766 0-3.444.839-4.592 2.225L13.56 69.674v15.383h108.475V69.674z",fill:"#AEB8C2"}),ie.createElement("path",{d:"M101.537 86.214L80.63 61.102c-1.001-1.207-2.507-1.867-4.048-1.867H31.724c-1.54 0-3.047.66-4.048 1.867L6.769 86.214v13.792h94.768V86.214z",fill:"url(#linearGradient-1)",transform:"translate(13.56)"}),ie.createElement("path",{d:"M33.83 0h67.933a4 4 0 0 1 4 4v93.344a4 4 0 0 1-4 4H33.83a4 4 0 0 1-4-4V4a4 4 0 0 1 4-4z",fill:"#F5F5F7"}),ie.createElement("path",{d:"M42.678 9.953h50.237a2 2 0 0 1 2 2V36.91a2 2 0 0 1-2 2H42.678a2 2 0 0 1-2-2V11.953a2 2 0 0 1 2-2zM42.94 49.767h49.713a2.262 2.262 0 1 1 0 4.524H42.94a2.262 2.262 0 0 1 0-4.524zM42.94 61.53h49.713a2.262 2.262 0 1 1 0 4.525H42.94a2.262 2.262 0 0 1 0-4.525zM121.813 105.032c-.775 3.071-3.497 5.36-6.735 5.36H20.515c-3.238 0-5.96-2.29-6.734-5.36a7.309 7.309 0 0 1-.222-1.79V69.675h26.318c2.907 0 5.25 2.448 5.25 5.42v.04c0 2.971 2.37 5.37 5.277 5.37h34.785c2.907 0 5.277-2.421 5.277-5.393V75.1c0-2.972 2.343-5.426 5.25-5.426h26.318v33.569c0 .617-.077 1.216-.221 1.789z",fill:"#DCE0E6"})),ie.createElement("path",{d:"M149.121 33.292l-6.83 2.65a1 1 0 0 1-1.317-1.23l1.937-6.207c-2.589-2.944-4.109-6.534-4.109-10.408C138.802 8.102 148.92 0 161.402 0 173.881 0 184 8.102 184 18.097c0 9.995-10.118 18.097-22.599 18.097-4.528 0-8.744-1.066-12.28-2.902z",fill:"#DCE0E6"}),ie.createElement("g",{transform:"translate(149.65 15.383)",fill:"#FFF"},ie.createElement("ellipse",{cx:"20.654",cy:"3.167",rx:"2.849",ry:"2.815"}),ie.createElement("path",{d:"M5.698 5.63H0L2.898.704zM9.259.704h4.985V5.63H9.259z"}))))},$=()=>{const[,re]=(0,Te.Z)(),{colorFill:b,colorFillTertiary:D,colorFillQuaternary:F,colorBgContainer:U}=re,{borderColor:fe,shadowColor:ye,contentColor:Se}=(0,ie.useMemo)(()=>({borderColor:new le.C(b).onBackground(U).toHexShortString(),shadowColor:new le.C(D).onBackground(U).toHexShortString(),contentColor:new le.C(F).onBackground(U).toHexShortString()}),[b,D,F,U]);return ie.createElement("svg",{width:"64",height:"41",viewBox:"0 0 64 41",xmlns:"http://www.w3.org/2000/svg"},ie.createElement("g",{transform:"translate(0 1)",fill:"none",fillRule:"evenodd"},ie.createElement("ellipse",{fill:ye,cx:"32",cy:"33",rx:"32",ry:"7"}),ie.createElement("g",{fillRule:"nonzero",stroke:fe},ie.createElement("path",{d:"M55 12.76L44.854 1.258C44.367.474 43.656 0 42.907 0H21.093c-.749 0-1.46.474-1.947 1.257L9 12.761V22h46v-9.24z"}),ie.createElement("path",{d:"M41.613 15.931c0-1.605.994-2.93 2.227-2.931H55v18.137C55 33.26 53.68 35 52.05 35h-40.1C10.32 35 9 33.259 9 31.137V13h11.16c1.233 0 2.227 1.323 2.227 2.928v.022c0 1.605 1.005 2.901 2.237 2.901h14.752c1.232 0 2.237-1.308 2.237-2.913v-.007z",fill:Se}))))},v=_(83116),c=_(37613);const S=re=>{const{componentCls:b,margin:D,marginXS:F,marginXL:U,fontSize:fe,lineHeight:ye}=re;return{[b]:{marginInline:F,fontSize:fe,lineHeight:ye,textAlign:"center",[`${b}-image`]:{height:re.emptyImgHeight,marginBottom:F,opacity:re.opacityImage,img:{height:"100%"},svg:{maxWidth:"100%",height:"100%",margin:"auto"}},[`${b}-description`]:{color:re.colorText},[`${b}-footer`]:{marginTop:D},"&-normal":{marginBlock:U,color:re.colorTextDisabled,[`${b}-description`]:{color:re.colorTextDisabled},[`${b}-image`]:{height:re.emptyImgHeightMD}},"&-small":{marginBlock:F,color:re.colorTextDisabled,[`${b}-image`]:{height:re.emptyImgHeightSM}}}}};var y=(0,v.Z)("Empty",re=>{const{componentCls:b,controlHeightLG:D}=re,F=(0,c.TS)(re,{emptyImgCls:`${b}-img`,emptyImgHeight:D*2.5,emptyImgHeightMD:D,emptyImgHeightSM:D*.875});return[S(F)]}),q=function(re,b){var D={};for(var F in re)Object.prototype.hasOwnProperty.call(re,F)&&b.indexOf(F)<0&&(D[F]=re[F]);if(re!=null&&typeof Object.getOwnPropertySymbols=="function")for(var U=0,F=Object.getOwnPropertySymbols(re);U<F.length;U++)b.indexOf(F[U])<0&&Object.prototype.propertyIsEnumerable.call(re,F[U])&&(D[F[U]]=re[F[U]]);return D};const ae=ie.createElement(o,null),P=ie.createElement($,null),z=re=>{var{className:b,rootClassName:D,prefixCls:F,image:U=ae,description:fe,children:ye,imageStyle:Se,style:Ne}=re,Z=q(re,["className","rootClassName","prefixCls","image","description","children","imageStyle","style"]);const{getPrefixCls:B,direction:ne,empty:X}=ie.useContext(Re.E_),me=B("empty",F),[ee,g]=y(me),[w]=(0,ve.Z)("Empty"),Q=typeof fe!="undefined"?fe:w==null?void 0:w.description,J=typeof Q=="string"?Q:"empty";let Pe=null;return typeof U=="string"?Pe=ie.createElement("img",{alt:J,src:U}):Pe=U,ee(ie.createElement("div",Object.assign({className:N()(g,me,X==null?void 0:X.className,{[`${me}-normal`]:U===P,[`${me}-rtl`]:ne==="rtl"},b,D),style:Object.assign(Object.assign({},X==null?void 0:X.style),Ne)},Z),ie.createElement("div",{className:`${me}-image`,style:Se},Pe),Q&&ie.createElement("div",{className:`${me}-description`},Q),ye&&ie.createElement("div",{className:`${me}-footer`},ye)))};z.PRESENTED_IMAGE_DEFAULT=ae,z.PRESENTED_IMAGE_SIMPLE=P;var W=z},8628:function(Ht,et,_){"use strict";var T=_(59301),N=_(34280),ie=_(56762),Re=_(69507);function ve(){let le=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0;const Te=(0,T.useRef)({}),be=(0,ie.Z)(),o=(0,Re.ZP)();return(0,N.Z)(()=>{const L=o.subscribe($=>{Te.current=$,le&&be()});return()=>o.unsubscribe(L)},[]),Te.current}et.Z=ve},9432:function(Ht,et,_){"use strict";_.d(et,{Z:function(){return z},n:function(){return ae}});var T=_(19248),N=_(92310),ie=_.n(N),Re=_(93681),ve=_(8654),le=_(59301),Te=_(19080),be=_(36355),o=_(1684),L=_(19716),$=_(32441),v=_(33234),c=_(59412),S=_(9937);function y(W){return!!(W.prefix||W.suffix||W.allowClear)}var q=function(W,re){var b={};for(var D in W)Object.prototype.hasOwnProperty.call(W,D)&&re.indexOf(D)<0&&(b[D]=W[D]);if(W!=null&&typeof Object.getOwnPropertySymbols=="function")for(var F=0,D=Object.getOwnPropertySymbols(W);F<D.length;F++)re.indexOf(D[F])<0&&Object.prototype.propertyIsEnumerable.call(W,D[F])&&(b[D[F]]=W[D[F]]);return b};function ae(W,re){if(!W)return;W.focus(re);const{cursor:b}=re||{};if(b){const D=W.value.length;switch(b){case"start":W.setSelectionRange(0,0);break;case"end":W.setSelectionRange(D,D);break;default:W.setSelectionRange(0,D);break}}}var z=(0,le.forwardRef)((W,re)=>{var b;const{prefixCls:D,bordered:F=!0,status:U,size:fe,disabled:ye,onBlur:Se,onFocus:Ne,suffix:Z,allowClear:B,addonAfter:ne,addonBefore:X,className:me,style:ee,styles:g,rootClassName:w,onChange:Q,classNames:J}=W,Pe=q(W,["prefixCls","bordered","status","size","disabled","onBlur","onFocus","suffix","allowClear","addonAfter","addonBefore","className","style","styles","rootClassName","onChange","classNames"]),{getPrefixCls:Ue,direction:Xe,input:Ze}=le.useContext(be.E_),lt=Ue("input",D),at=(0,le.useRef)(null),[ct,Ot]=(0,S.ZP)(lt),{compactSize:Ut,compactItemClassnames:un}=(0,v.ri)(lt,Xe),Ft=(0,L.Z)($e=>{var Me;return(Me=fe!=null?fe:Ut)!==null&&Me!==void 0?Me:$e}),nt=le.useContext(o.Z),Et=ye!=null?ye:nt,{status:oe,hasFeedback:_e,feedbackIcon:M}=(0,le.useContext)($.aM),ce=(0,Te.F)(oe,U),xe=y(W)||!!_e,O=(0,le.useRef)(xe);(0,le.useEffect)(()=>{var $e;xe&&O.current,O.current=xe},[xe]);const C=(0,c.Z)(at,!0),k=$e=>{C(),Se==null||Se($e)},he=$e=>{C(),Ne==null||Ne($e)},de=$e=>{C(),Q==null||Q($e)},K=(_e||Z)&&le.createElement(le.Fragment,null,Z,_e&&M);let Ie;return typeof B=="object"&&(B!=null&&B.clearIcon)?Ie=B:B&&(Ie={clearIcon:le.createElement(T.Z,null)}),ct(le.createElement(Re.default,Object.assign({ref:(0,ve.sQ)(re,at),prefixCls:lt,autoComplete:Ze==null?void 0:Ze.autoComplete},Pe,{disabled:Et,onBlur:k,onFocus:he,style:Object.assign(Object.assign({},Ze==null?void 0:Ze.style),ee),styles:Object.assign(Object.assign({},Ze==null?void 0:Ze.styles),g),suffix:K,allowClear:Ie,className:ie()(me,w,un,Ze==null?void 0:Ze.className),onChange:de,addonAfter:ne&&le.createElement(v.BR,null,le.createElement($.Ux,{override:!0,status:!0},ne)),addonBefore:X&&le.createElement(v.BR,null,le.createElement($.Ux,{override:!0,status:!0},X)),classNames:Object.assign(Object.assign(Object.assign({},J),Ze==null?void 0:Ze.classNames),{input:ie()({[`${lt}-sm`]:Ft==="small",[`${lt}-lg`]:Ft==="large",[`${lt}-rtl`]:Xe==="rtl",[`${lt}-borderless`]:!F},!xe&&(0,Te.Z)(lt,ce),J==null?void 0:J.input,(b=Ze==null?void 0:Ze.classNames)===null||b===void 0?void 0:b.input,Ot)}),classes:{affixWrapper:ie()({[`${lt}-affix-wrapper-sm`]:Ft==="small",[`${lt}-affix-wrapper-lg`]:Ft==="large",[`${lt}-affix-wrapper-rtl`]:Xe==="rtl",[`${lt}-affix-wrapper-borderless`]:!F},(0,Te.Z)(`${lt}-affix-wrapper`,ce,_e),Ot),wrapper:ie()({[`${lt}-group-rtl`]:Xe==="rtl"},Ot),group:ie()({[`${lt}-group-wrapper-sm`]:Ft==="small",[`${lt}-group-wrapper-lg`]:Ft==="large",[`${lt}-group-wrapper-rtl`]:Xe==="rtl",[`${lt}-group-wrapper-disabled`]:Et},(0,Te.Z)(`${lt}-group-wrapper`,ce,_e),Ot)}})))})},1643:function(Ht,et,_){"use strict";var T=_(19248),N=_(92310),ie=_.n(N),Re=_(9296),ve=_(59301),le=_(19080),Te=_(36355),be=_(1684),o=_(19716),L=_(32441),$=_(9432),v=_(9937),c=function(y,q){var ae={};for(var P in y)Object.prototype.hasOwnProperty.call(y,P)&&q.indexOf(P)<0&&(ae[P]=y[P]);if(y!=null&&typeof Object.getOwnPropertySymbols=="function")for(var z=0,P=Object.getOwnPropertySymbols(y);z<P.length;z++)q.indexOf(P[z])<0&&Object.prototype.propertyIsEnumerable.call(y,P[z])&&(ae[P[z]]=y[P[z]]);return ae};const S=(0,ve.forwardRef)((y,q)=>{const{prefixCls:ae,bordered:P=!0,size:z,disabled:W,status:re,allowClear:b,showCount:D,classNames:F,rootClassName:U,className:fe}=y,ye=c(y,["prefixCls","bordered","size","disabled","status","allowClear","showCount","classNames","rootClassName","className"]),{getPrefixCls:Se,direction:Ne}=ve.useContext(Te.E_),Z=(0,o.Z)(z),B=ve.useContext(be.Z),ne=W!=null?W:B,{status:X,hasFeedback:me,feedbackIcon:ee}=ve.useContext(L.aM),g=(0,le.F)(X,re),w=ve.useRef(null);ve.useImperativeHandle(q,()=>{var Xe;return{resizableTextArea:(Xe=w.current)===null||Xe===void 0?void 0:Xe.resizableTextArea,focus:Ze=>{var lt,at;(0,$.n)((at=(lt=w.current)===null||lt===void 0?void 0:lt.resizableTextArea)===null||at===void 0?void 0:at.textArea,Ze)},blur:()=>{var Ze;return(Ze=w.current)===null||Ze===void 0?void 0:Ze.blur()}}});const Q=Se("input",ae);let J;typeof b=="object"&&(b!=null&&b.clearIcon)?J=b:b&&(J={clearIcon:ve.createElement(T.Z,null)});const[Pe,Ue]=(0,v.ZP)(Q);return Pe(ve.createElement(Re.default,Object.assign({},ye,{disabled:ne,allowClear:J,className:ie()(fe,U),classes:{affixWrapper:ie()(`${Q}-textarea-affix-wrapper`,{[`${Q}-affix-wrapper-rtl`]:Ne==="rtl",[`${Q}-affix-wrapper-borderless`]:!P,[`${Q}-affix-wrapper-sm`]:Z==="small",[`${Q}-affix-wrapper-lg`]:Z==="large",[`${Q}-textarea-show-count`]:D},(0,le.Z)(`${Q}-affix-wrapper`,g),Ue)},classNames:Object.assign(Object.assign({},F),{textarea:ie()({[`${Q}-borderless`]:!P,[`${Q}-sm`]:Z==="small",[`${Q}-lg`]:Z==="large"},(0,le.Z)(Q,g),Ue,F==null?void 0:F.textarea)}),prefixCls:Q,suffix:me&&ve.createElement("span",{className:`${Q}-textarea-suffix`},ee),showCount:D,ref:w})))});et.Z=S},59412:function(Ht,et,_){"use strict";_.d(et,{Z:function(){return N}});var T=_(59301);function N(ie,Re){const ve=(0,T.useRef)([]),le=()=>{ve.current.push(setTimeout(()=>{var Te,be,o,L;!((Te=ie.current)===null||Te===void 0)&&Te.input&&((be=ie.current)===null||be===void 0?void 0:be.input.getAttribute("type"))==="password"&&(!((o=ie.current)===null||o===void 0)&&o.input.hasAttribute("value"))&&((L=ie.current)===null||L===void 0||L.input.removeAttribute("value"))}))};return(0,T.useEffect)(()=>(Re&&le(),()=>ve.current.forEach(Te=>{Te&&clearTimeout(Te)})),[]),le}},92832:function(Ht,et,_){"use strict";_.d(et,{default:function(){return Z}});var T=_(92310),N=_.n(T),ie=_(59301),Re=_(36355),ve=_(32441),le=_(9937),be=B=>{const{getPrefixCls:ne,direction:X}=(0,ie.useContext)(Re.E_),{prefixCls:me,className:ee}=B,g=ne("input-group",me),w=ne("input"),[Q,J]=(0,le.ZP)(w),Pe=N()(g,{[`${g}-lg`]:B.size==="large",[`${g}-sm`]:B.size==="small",[`${g}-compact`]:B.compact,[`${g}-rtl`]:X==="rtl"},J,ee),Ue=(0,ie.useContext)(ve.aM),Xe=(0,ie.useMemo)(()=>Object.assign(Object.assign({},Ue),{isFormItemInput:!1}),[Ue]);return Q(ie.createElement("span",{className:Pe,style:B.style,onMouseEnter:B.onMouseEnter,onMouseLeave:B.onMouseLeave,onFocus:B.onFocus,onBlur:B.onBlur},ie.createElement(ve.aM.Provider,{value:Xe},B.children)))},o=_(9432),L=_(73331),$=_(15277),v=_(2738),c=_(8654),S=_(59412),y=function(B,ne){var X={};for(var me in B)Object.prototype.hasOwnProperty.call(B,me)&&ne.indexOf(me)<0&&(X[me]=B[me]);if(B!=null&&typeof Object.getOwnPropertySymbols=="function")for(var ee=0,me=Object.getOwnPropertySymbols(B);ee<me.length;ee++)ne.indexOf(me[ee])<0&&Object.prototype.propertyIsEnumerable.call(B,me[ee])&&(X[me[ee]]=B[me[ee]]);return X};const q=B=>B?ie.createElement($.Z,null):ie.createElement(L.Z,null),ae={click:"onClick",hover:"onMouseOver"};var z=ie.forwardRef((B,ne)=>{const{visibilityToggle:X=!0}=B,me=typeof X=="object"&&X.visible!==void 0,[ee,g]=(0,ie.useState)(()=>me?X.visible:!1),w=(0,ie.useRef)(null);ie.useEffect(()=>{me&&g(X.visible)},[me,X]);const Q=(0,S.Z)(w),J=()=>{const{disabled:Et}=B;Et||(ee&&Q(),g(oe=>{var _e;const M=!oe;return typeof X=="object"&&((_e=X.onVisibleChange)===null||_e===void 0||_e.call(X,M)),M}))},Pe=Et=>{const{action:oe="click",iconRender:_e=q}=B,M=ae[oe]||"",ce=_e(ee),xe={[M]:J,className:`${Et}-icon`,key:"passwordIcon",onMouseDown:O=>{O.preventDefault()},onMouseUp:O=>{O.preventDefault()}};return ie.cloneElement(ie.isValidElement(ce)?ce:ie.createElement("span",null,ce),xe)},{className:Ue,prefixCls:Xe,inputPrefixCls:Ze,size:lt}=B,at=y(B,["className","prefixCls","inputPrefixCls","size"]),{getPrefixCls:ct}=ie.useContext(Re.E_),Ot=ct("input",Ze),Ut=ct("input-password",Xe),un=X&&Pe(Ut),Ft=N()(Ut,Ue,{[`${Ut}-${lt}`]:!!lt}),nt=Object.assign(Object.assign({},(0,v.Z)(at,["suffix","iconRender","visibilityToggle"])),{type:ee?"text":"password",className:Ft,prefixCls:Ot,suffix:un});return lt&&(nt.size=lt),ie.createElement(o.Z,Object.assign({ref:(0,c.sQ)(ne,w)},nt))}),W=_(47472),re=_(92343),b=_(3113),D=_(19716),F=_(33234),U=function(B,ne){var X={};for(var me in B)Object.prototype.hasOwnProperty.call(B,me)&&ne.indexOf(me)<0&&(X[me]=B[me]);if(B!=null&&typeof Object.getOwnPropertySymbols=="function")for(var ee=0,me=Object.getOwnPropertySymbols(B);ee<me.length;ee++)ne.indexOf(me[ee])<0&&Object.prototype.propertyIsEnumerable.call(B,me[ee])&&(X[me[ee]]=B[me[ee]]);return X},ye=ie.forwardRef((B,ne)=>{const{prefixCls:X,inputPrefixCls:me,className:ee,size:g,suffix:w,enterButton:Q=!1,addonAfter:J,loading:Pe,disabled:Ue,onSearch:Xe,onChange:Ze,onCompositionStart:lt,onCompositionEnd:at}=B,ct=U(B,["prefixCls","inputPrefixCls","className","size","suffix","enterButton","addonAfter","loading","disabled","onSearch","onChange","onCompositionStart","onCompositionEnd"]),{getPrefixCls:Ot,direction:Ut}=ie.useContext(Re.E_),un=ie.useRef(!1),Ft=Ot("input-search",X),nt=Ot("input",me),{compactSize:Et}=(0,F.ri)(Ft,Ut),oe=(0,D.Z)(Be=>{var Ye;return(Ye=g!=null?g:Et)!==null&&Ye!==void 0?Ye:Be}),_e=ie.useRef(null),M=Be=>{Be&&Be.target&&Be.type==="click"&&Xe&&Xe(Be.target.value,Be,{source:"clear"}),Ze&&Ze(Be)},ce=Be=>{var Ye;document.activeElement===((Ye=_e.current)===null||Ye===void 0?void 0:Ye.input)&&Be.preventDefault()},xe=Be=>{var Ye,Qe;Xe&&Xe((Qe=(Ye=_e.current)===null||Ye===void 0?void 0:Ye.input)===null||Qe===void 0?void 0:Qe.value,Be,{source:"input"})},O=Be=>{un.current||Pe||xe(Be)},C=typeof Q=="boolean"?ie.createElement(W.Z,null):null,k=`${Ft}-button`;let he;const de=Q||{},K=de.type&&de.type.__ANT_BUTTON===!0;K||de.type==="button"?he=(0,re.Tm)(de,Object.assign({onMouseDown:ce,onClick:Be=>{var Ye,Qe;(Qe=(Ye=de==null?void 0:de.props)===null||Ye===void 0?void 0:Ye.onClick)===null||Qe===void 0||Qe.call(Ye,Be),xe(Be)},key:"enterButton"},K?{className:k,size:oe}:{})):he=ie.createElement(b.ZP,{className:k,type:Q?"primary":void 0,size:oe,disabled:Ue,key:"enterButton",onMouseDown:ce,onClick:xe,loading:Pe,icon:C},Q),J&&(he=[he,(0,re.Tm)(J,{key:"addonAfter"})]);const Ie=N()(Ft,{[`${Ft}-rtl`]:Ut==="rtl",[`${Ft}-${oe}`]:!!oe,[`${Ft}-with-button`]:!!Q},ee),$e=Be=>{un.current=!0,lt==null||lt(Be)},Me=Be=>{un.current=!1,at==null||at(Be)};return ie.createElement(o.Z,Object.assign({ref:(0,c.sQ)(_e,ne),onPressEnter:O},ct,{size:oe,onCompositionStart:$e,onCompositionEnd:Me,prefixCls:nt,addonAfter:he,suffix:w,onChange:M,className:Ie,disabled:Ue}))}),Se=_(1643);const Ne=o.Z;Ne.Group=be,Ne.Search=ye,Ne.TextArea=Se.Z,Ne.Password=z;var Z=Ne},9937:function(Ht,et,_){"use strict";_.d(et,{M1:function(){return Te},TM:function(){return re},Xy:function(){return be},bi:function(){return $},e5:function(){return W},ik:function(){return v},nz:function(){return ve},pU:function(){return le},s7:function(){return c},x0:function(){return L}});var T=_(17313),N=_(74207),ie=_(37613),Re=_(83116);const ve=b=>({"&::-moz-placeholder":{opacity:1},"&::placeholder":{color:b,userSelect:"none"},"&:placeholder-shown":{textOverflow:"ellipsis"}}),le=b=>({borderColor:b.hoverBorderColor}),Te=b=>({borderColor:b.activeBorderColor,boxShadow:b.activeShadow,outline:0}),be=b=>({color:b.colorTextDisabled,backgroundColor:b.colorBgContainerDisabled,borderColor:b.colorBorder,boxShadow:"none",cursor:"not-allowed",opacity:1,"&:hover":Object.assign({},le((0,ie.TS)(b,{hoverBorderColor:b.colorBorder})))}),o=b=>{const{paddingBlockLG:D,fontSizeLG:F,lineHeightLG:U,borderRadiusLG:fe,paddingInlineLG:ye}=b;return{padding:`${D}px ${ye}px`,fontSize:F,lineHeight:U,borderRadius:fe}},L=b=>({padding:`${b.paddingBlockSM}px ${b.paddingInlineSM}px`,borderRadius:b.borderRadiusSM}),$=(b,D)=>{const{componentCls:F,colorError:U,colorWarning:fe,errorActiveShadow:ye,warningActiveShadow:Se,colorErrorBorderHover:Ne,colorWarningBorderHover:Z}=b;return{[`&-status-error:not(${D}-disabled):not(${D}-borderless)${D}`]:{borderColor:U,"&:hover":{borderColor:Ne},"&:focus, &-focused":Object.assign({},Te((0,ie.TS)(b,{activeBorderColor:U,activeShadow:ye}))),[`${F}-prefix, ${F}-suffix`]:{color:U}},[`&-status-warning:not(${D}-disabled):not(${D}-borderless)${D}`]:{borderColor:fe,"&:hover":{borderColor:Z},"&:focus, &-focused":Object.assign({},Te((0,ie.TS)(b,{activeBorderColor:fe,activeShadow:Se}))),[`${F}-prefix, ${F}-suffix`]:{color:fe}}}},v=b=>Object.assign(Object.assign({position:"relative",display:"inline-block",width:"100%",minWidth:0,padding:`${b.paddingBlock}px ${b.paddingInline}px`,color:b.colorText,fontSize:b.fontSize,lineHeight:b.lineHeight,backgroundColor:b.colorBgContainer,backgroundImage:"none",borderWidth:b.lineWidth,borderStyle:b.lineType,borderColor:b.colorBorder,borderRadius:b.borderRadius,transition:`all ${b.motionDurationMid}`},ve(b.colorTextPlaceholder)),{"&:hover":Object.assign({},le(b)),"&:focus, &-focused":Object.assign({},Te(b)),"&-disabled, &[disabled]":Object.assign({},be(b)),"&-borderless":{"&, &:hover, &:focus, &-focused, &-disabled, &[disabled]":{backgroundColor:"transparent",border:"none",boxShadow:"none"}},"textarea&":{maxWidth:"100%",height:"auto",minHeight:b.controlHeight,lineHeight:b.lineHeight,verticalAlign:"bottom",transition:`all ${b.motionDurationSlow}, height 0s`,resize:"vertical"},"&-lg":Object.assign({},o(b)),"&-sm":Object.assign({},L(b)),"&-rtl":{direction:"rtl"},"&-textarea-rtl":{direction:"rtl"}}),c=b=>{const{componentCls:D,antCls:F}=b;return{position:"relative",display:"table",width:"100%",borderCollapse:"separate",borderSpacing:0,"&[class*='col-']":{paddingInlineEnd:b.paddingXS,"&:last-child":{paddingInlineEnd:0}},[`&-lg ${D}, &-lg > ${D}-group-addon`]:Object.assign({},o(b)),[`&-sm ${D}, &-sm > ${D}-group-addon`]:Object.assign({},L(b)),[`&-lg ${F}-select-single ${F}-select-selector`]:{height:b.controlHeightLG},[`&-sm ${F}-select-single ${F}-select-selector`]:{height:b.controlHeightSM},[`> ${D}`]:{display:"table-cell","&:not(:first-child):not(:last-child)":{borderRadius:0}},[`${D}-group`]:{"&-addon, &-wrap":{display:"table-cell",width:1,whiteSpace:"nowrap",verticalAlign:"middle","&:not(:first-child):not(:last-child)":{borderRadius:0}},"&-wrap > *":{display:"block !important"},"&-addon":{position:"relative",padding:`0 ${b.paddingInline}px`,color:b.colorText,fontWeight:"normal",fontSize:b.fontSize,textAlign:"center",backgroundColor:b.colorFillAlter,border:`${b.lineWidth}px ${b.lineType} ${b.colorBorder}`,borderRadius:b.borderRadius,transition:`all ${b.motionDurationSlow}`,lineHeight:1,[`${F}-select`]:{margin:`-${b.paddingBlock+1}px -${b.paddingInline}px`,[`&${F}-select-single:not(${F}-select-customize-input)`]:{[`${F}-select-selector`]:{backgroundColor:"inherit",border:`${b.lineWidth}px ${b.lineType} transparent`,boxShadow:"none"}},"&-open, &-focused":{[`${F}-select-selector`]:{color:b.colorPrimary}}},[`${F}-cascader-picker`]:{margin:`-9px -${b.paddingInline}px`,backgroundColor:"transparent",[`${F}-cascader-input`]:{textAlign:"start",border:0,boxShadow:"none"}}},"&-addon:first-child":{borderInlineEnd:0},"&-addon:last-child":{borderInlineStart:0}},[`${D}`]:{width:"100%",marginBottom:0,textAlign:"inherit","&:focus":{zIndex:1,borderInlineEndWidth:1},"&:hover":{zIndex:1,borderInlineEndWidth:1,[`${D}-search-with-button &`]:{zIndex:0}}},[`> ${D}:first-child, ${D}-group-addon:first-child`]:{borderStartEndRadius:0,borderEndEndRadius:0,[`${F}-select ${F}-select-selector`]:{borderStartEndRadius:0,borderEndEndRadius:0}},[`> ${D}-affix-wrapper`]:{[`&:not(:first-child) ${D}`]:{borderStartStartRadius:0,borderEndStartRadius:0},[`&:not(:last-child) ${D}`]:{borderStartEndRadius:0,borderEndEndRadius:0}},[`> ${D}:last-child, ${D}-group-addon:last-child`]:{borderStartStartRadius:0,borderEndStartRadius:0,[`${F}-select ${F}-select-selector`]:{borderStartStartRadius:0,borderEndStartRadius:0}},[`${D}-affix-wrapper`]:{"&:not(:last-child)":{borderStartEndRadius:0,borderEndEndRadius:0,[`${D}-search &`]:{borderStartStartRadius:b.borderRadius,borderEndStartRadius:b.borderRadius}},[`&:not(:first-child), ${D}-search &:not(:first-child)`]:{borderStartStartRadius:0,borderEndStartRadius:0}},[`&${D}-group-compact`]:Object.assign(Object.assign({display:"block"},(0,T.dF)()),{[`${D}-group-addon, ${D}-group-wrap, > ${D}`]:{"&:not(:first-child):not(:last-child)":{borderInlineEndWidth:b.lineWidth,"&:hover":{zIndex:1},"&:focus":{zIndex:1}}},"& > *":{display:"inline-block",float:"none",verticalAlign:"top",borderRadius:0},[`
& > ${D}-affix-wrapper,
& > ${D}-number-affix-wrapper,
& > ${F}-picker-range
`]:{display:"inline-flex"},"& > *:not(:last-child)":{marginInlineEnd:-b.lineWidth,borderInlineEndWidth:b.lineWidth},[`${D}`]:{float:"none"},[`& > ${F}-select > ${F}-select-selector,
& > ${F}-select-auto-complete ${D},
& > ${F}-cascader-picker ${D},
& > ${D}-group-wrapper ${D}`]:{borderInlineEndWidth:b.lineWidth,borderRadius:0,"&:hover":{zIndex:1},"&:focus":{zIndex:1}},[`& > ${F}-select-focused`]:{zIndex:1},[`& > ${F}-select > ${F}-select-arrow`]:{zIndex:1},[`& > *:first-child,
& > ${F}-select:first-child > ${F}-select-selector,
& > ${F}-select-auto-complete:first-child ${D},
& > ${F}-cascader-picker:first-child ${D}`]:{borderStartStartRadius:b.borderRadius,borderEndStartRadius:b.borderRadius},[`& > *:last-child,
& > ${F}-select:last-child > ${F}-select-selector,
& > ${F}-cascader-picker:last-child ${D},
& > ${F}-cascader-picker-focused:last-child ${D}`]:{borderInlineEndWidth:b.lineWidth,borderStartEndRadius:b.borderRadius,borderEndEndRadius:b.borderRadius},[`& > ${F}-select-auto-complete ${D}`]:{verticalAlign:"top"},[`${D}-group-wrapper + ${D}-group-wrapper`]:{marginInlineStart:-b.lineWidth,[`${D}-affix-wrapper`]:{borderRadius:0}},[`${D}-group-wrapper:not(:last-child)`]:{[`&${D}-search > ${D}-group`]:{[`& > ${D}-group-addon > ${D}-search-button`]:{borderRadius:0},[`& > ${D}`]:{borderStartStartRadius:b.borderRadius,borderStartEndRadius:0,borderEndEndRadius:0,borderEndStartRadius:b.borderRadius}}}})}},S=b=>{const{componentCls:D,controlHeightSM:F,lineWidth:U}=b,ye=(F-U*2-16)/2;return{[D]:Object.assign(Object.assign(Object.assign(Object.assign({},(0,T.Wf)(b)),v(b)),$(b,D)),{'&[type="color"]':{height:b.controlHeight,[`&${D}-lg`]:{height:b.controlHeightLG},[`&${D}-sm`]:{height:F,paddingTop:ye,paddingBottom:ye}},'&[type="search"]::-webkit-search-cancel-button, &[type="search"]::-webkit-search-decoration':{"-webkit-appearance":"none"}})}},y=b=>{const{componentCls:D}=b;return{[`${D}-clear-icon`]:{margin:0,color:b.colorTextQuaternary,fontSize:b.fontSizeIcon,verticalAlign:-1,cursor:"pointer",transition:`color ${b.motionDurationSlow}`,"&:hover":{color:b.colorTextTertiary},"&:active":{color:b.colorText},"&-hidden":{visibility:"hidden"},"&-has-suffix":{margin:`0 ${b.inputAffixPadding}px`}}}},q=b=>{const{componentCls:D,inputAffixPadding:F,colorTextDescription:U,motionDurationSlow:fe,colorIcon:ye,colorIconHover:Se,iconCls:Ne}=b;return{[`${D}-affix-wrapper`]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},v(b)),{display:"inline-flex",[`&:not(${D}-affix-wrapper-disabled):hover`]:Object.assign(Object.assign({},le(b)),{zIndex:1,[`${D}-search-with-button &`]:{zIndex:0}}),"&-focused, &:focus":{zIndex:1},"&-disabled":{[`${D}[disabled]`]:{background:"transparent"}},[`> input${D}`]:{padding:0,fontSize:"inherit",border:"none",borderRadius:0,outline:"none","&::-ms-reveal":{display:"none"},"&:focus":{boxShadow:"none !important"}},"&::before":{display:"inline-block",width:0,visibility:"hidden",content:'"\\a0"'},[`${D}`]:{"&-prefix, &-suffix":{display:"flex",flex:"none",alignItems:"center","> *:not(:last-child)":{marginInlineEnd:b.paddingXS}},"&-show-count-suffix":{color:U},"&-show-count-has-suffix":{marginInlineEnd:b.paddingXXS},"&-prefix":{marginInlineEnd:F},"&-suffix":{marginInlineStart:F}}}),y(b)),{[`${Ne}${D}-password-icon`]:{color:ye,cursor:"pointer",transition:`all ${fe}`,"&:hover":{color:Se}}}),$(b,`${D}-affix-wrapper`))}},ae=b=>{const{componentCls:D,colorError:F,colorWarning:U,borderRadiusLG:fe,borderRadiusSM:ye}=b;return{[`${D}-group`]:Object.assign(Object.assign(Object.assign({},(0,T.Wf)(b)),c(b)),{"&-rtl":{direction:"rtl"},"&-wrapper":{display:"inline-block",width:"100%",textAlign:"start",verticalAlign:"top","&-rtl":{direction:"rtl"},"&-lg":{[`${D}-group-addon`]:{borderRadius:fe,fontSize:b.fontSizeLG}},"&-sm":{[`${D}-group-addon`]:{borderRadius:ye}},"&-status-error":{[`${D}-group-addon`]:{color:F,borderColor:F}},"&-status-warning":{[`${D}-group-addon`]:{color:U,borderColor:U}},"&-disabled":{[`${D}-group-addon`]:Object.assign({},be(b))},[`&:not(${D}-compact-first-item):not(${D}-compact-last-item)${D}-compact-item`]:{[`${D}, ${D}-group-addon`]:{borderRadius:0}},[`&:not(${D}-compact-last-item)${D}-compact-first-item`]:{[`${D}, ${D}-group-addon`]:{borderStartEndRadius:0,borderEndEndRadius:0}},[`&:not(${D}-compact-first-item)${D}-compact-last-item`]:{[`${D}, ${D}-group-addon`]:{borderStartStartRadius:0,borderEndStartRadius:0}}}})}},P=b=>{const{componentCls:D,antCls:F}=b,U=`${D}-search`;return{[U]:{[`${D}`]:{"&:hover, &:focus":{borderColor:b.colorPrimaryHover,[`+ ${D}-group-addon ${U}-button:not(${F}-btn-primary)`]:{borderInlineStartColor:b.colorPrimaryHover}}},[`${D}-affix-wrapper`]:{borderRadius:0},[`${D}-lg`]:{lineHeight:b.lineHeightLG-2e-4},[`> ${D}-group`]:{[`> ${D}-group-addon:last-child`]:{insetInlineStart:-1,padding:0,border:0,[`${U}-button`]:{paddingTop:0,paddingBottom:0,borderStartStartRadius:0,borderStartEndRadius:b.borderRadius,borderEndEndRadius:b.borderRadius,borderEndStartRadius:0,boxShadow:"none"},[`${U}-button:not(${F}-btn-primary)`]:{color:b.colorTextDescription,"&:hover":{color:b.colorPrimaryHover},"&:active":{color:b.colorPrimaryActive},[`&${F}-btn-loading::before`]:{insetInlineStart:0,insetInlineEnd:0,insetBlockStart:0,insetBlockEnd:0}}}},[`${U}-button`]:{height:b.controlHeight,"&:hover, &:focus":{zIndex:1}},[`&-large ${U}-button`]:{height:b.controlHeightLG},[`&-small ${U}-button`]:{height:b.controlHeightSM},"&-rtl":{direction:"rtl"},[`&${D}-compact-item`]:{[`&:not(${D}-compact-last-item)`]:{[`${D}-group-addon`]:{[`${D}-search-button`]:{marginInlineEnd:-b.lineWidth,borderRadius:0}}},[`&:not(${D}-compact-first-item)`]:{[`${D},${D}-affix-wrapper`]:{borderRadius:0}},[`> ${D}-group-addon ${D}-search-button,
> ${D},
${D}-affix-wrapper`]:{"&:hover,&:focus,&:active":{zIndex:2}},[`> ${D}-affix-wrapper-focused`]:{zIndex:2}}}}},z=b=>{const{componentCls:D,paddingLG:F}=b,U=`${D}-textarea`;return{[U]:{position:"relative","&-show-count":{[`> ${D}`]:{height:"100%"},[`${D}-data-count`]:{position:"absolute",bottom:-b.fontSize*b.lineHeight,insetInlineEnd:0,color:b.colorTextDescription,whiteSpace:"nowrap",pointerEvents:"none"}},"&-allow-clear":{[`> ${D}`]:{paddingInlineEnd:F}},[`&-affix-wrapper${U}-has-feedback`]:{[`${D}`]:{paddingInlineEnd:F}},[`&-affix-wrapper${D}-affix-wrapper`]:{padding:0,[`> textarea${D}`]:{fontSize:"inherit",border:"none",outline:"none","&:focus":{boxShadow:"none !important"}},[`${D}-suffix`]:{margin:0,"> *:not(:last-child)":{marginInline:0},[`${D}-clear-icon`]:{position:"absolute",insetInlineEnd:b.paddingXS,insetBlockStart:b.paddingXS},[`${U}-suffix`]:{position:"absolute",top:0,insetInlineEnd:b.paddingInline,bottom:0,zIndex:1,display:"inline-flex",alignItems:"center",margin:"auto",pointerEvents:"none"}}}}}};function W(b){return(0,ie.TS)(b,{inputAffixPadding:b.paddingXXS})}const re=b=>{const{controlHeight:D,fontSize:F,lineHeight:U,lineWidth:fe,controlHeightSM:ye,controlHeightLG:Se,fontSizeLG:Ne,lineHeightLG:Z,paddingSM:B,controlPaddingHorizontalSM:ne,controlPaddingHorizontal:X,colorFillAlter:me,colorPrimaryHover:ee,controlOutlineWidth:g,controlOutline:w,colorErrorOutline:Q,colorWarningOutline:J}=b;return{paddingBlock:Math.max(Math.round((D-F*U)/2*10)/10-fe,3),paddingBlockSM:Math.max(Math.round((ye-F*U)/2*10)/10-fe,0),paddingBlockLG:Math.ceil((Se-Ne*Z)/2*10)/10-fe,paddingInline:B-fe,paddingInlineSM:ne-fe,paddingInlineLG:X-fe,addonBg:me,activeBorderColor:ee,hoverBorderColor:ee,activeShadow:`0 0 0 ${g}px ${w}`,errorActiveShadow:`0 0 0 ${g}px ${Q}`,warningActiveShadow:`0 0 0 ${g}px ${J}`}};et.ZP=(0,Re.Z)("Input",b=>{const D=(0,ie.TS)(b,W(b));return[S(D),z(D),q(D),ae(D),P(D),(0,N.c)(D)]},re)},45818:function(Ht,et,_){"use strict";_.d(et,{D:function(){return W},Z:function(){return D}});var T=_(96663),N=_(59301),ie={icon:{tag:"svg",attrs:{viewBox:"0 0 1024 1024",focusable:"false"},children:[{tag:"path",attrs:{d:"M912 192H328c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h584c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm0 284H328c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h584c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm0 284H328c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h584c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zM104 228a56 56 0 10112 0 56 56 0 10-112 0zm0 284a56 56 0 10112 0 56 56 0 10-112 0zm0 284a56 56 0 10112 0 56 56 0 10-112 0z"}}]},name:"bars",theme:"outlined"},Re=ie,ve=_(7657),le=function(U,fe){return N.createElement(ve.Z,(0,T.Z)({},U,{ref:fe,icon:Re}))},Te=N.forwardRef(le),be=Te,o=_(33853),L=_(38819),$=_(92310),v=_.n($),c=_(2738),y=F=>!isNaN(parseFloat(F))&&isFinite(F),q=_(36355),ae=_(84966),P=function(F,U){var fe={};for(var ye in F)Object.prototype.hasOwnProperty.call(F,ye)&&U.indexOf(ye)<0&&(fe[ye]=F[ye]);if(F!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Se=0,ye=Object.getOwnPropertySymbols(F);Se<ye.length;Se++)U.indexOf(ye[Se])<0&&Object.prototype.propertyIsEnumerable.call(F,ye[Se])&&(fe[ye[Se]]=F[ye[Se]]);return fe};const z={xs:"479.98px",sm:"575.98px",md:"767.98px",lg:"991.98px",xl:"1199.98px",xxl:"1599.98px"},W=N.createContext({}),re=(()=>{let F=0;return function(){let U=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"";return F+=1,`${U}${F}`}})();var D=N.forwardRef((F,U)=>{const{prefixCls:fe,className:ye,trigger:Se,children:Ne,defaultCollapsed:Z=!1,theme:B="dark",style:ne={},collapsible:X=!1,reverseArrow:me=!1,width:ee=200,collapsedWidth:g=80,zeroWidthTriggerStyle:w,breakpoint:Q,onCollapse:J,onBreakpoint:Pe}=F,Ue=P(F,["prefixCls","className","trigger","children","defaultCollapsed","theme","style","collapsible","reverseArrow","width","collapsedWidth","zeroWidthTriggerStyle","breakpoint","onCollapse","onBreakpoint"]),{siderHook:Xe}=(0,N.useContext)(ae.Gs),[Ze,lt]=(0,N.useState)("collapsed"in F?F.collapsed:Z),[at,ct]=(0,N.useState)(!1);(0,N.useEffect)(()=>{"collapsed"in F&&lt(F.collapsed)},[F.collapsed]);const Ot=(oe,_e)=>{"collapsed"in F||lt(oe),J==null||J(oe,_e)},Ut=(0,N.useRef)();Ut.current=oe=>{ct(oe.matches),Pe==null||Pe(oe.matches),Ze!==oe.matches&&Ot(oe.matches,"responsive")},(0,N.useEffect)(()=>{function oe(M){return Ut.current(M)}let _e;if(typeof window!="undefined"){const{matchMedia:M}=window;if(M&&Q&&Q in z){_e=M(`(max-width: ${z[Q]})`);try{_e.addEventListener("change",oe)}catch(ce){_e.addListener(oe)}oe(_e)}}return()=>{try{_e==null||_e.removeEventListener("change",oe)}catch(M){_e==null||_e.removeListener(oe)}}},[Q]),(0,N.useEffect)(()=>{const oe=re("ant-sider-");return Xe.addSider(oe),()=>Xe.removeSider(oe)},[]);const un=()=>{Ot(!Ze,"clickTrigger")},{getPrefixCls:Ft}=(0,N.useContext)(q.E_),nt=()=>{const oe=Ft("layout-sider",fe),_e=(0,c.Z)(Ue,["collapsed"]),M=Ze?g:ee,ce=y(M)?`${M}px`:String(M),xe=parseFloat(String(g||0))===0?N.createElement("span",{onClick:un,className:v()(`${oe}-zero-width-trigger`,`${oe}-zero-width-trigger-${me?"right":"left"}`),style:w},Se||N.createElement(be,null)):null,k={expanded:me?N.createElement(L.Z,null):N.createElement(o.Z,null),collapsed:me?N.createElement(o.Z,null):N.createElement(L.Z,null)}[Ze?"collapsed":"expanded"],he=Se!==null?xe||N.createElement("div",{className:`${oe}-trigger`,onClick:un,style:{width:ce}},Se||k):null,de=Object.assign(Object.assign({},ne),{flex:`0 0 ${ce}`,maxWidth:ce,minWidth:ce,width:ce}),K=v()(oe,`${oe}-${B}`,{[`${oe}-collapsed`]:!!Ze,[`${oe}-has-trigger`]:X&&Se!==null&&!xe,[`${oe}-below`]:!!at,[`${oe}-zero-width`]:parseFloat(ce)===0},ye);return N.createElement("aside",Object.assign({className:K},_e,{style:de,ref:U}),N.createElement("div",{className:`${oe}-children`},Ne),X||at&&xe?he:null)},Et=N.useMemo(()=>({siderCollapsed:Ze}),[Ze]);return N.createElement(W.Provider,{value:Et},nt())})},84966:function(Ht,et,_){"use strict";_.d(et,{VY:function(){return W},$_:function(){return z},h4:function(){return P},Gs:function(){return c},ZP:function(){return re}});var T=_(19127),N=_(92310),ie=_.n(N),Re=_(2738),ve=_(59301),le=_(36355),Te=_(83116),o=b=>{const{componentCls:D,bodyBg:F,lightSiderBg:U,lightTriggerBg:fe,lightTriggerColor:ye}=b;return{[`${D}-sider-light`]:{background:U,[`${D}-sider-trigger`]:{color:ye,background:fe},[`${D}-sider-zero-width-trigger`]:{color:ye,background:fe,border:`1px solid ${F}`,borderInlineStart:0}}}};const L=b=>{const{antCls:D,componentCls:F,colorText:U,triggerColor:fe,footerBg:ye,triggerBg:Se,headerHeight:Ne,headerPadding:Z,headerColor:B,footerPadding:ne,triggerHeight:X,zeroTriggerHeight:me,zeroTriggerWidth:ee,motionDurationMid:g,motionDurationSlow:w,fontSize:Q,borderRadius:J,bodyBg:Pe,headerBg:Ue,siderBg:Xe}=b;return{[F]:Object.assign(Object.assign({display:"flex",flex:"auto",flexDirection:"column",minHeight:0,background:Pe,"&, *":{boxSizing:"border-box"},[`&${F}-has-sider`]:{flexDirection:"row",[`> ${F}, > ${F}-content`]:{width:0}},[`${F}-header, &${F}-footer`]:{flex:"0 0 auto"},[`${F}-sider`]:{position:"relative",minWidth:0,background:Xe,transition:`all ${g}, background 0s`,"&-children":{height:"100%",marginTop:-.1,paddingTop:.1,[`${D}-menu${D}-menu-inline-collapsed`]:{width:"auto"}},"&-has-trigger":{paddingBottom:X},"&-right":{order:1},"&-trigger":{position:"fixed",bottom:0,zIndex:1,height:X,color:fe,lineHeight:`${X}px`,textAlign:"center",background:Se,cursor:"pointer",transition:`all ${g}`},"&-zero-width":{"> *":{overflow:"hidden"},"&-trigger":{position:"absolute",top:Ne,insetInlineEnd:-ee,zIndex:1,width:ee,height:me,color:fe,fontSize:b.fontSizeXL,display:"flex",alignItems:"center",justifyContent:"center",background:Xe,borderStartStartRadius:0,borderStartEndRadius:J,borderEndEndRadius:J,borderEndStartRadius:0,cursor:"pointer",transition:`background ${w} ease`,"&::after":{position:"absolute",inset:0,background:"transparent",transition:`all ${w}`,content:'""'},"&:hover::after":{background:"rgba(255, 255, 255, 0.2)"},"&-right":{insetInlineStart:-ee,borderStartStartRadius:J,borderStartEndRadius:0,borderEndEndRadius:0,borderEndStartRadius:J}}}}},o(b)),{"&-rtl":{direction:"rtl"}}),[`${F}-header`]:{height:Ne,padding:Z,color:B,lineHeight:`${Ne}px`,background:Ue,[`${D}-menu`]:{lineHeight:"inherit"}},[`${F}-footer`]:{padding:ne,color:U,fontSize:Q,background:ye},[`${F}-content`]:{flex:"auto",minHeight:0}}};var $=(0,Te.Z)("Layout",b=>[L(b)],b=>{const{colorBgLayout:D,controlHeight:F,controlHeightLG:U,colorText:fe,controlHeightSM:ye,marginXXS:Se,colorTextLightSolid:Ne,colorBgContainer:Z}=b,B=U*1.25;return{colorBgHeader:"#001529",colorBgBody:D,colorBgTrigger:"#002140",bodyBg:D,headerBg:"#001529",headerHeight:F*2,headerPadding:`0 ${B}px`,headerColor:fe,footerPadding:`${ye}px ${B}px`,footerBg:D,siderBg:"#001529",triggerHeight:U+Se*2,triggerBg:"#002140",triggerColor:Ne,zeroTriggerWidth:U,zeroTriggerHeight:U,lightSiderBg:Z,lightTriggerBg:Z,lightTriggerColor:fe}},{deprecatedTokens:[["colorBgBody","bodyBg"],["colorBgHeader","headerBg"],["colorBgTrigger","triggerBg"]]}),v=function(b,D){var F={};for(var U in b)Object.prototype.hasOwnProperty.call(b,U)&&D.indexOf(U)<0&&(F[U]=b[U]);if(b!=null&&typeof Object.getOwnPropertySymbols=="function")for(var fe=0,U=Object.getOwnPropertySymbols(b);fe<U.length;fe++)D.indexOf(U[fe])<0&&Object.prototype.propertyIsEnumerable.call(b,U[fe])&&(F[U[fe]]=b[U[fe]]);return F};const c=ve.createContext({siderHook:{addSider:()=>null,removeSider:()=>null}});function S(b){let{suffixCls:D,tagName:F,displayName:U}=b;return fe=>ve.forwardRef((Se,Ne)=>ve.createElement(fe,Object.assign({ref:Ne,suffixCls:D,tagName:F},Se)))}const y=ve.forwardRef((b,D)=>{const{prefixCls:F,suffixCls:U,className:fe,tagName:ye}=b,Se=v(b,["prefixCls","suffixCls","className","tagName"]),{getPrefixCls:Ne}=ve.useContext(le.E_),Z=Ne("layout",F),[B,ne]=$(Z),X=U?`${Z}-${U}`:Z;return B(ve.createElement(ye,Object.assign({className:ie()(F||X,fe,ne),ref:D},Se)))}),q=ve.forwardRef((b,D)=>{const{direction:F}=ve.useContext(le.E_),[U,fe]=ve.useState([]),{prefixCls:ye,className:Se,rootClassName:Ne,children:Z,hasSider:B,tagName:ne,style:X}=b,me=v(b,["prefixCls","className","rootClassName","children","hasSider","tagName","style"]),ee=(0,Re.Z)(me,["suffixCls"]),{getPrefixCls:g,layout:w}=ve.useContext(le.E_),Q=g("layout",ye),[J,Pe]=$(Q),Ue=ie()(Q,{[`${Q}-has-sider`]:typeof B=="boolean"?B:U.length>0,[`${Q}-rtl`]:F==="rtl"},w==null?void 0:w.className,Se,Ne,Pe),Xe=ve.useMemo(()=>({siderHook:{addSider:Ze=>{fe(lt=>[].concat((0,T.Z)(lt),[Ze]))},removeSider:Ze=>{fe(lt=>lt.filter(at=>at!==Ze))}}}),[]);return J(ve.createElement(c.Provider,{value:Xe},ve.createElement(ne,Object.assign({ref:D,className:Ue,style:Object.assign(Object.assign({},w==null?void 0:w.style),X)},ee),Z)))}),ae=S({tagName:"div",displayName:"Layout"})(q),P=S({suffixCls:"header",tagName:"header",displayName:"Header"})(y),z=S({suffixCls:"footer",tagName:"footer",displayName:"Footer"})(y),W=S({suffixCls:"content",tagName:"main",displayName:"Content"})(y);var re=ae},40875:function(Ht,et,_){"use strict";_.d(et,{J:function(){return le}});var T=_(59301),N=_(33234),ie=_(70425),Re=function(Te,be){var o={};for(var L in Te)Object.prototype.hasOwnProperty.call(Te,L)&&be.indexOf(L)<0&&(o[L]=Te[L]);if(Te!=null&&typeof Object.getOwnPropertySymbols=="function")for(var $=0,L=Object.getOwnPropertySymbols(Te);$<L.length;$++)be.indexOf(L[$])<0&&Object.prototype.propertyIsEnumerable.call(Te,L[$])&&(o[L[$]]=Te[L[$]]);return o};const ve=T.createContext(null),le=T.forwardRef((Te,be)=>{const{children:o}=Te,L=Re(Te,["children"]),$=T.useContext(ve),v=T.useMemo(()=>Object.assign(Object.assign({},$),L),[$,L.prefixCls,L.mode,L.selectable]);return T.createElement(ve.Provider,{value:v},T.createElement(N.BR,null,(0,ie.supportNodeRef)(o)?T.cloneElement(o,{ref:be}):o))});et.Z=ve},20834:function(Ht,et,_){"use strict";_.d(et,{default:function(){return Et}});var T=_(15285),N=_(59301),ie=_(45818),Re=_(92310),ve=_.n(Re),le=_(36355),Te=function(oe,_e){var M={};for(var ce in oe)Object.prototype.hasOwnProperty.call(oe,ce)&&_e.indexOf(ce)<0&&(M[ce]=oe[ce]);if(oe!=null&&typeof Object.getOwnPropertySymbols=="function")for(var xe=0,ce=Object.getOwnPropertySymbols(oe);xe<ce.length;xe++)_e.indexOf(ce[xe])<0&&Object.prototype.propertyIsEnumerable.call(oe,ce[xe])&&(M[ce[xe]]=oe[ce[xe]]);return M},o=oe=>{const{prefixCls:_e,className:M,dashed:ce}=oe,xe=Te(oe,["prefixCls","className","dashed"]),{getPrefixCls:O}=N.useContext(le.E_),C=O("menu",_e),k=ve()({[`${C}-item-divider-dashed`]:!!ce},M);return N.createElement(T.iz,Object.assign({className:k},xe))},L=_(11592),$=_(2738),v=_(6848),c=_(92343),y=(0,N.createContext)({prefixCls:"",firstLevel:!0,inlineCollapsed:!1}),ae=oe=>{var _e;const{className:M,children:ce,icon:xe,title:O,danger:C}=oe,{prefixCls:k,firstLevel:he,direction:de,disableMenuItemTitleTooltip:K,inlineCollapsed:Ie}=N.useContext(y),$e=dt=>{const At=N.createElement("span",{className:`${k}-title-content`},ce);return(!xe||(0,c.l$)(ce)&&ce.type==="span")&&ce&&dt&&he&&typeof ce=="string"?N.createElement("div",{className:`${k}-inline-collapsed-noicon`},ce.charAt(0)):At},{siderCollapsed:Me}=N.useContext(ie.D);let Be=O;typeof O=="undefined"?Be=he?ce:"":O===!1&&(Be="");const Ye={title:Be};!Me&&!Ie&&(Ye.title=null,Ye.open=!1);const Qe=(0,L.Z)(ce).length;let Je=N.createElement(T.ck,Object.assign({},(0,$.Z)(oe,["title","icon","danger"]),{className:ve()({[`${k}-item-danger`]:C,[`${k}-item-only-child`]:(xe?Qe+1:Qe)===1},M),title:typeof O=="string"?O:void 0}),(0,c.Tm)(xe,{className:ve()((0,c.l$)(xe)?(_e=xe.props)===null||_e===void 0?void 0:_e.className:"",`${k}-item-icon`)}),$e(Ie));return K||(Je=N.createElement(v.Z,Object.assign({},Ye,{placement:de==="rtl"?"left":"right",overlayClassName:`${k}-inline-collapsed-tooltip`}),Je)),Je},z=oe=>{var _e;const{popupClassName:M,icon:ce,title:xe,theme:O}=oe,C=N.useContext(y),{prefixCls:k,inlineCollapsed:he,theme:de}=C,K=(0,T.Xl)();let Ie;if(!ce)Ie=he&&!K.length&&xe&&typeof xe=="string"?N.createElement("div",{className:`${k}-inline-collapsed-noicon`},xe.charAt(0)):N.createElement("span",{className:`${k}-title-content`},xe);else{const Me=(0,c.l$)(xe)&&xe.type==="span";Ie=N.createElement(N.Fragment,null,(0,c.Tm)(ce,{className:ve()((0,c.l$)(ce)?(_e=ce.props)===null||_e===void 0?void 0:_e.className:"",`${k}-item-icon`)}),Me?xe:N.createElement("span",{className:`${k}-title-content`},xe))}const $e=N.useMemo(()=>Object.assign(Object.assign({},C),{firstLevel:!1}),[C]);return N.createElement(y.Provider,{value:$e},N.createElement(T.Wd,Object.assign({},(0,$.Z)(oe,["icon"]),{title:Ie,popupClassName:ve()(k,M,`${k}-${O||de}`)})))},W=_(18785),re=_(70425),b=_(62892),D=_(40875),F=function(oe,_e){var M={};for(var ce in oe)Object.prototype.hasOwnProperty.call(oe,ce)&&_e.indexOf(ce)<0&&(M[ce]=oe[ce]);if(oe!=null&&typeof Object.getOwnPropertySymbols=="function")for(var xe=0,ce=Object.getOwnPropertySymbols(oe);xe<ce.length;xe++)_e.indexOf(ce[xe])<0&&Object.prototype.propertyIsEnumerable.call(oe,ce[xe])&&(M[ce[xe]]=oe[ce[xe]]);return M};function U(oe){return(oe||[]).map((_e,M)=>{if(_e&&typeof _e=="object"){const ce=_e,{label:xe,children:O,key:C,type:k}=ce,he=F(ce,["label","children","key","type"]),de=C!=null?C:`tmp-${M}`;return O||k==="group"?k==="group"?N.createElement(T.BW,Object.assign({key:de},he,{title:xe}),U(O)):N.createElement(z,Object.assign({key:de},he,{title:xe}),U(O)):k==="divider"?N.createElement(o,Object.assign({key:de},he)):N.createElement(ae,Object.assign({key:de},he),xe)}return null}).filter(_e=>_e)}function fe(oe){return N.useMemo(()=>oe&&U(oe),[oe])}var ye=_(64993),Se=_(17313),Ne=_(8378),Z=_(13826),B=_(29878),ne=_(83116),X=_(37613),ee=oe=>{const{componentCls:_e,motionDurationSlow:M,horizontalLineHeight:ce,colorSplit:xe,lineWidth:O,lineType:C,itemPaddingInline:k}=oe;return{[`${_e}-horizontal`]:{lineHeight:ce,border:0,borderBottom:`${O}px ${C} ${xe}`,boxShadow:"none","&::after":{display:"block",clear:"both",height:0,content:'"\\20"'},[`${_e}-item, ${_e}-submenu`]:{position:"relative",display:"inline-block",verticalAlign:"bottom",paddingInline:k},[`> ${_e}-item:hover,
> ${_e}-item-active,
> ${_e}-submenu ${_e}-submenu-title:hover`]:{backgroundColor:"transparent"},[`${_e}-item, ${_e}-submenu-title`]:{transition:[`border-color ${M}`,`background ${M}`].join(",")},[`${_e}-submenu-arrow`]:{display:"none"}}}},w=oe=>{let{componentCls:_e,menuArrowOffset:M}=oe;return{[`${_e}-rtl`]:{direction:"rtl"},[`${_e}-submenu-rtl`]:{transformOrigin:"100% 0"},[`${_e}-rtl${_e}-vertical,
${_e}-submenu-rtl ${_e}-vertical`]:{[`${_e}-submenu-arrow`]:{"&::before":{transform:`rotate(-45deg) translateY(-${M})`},"&::after":{transform:`rotate(45deg) translateY(${M})`}}}}};const Q=oe=>Object.assign({},(0,Se.oN)(oe));var Pe=(oe,_e)=>{const{componentCls:M,itemColor:ce,itemSelectedColor:xe,groupTitleColor:O,itemBg:C,subMenuItemBg:k,itemSelectedBg:he,activeBarHeight:de,activeBarWidth:K,activeBarBorderWidth:Ie,motionDurationSlow:$e,motionEaseInOut:Me,motionEaseOut:Be,itemPaddingInline:Ye,motionDurationMid:Qe,itemHoverColor:Je,lineType:dt,colorSplit:At,itemDisabledColor:gt,dangerItemColor:Rt,dangerItemHoverColor:Ct,dangerItemSelectedColor:x,dangerItemActiveBg:A,dangerItemSelectedBg:rt,itemHoverBg:Y,itemActiveBg:Ce,menuSubMenuBg:vn,horizontalItemSelectedColor:ke,horizontalItemSelectedBg:He,horizontalItemBorderRadius:We,horizontalItemHoverBg:te,popupBg:pe}=oe;return{[`${M}-${_e}, ${M}-${_e} > ${M}`]:{color:ce,background:C,[`&${M}-root:focus-visible`]:Object.assign({},Q(oe)),[`${M}-item-group-title`]:{color:O},[`${M}-submenu-selected`]:{[`> ${M}-submenu-title`]:{color:xe}},[`${M}-item-disabled, ${M}-submenu-disabled`]:{color:`${gt} !important`},[`${M}-item:not(${M}-item-selected):not(${M}-submenu-selected)`]:{[`&:hover, > ${M}-submenu-title:hover`]:{color:Je}},[`&:not(${M}-horizontal)`]:{[`${M}-item:not(${M}-item-selected)`]:{"&:hover":{backgroundColor:Y},"&:active":{backgroundColor:Ce}},[`${M}-submenu-title`]:{"&:hover":{backgroundColor:Y},"&:active":{backgroundColor:Ce}}},[`${M}-item-danger`]:{color:Rt,[`&${M}-item:hover`]:{[`&:not(${M}-item-selected):not(${M}-submenu-selected)`]:{color:Ct}},[`&${M}-item:active`]:{background:A}},[`${M}-item a`]:{"&, &:hover":{color:"inherit"}},[`${M}-item-selected`]:{color:xe,[`&${M}-item-danger`]:{color:x},"a, a:hover":{color:"inherit"}},[`& ${M}-item-selected`]:{backgroundColor:he,[`&${M}-item-danger`]:{backgroundColor:rt}},[`${M}-item, ${M}-submenu-title`]:{[`&:not(${M}-item-disabled):focus-visible`]:Object.assign({},Q(oe))},[`&${M}-submenu > ${M}`]:{backgroundColor:vn},[`&${M}-popup > ${M}`]:{backgroundColor:pe},[`&${M}-horizontal`]:Object.assign(Object.assign({},_e==="dark"?{borderBottom:0}:{}),{[`> ${M}-item, > ${M}-submenu`]:{top:Ie,marginTop:-Ie,marginBottom:0,borderRadius:We,"&::after":{position:"absolute",insetInline:Ye,bottom:0,borderBottom:`${de}px solid transparent`,transition:`border-color ${$e} ${Me}`,content:'""'},"&:hover, &-active, &-open":{background:te,"&::after":{borderBottomWidth:de,borderBottomColor:ke}},"&-selected":{color:ke,backgroundColor:He,"&:hover":{backgroundColor:He},"&::after":{borderBottomWidth:de,borderBottomColor:ke}}}}),[`&${M}-root`]:{[`&${M}-inline, &${M}-vertical`]:{borderInlineEnd:`${Ie}px ${dt} ${At}`}},[`&${M}-inline`]:{[`${M}-sub${M}-inline`]:{background:k},[`${M}-item, ${M}-submenu-title`]:Ie&&K?{width:`calc(100% + ${Ie}px)`}:{},[`${M}-item`]:{position:"relative","&::after":{position:"absolute",insetBlock:0,insetInlineEnd:0,borderInlineEnd:`${K}px solid ${xe}`,transform:"scaleY(0.0001)",opacity:0,transition:[`transform ${Qe} ${Be}`,`opacity ${Qe} ${Be}`].join(","),content:'""'},[`&${M}-item-danger`]:{"&::after":{borderInlineEndColor:x}}},[`${M}-selected, ${M}-item-selected`]:{"&::after":{transform:"scaleY(1)",opacity:1,transition:[`transform ${Qe} ${Me}`,`opacity ${Qe} ${Me}`].join(",")}}}}}};const Ue=oe=>{const{componentCls:_e,itemHeight:M,itemMarginInline:ce,padding:xe,menuArrowSize:O,marginXS:C,itemMarginBlock:k}=oe,he=xe+O+C;return{[`${_e}-item`]:{position:"relative",overflow:"hidden"},[`${_e}-item, ${_e}-submenu-title`]:{height:M,lineHeight:`${M}px`,paddingInline:xe,overflow:"hidden",textOverflow:"ellipsis",marginInline:ce,marginBlock:k,width:`calc(100% - ${ce*2}px)`},[`> ${_e}-item,
> ${_e}-submenu > ${_e}-submenu-title`]:{height:M,lineHeight:`${M}px`},[`${_e}-item-group-list ${_e}-submenu-title,
${_e}-submenu-title`]:{paddingInlineEnd:he}}};var Ze=oe=>{const{componentCls:_e,iconCls:M,itemHeight:ce,colorTextLightSolid:xe,dropdownWidth:O,controlHeightLG:C,motionDurationMid:k,motionEaseOut:he,paddingXL:de,itemMarginInline:K,fontSizeLG:Ie,motionDurationSlow:$e,paddingXS:Me,boxShadowSecondary:Be,collapsedWidth:Ye,collapsedIconSize:Qe}=oe,Je={height:ce,lineHeight:`${ce}px`,listStylePosition:"inside",listStyleType:"disc"};return[{[_e]:{"&-inline, &-vertical":Object.assign({[`&${_e}-root`]:{boxShadow:"none"}},Ue(oe))},[`${_e}-submenu-popup`]:{[`${_e}-vertical`]:Object.assign(Object.assign({},Ue(oe)),{boxShadow:Be})}},{[`${_e}-submenu-popup ${_e}-vertical${_e}-sub`]:{minWidth:O,maxHeight:`calc(100vh - ${C*2.5}px)`,padding:"0",overflow:"hidden",borderInlineEnd:0,"&:not([class*='-active'])":{overflowX:"hidden",overflowY:"auto"}}},{[`${_e}-inline`]:{width:"100%",[`&${_e}-root`]:{[`${_e}-item, ${_e}-submenu-title`]:{display:"flex",alignItems:"center",transition:[`border-color ${$e}`,`background ${$e}`,`padding ${k} ${he}`].join(","),[`> ${_e}-title-content`]:{flex:"auto",minWidth:0,overflow:"hidden",textOverflow:"ellipsis"},"> *":{flex:"none"}}},[`${_e}-sub${_e}-inline`]:{padding:0,border:0,borderRadius:0,boxShadow:"none",[`& > ${_e}-submenu > ${_e}-submenu-title`]:Je,[`& ${_e}-item-group-title`]:{paddingInlineStart:de}},[`${_e}-item`]:Je}},{[`${_e}-inline-collapsed`]:{width:Ye,[`&${_e}-root`]:{[`${_e}-item, ${_e}-submenu ${_e}-submenu-title`]:{[`> ${_e}-inline-collapsed-noicon`]:{fontSize:Ie,textAlign:"center"}}},[`> ${_e}-item,
> ${_e}-item-group > ${_e}-item-group-list > ${_e}-item,
> ${_e}-item-group > ${_e}-item-group-list > ${_e}-submenu > ${_e}-submenu-title,
> ${_e}-submenu > ${_e}-submenu-title`]:{insetInlineStart:0,paddingInline:`calc(50% - ${Ie/2}px - ${K}px)`,textOverflow:"clip",[`
${_e}-submenu-arrow,
${_e}-submenu-expand-icon
`]:{opacity:0},[`${_e}-item-icon, ${M}`]:{margin:0,fontSize:Qe,lineHeight:`${ce}px`,"+ span":{display:"inline-block",opacity:0}}},[`${_e}-item-icon, ${M}`]:{display:"inline-block"},"&-tooltip":{pointerEvents:"none",[`${_e}-item-icon, ${M}`]:{display:"none"},"a, a:hover":{color:xe}},[`${_e}-item-group-title`]:Object.assign(Object.assign({},Se.vS),{paddingInline:Me})}}]};const lt=oe=>{const{componentCls:_e,motionDurationSlow:M,motionDurationMid:ce,motionEaseInOut:xe,motionEaseOut:O,iconCls:C,iconSize:k,iconMarginInlineEnd:he}=oe;return{[`${_e}-item, ${_e}-submenu-title`]:{position:"relative",display:"block",margin:0,whiteSpace:"nowrap",cursor:"pointer",transition:[`border-color ${M}`,`background ${M}`,`padding ${M} ${xe}`].join(","),[`${_e}-item-icon, ${C}`]:{minWidth:k,fontSize:k,transition:[`font-size ${ce} ${O}`,`margin ${M} ${xe}`,`color ${M}`].join(","),"+ span":{marginInlineStart:he,opacity:1,transition:[`opacity ${M} ${xe}`,`margin ${M}`,`color ${M}`].join(",")}},[`${_e}-item-icon`]:Object.assign({},(0,Se.Ro)()),[`&${_e}-item-only-child`]:{[`> ${C}, > ${_e}-item-icon`]:{marginInlineEnd:0}}},[`${_e}-item-disabled, ${_e}-submenu-disabled`]:{background:"none !important",cursor:"not-allowed","&::after":{borderColor:"transparent !important"},a:{color:"inherit !important"},[`> ${_e}-submenu-title`]:{color:"inherit !important",cursor:"not-allowed"}}}},at=oe=>{const{componentCls:_e,motionDurationSlow:M,motionEaseInOut:ce,borderRadius:xe,menuArrowSize:O,menuArrowOffset:C}=oe;return{[`${_e}-submenu`]:{"&-expand-icon, &-arrow":{position:"absolute",top:"50%",insetInlineEnd:oe.margin,width:O,color:"currentcolor",transform:"translateY(-50%)",transition:`transform ${M} ${ce}, opacity ${M}`},"&-arrow":{"&::before, &::after":{position:"absolute",width:O*.6,height:O*.15,backgroundColor:"currentcolor",borderRadius:xe,transition:[`background ${M} ${ce}`,`transform ${M} ${ce}`,`top ${M} ${ce}`,`color ${M} ${ce}`].join(","),content:'""'},"&::before":{transform:`rotate(45deg) translateY(-${C})`},"&::after":{transform:`rotate(-45deg) translateY(${C})`}}}}},ct=oe=>{const{antCls:_e,componentCls:M,fontSize:ce,motionDurationSlow:xe,motionDurationMid:O,motionEaseInOut:C,paddingXS:k,padding:he,colorSplit:de,lineWidth:K,zIndexPopup:Ie,borderRadiusLG:$e,subMenuItemBorderRadius:Me,menuArrowSize:Be,menuArrowOffset:Ye,lineType:Qe,menuPanelMaskInset:Je,groupTitleLineHeight:dt,groupTitleFontSize:At}=oe;return[{"":{[`${M}`]:Object.assign(Object.assign({},(0,Se.dF)()),{"&-hidden":{display:"none"}})},[`${M}-submenu-hidden`]:{display:"none"}},{[M]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},(0,Se.Wf)(oe)),(0,Se.dF)()),{marginBottom:0,paddingInlineStart:0,fontSize:ce,lineHeight:0,listStyle:"none",outline:"none",transition:`width ${xe} cubic-bezier(0.2, 0, 0, 1) 0s`,"ul, ol":{margin:0,padding:0,listStyle:"none"},"&-overflow":{display:"flex",[`${M}-item`]:{flex:"none"}},[`${M}-item, ${M}-submenu, ${M}-submenu-title`]:{borderRadius:oe.itemBorderRadius},[`${M}-item-group-title`]:{padding:`${k}px ${he}px`,fontSize:At,lineHeight:dt,transition:`all ${xe}`},[`&-horizontal ${M}-submenu`]:{transition:[`border-color ${xe} ${C}`,`background ${xe} ${C}`].join(",")},[`${M}-submenu, ${M}-submenu-inline`]:{transition:[`border-color ${xe} ${C}`,`background ${xe} ${C}`,`padding ${O} ${C}`].join(",")},[`${M}-submenu ${M}-sub`]:{cursor:"initial",transition:[`background ${xe} ${C}`,`padding ${xe} ${C}`].join(",")},[`${M}-title-content`]:{transition:`color ${xe}`},[`${M}-item a`]:{"&::before":{position:"absolute",inset:0,backgroundColor:"transparent",content:'""'}},[`${M}-item-divider`]:{overflow:"hidden",lineHeight:0,borderColor:de,borderStyle:Qe,borderWidth:0,borderTopWidth:K,marginBlock:K,padding:0,"&-dashed":{borderStyle:"dashed"}}}),lt(oe)),{[`${M}-item-group`]:{[`${M}-item-group-list`]:{margin:0,padding:0,[`${M}-item, ${M}-submenu-title`]:{paddingInline:`${ce*2}px ${he}px`}}},"&-submenu":{"&-popup":{position:"absolute",zIndex:Ie,borderRadius:$e,boxShadow:"none",transformOrigin:"0 0",[`&${M}-submenu`]:{background:"transparent"},"&::before":{position:"absolute",inset:`${Je}px 0 0`,zIndex:-1,width:"100%",height:"100%",opacity:0,content:'""'}},"&-placement-rightTop::before":{top:0,insetInlineStart:Je},"\n &-placement-leftTop,\n &-placement-bottomRight,\n ":{transformOrigin:"100% 0"},"\n &-placement-leftBottom,\n &-placement-topRight,\n ":{transformOrigin:"100% 100%"},"\n &-placement-rightBottom,\n &-placement-topLeft,\n ":{transformOrigin:"0 100%"},"\n &-placement-bottomLeft,\n &-placement-rightTop,\n ":{transformOrigin:"0 0"},"\n &-placement-leftTop,\n &-placement-leftBottom\n ":{paddingInlineEnd:oe.paddingXS},"\n &-placement-rightTop,\n &-placement-rightBottom\n ":{paddingInlineStart:oe.paddingXS},"\n &-placement-topRight,\n &-placement-topLeft\n ":{paddingBottom:oe.paddingXS},"\n &-placement-bottomRight,\n &-placement-bottomLeft\n ":{paddingTop:oe.paddingXS},[`> ${M}`]:Object.assign(Object.assign(Object.assign({borderRadius:$e},lt(oe)),at(oe)),{[`${M}-item, ${M}-submenu > ${M}-submenu-title`]:{borderRadius:Me},[`${M}-submenu-title::after`]:{transition:`transform ${xe} ${C}`}})}}),at(oe)),{[`&-inline-collapsed ${M}-submenu-arrow,
&-inline ${M}-submenu-arrow`]:{"&::before":{transform:`rotate(-45deg) translateX(${Ye})`},"&::after":{transform:`rotate(45deg) translateX(-${Ye})`}},[`${M}-submenu-open${M}-submenu-inline > ${M}-submenu-title > ${M}-submenu-arrow`]:{transform:`translateY(-${Be*.2}px)`,"&::after":{transform:`rotate(-45deg) translateX(-${Ye})`},"&::before":{transform:`rotate(45deg) translateX(${Ye})`}}})},{[`${_e}-layout-header`]:{[M]:{lineHeight:"inherit"}}}]};var Ot=(oe,_e)=>(0,ne.Z)("Menu",ce=>{if(_e===!1)return[];const{colorBgElevated:xe,colorPrimary:O,colorTextLightSolid:C,controlHeightLG:k,fontSize:he,darkItemColor:de,darkDangerItemColor:K,darkItemBg:Ie,darkSubMenuItemBg:$e,darkItemSelectedColor:Me,darkItemSelectedBg:Be,darkDangerItemSelectedBg:Ye,darkItemHoverBg:Qe,darkGroupTitleColor:Je,darkItemHoverColor:dt,darkItemDisabledColor:At,darkDangerItemHoverColor:gt,darkDangerItemSelectedColor:Rt,darkDangerItemActiveBg:Ct}=ce,x=he/7*5,A=(0,X.TS)(ce,{menuArrowSize:x,menuHorizontalHeight:k*1.15,menuArrowOffset:`${x*.25}px`,menuPanelMaskInset:-7,menuSubMenuBg:xe}),rt=(0,X.TS)(A,{itemColor:de,itemHoverColor:dt,groupTitleColor:Je,itemSelectedColor:Me,itemBg:Ie,popupBg:Ie,subMenuItemBg:$e,itemActiveBg:"transparent",itemSelectedBg:Be,activeBarHeight:0,activeBarBorderWidth:0,itemHoverBg:Qe,itemDisabledColor:At,dangerItemColor:K,dangerItemHoverColor:gt,dangerItemSelectedColor:Rt,dangerItemActiveBg:Ct,dangerItemSelectedBg:Ye,menuSubMenuBg:$e,horizontalItemSelectedColor:C,horizontalItemSelectedBg:O});return[ct(A),ee(A),Ze(A),Pe(A,"light"),Pe(rt,"dark"),w(A),(0,Ne.Z)(A),(0,Z.oN)(A,"slide-up"),(0,Z.oN)(A,"slide-down"),(0,B._y)(A,"zoom-big")]},ce=>{const{colorPrimary:xe,colorError:O,colorTextDisabled:C,colorErrorBg:k,colorText:he,colorTextDescription:de,colorBgContainer:K,colorFillAlter:Ie,colorFillContent:$e,lineWidth:Me,lineWidthBold:Be,controlItemBgActive:Ye,colorBgTextHover:Qe,controlHeightLG:Je,lineHeight:dt,colorBgElevated:At,marginXXS:gt,padding:Rt,fontSize:Ct,controlHeightSM:x,fontSizeLG:A,colorTextLightSolid:rt,colorErrorHover:Y}=ce,Ce=new ye.C(rt).setAlpha(.65).toRgbString();return{dropdownWidth:160,zIndexPopup:ce.zIndexPopupBase+50,radiusItem:ce.borderRadiusLG,itemBorderRadius:ce.borderRadiusLG,radiusSubMenuItem:ce.borderRadiusSM,subMenuItemBorderRadius:ce.borderRadiusSM,colorItemText:he,itemColor:he,colorItemTextHover:he,itemHoverColor:he,colorItemTextHoverHorizontal:xe,horizontalItemHoverColor:xe,colorGroupTitle:de,groupTitleColor:de,colorItemTextSelected:xe,itemSelectedColor:xe,colorItemTextSelectedHorizontal:xe,horizontalItemSelectedColor:xe,colorItemBg:K,itemBg:K,colorItemBgHover:Qe,itemHoverBg:Qe,colorItemBgActive:$e,itemActiveBg:Ye,colorSubItemBg:Ie,subMenuItemBg:Ie,colorItemBgSelected:Ye,itemSelectedBg:Ye,colorItemBgSelectedHorizontal:"transparent",horizontalItemSelectedBg:"transparent",colorActiveBarWidth:0,activeBarWidth:0,colorActiveBarHeight:Be,activeBarHeight:Be,colorActiveBarBorderSize:Me,activeBarBorderWidth:Me,colorItemTextDisabled:C,itemDisabledColor:C,colorDangerItemText:O,dangerItemColor:O,colorDangerItemTextHover:O,dangerItemHoverColor:O,colorDangerItemTextSelected:O,dangerItemSelectedColor:O,colorDangerItemBgActive:k,dangerItemActiveBg:k,colorDangerItemBgSelected:k,dangerItemSelectedBg:k,itemMarginInline:ce.marginXXS,horizontalItemBorderRadius:0,horizontalItemHoverBg:"transparent",itemHeight:Je,groupTitleLineHeight:dt,collapsedWidth:Je*2,popupBg:At,itemMarginBlock:gt,itemPaddingInline:Rt,horizontalLineHeight:`${Je*1.15}px`,iconSize:Ct,iconMarginInlineEnd:x-Ct,collapsedIconSize:A,groupTitleFontSize:Ct,darkItemDisabledColor:new ye.C(rt).setAlpha(.25).toRgbString(),darkItemColor:Ce,darkDangerItemColor:O,darkItemBg:"#001529",darkSubMenuItemBg:"#000c17",darkItemSelectedColor:rt,darkItemSelectedBg:xe,darkDangerItemSelectedBg:O,darkItemHoverBg:"transparent",darkGroupTitleColor:Ce,darkItemHoverColor:rt,darkDangerItemHoverColor:Y,darkDangerItemSelectedColor:rt,darkDangerItemActiveBg:O}},{deprecatedTokens:[["colorGroupTitle","groupTitleColor"],["radiusItem","itemBorderRadius"],["radiusSubMenuItem","subMenuItemBorderRadius"],["colorItemText","itemColor"],["colorItemTextHover","itemHoverColor"],["colorItemTextHoverHorizontal","horizontalItemHoverColor"],["colorItemTextSelected","itemSelectedColor"],["colorItemTextSelectedHorizontal","horizontalItemSelectedColor"],["colorItemTextDisabled","itemDisabledColor"],["colorDangerItemText","dangerItemColor"],["colorDangerItemTextHover","dangerItemHoverColor"],["colorDangerItemTextSelected","dangerItemSelectedColor"],["colorDangerItemBgActive","dangerItemActiveBg"],["colorDangerItemBgSelected","dangerItemSelectedBg"],["colorItemBg","itemBg"],["colorItemBgHover","itemHoverBg"],["colorSubItemBg","subMenuItemBg"],["colorItemBgActive","itemActiveBg"],["colorItemBgSelectedHorizontal","horizontalItemSelectedBg"],["colorActiveBarWidth","activeBarWidth"],["colorActiveBarHeight","activeBarHeight"],["colorActiveBarBorderSize","activeBarBorderWidth"],["colorItemBgSelected","itemSelectedBg"]]})(oe),Ut=function(oe,_e){var M={};for(var ce in oe)Object.prototype.hasOwnProperty.call(oe,ce)&&_e.indexOf(ce)<0&&(M[ce]=oe[ce]);if(oe!=null&&typeof Object.getOwnPropertySymbols=="function")for(var xe=0,ce=Object.getOwnPropertySymbols(oe);xe<ce.length;xe++)_e.indexOf(ce[xe])<0&&Object.prototype.propertyIsEnumerable.call(oe,ce[xe])&&(M[ce[xe]]=oe[ce[xe]]);return M},Ft=(0,N.forwardRef)((oe,_e)=>{var M,ce;const xe=N.useContext(D.Z),O=xe||{},{getPrefixCls:C,getPopupContainer:k,direction:he,menu:de}=N.useContext(le.E_),K=C(),{prefixCls:Ie,className:$e,style:Me,theme:Be="light",expandIcon:Ye,_internalDisableMenuItemTitleTooltip:Qe,inlineCollapsed:Je,siderCollapsed:dt,items:At,children:gt,rootClassName:Rt,mode:Ct,selectable:x,onClick:A,overflowedIndicatorPopupClassName:rt}=oe,Y=Ut(oe,["prefixCls","className","style","theme","expandIcon","_internalDisableMenuItemTitleTooltip","inlineCollapsed","siderCollapsed","items","children","rootClassName","mode","selectable","onClick","overflowedIndicatorPopupClassName"]),Ce=(0,$.Z)(Y,["collapsedWidth"]),vn=fe(At)||gt;(M=O.validator)===null||M===void 0||M.call(O,{mode:Ct});const ke=(0,re.useEvent)(function(){var ln;A==null||A.apply(void 0,arguments),(ln=O.onClick)===null||ln===void 0||ln.call(O)}),He=O.mode||Ct,We=x!=null?x:O.selectable,te=N.useMemo(()=>dt!==void 0?dt:Je,[Je,dt]),pe={horizontal:{motionName:`${K}-slide-up`},inline:(0,b.Z)(K),other:{motionName:`${K}-zoom-big`}},De=C("menu",Ie||O.prefixCls),[ze,V]=Ot(De,!xe),kt=ve()(`${De}-${Be}`,de==null?void 0:de.className,$e);let Le;if(typeof Ye=="function")Le=Ye;else if(Ye===null||Ye===!1)Le=null;else if(O.expandIcon===null||O.expandIcon===!1)Le=null;else{const ln=Ye!=null?Ye:O.expandIcon;Le=(0,c.Tm)(ln,{className:ve()(`${De}-submenu-expand-icon`,(0,c.l$)(ln)?(ce=ln.props)===null||ce===void 0?void 0:ce.className:"")})}const jt=N.useMemo(()=>({prefixCls:De,inlineCollapsed:te||!1,direction:he,firstLevel:!0,theme:Be,mode:He,disableMenuItemTitleTooltip:Qe}),[De,te,he,Qe,Be]);return ze(N.createElement(D.Z.Provider,{value:null},N.createElement(y.Provider,{value:jt},N.createElement(T.ZP,Object.assign({getPopupContainer:k,overflowedIndicator:N.createElement(W.Z,null),overflowedIndicatorPopupClassName:ve()(De,`${De}-${Be}`,rt),mode:He,selectable:We,onClick:ke},Ce,{inlineCollapsed:te,style:Object.assign(Object.assign({},de==null?void 0:de.style),Me),className:kt,prefixCls:De,direction:he,defaultMotions:pe,expandIcon:Le,ref:_e,rootClassName:ve()(Rt,V)}),vn))))});const nt=(0,N.forwardRef)((oe,_e)=>{const M=(0,N.useRef)(null),ce=N.useContext(ie.D);return(0,N.useImperativeHandle)(_e,()=>({menu:M.current,focus:xe=>{var O;(O=M.current)===null||O===void 0||O.focus(xe)}})),N.createElement(Ft,Object.assign({ref:M},oe,ce))});nt.Item=ae,nt.SubMenu=z,nt.Divider=o,nt.ItemGroup=T.BW;var Et=nt},58421:function(Ht,et,_){"use strict";_.d(et,{Z:function(){return O}});var T=_(96663),N=_(59301),ie={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M272.9 512l265.4-339.1c4.1-5.2.4-12.9-6.3-12.9h-77.3c-4.9 0-9.6 2.3-12.6 6.1L186.8 492.3a31.99 31.99 0 000 39.5l255.3 326.1c3 3.9 7.7 6.1 12.6 6.1H532c6.7 0 10.4-7.7 6.3-12.9L272.9 512zm304 0l265.4-339.1c4.1-5.2.4-12.9-6.3-12.9h-77.3c-4.9 0-9.6 2.3-12.6 6.1L490.8 492.3a31.99 31.99 0 000 39.5l255.3 326.1c3 3.9 7.7 6.1 12.6 6.1H836c6.7 0 10.4-7.7 6.3-12.9L576.9 512z"}}]},name:"double-left",theme:"outlined"},Re=ie,ve=_(7657),le=function(k,he){return N.createElement(ve.Z,(0,T.Z)({},k,{ref:he,icon:Re}))},Te=N.forwardRef(le),be=Te,o=_(49198),L=_(33853),$=_(38819),v=_(92310),c=_.n(v),S=_(90493),y=_(44127),q=_(52884),ae=_(95727),P=_(65711),z=_(85745),W=_(26112),re={ZERO:48,NINE:57,NUMPAD_ZERO:96,NUMPAD_NINE:105,BACKSPACE:8,DELETE:46,ENTER:13,ARROW_UP:38,ARROW_DOWN:40},b=re,D=_(91735),F=function(C){(0,P.Z)(he,C);var k=(0,z.Z)(he);function he(){var de;(0,q.Z)(this,he);for(var K=arguments.length,Ie=new Array(K),$e=0;$e<K;$e++)Ie[$e]=arguments[$e];return de=k.call.apply(k,[this].concat(Ie)),de.state={goInputText:""},de.getValidValue=function(){var Me=de.state.goInputText;return!Me||Number.isNaN(Me)?void 0:Number(Me)},de.buildOptionText=function(Me){return"".concat(Me," ").concat(de.props.locale.items_per_page)},de.changeSize=function(Me){de.props.changeSize(Number(Me))},de.handleChange=function(Me){de.setState({goInputText:Me.target.value})},de.handleBlur=function(Me){var Be=de.props,Ye=Be.goButton,Qe=Be.quickGo,Je=Be.rootPrefixCls,dt=de.state.goInputText;Ye||dt===""||(de.setState({goInputText:""}),!(Me.relatedTarget&&(Me.relatedTarget.className.indexOf("".concat(Je,"-item-link"))>=0||Me.relatedTarget.className.indexOf("".concat(Je,"-item"))>=0))&&Qe(de.getValidValue()))},de.go=function(Me){var Be=de.state.goInputText;Be!==""&&(Me.keyCode===b.ENTER||Me.type==="click")&&(de.setState({goInputText:""}),de.props.quickGo(de.getValidValue()))},de}return(0,ae.Z)(he,[{key:"getPageSizeOptions",value:function(){var K=this.props,Ie=K.pageSize,$e=K.pageSizeOptions;return $e.some(function(Me){return Me.toString()===Ie.toString()})?$e:$e.concat([Ie.toString()]).sort(function(Me,Be){var Ye=Number.isNaN(Number(Me))?0:Number(Me),Qe=Number.isNaN(Number(Be))?0:Number(Be);return Ye-Qe})}},{key:"render",value:function(){var K=this,Ie=this.props,$e=Ie.pageSize,Me=Ie.locale,Be=Ie.rootPrefixCls,Ye=Ie.changeSize,Qe=Ie.quickGo,Je=Ie.goButton,dt=Ie.selectComponentClass,At=Ie.buildOptionText,gt=Ie.selectPrefixCls,Rt=Ie.disabled,Ct=this.state.goInputText,x="".concat(Be,"-options"),A=dt,rt=null,Y=null,Ce=null;if(!Ye&&!Qe)return null;var vn=this.getPageSizeOptions();if(Ye&&A){var ke=vn.map(function(He,We){return N.createElement(A.Option,{key:We,value:He.toString()},(At||K.buildOptionText)(He))});rt=N.createElement(A,{disabled:Rt,prefixCls:gt,showSearch:!1,className:"".concat(x,"-size-changer"),optionLabelProp:"children",popupMatchSelectWidth:!1,value:($e||vn[0]).toString(),onChange:this.changeSize,getPopupContainer:function(We){return We.parentNode},"aria-label":Me.page_size,defaultOpen:!1},ke)}return Qe&&(Je&&(Ce=typeof Je=="boolean"?N.createElement("button",{type:"button",onClick:this.go,onKeyUp:this.go,disabled:Rt,className:"".concat(x,"-quick-jumper-button")},Me.jump_to_confirm):N.createElement("span",{onClick:this.go,onKeyUp:this.go},Je)),Y=N.createElement("div",{className:"".concat(x,"-quick-jumper")},Me.jump_to,N.createElement("input",{disabled:Rt,type:"text",value:Ct,onChange:this.handleChange,onKeyUp:this.go,onBlur:this.handleBlur,"aria-label":Me.page}),Me.page,Ce)),N.createElement("li",{className:"".concat(x)},rt,Y)}}]),he}(N.Component);F.defaultProps={pageSizeOptions:["10","20","50","100"]};var U=F,fe=function(k){var he,de=k.rootPrefixCls,K=k.page,Ie=k.active,$e=k.className,Me=k.showTitle,Be=k.onClick,Ye=k.onKeyPress,Qe=k.itemRender,Je="".concat(de,"-item"),dt=c()(Je,"".concat(Je,"-").concat(K),(he={},(0,S.Z)(he,"".concat(Je,"-active"),Ie),(0,S.Z)(he,"".concat(Je,"-disabled"),!K),(0,S.Z)(he,k.className,$e),he)),At=function(){Be(K)},gt=function(x){Ye(x,Be,K)},Rt=Qe(K,"page",N.createElement("a",{rel:"nofollow"},K));return Rt?N.createElement("li",{title:Me?K.toString():null,className:dt,onClick:At,onKeyPress:gt,tabIndex:0},Rt):null},ye=fe;function Se(){}function Ne(C){var k=Number(C);return typeof k=="number"&&!Number.isNaN(k)&&isFinite(k)&&Math.floor(k)===k}var Z=function(k,he,de){return de};function B(C,k,he){var de=typeof C=="undefined"?k.pageSize:C;return Math.floor((he.total-1)/de)+1}var ne=function(C){(0,P.Z)(he,C);var k=(0,z.Z)(he);function he(de){var K;(0,q.Z)(this,he),K=k.call(this,de),K.paginationNode=N.createRef(),K.getJumpPrevPage=function(){return Math.max(1,K.state.current-(K.props.showLessItems?3:5))},K.getJumpNextPage=function(){return Math.min(B(void 0,K.state,K.props),K.state.current+(K.props.showLessItems?3:5))},K.getItemIcon=function(Ye,Qe){var Je=K.props.prefixCls,dt=Ye||N.createElement("button",{type:"button","aria-label":Qe,className:"".concat(Je,"-item-link")});return typeof Ye=="function"&&(dt=N.createElement(Ye,(0,y.Z)({},K.props))),dt},K.isValid=function(Ye){var Qe=K.props.total;return Ne(Ye)&&Ye!==K.state.current&&Ne(Qe)&&Qe>0},K.shouldDisplayQuickJumper=function(){var Ye=K.props,Qe=Ye.showQuickJumper,Je=Ye.total,dt=K.state.pageSize;return Je<=dt?!1:Qe},K.handleKeyDown=function(Ye){(Ye.keyCode===b.ARROW_UP||Ye.keyCode===b.ARROW_DOWN)&&Ye.preventDefault()},K.handleKeyUp=function(Ye){var Qe=K.getValidValue(Ye),Je=K.state.currentInputValue;Qe!==Je&&K.setState({currentInputValue:Qe}),Ye.keyCode===b.ENTER?K.handleChange(Qe):Ye.keyCode===b.ARROW_UP?K.handleChange(Qe-1):Ye.keyCode===b.ARROW_DOWN&&K.handleChange(Qe+1)},K.handleBlur=function(Ye){var Qe=K.getValidValue(Ye);K.handleChange(Qe)},K.changePageSize=function(Ye){var Qe=K.state.current,Je=B(Ye,K.state,K.props);Qe=Qe>Je?Je:Qe,Je===0&&(Qe=K.state.current),typeof Ye=="number"&&("pageSize"in K.props||K.setState({pageSize:Ye}),"current"in K.props||K.setState({current:Qe,currentInputValue:Qe})),K.props.onShowSizeChange(Qe,Ye),"onChange"in K.props&&K.props.onChange&&K.props.onChange(Qe,Ye)},K.handleChange=function(Ye){var Qe=K.props,Je=Qe.disabled,dt=Qe.onChange,At=K.state,gt=At.pageSize,Rt=At.current,Ct=At.currentInputValue;if(K.isValid(Ye)&&!Je){var x=B(void 0,K.state,K.props),A=Ye;return Ye>x?A=x:Ye<1&&(A=1),"current"in K.props||K.setState({current:A}),A!==Ct&&K.setState({currentInputValue:A}),dt(A,gt),A}return Rt},K.prev=function(){K.hasPrev()&&K.handleChange(K.state.current-1)},K.next=function(){K.hasNext()&&K.handleChange(K.state.current+1)},K.jumpPrev=function(){K.handleChange(K.getJumpPrevPage())},K.jumpNext=function(){K.handleChange(K.getJumpNextPage())},K.hasPrev=function(){return K.state.current>1},K.hasNext=function(){return K.state.current<B(void 0,K.state,K.props)},K.runIfEnter=function(Ye,Qe){if(Ye.key==="Enter"||Ye.charCode===13){for(var Je=arguments.length,dt=new Array(Je>2?Je-2:0),At=2;At<Je;At++)dt[At-2]=arguments[At];Qe.apply(void 0,dt)}},K.runIfEnterPrev=function(Ye){K.runIfEnter(Ye,K.prev)},K.runIfEnterNext=function(Ye){K.runIfEnter(Ye,K.next)},K.runIfEnterJumpPrev=function(Ye){K.runIfEnter(Ye,K.jumpPrev)},K.runIfEnterJumpNext=function(Ye){K.runIfEnter(Ye,K.jumpNext)},K.handleGoTO=function(Ye){(Ye.keyCode===b.ENTER||Ye.type==="click")&&K.handleChange(K.state.currentInputValue)},K.renderPrev=function(Ye){var Qe=K.props,Je=Qe.prevIcon,dt=Qe.itemRender,At=dt(Ye,"prev",K.getItemIcon(Je,"prev page")),gt=!K.hasPrev();return(0,N.isValidElement)(At)?(0,N.cloneElement)(At,{disabled:gt}):At},K.renderNext=function(Ye){var Qe=K.props,Je=Qe.nextIcon,dt=Qe.itemRender,At=dt(Ye,"next",K.getItemIcon(Je,"next page")),gt=!K.hasNext();return(0,N.isValidElement)(At)?(0,N.cloneElement)(At,{disabled:gt}):At};var Ie=de.onChange!==Se,$e="current"in de;$e&&!Ie&&console.warn("Warning: You provided a `current` prop to a Pagination component without an `onChange` handler. This will render a read-only component.");var Me=de.defaultCurrent;"current"in de&&(Me=de.current);var Be=de.defaultPageSize;return"pageSize"in de&&(Be=de.pageSize),Me=Math.min(Me,B(Be,void 0,de)),K.state={current:Me,currentInputValue:Me,pageSize:Be},K}return(0,ae.Z)(he,[{key:"componentDidUpdate",value:function(K,Ie){var $e=this.props.prefixCls;if(Ie.current!==this.state.current&&this.paginationNode.current){var Me=this.paginationNode.current.querySelector(".".concat($e,"-item-").concat(Ie.current));if(Me&&document.activeElement===Me){var Be;Me==null||(Be=Me.blur)===null||Be===void 0||Be.call(Me)}}}},{key:"getValidValue",value:function(K){var Ie=K.target.value,$e=B(void 0,this.state,this.props),Me=this.state.currentInputValue,Be;return Ie===""?Be=Ie:Number.isNaN(Number(Ie))?Be=Me:Ie>=$e?Be=$e:Be=Number(Ie),Be}},{key:"getShowSizeChanger",value:function(){var K=this.props,Ie=K.showSizeChanger,$e=K.total,Me=K.totalBoundaryShowSizeChanger;return typeof Ie!="undefined"?Ie:$e>Me}},{key:"render",value:function(){var K=this.props,Ie=K.prefixCls,$e=K.className,Me=K.style,Be=K.disabled,Ye=K.hideOnSinglePage,Qe=K.total,Je=K.locale,dt=K.showQuickJumper,At=K.showLessItems,gt=K.showTitle,Rt=K.showTotal,Ct=K.simple,x=K.itemRender,A=K.showPrevNextJumpers,rt=K.jumpPrevIcon,Y=K.jumpNextIcon,Ce=K.selectComponentClass,vn=K.selectPrefixCls,ke=K.pageSizeOptions,He=this.state,We=He.current,te=He.pageSize,pe=He.currentInputValue;if(Ye===!0&&Qe<=te)return null;var De=B(void 0,this.state,this.props),ze=[],V=null,kt=null,Le=null,jt=null,ln=null,bt=dt&&dt.goButton,Lt=At?1:2,ot=We-1>0?We-1:0,ft=We+1<De?We+1:De,Gt=(0,W.Z)(this.props,{aria:!0,data:!0}),yn=Rt&&N.createElement("li",{className:"".concat(Ie,"-total-text")},Rt(Qe,[Qe===0?0:(We-1)*te+1,We*te>Qe?Qe:We*te]));if(Ct){bt&&(typeof bt=="boolean"?ln=N.createElement("button",{type:"button",onClick:this.handleGoTO,onKeyUp:this.handleGoTO},Je.jump_to_confirm):ln=N.createElement("span",{onClick:this.handleGoTO,onKeyUp:this.handleGoTO},bt),ln=N.createElement("li",{title:gt?"".concat(Je.jump_to).concat(We,"/").concat(De):null,className:"".concat(Ie,"-simple-pager")},ln));var nn=this.renderPrev(ot);return N.createElement("ul",(0,T.Z)({className:c()(Ie,"".concat(Ie,"-simple"),(0,S.Z)({},"".concat(Ie,"-disabled"),Be),$e),style:Me,ref:this.paginationNode},Gt),yn,nn?N.createElement("li",{title:gt?Je.prev_page:null,onClick:this.prev,tabIndex:this.hasPrev()?0:null,onKeyPress:this.runIfEnterPrev,className:c()("".concat(Ie,"-prev"),(0,S.Z)({},"".concat(Ie,"-disabled"),!this.hasPrev())),"aria-disabled":!this.hasPrev()},nn):null,N.createElement("li",{title:gt?"".concat(We,"/").concat(De):null,className:"".concat(Ie,"-simple-pager")},N.createElement("input",{type:"text",value:pe,disabled:Be,onKeyDown:this.handleKeyDown,onKeyUp:this.handleKeyUp,onChange:this.handleKeyUp,onBlur:this.handleBlur,size:3}),N.createElement("span",{className:"".concat(Ie,"-slash")},"/"),De),N.createElement("li",{title:gt?Je.next_page:null,onClick:this.next,tabIndex:this.hasPrev()?0:null,onKeyPress:this.runIfEnterNext,className:c()("".concat(Ie,"-next"),(0,S.Z)({},"".concat(Ie,"-disabled"),!this.hasNext())),"aria-disabled":!this.hasNext()},this.renderNext(ft)),ln)}if(De<=3+Lt*2){var je={locale:Je,rootPrefixCls:Ie,onClick:this.handleChange,onKeyPress:this.runIfEnter,showTitle:gt,itemRender:x};De||ze.push(N.createElement(ye,(0,T.Z)({},je,{key:"noPager",page:1,className:"".concat(Ie,"-item-disabled")})));for(var we=1;we<=De;we+=1){var ut=We===we;ze.push(N.createElement(ye,(0,T.Z)({},je,{key:we,page:we,active:ut})))}}else{var it=At?Je.prev_3:Je.prev_5,yt=At?Je.next_3:Je.next_5,Mt=x(this.getJumpPrevPage(),"jump-prev",this.getItemIcon(rt,"prev page")),Kt=x(this.getJumpNextPage(),"jump-next",this.getItemIcon(Y,"next page"));A&&(V=Mt?N.createElement("li",{title:gt?it:null,key:"prev",onClick:this.jumpPrev,tabIndex:0,onKeyPress:this.runIfEnterJumpPrev,className:c()("".concat(Ie,"-jump-prev"),(0,S.Z)({},"".concat(Ie,"-jump-prev-custom-icon"),!!rt))},Mt):null,kt=Kt?N.createElement("li",{title:gt?yt:null,key:"next",tabIndex:0,onClick:this.jumpNext,onKeyPress:this.runIfEnterJumpNext,className:c()("".concat(Ie,"-jump-next"),(0,S.Z)({},"".concat(Ie,"-jump-next-custom-icon"),!!Y))},Kt):null),jt=N.createElement(ye,{locale:Je,last:!0,rootPrefixCls:Ie,onClick:this.handleChange,onKeyPress:this.runIfEnter,key:De,page:De,active:!1,showTitle:gt,itemRender:x}),Le=N.createElement(ye,{locale:Je,rootPrefixCls:Ie,onClick:this.handleChange,onKeyPress:this.runIfEnter,key:1,page:1,active:!1,showTitle:gt,itemRender:x});var Pt=Math.max(1,We-Lt),Zt=Math.min(We+Lt,De);We-1<=Lt&&(Zt=1+Lt*2),De-We<=Lt&&(Pt=De-Lt*2);for(var Yt=Pt;Yt<=Zt;Yt+=1){var Nt=We===Yt;ze.push(N.createElement(ye,{locale:Je,rootPrefixCls:Ie,onClick:this.handleChange,onKeyPress:this.runIfEnter,key:Yt,page:Yt,active:Nt,showTitle:gt,itemRender:x}))}We-1>=Lt*2&&We!==3&&(ze[0]=(0,N.cloneElement)(ze[0],{className:"".concat(Ie,"-item-after-jump-prev")}),ze.unshift(V)),De-We>=Lt*2&&We!==De-2&&(ze[ze.length-1]=(0,N.cloneElement)(ze[ze.length-1],{className:"".concat(Ie,"-item-before-jump-next")}),ze.push(kt)),Pt!==1&&ze.unshift(Le),Zt!==De&&ze.push(jt)}var xt=!this.hasPrev()||!De,rn=!this.hasNext()||!De,Qt=this.renderPrev(ot),hn=this.renderNext(ft);return N.createElement("ul",(0,T.Z)({className:c()(Ie,$e,(0,S.Z)({},"".concat(Ie,"-disabled"),Be)),style:Me,ref:this.paginationNode},Gt),yn,Qt?N.createElement("li",{title:gt?Je.prev_page:null,onClick:this.prev,tabIndex:xt?null:0,onKeyPress:this.runIfEnterPrev,className:c()("".concat(Ie,"-prev"),(0,S.Z)({},"".concat(Ie,"-disabled"),xt)),"aria-disabled":xt},Qt):null,ze,hn?N.createElement("li",{title:gt?Je.next_page:null,onClick:this.next,tabIndex:rn?null:0,onKeyPress:this.runIfEnterNext,className:c()("".concat(Ie,"-next"),(0,S.Z)({},"".concat(Ie,"-disabled"),rn)),"aria-disabled":rn},hn):null,N.createElement(U,{disabled:Be,locale:Je,rootPrefixCls:Ie,selectComponentClass:Ce,selectPrefixCls:vn,changeSize:this.getShowSizeChanger()?this.changePageSize:null,current:We,pageSize:te,pageSizeOptions:ke,quickGo:this.shouldDisplayQuickJumper()?this.handleChange:null,goButton:bt}))}}],[{key:"getDerivedStateFromProps",value:function(K,Ie){var $e={};if("current"in K&&($e.current=K.current,K.current!==Ie.current&&($e.currentInputValue=$e.current)),"pageSize"in K&&K.pageSize!==Ie.pageSize){var Me=Ie.current,Be=B(K.pageSize,Ie,K);Me=Me>Be?Be:Me,"current"in K||($e.current=Me,$e.currentInputValue=Me),$e.pageSize=K.pageSize}return $e}}]),he}(N.Component);ne.defaultProps={defaultCurrent:1,total:0,defaultPageSize:10,onChange:Se,className:"",selectPrefixCls:"rc-select",prefixCls:"rc-pagination",selectComponentClass:null,hideOnSinglePage:!1,showPrevNextJumpers:!0,showQuickJumper:!1,showLessItems:!1,showTitle:!0,onShowSizeChange:Se,locale:D.Z,style:{},itemRender:Z,totalBoundaryShowSizeChanger:50};var X=ne,me=_(22075),ee=_(36355),g=_(19716),w=_(8628),Q=_(9763),J=_(57809);const Pe=C=>N.createElement(J.default,Object.assign({},C,{showSearch:!0,size:"small"})),Ue=C=>N.createElement(J.default,Object.assign({},C,{showSearch:!0,size:"middle"}));Pe.Option=J.default.Option,Ue.Option=J.default.Option;var Xe=_(9937),Ze=_(17313),lt=_(83116),at=_(37613);const ct=C=>{const{componentCls:k}=C;return{[`${k}-disabled`]:{"&, &:hover":{cursor:"not-allowed",[`${k}-item-link`]:{color:C.colorTextDisabled,cursor:"not-allowed"}},"&:focus-visible":{cursor:"not-allowed",[`${k}-item-link`]:{color:C.colorTextDisabled,cursor:"not-allowed"}}},[`&${k}-disabled`]:{cursor:"not-allowed",[`${k}-item`]:{cursor:"not-allowed","&:hover, &:active":{backgroundColor:"transparent"},a:{color:C.colorTextDisabled,backgroundColor:"transparent",border:"none",cursor:"not-allowed"},"&-active":{borderColor:C.colorBorder,backgroundColor:C.itemActiveBgDisabled,"&:hover, &:active":{backgroundColor:C.itemActiveBgDisabled},a:{color:C.itemActiveColorDisabled}}},[`${k}-item-link`]:{color:C.colorTextDisabled,cursor:"not-allowed","&:hover, &:active":{backgroundColor:"transparent"},[`${k}-simple&`]:{backgroundColor:"transparent","&:hover, &:active":{backgroundColor:"transparent"}}},[`${k}-simple-pager`]:{color:C.colorTextDisabled},[`${k}-jump-prev, ${k}-jump-next`]:{[`${k}-item-link-icon`]:{opacity:0},[`${k}-item-ellipsis`]:{opacity:1}}},[`&${k}-simple`]:{[`${k}-prev, ${k}-next`]:{[`&${k}-disabled ${k}-item-link`]:{"&:hover, &:active":{backgroundColor:"transparent"}}}}}},Ot=C=>{const{componentCls:k}=C;return{[`&${k}-mini ${k}-total-text, &${k}-mini ${k}-simple-pager`]:{height:C.itemSizeSM,lineHeight:`${C.itemSizeSM}px`},[`&${k}-mini ${k}-item`]:{minWidth:C.itemSizeSM,height:C.itemSizeSM,margin:0,lineHeight:`${C.itemSizeSM-2}px`},[`&${k}-mini:not(${k}-disabled) ${k}-item:not(${k}-item-active)`]:{backgroundColor:"transparent",borderColor:"transparent","&:hover":{backgroundColor:C.colorBgTextHover},"&:active":{backgroundColor:C.colorBgTextActive}},[`&${k}-mini ${k}-prev, &${k}-mini ${k}-next`]:{minWidth:C.itemSizeSM,height:C.itemSizeSM,margin:0,lineHeight:`${C.itemSizeSM}px`},[`&${k}-mini:not(${k}-disabled)`]:{[`${k}-prev, ${k}-next`]:{[`&:hover ${k}-item-link`]:{backgroundColor:C.colorBgTextHover},[`&:active ${k}-item-link`]:{backgroundColor:C.colorBgTextActive},[`&${k}-disabled:hover ${k}-item-link`]:{backgroundColor:"transparent"}}},[`
&${k}-mini ${k}-prev ${k}-item-link,
&${k}-mini ${k}-next ${k}-item-link
`]:{backgroundColor:"transparent",borderColor:"transparent","&::after":{height:C.itemSizeSM,lineHeight:`${C.itemSizeSM}px`}},[`&${k}-mini ${k}-jump-prev, &${k}-mini ${k}-jump-next`]:{height:C.itemSizeSM,marginInlineEnd:0,lineHeight:`${C.itemSizeSM}px`},[`&${k}-mini ${k}-options`]:{marginInlineStart:C.paginationMiniOptionsMarginInlineStart,"&-size-changer":{top:C.miniOptionsSizeChangerTop},"&-quick-jumper":{height:C.itemSizeSM,lineHeight:`${C.itemSizeSM}px`,input:Object.assign(Object.assign({},(0,Xe.x0)(C)),{width:C.paginationMiniQuickJumperInputWidth,height:C.controlHeightSM})}}}},Ut=C=>{const{componentCls:k}=C;return{[`
&${k}-simple ${k}-prev,
&${k}-simple ${k}-next
`]:{height:C.itemSizeSM,lineHeight:`${C.itemSizeSM}px`,verticalAlign:"top",[`${k}-item-link`]:{height:C.itemSizeSM,backgroundColor:"transparent",border:0,"&:hover":{backgroundColor:C.colorBgTextHover},"&:active":{backgroundColor:C.colorBgTextActive},"&::after":{height:C.itemSizeSM,lineHeight:`${C.itemSizeSM}px`}}},[`&${k}-simple ${k}-simple-pager`]:{display:"inline-block",height:C.itemSizeSM,marginInlineEnd:C.marginXS,input:{boxSizing:"border-box",height:"100%",marginInlineEnd:C.marginXS,padding:`0 ${C.paginationItemPaddingInline}px`,textAlign:"center",backgroundColor:C.itemInputBg,border:`${C.lineWidth}px ${C.lineType} ${C.colorBorder}`,borderRadius:C.borderRadius,outline:"none",transition:`border-color ${C.motionDurationMid}`,color:"inherit","&:hover":{borderColor:C.colorPrimary},"&:focus":{borderColor:C.colorPrimaryHover,boxShadow:`${C.inputOutlineOffset}px 0 ${C.controlOutlineWidth}px ${C.controlOutline}`},"&[disabled]":{color:C.colorTextDisabled,backgroundColor:C.colorBgContainerDisabled,borderColor:C.colorBorder,cursor:"not-allowed"}}}}},un=C=>{const{componentCls:k}=C;return{[`${k}-jump-prev, ${k}-jump-next`]:{outline:0,[`${k}-item-container`]:{position:"relative",[`${k}-item-link-icon`]:{color:C.colorPrimary,fontSize:C.fontSizeSM,opacity:0,transition:`all ${C.motionDurationMid}`,"&-svg":{top:0,insetInlineEnd:0,bottom:0,insetInlineStart:0,margin:"auto"}},[`${k}-item-ellipsis`]:{position:"absolute",top:0,insetInlineEnd:0,bottom:0,insetInlineStart:0,display:"block",margin:"auto",color:C.colorTextDisabled,fontFamily:"Arial, Helvetica, sans-serif",letterSpacing:C.paginationEllipsisLetterSpacing,textAlign:"center",textIndent:C.paginationEllipsisTextIndent,opacity:1,transition:`all ${C.motionDurationMid}`}},"&:hover":{[`${k}-item-link-icon`]:{opacity:1},[`${k}-item-ellipsis`]:{opacity:0}}},[`
${k}-prev,
${k}-jump-prev,
${k}-jump-next
`]:{marginInlineEnd:C.marginXS},[`
${k}-prev,
${k}-next,
${k}-jump-prev,
${k}-jump-next
`]:{display:"inline-block",minWidth:C.itemSize,height:C.itemSize,color:C.colorText,fontFamily:C.fontFamily,lineHeight:`${C.itemSize}px`,textAlign:"center",verticalAlign:"middle",listStyle:"none",borderRadius:C.borderRadius,cursor:"pointer",transition:`all ${C.motionDurationMid}`},[`${k}-prev, ${k}-next`]:{fontFamily:"Arial, Helvetica, sans-serif",outline:0,button:{color:C.colorText,cursor:"pointer",userSelect:"none"},[`${k}-item-link`]:{display:"block",width:"100%",height:"100%",padding:0,fontSize:C.fontSizeSM,textAlign:"center",backgroundColor:"transparent",border:`${C.lineWidth}px ${C.lineType} transparent`,borderRadius:C.borderRadius,outline:"none",transition:`all ${C.motionDurationMid}`},[`&:hover ${k}-item-link`]:{backgroundColor:C.colorBgTextHover},[`&:active ${k}-item-link`]:{backgroundColor:C.colorBgTextActive},[`&${k}-disabled:hover`]:{[`${k}-item-link`]:{backgroundColor:"transparent"}}},[`${k}-slash`]:{marginInlineEnd:C.paginationSlashMarginInlineEnd,marginInlineStart:C.paginationSlashMarginInlineStart},[`${k}-options`]:{display:"inline-block",marginInlineStart:C.margin,verticalAlign:"middle","&-size-changer.-select":{display:"inline-block",width:"auto"},"&-quick-jumper":{display:"inline-block",height:C.controlHeight,marginInlineStart:C.marginXS,lineHeight:`${C.controlHeight}px`,verticalAlign:"top",input:Object.assign(Object.assign({},(0,Xe.ik)(C)),{width:C.controlHeightLG*1.25,height:C.controlHeight,boxSizing:"border-box",margin:0,marginInlineStart:C.marginXS,marginInlineEnd:C.marginXS})}}}},Ft=C=>{const{componentCls:k}=C;return{[`${k}-item`]:{display:"inline-block",minWidth:C.itemSize,height:C.itemSize,marginInlineEnd:C.marginXS,fontFamily:C.fontFamily,lineHeight:`${C.itemSize-2}px`,textAlign:"center",verticalAlign:"middle",listStyle:"none",backgroundColor:"transparent",border:`${C.lineWidth}px ${C.lineType} transparent`,borderRadius:C.borderRadius,outline:0,cursor:"pointer",userSelect:"none",a:{display:"block",padding:`0 ${C.paginationItemPaddingInline}px`,color:C.colorText,"&:hover":{textDecoration:"none"}},[`&:not(${k}-item-active)`]:{"&:hover":{transition:`all ${C.motionDurationMid}`,backgroundColor:C.colorBgTextHover},"&:active":{backgroundColor:C.colorBgTextActive}},"&-active":{fontWeight:C.fontWeightStrong,backgroundColor:C.itemActiveBg,borderColor:C.colorPrimary,a:{color:C.colorPrimary},"&:hover":{borderColor:C.colorPrimaryHover},"&:hover a":{color:C.colorPrimaryHover}}}}},nt=C=>{const{componentCls:k}=C;return{[k]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},(0,Ze.Wf)(C)),{"ul, ol":{margin:0,padding:0,listStyle:"none"},"&::after":{display:"block",clear:"both",height:0,overflow:"hidden",visibility:"hidden",content:'""'},[`${k}-total-text`]:{display:"inline-block",height:C.itemSize,marginInlineEnd:C.marginXS,lineHeight:`${C.itemSize-2}px`,verticalAlign:"middle"}}),Ft(C)),un(C)),Ut(C)),Ot(C)),ct(C)),{[`@media only screen and (max-width: ${C.screenLG}px)`]:{[`${k}-item`]:{"&-after-jump-prev, &-before-jump-next":{display:"none"}}},[`@media only screen and (max-width: ${C.screenSM}px)`]:{[`${k}-options`]:{display:"none"}}}),[`&${C.componentCls}-rtl`]:{direction:"rtl"}}},Et=C=>{const{componentCls:k}=C;return{[`${k}${k}-disabled:not(${k}-mini)`]:{"&, &:hover":{[`${k}-item-link`]:{borderColor:C.colorBorder}},"&:focus-visible":{[`${k}-item-link`]:{borderColor:C.colorBorder}},[`${k}-item, ${k}-item-link`]:{backgroundColor:C.colorBgContainerDisabled,borderColor:C.colorBorder,[`&:hover:not(${k}-item-active)`]:{backgroundColor:C.colorBgContainerDisabled,borderColor:C.colorBorder,a:{color:C.colorTextDisabled}},[`&${k}-item-active`]:{backgroundColor:C.itemActiveBgDisabled}},[`${k}-prev, ${k}-next`]:{"&:hover button":{backgroundColor:C.colorBgContainerDisabled,borderColor:C.colorBorder,color:C.colorTextDisabled},[`${k}-item-link`]:{backgroundColor:C.colorBgContainerDisabled,borderColor:C.colorBorder}}},[`${k}:not(${k}-mini)`]:{[`${k}-prev, ${k}-next`]:{"&:hover button":{borderColor:C.colorPrimaryHover,backgroundColor:C.itemBg},[`${k}-item-link`]:{backgroundColor:C.itemLinkBg,borderColor:C.colorBorder},[`&:hover ${k}-item-link`]:{borderColor:C.colorPrimary,backgroundColor:C.itemBg,color:C.colorPrimary},[`&${k}-disabled`]:{[`${k}-item-link`]:{borderColor:C.colorBorder,color:C.colorTextDisabled}}},[`${k}-item`]:{backgroundColor:C.itemBg,border:`${C.lineWidth}px ${C.lineType} ${C.colorBorder}`,[`&:hover:not(${k}-item-active)`]:{borderColor:C.colorPrimary,backgroundColor:C.itemBg,a:{color:C.colorPrimary}},"&-active":{borderColor:C.colorPrimary}}}}},oe=C=>{const{componentCls:k}=C;return{[`${k}:not(${k}-disabled)`]:{[`${k}-item`]:Object.assign({},(0,Ze.Qy)(C)),[`${k}-jump-prev, ${k}-jump-next`]:{"&:focus-visible":Object.assign({[`${k}-item-link-icon`]:{opacity:1},[`${k}-item-ellipsis`]:{opacity:0}},(0,Ze.oN)(C))},[`${k}-prev, ${k}-next`]:{[`&:focus-visible ${k}-item-link`]:Object.assign({},(0,Ze.oN)(C))}}}};var _e=(0,lt.Z)("Pagination",C=>{const k=(0,at.TS)(C,{inputOutlineOffset:0,paginationMiniOptionsMarginInlineStart:C.marginXXS/2,paginationMiniQuickJumperInputWidth:C.controlHeightLG*1.1,paginationItemPaddingInline:C.marginXXS*1.5,paginationEllipsisLetterSpacing:C.marginXXS/2,paginationSlashMarginInlineStart:C.marginXXS,paginationSlashMarginInlineEnd:C.marginSM,paginationEllipsisTextIndent:"0.13em"},(0,Xe.e5)(C),(0,Xe.TM)(C));return[nt(k),oe(k),C.wireframe&&Et(k)]},C=>({itemBg:C.colorBgContainer,itemSize:C.controlHeight,itemSizeSM:C.controlHeightSM,itemActiveBg:C.colorBgContainer,itemLinkBg:C.colorBgContainer,itemActiveColorDisabled:C.colorTextDisabled,itemActiveBgDisabled:C.controlItemBgActiveDisabled,itemInputBg:C.colorBgContainer,miniOptionsSizeChangerTop:0})),M=function(C,k){var he={};for(var de in C)Object.prototype.hasOwnProperty.call(C,de)&&k.indexOf(de)<0&&(he[de]=C[de]);if(C!=null&&typeof Object.getOwnPropertySymbols=="function")for(var K=0,de=Object.getOwnPropertySymbols(C);K<de.length;K++)k.indexOf(de[K])<0&&Object.prototype.propertyIsEnumerable.call(C,de[K])&&(he[de[K]]=C[de[K]]);return he},xe=C=>{const{prefixCls:k,selectPrefixCls:he,className:de,rootClassName:K,style:Ie,size:$e,locale:Me,selectComponentClass:Be,responsive:Ye,showSizeChanger:Qe}=C,Je=M(C,["prefixCls","selectPrefixCls","className","rootClassName","style","size","locale","selectComponentClass","responsive","showSizeChanger"]),{xs:dt}=(0,w.Z)(Ye),{getPrefixCls:At,direction:gt,pagination:Rt={}}=N.useContext(ee.E_),Ct=At("pagination",k),[x,A]=_e(Ct),rt=Qe!=null?Qe:Rt.showSizeChanger,Y=N.useMemo(()=>{const De=N.createElement("span",{className:`${Ct}-item-ellipsis`},"\u2022\u2022\u2022"),ze=N.createElement("button",{className:`${Ct}-item-link`,type:"button",tabIndex:-1},gt==="rtl"?N.createElement($.Z,null):N.createElement(L.Z,null)),V=N.createElement("button",{className:`${Ct}-item-link`,type:"button",tabIndex:-1},gt==="rtl"?N.createElement(L.Z,null):N.createElement($.Z,null)),kt=N.createElement("a",{className:`${Ct}-item-link`},N.createElement("div",{className:`${Ct}-item-container`},gt==="rtl"?N.createElement(o.Z,{className:`${Ct}-item-link-icon`}):N.createElement(be,{className:`${Ct}-item-link-icon`}),De)),Le=N.createElement("a",{className:`${Ct}-item-link`},N.createElement("div",{className:`${Ct}-item-container`},gt==="rtl"?N.createElement(be,{className:`${Ct}-item-link-icon`}):N.createElement(o.Z,{className:`${Ct}-item-link-icon`}),De));return{prevIcon:ze,nextIcon:V,jumpPrevIcon:kt,jumpNextIcon:Le}},[gt,Ct]),[Ce]=(0,Q.Z)("Pagination",me.Z),vn=Object.assign(Object.assign({},Ce),Me),ke=(0,g.Z)($e),He=ke==="small"||!!(dt&&!ke&&Ye),We=At("select",he),te=c()({[`${Ct}-mini`]:He,[`${Ct}-rtl`]:gt==="rtl"},Rt==null?void 0:Rt.className,de,K,A),pe=Object.assign(Object.assign({},Rt==null?void 0:Rt.style),Ie);return x(N.createElement(X,Object.assign({},Y,Je,{style:pe,prefixCls:Ct,selectPrefixCls:We,className:te,selectComponentClass:Be||(He?Pe:Ue),locale:vn,showSizeChanger:rt})))},O=xe},13570:function(Ht,et,_){"use strict";_.d(et,{Z:function(){return Q}});var T=_(96663),N=_(59301),ie={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M908.1 353.1l-253.9-36.9L540.7 86.1c-3.1-6.3-8.2-11.4-14.5-14.5-15.8-7.8-35-1.3-42.9 14.5L369.8 316.2l-253.9 36.9c-7 1-13.4 4.3-18.3 9.3a32.05 32.05 0 00.6 45.3l183.7 179.1-43.4 252.9a31.95 31.95 0 0046.4 33.7L512 754l227.1 119.4c6.2 3.3 13.4 4.4 20.3 3.2 17.4-3 29.1-19.5 26.1-36.9l-43.4-252.9 183.7-179.1c5-4.9 8.3-11.3 9.3-18.3 2.7-17.5-9.5-33.7-27-36.3z"}}]},name:"star",theme:"filled"},Re=ie,ve=_(7657),le=function(Pe,Ue){return N.createElement(ve.Z,(0,T.Z)({},Pe,{ref:Ue,icon:Re}))},Te=N.forwardRef(le),be=Te,o=_(92310),L=_.n(o),$=_(90493),v=_(72071),c=_(6620),S=_(18929),y=_(10228),q=_(26112);function ae(J,Pe){var Ue=J.disabled,Xe=J.prefixCls,Ze=J.character,lt=J.characterRender,at=J.index,ct=J.count,Ot=J.value,Ut=J.allowHalf,un=J.focused,Ft=J.onHover,nt=J.onClick,Et=function(k){Ft(k,at)},oe=function(k){nt(k,at)},_e=function(k){k.keyCode===y.Z.ENTER&&nt(k,at)},M=at+1,ce=new Set([Xe]);Ot===0&&at===0&&un?ce.add("".concat(Xe,"-focused")):Ut&&Ot+.5>=M&&Ot<M?(ce.add("".concat(Xe,"-half")),ce.add("".concat(Xe,"-active")),un&&ce.add("".concat(Xe,"-focused"))):(M<=Ot?ce.add("".concat(Xe,"-full")):ce.add("".concat(Xe,"-zero")),M===Ot&&un&&ce.add("".concat(Xe,"-focused")));var xe=typeof Ze=="function"?Ze(J):Ze,O=N.createElement("li",{className:L()(Array.from(ce)),ref:Pe},N.createElement("div",{onClick:Ue?null:oe,onKeyDown:Ue?null:_e,onMouseMove:Ue?null:Et,role:"radio","aria-checked":Ot>at?"true":"false","aria-posinset":at+1,"aria-setsize":ct,tabIndex:Ue?-1:0},N.createElement("div",{className:"".concat(Xe,"-first")},xe),N.createElement("div",{className:"".concat(Xe,"-second")},xe)));return lt&&(O=lt(O,J)),O}var P=N.forwardRef(ae);function z(){var J=N.useRef({});function Pe(Xe){return J.current[Xe]}function Ue(Xe){return function(Ze){J.current[Xe]=Ze}}return[Pe,Ue]}function W(J){var Pe=J.pageXOffset,Ue="scrollLeft";if(typeof Pe!="number"){var Xe=J.document;Pe=Xe.documentElement[Ue],typeof Pe!="number"&&(Pe=Xe.body[Ue])}return Pe}function re(J){var Pe,Ue,Xe=J.ownerDocument,Ze=Xe.body,lt=Xe&&Xe.documentElement,at=J.getBoundingClientRect();return Pe=at.left,Ue=at.top,Pe-=lt.clientLeft||Ze.clientLeft||0,Ue-=lt.clientTop||Ze.clientTop||0,{left:Pe,top:Ue}}function b(J){var Pe=re(J),Ue=J.ownerDocument,Xe=Ue.defaultView||Ue.parentWindow;return Pe.left+=W(Xe),Pe.left}var D=["prefixCls","className","defaultValue","value","count","allowHalf","allowClear","character","characterRender","disabled","direction","tabIndex","autoFocus","onHoverChange","onChange","onFocus","onBlur","onKeyDown","onMouseLeave"];function F(J,Pe){var Ue,Xe=J.prefixCls,Ze=Xe===void 0?"rc-rate":Xe,lt=J.className,at=J.defaultValue,ct=J.value,Ot=J.count,Ut=Ot===void 0?5:Ot,un=J.allowHalf,Ft=un===void 0?!1:un,nt=J.allowClear,Et=nt===void 0?!0:nt,oe=J.character,_e=oe===void 0?"\u2605":oe,M=J.characterRender,ce=J.disabled,xe=J.direction,O=xe===void 0?"ltr":xe,C=J.tabIndex,k=C===void 0?0:C,he=J.autoFocus,de=J.onHoverChange,K=J.onChange,Ie=J.onFocus,$e=J.onBlur,Me=J.onKeyDown,Be=J.onMouseLeave,Ye=(0,c.Z)(J,D),Qe=z(),Je=(0,v.Z)(Qe,2),dt=Je[0],At=Je[1],gt=N.useRef(null),Rt=function(){if(!ce){var we;(we=gt.current)===null||we===void 0||we.focus()}};N.useImperativeHandle(Pe,function(){return{focus:Rt,blur:function(){if(!ce){var we;(we=gt.current)===null||we===void 0||we.blur()}}}});var Ct=(0,S.Z)(at||0,{value:ct}),x=(0,v.Z)(Ct,2),A=x[0],rt=x[1],Y=(0,S.Z)(null),Ce=(0,v.Z)(Y,2),vn=Ce[0],ke=Ce[1],He=function(we,ut){var it=O==="rtl",yt=we+1;if(Ft){var Mt=dt(we),Kt=b(Mt),Pt=Mt.clientWidth;(it&&ut-Kt>Pt/2||!it&&ut-Kt<Pt/2)&&(yt-=.5)}return yt},We=function(we){rt(we),K==null||K(we)},te=N.useState(!1),pe=(0,v.Z)(te,2),De=pe[0],ze=pe[1],V=function(){ze(!0),Ie==null||Ie()},kt=function(){ze(!1),$e==null||$e()},Le=N.useState(null),jt=(0,v.Z)(Le,2),ln=jt[0],bt=jt[1],Lt=function(we,ut){var it=He(ut,we.pageX);it!==vn&&(bt(it),ke(null)),de==null||de(it)},ot=function(we){ce||(bt(null),ke(null),de==null||de(void 0)),we&&(Be==null||Be(we))},ft=function(we,ut){var it=He(ut,we.pageX),yt=!1;Et&&(yt=it===A),ot(),We(yt?0:it),ke(yt?it:null)},Gt=function(we){var ut=we.keyCode,it=O==="rtl",yt=A;ut===y.Z.RIGHT&&yt<Ut&&!it?(Ft?yt+=.5:yt+=1,We(yt),we.preventDefault()):ut===y.Z.LEFT&&yt>0&&!it||ut===y.Z.RIGHT&&yt>0&&it?(Ft?yt-=.5:yt-=1,We(yt),we.preventDefault()):ut===y.Z.LEFT&&yt<Ut&&it&&(Ft?yt+=.5:yt+=1,We(yt),we.preventDefault()),Me==null||Me(we)};N.useEffect(function(){he&&!ce&&Rt()},[]);var yn=new Array(Ut).fill(0).map(function(je,we){return N.createElement(P,{ref:At(we),index:we,count:Ut,disabled:ce,prefixCls:"".concat(Ze,"-star"),allowHalf:Ft,value:ln===null?A:ln,onClick:ft,onHover:Lt,key:je||we,character:_e,characterRender:M,focused:De})}),nn=L()(Ze,lt,(Ue={},(0,$.Z)(Ue,"".concat(Ze,"-disabled"),ce),(0,$.Z)(Ue,"".concat(Ze,"-rtl"),O==="rtl"),Ue));return N.createElement("ul",(0,T.Z)({className:nn,onMouseLeave:ot,tabIndex:ce?-1:k,onFocus:ce?null:V,onBlur:ce?null:kt,onKeyDown:ce?null:Gt,ref:gt,role:"radiogroup"},(0,q.Z)(Ye,{aria:!0,data:!0,attr:!0})),yn)}var U=N.forwardRef(F),fe=U,ye=_(36355),Se=_(6848),Ne=_(17313),Z=_(83116),B=_(37613);const ne=J=>{const{componentCls:Pe}=J;return{[`${Pe}-star`]:{position:"relative",display:"inline-block",color:"inherit",cursor:"pointer","&:not(:last-child)":{marginInlineEnd:J.marginXS},"> div":{transition:`all ${J.motionDurationMid}, outline 0s`,"&:hover":{transform:J.starHoverScale},"&:focus":{outline:0},"&:focus-visible":{outline:`${J.lineWidth}px dashed ${J.starColor}`,transform:J.starHoverScale}},"&-first, &-second":{color:J.starBg,transition:`all ${J.motionDurationMid}`,userSelect:"none",[J.iconCls]:{verticalAlign:"middle"}},"&-first":{position:"absolute",top:0,insetInlineStart:0,width:"50%",height:"100%",overflow:"hidden",opacity:0},[`&-half ${Pe}-star-first, &-half ${Pe}-star-second`]:{opacity:1},[`&-half ${Pe}-star-first, &-full ${Pe}-star-second`]:{color:"inherit"}}}},X=J=>({[`&-rtl${J.componentCls}`]:{direction:"rtl"}}),me=J=>{const{componentCls:Pe}=J;return{[Pe]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},(0,Ne.Wf)(J)),{display:"inline-block",margin:0,padding:0,color:J.starColor,fontSize:J.starSize,lineHeight:"unset",listStyle:"none",outline:"none",[`&-disabled${Pe} ${Pe}-star`]:{cursor:"default","> div:hover":{transform:"scale(1)"}}}),ne(J)),{[`+ ${Pe}-text`]:{display:"inline-block",marginInlineStart:J.marginXS,fontSize:J.fontSize}}),X(J))}};var ee=(0,Z.Z)("Rate",J=>{const Pe=(0,B.TS)(J,{});return[me(Pe)]},J=>({starColor:J.yellow6,starSize:J.controlHeightLG*.5,starHoverScale:"scale(1.1)",starBg:J.colorFillContent})),g=function(J,Pe){var Ue={};for(var Xe in J)Object.prototype.hasOwnProperty.call(J,Xe)&&Pe.indexOf(Xe)<0&&(Ue[Xe]=J[Xe]);if(J!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Ze=0,Xe=Object.getOwnPropertySymbols(J);Ze<Xe.length;Ze++)Pe.indexOf(Xe[Ze])<0&&Object.prototype.propertyIsEnumerable.call(J,Xe[Ze])&&(Ue[Xe[Ze]]=J[Xe[Ze]]);return Ue},Q=N.forwardRef((J,Pe)=>{const{prefixCls:Ue,className:Xe,rootClassName:Ze,style:lt,tooltips:at,character:ct=N.createElement(be,null)}=J,Ot=g(J,["prefixCls","className","rootClassName","style","tooltips","character"]),Ut=(ce,xe)=>{let{index:O}=xe;return at?N.createElement(Se.Z,{title:at[O]},ce):ce},{getPrefixCls:un,direction:Ft,rate:nt}=N.useContext(ye.E_),Et=un("rate",Ue),[oe,_e]=ee(Et),M=Object.assign(Object.assign({},nt==null?void 0:nt.style),lt);return oe(N.createElement(fe,Object.assign({ref:Pe,character:ct,characterRender:Ut},Ot,{className:L()(Xe,Ze,_e,nt==null?void 0:nt.className),style:M,prefixCls:Et,direction:Ft})))})},57809:function(Ht,et,_){"use strict";var T=_(92310),N=_.n(T),ie=_(77861),Re=_(2738),ve=_(59301),le=_(53487),Te=_(62892),be=_(19080),o=_(36355),L=_(1684),$=_(93891),v=_(19716),c=_(32441),S=_(33234),y=_(14154),q=_(58582),ae=_(84443),P=_(66339),z=function(F,U){var fe={};for(var ye in F)Object.prototype.hasOwnProperty.call(F,ye)&&U.indexOf(ye)<0&&(fe[ye]=F[ye]);if(F!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Se=0,ye=Object.getOwnPropertySymbols(F);Se<ye.length;Se++)U.indexOf(ye[Se])<0&&Object.prototype.propertyIsEnumerable.call(F,ye[Se])&&(fe[ye[Se]]=F[ye[Se]]);return fe};const W="SECRET_COMBOBOX_MODE_DO_NOT_USE",re=(F,U)=>{var fe,{prefixCls:ye,bordered:Se=!0,className:Ne,rootClassName:Z,getPopupContainer:B,popupClassName:ne,dropdownClassName:X,listHeight:me=256,placement:ee,listItemHeight:g=24,size:w,disabled:Q,notFoundContent:J,status:Pe,builtinPlacements:Ue,dropdownMatchSelectWidth:Xe,popupMatchSelectWidth:Ze,direction:lt,style:at,allowClear:ct}=F,Ot=z(F,["prefixCls","bordered","className","rootClassName","getPopupContainer","popupClassName","dropdownClassName","listHeight","placement","listItemHeight","size","disabled","notFoundContent","status","builtinPlacements","dropdownMatchSelectWidth","popupMatchSelectWidth","direction","style","allowClear"]);const{getPopupContainer:Ut,getPrefixCls:un,renderEmpty:Ft,direction:nt,virtual:Et,popupMatchSelectWidth:oe,popupOverflow:_e,select:M}=ve.useContext(o.E_),ce=un("select",ye),xe=un(),O=lt!=null?lt:nt,{compactSize:C,compactItemClassnames:k}=(0,S.ri)(ce,O),[he,de]=(0,y.Z)(ce),K=ve.useMemo(()=>{const{mode:pe}=Ot;if(pe!=="combobox")return pe===W?"combobox":pe},[Ot.mode]),Ie=K==="multiple"||K==="tags",$e=(0,ae.Z)(Ot.suffixIcon,Ot.showArrow),Me=(fe=Ze!=null?Ze:Xe)!==null&&fe!==void 0?fe:oe,{status:Be,hasFeedback:Ye,isFormItemInput:Qe,feedbackIcon:Je}=ve.useContext(c.aM),dt=(0,be.F)(Be,Pe);let At;J!==void 0?At=J:K==="combobox"?At=null:At=(Ft==null?void 0:Ft("Select"))||ve.createElement($.Z,{componentName:"Select"});const{suffixIcon:gt,itemIcon:Rt,removeIcon:Ct,clearIcon:x}=(0,P.Z)(Object.assign(Object.assign({},Ot),{multiple:Ie,hasFeedback:Ye,feedbackIcon:Je,showSuffixIcon:$e,prefixCls:ce,showArrow:Ot.showArrow,componentName:"Select"})),A=ct===!0?{clearIcon:x}:ct,rt=(0,Re.Z)(Ot,["suffixIcon","itemIcon"]),Y=N()(ne||X,{[`${ce}-dropdown-${O}`]:O==="rtl"},Z,de),Ce=(0,v.Z)(pe=>{var De;return(De=w!=null?w:C)!==null&&De!==void 0?De:pe}),vn=ve.useContext(L.Z),ke=Q!=null?Q:vn,He=N()({[`${ce}-lg`]:Ce==="large",[`${ce}-sm`]:Ce==="small",[`${ce}-rtl`]:O==="rtl",[`${ce}-borderless`]:!Se,[`${ce}-in-form-item`]:Qe},(0,be.Z)(ce,dt,Ye),k,M==null?void 0:M.className,Ne,Z,de),We=ve.useMemo(()=>ee!==void 0?ee:O==="rtl"?"bottomRight":"bottomLeft",[ee,O]),te=(0,q.Z)(Ue,_e);return he(ve.createElement(ie.ZP,Object.assign({ref:U,virtual:Et,showSearch:M==null?void 0:M.showSearch},rt,{style:Object.assign(Object.assign({},M==null?void 0:M.style),at),dropdownMatchSelectWidth:Me,builtinPlacements:te,transitionName:(0,Te.m)(xe,"slide-up",Ot.transitionName),listHeight:me,listItemHeight:g,mode:K,prefixCls:ce,placement:We,direction:O,suffixIcon:gt,menuItemSelectedIcon:Rt,removeIcon:Ct,allowClear:A,notFoundContent:At,className:He,getPopupContainer:B||Ut,dropdownClassName:Y,disabled:ke})))},b=ve.forwardRef(re),D=(0,le.Z)(b);b.SECRET_COMBOBOX_MODE_DO_NOT_USE=W,b.Option=ie.Wx,b.OptGroup=ie.Xo,b._InternalPanelDoNotUseOrYouWillBeFired=D,et.default=b},14154:function(Ht,et,_){"use strict";_.d(et,{Z:function(){return b}});var T=_(17313),N=_(74207),ie=_(37613),Re=_(83116),ve=_(13826),le=_(92899);const Te=D=>{const{optionHeight:F,optionFontSize:U,optionLineHeight:fe,optionPadding:ye}=D;return{position:"relative",display:"block",minHeight:F,padding:ye,color:D.colorText,fontWeight:"normal",fontSize:U,lineHeight:fe,boxSizing:"border-box"}};var o=D=>{const{antCls:F,componentCls:U}=D,fe=`${U}-item`,ye=`&${F}-slide-up-enter${F}-slide-up-enter-active`,Se=`&${F}-slide-up-appear${F}-slide-up-appear-active`,Ne=`&${F}-slide-up-leave${F}-slide-up-leave-active`,Z=`${U}-dropdown-placement-`;return[{[`${U}-dropdown`]:Object.assign(Object.assign({},(0,T.Wf)(D)),{position:"absolute",top:-9999,zIndex:D.zIndexPopup,boxSizing:"border-box",padding:D.paddingXXS,overflow:"hidden",fontSize:D.fontSize,fontVariant:"initial",backgroundColor:D.colorBgElevated,borderRadius:D.borderRadiusLG,outline:"none",boxShadow:D.boxShadowSecondary,[`
${ye}${Z}bottomLeft,
${Se}${Z}bottomLeft
`]:{animationName:ve.fJ},[`
${ye}${Z}topLeft,
${Se}${Z}topLeft,
${ye}${Z}topRight,
${Se}${Z}topRight
`]:{animationName:ve.Qt},[`${Ne}${Z}bottomLeft`]:{animationName:ve.Uw},[`
${Ne}${Z}topLeft,
${Ne}${Z}topRight
`]:{animationName:ve.ly},"&-hidden":{display:"none"},[`${fe}`]:Object.assign(Object.assign({},Te(D)),{cursor:"pointer",transition:`background ${D.motionDurationSlow} ease`,borderRadius:D.borderRadiusSM,"&-group":{color:D.colorTextDescription,fontSize:D.fontSizeSM,cursor:"default"},"&-option":{display:"flex","&-content":Object.assign({flex:"auto"},T.vS),"&-state":{flex:"none",display:"flex",alignItems:"center"},[`&-active:not(${fe}-option-disabled)`]:{backgroundColor:D.optionActiveBg},[`&-selected:not(${fe}-option-disabled)`]:{color:D.optionSelectedColor,fontWeight:D.optionSelectedFontWeight,backgroundColor:D.optionSelectedBg,[`${fe}-option-state`]:{color:D.colorPrimary}},"&-disabled":{[`&${fe}-option-selected`]:{backgroundColor:D.colorBgContainerDisabled},color:D.colorTextDisabled,cursor:"not-allowed"},"&-grouped":{paddingInlineStart:D.controlPaddingHorizontal*2}}}),"&-rtl":{direction:"rtl"}})},(0,ve.oN)(D,"slide-up"),(0,ve.oN)(D,"slide-down"),(0,le.Fm)(D,"move-up"),(0,le.Fm)(D,"move-down")]};const L=2,$=D=>{let{controlHeightSM:F,controlHeight:U,lineWidth:fe}=D;const ye=(U-F)/2-fe,Se=Math.ceil(ye/2);return[ye,Se]};function v(D,F){const{componentCls:U,iconCls:fe}=D,ye=`${U}-selection-overflow`,Se=D.multipleSelectItemHeight,[Ne]=$(D),Z=F?`${U}-${F}`:"";return{[`${U}-multiple${Z}`]:{fontSize:D.fontSize,[ye]:{position:"relative",display:"flex",flex:"auto",flexWrap:"wrap",maxWidth:"100%","&-item":{flex:"none",alignSelf:"center",maxWidth:"100%",display:"inline-flex"}},[`${U}-selector`]:{display:"flex",flexWrap:"wrap",alignItems:"center",padding:`${Ne-L}px ${L*2}px`,borderRadius:D.borderRadius,[`${U}-show-search&`]:{cursor:"text"},[`${U}-disabled&`]:{background:D.multipleSelectorBgDisabled,cursor:"not-allowed"},"&:after":{display:"inline-block",width:0,margin:`${L}px 0`,lineHeight:`${Se}px`,visibility:"hidden",content:'"\\a0"'}},[`
&${U}-show-arrow ${U}-selector,
&${U}-allow-clear ${U}-selector
`]:{paddingInlineEnd:D.fontSizeIcon+D.controlPaddingHorizontal},[`${U}-selection-item`]:{position:"relative",display:"flex",flex:"none",boxSizing:"border-box",maxWidth:"100%",height:Se,marginTop:L,marginBottom:L,lineHeight:`${Se-D.lineWidth*2}px`,background:D.multipleItemBg,border:`${D.lineWidth}px ${D.lineType} ${D.multipleItemBorderColor}`,borderRadius:D.borderRadiusSM,cursor:"default",transition:`font-size ${D.motionDurationSlow}, line-height ${D.motionDurationSlow}, height ${D.motionDurationSlow}`,userSelect:"none",marginInlineEnd:L*2,paddingInlineStart:D.paddingXS,paddingInlineEnd:D.paddingXS/2,[`${U}-disabled&`]:{color:D.multipleItemColorDisabled,borderColor:D.multipleItemBorderColorDisabled,cursor:"not-allowed"},"&-content":{display:"inline-block",marginInlineEnd:D.paddingXS/2,overflow:"hidden",whiteSpace:"pre",textOverflow:"ellipsis"},"&-remove":Object.assign(Object.assign({},(0,T.Ro)()),{display:"inline-flex",alignItems:"center",color:D.colorIcon,fontWeight:"bold",fontSize:10,lineHeight:"inherit",cursor:"pointer",[`> ${fe}`]:{verticalAlign:"-0.2em"},"&:hover":{color:D.colorIconHover}})},[`${ye}-item + ${ye}-item`]:{[`${U}-selection-search`]:{marginInlineStart:0}},[`${U}-selection-search`]:{display:"inline-flex",position:"relative",maxWidth:"100%",marginInlineStart:D.inputPaddingHorizontalBase-Ne,"\n &-input,\n &-mirror\n ":{height:Se,fontFamily:D.fontFamily,lineHeight:`${Se}px`,transition:`all ${D.motionDurationSlow}`},"&-input":{width:"100%",minWidth:4.1},"&-mirror":{position:"absolute",top:0,insetInlineStart:0,insetInlineEnd:"auto",zIndex:999,whiteSpace:"pre",visibility:"hidden"}},[`${U}-selection-placeholder `]:{position:"absolute",top:"50%",insetInlineStart:D.inputPaddingHorizontalBase,insetInlineEnd:D.inputPaddingHorizontalBase,transform:"translateY(-50%)",transition:`all ${D.motionDurationSlow}`}}}}var S=D=>{const{componentCls:F}=D,U=(0,ie.TS)(D,{controlHeight:D.controlHeightSM,multipleSelectItemHeight:D.controlHeightXS,borderRadius:D.borderRadiusSM,borderRadiusSM:D.borderRadiusXS}),fe=(0,ie.TS)(D,{fontSize:D.fontSizeLG,controlHeight:D.controlHeightLG,multipleSelectItemHeight:D.multipleItemHeightLG,borderRadius:D.borderRadiusLG,borderRadiusSM:D.borderRadius}),[,ye]=$(D);return[v(D),v(U,"sm"),{[`${F}-multiple${F}-sm`]:{[`${F}-selection-placeholder`]:{insetInline:D.controlPaddingHorizontalSM-D.lineWidth},[`${F}-selection-search`]:{marginInlineStart:ye}}},v(fe,"lg")]};function y(D,F){const{componentCls:U,inputPaddingHorizontalBase:fe,borderRadius:ye}=D,Se=D.controlHeight-D.lineWidth*2,Ne=Math.ceil(D.fontSize*1.25),Z=F?`${U}-${F}`:"";return{[`${U}-single${Z}`]:{fontSize:D.fontSize,[`${U}-selector`]:Object.assign(Object.assign({},(0,T.Wf)(D)),{display:"flex",borderRadius:ye,[`${U}-selection-search`]:{position:"absolute",top:0,insetInlineStart:fe,insetInlineEnd:fe,bottom:0,"&-input":{width:"100%"}},[`
${U}-selection-item,
${U}-selection-placeholder
`]:{padding:0,lineHeight:`${Se}px`,transition:`all ${D.motionDurationSlow}, visibility 0s`,"@supports (-moz-appearance: meterbar)":{lineHeight:`${Se}px`}},[`${U}-selection-item`]:{position:"relative",userSelect:"none"},[`${U}-selection-placeholder`]:{transition:"none",pointerEvents:"none"},[["&:after",`${U}-selection-item:after`,`${U}-selection-placeholder:after`].join(",")]:{display:"inline-block",width:0,visibility:"hidden",content:'"\\a0"'}}),[`
&${U}-show-arrow ${U}-selection-item,
&${U}-show-arrow ${U}-selection-placeholder
`]:{paddingInlineEnd:Ne},[`&${U}-open ${U}-selection-item`]:{color:D.colorTextPlaceholder},[`&:not(${U}-customize-input)`]:{[`${U}-selector`]:{width:"100%",height:D.controlHeight,padding:`0 ${fe}px`,[`${U}-selection-search-input`]:{height:Se},"&:after":{lineHeight:`${Se}px`}}},[`&${U}-customize-input`]:{[`${U}-selector`]:{"&:after":{display:"none"},[`${U}-selection-search`]:{position:"static",width:"100%"},[`${U}-selection-placeholder`]:{position:"absolute",insetInlineStart:0,insetInlineEnd:0,padding:`0 ${fe}px`,"&:after":{display:"none"}}}}}}}function q(D){const{componentCls:F}=D,U=D.controlPaddingHorizontalSM-D.lineWidth;return[y(D),y((0,ie.TS)(D,{controlHeight:D.controlHeightSM,borderRadius:D.borderRadiusSM}),"sm"),{[`${F}-single${F}-sm`]:{[`&:not(${F}-customize-input)`]:{[`${F}-selection-search`]:{insetInlineStart:U,insetInlineEnd:U},[`${F}-selector`]:{padding:`0 ${U}px`},[`&${F}-show-arrow ${F}-selection-search`]:{insetInlineEnd:U+D.fontSize*1.5},[`
&${F}-show-arrow ${F}-selection-item,
&${F}-show-arrow ${F}-selection-placeholder
`]:{paddingInlineEnd:D.fontSize*1.5}}}},y((0,ie.TS)(D,{controlHeight:D.singleItemHeightLG,fontSize:D.fontSizeLG,borderRadius:D.borderRadiusLG}),"lg")]}const ae=D=>{const{componentCls:F,selectorBg:U}=D;return{position:"relative",backgroundColor:U,border:`${D.lineWidth}px ${D.lineType} ${D.colorBorder}`,transition:`all ${D.motionDurationMid} ${D.motionEaseInOut}`,input:{cursor:"pointer"},[`${F}-show-search&`]:{cursor:"text",input:{cursor:"auto",color:"inherit"}},[`${F}-disabled&`]:{color:D.colorTextDisabled,background:D.colorBgContainerDisabled,cursor:"not-allowed",[`${F}-multiple&`]:{background:D.multipleSelectorBgDisabled},input:{cursor:"not-allowed"}}}},P=function(D,F){let U=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;const{componentCls:fe,borderHoverColor:ye,outlineColor:Se,antCls:Ne}=F,Z=U?{[`${fe}-selector`]:{borderColor:ye}}:{};return{[D]:{[`&:not(${fe}-disabled):not(${fe}-customize-input):not(${Ne}-pagination-size-changer)`]:Object.assign(Object.assign({},Z),{[`${fe}-focused& ${fe}-selector`]:{borderColor:ye,boxShadow:`0 0 0 ${F.controlOutlineWidth}px ${Se}`,outline:0},[`&:hover ${fe}-selector`]:{borderColor:ye}})}}},z=D=>{const{componentCls:F}=D;return{[`${F}-selection-search-input`]:{margin:0,padding:0,background:"transparent",border:"none",outline:"none",appearance:"none","&::-webkit-search-cancel-button":{display:"none","-webkit-appearance":"none"}}}},W=D=>{const{componentCls:F,inputPaddingHorizontalBase:U,iconCls:fe}=D;return{[F]:Object.assign(Object.assign({},(0,T.Wf)(D)),{position:"relative",display:"inline-block",cursor:"pointer",[`&:not(${F}-customize-input) ${F}-selector`]:Object.assign(Object.assign({},ae(D)),z(D)),[`${F}-selection-item`]:Object.assign({flex:1,fontWeight:"normal"},T.vS),[`${F}-selection-placeholder`]:Object.assign(Object.assign({},T.vS),{flex:1,color:D.colorTextPlaceholder,pointerEvents:"none"}),[`${F}-arrow`]:Object.assign(Object.assign({},(0,T.Ro)()),{position:"absolute",top:"50%",insetInlineStart:"auto",insetInlineEnd:U,height:D.fontSizeIcon,marginTop:-D.fontSizeIcon/2,color:D.colorTextQuaternary,fontSize:D.fontSizeIcon,lineHeight:1,textAlign:"center",pointerEvents:"none",display:"flex",alignItems:"center",[fe]:{verticalAlign:"top",transition:`transform ${D.motionDurationSlow}`,"> svg":{verticalAlign:"top"},[`&:not(${F}-suffix)`]:{pointerEvents:"auto"}},[`${F}-disabled &`]:{cursor:"not-allowed"},"> *:not(:last-child)":{marginInlineEnd:8}}),[`${F}-clear`]:{position:"absolute",top:"50%",insetInlineStart:"auto",insetInlineEnd:U,zIndex:1,display:"inline-block",width:D.fontSizeIcon,height:D.fontSizeIcon,marginTop:-D.fontSizeIcon/2,color:D.colorTextQuaternary,fontSize:D.fontSizeIcon,fontStyle:"normal",lineHeight:1,textAlign:"center",textTransform:"none",background:D.clearBg,cursor:"pointer",opacity:0,transition:`color ${D.motionDurationMid} ease, opacity ${D.motionDurationSlow} ease`,textRendering:"auto","&:before":{display:"block"},"&:hover":{color:D.colorTextTertiary}},"&:hover":{[`${F}-clear`]:{opacity:1}}}),[`${F}-has-feedback`]:{[`${F}-clear`]:{insetInlineEnd:U+D.fontSize+D.paddingXS}}}},re=D=>{const{componentCls:F}=D;return[{[F]:{[`&-borderless ${F}-selector`]:{backgroundColor:"transparent !important",borderColor:"transparent !important",boxShadow:"none !important"},[`&${F}-in-form-item`]:{width:"100%"}}},W(D),q(D),S(D),o(D),{[`${F}-rtl`]:{direction:"rtl"}},P(F,(0,ie.TS)(D,{borderHoverColor:D.colorPrimaryHover,outlineColor:D.controlOutline})),P(`${F}-status-error`,(0,ie.TS)(D,{borderHoverColor:D.colorErrorHover,outlineColor:D.colorErrorOutline}),!0),P(`${F}-status-warning`,(0,ie.TS)(D,{borderHoverColor:D.colorWarningHover,outlineColor:D.colorWarningOutline}),!0),(0,N.c)(D,{borderElCls:`${F}-selector`,focusElCls:`${F}-focused`})]};var b=(0,Re.Z)("Select",(D,F)=>{let{rootPrefixCls:U}=F;const fe=(0,ie.TS)(D,{rootPrefixCls:U,inputPaddingHorizontalBase:D.paddingSM-1,multipleSelectItemHeight:D.multipleItemHeight});return[re(fe)]},D=>{const{fontSize:F,lineHeight:U,controlHeight:fe,controlPaddingHorizontal:ye,zIndexPopupBase:Se,colorText:Ne,fontWeightStrong:Z,controlItemBgActive:B,controlItemBgHover:ne,colorBgContainer:X,colorFillSecondary:me,controlHeightLG:ee,controlHeightSM:g,colorBgContainerDisabled:w,colorTextDisabled:Q}=D;return{zIndexPopup:Se+50,optionSelectedColor:Ne,optionSelectedFontWeight:Z,optionSelectedBg:B,optionActiveBg:ne,optionPadding:`${(fe-F*U)/2}px ${ye}px`,optionFontSize:F,optionLineHeight:U,optionHeight:fe,selectorBg:X,clearBg:X,singleItemHeightLG:ee,multipleItemBg:me,multipleItemBorderColor:"transparent",multipleItemHeight:g,multipleItemHeightLG:fe,multipleSelectorBgDisabled:w,multipleItemColorDisabled:Q,multipleItemBorderColorDisabled:"transparent"}})},58582:function(Ht,et,_){"use strict";_.d(et,{Z:function(){return N}});const T=ie=>{const ve={overflow:{adjustX:!0,adjustY:!0,shiftY:!0},htmlRegion:ie==="scroll"?"scroll":"visible",_experimental:{dynamicInset:!0}};return{bottomLeft:Object.assign(Object.assign({},ve),{points:["tl","bl"],offset:[0,4]}),bottomRight:Object.assign(Object.assign({},ve),{points:["tr","br"],offset:[0,4]}),topLeft:Object.assign(Object.assign({},ve),{points:["bl","tl"],offset:[0,-4]}),topRight:Object.assign(Object.assign({},ve),{points:["br","tr"],offset:[0,-4]})}};function N(ie,Re){return ie||T(Re)}},84443:function(Ht,et,_){"use strict";_.d(et,{Z:function(){return T}});function T(N,ie){return ie!==void 0?ie:N!==null}},66339:function(Ht,et,_){"use strict";_.d(et,{Z:function(){return be}});var T=_(40001),N=_(19248),ie=_(99267),Re=_(84105),ve=_(58617),le=_(47472),Te=_(59301);function be(o){let{suffixIcon:L,clearIcon:$,menuItemSelectedIcon:v,removeIcon:c,loading:S,multiple:y,hasFeedback:q,prefixCls:ae,showSuffixIcon:P,feedbackIcon:z,showArrow:W,componentName:re}=o;const b=$!=null?$:Te.createElement(N.Z,null),D=ye=>L===null&&!q&&!W?null:Te.createElement(Te.Fragment,null,P!==!1&&ye,q&&z);let F=null;if(L!==void 0)F=D(L);else if(S)F=D(Te.createElement(ve.Z,{spin:!0}));else{const ye=`${ae}-suffix`;F=Se=>{let{open:Ne,showSearch:Z}=Se;return D(Ne&&Z?Te.createElement(le.Z,{className:ye}):Te.createElement(Re.Z,{className:ye}))}}let U=null;v!==void 0?U=v:y?U=Te.createElement(T.Z,null):U=null;let fe=null;return c!==void 0?fe=c:fe=Te.createElement(ie.Z,null),{clearIcon:b,suffixIcon:F,itemIcon:U,removeIcon:fe}}},61621:function(Ht,et,_){"use strict";_.d(et,{Z:function(){return _e}});var T=_(92310),N=_.n(T),ie=_(59301),Re=_(36355),ve=_(2738),Te=M=>{const{prefixCls:ce,className:xe,style:O,size:C,shape:k}=M,he=N()({[`${ce}-lg`]:C==="large",[`${ce}-sm`]:C==="small"}),de=N()({[`${ce}-circle`]:k==="circle",[`${ce}-square`]:k==="square",[`${ce}-round`]:k==="round"}),K=ie.useMemo(()=>typeof C=="number"?{width:C,height:C,lineHeight:`${C}px`}:{},[C]);return ie.createElement("span",{className:N()(ce,he,de,xe),style:Object.assign(Object.assign({},K),O)})},be=_(93083),o=_(83116),L=_(37613);const $=new be.Keyframes("ant-skeleton-loading",{"0%":{backgroundPosition:"100% 50%"},"100%":{backgroundPosition:"0 50%"}}),v=M=>({height:M,lineHeight:`${M}px`}),c=M=>Object.assign({width:M},v(M)),S=M=>({background:M.skeletonLoadingBackground,backgroundSize:"400% 100%",animationName:$,animationDuration:M.skeletonLoadingMotionDuration,animationTimingFunction:"ease",animationIterationCount:"infinite"}),y=M=>Object.assign({width:M*5,minWidth:M*5},v(M)),q=M=>{const{skeletonAvatarCls:ce,gradientFromColor:xe,controlHeight:O,controlHeightLG:C,controlHeightSM:k}=M;return{[`${ce}`]:Object.assign({display:"inline-block",verticalAlign:"top",background:xe},c(O)),[`${ce}${ce}-circle`]:{borderRadius:"50%"},[`${ce}${ce}-lg`]:Object.assign({},c(C)),[`${ce}${ce}-sm`]:Object.assign({},c(k))}},ae=M=>{const{controlHeight:ce,borderRadiusSM:xe,skeletonInputCls:O,controlHeightLG:C,controlHeightSM:k,gradientFromColor:he}=M;return{[`${O}`]:Object.assign({display:"inline-block",verticalAlign:"top",background:he,borderRadius:xe},y(ce)),[`${O}-lg`]:Object.assign({},y(C)),[`${O}-sm`]:Object.assign({},y(k))}},P=M=>Object.assign({width:M},v(M)),z=M=>{const{skeletonImageCls:ce,imageSizeBase:xe,gradientFromColor:O,borderRadiusSM:C}=M;return{[`${ce}`]:Object.assign(Object.assign({display:"flex",alignItems:"center",justifyContent:"center",verticalAlign:"top",background:O,borderRadius:C},P(xe*2)),{[`${ce}-path`]:{fill:"#bfbfbf"},[`${ce}-svg`]:Object.assign(Object.assign({},P(xe)),{maxWidth:xe*4,maxHeight:xe*4}),[`${ce}-svg${ce}-svg-circle`]:{borderRadius:"50%"}}),[`${ce}${ce}-circle`]:{borderRadius:"50%"}}},W=(M,ce,xe)=>{const{skeletonButtonCls:O}=M;return{[`${xe}${O}-circle`]:{width:ce,minWidth:ce,borderRadius:"50%"},[`${xe}${O}-round`]:{borderRadius:ce}}},re=M=>Object.assign({width:M*2,minWidth:M*2},v(M)),b=M=>{const{borderRadiusSM:ce,skeletonButtonCls:xe,controlHeight:O,controlHeightLG:C,controlHeightSM:k,gradientFromColor:he}=M;return Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({[`${xe}`]:Object.assign({display:"inline-block",verticalAlign:"top",background:he,borderRadius:ce,width:O*2,minWidth:O*2},re(O))},W(M,O,xe)),{[`${xe}-lg`]:Object.assign({},re(C))}),W(M,C,`${xe}-lg`)),{[`${xe}-sm`]:Object.assign({},re(k))}),W(M,k,`${xe}-sm`))},D=M=>{const{componentCls:ce,skeletonAvatarCls:xe,skeletonTitleCls:O,skeletonParagraphCls:C,skeletonButtonCls:k,skeletonInputCls:he,skeletonImageCls:de,controlHeight:K,controlHeightLG:Ie,controlHeightSM:$e,gradientFromColor:Me,padding:Be,marginSM:Ye,borderRadius:Qe,titleHeight:Je,blockRadius:dt,paragraphLiHeight:At,controlHeightXS:gt,paragraphMarginTop:Rt}=M;return{[`${ce}`]:{display:"table",width:"100%",[`${ce}-header`]:{display:"table-cell",paddingInlineEnd:Be,verticalAlign:"top",[`${xe}`]:Object.assign({display:"inline-block",verticalAlign:"top",background:Me},c(K)),[`${xe}-circle`]:{borderRadius:"50%"},[`${xe}-lg`]:Object.assign({},c(Ie)),[`${xe}-sm`]:Object.assign({},c($e))},[`${ce}-content`]:{display:"table-cell",width:"100%",verticalAlign:"top",[`${O}`]:{width:"100%",height:Je,background:Me,borderRadius:dt,[`+ ${C}`]:{marginBlockStart:$e}},[`${C}`]:{padding:0,"> li":{width:"100%",height:At,listStyle:"none",background:Me,borderRadius:dt,"+ li":{marginBlockStart:gt}}},[`${C}> li:last-child:not(:first-child):not(:nth-child(2))`]:{width:"61%"}},[`&-round ${ce}-content`]:{[`${O}, ${C} > li`]:{borderRadius:Qe}}},[`${ce}-with-avatar ${ce}-content`]:{[`${O}`]:{marginBlockStart:Ye,[`+ ${C}`]:{marginBlockStart:Rt}}},[`${ce}${ce}-element`]:Object.assign(Object.assign(Object.assign(Object.assign({display:"inline-block",width:"auto"},b(M)),q(M)),ae(M)),z(M)),[`${ce}${ce}-block`]:{width:"100%",[`${k}`]:{width:"100%"},[`${he}`]:{width:"100%"}},[`${ce}${ce}-active`]:{[`
${O},
${C} > li,
${xe},
${k},
${he},
${de}
`]:Object.assign({},S(M))}}};var F=(0,o.Z)("Skeleton",M=>{const{componentCls:ce}=M,xe=(0,L.TS)(M,{skeletonAvatarCls:`${ce}-avatar`,skeletonTitleCls:`${ce}-title`,skeletonParagraphCls:`${ce}-paragraph`,skeletonButtonCls:`${ce}-button`,skeletonInputCls:`${ce}-input`,skeletonImageCls:`${ce}-image`,imageSizeBase:M.controlHeight*1.5,borderRadius:100,skeletonLoadingBackground:`linear-gradient(90deg, ${M.gradientFromColor} 25%, ${M.gradientToColor} 37%, ${M.gradientFromColor} 63%)`,skeletonLoadingMotionDuration:"1.4s"});return[D(xe)]},M=>{const{colorFillContent:ce,colorFill:xe}=M,O=ce,C=xe;return{color:O,colorGradientEnd:C,gradientFromColor:O,gradientToColor:C,titleHeight:M.controlHeight/2,blockRadius:M.borderRadiusSM,paragraphMarginTop:M.marginLG+M.marginXXS,paragraphLiHeight:M.controlHeight/2}},{deprecatedTokens:[["color","gradientFromColor"],["colorGradientEnd","gradientToColor"]]}),fe=M=>{const{prefixCls:ce,className:xe,rootClassName:O,active:C,shape:k="circle",size:he="default"}=M,{getPrefixCls:de}=ie.useContext(Re.E_),K=de("skeleton",ce),[Ie,$e]=F(K),Me=(0,ve.Z)(M,["prefixCls","className"]),Be=N()(K,`${K}-element`,{[`${K}-active`]:C},xe,O,$e);return Ie(ie.createElement("div",{className:Be},ie.createElement(Te,Object.assign({prefixCls:`${K}-avatar`,shape:k,size:he},Me))))},Se=M=>{const{prefixCls:ce,className:xe,rootClassName:O,active:C,block:k=!1,size:he="default"}=M,{getPrefixCls:de}=ie.useContext(Re.E_),K=de("skeleton",ce),[Ie,$e]=F(K),Me=(0,ve.Z)(M,["prefixCls"]),Be=N()(K,`${K}-element`,{[`${K}-active`]:C,[`${K}-block`]:k},xe,O,$e);return Ie(ie.createElement("div",{className:Be},ie.createElement(Te,Object.assign({prefixCls:`${K}-button`,size:he},Me))))};const Ne="M365.714286 329.142857q0 45.714286-32.036571 77.677714t-77.677714 32.036571-77.677714-32.036571-32.036571-77.677714 32.036571-77.677714 77.677714-32.036571 77.677714 32.036571 32.036571 77.677714zM950.857143 548.571429l0 256-804.571429 0 0-109.714286 182.857143-182.857143 91.428571 91.428571 292.571429-292.571429zM1005.714286 146.285714l-914.285714 0q-7.460571 0-12.873143 5.412571t-5.412571 12.873143l0 694.857143q0 7.460571 5.412571 12.873143t12.873143 5.412571l914.285714 0q7.460571 0 12.873143-5.412571t5.412571-12.873143l0-694.857143q0-7.460571-5.412571-12.873143t-12.873143-5.412571zM1097.142857 164.571429l0 694.857143q0 37.741714-26.843429 64.585143t-64.585143 26.843429l-914.285714 0q-37.741714 0-64.585143-26.843429t-26.843429-64.585143l0-694.857143q0-37.741714 26.843429-64.585143t64.585143-26.843429l914.285714 0q37.741714 0 64.585143 26.843429t26.843429 64.585143z";var B=M=>{const{prefixCls:ce,className:xe,rootClassName:O,style:C,active:k}=M,{getPrefixCls:he}=ie.useContext(Re.E_),de=he("skeleton",ce),[K,Ie]=F(de),$e=N()(de,`${de}-element`,{[`${de}-active`]:k},xe,O,Ie);return K(ie.createElement("div",{className:$e},ie.createElement("div",{className:N()(`${de}-image`,xe),style:C},ie.createElement("svg",{viewBox:"0 0 1098 1024",xmlns:"http://www.w3.org/2000/svg",className:`${de}-image-svg`},ie.createElement("path",{d:Ne,className:`${de}-image-path`})))))},X=M=>{const{prefixCls:ce,className:xe,rootClassName:O,active:C,block:k,size:he="default"}=M,{getPrefixCls:de}=ie.useContext(Re.E_),K=de("skeleton",ce),[Ie,$e]=F(K),Me=(0,ve.Z)(M,["prefixCls"]),Be=N()(K,`${K}-element`,{[`${K}-active`]:C,[`${K}-block`]:k},xe,O,$e);return Ie(ie.createElement("div",{className:Be},ie.createElement(Te,Object.assign({prefixCls:`${K}-input`,size:he},Me))))},me=_(96663),ee={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M888 792H200V168c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v688c0 4.4 3.6 8 8 8h752c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zM288 604a64 64 0 10128 0 64 64 0 10-128 0zm118-224a48 48 0 1096 0 48 48 0 10-96 0zm158 228a96 96 0 10192 0 96 96 0 10-192 0zm148-314a56 56 0 10112 0 56 56 0 10-112 0z"}}]},name:"dot-chart",theme:"outlined"},g=ee,w=_(7657),Q=function(ce,xe){return ie.createElement(w.Z,(0,me.Z)({},ce,{ref:xe,icon:g}))},J=ie.forwardRef(Q),Pe=J,Xe=M=>{const{prefixCls:ce,className:xe,rootClassName:O,style:C,active:k,children:he}=M,{getPrefixCls:de}=ie.useContext(Re.E_),K=de("skeleton",ce),[Ie,$e]=F(K),Me=N()(K,`${K}-element`,{[`${K}-active`]:k},$e,xe,O),Be=he!=null?he:ie.createElement(Pe,null);return Ie(ie.createElement("div",{className:Me},ie.createElement("div",{className:N()(`${K}-image`,xe),style:C},Be)))},Ze=_(19127),at=M=>{const ce=de=>{const{width:K,rows:Ie=2}=M;if(Array.isArray(K))return K[de];if(Ie-1===de)return K},{prefixCls:xe,className:O,style:C,rows:k}=M,he=(0,Ze.Z)(Array(k)).map((de,K)=>ie.createElement("li",{key:K,style:{width:ce(K)}}));return ie.createElement("ul",{className:N()(xe,O),style:C},he)},Ot=M=>{let{prefixCls:ce,className:xe,width:O,style:C}=M;return ie.createElement("h3",{className:N()(ce,xe),style:Object.assign({width:O},C)})};function Ut(M){return M&&typeof M=="object"?M:{}}function un(M,ce){return M&&!ce?{size:"large",shape:"square"}:{size:"large",shape:"circle"}}function Ft(M,ce){return!M&&ce?{width:"38%"}:M&&ce?{width:"50%"}:{}}function nt(M,ce){const xe={};return(!M||!ce)&&(xe.width="61%"),!M&&ce?xe.rows=3:xe.rows=2,xe}const Et=M=>{const{prefixCls:ce,loading:xe,className:O,rootClassName:C,style:k,children:he,avatar:de=!1,title:K=!0,paragraph:Ie=!0,active:$e,round:Me}=M,{getPrefixCls:Be,direction:Ye,skeleton:Qe}=ie.useContext(Re.E_),Je=Be("skeleton",ce),[dt,At]=F(Je);if(xe||!("loading"in M)){const gt=!!de,Rt=!!K,Ct=!!Ie;let x;if(gt){const Y=Object.assign(Object.assign({prefixCls:`${Je}-avatar`},un(Rt,Ct)),Ut(de));x=ie.createElement("div",{className:`${Je}-header`},ie.createElement(Te,Object.assign({},Y)))}let A;if(Rt||Ct){let Y;if(Rt){const vn=Object.assign(Object.assign({prefixCls:`${Je}-title`},Ft(gt,Ct)),Ut(K));Y=ie.createElement(Ot,Object.assign({},vn))}let Ce;if(Ct){const vn=Object.assign(Object.assign({prefixCls:`${Je}-paragraph`},nt(gt,Rt)),Ut(Ie));Ce=ie.createElement(at,Object.assign({},vn))}A=ie.createElement("div",{className:`${Je}-content`},Y,Ce)}const rt=N()(Je,{[`${Je}-with-avatar`]:gt,[`${Je}-active`]:$e,[`${Je}-rtl`]:Ye==="rtl",[`${Je}-round`]:Me},Qe==null?void 0:Qe.className,O,C,At);return dt(ie.createElement("div",{className:rt,style:Object.assign(Object.assign({},Qe==null?void 0:Qe.style),k)},x,A))}return typeof he!="undefined"?he:null};Et.Button=Se,Et.Avatar=fe,Et.Input=X,Et.Image=B,Et.Node=Xe;var oe=Et,_e=oe},81327:function(Ht,et,_){"use strict";_.d(et,{Z:function(){return ae}});var T=_(59301),N=_(92310),ie=_.n(N),Re=_(11592),ve=_(36355),le=_(33234);const Te=T.createContext({latestIndex:0}),be=Te.Provider;var L=P=>{let{className:z,index:W,children:re,split:b,style:D}=P;const{latestIndex:F}=T.useContext(Te);return re==null?null:T.createElement(T.Fragment,null,T.createElement("div",{className:z,style:D},re),W<F&&b&&T.createElement("span",{className:`${z}-split`},b))},$=_(2856);function v(P){return["small","middle","large"].includes(P)}function c(P){return P?typeof P=="number"&&!Number.isNaN(P):!1}var S=function(P,z){var W={};for(var re in P)Object.prototype.hasOwnProperty.call(P,re)&&z.indexOf(re)<0&&(W[re]=P[re]);if(P!=null&&typeof Object.getOwnPropertySymbols=="function")for(var b=0,re=Object.getOwnPropertySymbols(P);b<re.length;b++)z.indexOf(re[b])<0&&Object.prototype.propertyIsEnumerable.call(P,re[b])&&(W[re[b]]=P[re[b]]);return W};const q=T.forwardRef((P,z)=>{var W,re;const{getPrefixCls:b,space:D,direction:F}=T.useContext(ve.E_),{size:U=(D==null?void 0:D.size)||"small",align:fe,className:ye,rootClassName:Se,children:Ne,direction:Z="horizontal",prefixCls:B,split:ne,style:X,wrap:me=!1,classNames:ee,styles:g}=P,w=S(P,["size","align","className","rootClassName","children","direction","prefixCls","split","style","wrap","classNames","styles"]),[Q,J]=Array.isArray(U)?U:[U,U],Pe=v(J),Ue=v(Q),Xe=c(J),Ze=c(Q),lt=(0,Re.Z)(Ne,{keepEmpty:!0}),at=fe===void 0&&Z==="horizontal"?"center":fe,ct=b("space",B),[Ot,Ut]=(0,$.Z)(ct),un=ie()(ct,D==null?void 0:D.className,Ut,`${ct}-${Z}`,{[`${ct}-rtl`]:F==="rtl",[`${ct}-align-${at}`]:at,[`${ct}-gap-row-${J}`]:Pe,[`${ct}-gap-col-${Q}`]:Ue},ye,Se),Ft=ie()(`${ct}-item`,(W=ee==null?void 0:ee.item)!==null&&W!==void 0?W:(re=D==null?void 0:D.classNames)===null||re===void 0?void 0:re.item);let nt=0;const Et=lt.map((M,ce)=>{var xe,O;M!=null&&(nt=ce);const C=M&&M.key||`${Ft}-${ce}`;return T.createElement(L,{className:Ft,key:C,index:ce,split:ne,style:(xe=g==null?void 0:g.item)!==null&&xe!==void 0?xe:(O=D==null?void 0:D.styles)===null||O===void 0?void 0:O.item},M)}),oe=T.useMemo(()=>({latestIndex:nt}),[nt]);if(lt.length===0)return null;const _e={};return me&&(_e.flexWrap="wrap"),!Ue&&Ze&&(_e.columnGap=Q),!Pe&&Xe&&(_e.rowGap=J),Ot(T.createElement("div",Object.assign({ref:z,className:un,style:Object.assign(Object.assign(Object.assign({},_e),D==null?void 0:D.style),X)},w),T.createElement(be,{value:oe},Et)))});q.Compact=le.ZP;var ae=q},31797:function(Ht,et,_){"use strict";_.d(et,{default:function(){return F}});var T=_(59301),N=_(56762),ie=_(92343),Re=_(92310),ve=_.n(Re),le=_(36355),Te=_(61621),o=U=>{const{value:fe,formatter:ye,precision:Se,decimalSeparator:Ne,groupSeparator:Z="",prefixCls:B}=U;let ne;if(typeof ye=="function")ne=ye(fe);else{const X=String(fe),me=X.match(/^(-?)(\d*)(\.(\d+))?$/);if(!me||X==="-")ne=X;else{const ee=me[1];let g=me[2]||"0",w=me[4]||"";g=g.replace(/\B(?=(\d{3})+(?!\d))/g,Z),typeof Se=="number"&&(w=w.padEnd(Se,"0").slice(0,Se>0?Se:0)),w&&(w=`${Ne}${w}`),ne=[T.createElement("span",{key:"int",className:`${B}-content-value-int`},ee,g),w&&T.createElement("span",{key:"decimal",className:`${B}-content-value-decimal`},w)]}}return T.createElement("span",{className:`${B}-content-value`},ne)},L=_(17313),$=_(83116),v=_(37613);const c=U=>{const{componentCls:fe,marginXXS:ye,padding:Se,colorTextDescription:Ne,titleFontSize:Z,colorTextHeading:B,contentFontSize:ne,fontFamily:X}=U;return{[`${fe}`]:Object.assign(Object.assign({},(0,L.Wf)(U)),{[`${fe}-title`]:{marginBottom:ye,color:Ne,fontSize:Z},[`${fe}-skeleton`]:{paddingTop:Se},[`${fe}-content`]:{color:B,fontSize:ne,fontFamily:X,[`${fe}-content-value`]:{display:"inline-block",direction:"ltr"},[`${fe}-content-prefix, ${fe}-content-suffix`]:{display:"inline-block"},[`${fe}-content-prefix`]:{marginInlineEnd:ye},[`${fe}-content-suffix`]:{marginInlineStart:ye}}})}};var S=(0,$.Z)("Statistic",U=>{const fe=(0,v.TS)(U,{});return[c(fe)]},U=>{const{fontSizeHeading3:fe,fontSize:ye}=U;return{titleFontSize:ye,contentFontSize:fe}}),q=U=>{const{prefixCls:fe,className:ye,rootClassName:Se,style:Ne,valueStyle:Z,value:B=0,title:ne,valueRender:X,prefix:me,suffix:ee,loading:g=!1,onMouseEnter:w,onMouseLeave:Q,decimalSeparator:J=".",groupSeparator:Pe=","}=U,{getPrefixCls:Ue,direction:Xe,statistic:Ze}=T.useContext(le.E_),lt=Ue("statistic",fe),[at,ct]=S(lt),Ot=T.createElement(o,Object.assign({decimalSeparator:J,groupSeparator:Pe,prefixCls:lt},U,{value:B})),Ut=ve()(lt,{[`${lt}-rtl`]:Xe==="rtl"},Ze==null?void 0:Ze.className,ye,Se,ct);return at(T.createElement("div",{className:Ut,style:Object.assign(Object.assign({},Ze==null?void 0:Ze.style),Ne),onMouseEnter:w,onMouseLeave:Q},ne&&T.createElement("div",{className:`${lt}-title`},ne),T.createElement(Te.Z,{paragraph:!1,loading:g,className:`${lt}-skeleton`},T.createElement("div",{style:Z,className:`${lt}-content`},me&&T.createElement("span",{className:`${lt}-content-prefix`},me),X?X(Ot):Ot,ee&&T.createElement("span",{className:`${lt}-content-suffix`},ee)))))};const ae=[["Y",1e3*60*60*24*365],["M",1e3*60*60*24*30],["D",1e3*60*60*24],["H",1e3*60*60],["m",1e3*60],["s",1e3],["S",1]];function P(U,fe){let ye=U;const Se=/\[[^\]]*]/g,Ne=(fe.match(Se)||[]).map(X=>X.slice(1,-1)),Z=fe.replace(Se,"[]"),B=ae.reduce((X,me)=>{let[ee,g]=me;if(X.includes(ee)){const w=Math.floor(ye/g);return ye-=w*g,X.replace(new RegExp(`${ee}+`,"g"),Q=>{const J=Q.length;return w.toString().padStart(J,"0")})}return X},Z);let ne=0;return B.replace(Se,()=>{const X=Ne[ne];return ne+=1,X})}function z(U,fe){const{format:ye=""}=fe,Se=new Date(U).getTime(),Ne=Date.now(),Z=Math.max(Se-Ne,0);return P(Z,ye)}const W=1e3/30;function re(U){return new Date(U).getTime()}const b=U=>{const{value:fe,format:ye="HH:mm:ss",onChange:Se,onFinish:Ne}=U,Z=(0,N.Z)(),B=T.useRef(null),ne=()=>{Ne==null||Ne(),B.current&&(clearInterval(B.current),B.current=null)},X=()=>{const g=re(fe);g>=Date.now()&&(B.current=setInterval(()=>{Z(),Se==null||Se(g-Date.now()),g<Date.now()&&ne()},W))};T.useEffect(()=>(X(),()=>{B.current&&(clearInterval(B.current),B.current=null)}),[fe]);const me=(g,w)=>z(g,Object.assign(Object.assign({},w),{format:ye})),ee=g=>(0,ie.Tm)(g,{title:void 0});return T.createElement(q,Object.assign({},U,{valueRender:ee,formatter:me}))};var D=T.memo(b);q.Countdown=D;var F=q},8378:function(Ht,et){"use strict";const _=T=>({[T.componentCls]:{[`${T.antCls}-motion-collapse-legacy`]:{overflow:"hidden","&-active":{transition:`height ${T.motionDurationMid} ${T.motionEaseInOut},
opacity ${T.motionDurationMid} ${T.motionEaseInOut} !important`}},[`${T.antCls}-motion-collapse`]:{overflow:"hidden",transition:`height ${T.motionDurationMid} ${T.motionEaseInOut},
opacity ${T.motionDurationMid} ${T.motionEaseInOut} !important`}}});et.Z=_},92899:function(Ht,et,_){"use strict";_.d(et,{Fm:function(){return v}});var T=_(93083),N=_(95406);const ie=new T.Keyframes("antMoveDownIn",{"0%":{transform:"translate3d(0, 100%, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),Re=new T.Keyframes("antMoveDownOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(0, 100%, 0)",transformOrigin:"0 0",opacity:0}}),ve=new T.Keyframes("antMoveLeftIn",{"0%":{transform:"translate3d(-100%, 0, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),le=new T.Keyframes("antMoveLeftOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(-100%, 0, 0)",transformOrigin:"0 0",opacity:0}}),Te=new T.Keyframes("antMoveRightIn",{"0%":{transform:"translate3d(100%, 0, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),be=new T.Keyframes("antMoveRightOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(100%, 0, 0)",transformOrigin:"0 0",opacity:0}}),o=new T.Keyframes("antMoveUpIn",{"0%":{transform:"translate3d(0, -100%, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),L=new T.Keyframes("antMoveUpOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(0, -100%, 0)",transformOrigin:"0 0",opacity:0}}),$={"move-up":{inKeyframes:o,outKeyframes:L},"move-down":{inKeyframes:ie,outKeyframes:Re},"move-left":{inKeyframes:ve,outKeyframes:le},"move-right":{inKeyframes:Te,outKeyframes:be}},v=(c,S)=>{const{antCls:y}=c,q=`${y}-${S}`,{inKeyframes:ae,outKeyframes:P}=$[S];return[(0,N.R)(q,ae,P,c.motionDurationMid),{[`
${q}-enter,
${q}-appear
`]:{opacity:0,animationTimingFunction:c.motionEaseOutCirc},[`${q}-leave`]:{animationTimingFunction:c.motionEaseInOutCirc}}]}},13826:function(Ht,et,_){"use strict";_.d(et,{Qt:function(){return ve},Uw:function(){return Re},fJ:function(){return ie},ly:function(){return le},oN:function(){return v}});var T=_(93083),N=_(95406);const ie=new T.Keyframes("antSlideUpIn",{"0%":{transform:"scaleY(0.8)",transformOrigin:"0% 0%",opacity:0},"100%":{transform:"scaleY(1)",transformOrigin:"0% 0%",opacity:1}}),Re=new T.Keyframes("antSlideUpOut",{"0%":{transform:"scaleY(1)",transformOrigin:"0% 0%",opacity:1},"100%":{transform:"scaleY(0.8)",transformOrigin:"0% 0%",opacity:0}}),ve=new T.Keyframes("antSlideDownIn",{"0%":{transform:"scaleY(0.8)",transformOrigin:"100% 100%",opacity:0},"100%":{transform:"scaleY(1)",transformOrigin:"100% 100%",opacity:1}}),le=new T.Keyframes("antSlideDownOut",{"0%":{transform:"scaleY(1)",transformOrigin:"100% 100%",opacity:1},"100%":{transform:"scaleY(0.8)",transformOrigin:"100% 100%",opacity:0}}),Te=new T.Keyframes("antSlideLeftIn",{"0%":{transform:"scaleX(0.8)",transformOrigin:"0% 0%",opacity:0},"100%":{transform:"scaleX(1)",transformOrigin:"0% 0%",opacity:1}}),be=new T.Keyframes("antSlideLeftOut",{"0%":{transform:"scaleX(1)",transformOrigin:"0% 0%",opacity:1},"100%":{transform:"scaleX(0.8)",transformOrigin:"0% 0%",opacity:0}}),o=new T.Keyframes("antSlideRightIn",{"0%":{transform:"scaleX(0.8)",transformOrigin:"100% 0%",opacity:0},"100%":{transform:"scaleX(1)",transformOrigin:"100% 0%",opacity:1}}),L=new T.Keyframes("antSlideRightOut",{"0%":{transform:"scaleX(1)",transformOrigin:"100% 0%",opacity:1},"100%":{transform:"scaleX(0.8)",transformOrigin:"100% 0%",opacity:0}}),$={"slide-up":{inKeyframes:ie,outKeyframes:Re},"slide-down":{inKeyframes:ve,outKeyframes:le},"slide-left":{inKeyframes:Te,outKeyframes:be},"slide-right":{inKeyframes:o,outKeyframes:L}},v=(c,S)=>{const{antCls:y}=c,q=`${y}-${S}`,{inKeyframes:ae,outKeyframes:P}=$[S];return[(0,N.R)(q,ae,P,c.motionDurationMid),{[`
${q}-enter,
${q}-appear
`]:{transform:"scale(0)",transformOrigin:"0% 0%",opacity:0,animationTimingFunction:c.motionEaseOutQuint,"&-prepare":{transform:"scale(1)"}},[`${q}-leave`]:{animationTimingFunction:c.motionEaseInQuint}}]}},19447:function(Ht,et,_){"use strict";_.d(et,{ZP:function(){return ve},fS:function(){return ie},qN:function(){return N}});var T=_(47585);const N=8;function ie(le){const Te=N,{contentRadius:be,limitVerticalRadius:o}=le,L=be>12?be+2:12;return{dropdownArrowOffset:L,dropdownArrowOffsetVertical:o?Te:L}}function Re(le,Te){return le?Te:{}}function ve(le,Te){const{componentCls:be,sizePopupArrow:o,borderRadiusXS:L,borderRadiusOuter:$,boxShadowPopoverArrow:v}=le,{colorBg:c,contentRadius:S=le.borderRadiusLG,limitVerticalRadius:y,arrowDistance:q=0,arrowPlacement:ae={left:!0,right:!0,top:!0,bottom:!0}}=Te,{dropdownArrowOffsetVertical:P,dropdownArrowOffset:z}=ie({contentRadius:S,limitVerticalRadius:y});return{[be]:Object.assign(Object.assign(Object.assign(Object.assign({[`${be}-arrow`]:[Object.assign(Object.assign({position:"absolute",zIndex:1,display:"block"},(0,T.r)(o,L,$,c,v)),{"&:before":{background:c}})]},Re(!!ae.top,{[[`&-placement-top ${be}-arrow`,`&-placement-topLeft ${be}-arrow`,`&-placement-topRight ${be}-arrow`].join(",")]:{bottom:q,transform:"translateY(100%) rotate(180deg)"},[`&-placement-top ${be}-arrow`]:{left:{_skip_check_:!0,value:"50%"},transform:"translateX(-50%) translateY(100%) rotate(180deg)"},[`&-placement-topLeft ${be}-arrow`]:{left:{_skip_check_:!0,value:z}},[`&-placement-topRight ${be}-arrow`]:{right:{_skip_check_:!0,value:z}}})),Re(!!ae.bottom,{[[`&-placement-bottom ${be}-arrow`,`&-placement-bottomLeft ${be}-arrow`,`&-placement-bottomRight ${be}-arrow`].join(",")]:{top:q,transform:"translateY(-100%)"},[`&-placement-bottom ${be}-arrow`]:{left:{_skip_check_:!0,value:"50%"},transform:"translateX(-50%) translateY(-100%)"},[`&-placement-bottomLeft ${be}-arrow`]:{left:{_skip_check_:!0,value:z}},[`&-placement-bottomRight ${be}-arrow`]:{right:{_skip_check_:!0,value:z}}})),Re(!!ae.left,{[[`&-placement-left ${be}-arrow`,`&-placement-leftTop ${be}-arrow`,`&-placement-leftBottom ${be}-arrow`].join(",")]:{right:{_skip_check_:!0,value:q},transform:"translateX(100%) rotate(90deg)"},[`&-placement-left ${be}-arrow`]:{top:{_skip_check_:!0,value:"50%"},transform:"translateY(-50%) translateX(100%) rotate(90deg)"},[`&-placement-leftTop ${be}-arrow`]:{top:P},[`&-placement-leftBottom ${be}-arrow`]:{bottom:P}})),Re(!!ae.right,{[[`&-placement-right ${be}-arrow`,`&-placement-rightTop ${be}-arrow`,`&-placement-rightBottom ${be}-arrow`].join(",")]:{left:{_skip_check_:!0,value:q},transform:"translateX(-100%) rotate(-90deg)"},[`&-placement-right ${be}-arrow`]:{top:{_skip_check_:!0,value:"50%"},transform:"translateY(-50%) translateX(-100%) rotate(-90deg)"},[`&-placement-rightTop ${be}-arrow`]:{top:P},[`&-placement-rightBottom ${be}-arrow`]:{bottom:P}}))}}},47585:function(Ht,et,_){"use strict";_.d(et,{r:function(){return T}});const T=(N,ie,Re,ve,le)=>{const Te=N/2,be=0,o=Te,L=Re*1/Math.sqrt(2),$=Te-Re*(1-1/Math.sqrt(2)),v=Te-ie*(1/Math.sqrt(2)),c=Re*(Math.sqrt(2)-1)+ie*(1/Math.sqrt(2)),S=2*Te-v,y=c,q=2*Te-L,ae=$,P=2*Te-be,z=o,W=Te*Math.sqrt(2)+Re*(Math.sqrt(2)-2),re=Re*(Math.sqrt(2)-1);return{pointerEvents:"none",width:N,height:N,overflow:"hidden","&::before":{position:"absolute",bottom:0,insetInlineStart:0,width:N,height:N/2,background:ve,clipPath:{_multi_value_:!0,value:[`polygon(${re}px 100%, 50% ${re}px, ${2*Te-re}px 100%, ${re}px 100%)`,`path('M ${be} ${o} A ${Re} ${Re} 0 0 0 ${L} ${$} L ${v} ${c} A ${ie} ${ie} 0 0 1 ${S} ${y} L ${q} ${ae} A ${Re} ${Re} 0 0 0 ${P} ${z} Z')`]},content:'""'},"&::after":{content:'""',position:"absolute",width:W,height:W,bottom:0,insetInline:0,margin:"auto",borderRadius:{_skip_check_:!0,value:`0 0 ${ie}px 0`},transform:"translateY(50%) rotate(-135deg)",boxShadow:le,zIndex:0,background:"transparent"}}}},33166:function(Ht,et,_){"use strict";_.d(et,{i:function(){return T}});const T=["blue","purple","cyan","green","magenta","pink","red","orange","yellow","volcano","geekblue","lime","gold"]},45157:function(Ht,et,_){"use strict";_.d(et,{Z:function(){return N}});var T=_(33166);function N(ie,Re){return T.i.reduce((ve,le)=>{const Te=ie[`${le}1`],be=ie[`${le}3`],o=ie[`${le}6`],L=ie[`${le}7`];return Object.assign(Object.assign({},ve),Re(le,{lightColor:Te,lightBorderColor:be,darkColor:o,textColor:L}))},{})}},6848:function(Ht,et,_){"use strict";_.d(et,{Z:function(){return Se}});var T=_(59301),N=_(92310),ie=_.n(N),Re=_(55477),ve=_(18929),le=_(62892),Te=_(79676),be=_(92343),o=_(36355),L=_(33234),$=_(88088),v=_(17313),c=_(29878),S=_(19447),y=_(45157),q=_(37613),ae=_(83116);const P=Ne=>{const{componentCls:Z,tooltipMaxWidth:B,tooltipColor:ne,tooltipBg:X,tooltipBorderRadius:me,zIndexPopup:ee,controlHeight:g,boxShadowSecondary:w,paddingSM:Q,paddingXS:J,tooltipRadiusOuter:Pe}=Ne;return[{[Z]:Object.assign(Object.assign(Object.assign(Object.assign({},(0,v.Wf)(Ne)),{position:"absolute",zIndex:ee,display:"block",width:"max-content",maxWidth:B,visibility:"visible",transformOrigin:"var(--arrow-x, 50%) var(--arrow-y, 50%)","&-hidden":{display:"none"},"--antd-arrow-background-color":X,[`${Z}-inner`]:{minWidth:g,minHeight:g,padding:`${Q/2}px ${J}px`,color:ne,textAlign:"start",textDecoration:"none",wordWrap:"break-word",backgroundColor:X,borderRadius:me,boxShadow:w,boxSizing:"border-box"},[["&-placement-left","&-placement-leftTop","&-placement-leftBottom","&-placement-right","&-placement-rightTop","&-placement-rightBottom"].join(",")]:{[`${Z}-inner`]:{borderRadius:Math.min(me,S.qN)}},[`${Z}-content`]:{position:"relative"}}),(0,y.Z)(Ne,(Ue,Xe)=>{let{darkColor:Ze}=Xe;return{[`&${Z}-${Ue}`]:{[`${Z}-inner`]:{backgroundColor:Ze},[`${Z}-arrow`]:{"--antd-arrow-background-color":Ze}}}})),{"&-rtl":{direction:"rtl"}})},(0,S.ZP)((0,q.TS)(Ne,{borderRadiusOuter:Pe}),{colorBg:"var(--antd-arrow-background-color)",contentRadius:me,limitVerticalRadius:!0}),{[`${Z}-pure`]:{position:"relative",maxWidth:"none",margin:Ne.sizePopupArrow}}]};var z=(Ne,Z)=>(0,ae.Z)("Tooltip",ne=>{if(Z===!1)return[];const{borderRadius:X,colorTextLightSolid:me,colorBgDefault:ee,borderRadiusOuter:g}=ne,w=(0,q.TS)(ne,{tooltipMaxWidth:250,tooltipColor:me,tooltipBorderRadius:X,tooltipBg:ee,tooltipRadiusOuter:g>4?4:g});return[P(w),(0,c._y)(ne,"zoom-big-fast")]},ne=>{let{zIndexPopupBase:X,colorBgSpotlight:me}=ne;return{zIndexPopup:X+70,colorBgDefault:me}},{resetStyle:!1})(Ne),W=_(36785);function re(Ne,Z){const B=(0,W.o2)(Z),ne=ie()({[`${Ne}-${Z}`]:Z&&B}),X={},me={};return Z&&!B&&(X.background=Z,me["--antd-arrow-background-color"]=Z),{className:ne,overlayStyle:X,arrowStyle:me}}var D=Ne=>{const{prefixCls:Z,className:B,placement:ne="top",title:X,color:me,overlayInnerStyle:ee}=Ne,{getPrefixCls:g}=T.useContext(o.E_),w=g("tooltip",Z),[Q,J]=z(w,!0),Pe=re(w,me),Ue=Pe.arrowStyle,Xe=Object.assign(Object.assign({},ee),Pe.overlayStyle),Ze=ie()(J,w,`${w}-pure`,`${w}-placement-${ne}`,B,Pe.className);return Q(T.createElement("div",{className:Ze,style:Ue},T.createElement("div",{className:`${w}-arrow`}),T.createElement(Re.G,Object.assign({},Ne,{className:J,prefixCls:w,overlayInnerStyle:Xe}),X)))},F=function(Ne,Z){var B={};for(var ne in Ne)Object.prototype.hasOwnProperty.call(Ne,ne)&&Z.indexOf(ne)<0&&(B[ne]=Ne[ne]);if(Ne!=null&&typeof Object.getOwnPropertySymbols=="function")for(var X=0,ne=Object.getOwnPropertySymbols(Ne);X<ne.length;X++)Z.indexOf(ne[X])<0&&Object.prototype.propertyIsEnumerable.call(Ne,ne[X])&&(B[ne[X]]=Ne[ne[X]]);return B};const U=(Ne,Z)=>{const B={},ne=Object.assign({},Ne);return Z.forEach(X=>{Ne&&X in Ne&&(B[X]=Ne[X],delete ne[X])}),{picked:B,omitted:ne}};function fe(Ne,Z){const B=Ne.type;if((B.__ANT_BUTTON===!0||Ne.type==="button")&&Ne.props.disabled||B.__ANT_SWITCH===!0&&(Ne.props.disabled||Ne.props.loading)||B.__ANT_RADIO===!0&&Ne.props.disabled){const{picked:ne,omitted:X}=U(Ne.props.style,["position","left","right","top","bottom","float","display","zIndex"]),me=Object.assign(Object.assign({display:"inline-block"},ne),{cursor:"not-allowed",width:Ne.props.block?"100%":void 0}),ee=Object.assign(Object.assign({},X),{pointerEvents:"none"}),g=(0,be.Tm)(Ne,{style:ee,className:null});return T.createElement("span",{style:me,className:ie()(Ne.props.className,`${Z}-disabled-compatible-wrapper`)},g)}return Ne}const ye=T.forwardRef((Ne,Z)=>{var B,ne;const{prefixCls:X,openClassName:me,getTooltipContainer:ee,overlayClassName:g,color:w,overlayInnerStyle:Q,children:J,afterOpenChange:Pe,afterVisibleChange:Ue,destroyTooltipOnHide:Xe,arrow:Ze=!0,title:lt,overlay:at,builtinPlacements:ct,arrowPointAtCenter:Ot=!1,autoAdjustOverflow:Ut=!0}=Ne,un=!!Ze,[,Ft]=(0,$.Z)(),{getPopupContainer:nt,getPrefixCls:Et,direction:oe}=T.useContext(o.E_),_e=T.useRef(null),M=()=>{var He;(He=_e.current)===null||He===void 0||He.forceAlign()};T.useImperativeHandle(Z,()=>({forceAlign:M,forcePopupAlign:()=>{M()}}));const[ce,xe]=(0,ve.Z)(!1,{value:(B=Ne.open)!==null&&B!==void 0?B:Ne.visible,defaultValue:(ne=Ne.defaultOpen)!==null&&ne!==void 0?ne:Ne.defaultVisible}),O=!lt&&!at&&lt!==0,C=He=>{var We,te;xe(O?!1:He),O||((We=Ne.onOpenChange)===null||We===void 0||We.call(Ne,He),(te=Ne.onVisibleChange)===null||te===void 0||te.call(Ne,He))},k=T.useMemo(()=>{var He,We;let te=Ot;return typeof Ze=="object"&&(te=(We=(He=Ze.pointAtCenter)!==null&&He!==void 0?He:Ze.arrowPointAtCenter)!==null&&We!==void 0?We:Ot),ct||(0,Te.Z)({arrowPointAtCenter:te,autoAdjustOverflow:Ut,arrowWidth:un?Ft.sizePopupArrow:0,borderRadius:Ft.borderRadius,offset:Ft.marginXXS,visibleFirst:!0})},[Ot,Ze,ct,Ft]),he=T.useMemo(()=>lt===0?lt:at||lt||"",[at,lt]),de=T.createElement(L.BR,null,typeof he=="function"?he():he),{getPopupContainer:K,placement:Ie="top",mouseEnterDelay:$e=.1,mouseLeaveDelay:Me=.1,overlayStyle:Be,rootClassName:Ye}=Ne,Qe=F(Ne,["getPopupContainer","placement","mouseEnterDelay","mouseLeaveDelay","overlayStyle","rootClassName"]),Je=Et("tooltip",X),dt=Et(),At=Ne["data-popover-inject"];let gt=ce;!("open"in Ne)&&!("visible"in Ne)&&O&&(gt=!1);const Rt=fe((0,be.l$)(J)&&!(0,be.M2)(J)?J:T.createElement("span",null,J),Je),Ct=Rt.props,x=!Ct.className||typeof Ct.className=="string"?ie()(Ct.className,me||`${Je}-open`):Ct.className,[A,rt]=z(Je,!At),Y=re(Je,w),Ce=Y.arrowStyle,vn=Object.assign(Object.assign({},Q),Y.overlayStyle),ke=ie()(g,{[`${Je}-rtl`]:oe==="rtl"},Y.className,Ye,rt);return A(T.createElement(Re.Z,Object.assign({},Qe,{showArrow:un,placement:Ie,mouseEnterDelay:$e,mouseLeaveDelay:Me,prefixCls:Je,overlayClassName:ke,overlayStyle:Object.assign(Object.assign({},Ce),Be),getTooltipContainer:K||ee||nt,ref:_e,builtinPlacements:k,overlay:de,visible:gt,onVisibleChange:C,afterVisibleChange:Pe!=null?Pe:Ue,overlayInnerStyle:vn,arrowContent:T.createElement("span",{className:`${Je}-arrow-content`}),motion:{motionName:(0,le.m)(dt,"zoom-big-fast",Ne.transitionName),motionDeadline:1e3},destroyTooltipOnHide:!!Xe}),gt?(0,be.Tm)(Rt,{className:x}):Rt))});ye._InternalPanelDoNotUseOrYouWillBeFired=D;var Se=ye},64018:function(){var Ht,et,_,T=!1,N,ie;window.PR_SHOULD_USE_CONTINUATION=!0;var Re,ve;(function(){var le=window,Te=["break,continue,do,else,for,if,return,while"],be=[Te,"auto,case,char,const,default,double,enum,extern,float,goto,inline,int,long,register,restrict,short,signed,sizeof,static,struct,switch,typedef,union,unsigned,void,volatile"],o=[be,"catch,class,delete,false,import,new,operator,private,protected,public,this,throw,true,try,typeof"],L=[o,"alignas,alignof,align_union,asm,axiom,bool,concept,concept_map,const_cast,constexpr,decltype,delegate,dynamic_cast,explicit,export,friend,generic,late_check,mutable,namespace,noexcept,noreturn,nullptr,property,reinterpret_cast,static_assert,static_cast,template,typeid,typename,using,virtual,where"],$=[o,"abstract,assert,boolean,byte,extends,finally,final,implements,import,instanceof,interface,null,native,package,strictfp,super,synchronized,throws,transient"],v=[o,"abstract,add,alias,as,ascending,async,await,base,bool,by,byte,checked,decimal,delegate,descending,dynamic,event,finally,fixed,foreach,from,get,global,group,implicit,in,interface,internal,into,is,join,let,lock,null,object,out,override,orderby,params,partial,readonly,ref,remove,sbyte,sealed,select,set,stackalloc,string,select,uint,ulong,unchecked,unsafe,ushort,value,var,virtual,where,yield"],c="all,and,by,catch,class,else,extends,false,finally,for,if,in,is,isnt,loop,new,no,not,null,of,off,on,or,return,super,then,throw,true,try,unless,until,when,while,yes",S=[o,"abstract,async,await,constructor,debugger,enum,eval,export,function,get,implements,instanceof,interface,let,null,set,undefined,var,with,yield,Infinity,NaN"],y="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",q=[Te,"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"],ae=[Te,"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=[Te,"case,done,elif,esac,eval,fi,function,in,local,set,then,until"],z=[L,v,$,S,y,q,ae,P],W=/^(DIR|FILE|array|vector|(de|priority_)?queue|(forward_)?list|stack|(const_)?(reverse_)?iterator|(unordered_)?(multi)?(set|map)|bitset|u?(int|float)\d*)\b/,re="str",b="kwd",D="com",F="typ",U="lit",fe="pun",ye="pln",Se="tag",Ne="dec",Z="src",B="atn",ne="atv",X="nocode",me="(?:^^\\.?|[+-]|[!=]=?=?|\\#|%=?|&&?=?|\\(|\\*=?|[+\\-]=|->|\\/=?|::?|<<?=?|>>?>?=?|,|;|\\?|@|\\[|~|{|\\^\\^?=?|\\|\\|?=?|break|case|continue|delete|do|else|finally|instanceof|return|throw|try|typeof)\\s*";function ee(oe){for(var _e=0,M=!1,ce=!1,xe=0,O=oe.length;xe<O;++xe){var C=oe[xe];if(C.ignoreCase)ce=!0;else if(/[a-z]/i.test(C.source.replace(/\\u[0-9a-f]{4}|\\x[0-9a-f]{2}|\\[^ux]/gi,""))){M=!0,ce=!1;break}}var k={b:8,t:9,n:10,v:11,f:12,r:13};function he(Me){var Be=Me.charCodeAt(0);if(Be!==92)return Be;var Ye=Me.charAt(1);return Be=k[Ye],Be||("0"<=Ye&&Ye<="7"?parseInt(Me.substring(1),8):Ye==="u"||Ye==="x"?parseInt(Me.substring(2),16):Me.charCodeAt(1))}function de(Me){if(Me<32)return(Me<16?"\\x0":"\\x")+Me.toString(16);var Be=String.fromCharCode(Me);return Be==="\\"||Be==="-"||Be==="]"||Be==="^"?"\\"+Be:Be}function K(Me){var Be=Me.substring(1,Me.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")),Ye=[],Qe=Be[0]==="^",Je=["["];Qe&&Je.push("^");for(var dt=Qe?1:0,At=Be.length;dt<At;++dt){var gt=Be[dt];if(/\\[bdsw]/i.test(gt))Je.push(gt);else{var Rt=he(gt),Ct;dt+2<At&&Be[dt+1]==="-"?(Ct=he(Be[dt+2]),dt+=2):Ct=Rt,Ye.push([Rt,Ct]),Ct<65||Rt>122||(Ct<65||Rt>90||Ye.push([Math.max(65,Rt)|32,Math.min(Ct,90)|32]),Ct<97||Rt>122||Ye.push([Math.max(97,Rt)&-33,Math.min(Ct,122)&-33]))}}Ye.sort(function(Y,Ce){return Y[0]-Ce[0]||Ce[1]-Y[1]});for(var x=[],A=[],dt=0;dt<Ye.length;++dt){var rt=Ye[dt];rt[0]<=A[1]+1?A[1]=Math.max(A[1],rt[1]):x.push(A=rt)}for(var dt=0;dt<x.length;++dt){var rt=x[dt];Je.push(de(rt[0])),rt[1]>rt[0]&&(rt[1]+1>rt[0]&&Je.push("-"),Je.push(de(rt[1])))}return Je.push("]"),Je.join("")}function Ie(Me){for(var Be=Me.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")),Ye=Be.length,Qe=[],Je=0,dt=0;Je<Ye;++Je){var At=Be[Je];if(At==="(")++dt;else if(At.charAt(0)==="\\"){var gt=+At.substring(1);gt&&(gt<=dt?Qe[gt]=-1:Be[Je]=de(gt))}}for(var Je=1;Je<Qe.length;++Je)Qe[Je]===-1&&(Qe[Je]=++_e);for(var Je=0,dt=0;Je<Ye;++Je){var At=Be[Je];if(At==="(")++dt,Qe[dt]||(Be[Je]="(?:");else if(At.charAt(0)==="\\"){var gt=+At.substring(1);gt&&gt<=dt&&(Be[Je]="\\"+Qe[gt])}}for(var Je=0;Je<Ye;++Je)Be[Je]==="^"&&Be[Je+1]!=="^"&&(Be[Je]="");if(Me.ignoreCase&&M)for(var Je=0;Je<Ye;++Je){var At=Be[Je],Rt=At.charAt(0);At.length>=2&&Rt==="["?Be[Je]=K(At):Rt!=="\\"&&(Be[Je]=At.replace(/[a-zA-Z]/g,function(A){var rt=A.charCodeAt(0);return"["+String.fromCharCode(rt&-33,rt|32)+"]"}))}return Be.join("")}for(var $e=[],xe=0,O=oe.length;xe<O;++xe){var C=oe[xe];if(C.global||C.multiline)throw new Error(""+C);$e.push("(?:"+Ie(C)+")")}return new RegExp($e.join("|"),ce?"gi":"g")}function g(oe,_e){var M=/(?:^|\s)nocode(?:\s|$)/,ce=[],xe=0,O=[],C=0;function k(he){var de=he.nodeType;if(de==1){if(M.test(he.className))return;for(var K=he.firstChild;K;K=K.nextSibling)k(K);var Ie=he.nodeName.toLowerCase();(Ie==="br"||Ie==="li")&&(ce[C]=`
`,O[C<<1]=xe++,O[C++<<1|1]=he)}else if(de==3||de==4){var $e=he.nodeValue;$e.length&&(_e?$e=$e.replace(/\r\n?/g,`
`):$e=$e.replace(/[ \t\r\n]+/g," "),ce[C]=$e,O[C<<1]=xe,xe+=$e.length,O[C++<<1|1]=he)}}return k(oe),{sourceCode:ce.join("").replace(/\n$/,""),spans:O}}function w(oe,_e,M,ce,xe){if(M){var O={sourceNode:oe,pre:1,langExtension:null,numberLines:null,sourceCode:M,spans:null,basePos:_e,decorations:null};ce(O),xe.push.apply(xe,O.decorations)}}var Q=/\S/;function J(oe){for(var _e=void 0,M=oe.firstChild;M;M=M.nextSibling){var ce=M.nodeType;_e=ce===1?_e?oe:M:ce===3&&Q.test(M.nodeValue)?oe:_e}return _e===oe?void 0:_e}function Pe(oe,_e){var M={},ce;(function(){for(var C=oe.concat(_e),k=[],he={},de=0,K=C.length;de<K;++de){var Ie=C[de],$e=Ie[3];if($e)for(var Me=$e.length;--Me>=0;)M[$e.charAt(Me)]=Ie;var Be=Ie[1],Ye=""+Be;he.hasOwnProperty(Ye)||(k.push(Be),he[Ye]=null)}k.push(/[\0-\uffff]/),ce=ee(k)})();var xe=_e.length,O=function(C){for(var k=C.sourceCode,he=C.basePos,de=C.sourceNode,K=[he,ye],Ie=0,$e=k.match(ce)||[],Me={},Be=0,Ye=$e.length;Be<Ye;++Be){var Qe=$e[Be],Je=Me[Qe],dt=void 0,At;if(typeof Je=="string")At=!1;else{var gt=M[Qe.charAt(0)];if(gt)dt=Qe.match(gt[1]),Je=gt[0];else{for(var Rt=0;Rt<xe;++Rt)if(gt=_e[Rt],dt=Qe.match(gt[1]),dt){Je=gt[0];break}dt||(Je=ye)}At=Je.length>=5&&Je.substring(0,5)==="lang-",At&&!(dt&&typeof dt[1]=="string")&&(At=!1,Je=Z),At||(Me[Qe]=Je)}var Ct=Ie;if(Ie+=Qe.length,!At)K.push(he+Ct,Je);else{var x=dt[1],A=Qe.indexOf(x),rt=A+x.length;dt[2]&&(rt=Qe.length-dt[2].length,A=rt-x.length);var Y=Je.substring(5);w(de,he+Ct,Qe.substring(0,A),O,K),w(de,he+Ct+A,x,Ot(Y,x),K),w(de,he+Ct+rt,Qe.substring(rt),O,K)}}C.decorations=K};return O}function Ue(oe){var _e=[],M=[];oe.tripleQuotedStrings?_e.push([re,/^(?:\'\'\'(?:[^\'\\]|\\[\s\S]|\'{1,2}(?=[^\']))*(?:\'\'\'|$)|\"\"\"(?:[^\"\\]|\\[\s\S]|\"{1,2}(?=[^\"]))*(?:\"\"\"|$)|\'(?:[^\\\']|\\[\s\S])*(?:\'|$)|\"(?:[^\\\"]|\\[\s\S])*(?:\"|$))/,null,`'"`]):oe.multiLineStrings?_e.push([re,/^(?:\'(?:[^\\\']|\\[\s\S])*(?:\'|$)|\"(?:[^\\\"]|\\[\s\S])*(?:\"|$)|\`(?:[^\\\`]|\\[\s\S])*(?:\`|$))/,null,"'\"`"]):_e.push([re,/^(?:\'(?:[^\\\'\r\n]|\\.)*(?:\'|$)|\"(?:[^\\\"\r\n]|\\.)*(?:\"|$))/,null,`"'`]),oe.verbatimStrings&&M.push([re,/^@\"(?:[^\"]|\"\")*(?:\"|$)/,null]);var ce=oe.hashComments;ce&&(oe.cStyleComments?(ce>1?_e.push([D,/^#(?:##(?:[^#]|#(?!##))*(?:###|$)|.*)/,null,"#"]):_e.push([D,/^#(?:(?:define|e(?:l|nd)if|else|error|ifn?def|include|line|pragma|undef|warning)\b|[^\r\n]*)/,null,"#"]),M.push([re,/^<(?:(?:(?:\.\.\/)*|\/?)(?:[\w-]+(?:\/[\w-]+)+)?[\w-]+\.h(?:h|pp|\+\+)?|[a-z]\w*)>/,null])):_e.push([D,/^#[^\r\n]*/,null,"#"])),oe.cStyleComments&&(M.push([D,/^\/\/[^\r\n]*/,null]),M.push([D,/^\/\*[\s\S]*?(?:\*\/|$)/,null]));var xe=oe.regexLiterals;if(xe){var O=xe>1?"":`
\r`,C=O?".":"[\\S\\s]",k="/(?=[^/*"+O+"])(?:[^/\\x5B\\x5C"+O+"]|\\x5C"+C+"|\\x5B(?:[^\\x5C\\x5D"+O+"]|\\x5C"+C+")*(?:\\x5D|$))+/";M.push(["lang-regex",RegExp("^"+me+"("+k+")")])}var he=oe.types;he&&M.push([F,he]);var de=(""+oe.keywords).replace(/^ | $/g,"");de.length&&M.push([b,new RegExp("^(?:"+de.replace(/[\s,]+/g,"|")+")\\b"),null]),_e.push([ye,/^\s+/,null,` \r
\xA0`]);var K="^.[^\\s\\w.$@'\"`/\\\\]*";return oe.regexLiterals&&(K+="(?!s*/)"),M.push([U,/^@[a-z_$][a-z_$@0-9]*/i,null],[F,/^(?:[@_]?[A-Z]+[a-z][A-Za-z_$@0-9]*|\w+_t\b)/,null],[ye,/^[a-z_$][a-z_$@0-9]*/i,null],[U,new RegExp("^(?:0x[a-f0-9]+|(?:\\d(?:_\\d+)*\\d*(?:\\.\\d*)?|\\.\\d\\+)(?:e[+\\-]?\\d+)?)[a-z]*","i"),null,"0123456789"],[ye,/^\\[\s\S]?/,null],[fe,new RegExp(K),null]),Pe(_e,M)}var Xe=Ue({keywords:z,hashComments:!0,cStyleComments:!0,multiLineStrings:!0,regexLiterals:!0});function Ze(oe,_e,M){for(var ce=/(?:^|\s)nocode(?:\s|$)/,xe=/\r\n?|\n/,O=oe.ownerDocument,C=O.createElement("li");oe.firstChild;)C.appendChild(oe.firstChild);var k=[C];function he(Be){var Ye=Be.nodeType;if(Ye==1&&!ce.test(Be.className))if(Be.nodeName==="br")de(Be),Be.parentNode&&Be.parentNode.removeChild(Be);else for(var Qe=Be.firstChild;Qe;Qe=Qe.nextSibling)he(Qe);else if((Ye==3||Ye==4)&&M){var Je=Be.nodeValue,dt=Je.match(xe);if(dt){var At=Je.substring(0,dt.index);Be.nodeValue=At;var gt=Je.substring(dt.index+dt[0].length);if(gt){var Rt=Be.parentNode;Rt.insertBefore(O.createTextNode(gt),Be.nextSibling)}de(Be),At||Be.parentNode.removeChild(Be)}}}function de(Be){for(;!Be.nextSibling;)if(Be=Be.parentNode,!Be)return;function Ye(dt,At){var gt=At?dt.cloneNode(!1):dt,Rt=dt.parentNode;if(Rt){var Ct=Ye(Rt,1),x=dt.nextSibling;Ct.appendChild(gt);for(var A=x;A;A=x)x=A.nextSibling,Ct.appendChild(A)}return gt}for(var Qe=Ye(Be.nextSibling,0),Je;(Je=Qe.parentNode)&&Je.nodeType===1;)Qe=Je;k.push(Qe)}for(var K=0;K<k.length;++K)he(k[K]);_e===(_e|0)&&k[0].setAttribute("value",_e);var Ie=O.createElement("ol");Ie.className="linenums";for(var $e=Math.max(0,_e-1|0)||0,K=0,Me=k.length;K<Me;++K)C=k[K],C.className="L"+(K+$e)%10,C.firstChild||C.appendChild(O.createTextNode("\xA0")),Ie.appendChild(C);oe.appendChild(Ie)}function lt(oe){var _e=/\bMSIE\s(\d+)/.exec(navigator.userAgent);_e=_e&&+_e[1]<=8;var M=/\n/g,ce=oe.sourceCode,xe=ce.length,O=0,C=oe.spans,k=C.length,he=0,de=oe.decorations,K=de.length,Ie=0;de[K]=xe;var $e,Me;for(Me=$e=0;Me<K;)de[Me]!==de[Me+2]?(de[$e++]=de[Me++],de[$e++]=de[Me++]):Me+=2;for(K=$e,Me=$e=0;Me<K;){for(var Be=de[Me],Ye=de[Me+1],Qe=Me+2;Qe+2<=K&&de[Qe+1]===Ye;)Qe+=2;de[$e++]=Be,de[$e++]=Ye,Me=Qe}K=de.length=$e;var Je=oe.sourceNode,dt="";Je&&(dt=Je.style.display,Je.style.display="none");try{for(var At=null;he<k;){var gt=C[he],Rt=C[he+2]||xe,Ct=de[Ie+2]||xe,Qe=Math.min(Rt,Ct),x=C[he+1],A;if(x.nodeType!==1&&(A=ce.substring(O,Qe))){_e&&(A=A.replace(M,"\r")),x.nodeValue=A;var rt=x.ownerDocument,Y=rt.createElement("span");Y.className=de[Ie+1];var Ce=x.parentNode;Ce.replaceChild(Y,x),Y.appendChild(x),O<Rt&&(C[he+1]=x=rt.createTextNode(ce.substring(Qe,Rt)),Ce.insertBefore(x,Y.nextSibling))}O=Qe,O>=Rt&&(he+=2),O>=Ct&&(Ie+=2)}}finally{Je&&(Je.style.display=dt)}}var at={};function ct(oe,_e){for(var M=_e.length;--M>=0;){var ce=_e[M];at.hasOwnProperty(ce)?le.console&&console.warn("cannot override language handler %s",ce):at[ce]=oe}}function Ot(oe,_e){return oe&&at.hasOwnProperty(oe)||(oe=/^\s*</.test(_e)?"default-markup":"default-code"),at[oe]}ct(Xe,["default-code"]),ct(Pe([],[[ye,/^[^<?]+/],[Ne,/^<!\w[^>]*(?:>|$)/],[D,/^<\!--[\s\S]*?(?:-\->|$)/],["lang-",/^<\?([\s\S]+?)(?:\?>|$)/],["lang-",/^<%([\s\S]+?)(?:%>|$)/],[fe,/^(?:<[%?]|[%?]>)/],["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"]),ct(Pe([[ye,/^[\s]+/,null,` \r
`],[ne,/^(?:\"[^\"]*\"?|\'[^\']*\'?)/,null,`"'`]],[[Se,/^^<\/?[a-z](?:[\w.:-]*\w)?|\/?>$/i],[B,/^(?!style[\s=]|on)[a-z](?:[\w:-]*\w)?/i],["lang-uq.val",/^=\s*([^>\'\"\s]*(?:[^>\'\"\s\/]|\/(?=\s)))/],[fe,/^[=<>\/]+/],["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"]),ct(Pe([],[[ne,/^[\s\S]+/]]),["uq.val"]),ct(Ue({keywords:L,hashComments:!0,cStyleComments:!0,types:W}),["c","cc","cpp","cxx","cyc","m"]),ct(Ue({keywords:"null,true,false"}),["json"]),ct(Ue({keywords:v,hashComments:!0,cStyleComments:!0,verbatimStrings:!0,types:W}),["cs"]),ct(Ue({keywords:$,cStyleComments:!0}),["java"]),ct(Ue({keywords:P,hashComments:!0,multiLineStrings:!0}),["bash","bsh","csh","sh"]),ct(Ue({keywords:q,hashComments:!0,multiLineStrings:!0,tripleQuotedStrings:!0}),["cv","py","python"]),ct(Ue({keywords:y,hashComments:!0,multiLineStrings:!0,regexLiterals:2}),["perl","pl","pm"]),ct(Ue({keywords:ae,hashComments:!0,multiLineStrings:!0,regexLiterals:!0}),["rb","ruby"]),ct(Ue({keywords:S,cStyleComments:!0,regexLiterals:!0}),["javascript","js","ts","typescript"]),ct(Ue({keywords:c,hashComments:3,cStyleComments:!0,multilineStrings:!0,tripleQuotedStrings:!0,regexLiterals:!0}),["coffee"]),ct(Pe([],[[re,/^[\s\S]+/]]),["regex"]);function Ut(oe){var _e=oe.langExtension;try{var M=g(oe.sourceNode,oe.pre),ce=M.sourceCode;oe.sourceCode=ce,oe.spans=M.spans,oe.basePos=0,Ot(_e,ce)(oe),lt(oe)}catch(xe){le.console&&console.log(xe&&xe.stack||xe)}}function un(oe,_e,M){var ce=M||!1,xe=_e||null,O=document.createElement("div");O.innerHTML="<pre>"+oe+"</pre>",O=O.firstChild,ce&&Ze(O,ce,!0);var C={langExtension:xe,numberLines:ce,sourceNode:O,pre:1,sourceCode:null,basePos:null,spans:null,decorations:null};return Ut(C),O.innerHTML}function Ft(oe,_e){var M=_e||document.body,ce=M.ownerDocument||document;function xe(gt){return M.getElementsByTagName(gt)}for(var O=[xe("pre"),xe("code"),xe("xmp")],C=[],k=0;k<O.length;++k)for(var he=0,de=O[k].length;he<de;++he)C.push(O[k][he]);O=null;var K=Date;K.now||(K={now:function(){return+new Date}});var Ie=0,$e=/\blang(?:uage)?-([\w.]+)(?!\S)/,Me=/\bprettyprint\b/,Be=/\bprettyprinted\b/,Ye=/pre|xmp/i,Qe=/^code$/i,Je=/^(?:pre|code|xmp)$/i,dt={};function At(){for(var gt=le.PR_SHOULD_USE_CONTINUATION?K.now()+250:1/0;Ie<C.length&&K.now()<gt;Ie++){for(var Rt=C[Ie],Ct=dt,x=Rt;x=x.previousSibling;){var A=x.nodeType,rt=(A===7||A===8)&&x.nodeValue;if(rt?!/^\??prettify\b/.test(rt):A!==3||/\S/.test(x.nodeValue))break;if(rt){Ct={},rt.replace(/\b(\w+)=([\w:.%+-]+)/g,function(Le,jt,ln){Ct[jt]=ln});break}}var Y=Rt.className;if((Ct!==dt||Me.test(Y))&&!Be.test(Y)){for(var Ce=!1,vn=Rt.parentNode;vn;vn=vn.parentNode){var ke=vn.tagName;if(Je.test(ke)&&vn.className&&Me.test(vn.className)){Ce=!0;break}}if(!Ce){Rt.className+=" prettyprinted";var He=Ct.lang;if(!He){He=Y.match($e);var We;!He&&(We=J(Rt))&&Qe.test(We.tagName)&&(He=We.className.match($e)),He&&(He=He[1])}var te;if(Ye.test(Rt.tagName))te=1;else{var pe=Rt.currentStyle,De=ce.defaultView,ze=pe?pe.whiteSpace:De&&De.getComputedStyle?De.getComputedStyle(Rt,null).getPropertyValue("white-space"):0;te=ze&&ze.substring(0,3)==="pre"}var V=Ct.linenums;(V=V==="true"||+V)||(V=Y.match(/\blinenums\b(?::(\d+))?/),V=V?V[1]&&V[1].length?+V[1]:!0:!1),V&&Ze(Rt,V,te);var kt={langExtension:He,sourceNode:Rt,numberLines:V,pre:te,sourceCode:null,basePos:null,spans:null,decorations:null};Ut(kt)}}}Ie<C.length?le.setTimeout(At,250):typeof oe=="function"&&oe()}At()}var nt=le.PR={createSimpleLexer:Pe,registerLangHandler:ct,sourceDecorator:Ue,PR_ATTRIB_NAME:B,PR_ATTRIB_VALUE:ne,PR_COMMENT:D,PR_DECLARATION:Ne,PR_KEYWORD:b,PR_LITERAL:U,PR_NOCODE:X,PR_PLAIN:ye,PR_PUNCTUATION:fe,PR_SOURCE:Z,PR_STRING:re,PR_TAG:Se,PR_TYPE:F,prettyPrintOne:T?le.prettyPrintOne=un:Re=un,prettyPrint:ve=T?le.prettyPrint=Ft:ve=Ft},Et=le.define;typeof Et=="function"&&Et.amd&&Et("google-code-prettify",[],function(){return nt})})()},25769:function(Ht,et,_){"use strict";var T=_(98040),N={"text/plain":"Text","text/html":"Url",default:"Text"},ie="Copy to clipboard: #{key}, Enter";function Re(le){var Te=(/mac os x/i.test(navigator.userAgent)?"\u2318":"Ctrl")+"+C";return le.replace(/#{\s*key\s*}/g,Te)}function ve(le,Te){var be,o,L,$,v,c,S=!1;Te||(Te={}),be=Te.debug||!1;try{L=T(),$=document.createRange(),v=document.getSelection(),c=document.createElement("span"),c.textContent=le,c.ariaHidden="true",c.style.all="unset",c.style.position="fixed",c.style.top=0,c.style.clip="rect(0, 0, 0, 0)",c.style.whiteSpace="pre",c.style.webkitUserSelect="text",c.style.MozUserSelect="text",c.style.msUserSelect="text",c.style.userSelect="text",c.addEventListener("copy",function(q){if(q.stopPropagation(),Te.format)if(q.preventDefault(),typeof q.clipboardData=="undefined"){be&&console.warn("unable to use e.clipboardData"),be&&console.warn("trying IE specific stuff"),window.clipboardData.clearData();var ae=N[Te.format]||N.default;window.clipboardData.setData(ae,le)}else q.clipboardData.clearData(),q.clipboardData.setData(Te.format,le);Te.onCopy&&(q.preventDefault(),Te.onCopy(q.clipboardData))}),document.body.appendChild(c),$.selectNodeContents(c),v.addRange($);var y=document.execCommand("copy");if(!y)throw new Error("copy command was unsuccessful");S=!0}catch(q){be&&console.error("unable to copy using execCommand: ",q),be&&console.warn("trying IE specific stuff");try{window.clipboardData.setData(Te.format||"text",le),Te.onCopy&&Te.onCopy(window.clipboardData),S=!0}catch(ae){be&&console.error("unable to copy using clipboardData: ",ae),be&&console.error("falling back to prompt"),o=Re("message"in Te?Te.message:ie),window.prompt(o,le)}}finally{v&&(typeof v.removeRange=="function"?v.removeRange($):v.removeAllRanges()),c&&document.body.removeChild(c),L()}return S}Ht.exports=ve},53184:function(Ht,et,_){"use strict";var T,N;function ie(Re,ve,le){var Te=function(be,o){return Re.js_beautify(be,o)};return Te.js=Re.js_beautify,Te.css=ve.css_beautify,Te.html=le.html_beautify,Te.js_beautify=Re.js_beautify,Te.css_beautify=ve.css_beautify,Te.html_beautify=le.html_beautify,Te}T=[_(58553),_(87804),_(40998)],N=function(Re,ve,le){return ie(Re,ve,le)}.apply(et,T),N!==void 0&&(Ht.exports=N)},87804:function(Ht,et){var _,T;(function(){var N;(function(){"use strict";var Re=[,,function(be){function o(v){this.__parent=v,this.__character_count=0,this.__indent_count=-1,this.__alignment_count=0,this.__wrap_point_index=0,this.__wrap_point_character_count=0,this.__wrap_point_indent_count=-1,this.__wrap_point_alignment_count=0,this.__items=[]}o.prototype.clone_empty=function(){var v=new o(this.__parent);return v.set_indent(this.__indent_count,this.__alignment_count),v},o.prototype.item=function(v){return v<0?this.__items[this.__items.length+v]:this.__items[v]},o.prototype.has_match=function(v){for(var c=this.__items.length-1;c>=0;c--)if(this.__items[c].match(v))return!0;return!1},o.prototype.set_indent=function(v,c){this.is_empty()&&(this.__indent_count=v||0,this.__alignment_count=c||0,this.__character_count=this.__parent.get_indent_size(this.__indent_count,this.__alignment_count))},o.prototype._set_wrap_point=function(){this.__parent.wrap_line_length&&(this.__wrap_point_index=this.__items.length,this.__wrap_point_character_count=this.__character_count,this.__wrap_point_indent_count=this.__parent.next_line.__indent_count,this.__wrap_point_alignment_count=this.__parent.next_line.__alignment_count)},o.prototype._should_wrap=function(){return this.__wrap_point_index&&this.__character_count>this.__parent.wrap_line_length&&this.__wrap_point_character_count>this.__parent.next_line.__character_count},o.prototype._allow_wrap=function(){if(this._should_wrap()){this.__parent.add_new_line();var v=this.__parent.current_line;return v.set_indent(this.__wrap_point_indent_count,this.__wrap_point_alignment_count),v.__items=this.__items.slice(this.__wrap_point_index),this.__items=this.__items.slice(0,this.__wrap_point_index),v.__character_count+=this.__character_count-this.__wrap_point_character_count,this.__character_count=this.__wrap_point_character_count,v.__items[0]===" "&&(v.__items.splice(0,1),v.__character_count-=1),!0}return!1},o.prototype.is_empty=function(){return this.__items.length===0},o.prototype.last=function(){return this.is_empty()?null:this.__items[this.__items.length-1]},o.prototype.push=function(v){this.__items.push(v);var c=v.lastIndexOf(`
`);c!==-1?this.__character_count=v.length-c:this.__character_count+=v.length},o.prototype.pop=function(){var v=null;return this.is_empty()||(v=this.__items.pop(),this.__character_count-=v.length),v},o.prototype._remove_indent=function(){this.__indent_count>0&&(this.__indent_count-=1,this.__character_count-=this.__parent.indent_size)},o.prototype._remove_wrap_indent=function(){this.__wrap_point_indent_count>0&&(this.__wrap_point_indent_count-=1)},o.prototype.trim=function(){for(;this.last()===" ";)this.__items.pop(),this.__character_count-=1},o.prototype.toString=function(){var v="";return this.is_empty()?this.__parent.indent_empty_lines&&(v=this.__parent.get_indent_string(this.__indent_count)):(v=this.__parent.get_indent_string(this.__indent_count,this.__alignment_count),v+=this.__items.join("")),v};function L(v,c){this.__cache=[""],this.__indent_size=v.indent_size,this.__indent_string=v.indent_char,v.indent_with_tabs||(this.__indent_string=new Array(v.indent_size+1).join(v.indent_char)),c=c||"",v.indent_level>0&&(c=new Array(v.indent_level+1).join(this.__indent_string)),this.__base_string=c,this.__base_string_length=c.length}L.prototype.get_indent_size=function(v,c){var S=this.__base_string_length;return c=c||0,v<0&&(S=0),S+=v*this.__indent_size,S+=c,S},L.prototype.get_indent_string=function(v,c){var S=this.__base_string;return c=c||0,v<0&&(v=0,S=""),c+=v*this.__indent_size,this.__ensure_cache(c),S+=this.__cache[c],S},L.prototype.__ensure_cache=function(v){for(;v>=this.__cache.length;)this.__add_column()},L.prototype.__add_column=function(){var v=this.__cache.length,c=0,S="";this.__indent_size&&v>=this.__indent_size&&(c=Math.floor(v/this.__indent_size),v-=c*this.__indent_size,S=new Array(c+1).join(this.__indent_string)),v&&(S+=new Array(v+1).join(" ")),this.__cache.push(S)};function $(v,c){this.__indent_cache=new L(v,c),this.raw=!1,this._end_with_newline=v.end_with_newline,this.indent_size=v.indent_size,this.wrap_line_length=v.wrap_line_length,this.indent_empty_lines=v.indent_empty_lines,this.__lines=[],this.previous_line=null,this.current_line=null,this.next_line=new o(this),this.space_before_token=!1,this.non_breaking_space=!1,this.previous_token_wrapped=!1,this.__add_outputline()}$.prototype.__add_outputline=function(){this.previous_line=this.current_line,this.current_line=this.next_line.clone_empty(),this.__lines.push(this.current_line)},$.prototype.get_line_number=function(){return this.__lines.length},$.prototype.get_indent_string=function(v,c){return this.__indent_cache.get_indent_string(v,c)},$.prototype.get_indent_size=function(v,c){return this.__indent_cache.get_indent_size(v,c)},$.prototype.is_empty=function(){return!this.previous_line&&this.current_line.is_empty()},$.prototype.add_new_line=function(v){return this.is_empty()||!v&&this.just_added_newline()?!1:(this.raw||this.__add_outputline(),!0)},$.prototype.get_code=function(v){this.trim(!0);var c=this.current_line.pop();c&&(c[c.length-1]===`
`&&(c=c.replace(/\n+$/g,"")),this.current_line.push(c)),this._end_with_newline&&this.__add_outputline();var S=this.__lines.join(`
`);return v!==`
`&&(S=S.replace(/[\n]/g,v)),S},$.prototype.set_wrap_point=function(){this.current_line._set_wrap_point()},$.prototype.set_indent=function(v,c){return v=v||0,c=c||0,this.next_line.set_indent(v,c),this.__lines.length>1?(this.current_line.set_indent(v,c),!0):(this.current_line.set_indent(),!1)},$.prototype.add_raw_token=function(v){for(var c=0;c<v.newlines;c++)this.__add_outputline();this.current_line.set_indent(-1),this.current_line.push(v.whitespace_before),this.current_line.push(v.text),this.space_before_token=!1,this.non_breaking_space=!1,this.previous_token_wrapped=!1},$.prototype.add_token=function(v){this.__add_space_before_token(),this.current_line.push(v),this.space_before_token=!1,this.non_breaking_space=!1,this.previous_token_wrapped=this.current_line._allow_wrap()},$.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(" "))},$.prototype.remove_indent=function(v){for(var c=this.__lines.length;v<c;)this.__lines[v]._remove_indent(),v++;this.current_line._remove_wrap_indent()},$.prototype.trim=function(v){for(v=v===void 0?!1:v,this.current_line.trim();v&&this.__lines.length>1&&this.current_line.is_empty();)this.__lines.pop(),this.current_line=this.__lines[this.__lines.length-1],this.current_line.trim();this.previous_line=this.__lines.length>1?this.__lines[this.__lines.length-2]:null},$.prototype.just_added_newline=function(){return this.current_line.is_empty()},$.prototype.just_added_blankline=function(){return this.is_empty()||this.current_line.is_empty()&&this.previous_line.is_empty()},$.prototype.ensure_empty_line_above=function(v,c){for(var S=this.__lines.length-2;S>=0;){var y=this.__lines[S];if(y.is_empty())break;if(y.item(0).indexOf(v)!==0&&y.item(-1)!==c){this.__lines.splice(S+1,0,new o(this)),this.previous_line=this.__lines[this.__lines.length-2];break}S--}},be.exports.Output=$},,,,function(be){function o(v,c){this.raw_options=L(v,c),this.disabled=this._get_boolean("disabled"),this.eol=this._get_characters("eol","auto"),this.end_with_newline=this._get_boolean("end_with_newline"),this.indent_size=this._get_number("indent_size",4),this.indent_char=this._get_characters("indent_char"," "),this.indent_level=this._get_number("indent_level"),this.preserve_newlines=this._get_boolean("preserve_newlines",!0),this.max_preserve_newlines=this._get_number("max_preserve_newlines",32786),this.preserve_newlines||(this.max_preserve_newlines=0),this.indent_with_tabs=this._get_boolean("indent_with_tabs",this.indent_char===" "),this.indent_with_tabs&&(this.indent_char=" ",this.indent_size===1&&(this.indent_size=4)),this.wrap_line_length=this._get_number("wrap_line_length",this._get_number("max_char")),this.indent_empty_lines=this._get_boolean("indent_empty_lines"),this.templating=this._get_selection_list("templating",["auto","none","angular","django","erb","handlebars","php","smarty"],["auto"])}o.prototype._get_array=function(v,c){var S=this.raw_options[v],y=c||[];return typeof S=="object"?S!==null&&typeof S.concat=="function"&&(y=S.concat()):typeof S=="string"&&(y=S.split(/[^a-zA-Z0-9_\/\-]+/)),y},o.prototype._get_boolean=function(v,c){var S=this.raw_options[v],y=S===void 0?!!c:!!S;return y},o.prototype._get_characters=function(v,c){var S=this.raw_options[v],y=c||"";return typeof S=="string"&&(y=S.replace(/\\r/,"\r").replace(/\\n/,`
`).replace(/\\t/," ")),y},o.prototype._get_number=function(v,c){var S=this.raw_options[v];c=parseInt(c,10),isNaN(c)&&(c=0);var y=parseInt(S,10);return isNaN(y)&&(y=c),y},o.prototype._get_selection=function(v,c,S){var y=this._get_selection_list(v,c,S);if(y.length!==1)throw new Error("Invalid Option Value: The option '"+v+`' can only be one of the following values:
`+c+`
You passed in: '`+this.raw_options[v]+"'");return y[0]},o.prototype._get_selection_list=function(v,c,S){if(!c||c.length===0)throw new Error("Selection list cannot be empty.");if(S=S||[c[0]],!this._is_valid_selection(S,c))throw new Error("Invalid Default Value!");var y=this._get_array(v,S);if(!this._is_valid_selection(y,c))throw new Error("Invalid Option Value: The option '"+v+`' can contain only the following values:
`+c+`
You passed in: '`+this.raw_options[v]+"'");return y},o.prototype._is_valid_selection=function(v,c){return v.length&&c.length&&!v.some(function(S){return c.indexOf(S)===-1})};function L(v,c){var S={};v=$(v);var y;for(y in v)y!==c&&(S[y]=v[y]);if(c&&v[c])for(y in v[c])S[y]=v[c][y];return S}function $(v){var c={},S;for(S in v){var y=S.replace(/-/g,"_");c[y]=v[S]}return c}be.exports.Options=o,be.exports.normalizeOpts=$,be.exports.mergeOpts=L},,function(be){var o=RegExp.prototype.hasOwnProperty("sticky");function L($){this.__input=$||"",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 $=null;return this.hasNext()&&($=this.__input.charAt(this.__position),this.__position+=1),$},L.prototype.peek=function($){var v=null;return $=$||0,$+=this.__position,$>=0&&$<this.__input_length&&(v=this.__input.charAt($)),v},L.prototype.__match=function($,v){$.lastIndex=v;var c=$.exec(this.__input);return c&&!(o&&$.sticky)&&c.index!==v&&(c=null),c},L.prototype.test=function($,v){return v=v||0,v+=this.__position,v>=0&&v<this.__input_length?!!this.__match($,v):!1},L.prototype.testChar=function($,v){var c=this.peek(v);return $.lastIndex=0,c!==null&&$.test(c)},L.prototype.match=function($){var v=this.__match($,this.__position);return v?this.__position+=v[0].length:v=null,v},L.prototype.read=function($,v,c){var S="",y;return $&&(y=this.match($),y&&(S+=y[0])),v&&(y||!$)&&(S+=this.readUntil(v,c)),S},L.prototype.readUntil=function($,v){var c="",S=this.__position;$.lastIndex=this.__position;var y=$.exec(this.__input);return y?(S=y.index,v&&(S+=y[0].length)):S=this.__input_length,c=this.__input.substring(this.__position,S),this.__position=S,c},L.prototype.readUntilAfter=function($){return this.readUntil($,!0)},L.prototype.get_regexp=function($,v){var c=null,S="g";return v&&o&&(S="y"),typeof $=="string"&&$!==""?c=new RegExp($,S):$&&(c=new RegExp($.source,S)),c},L.prototype.get_literal_regexp=function($){return RegExp($.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&"))},L.prototype.peekUntilAfter=function($){var v=this.__position,c=this.readUntilAfter($);return this.__position=v,c},L.prototype.lookBack=function($){var v=this.__position-1;return v>=$.length&&this.__input.substring(v-$.length,v).toLowerCase()===$},be.exports.InputScanner=L},,,,,function(be){function o(L,$){L=typeof L=="string"?L:L.source,$=typeof $=="string"?$:$.source,this.__directives_block_pattern=new RegExp(L+/ beautify( \w+[:]\w+)+ /.source+$,"g"),this.__directive_pattern=/ (\w+)[:](\w+)/g,this.__directives_end_ignore_pattern=new RegExp(L+/\sbeautify\signore:end\s/.source+$,"g")}o.prototype.get_directives=function(L){if(!L.match(this.__directives_block_pattern))return null;var $={};this.__directive_pattern.lastIndex=0;for(var v=this.__directive_pattern.exec(L);v;)$[v[1]]=v[2],v=this.__directive_pattern.exec(L);return $},o.prototype.readIgnored=function(L){return L.readUntilAfter(this.__directives_end_ignore_pattern)},be.exports.Directives=o},,function(be,o,L){var $=L(16).Beautifier,v=L(17).Options;function c(S,y){var q=new $(S,y);return q.beautify()}be.exports=c,be.exports.defaultOptions=function(){return new v}},function(be,o,L){var $=L(17).Options,v=L(2).Output,c=L(8).InputScanner,S=L(13).Directives,y=new S(/\/\*/,/\*\//),q=/\r\n|[\r\n]/,ae=/\r\n|[\r\n]/g,P=/\s/,z=/(?:\s|\n)+/g,W=/\/\*(?:[\s\S]*?)((?:\*\/)|$)/g,re=/\/\/(?:[^\n\r\u2028\u2029]*)/g;function b(D,F){this._source_text=D||"",this._options=new $(F),this._ch=null,this._input=null,this.NESTED_AT_RULE={page:!0,"font-face":!0,keyframes:!0,media:!0,supports:!0,document:!0},this.CONDITIONAL_GROUP_RULE={media:!0,supports:!0,document:!0},this.NON_SEMICOLON_NEWLINE_PROPERTY=["grid-template-areas","grid-template"]}b.prototype.eatString=function(D){var F="";for(this._ch=this._input.next();this._ch;){if(F+=this._ch,this._ch==="\\")F+=this._input.next();else if(D.indexOf(this._ch)!==-1||this._ch===`
`)break;this._ch=this._input.next()}return F},b.prototype.eatWhitespace=function(D){for(var F=P.test(this._input.peek()),U=0;P.test(this._input.peek());)this._ch=this._input.next(),D&&this._ch===`
`&&(U===0||U<this._options.max_preserve_newlines)&&(U++,this._output.add_new_line(!0));return F},b.prototype.foundNestedPseudoClass=function(){for(var D=0,F=1,U=this._input.peek(F);U;){if(U==="{")return!0;if(U==="(")D+=1;else if(U===")"){if(D===0)return!1;D-=1}else if(U===";"||U==="}")return!1;F++,U=this._input.peek(F)}return!1},b.prototype.print_string=function(D){this._output.set_indent(this._indentLevel),this._output.non_breaking_space=!0,this._output.add_token(D)},b.prototype.preserveSingleSpace=function(D){D&&(this._output.space_before_token=!0)},b.prototype.indent=function(){this._indentLevel++},b.prototype.outdent=function(){this._indentLevel>0&&this._indentLevel--},b.prototype.beautify=function(){if(this._options.disabled)return this._source_text;var D=this._source_text,F=this._options.eol;F==="auto"&&(F=`
`,D&&q.test(D||"")&&(F=D.match(q)[0])),D=D.replace(ae,`
`);var U=D.match(/^[\t ]*/)[0];this._output=new v(this._options,U),this._input=new c(D),this._indentLevel=0,this._nestedLevel=0,this._ch=null;for(var fe=0,ye=!1,Se=!1,Ne=!1,Z=!1,B=!1,ne=this._ch,X=!1,me,ee,g;me=this._input.read(z),ee=me!=="",g=ne,this._ch=this._input.next(),this._ch==="\\"&&this._input.hasNext()&&(this._ch+=this._input.next()),ne=this._ch,this._ch;)if(this._ch==="/"&&this._input.peek()==="*"){this._output.add_new_line(),this._input.back();var w=this._input.read(W),Q=y.get_directives(w);Q&&Q.ignore==="start"&&(w+=y.readIgnored(this._input)),this.print_string(w),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(re)),this.eatWhitespace(!0);else if(this._ch==="$"){this.preserveSingleSpace(ee),this.print_string(this._ch);var J=this._input.peekUntilAfter(/[: ,;{}()[\]\/='"]/g);J.match(/[ :]$/)&&(J=this.eatString(": ").replace(/\s+$/,""),this.print_string(J),this._output.space_before_token=!0),fe===0&&J.indexOf(":")!==-1&&(Se=!0,this.indent())}else if(this._ch==="@")if(this.preserveSingleSpace(ee),this._input.peek()==="{")this.print_string(this._ch+this.eatString("}"));else{this.print_string(this._ch);var Pe=this._input.peekUntilAfter(/[: ,;{}()[\]\/='"]/g);Pe.match(/[ :]$/)&&(Pe=this.eatString(": ").replace(/\s+$/,""),this.print_string(Pe),this._output.space_before_token=!0),fe===0&&Pe.indexOf(":")!==-1?(Se=!0,this.indent()):Pe in this.NESTED_AT_RULE?(this._nestedLevel+=1,Pe in this.CONDITIONAL_GROUP_RULE&&(Ne=!0)):fe===0&&!Se&&(Z=!0)}else if(this._ch==="#"&&this._input.peek()==="{")this.preserveSingleSpace(ee),this.print_string(this._ch+this.eatString("}"));else if(this._ch==="{")Se&&(Se=!1,this.outdent()),Z=!1,Ne?(Ne=!1,ye=this._indentLevel>=this._nestedLevel):ye=this._indentLevel>=this._nestedLevel-1,this._options.newline_between_rules&&ye&&this._output.previous_line&&this._output.previous_line.item(-1)!=="{"&&this._output.ensure_empty_line_above("/",","),this._output.space_before_token=!0,this._options.brace_style==="expand"?(this._output.add_new_line(),this.print_string(this._ch),this.indent(),this._output.set_indent(this._indentLevel)):(g==="("?this._output.space_before_token=!1:g!==","&&this.indent(),this.print_string(this._ch)),this.eatWhitespace(!0),this._output.add_new_line();else if(this._ch==="}")this.outdent(),this._output.add_new_line(),g==="{"&&this._output.trim(!0),Se&&(this.outdent(),Se=!1),this.print_string(this._ch),ye=!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 Ue=0;Ue<this.NON_SEMICOLON_NEWLINE_PROPERTY.length;Ue++)if(this._input.lookBack(this.NON_SEMICOLON_NEWLINE_PROPERTY[Ue])){X=!0;break}(ye||Ne)&&!(this._input.lookBack("&")||this.foundNestedPseudoClass())&&!this._input.lookBack("(")&&!Z&&fe===0?(this.print_string(":"),Se||(Se=!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 Xe=g==='"'||g==="'";this.preserveSingleSpace(Xe||ee),this.print_string(this._ch+this.eatString(this._ch)),this.eatWhitespace(!0)}else if(this._ch===";")X=!1,fe===0?(Se&&(this.outdent(),Se=!1),Z=!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(),fe++,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(")")),fe&&(fe--,this.outdent()));else{var Ze=!1;this._input.lookBack("with")&&(Ze=!0),this.preserveSingleSpace(ee||Ze),this.print_string(this._ch),Se&&g==="$"&&this._options.selector_separator_newline?(this._output.add_new_line(),B=!0):(this.eatWhitespace(),fe++,this.indent())}else if(this._ch===")")fe&&(fe--,this.outdent()),B&&this._input.peek()===";"&&this._options.selector_separator_newline&&(B=!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&&(!Se||B)&&fe===0&&!Z?this._output.add_new_line():this._output.space_before_token=!0;else if((this._ch===">"||this._ch==="+"||this._ch==="~")&&!Se&&fe===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(ee),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 lt=g==='"'||g==="'";this.preserveSingleSpace(lt||ee),this.print_string(this._ch),!this._output.just_added_newline()&&this._input.peek()===`
`&&X&&this._output.add_new_line()}var at=this._output.get_code(F);return at},be.exports.Beautifier=b},function(be,o,L){var $=L(6).Options;function v(c){$.call(this,c,"css"),this.selector_separator_newline=this._get_boolean("selector_separator_newline",!0),this.newline_between_rules=this._get_boolean("newline_between_rules",!0);var S=this._get_boolean("space_around_selector_separator");this.space_around_combinator=this._get_boolean("space_around_combinator")||S;var y=this._get_selection_list("brace_style",["collapse","expand","end-expand","none","preserve-inline"]);this.brace_style="collapse";for(var q=0;q<y.length;q++)y[q]!=="expand"?this.brace_style="collapse":this.brace_style=y[q]}v.prototype=new $,be.exports.Options=v}],ve={};function le(be){var o=ve[be];if(o!==void 0)return o.exports;var L=ve[be]={exports:{}};return Re[be](L,L.exports,le),L.exports}var Te=le(15);N=Te})();var ie=N;_=[],T=function(){return{css_beautify:ie}}.apply(et,_),T!==void 0&&(Ht.exports=T)})()},40998:function(Ht,et,_){var T,N;(function(){var ie;(function(){"use strict";var Te=[,,function($){function v(y){this.__parent=y,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=[]}v.prototype.clone_empty=function(){var y=new v(this.__parent);return y.set_indent(this.__indent_count,this.__alignment_count),y},v.prototype.item=function(y){return y<0?this.__items[this.__items.length+y]:this.__items[y]},v.prototype.has_match=function(y){for(var q=this.__items.length-1;q>=0;q--)if(this.__items[q].match(y))return!0;return!1},v.prototype.set_indent=function(y,q){this.is_empty()&&(this.__indent_count=y||0,this.__alignment_count=q||0,this.__character_count=this.__parent.get_indent_size(this.__indent_count,this.__alignment_count))},v.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)},v.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},v.prototype._allow_wrap=function(){if(this._should_wrap()){this.__parent.add_new_line();var y=this.__parent.current_line;return y.set_indent(this.__wrap_point_indent_count,this.__wrap_point_alignment_count),y.__items=this.__items.slice(this.__wrap_point_index),this.__items=this.__items.slice(0,this.__wrap_point_index),y.__character_count+=this.__character_count-this.__wrap_point_character_count,this.__character_count=this.__wrap_point_character_count,y.__items[0]===" "&&(y.__items.splice(0,1),y.__character_count-=1),!0}return!1},v.prototype.is_empty=function(){return this.__items.length===0},v.prototype.last=function(){return this.is_empty()?null:this.__items[this.__items.length-1]},v.prototype.push=function(y){this.__items.push(y);var q=y.lastIndexOf(`
`);q!==-1?this.__character_count=y.length-q:this.__character_count+=y.length},v.prototype.pop=function(){var y=null;return this.is_empty()||(y=this.__items.pop(),this.__character_count-=y.length),y},v.prototype._remove_indent=function(){this.__indent_count>0&&(this.__indent_count-=1,this.__character_count-=this.__parent.indent_size)},v.prototype._remove_wrap_indent=function(){this.__wrap_point_indent_count>0&&(this.__wrap_point_indent_count-=1)},v.prototype.trim=function(){for(;this.last()===" ";)this.__items.pop(),this.__character_count-=1},v.prototype.toString=function(){var y="";return this.is_empty()?this.__parent.indent_empty_lines&&(y=this.__parent.get_indent_string(this.__indent_count)):(y=this.__parent.get_indent_string(this.__indent_count,this.__alignment_count),y+=this.__items.join("")),y};function c(y,q){this.__cache=[""],this.__indent_size=y.indent_size,this.__indent_string=y.indent_char,y.indent_with_tabs||(this.__indent_string=new Array(y.indent_size+1).join(y.indent_char)),q=q||"",y.indent_level>0&&(q=new Array(y.indent_level+1).join(this.__indent_string)),this.__base_string=q,this.__base_string_length=q.length}c.prototype.get_indent_size=function(y,q){var ae=this.__base_string_length;return q=q||0,y<0&&(ae=0),ae+=y*this.__indent_size,ae+=q,ae},c.prototype.get_indent_string=function(y,q){var ae=this.__base_string;return q=q||0,y<0&&(y=0,ae=""),q+=y*this.__indent_size,this.__ensure_cache(q),ae+=this.__cache[q],ae},c.prototype.__ensure_cache=function(y){for(;y>=this.__cache.length;)this.__add_column()},c.prototype.__add_column=function(){var y=this.__cache.length,q=0,ae="";this.__indent_size&&y>=this.__indent_size&&(q=Math.floor(y/this.__indent_size),y-=q*this.__indent_size,ae=new Array(q+1).join(this.__indent_string)),y&&(ae+=new Array(y+1).join(" ")),this.__cache.push(ae)};function S(y,q){this.__indent_cache=new c(y,q),this.raw=!1,this._end_with_newline=y.end_with_newline,this.indent_size=y.indent_size,this.wrap_line_length=y.wrap_line_length,this.indent_empty_lines=y.indent_empty_lines,this.__lines=[],this.previous_line=null,this.current_line=null,this.next_line=new v(this),this.space_before_token=!1,this.non_breaking_space=!1,this.previous_token_wrapped=!1,this.__add_outputline()}S.prototype.__add_outputline=function(){this.previous_line=this.current_line,this.current_line=this.next_line.clone_empty(),this.__lines.push(this.current_line)},S.prototype.get_line_number=function(){return this.__lines.length},S.prototype.get_indent_string=function(y,q){return this.__indent_cache.get_indent_string(y,q)},S.prototype.get_indent_size=function(y,q){return this.__indent_cache.get_indent_size(y,q)},S.prototype.is_empty=function(){return!this.previous_line&&this.current_line.is_empty()},S.prototype.add_new_line=function(y){return this.is_empty()||!y&&this.just_added_newline()?!1:(this.raw||this.__add_outputline(),!0)},S.prototype.get_code=function(y){this.trim(!0);var q=this.current_line.pop();q&&(q[q.length-1]===`
`&&(q=q.replace(/\n+$/g,"")),this.current_line.push(q)),this._end_with_newline&&this.__add_outputline();var ae=this.__lines.join(`
`);return y!==`
`&&(ae=ae.replace(/[\n]/g,y)),ae},S.prototype.set_wrap_point=function(){this.current_line._set_wrap_point()},S.prototype.set_indent=function(y,q){return y=y||0,q=q||0,this.next_line.set_indent(y,q),this.__lines.length>1?(this.current_line.set_indent(y,q),!0):(this.current_line.set_indent(),!1)},S.prototype.add_raw_token=function(y){for(var q=0;q<y.newlines;q++)this.__add_outputline();this.current_line.set_indent(-1),this.current_line.push(y.whitespace_before),this.current_line.push(y.text),this.space_before_token=!1,this.non_breaking_space=!1,this.previous_token_wrapped=!1},S.prototype.add_token=function(y){this.__add_space_before_token(),this.current_line.push(y),this.space_before_token=!1,this.non_breaking_space=!1,this.previous_token_wrapped=this.current_line._allow_wrap()},S.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(" "))},S.prototype.remove_indent=function(y){for(var q=this.__lines.length;y<q;)this.__lines[y]._remove_indent(),y++;this.current_line._remove_wrap_indent()},S.prototype.trim=function(y){for(y=y===void 0?!1:y,this.current_line.trim();y&&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},S.prototype.just_added_newline=function(){return this.current_line.is_empty()},S.prototype.just_added_blankline=function(){return this.is_empty()||this.current_line.is_empty()&&this.previous_line.is_empty()},S.prototype.ensure_empty_line_above=function(y,q){for(var ae=this.__lines.length-2;ae>=0;){var P=this.__lines[ae];if(P.is_empty())break;if(P.item(0).indexOf(y)!==0&&P.item(-1)!==q){this.__lines.splice(ae+1,0,new v(this)),this.previous_line=this.__lines[this.__lines.length-2];break}ae--}},$.exports.Output=S},function($){function v(c,S,y,q){this.type=c,this.text=S,this.comments_before=null,this.newlines=y||0,this.whitespace_before=q||"",this.parent=null,this.next=null,this.previous=null,this.opened=null,this.closed=null,this.directives=null}$.exports.Token=v},,,function($){function v(y,q){this.raw_options=c(y,q),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"])}v.prototype._get_array=function(y,q){var ae=this.raw_options[y],P=q||[];return typeof ae=="object"?ae!==null&&typeof ae.concat=="function"&&(P=ae.concat()):typeof ae=="string"&&(P=ae.split(/[^a-zA-Z0-9_\/\-]+/)),P},v.prototype._get_boolean=function(y,q){var ae=this.raw_options[y],P=ae===void 0?!!q:!!ae;return P},v.prototype._get_characters=function(y,q){var ae=this.raw_options[y],P=q||"";return typeof ae=="string"&&(P=ae.replace(/\\r/,"\r").replace(/\\n/,`
`).replace(/\\t/," ")),P},v.prototype._get_number=function(y,q){var ae=this.raw_options[y];q=parseInt(q,10),isNaN(q)&&(q=0);var P=parseInt(ae,10);return isNaN(P)&&(P=q),P},v.prototype._get_selection=function(y,q,ae){var P=this._get_selection_list(y,q,ae);if(P.length!==1)throw new Error("Invalid Option Value: The option '"+y+`' can only be one of the following values:
`+q+`
You passed in: '`+this.raw_options[y]+"'");return P[0]},v.prototype._get_selection_list=function(y,q,ae){if(!q||q.length===0)throw new Error("Selection list cannot be empty.");if(ae=ae||[q[0]],!this._is_valid_selection(ae,q))throw new Error("Invalid Default Value!");var P=this._get_array(y,ae);if(!this._is_valid_selection(P,q))throw new Error("Invalid Option Value: The option '"+y+`' can contain only the following values:
`+q+`
You passed in: '`+this.raw_options[y]+"'");return P},v.prototype._is_valid_selection=function(y,q){return y.length&&q.length&&!y.some(function(ae){return q.indexOf(ae)===-1})};function c(y,q){var ae={};y=S(y);var P;for(P in y)P!==q&&(ae[P]=y[P]);if(q&&y[q])for(P in y[q])ae[P]=y[q][P];return ae}function S(y){var q={},ae;for(ae in y){var P=ae.replace(/-/g,"_");q[P]=y[ae]}return q}$.exports.Options=v,$.exports.normalizeOpts=S,$.exports.mergeOpts=c},,function($){var v=RegExp.prototype.hasOwnProperty("sticky");function c(S){this.__input=S||"",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 S=null;return this.hasNext()&&(S=this.__input.charAt(this.__position),this.__position+=1),S},c.prototype.peek=function(S){var y=null;return S=S||0,S+=this.__position,S>=0&&S<this.__input_length&&(y=this.__input.charAt(S)),y},c.prototype.__match=function(S,y){S.lastIndex=y;var q=S.exec(this.__input);return q&&!(v&&S.sticky)&&q.index!==y&&(q=null),q},c.prototype.test=function(S,y){return y=y||0,y+=this.__position,y>=0&&y<this.__input_length?!!this.__match(S,y):!1},c.prototype.testChar=function(S,y){var q=this.peek(y);return S.lastIndex=0,q!==null&&S.test(q)},c.prototype.match=function(S){var y=this.__match(S,this.__position);return y?this.__position+=y[0].length:y=null,y},c.prototype.read=function(S,y,q){var ae="",P;return S&&(P=this.match(S),P&&(ae+=P[0])),y&&(P||!S)&&(ae+=this.readUntil(y,q)),ae},c.prototype.readUntil=function(S,y){var q="",ae=this.__position;S.lastIndex=this.__position;var P=S.exec(this.__input);return P?(ae=P.index,y&&(ae+=P[0].length)):ae=this.__input_length,q=this.__input.substring(this.__position,ae),this.__position=ae,q},c.prototype.readUntilAfter=function(S){return this.readUntil(S,!0)},c.prototype.get_regexp=function(S,y){var q=null,ae="g";return y&&v&&(ae="y"),typeof S=="string"&&S!==""?q=new RegExp(S,ae):S&&(q=new RegExp(S.source,ae)),q},c.prototype.get_literal_regexp=function(S){return RegExp(S.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&"))},c.prototype.peekUntilAfter=function(S){var y=this.__position,q=this.readUntilAfter(S);return this.__position=y,q},c.prototype.lookBack=function(S){var y=this.__position-1;return y>=S.length&&this.__input.substring(y-S.length,y).toLowerCase()===S},$.exports.InputScanner=c},function($,v,c){var S=c(8).InputScanner,y=c(3).Token,q=c(10).TokenStream,ae=c(11).WhitespacePattern,P={START:"TK_START",RAW:"TK_RAW",EOF:"TK_EOF"},z=function(W,re){this._input=new S(W),this._options=re||{},this.__tokens=null,this._patterns={},this._patterns.whitespace=new ae(this._input)};z.prototype.tokenize=function(){this._input.restart(),this.__tokens=new q,this._reset();for(var W,re=new y(P.START,""),b=null,D=[],F=new q;re.type!==P.EOF;){for(W=this._get_next_token(re,b);this._is_comment(W);)F.add(W),W=this._get_next_token(re,b);F.isEmpty()||(W.comments_before=F,F=new q),W.parent=b,this._is_opening(W)?(D.push(b),b=W):b&&this._is_closing(W,b)&&(W.opened=b,b.closed=W,b=D.pop(),W.parent=b),W.previous=re,re.next=W,this.__tokens.add(W),re=W}return this.__tokens},z.prototype._is_first_token=function(){return this.__tokens.isEmpty()},z.prototype._reset=function(){},z.prototype._get_next_token=function(W,re){this._readWhitespace();var b=this._input.read(/.+/g);return b?this._create_token(P.RAW,b):this._create_token(P.EOF,"")},z.prototype._is_comment=function(W){return!1},z.prototype._is_opening=function(W){return!1},z.prototype._is_closing=function(W,re){return!1},z.prototype._create_token=function(W,re){var b=new y(W,re,this._patterns.whitespace.newline_count,this._patterns.whitespace.whitespace_before_token);return b},z.prototype._readWhitespace=function(){return this._patterns.whitespace.read()},$.exports.Tokenizer=z,$.exports.TOKEN=P},function($){function v(c){this.__tokens=[],this.__tokens_length=this.__tokens.length,this.__position=0,this.__parent_token=c}v.prototype.restart=function(){this.__position=0},v.prototype.isEmpty=function(){return this.__tokens_length===0},v.prototype.hasNext=function(){return this.__position<this.__tokens_length},v.prototype.next=function(){var c=null;return this.hasNext()&&(c=this.__tokens[this.__position],this.__position+=1),c},v.prototype.peek=function(c){var S=null;return c=c||0,c+=this.__position,c>=0&&c<this.__tokens_length&&(S=this.__tokens[c]),S},v.prototype.add=function(c){this.__parent_token&&(c.parent=this.__parent_token),this.__tokens.push(c),this.__tokens_length+=1},$.exports.TokenStream=v},function($,v,c){var S=c(12).Pattern;function y(q,ae){S.call(this,q,ae),ae?this._line_regexp=this._input.get_regexp(ae._line_regexp):this.__set_whitespace_patterns("",""),this.newline_count=0,this.whitespace_before_token=""}y.prototype=new S,y.prototype.__set_whitespace_patterns=function(q,ae){q+="\\t ",ae+="\\n\\r",this._match_pattern=this._input.get_regexp("["+q+ae+"]+",!0),this._newline_regexp=this._input.get_regexp("\\r\\n|["+ae+"]")},y.prototype.read=function(){this.newline_count=0,this.whitespace_before_token="";var q=this._input.read(this._match_pattern);if(q===" ")this.whitespace_before_token=" ";else if(q){var ae=this.__split(this._newline_regexp,q);this.newline_count=ae.length-1,this.whitespace_before_token=ae[this.newline_count]}return q},y.prototype.matching=function(q,ae){var P=this._create();return P.__set_whitespace_patterns(q,ae),P._update(),P},y.prototype._create=function(){return new y(this._input,this)},y.prototype.__split=function(q,ae){q.lastIndex=0;for(var P=0,z=[],W=q.exec(ae);W;)z.push(ae.substring(P,W.index)),P=W.index+W[0].length,W=q.exec(ae);return P<ae.length?z.push(ae.substring(P,ae.length)):z.push(""),z},$.exports.WhitespacePattern=y},function($){function v(c,S){this._input=c,this._starting_pattern=null,this._match_pattern=null,this._until_pattern=null,this._until_after=!1,S&&(this._starting_pattern=this._input.get_regexp(S._starting_pattern,!0),this._match_pattern=this._input.get_regexp(S._match_pattern,!0),this._until_pattern=this._input.get_regexp(S._until_pattern),this._until_after=S._until_after)}v.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},v.prototype.read_match=function(){return this._input.match(this._match_pattern)},v.prototype.until_after=function(c){var S=this._create();return S._until_after=!0,S._until_pattern=this._input.get_regexp(c),S._update(),S},v.prototype.until=function(c){var S=this._create();return S._until_after=!1,S._until_pattern=this._input.get_regexp(c),S._update(),S},v.prototype.starting_with=function(c){var S=this._create();return S._starting_pattern=this._input.get_regexp(c,!0),S._update(),S},v.prototype.matching=function(c){var S=this._create();return S._match_pattern=this._input.get_regexp(c,!0),S._update(),S},v.prototype._create=function(){return new v(this._input,this)},v.prototype._update=function(){},$.exports.Pattern=v},function($){function v(c,S){c=typeof c=="string"?c:c.source,S=typeof S=="string"?S:S.source,this.__directives_block_pattern=new RegExp(c+/ beautify( \w+[:]\w+)+ /.source+S,"g"),this.__directive_pattern=/ (\w+)[:](\w+)/g,this.__directives_end_ignore_pattern=new RegExp(c+/\sbeautify\signore:end\s/.source+S,"g")}v.prototype.get_directives=function(c){if(!c.match(this.__directives_block_pattern))return null;var S={};this.__directive_pattern.lastIndex=0;for(var y=this.__directive_pattern.exec(c);y;)S[y[1]]=y[2],y=this.__directive_pattern.exec(c);return S},v.prototype.readIgnored=function(c){return c.readUntilAfter(this.__directives_end_ignore_pattern)},$.exports.Directives=v},function($,v,c){var S=c(12).Pattern,y={django:!1,erb:!1,handlebars:!1,php:!1,smarty:!1,angular:!1};function q(ae,P){S.call(this,ae,P),this.__template_pattern=null,this._disabled=Object.assign({},y),this._excluded=Object.assign({},y),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 z=new S(ae);this.__patterns={handlebars_comment:z.starting_with(/{{!--/).until_after(/--}}/),handlebars_unescaped:z.starting_with(/{{{/).until_after(/}}}/),handlebars:z.starting_with(/{{/).until_after(/}}/),php:z.starting_with(/<\?(?:[= ]|php)/).until_after(/\?>/),erb:z.starting_with(/<%[^%]/).until_after(/[^%]%>/),django:z.starting_with(/{%/).until_after(/%}/),django_value:z.starting_with(/{{/).until_after(/}}/),django_comment:z.starting_with(/{#/).until_after(/#}/),smarty:z.starting_with(/{(?=[^}{\s\n])/).until_after(/[^\s\n]}/),smarty_comment:z.starting_with(/{\*/).until_after(/\*}/),smarty_literal:z.starting_with(/{literal}/).until_after(/{\/literal}/)}}q.prototype=new S,q.prototype._create=function(){return new q(this._input,this)},q.prototype._update=function(){this.__set_templated_pattern()},q.prototype.disable=function(ae){var P=this._create();return P._disabled[ae]=!0,P._update(),P},q.prototype.read_options=function(ae){var P=this._create();for(var z in y)P._disabled[z]=ae.templating.indexOf(z)===-1;return P._update(),P},q.prototype.exclude=function(ae){var P=this._create();return P._excluded[ae]=!0,P._update(),P},q.prototype.read=function(){var ae="";this._match_pattern?ae=this._input.read(this._starting_pattern):ae=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),ae+=P,P=this._read_template();return this._until_after&&(ae+=this._input.readUntilAfter(this._until_pattern)),ae},q.prototype.__set_templated_pattern=function(){var ae=[];this._disabled.php||ae.push(this.__patterns.php._starting_pattern.source),this._disabled.handlebars||ae.push(this.__patterns.handlebars._starting_pattern.source),this._disabled.angular||ae.push(this.__patterns.handlebars._starting_pattern.source),this._disabled.erb||ae.push(this.__patterns.erb._starting_pattern.source),this._disabled.django||(ae.push(this.__patterns.django._starting_pattern.source),ae.push(this.__patterns.django_value._starting_pattern.source),ae.push(this.__patterns.django_comment._starting_pattern.source)),this._disabled.smarty||ae.push(this.__patterns.smarty._starting_pattern.source),this._until_pattern&&ae.push(this._until_pattern.source),this.__template_pattern=this._input.get_regexp("(?:"+ae.join("|")+")")},q.prototype._read_template=function(){var ae="",P=this._input.peek();if(P==="<"){var z=this._input.peek(1);!this._disabled.php&&!this._excluded.php&&z==="?"&&(ae=ae||this.__patterns.php.read()),!this._disabled.erb&&!this._excluded.erb&&z==="%"&&(ae=ae||this.__patterns.erb.read())}else P==="{"&&(!this._disabled.handlebars&&!this._excluded.handlebars&&(ae=ae||this.__patterns.handlebars_comment.read(),ae=ae||this.__patterns.handlebars_unescaped.read(),ae=ae||this.__patterns.handlebars.read()),this._disabled.django||(!this._excluded.django&&!this._excluded.handlebars&&(ae=ae||this.__patterns.django_value.read()),this._excluded.django||(ae=ae||this.__patterns.django_comment.read(),ae=ae||this.__patterns.django.read())),this._disabled.smarty||this._disabled.django&&this._disabled.handlebars&&(ae=ae||this.__patterns.smarty_comment.read(),ae=ae||this.__patterns.smarty_literal.read(),ae=ae||this.__patterns.smarty.read()));return ae},$.exports.TemplatablePattern=q},,,,function($,v,c){var S=c(19).Beautifier,y=c(20).Options;function q(ae,P,z,W){var re=new S(ae,P,z,W);return re.beautify()}$.exports=q,$.exports.defaultOptions=function(){return new y}},function($,v,c){var S=c(20).Options,y=c(2).Output,q=c(21).Tokenizer,ae=c(21).TOKEN,P=/\r\n|[\r\n]/,z=/\r\n|[\r\n]/g,W=function(Z,B){this.indent_level=0,this.alignment_size=0,this.max_preserve_newlines=Z.max_preserve_newlines,this.preserve_newlines=Z.preserve_newlines,this._output=new y(Z,B)};W.prototype.current_line_has_match=function(Z){return this._output.current_line.has_match(Z)},W.prototype.set_space_before_token=function(Z,B){this._output.space_before_token=Z,this._output.non_breaking_space=B},W.prototype.set_wrap_point=function(){this._output.set_indent(this.indent_level,this.alignment_size),this._output.set_wrap_point()},W.prototype.add_raw_token=function(Z){this._output.add_raw_token(Z)},W.prototype.print_preserved_newlines=function(Z){var B=0;Z.type!==ae.TEXT&&Z.previous.type!==ae.TEXT&&(B=Z.newlines?1:0),this.preserve_newlines&&(B=Z.newlines<this.max_preserve_newlines+1?Z.newlines:this.max_preserve_newlines+1);for(var ne=0;ne<B;ne++)this.print_newline(ne>0);return B!==0},W.prototype.traverse_whitespace=function(Z){return Z.whitespace_before||Z.newlines?(this.print_preserved_newlines(Z)||(this._output.space_before_token=!0),!0):!1},W.prototype.previous_token_wrapped=function(){return this._output.previous_token_wrapped},W.prototype.print_newline=function(Z){this._output.add_new_line(Z)},W.prototype.print_token=function(Z){Z.text&&(this._output.set_indent(this.indent_level,this.alignment_size),this._output.add_token(Z.text))},W.prototype.indent=function(){this.indent_level++},W.prototype.deindent=function(){this.indent_level>0&&(this.indent_level--,this._output.set_indent(this.indent_level,this.alignment_size))},W.prototype.get_full_indent=function(Z){return Z=this.indent_level+(Z||0),Z<1?"":this._output.get_indent_string(Z)};var re=function(Z){for(var B=null,ne=Z.next;ne.type!==ae.EOF&&Z.closed!==ne;){if(ne.type===ae.ATTRIBUTE&&ne.text==="type"){ne.next&&ne.next.type===ae.EQUALS&&ne.next.next&&ne.next.next.type===ae.VALUE&&(B=ne.next.next.text);break}ne=ne.next}return B},b=function(Z,B){var ne=null,X=null;return B.closed?(Z==="script"?ne="text/javascript":Z==="style"&&(ne="text/css"),ne=re(B)||ne,ne.search("text/css")>-1?X="css":ne.search(/module|((text|application|dojo)\/(x-)?(javascript|ecmascript|jscript|livescript|(ld\+)?json|method|aspect))/)>-1?X="javascript":ne.search(/(text|application|dojo)\/(x-)?(html)/)>-1?X="html":ne.search(/test\/null/)>-1&&(X="null"),X):null};function D(Z,B){return B.indexOf(Z)!==-1}function F(Z,B,ne){this.parent=Z||null,this.tag=B?B.tag_name:"",this.indent_level=ne||0,this.parser_token=B||null}function U(Z){this._printer=Z,this._current_frame=null}U.prototype.get_parser_token=function(){return this._current_frame?this._current_frame.parser_token:null},U.prototype.record_tag=function(Z){var B=new F(this._current_frame,Z,this._printer.indent_level);this._current_frame=B},U.prototype._try_pop_frame=function(Z){var B=null;return Z&&(B=Z.parser_token,this._printer.indent_level=Z.indent_level,this._current_frame=Z.parent),B},U.prototype._get_frame=function(Z,B){for(var ne=this._current_frame;ne&&Z.indexOf(ne.tag)===-1;){if(B&&B.indexOf(ne.tag)!==-1){ne=null;break}ne=ne.parent}return ne},U.prototype.try_pop=function(Z,B){var ne=this._get_frame([Z],B);return this._try_pop_frame(ne)},U.prototype.indent_to_tag=function(Z){var B=this._get_frame(Z);B&&(this._printer.indent_level=B.indent_level)};function fe(Z,B,ne,X){this._source_text=Z||"",B=B||{},this._js_beautify=ne,this._css_beautify=X,this._tag_stack=null;var me=new S(B,"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"}fe.prototype.beautify=function(){if(this._options.disabled)return this._source_text;var Z=this._source_text,B=this._options.eol;this._options.eol==="auto"&&(B=`
`,Z&&P.test(Z)&&(B=Z.match(P)[0])),Z=Z.replace(z,`
`);var ne=Z.match(/^[\t ]*/)[0],X={text:"",type:""},me=new ye(this._options),ee=new W(this._options,ne),g=new q(Z,this._options).tokenize();this._tag_stack=new U(ee);for(var w=null,Q=g.next();Q.type!==ae.EOF;)Q.type===ae.TAG_OPEN||Q.type===ae.COMMENT?(w=this._handle_tag_open(ee,Q,me,X,g),me=w):Q.type===ae.ATTRIBUTE||Q.type===ae.EQUALS||Q.type===ae.VALUE||Q.type===ae.TEXT&&!me.tag_complete?w=this._handle_inside_tag(ee,Q,me,X):Q.type===ae.TAG_CLOSE?w=this._handle_tag_close(ee,Q,me):Q.type===ae.TEXT?w=this._handle_text(ee,Q,me):Q.type===ae.CONTROL_FLOW_OPEN?w=this._handle_control_flow_open(ee,Q):Q.type===ae.CONTROL_FLOW_CLOSE?w=this._handle_control_flow_close(ee,Q):ee.add_raw_token(Q),X=w,Q=g.next();var J=ee._output.get_code(B);return J},fe.prototype._handle_control_flow_open=function(Z,B){var ne={text:B.text,type:B.type};return Z.set_space_before_token(B.newlines||B.whitespace_before!=="",!0),B.newlines?Z.print_preserved_newlines(B):Z.set_space_before_token(B.newlines||B.whitespace_before!=="",!0),Z.print_token(B),Z.indent(),ne},fe.prototype._handle_control_flow_close=function(Z,B){var ne={text:B.text,type:B.type};return Z.deindent(),B.newlines?Z.print_preserved_newlines(B):Z.set_space_before_token(B.newlines||B.whitespace_before!=="",!0),Z.print_token(B),ne},fe.prototype._handle_tag_close=function(Z,B,ne){var X={text:B.text,type:B.type};return Z.alignment_size=0,ne.tag_complete=!0,Z.set_space_before_token(B.newlines||B.whitespace_before!=="",!0),ne.is_unformatted?Z.add_raw_token(B):(ne.tag_start_char==="<"&&(Z.set_space_before_token(B.text[0]==="/",!0),this._is_wrap_attributes_force_expand_multiline&&ne.has_wrapped_attrs&&Z.print_newline(!1)),Z.print_token(B)),ne.indent_content&&!(ne.is_unformatted||ne.is_content_unformatted)&&(Z.indent(),ne.indent_content=!1),!ne.is_inline_element&&!(ne.is_unformatted||ne.is_content_unformatted)&&Z.set_wrap_point(),X},fe.prototype._handle_inside_tag=function(Z,B,ne,X){var me=ne.has_wrapped_attrs,ee={text:B.text,type:B.type};return Z.set_space_before_token(B.newlines||B.whitespace_before!=="",!0),ne.is_unformatted?Z.add_raw_token(B):ne.tag_start_char==="{"&&B.type===ae.TEXT?Z.print_preserved_newlines(B)?(B.newlines=0,Z.add_raw_token(B)):Z.print_token(B):(B.type===ae.ATTRIBUTE?Z.set_space_before_token(!0):(B.type===ae.EQUALS||B.type===ae.VALUE&&B.previous.type===ae.EQUALS)&&Z.set_space_before_token(!1),B.type===ae.ATTRIBUTE&&ne.tag_start_char==="<"&&((this._is_wrap_attributes_preserve||this._is_wrap_attributes_preserve_aligned)&&(Z.traverse_whitespace(B),me=me||B.newlines!==0),this._is_wrap_attributes_force&&ne.attr_count>=this._options.wrap_attributes_min_attrs&&(X.type!==ae.TAG_OPEN||this._is_wrap_attributes_force_expand_multiline)&&(Z.print_newline(!1),me=!0)),Z.print_token(B),me=me||Z.previous_token_wrapped(),ne.has_wrapped_attrs=me),ee},fe.prototype._handle_text=function(Z,B,ne){var X={text:B.text,type:"TK_CONTENT"};return ne.custom_beautifier_name?this._print_custom_beatifier_text(Z,B,ne):ne.is_unformatted||ne.is_content_unformatted?Z.add_raw_token(B):(Z.traverse_whitespace(B),Z.print_token(B)),X},fe.prototype._print_custom_beatifier_text=function(Z,B,ne){var X=this;if(B.text!==""){var me=B.text,ee,g=1,w="",Q="";ne.custom_beautifier_name==="javascript"&&typeof this._js_beautify=="function"?ee=this._js_beautify:ne.custom_beautifier_name==="css"&&typeof this._css_beautify=="function"?ee=this._css_beautify:ne.custom_beautifier_name==="html"&&(ee=function(lt,at){var ct=new fe(lt,at,X._js_beautify,X._css_beautify);return ct.beautify()}),this._options.indent_scripts==="keep"?g=0:this._options.indent_scripts==="separate"&&(g=-Z.indent_level);var J=Z.get_full_indent(g);if(me=me.replace(/\n[ \t]*$/,""),ne.custom_beautifier_name!=="html"&&me[0]==="<"&&me.match(/^(<!--|<!\[CDATA\[)/)){var Pe=/^(<!--[^\n]*|<!\[CDATA\[)(\n?)([ \t\n]*)([\s\S]*)(-->|]]>)$/.exec(me);if(!Pe){Z.add_raw_token(B);return}w=J+Pe[1]+`
`,me=Pe[4],Pe[5]&&(Q=J+Pe[5]),me=me.replace(/\n[ \t]*$/,""),(Pe[2]||Pe[3].indexOf(`
`)!==-1)&&(Pe=Pe[3].match(/[ \t]+$/),Pe&&(B.whitespace_before=Pe[0]))}if(me)if(ee){var Ue=function(){this.eol=`
`};Ue.prototype=this._options.raw_options;var Xe=new Ue;me=ee(J+me,Xe)}else{var Ze=B.whitespace_before;Ze&&(me=me.replace(new RegExp(`
(`+Ze+")?","g"),`
`)),me=J+me.replace(/\n/g,`
`+J)}w&&(me?me=w+me+`
`+Q:me=w+Q),Z.print_newline(!1),me&&(B.text=me,B.whitespace_before="",B.newlines=0,Z.add_raw_token(B),Z.print_newline(!0))}},fe.prototype._handle_tag_open=function(Z,B,ne,X,me){var ee=this._get_tag_open_token(B);if((ne.is_unformatted||ne.is_content_unformatted)&&!ne.is_empty_element&&B.type===ae.TAG_OPEN&&!ee.is_start_tag?(Z.add_raw_token(B),ee.start_tag_token=this._tag_stack.try_pop(ee.tag_name)):(Z.traverse_whitespace(B),this._set_tag_position(Z,B,ee,ne,X),ee.is_inline_element||Z.set_wrap_point(),Z.print_token(B)),ee.is_start_tag&&this._is_wrap_attributes_force){var g=0,w;do w=me.peek(g),w.type===ae.ATTRIBUTE&&(ee.attr_count+=1),g+=1;while(w.type!==ae.EOF&&w.type!==ae.TAG_CLOSE)}return(this._is_wrap_attributes_force_aligned||this._is_wrap_attributes_aligned_multiple||this._is_wrap_attributes_preserve_aligned)&&(ee.alignment_size=B.text.length+1),!ee.tag_complete&&!ee.is_unformatted&&(Z.alignment_size=ee.alignment_size),ee};var ye=function(Z,B,ne){if(this.parent=B||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="",!ne)this.tag_complete=!0;else{var X;this.tag_start_char=ne.text[0],this.text=ne.text,this.tag_start_char==="<"?(X=ne.text.match(/^<([^\s>]*)/),this.tag_check=X?X[1]:""):(X=ne.text.match(/^{{~?(?:[\^]|#\*?)?([^\s}]+)/),this.tag_check=X?X[1]:"",(ne.text.startsWith("{{#>")||ne.text.startsWith("{{~#>"))&&this.tag_check[0]===">"&&(this.tag_check===">"&&ne.next!==null?this.tag_check=ne.next.text.split(" ")[0]:this.tag_check=ne.text.split(">")[1])),this.tag_check=this.tag_check.toLowerCase(),ne.type===ae.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||ne.closed&&ne.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==="{"&&(!Z.indent_handlebars||this.text.length<3||/[^#\^]/.test(this.text.charAt(me)))}};fe.prototype._get_tag_open_token=function(Z){var B=new ye(this._options,this._tag_stack.get_parser_token(),Z);return B.alignment_size=this._options.wrap_attributes_indent_size,B.is_end_tag=B.is_end_tag||D(B.tag_check,this._options.void_elements),B.is_empty_element=B.tag_complete||B.is_start_tag&&B.is_end_tag,B.is_unformatted=!B.tag_complete&&D(B.tag_check,this._options.unformatted),B.is_content_unformatted=!B.is_empty_element&&D(B.tag_check,this._options.content_unformatted),B.is_inline_element=D(B.tag_name,this._options.inline)||this._options.inline_custom_elements&&B.tag_name.includes("-")||B.tag_start_char==="{",B},fe.prototype._set_tag_position=function(Z,B,ne,X,me){if(ne.is_empty_element||(ne.is_end_tag?ne.start_tag_token=this._tag_stack.try_pop(ne.tag_name):(this._do_optional_end_element(ne)&&(ne.is_inline_element||Z.print_newline(!1)),this._tag_stack.record_tag(ne),(ne.tag_name==="script"||ne.tag_name==="style")&&!(ne.is_unformatted||ne.is_content_unformatted)&&(ne.custom_beautifier_name=b(ne.tag_check,B)))),D(ne.tag_check,this._options.extra_liners)&&(Z.print_newline(!1),Z._output.just_added_blankline()||Z.print_newline(!0)),ne.is_empty_element){if(ne.tag_start_char==="{"&&ne.tag_check==="else"){this._tag_stack.indent_to_tag(["if","unless","each"]),ne.indent_content=!0;var ee=Z.current_line_has_match(/{{#if/);ee||Z.print_newline(!1)}ne.tag_name==="!--"&&me.type===ae.TAG_CLOSE&&X.is_end_tag&&ne.text.indexOf(`
`)===-1||(ne.is_inline_element||ne.is_unformatted||Z.print_newline(!1),this._calcluate_parent_multiline(Z,ne))}else if(ne.is_end_tag){var g=!1;g=ne.start_tag_token&&ne.start_tag_token.multiline_content,g=g||!ne.is_inline_element&&!(X.is_inline_element||X.is_unformatted)&&!(me.type===ae.TAG_CLOSE&&ne.start_tag_token===X)&&me.type!=="TK_CONTENT",(ne.is_content_unformatted||ne.is_unformatted)&&(g=!1),g&&Z.print_newline(!1)}else ne.indent_content=!ne.custom_beautifier_name,ne.tag_start_char==="<"&&(ne.tag_name==="html"?ne.indent_content=this._options.indent_inner_html:ne.tag_name==="head"?ne.indent_content=this._options.indent_head_inner_html:ne.tag_name==="body"&&(ne.indent_content=this._options.indent_body_inner_html)),!(ne.is_inline_element||ne.is_unformatted)&&(me.type!=="TK_CONTENT"||ne.is_content_unformatted)&&Z.print_newline(!1),this._calcluate_parent_multiline(Z,ne)},fe.prototype._calcluate_parent_multiline=function(Z,B){B.parent&&Z._output.just_added_newline()&&!((B.is_inline_element||B.is_unformatted)&&B.parent.is_inline_element)&&(B.parent.multiline_content=!0)};var Se=["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"],Ne=["a","audio","del","ins","map","noscript","video"];fe.prototype._do_optional_end_element=function(Z){var B=null;if(!(Z.is_empty_element||!Z.is_start_tag||!Z.parent)){if(Z.tag_name==="body")B=B||this._tag_stack.try_pop("head");else if(Z.tag_name==="li")B=B||this._tag_stack.try_pop("li",["ol","ul","menu"]);else if(Z.tag_name==="dd"||Z.tag_name==="dt")B=B||this._tag_stack.try_pop("dt",["dl"]),B=B||this._tag_stack.try_pop("dd",["dl"]);else if(Z.parent.tag_name==="p"&&Se.indexOf(Z.tag_name)!==-1){var ne=Z.parent.parent;(!ne||Ne.indexOf(ne.tag_name)===-1)&&(B=B||this._tag_stack.try_pop("p"))}else Z.tag_name==="rp"||Z.tag_name==="rt"?(B=B||this._tag_stack.try_pop("rt",["ruby","rtc"]),B=B||this._tag_stack.try_pop("rp",["ruby","rtc"])):Z.tag_name==="optgroup"?B=B||this._tag_stack.try_pop("optgroup",["select"]):Z.tag_name==="option"?B=B||this._tag_stack.try_pop("option",["select","datalist","optgroup"]):Z.tag_name==="colgroup"?B=B||this._tag_stack.try_pop("caption",["table"]):Z.tag_name==="thead"?(B=B||this._tag_stack.try_pop("caption",["table"]),B=B||this._tag_stack.try_pop("colgroup",["table"])):Z.tag_name==="tbody"||Z.tag_name==="tfoot"?(B=B||this._tag_stack.try_pop("caption",["table"]),B=B||this._tag_stack.try_pop("colgroup",["table"]),B=B||this._tag_stack.try_pop("thead",["table"]),B=B||this._tag_stack.try_pop("tbody",["table"])):Z.tag_name==="tr"?(B=B||this._tag_stack.try_pop("caption",["table"]),B=B||this._tag_stack.try_pop("colgroup",["table"]),B=B||this._tag_stack.try_pop("tr",["table","thead","tbody","tfoot"])):(Z.tag_name==="th"||Z.tag_name==="td")&&(B=B||this._tag_stack.try_pop("td",["table","thead","tbody","tfoot","tr"]),B=B||this._tag_stack.try_pop("th",["table","thead","tbody","tfoot","tr"]));return Z.parent=this._tag_stack.get_parser_token(),B}},$.exports.Beautifier=fe},function($,v,c){var S=c(6).Options;function y(q){S.call(this,q,"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"])}y.prototype=new S,$.exports.Options=y},function($,v,c){var S=c(9).Tokenizer,y=c(9).TOKEN,q=c(13).Directives,ae=c(14).TemplatablePattern,P=c(12).Pattern,z={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:y.START,RAW:y.RAW,EOF:y.EOF},W=new q(/<\!--/,/-->/),re=function(b,D){S.call(this,b,D),this._current_tag_name="";var F=new ae(this._input).read_options(this._options),U=new P(this._input);if(this.__patterns={word:F.until(/[\n\r\t <]/),word_control_flow_close_excluded:F.until(/[\n\r\t <}]/),single_quote:F.until_after(/'/),double_quote:F.until_after(/"/),attribute:F.until(/[\n\r\t =>]|\/>/),element_name:F.until(/[\n\r\t >\/]/),angular_control_flow_start:U.matching(/\@[a-zA-Z]+[^({]*[({]/),handlebars_comment:U.starting_with(/{{!--/).until_after(/--}}/),handlebars:U.starting_with(/{{/).until_after(/}}/),handlebars_open:U.until(/[\n\r\t }]/),handlebars_raw_close:U.until(/}}/),comment:U.starting_with(/<!--/).until_after(/-->/),cdata:U.starting_with(/<!\[CDATA\[/).until_after(/]]>/),conditional_comment:U.starting_with(/<!\[/).until_after(/]>/),processing:U.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 fe=this._input.get_literal_regexp(this._options.unformatted_content_delimiter);this.__patterns.unformatted_content_delimiter=U.matching(fe).until_after(fe)}};re.prototype=new S,re.prototype._is_comment=function(b){return!1},re.prototype._is_opening=function(b){return b.type===z.TAG_OPEN||b.type===z.CONTROL_FLOW_OPEN},re.prototype._is_closing=function(b,D){return b.type===z.TAG_CLOSE&&D&&((b.text===">"||b.text==="/>")&&D.text[0]==="<"||b.text==="}}"&&D.text[0]==="{"&&D.text[1]==="{")||b.type===z.CONTROL_FLOW_CLOSE&&b.text==="}"&&D.text.endsWith("{")},re.prototype._reset=function(){this._current_tag_name=""},re.prototype._get_next_token=function(b,D){var F=null;this._readWhitespace();var U=this._input.peek();return U===null?this._create_token(z.EOF,""):(F=F||this._read_open_handlebars(U,D),F=F||this._read_attribute(U,b,D),F=F||this._read_close(U,D),F=F||this._read_script_and_style(U,b),F=F||this._read_control_flows(U,D),F=F||this._read_raw_content(U,b,D),F=F||this._read_content_word(U,D),F=F||this._read_comment_or_cdata(U),F=F||this._read_processing(U),F=F||this._read_open(U,D),F=F||this._create_token(z.UNKNOWN,this._input.next()),F)},re.prototype._read_comment_or_cdata=function(b){var D=null,F=null,U=null;if(b==="<"){var fe=this._input.peek(1);fe==="!"&&(F=this.__patterns.comment.read(),F?(U=W.get_directives(F),U&&U.ignore==="start"&&(F+=W.readIgnored(this._input))):F=this.__patterns.cdata.read()),F&&(D=this._create_token(z.COMMENT,F),D.directives=U)}return D},re.prototype._read_processing=function(b){var D=null,F=null,U=null;if(b==="<"){var fe=this._input.peek(1);(fe==="!"||fe==="?")&&(F=this.__patterns.conditional_comment.read(),F=F||this.__patterns.processing.read()),F&&(D=this._create_token(z.COMMENT,F),D.directives=U)}return D},re.prototype._read_open=function(b,D){var F=null,U=null;return(!D||D.type===z.CONTROL_FLOW_OPEN)&&b==="<"&&(F=this._input.next(),this._input.peek()==="/"&&(F+=this._input.next()),F+=this.__patterns.element_name.read(),U=this._create_token(z.TAG_OPEN,F)),U},re.prototype._read_open_handlebars=function(b,D){var F=null,U=null;return(!D||D.type===z.CONTROL_FLOW_OPEN)&&(this._options.templating.includes("angular")||this._options.indent_handlebars)&&b==="{"&&this._input.peek(1)==="{"&&(this._options.indent_handlebars&&this._input.peek(2)==="!"?(F=this.__patterns.handlebars_comment.read(),F=F||this.__patterns.handlebars.read(),U=this._create_token(z.COMMENT,F)):(F=this.__patterns.handlebars_open.read(),U=this._create_token(z.TAG_OPEN,F))),U},re.prototype._read_control_flows=function(b,D){var F="",U=null;if(!this._options.templating.includes("angular"))return U;if(b==="@"){if(F=this.__patterns.angular_control_flow_start.read(),F==="")return U;for(var fe=F.endsWith("(")?1:0,ye=0;!(F.endsWith("{")&&fe===ye);){var Se=this._input.next();if(Se===null)break;Se==="("?fe++:Se===")"&&ye++,F+=Se}U=this._create_token(z.CONTROL_FLOW_OPEN,F)}else b==="}"&&D&&D.type===z.CONTROL_FLOW_OPEN&&(F=this._input.next(),U=this._create_token(z.CONTROL_FLOW_CLOSE,F));return U},re.prototype._read_close=function(b,D){var F=null,U=null;return D&&D.type===z.TAG_OPEN&&(D.text[0]==="<"&&(b===">"||b==="/"&&this._input.peek(1)===">")?(F=this._input.next(),b==="/"&&(F+=this._input.next()),U=this._create_token(z.TAG_CLOSE,F)):D.text[0]==="{"&&b==="}"&&this._input.peek(1)==="}"&&(this._input.next(),this._input.next(),U=this._create_token(z.TAG_CLOSE,"}}"))),U},re.prototype._read_attribute=function(b,D,F){var U=null,fe="";if(F&&F.text[0]==="<")if(b==="=")U=this._create_token(z.EQUALS,this._input.next());else if(b==='"'||b==="'"){var ye=this._input.next();b==='"'?ye+=this.__patterns.double_quote.read():ye+=this.__patterns.single_quote.read(),U=this._create_token(z.VALUE,ye)}else fe=this.__patterns.attribute.read(),fe&&(D.type===z.EQUALS?U=this._create_token(z.VALUE,fe):U=this._create_token(z.ATTRIBUTE,fe));return U},re.prototype._is_content_unformatted=function(b){return this._options.void_elements.indexOf(b)===-1&&(this._options.content_unformatted.indexOf(b)!==-1||this._options.unformatted.indexOf(b)!==-1)},re.prototype._read_raw_content=function(b,D,F){var U="";if(F&&F.text[0]==="{")U=this.__patterns.handlebars_raw_close.read();else if(D.type===z.TAG_CLOSE&&D.opened.text[0]==="<"&&D.text[0]!=="/"){var fe=D.opened.text.substr(1).toLowerCase();this._is_content_unformatted(fe)&&(U=this._input.readUntil(new RegExp("</"+fe+"[\\n\\r\\t ]*?>","ig")))}return U?this._create_token(z.TEXT,U):null},re.prototype._read_script_and_style=function(b,D){if(D.type===z.TAG_CLOSE&&D.opened.text[0]==="<"&&D.text[0]!=="/"){var F=D.opened.text.substr(1).toLowerCase();if(F==="script"||F==="style"){var U=this._read_comment_or_cdata(b);if(U)return U.type=z.TEXT,U;var fe=this._input.readUntil(new RegExp("</"+F+"[\\n\\r\\t ]*?>","ig"));if(fe)return this._create_token(z.TEXT,fe)}}return null},re.prototype._read_content_word=function(b,D){var F="";return this._options.unformatted_content_delimiter&&b===this._options.unformatted_content_delimiter[0]&&(F=this.__patterns.unformatted_content_delimiter.read()),F||(F=D&&D.type===z.CONTROL_FLOW_OPEN?this.__patterns.word_control_flow_close_excluded.read():this.__patterns.word.read()),F?this._create_token(z.TEXT,F):null},$.exports.Tokenizer=re,$.exports.TOKEN=z}],be={};function o($){var v=be[$];if(v!==void 0)return v.exports;var c=be[$]={exports:{}};return Te[$](c,c.exports,o),c.exports}var L=o(18);ie=L})();var Re=ie;if(1)T=[_,_(58553),_(87804)],N=function(Te){var be=_(58553),o=_(87804);return{html_beautify:function(L,$){return Re(L,$,be.js_beautify,o.css_beautify)}}}.apply(et,T),N!==void 0&&(Ht.exports=N);else var ve,le})()},58553:function(Ht,et){var _,T;(function(){var N;(function(){"use strict";var Re=[function(be,o,L){var $=L(1).Beautifier,v=L(5).Options;function c(S,y){var q=new $(S,y);return q.beautify()}be.exports=c,be.exports.defaultOptions=function(){return new v}},function(be,o,L){var $=L(2).Output,v=L(3).Token,c=L(4),S=L(5).Options,y=L(7).Tokenizer,q=L(7).line_starters,ae=L(7).positionable_operators,P=L(7).TOKEN;function z(w,Q){return Q.indexOf(w)!==-1}function W(w){return w.replace(/^\s+/g,"")}function re(w){for(var Q={},J=0;J<w.length;J++)Q[w[J].replace(/-/g,"_")]=w[J];return Q}function b(w,Q){return w&&w.type===P.RESERVED&&w.text===Q}function D(w,Q){return w&&w.type===P.RESERVED&&z(w.text,Q)}var F=["case","return","do","if","throw","else","await","break","continue","async"],U=["before-newline","after-newline","preserve-newline"],fe=re(U),ye=[fe.before_newline,fe.preserve_newline],Se={BlockStatement:"BlockStatement",Statement:"Statement",ObjectLiteral:"ObjectLiteral",ArrayLiteral:"ArrayLiteral",ForInitializer:"ForInitializer",Conditional:"Conditional",Expression:"Expression"};function Ne(w,Q){Q.multiline_frame||Q.mode===Se.ForInitializer||Q.mode===Se.Conditional||w.remove_indent(Q.start_line_index)}function Z(w){w=w.replace(c.allLineBreaks,`
`);for(var Q=[],J=w.indexOf(`
`);J!==-1;)Q.push(w.substring(0,J)),w=w.substring(J+1),J=w.indexOf(`
`);return w.length&&Q.push(w),Q}function B(w){return w===Se.ArrayLiteral}function ne(w){return z(w,[Se.Expression,Se.ForInitializer,Se.Conditional])}function X(w,Q){for(var J=0;J<w.length;J++){var Pe=w[J].trim();if(Pe.charAt(0)!==Q)return!1}return!0}function me(w,Q){for(var J=0,Pe=w.length,Ue;J<Pe;J++)if(Ue=w[J],Ue&&Ue.indexOf(Q)!==0)return!1;return!0}function ee(w,Q){Q=Q||{},this._source_text=w||"",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 S(Q)}ee.prototype.create_flags=function(w,Q){var J=0;w&&(J=w.indentation_level,!this._output.just_added_newline()&&w.line_indent_level>J&&(J=w.line_indent_level));var Pe={mode:Q,parent:w,last_token:w?w.last_token:new v(P.START_BLOCK,""),last_word:w?w.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:J,alignment:0,line_indent_level:w?w.line_indent_level:J,start_line_index:this._output.get_line_number(),ternary_depth:0};return Pe},ee.prototype._reset=function(w){var Q=w.match(/^[\t ]*/)[0];this._last_last_text="",this._output=new $(this._options,Q),this._output.raw=this._options.test_output_raw,this._flag_store=[],this.set_mode(Se.BlockStatement);var J=new y(w,this._options);return this._tokens=J.tokenize(),w},ee.prototype.beautify=function(){if(this._options.disabled)return this._source_text;var w,Q=this._reset(this._source_text),J=this._options.eol;this._options.eol==="auto"&&(J=`
`,Q&&c.lineBreak.test(Q||"")&&(J=Q.match(c.lineBreak)[0]));for(var Pe=this._tokens.next();Pe;)this.handle_token(Pe),this._last_last_text=this._flags.last_token.text,this._flags.last_token=Pe,Pe=this._tokens.next();return w=this._output.get_code(J),w},ee.prototype.handle_token=function(w,Q){w.type===P.START_EXPR?this.handle_start_expr(w):w.type===P.END_EXPR?this.handle_end_expr(w):w.type===P.START_BLOCK?this.handle_start_block(w):w.type===P.END_BLOCK?this.handle_end_block(w):w.type===P.WORD?this.handle_word(w):w.type===P.RESERVED?this.handle_word(w):w.type===P.SEMICOLON?this.handle_semicolon(w):w.type===P.STRING?this.handle_string(w):w.type===P.EQUALS?this.handle_equals(w):w.type===P.OPERATOR?this.handle_operator(w):w.type===P.COMMA?this.handle_comma(w):w.type===P.BLOCK_COMMENT?this.handle_block_comment(w,Q):w.type===P.COMMENT?this.handle_comment(w,Q):w.type===P.DOT?this.handle_dot(w):w.type===P.EOF?this.handle_eof(w):w.type===P.UNKNOWN?this.handle_unknown(w,Q):this.handle_unknown(w,Q)},ee.prototype.handle_whitespace_and_comments=function(w,Q){var J=w.newlines,Pe=this._options.keep_array_indentation&&B(this._flags.mode);if(w.comments_before)for(var Ue=w.comments_before.next();Ue;)this.handle_whitespace_and_comments(Ue,Q),this.handle_token(Ue,Q),Ue=w.comments_before.next();if(Pe)for(var Xe=0;Xe<J;Xe+=1)this.print_newline(Xe>0,Q);else if(this._options.max_preserve_newlines&&J>this._options.max_preserve_newlines&&(J=this._options.max_preserve_newlines),this._options.preserve_newlines&&J>1){this.print_newline(!1,Q);for(var Ze=1;Ze<J;Ze+=1)this.print_newline(!0,Q)}};var g=["async","break","continue","return","throw","yield"];ee.prototype.allow_wrap_or_preserved_newline=function(w,Q){if(Q=Q===void 0?!1:Q,!this._output.just_added_newline()){var J=this._options.preserve_newlines&&w.newlines||Q,Pe=z(this._flags.last_token.text,ae)||z(w.text,ae);if(Pe){var Ue=z(this._flags.last_token.text,ae)&&z(this._options.operator_position,ye)||z(w.text,ae);J=J&&Ue}if(J)this.print_newline(!1,!0);else if(this._options.wrap_line_length){if(D(this._flags.last_token,g))return;this._output.set_wrap_point()}}},ee.prototype.print_newline=function(w,Q){if(!Q&&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 J=this._tokens.peek();this._flags.mode===Se.Statement&&!(this._flags.if_block&&b(J,"else"))&&!this._flags.do_block;)this.restore_mode();this._output.add_new_line(w)&&(this._flags.multiline_frame=!0)},ee.prototype.print_token_line_indentation=function(w){this._output.just_added_newline()&&(this._options.keep_array_indentation&&w.newlines&&(w.text==="["||B(this._flags.mode))?(this._output.current_line.set_indent(-1),this._output.current_line.push(w.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))},ee.prototype.print_token=function(w){if(this._output.raw){this._output.add_raw_token(w);return}if(this._options.comma_first&&w.previous&&w.previous.type===P.COMMA&&this._output.just_added_newline()&&this._output.previous_line.last()===","){var Q=this._output.previous_line.pop();this._output.previous_line.is_empty()&&(this._output.previous_line.push(Q),this._output.trim(!0),this._output.current_line.pop(),this._output.trim()),this.print_token_line_indentation(w),this._output.add_token(","),this._output.space_before_token=!0}this.print_token_line_indentation(w),this._output.non_breaking_space=!0,this._output.add_token(w.text),this._output.previous_token_wrapped&&(this._flags.multiline_frame=!0)},ee.prototype.indent=function(){this._flags.indentation_level+=1,this._output.set_indent(this._flags.indentation_level,this._flags.alignment)},ee.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))},ee.prototype.set_mode=function(w){this._flags?(this._flag_store.push(this._flags),this._previous_flags=this._flags):this._previous_flags=this.create_flags(null,w),this._flags=this.create_flags(this._previous_flags,w),this._output.set_indent(this._flags.indentation_level,this._flags.alignment)},ee.prototype.restore_mode=function(){this._flag_store.length>0&&(this._previous_flags=this._flags,this._flags=this._flag_store.pop(),this._previous_flags.mode===Se.Statement&&Ne(this._output,this._previous_flags),this._output.set_indent(this._flags.indentation_level,this._flags.alignment))},ee.prototype.start_of_object_property=function(){return this._flags.parent.mode===Se.ObjectLiteral&&this._flags.mode===Se.Statement&&(this._flags.last_token.text===":"&&this._flags.ternary_depth===0||D(this._flags.last_token,["get","set"]))},ee.prototype.start_of_statement=function(w){var Q=!1;return Q=Q||D(this._flags.last_token,["var","let","const"])&&w.type===P.WORD,Q=Q||b(this._flags.last_token,"do"),Q=Q||!(this._flags.parent.mode===Se.ObjectLiteral&&this._flags.mode===Se.Statement)&&D(this._flags.last_token,g)&&!w.newlines,Q=Q||b(this._flags.last_token,"else")&&!(b(w,"if")&&!w.comments_before),Q=Q||this._flags.last_token.type===P.END_EXPR&&(this._previous_flags.mode===Se.ForInitializer||this._previous_flags.mode===Se.Conditional),Q=Q||this._flags.last_token.type===P.WORD&&this._flags.mode===Se.BlockStatement&&!this._flags.in_case&&!(w.text==="--"||w.text==="++")&&this._last_last_text!=="function"&&w.type!==P.WORD&&w.type!==P.RESERVED,Q=Q||this._flags.mode===Se.ObjectLiteral&&(this._flags.last_token.text===":"&&this._flags.ternary_depth===0||D(this._flags.last_token,["get","set"])),Q?(this.set_mode(Se.Statement),this.indent(),this.handle_whitespace_and_comments(w,!0),this.start_of_object_property()||this.allow_wrap_or_preserved_newline(w,D(w,["do","for","if","while"])),!0):!1},ee.prototype.handle_start_expr=function(w){this.start_of_statement(w)||this.handle_whitespace_and_comments(w);var Q=Se.Expression;if(w.text==="["){if(this._flags.last_token.type===P.WORD||this._flags.last_token.text===")"){D(this._flags.last_token,q)&&(this._output.space_before_token=!0),this.print_token(w),this.set_mode(Q),this.indent(),this._options.space_in_paren&&(this._output.space_before_token=!0);return}Q=Se.ArrayLiteral,B(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()),z(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,Q=Se.ForInitializer):z(this._flags.last_token.text,["if","while","switch"])?(this._output.space_before_token=this._options.space_before_conditional,Q=Se.Conditional):z(this._flags.last_word,["await","async"])?this._output.space_before_token=!0:this._flags.last_token.text==="import"&&w.whitespace_before===""?this._output.space_before_token=!1:(z(this._flags.last_token.text,q)||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(w);else if(this._flags.last_token.type===P.WORD){this._output.space_before_token=!1;var J=this._tokens.peek(-3);if(this._options.space_after_named_function&&J){var Pe=this._tokens.peek(-4);D(J,["async","function"])||J.text==="*"&&D(Pe,["async","function"])?this._output.space_before_token=!0:this._flags.mode===Se.ObjectLiteral?(J.text==="{"||J.text===","||J.text==="*"&&(Pe.text==="{"||Pe.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(w);(this._flags.last_token.type===P.RESERVED&&(this._flags.last_word==="function"||this._flags.last_word==="typeof")||this._flags.last_token.text==="*"&&(z(this._last_last_text,["function","yield"])||this._flags.mode===Se.ObjectLiteral&&z(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(w,w.newlines),this.print_token(w),this.set_mode(Q),this._options.space_in_paren&&(this._output.space_before_token=!0),this.indent()},ee.prototype.handle_end_expr=function(w){for(;this._flags.mode===Se.Statement;)this.restore_mode();this.handle_whitespace_and_comments(w),this._flags.multiline_frame&&this.allow_wrap_or_preserved_newline(w,w.text==="]"&&B(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(w),this.restore_mode(),Ne(this._output,this._previous_flags),this._flags.do_while&&this._previous_flags.mode===Se.Conditional&&(this._previous_flags.mode=Se.Expression,this._flags.do_block=!1,this._flags.do_while=!1)},ee.prototype.handle_start_block=function(w){this.handle_whitespace_and_comments(w);var Q=this._tokens.peek(),J=this._tokens.peek(1);this._flags.last_word==="switch"&&this._flags.last_token.type===P.END_EXPR?(this.set_mode(Se.BlockStatement),this._flags.in_case_statement=!0):this._flags.case_body?this.set_mode(Se.BlockStatement):J&&(z(J.text,[":",","])&&z(Q.type,[P.STRING,P.WORD,P.RESERVED])||z(Q.text,["get","set","..."])&&z(J.type,[P.WORD,P.RESERVED]))?z(this._last_last_text,["class","interface"])&&!z(J.text,[":",","])?this.set_mode(Se.BlockStatement):this.set_mode(Se.ObjectLiteral):this._flags.last_token.type===P.OPERATOR&&this._flags.last_token.text==="=>"?this.set_mode(Se.BlockStatement):z(this._flags.last_token.type,[P.EQUALS,P.START_EXPR,P.COMMA,P.OPERATOR])||D(this._flags.last_token,["return","throw","import","default"])?this.set_mode(Se.ObjectLiteral):this.set_mode(Se.BlockStatement),this._flags.last_token&&D(this._flags.last_token.previous,["class","extends"])&&(this._flags.class_start_block=!0);var Pe=!Q.comments_before&&Q.text==="}",Ue=Pe&&this._flags.last_word==="function"&&this._flags.last_token.type===P.END_EXPR;if(this._options.brace_preserve_inline){var Xe=0,Ze=null;this._flags.inline_frame=!0;do if(Xe+=1,Ze=this._tokens.peek(Xe-1),Ze.newlines){this._flags.inline_frame=!1;break}while(Ze.type!==P.EOF&&!(Ze.type===P.END_BLOCK&&Ze.opened===w))}(this._options.brace_style==="expand"||this._options.brace_style==="none"&&w.newlines)&&!this._flags.inline_frame?this._flags.last_token.type!==P.OPERATOR&&(Ue||this._flags.last_token.type===P.EQUALS||D(this._flags.last_token,F)&&this._flags.last_token.text!=="else")?this._output.space_before_token=!0:this.print_newline(!1,!0):(B(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(w),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&&(z(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(w),this.indent(),!Pe&&!(this._options.brace_preserve_inline&&this._flags.inline_frame)&&this.print_newline()},ee.prototype.handle_end_block=function(w){for(this.handle_whitespace_and_comments(w);this._flags.mode===Se.Statement;)this.restore_mode();var Q=this._flags.last_token.type===P.START_BLOCK;this._flags.inline_frame&&!Q?this._output.space_before_token=!0:this._options.brace_style==="expand"?Q||this.print_newline():Q||(B(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(w)},ee.prototype.handle_word=function(w){if(w.type===P.RESERVED){if(z(w.text,["set","get"])&&this._flags.mode!==Se.ObjectLiteral)w.type=P.WORD;else if(w.text==="import"&&z(this._tokens.peek().text,["(","."]))w.type=P.WORD;else if(z(w.text,["as","from"])&&!this._flags.import_block)w.type=P.WORD;else if(this._flags.mode===Se.ObjectLiteral){var Q=this._tokens.peek();Q.text===":"&&(w.type=P.WORD)}}if(this.start_of_statement(w)?D(this._flags.last_token,["var","let","const"])&&w.type===P.WORD&&(this._flags.declaration_statement=!0):w.newlines&&!ne(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||!D(this._flags.last_token,["var","let","const","set","get"]))?(this.handle_whitespace_and_comments(w),this.print_newline()):this.handle_whitespace_and_comments(w),this._flags.do_block&&!this._flags.do_while)if(b(w,"while")){this._output.space_before_token=!0,this.print_token(w),this._output.space_before_token=!0,this._flags.do_while=!0;return}else this.print_newline(),this._flags.do_block=!1;if(this._flags.if_block)if(!this._flags.else_block&&b(w,"else"))this._flags.else_block=!0;else{for(;this._flags.mode===Se.Statement;)this.restore_mode();this._flags.if_block=!1,this._flags.else_block=!1}if(this._flags.in_case_statement&&D(w,["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(w),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()&&!(z(this._flags.last_token.text,["+","-"])&&this._last_last_text===":"&&this._flags.parent.mode===Se.ObjectLiteral)&&this.allow_wrap_or_preserved_newline(w),b(w,"function")){(z(this._flags.last_token.text,["}",";"])||this._output.just_added_newline()&&!(z(this._flags.last_token.text,["(","[","{",":","=",","])||this._flags.last_token.type===P.OPERATOR))&&!this._output.just_added_blankline()&&!w.comments_before&&(this.print_newline(),this.print_newline(!0)),this._flags.last_token.type===P.RESERVED||this._flags.last_token.type===P.WORD?D(this._flags.last_token,["get","set","new","export"])||D(this._flags.last_token,g)?this._output.space_before_token=!0:b(this._flags.last_token,"default")&&this._last_last_text==="export"?this._output.space_before_token=!0:this._flags.last_token.text==="declare"?this._output.space_before_token=!0:this.print_newline():this._flags.last_token.type===P.OPERATOR||this._flags.last_token.text==="="?this._output.space_before_token=!0:!this._flags.multiline_frame&&(ne(this._flags.mode)||B(this._flags.mode))||this.print_newline(),this.print_token(w),this._flags.last_word=w.text;return}var J="NONE";if(this._flags.last_token.type===P.END_BLOCK?this._previous_flags.inline_frame?J="SPACE":D(w,["else","catch","finally","from"])?this._options.brace_style==="expand"||this._options.brace_style==="end-expand"||this._options.brace_style==="none"&&w.newlines?J="NEWLINE":(J="SPACE",this._output.space_before_token=!0):J="NEWLINE":this._flags.last_token.type===P.SEMICOLON&&this._flags.mode===Se.BlockStatement?J="NEWLINE":this._flags.last_token.type===P.SEMICOLON&&ne(this._flags.mode)?J="SPACE":this._flags.last_token.type===P.STRING?J="NEWLINE":this._flags.last_token.type===P.RESERVED||this._flags.last_token.type===P.WORD||this._flags.last_token.text==="*"&&(z(this._last_last_text,["function","yield"])||this._flags.mode===Se.ObjectLiteral&&z(this._last_last_text,["{",","]))?J="SPACE":this._flags.last_token.type===P.START_BLOCK?this._flags.inline_frame?J="SPACE":J="NEWLINE":this._flags.last_token.type===P.END_EXPR&&(this._output.space_before_token=!0,J="NEWLINE"),D(w,q)&&this._flags.last_token.text!==")"&&(this._flags.inline_frame||this._flags.last_token.text==="else"||this._flags.last_token.text==="export"?J="SPACE":J="NEWLINE"),D(w,["else","catch","finally"]))if((!(this._flags.last_token.type===P.END_BLOCK&&this._previous_flags.mode===Se.BlockStatement)||this._options.brace_style==="expand"||this._options.brace_style==="end-expand"||this._options.brace_style==="none"&&w.newlines)&&!this._flags.inline_frame)this.print_newline();else{this._output.trim(!0);var Pe=this._output.current_line;Pe.last()!=="}"&&this.print_newline(),this._output.space_before_token=!0}else J==="NEWLINE"?D(this._flags.last_token,F)?this._output.space_before_token=!0:this._flags.last_token.text==="declare"&&D(w,["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||!D(w,["var","let","const"]))&&this._flags.last_token.text!==":"&&(b(w,"if")&&b(w.previous,"else")?this._output.space_before_token=!0:this.print_newline()):D(w,q)&&this._flags.last_token.text!==")"&&this.print_newline():this._flags.multiline_frame&&B(this._flags.mode)&&this._flags.last_token.text===","&&this._last_last_text==="}"?this.print_newline():J==="SPACE"&&(this._output.space_before_token=!0);w.previous&&(w.previous.type===P.WORD||w.previous.type===P.RESERVED)&&(this._output.space_before_token=!0),this.print_token(w),this._flags.last_word=w.text,w.type===P.RESERVED&&(w.text==="do"?this._flags.do_block=!0:w.text==="if"?this._flags.if_block=!0:w.text==="import"?this._flags.import_block=!0:this._flags.import_block&&b(w,"from")&&(this._flags.import_block=!1))},ee.prototype.handle_semicolon=function(w){this.start_of_statement(w)?this._output.space_before_token=!1:this.handle_whitespace_and_comments(w);for(var Q=this._tokens.peek();this._flags.mode===Se.Statement&&!(this._flags.if_block&&b(Q,"else"))&&!this._flags.do_block;)this.restore_mode();this._flags.import_block&&(this._flags.import_block=!1),this.print_token(w)},ee.prototype.handle_string=function(w){w.text.startsWith("`")&&w.newlines===0&&w.whitespace_before===""&&(w.previous.text===")"||this._flags.last_token.type===P.WORD)||(this.start_of_statement(w)?this._output.space_before_token=!0:(this.handle_whitespace_and_comments(w),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(w):w.text.startsWith("`")&&this._flags.last_token.type===P.END_EXPR&&(w.previous.text==="]"||w.previous.text===")")&&w.newlines===0?this._output.space_before_token=!0:this.print_newline())),this.print_token(w)},ee.prototype.handle_equals=function(w){this.start_of_statement(w)||this.handle_whitespace_and_comments(w),this._flags.declaration_statement&&(this._flags.declaration_assignment=!0),this._output.space_before_token=!0,this.print_token(w),this._output.space_before_token=!0},ee.prototype.handle_comma=function(w){this.handle_whitespace_and_comments(w,!0),this.print_token(w),this._output.space_before_token=!0,this._flags.declaration_statement?(ne(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(w)):this._flags.mode===Se.ObjectLiteral||this._flags.mode===Se.Statement&&this._flags.parent.mode===Se.ObjectLiteral?(this._flags.mode===Se.Statement&&this.restore_mode(),this._flags.inline_frame||this.print_newline()):this._options.comma_first&&this.allow_wrap_or_preserved_newline(w)},ee.prototype.handle_operator=function(w){var Q=w.text==="*"&&(D(this._flags.last_token,["function","yield"])||z(this._flags.last_token.type,[P.START_BLOCK,P.COMMA,P.END_BLOCK,P.SEMICOLON])),J=z(w.text,["-","+"])&&(z(this._flags.last_token.type,[P.START_BLOCK,P.START_EXPR,P.EQUALS,P.OPERATOR])||z(this._flags.last_token.text,q)||this._flags.last_token.text===",");if(!this.start_of_statement(w)){var Pe=!Q;this.handle_whitespace_and_comments(w,Pe)}if(w.text==="*"&&this._flags.last_token.type===P.DOT){this.print_token(w);return}if(w.text==="::"){this.print_token(w);return}if(z(w.text,["-","+"])&&this.start_of_object_property()){this.print_token(w);return}if(this._flags.last_token.type===P.OPERATOR&&z(this._options.operator_position,ye)&&this.allow_wrap_or_preserved_newline(w),w.text===":"&&this._flags.in_case){this.print_token(w),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 Ue=!0,Xe=!0,Ze=!1;if(w.text===":"?this._flags.ternary_depth===0?Ue=!1:(this._flags.ternary_depth-=1,Ze=!0):w.text==="?"&&(this._flags.ternary_depth+=1),!J&&!Q&&this._options.preserve_newlines&&z(w.text,ae)){var lt=w.text===":",at=lt&&Ze,ct=lt&&!Ze;switch(this._options.operator_position){case fe.before_newline:this._output.space_before_token=!ct,this.print_token(w),(!lt||at)&&this.allow_wrap_or_preserved_newline(w),this._output.space_before_token=!0;return;case fe.after_newline:this._output.space_before_token=!0,!lt||at?this._tokens.peek().newlines?this.print_newline(!1,!0):this.allow_wrap_or_preserved_newline(w):this._output.space_before_token=!1,this.print_token(w),this._output.space_before_token=!0;return;case fe.preserve_newline:ct||this.allow_wrap_or_preserved_newline(w),Ue=!(this._output.just_added_newline()||ct),this._output.space_before_token=Ue,this.print_token(w),this._output.space_before_token=!0;return}}if(Q){this.allow_wrap_or_preserved_newline(w),Ue=!1;var Ot=this._tokens.peek();Xe=Ot&&z(Ot.type,[P.WORD,P.RESERVED])}else if(w.text==="...")this.allow_wrap_or_preserved_newline(w),Ue=this._flags.last_token.type===P.START_BLOCK,Xe=!1;else if(z(w.text,["--","++","!","~"])||J){if((this._flags.last_token.type===P.COMMA||this._flags.last_token.type===P.START_EXPR)&&this.allow_wrap_or_preserved_newline(w),Ue=!1,Xe=!1,w.newlines&&(w.text==="--"||w.text==="++"||w.text==="~")){var Ut=D(this._flags.last_token,F)&&w.newlines;Ut&&(this._previous_flags.if_block||this._previous_flags.else_block)&&this.restore_mode(),this.print_newline(Ut,!0)}this._flags.last_token.text===";"&&ne(this._flags.mode)&&(Ue=!0),this._flags.last_token.type===P.RESERVED?Ue=!0:this._flags.last_token.type===P.END_EXPR?Ue=!(this._flags.last_token.text==="]"&&(w.text==="--"||w.text==="++")):this._flags.last_token.type===P.OPERATOR&&(Ue=z(w.text,["--","-","++","+"])&&z(this._flags.last_token.text,["--","-","++","+"]),z(w.text,["+","-"])&&z(this._flags.last_token.text,["--","++"])&&(Xe=!0)),(this._flags.mode===Se.BlockStatement&&!this._flags.inline_frame||this._flags.mode===Se.Statement)&&(this._flags.last_token.text==="{"||this._flags.last_token.text===";")&&this.print_newline()}this._output.space_before_token=this._output.space_before_token||Ue,this.print_token(w),this._output.space_before_token=Xe},ee.prototype.handle_block_comment=function(w,Q){if(this._output.raw){this._output.add_raw_token(w),w.directives&&w.directives.preserve==="end"&&(this._output.raw=this._options.test_output_raw);return}if(w.directives){this.print_newline(!1,Q),this.print_token(w),w.directives.preserve==="start"&&(this._output.raw=!0),this.print_newline(!1,!0);return}if(!c.newline.test(w.text)&&!w.newlines){this._output.space_before_token=!0,this.print_token(w),this._output.space_before_token=!0;return}else this.print_block_commment(w,Q)},ee.prototype.print_block_commment=function(w,Q){var J=Z(w.text),Pe,Ue=!1,Xe=!1,Ze=w.whitespace_before,lt=Ze.length;if(this.print_newline(!1,Q),this.print_token_line_indentation(w),this._output.add_token(J[0]),this.print_newline(!1,Q),J.length>1){for(J=J.slice(1),Ue=X(J,"*"),Xe=me(J,Ze),Ue&&(this._flags.alignment=1),Pe=0;Pe<J.length;Pe++)Ue?(this.print_token_line_indentation(w),this._output.add_token(W(J[Pe]))):Xe&&J[Pe]?(this.print_token_line_indentation(w),this._output.add_token(J[Pe].substring(lt))):(this._output.current_line.set_indent(-1),this._output.add_token(J[Pe])),this.print_newline(!1,Q);this._flags.alignment=0}},ee.prototype.handle_comment=function(w,Q){w.newlines?this.print_newline(!1,Q):this._output.trim(!0),this._output.space_before_token=!0,this.print_token(w),this.print_newline(!1,Q)},ee.prototype.handle_dot=function(w){this.start_of_statement(w)||this.handle_whitespace_and_comments(w,!0),this._flags.last_token.text.match("^[0-9]+$")&&(this._output.space_before_token=!0),D(this._flags.last_token,F)?this._output.space_before_token=!1:this.allow_wrap_or_preserved_newline(w,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(w)},ee.prototype.handle_unknown=function(w,Q){this.print_token(w),w.text[w.text.length-1]===`
`&&this.print_newline(!1,Q)},ee.prototype.handle_eof=function(w){for(;this._flags.mode===Se.Statement;)this.restore_mode();this.handle_whitespace_and_comments(w)},be.exports.Beautifier=ee},function(be){function o(v){this.__parent=v,this.__character_count=0,this.__indent_count=-1,this.__alignment_count=0,this.__wrap_point_index=0,this.__wrap_point_character_count=0,this.__wrap_point_indent_count=-1,this.__wrap_point_alignment_count=0,this.__items=[]}o.prototype.clone_empty=function(){var v=new o(this.__parent);return v.set_indent(this.__indent_count,this.__alignment_count),v},o.prototype.item=function(v){return v<0?this.__items[this.__items.length+v]:this.__items[v]},o.prototype.has_match=function(v){for(var c=this.__items.length-1;c>=0;c--)if(this.__items[c].match(v))return!0;return!1},o.prototype.set_indent=function(v,c){this.is_empty()&&(this.__indent_count=v||0,this.__alignment_count=c||0,this.__character_count=this.__parent.get_indent_size(this.__indent_count,this.__alignment_count))},o.prototype._set_wrap_point=function(){this.__parent.wrap_line_length&&(this.__wrap_point_index=this.__items.length,this.__wrap_point_character_count=this.__character_count,this.__wrap_point_indent_count=this.__parent.next_line.__indent_count,this.__wrap_point_alignment_count=this.__parent.next_line.__alignment_count)},o.prototype._should_wrap=function(){return this.__wrap_point_index&&this.__character_count>this.__parent.wrap_line_length&&this.__wrap_point_character_count>this.__parent.next_line.__character_count},o.prototype._allow_wrap=function(){if(this._should_wrap()){this.__parent.add_new_line();var v=this.__parent.current_line;return v.set_indent(this.__wrap_point_indent_count,this.__wrap_point_alignment_count),v.__items=this.__items.slice(this.__wrap_point_index),this.__items=this.__items.slice(0,this.__wrap_point_index),v.__character_count+=this.__character_count-this.__wrap_point_character_count,this.__character_count=this.__wrap_point_character_count,v.__items[0]===" "&&(v.__items.splice(0,1),v.__character_count-=1),!0}return!1},o.prototype.is_empty=function(){return this.__items.length===0},o.prototype.last=function(){return this.is_empty()?null:this.__items[this.__items.length-1]},o.prototype.push=function(v){this.__items.push(v);var c=v.lastIndexOf(`
`);c!==-1?this.__character_count=v.length-c:this.__character_count+=v.length},o.prototype.pop=function(){var v=null;return this.is_empty()||(v=this.__items.pop(),this.__character_count-=v.length),v},o.prototype._remove_indent=function(){this.__indent_count>0&&(this.__indent_count-=1,this.__character_count-=this.__parent.indent_size)},o.prototype._remove_wrap_indent=function(){this.__wrap_point_indent_count>0&&(this.__wrap_point_indent_count-=1)},o.prototype.trim=function(){for(;this.last()===" ";)this.__items.pop(),this.__character_count-=1},o.prototype.toString=function(){var v="";return this.is_empty()?this.__parent.indent_empty_lines&&(v=this.__parent.get_indent_string(this.__indent_count)):(v=this.__parent.get_indent_string(this.__indent_count,this.__alignment_count),v+=this.__items.join("")),v};function L(v,c){this.__cache=[""],this.__indent_size=v.indent_size,this.__indent_string=v.indent_char,v.indent_with_tabs||(this.__indent_string=new Array(v.indent_size+1).join(v.indent_char)),c=c||"",v.indent_level>0&&(c=new Array(v.indent_level+1).join(this.__indent_string)),this.__base_string=c,this.__base_string_length=c.length}L.prototype.get_indent_size=function(v,c){var S=this.__base_string_length;return c=c||0,v<0&&(S=0),S+=v*this.__indent_size,S+=c,S},L.prototype.get_indent_string=function(v,c){var S=this.__base_string;return c=c||0,v<0&&(v=0,S=""),c+=v*this.__indent_size,this.__ensure_cache(c),S+=this.__cache[c],S},L.prototype.__ensure_cache=function(v){for(;v>=this.__cache.length;)this.__add_column()},L.prototype.__add_column=function(){var v=this.__cache.length,c=0,S="";this.__indent_size&&v>=this.__indent_size&&(c=Math.floor(v/this.__indent_size),v-=c*this.__indent_size,S=new Array(c+1).join(this.__indent_string)),v&&(S+=new Array(v+1).join(" ")),this.__cache.push(S)};function $(v,c){this.__indent_cache=new L(v,c),this.raw=!1,this._end_with_newline=v.end_with_newline,this.indent_size=v.indent_size,this.wrap_line_length=v.wrap_line_length,this.indent_empty_lines=v.indent_empty_lines,this.__lines=[],this.previous_line=null,this.current_line=null,this.next_line=new o(this),this.space_before_token=!1,this.non_breaking_space=!1,this.previous_token_wrapped=!1,this.__add_outputline()}$.prototype.__add_outputline=function(){this.previous_line=this.current_line,this.current_line=this.next_line.clone_empty(),this.__lines.push(this.current_line)},$.prototype.get_line_number=function(){return this.__lines.length},$.prototype.get_indent_string=function(v,c){return this.__indent_cache.get_indent_string(v,c)},$.prototype.get_indent_size=function(v,c){return this.__indent_cache.get_indent_size(v,c)},$.prototype.is_empty=function(){return!this.previous_line&&this.current_line.is_empty()},$.prototype.add_new_line=function(v){return this.is_empty()||!v&&this.just_added_newline()?!1:(this.raw||this.__add_outputline(),!0)},$.prototype.get_code=function(v){this.trim(!0);var c=this.current_line.pop();c&&(c[c.length-1]===`
`&&(c=c.replace(/\n+$/g,"")),this.current_line.push(c)),this._end_with_newline&&this.__add_outputline();var S=this.__lines.join(`
`);return v!==`
`&&(S=S.replace(/[\n]/g,v)),S},$.prototype.set_wrap_point=function(){this.current_line._set_wrap_point()},$.prototype.set_indent=function(v,c){return v=v||0,c=c||0,this.next_line.set_indent(v,c),this.__lines.length>1?(this.current_line.set_indent(v,c),!0):(this.current_line.set_indent(),!1)},$.prototype.add_raw_token=function(v){for(var c=0;c<v.newlines;c++)this.__add_outputline();this.current_line.set_indent(-1),this.current_line.push(v.whitespace_before),this.current_line.push(v.text),this.space_before_token=!1,this.non_breaking_space=!1,this.previous_token_wrapped=!1},$.prototype.add_token=function(v){this.__add_space_before_token(),this.current_line.push(v),this.space_before_token=!1,this.non_breaking_space=!1,this.previous_token_wrapped=this.current_line._allow_wrap()},$.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(" "))},$.prototype.remove_indent=function(v){for(var c=this.__lines.length;v<c;)this.__lines[v]._remove_indent(),v++;this.current_line._remove_wrap_indent()},$.prototype.trim=function(v){for(v=v===void 0?!1:v,this.current_line.trim();v&&this.__lines.length>1&&this.current_line.is_empty();)this.__lines.pop(),this.current_line=this.__lines[this.__lines.length-1],this.current_line.trim();this.previous_line=this.__lines.length>1?this.__lines[this.__lines.length-2]:null},$.prototype.just_added_newline=function(){return this.current_line.is_empty()},$.prototype.just_added_blankline=function(){return this.is_empty()||this.current_line.is_empty()&&this.previous_line.is_empty()},$.prototype.ensure_empty_line_above=function(v,c){for(var S=this.__lines.length-2;S>=0;){var y=this.__lines[S];if(y.is_empty())break;if(y.item(0).indexOf(v)!==0&&y.item(-1)!==c){this.__lines.splice(S+1,0,new o(this)),this.previous_line=this.__lines[this.__lines.length-2];break}S--}},be.exports.Output=$},function(be){function o(L,$,v,c){this.type=L,this.text=$,this.comments_before=null,this.newlines=v||0,this.whitespace_before=c||"",this.parent=null,this.next=null,this.previous=null,this.opened=null,this.closed=null,this.directives=null}be.exports.Token=o},function(be,o){var L="\\x23\\x24\\x40\\x41-\\x5a\\x5f\\x61-\\x7a",$="\\x24\\x30-\\x39\\x41-\\x5a\\x5f\\x61-\\x7a",v="\\xaa\\xb5\\xba\\xc0-\\xd6\\xd8-\\xf6\\xf8-\\u02c1\\u02c6-\\u02d1\\u02e0-\\u02e4\\u02ec\\u02ee\\u0370-\\u0374\\u0376\\u0377\\u037a-\\u037d\\u0386\\u0388-\\u038a\\u038c\\u038e-\\u03a1\\u03a3-\\u03f5\\u03f7-\\u0481\\u048a-\\u0527\\u0531-\\u0556\\u0559\\u0561-\\u0587\\u05d0-\\u05ea\\u05f0-\\u05f2\\u0620-\\u064a\\u066e\\u066f\\u0671-\\u06d3\\u06d5\\u06e5\\u06e6\\u06ee\\u06ef\\u06fa-\\u06fc\\u06ff\\u0710\\u0712-\\u072f\\u074d-\\u07a5\\u07b1\\u07ca-\\u07ea\\u07f4\\u07f5\\u07fa\\u0800-\\u0815\\u081a\\u0824\\u0828\\u0840-\\u0858\\u08a0\\u08a2-\\u08ac\\u0904-\\u0939\\u093d\\u0950\\u0958-\\u0961\\u0971-\\u0977\\u0979-\\u097f\\u0985-\\u098c\\u098f\\u0990\\u0993-\\u09a8\\u09aa-\\u09b0\\u09b2\\u09b6-\\u09b9\\u09bd\\u09ce\\u09dc\\u09dd\\u09df-\\u09e1\\u09f0\\u09f1\\u0a05-\\u0a0a\\u0a0f\\u0a10\\u0a13-\\u0a28\\u0a2a-\\u0a30\\u0a32\\u0a33\\u0a35\\u0a36\\u0a38\\u0a39\\u0a59-\\u0a5c\\u0a5e\\u0a72-\\u0a74\\u0a85-\\u0a8d\\u0a8f-\\u0a91\\u0a93-\\u0aa8\\u0aaa-\\u0ab0\\u0ab2\\u0ab3\\u0ab5-\\u0ab9\\u0abd\\u0ad0\\u0ae0\\u0ae1\\u0b05-\\u0b0c\\u0b0f\\u0b10\\u0b13-\\u0b28\\u0b2a-\\u0b30\\u0b32\\u0b33\\u0b35-\\u0b39\\u0b3d\\u0b5c\\u0b5d\\u0b5f-\\u0b61\\u0b71\\u0b83\\u0b85-\\u0b8a\\u0b8e-\\u0b90\\u0b92-\\u0b95\\u0b99\\u0b9a\\u0b9c\\u0b9e\\u0b9f\\u0ba3\\u0ba4\\u0ba8-\\u0baa\\u0bae-\\u0bb9\\u0bd0\\u0c05-\\u0c0c\\u0c0e-\\u0c10\\u0c12-\\u0c28\\u0c2a-\\u0c33\\u0c35-\\u0c39\\u0c3d\\u0c58\\u0c59\\u0c60\\u0c61\\u0c85-\\u0c8c\\u0c8e-\\u0c90\\u0c92-\\u0ca8\\u0caa-\\u0cb3\\u0cb5-\\u0cb9\\u0cbd\\u0cde\\u0ce0\\u0ce1\\u0cf1\\u0cf2\\u0d05-\\u0d0c\\u0d0e-\\u0d10\\u0d12-\\u0d3a\\u0d3d\\u0d4e\\u0d60\\u0d61\\u0d7a-\\u0d7f\\u0d85-\\u0d96\\u0d9a-\\u0db1\\u0db3-\\u0dbb\\u0dbd\\u0dc0-\\u0dc6\\u0e01-\\u0e30\\u0e32\\u0e33\\u0e40-\\u0e46\\u0e81\\u0e82\\u0e84\\u0e87\\u0e88\\u0e8a\\u0e8d\\u0e94-\\u0e97\\u0e99-\\u0e9f\\u0ea1-\\u0ea3\\u0ea5\\u0ea7\\u0eaa\\u0eab\\u0ead-\\u0eb0\\u0eb2\\u0eb3\\u0ebd\\u0ec0-\\u0ec4\\u0ec6\\u0edc-\\u0edf\\u0f00\\u0f40-\\u0f47\\u0f49-\\u0f6c\\u0f88-\\u0f8c\\u1000-\\u102a\\u103f\\u1050-\\u1055\\u105a-\\u105d\\u1061\\u1065\\u1066\\u106e-\\u1070\\u1075-\\u1081\\u108e\\u10a0-\\u10c5\\u10c7\\u10cd\\u10d0-\\u10fa\\u10fc-\\u1248\\u124a-\\u124d\\u1250-\\u1256\\u1258\\u125a-\\u125d\\u1260-\\u1288\\u128a-\\u128d\\u1290-\\u12b0\\u12b2-\\u12b5\\u12b8-\\u12be\\u12c0\\u12c2-\\u12c5\\u12c8-\\u12d6\\u12d8-\\u1310\\u1312-\\u1315\\u1318-\\u135a\\u1380-\\u138f\\u13a0-\\u13f4\\u1401-\\u166c\\u166f-\\u167f\\u1681-\\u169a\\u16a0-\\u16ea\\u16ee-\\u16f0\\u1700-\\u170c\\u170e-\\u1711\\u1720-\\u1731\\u1740-\\u1751\\u1760-\\u176c\\u176e-\\u1770\\u1780-\\u17b3\\u17d7\\u17dc\\u1820-\\u1877\\u1880-\\u18a8\\u18aa\\u18b0-\\u18f5\\u1900-\\u191c\\u1950-\\u196d\\u1970-\\u1974\\u1980-\\u19ab\\u19c1-\\u19c7\\u1a00-\\u1a16\\u1a20-\\u1a54\\u1aa7\\u1b05-\\u1b33\\u1b45-\\u1b4b\\u1b83-\\u1ba0\\u1bae\\u1baf\\u1bba-\\u1be5\\u1c00-\\u1c23\\u1c4d-\\u1c4f\\u1c5a-\\u1c7d\\u1ce9-\\u1cec\\u1cee-\\u1cf1\\u1cf5\\u1cf6\\u1d00-\\u1dbf\\u1e00-\\u1f15\\u1f18-\\u1f1d\\u1f20-\\u1f45\\u1f48-\\u1f4d\\u1f50-\\u1f57\\u1f59\\u1f5b\\u1f5d\\u1f5f-\\u1f7d\\u1f80-\\u1fb4\\u1fb6-\\u1fbc\\u1fbe\\u1fc2-\\u1fc4\\u1fc6-\\u1fcc\\u1fd0-\\u1fd3\\u1fd6-\\u1fdb\\u1fe0-\\u1fec\\u1ff2-\\u1ff4\\u1ff6-\\u1ffc\\u2071\\u207f\\u2090-\\u209c\\u2102\\u2107\\u210a-\\u2113\\u2115\\u2119-\\u211d\\u2124\\u2126\\u2128\\u212a-\\u212d\\u212f-\\u2139\\u213c-\\u213f\\u2145-\\u2149\\u214e\\u2160-\\u2188\\u2c00-\\u2c2e\\u2c30-\\u2c5e\\u2c60-\\u2ce4\\u2ceb-\\u2cee\\u2cf2\\u2cf3\\u2d00-\\u2d25\\u2d27\\u2d2d\\u2d30-\\u2d67\\u2d6f\\u2d80-\\u2d96\\u2da0-\\u2da6\\u2da8-\\u2dae\\u2db0-\\u2db6\\u2db8-\\u2dbe\\u2dc0-\\u2dc6\\u2dc8-\\u2dce\\u2dd0-\\u2dd6\\u2dd8-\\u2dde\\u2e2f\\u3005-\\u3007\\u3021-\\u3029\\u3031-\\u3035\\u3038-\\u303c\\u3041-\\u3096\\u309d-\\u309f\\u30a1-\\u30fa\\u30fc-\\u30ff\\u3105-\\u312d\\u3131-\\u318e\\u31a0-\\u31ba\\u31f0-\\u31ff\\u3400-\\u4db5\\u4e00-\\u9fcc\\ua000-\\ua48c\\ua4d0-\\ua4fd\\ua500-\\ua60c\\ua610-\\ua61f\\ua62a\\ua62b\\ua640-\\ua66e\\ua67f-\\ua697\\ua6a0-\\ua6ef\\ua717-\\ua71f\\ua722-\\ua788\\ua78b-\\ua78e\\ua790-\\ua793\\ua7a0-\\ua7aa\\ua7f8-\\ua801\\ua803-\\ua805\\ua807-\\ua80a\\ua80c-\\ua822\\ua840-\\ua873\\ua882-\\ua8b3\\ua8f2-\\ua8f7\\ua8fb\\ua90a-\\ua925\\ua930-\\ua946\\ua960-\\ua97c\\ua984-\\ua9b2\\ua9cf\\uaa00-\\uaa28\\uaa40-\\uaa42\\uaa44-\\uaa4b\\uaa60-\\uaa76\\uaa7a\\uaa80-\\uaaaf\\uaab1\\uaab5\\uaab6\\uaab9-\\uaabd\\uaac0\\uaac2\\uaadb-\\uaadd\\uaae0-\\uaaea\\uaaf2-\\uaaf4\\uab01-\\uab06\\uab09-\\uab0e\\uab11-\\uab16\\uab20-\\uab26\\uab28-\\uab2e\\uabc0-\\uabe2\\uac00-\\ud7a3\\ud7b0-\\ud7c6\\ud7cb-\\ud7fb\\uf900-\\ufa6d\\ufa70-\\ufad9\\ufb00-\\ufb06\\ufb13-\\ufb17\\ufb1d\\ufb1f-\\ufb28\\ufb2a-\\ufb36\\ufb38-\\ufb3c\\ufb3e\\ufb40\\ufb41\\ufb43\\ufb44\\ufb46-\\ufbb1\\ufbd3-\\ufd3d\\ufd50-\\ufd8f\\ufd92-\\ufdc7\\ufdf0-\\ufdfb\\ufe70-\\ufe74\\ufe76-\\ufefc\\uff21-\\uff3a\\uff41-\\uff5a\\uff66-\\uffbe\\uffc2-\\uffc7\\uffca-\\uffcf\\uffd2-\\uffd7\\uffda-\\uffdc",c="\\u0300-\\u036f\\u0483-\\u0487\\u0591-\\u05bd\\u05bf\\u05c1\\u05c2\\u05c4\\u05c5\\u05c7\\u0610-\\u061a\\u0620-\\u0649\\u0672-\\u06d3\\u06e7-\\u06e8\\u06fb-\\u06fc\\u0730-\\u074a\\u0800-\\u0814\\u081b-\\u0823\\u0825-\\u0827\\u0829-\\u082d\\u0840-\\u0857\\u08e4-\\u08fe\\u0900-\\u0903\\u093a-\\u093c\\u093e-\\u094f\\u0951-\\u0957\\u0962-\\u0963\\u0966-\\u096f\\u0981-\\u0983\\u09bc\\u09be-\\u09c4\\u09c7\\u09c8\\u09d7\\u09df-\\u09e0\\u0a01-\\u0a03\\u0a3c\\u0a3e-\\u0a42\\u0a47\\u0a48\\u0a4b-\\u0a4d\\u0a51\\u0a66-\\u0a71\\u0a75\\u0a81-\\u0a83\\u0abc\\u0abe-\\u0ac5\\u0ac7-\\u0ac9\\u0acb-\\u0acd\\u0ae2-\\u0ae3\\u0ae6-\\u0aef\\u0b01-\\u0b03\\u0b3c\\u0b3e-\\u0b44\\u0b47\\u0b48\\u0b4b-\\u0b4d\\u0b56\\u0b57\\u0b5f-\\u0b60\\u0b66-\\u0b6f\\u0b82\\u0bbe-\\u0bc2\\u0bc6-\\u0bc8\\u0bca-\\u0bcd\\u0bd7\\u0be6-\\u0bef\\u0c01-\\u0c03\\u0c46-\\u0c48\\u0c4a-\\u0c4d\\u0c55\\u0c56\\u0c62-\\u0c63\\u0c66-\\u0c6f\\u0c82\\u0c83\\u0cbc\\u0cbe-\\u0cc4\\u0cc6-\\u0cc8\\u0cca-\\u0ccd\\u0cd5\\u0cd6\\u0ce2-\\u0ce3\\u0ce6-\\u0cef\\u0d02\\u0d03\\u0d46-\\u0d48\\u0d57\\u0d62-\\u0d63\\u0d66-\\u0d6f\\u0d82\\u0d83\\u0dca\\u0dcf-\\u0dd4\\u0dd6\\u0dd8-\\u0ddf\\u0df2\\u0df3\\u0e34-\\u0e3a\\u0e40-\\u0e45\\u0e50-\\u0e59\\u0eb4-\\u0eb9\\u0ec8-\\u0ecd\\u0ed0-\\u0ed9\\u0f18\\u0f19\\u0f20-\\u0f29\\u0f35\\u0f37\\u0f39\\u0f41-\\u0f47\\u0f71-\\u0f84\\u0f86-\\u0f87\\u0f8d-\\u0f97\\u0f99-\\u0fbc\\u0fc6\\u1000-\\u1029\\u1040-\\u1049\\u1067-\\u106d\\u1071-\\u1074\\u1082-\\u108d\\u108f-\\u109d\\u135d-\\u135f\\u170e-\\u1710\\u1720-\\u1730\\u1740-\\u1750\\u1772\\u1773\\u1780-\\u17b2\\u17dd\\u17e0-\\u17e9\\u180b-\\u180d\\u1810-\\u1819\\u1920-\\u192b\\u1930-\\u193b\\u1951-\\u196d\\u19b0-\\u19c0\\u19c8-\\u19c9\\u19d0-\\u19d9\\u1a00-\\u1a15\\u1a20-\\u1a53\\u1a60-\\u1a7c\\u1a7f-\\u1a89\\u1a90-\\u1a99\\u1b46-\\u1b4b\\u1b50-\\u1b59\\u1b6b-\\u1b73\\u1bb0-\\u1bb9\\u1be6-\\u1bf3\\u1c00-\\u1c22\\u1c40-\\u1c49\\u1c5b-\\u1c7d\\u1cd0-\\u1cd2\\u1d00-\\u1dbe\\u1e01-\\u1f15\\u200c\\u200d\\u203f\\u2040\\u2054\\u20d0-\\u20dc\\u20e1\\u20e5-\\u20f0\\u2d81-\\u2d96\\u2de0-\\u2dff\\u3021-\\u3028\\u3099\\u309a\\ua640-\\ua66d\\ua674-\\ua67d\\ua69f\\ua6f0-\\ua6f1\\ua7f8-\\ua800\\ua806\\ua80b\\ua823-\\ua827\\ua880-\\ua881\\ua8b4-\\ua8c4\\ua8d0-\\ua8d9\\ua8f3-\\ua8f7\\ua900-\\ua909\\ua926-\\ua92d\\ua930-\\ua945\\ua980-\\ua983\\ua9b3-\\ua9c0\\uaa00-\\uaa27\\uaa40-\\uaa41\\uaa4c-\\uaa4d\\uaa50-\\uaa59\\uaa7b\\uaae0-\\uaae9\\uaaf2-\\uaaf3\\uabc0-\\uabe1\\uabec\\uabed\\uabf0-\\uabf9\\ufb20-\\ufb28\\ufe00-\\ufe0f\\ufe20-\\ufe26\\ufe33\\ufe34\\ufe4d-\\ufe4f\\uff10-\\uff19\\uff3f",S="\\\\u[0-9a-fA-F]{4}|\\\\u\\{[0-9a-fA-F]+\\}",y="(?:"+S+"|["+L+v+"])",q="(?:"+S+"|["+$+v+c+"])*";o.identifier=new RegExp(y+q,"g"),o.identifierStart=new RegExp(y),o.identifierMatch=new RegExp("(?:"+S+"|["+$+v+c+"])+");var ae=/[\u1680\u180e\u2000-\u200a\u202f\u205f\u3000\ufeff]/;o.newline=/[\n\r\u2028\u2029]/,o.lineBreak=new RegExp(`\r
|`+o.newline.source),o.allLineBreaks=new RegExp(o.lineBreak.source,"g")},function(be,o,L){var $=L(6).Options,v=["before-newline","after-newline","preserve-newline"];function c(S){$.call(this,S,"js");var y=this.raw_options.brace_style||null;y==="expand-strict"?this.raw_options.brace_style="expand":y==="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 q=this._get_selection_list("brace_style",["collapse","expand","end-expand","none","preserve-inline"]);this.brace_preserve_inline=!1,this.brace_style="collapse";for(var ae=0;ae<q.length;ae++)q[ae]==="preserve-inline"?this.brace_preserve_inline=!0:this.brace_style=q[ae];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",v),this.test_output_raw=this._get_boolean("test_output_raw"),this.jslint_happy&&(this.space_after_anon_function=!0)}c.prototype=new $,be.exports.Options=c},function(be){function o(v,c){this.raw_options=L(v,c),this.disabled=this._get_boolean("disabled"),this.eol=this._get_characters("eol","auto"),this.end_with_newline=this._get_boolean("end_with_newline"),this.indent_size=this._get_number("indent_size",4),this.indent_char=this._get_characters("indent_char"," "),this.indent_level=this._get_number("indent_level"),this.preserve_newlines=this._get_boolean("preserve_newlines",!0),this.max_preserve_newlines=this._get_number("max_preserve_newlines",32786),this.preserve_newlines||(this.max_preserve_newlines=0),this.indent_with_tabs=this._get_boolean("indent_with_tabs",this.indent_char===" "),this.indent_with_tabs&&(this.indent_char=" ",this.indent_size===1&&(this.indent_size=4)),this.wrap_line_length=this._get_number("wrap_line_length",this._get_number("max_char")),this.indent_empty_lines=this._get_boolean("indent_empty_lines"),this.templating=this._get_selection_list("templating",["auto","none","angular","django","erb","handlebars","php","smarty"],["auto"])}o.prototype._get_array=function(v,c){var S=this.raw_options[v],y=c||[];return typeof S=="object"?S!==null&&typeof S.concat=="function"&&(y=S.concat()):typeof S=="string"&&(y=S.split(/[^a-zA-Z0-9_\/\-]+/)),y},o.prototype._get_boolean=function(v,c){var S=this.raw_options[v],y=S===void 0?!!c:!!S;return y},o.prototype._get_characters=function(v,c){var S=this.raw_options[v],y=c||"";return typeof S=="string"&&(y=S.replace(/\\r/,"\r").replace(/\\n/,`
`).replace(/\\t/," ")),y},o.prototype._get_number=function(v,c){var S=this.raw_options[v];c=parseInt(c,10),isNaN(c)&&(c=0);var y=parseInt(S,10);return isNaN(y)&&(y=c),y},o.prototype._get_selection=function(v,c,S){var y=this._get_selection_list(v,c,S);if(y.length!==1)throw new Error("Invalid Option Value: The option '"+v+`' can only be one of the following values:
`+c+`
You passed in: '`+this.raw_options[v]+"'");return y[0]},o.prototype._get_selection_list=function(v,c,S){if(!c||c.length===0)throw new Error("Selection list cannot be empty.");if(S=S||[c[0]],!this._is_valid_selection(S,c))throw new Error("Invalid Default Value!");var y=this._get_array(v,S);if(!this._is_valid_selection(y,c))throw new Error("Invalid Option Value: The option '"+v+`' can contain only the following values:
`+c+`
You passed in: '`+this.raw_options[v]+"'");return y},o.prototype._is_valid_selection=function(v,c){return v.length&&c.length&&!v.some(function(S){return c.indexOf(S)===-1})};function L(v,c){var S={};v=$(v);var y;for(y in v)y!==c&&(S[y]=v[y]);if(c&&v[c])for(y in v[c])S[y]=v[c][y];return S}function $(v){var c={},S;for(S in v){var y=S.replace(/-/g,"_");c[y]=v[S]}return c}be.exports.Options=o,be.exports.normalizeOpts=$,be.exports.mergeOpts=L},function(be,o,L){var $=L(8).InputScanner,v=L(9).Tokenizer,c=L(9).TOKEN,S=L(13).Directives,y=L(4),q=L(12).Pattern,ae=L(14).TemplatablePattern;function P(X,me){return me.indexOf(X)!==-1}var z={START_EXPR:"TK_START_EXPR",END_EXPR:"TK_END_EXPR",START_BLOCK:"TK_START_BLOCK",END_BLOCK:"TK_END_BLOCK",WORD:"TK_WORD",RESERVED:"TK_RESERVED",SEMICOLON:"TK_SEMICOLON",STRING:"TK_STRING",EQUALS:"TK_EQUALS",OPERATOR:"TK_OPERATOR",COMMA:"TK_COMMA",BLOCK_COMMENT:"TK_BLOCK_COMMENT",COMMENT:"TK_COMMENT",DOT:"TK_DOT",UNKNOWN:"TK_UNKNOWN",START:c.START,RAW:c.RAW,EOF:c.EOF},W=new S(/\/\*/,/\*\//),re=/0[xX][0123456789abcdefABCDEF_]*n?|0[oO][01234567_]*n?|0[bB][01_]*n?|\d[\d_]*n|(?:\.\d[\d_]*|\d[\d_]*\.?[\d_]*)(?:[eE][+-]?[\d_]+)?/,b=/[0-9]/,D=/[^\d\.]/,F=">>> === !== &&= ??= ||= << && >= ** != == <= >> || ?? |> < / - + > : & % ? ^ | *".split(" "),U=">>>= ... >>= <<= === >>> !== **= &&= ??= ||= => ^= :: /= << <= == && -= >= >> != -- += ** || ?? ++ %= &= *= |= |> = ! ? > < : / ^ - + * & % ~ |";U=U.replace(/[-[\]{}()*+?.,\\^$|#]/g,"\\$&"),U="\\?\\.(?!\\d) "+U,U=U.replace(/ /g,"|");var fe=new RegExp(U),ye="continue,try,throw,return,var,let,const,if,switch,case,default,for,while,break,function,import,export".split(","),Se=ye.concat(["do","in","of","else","get","set","new","catch","finally","typeof","yield","async","await","from","as","class","extends"]),Ne=new RegExp("^(?:"+Se.join("|")+")$"),Z,B=function(X,me){v.call(this,X,me),this._patterns.whitespace=this._patterns.whitespace.matching(/\u00A0\u1680\u180e\u2000-\u200a\u202f\u205f\u3000\ufeff/.source,/\u2028\u2029/.source);var ee=new q(this._input),g=new ae(this._input).read_options(this._options);this.__patterns={template:g,identifier:g.starting_with(y.identifier).matching(y.identifierMatch),number:ee.matching(re),punct:ee.matching(fe),comment:ee.starting_with(/\/\//).until(/[\n\r\u2028\u2029]/),block_comment:ee.starting_with(/\/\*/).until_after(/\*\//),html_comment_start:ee.matching(/<!--/),html_comment_end:ee.matching(/-->/),include:ee.starting_with(/#include/).until_after(y.lineBreak),shebang:ee.starting_with(/#!/).until_after(y.lineBreak),xml:ee.matching(/[\s\S]*?<(\/?)([-a-zA-Z:0-9_.]+|{[^}]+?}|!\[CDATA\[[^\]]*?\]\]|)(\s*{[^}]+?}|\s+[-a-zA-Z:0-9_.]+|\s+[-a-zA-Z:0-9_.]+\s*=\s*('[^']*'|"[^"]*"|{([^{}]|{[^}]+?})+?}))*\s*(\/?)\s*>/),single_quote:g.until(/['\\\n\r\u2028\u2029]/),double_quote:g.until(/["\\\n\r\u2028\u2029]/),template_text:g.until(/[`\\$]/),template_expression:g.until(/[`}\\]/)}};B.prototype=new v,B.prototype._is_comment=function(X){return X.type===z.COMMENT||X.type===z.BLOCK_COMMENT||X.type===z.UNKNOWN},B.prototype._is_opening=function(X){return X.type===z.START_BLOCK||X.type===z.START_EXPR},B.prototype._is_closing=function(X,me){return(X.type===z.END_BLOCK||X.type===z.END_EXPR)&&me&&(X.text==="]"&&me.text==="["||X.text===")"&&me.text==="("||X.text==="}"&&me.text==="{")},B.prototype._reset=function(){Z=!1},B.prototype._get_next_token=function(X,me){var ee=null;this._readWhitespace();var g=this._input.peek();return g===null?this._create_token(z.EOF,""):(ee=ee||this._read_non_javascript(g),ee=ee||this._read_string(g),ee=ee||this._read_pair(g,this._input.peek(1)),ee=ee||this._read_word(X),ee=ee||this._read_singles(g),ee=ee||this._read_comment(g),ee=ee||this._read_regexp(g,X),ee=ee||this._read_xml(g,X),ee=ee||this._read_punctuation(),ee=ee||this._create_token(z.UNKNOWN,this._input.next()),ee)},B.prototype._read_word=function(X){var me;if(me=this.__patterns.identifier.read(),me!=="")return me=me.replace(y.allLineBreaks,`
`),!(X.type===z.DOT||X.type===z.RESERVED&&(X.text==="set"||X.text==="get"))&&Ne.test(me)?(me==="in"||me==="of")&&(X.type===z.WORD||X.type===z.STRING)?this._create_token(z.OPERATOR,me):this._create_token(z.RESERVED,me):this._create_token(z.WORD,me);if(me=this.__patterns.number.read(),me!=="")return this._create_token(z.WORD,me)},B.prototype._read_singles=function(X){var me=null;return X==="("||X==="["?me=this._create_token(z.START_EXPR,X):X===")"||X==="]"?me=this._create_token(z.END_EXPR,X):X==="{"?me=this._create_token(z.START_BLOCK,X):X==="}"?me=this._create_token(z.END_BLOCK,X):X===";"?me=this._create_token(z.SEMICOLON,X):X==="."&&D.test(this._input.peek(1))?me=this._create_token(z.DOT,X):X===","&&(me=this._create_token(z.COMMA,X)),me&&this._input.next(),me},B.prototype._read_pair=function(X,me){var ee=null;return X==="#"&&me==="{"&&(ee=this._create_token(z.START_BLOCK,X+me)),ee&&(this._input.next(),this._input.next()),ee},B.prototype._read_punctuation=function(){var X=this.__patterns.punct.read();if(X!=="")return X==="="?this._create_token(z.EQUALS,X):X==="?."?this._create_token(z.DOT,X):this._create_token(z.OPERATOR,X)},B.prototype._read_non_javascript=function(X){var me="";if(X==="#"){if(this._is_first_token()&&(me=this.__patterns.shebang.read(),me))return this._create_token(z.UNKNOWN,me.trim()+`
`);if(me=this.__patterns.include.read(),me)return this._create_token(z.UNKNOWN,me.trim()+`
`);X=this._input.next();var ee="#";if(this._input.hasNext()&&this._input.testChar(b)){do X=this._input.next(),ee+=X;while(this._input.hasNext()&&X!=="#"&&X!=="=");return X==="#"||(this._input.peek()==="["&&this._input.peek(1)==="]"?(ee+="[]",this._input.next(),this._input.next()):this._input.peek()==="{"&&this._input.peek(1)==="}"&&(ee+="{}",this._input.next(),this._input.next())),this._create_token(z.WORD,ee)}this._input.back()}else if(X==="<"&&this._is_first_token()){if(me=this.__patterns.html_comment_start.read(),me){for(;this._input.hasNext()&&!this._input.testChar(y.newline);)me+=this._input.next();return Z=!0,this._create_token(z.COMMENT,me)}}else if(Z&&X==="-"&&(me=this.__patterns.html_comment_end.read(),me))return Z=!1,this._create_token(z.COMMENT,me);return null},B.prototype._read_comment=function(X){var me=null;if(X==="/"){var ee="";if(this._input.peek(1)==="*"){ee=this.__patterns.block_comment.read();var g=W.get_directives(ee);g&&g.ignore==="start"&&(ee+=W.readIgnored(this._input)),ee=ee.replace(y.allLineBreaks,`
`),me=this._create_token(z.BLOCK_COMMENT,ee),me.directives=g}else this._input.peek(1)==="/"&&(ee=this.__patterns.comment.read(),me=this._create_token(z.COMMENT,ee))}return me},B.prototype._read_string=function(X){if(X==="`"||X==="'"||X==='"'){var me=this._input.next();return this.has_char_escapes=!1,X==="`"?me+=this._read_string_recursive("`",!0,"${"):me+=this._read_string_recursive(X),this.has_char_escapes&&this._options.unescape_strings&&(me=ne(me)),this._input.peek()===X&&(me+=this._input.next()),me=me.replace(y.allLineBreaks,`
`),this._create_token(z.STRING,me)}return null},B.prototype._allow_regexp_or_xml=function(X){return X.type===z.RESERVED&&P(X.text,["return","case","throw","else","do","typeof","yield"])||X.type===z.END_EXPR&&X.text===")"&&X.opened.previous.type===z.RESERVED&&P(X.opened.previous.text,["if","while","for"])||P(X.type,[z.COMMENT,z.START_EXPR,z.START_BLOCK,z.START,z.END_BLOCK,z.OPERATOR,z.EQUALS,z.EOF,z.SEMICOLON,z.COMMA])},B.prototype._read_regexp=function(X,me){if(X==="/"&&this._allow_regexp_or_xml(me)){for(var ee=this._input.next(),g=!1,w=!1;this._input.hasNext()&&(g||w||this._input.peek()!==X)&&!this._input.testChar(y.newline);)ee+=this._input.peek(),g?g=!1:(g=this._input.peek()==="\\",this._input.peek()==="["?w=!0:this._input.peek()==="]"&&(w=!1)),this._input.next();return this._input.peek()===X&&(ee+=this._input.next(),ee+=this._input.read(y.identifier)),this._create_token(z.STRING,ee)}return null},B.prototype._read_xml=function(X,me){if(this._options.e4x&&X==="<"&&this._allow_regexp_or_xml(me)){var ee="",g=this.__patterns.xml.read_match();if(g){for(var w=g[2].replace(/^{\s+/,"{").replace(/\s+}$/,"}"),Q=w.indexOf("{")===0,J=0;g;){var Pe=!!g[1],Ue=g[2],Xe=!!g[g.length-1]||Ue.slice(0,8)==="![CDATA[";if(!Xe&&(Ue===w||Q&&Ue.replace(/^{\s+/,"{").replace(/\s+}$/,"}"))&&(Pe?--J:++J),ee+=g[0],J<=0)break;g=this.__patterns.xml.read_match()}return g||(ee+=this._input.match(/[\s\S]*/g)[0]),ee=ee.replace(y.allLineBreaks,`
`),this._create_token(z.STRING,ee)}}return null};function ne(X){for(var me="",ee=0,g=new $(X),w=null;g.hasNext();)if(w=g.match(/([\s]|[^\\]|\\\\)+/g),w&&(me+=w[0]),g.peek()==="\\"){if(g.next(),g.peek()==="x")w=g.match(/x([0-9A-Fa-f]{2})/g);else if(g.peek()==="u")w=g.match(/u([0-9A-Fa-f]{4})/g),w||(w=g.match(/u\{([0-9A-Fa-f]+)\}/g));else{me+="\\",g.hasNext()&&(me+=g.next());continue}if(!w||(ee=parseInt(w[1],16),ee>126&&ee<=255&&w[0].indexOf("x")===0))return X;ee>=0&&ee<32||ee>1114111?me+="\\"+w[0]:ee===34||ee===39||ee===92?me+="\\"+String.fromCharCode(ee):me+=String.fromCharCode(ee)}return me}B.prototype._read_string_recursive=function(X,me,ee){var g,w;X==="'"?w=this.__patterns.single_quote:X==='"'?w=this.__patterns.double_quote:X==="`"?w=this.__patterns.template_text:X==="}"&&(w=this.__patterns.template_expression);for(var Q=w.read(),J="";this._input.hasNext();){if(J=this._input.next(),J===X||!me&&y.newline.test(J)){this._input.back();break}else J==="\\"&&this._input.hasNext()?(g=this._input.peek(),g==="x"||g==="u"?this.has_char_escapes=!0:g==="\r"&&this._input.peek(1)===`
`&&this._input.next(),J+=this._input.next()):ee&&(ee==="${"&&J==="$"&&this._input.peek()==="{"&&(J+=this._input.next()),ee===J&&(X==="`"?J+=this._read_string_recursive("}",me,"`"):J+=this._read_string_recursive("`",me,"${"),this._input.hasNext()&&(J+=this._input.next())));J+=w.read(),Q+=J}return Q},be.exports.Tokenizer=B,be.exports.TOKEN=z,be.exports.positionable_operators=F.slice(),be.exports.line_starters=ye.slice()},function(be){var o=RegExp.prototype.hasOwnProperty("sticky");function L($){this.__input=$||"",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 $=null;return this.hasNext()&&($=this.__input.charAt(this.__position),this.__position+=1),$},L.prototype.peek=function($){var v=null;return $=$||0,$+=this.__position,$>=0&&$<this.__input_length&&(v=this.__input.charAt($)),v},L.prototype.__match=function($,v){$.lastIndex=v;var c=$.exec(this.__input);return c&&!(o&&$.sticky)&&c.index!==v&&(c=null),c},L.prototype.test=function($,v){return v=v||0,v+=this.__position,v>=0&&v<this.__input_length?!!this.__match($,v):!1},L.prototype.testChar=function($,v){var c=this.peek(v);return $.lastIndex=0,c!==null&&$.test(c)},L.prototype.match=function($){var v=this.__match($,this.__position);return v?this.__position+=v[0].length:v=null,v},L.prototype.read=function($,v,c){var S="",y;return $&&(y=this.match($),y&&(S+=y[0])),v&&(y||!$)&&(S+=this.readUntil(v,c)),S},L.prototype.readUntil=function($,v){var c="",S=this.__position;$.lastIndex=this.__position;var y=$.exec(this.__input);return y?(S=y.index,v&&(S+=y[0].length)):S=this.__input_length,c=this.__input.substring(this.__position,S),this.__position=S,c},L.prototype.readUntilAfter=function($){return this.readUntil($,!0)},L.prototype.get_regexp=function($,v){var c=null,S="g";return v&&o&&(S="y"),typeof $=="string"&&$!==""?c=new RegExp($,S):$&&(c=new RegExp($.source,S)),c},L.prototype.get_literal_regexp=function($){return RegExp($.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&"))},L.prototype.peekUntilAfter=function($){var v=this.__position,c=this.readUntilAfter($);return this.__position=v,c},L.prototype.lookBack=function($){var v=this.__position-1;return v>=$.length&&this.__input.substring(v-$.length,v).toLowerCase()===$},be.exports.InputScanner=L},function(be,o,L){var $=L(8).InputScanner,v=L(3).Token,c=L(10).TokenStream,S=L(11).WhitespacePattern,y={START:"TK_START",RAW:"TK_RAW",EOF:"TK_EOF"},q=function(ae,P){this._input=new $(ae),this._options=P||{},this.__tokens=null,this._patterns={},this._patterns.whitespace=new S(this._input)};q.prototype.tokenize=function(){this._input.restart(),this.__tokens=new c,this._reset();for(var ae,P=new v(y.START,""),z=null,W=[],re=new c;P.type!==y.EOF;){for(ae=this._get_next_token(P,z);this._is_comment(ae);)re.add(ae),ae=this._get_next_token(P,z);re.isEmpty()||(ae.comments_before=re,re=new c),ae.parent=z,this._is_opening(ae)?(W.push(z),z=ae):z&&this._is_closing(ae,z)&&(ae.opened=z,z.closed=ae,z=W.pop(),ae.parent=z),ae.previous=P,P.next=ae,this.__tokens.add(ae),P=ae}return this.__tokens},q.prototype._is_first_token=function(){return this.__tokens.isEmpty()},q.prototype._reset=function(){},q.prototype._get_next_token=function(ae,P){this._readWhitespace();var z=this._input.read(/.+/g);return z?this._create_token(y.RAW,z):this._create_token(y.EOF,"")},q.prototype._is_comment=function(ae){return!1},q.prototype._is_opening=function(ae){return!1},q.prototype._is_closing=function(ae,P){return!1},q.prototype._create_token=function(ae,P){var z=new v(ae,P,this._patterns.whitespace.newline_count,this._patterns.whitespace.whitespace_before_token);return z},q.prototype._readWhitespace=function(){return this._patterns.whitespace.read()},be.exports.Tokenizer=q,be.exports.TOKEN=y},function(be){function o(L){this.__tokens=[],this.__tokens_length=this.__tokens.length,this.__position=0,this.__parent_token=L}o.prototype.restart=function(){this.__position=0},o.prototype.isEmpty=function(){return this.__tokens_length===0},o.prototype.hasNext=function(){return this.__position<this.__tokens_length},o.prototype.next=function(){var L=null;return this.hasNext()&&(L=this.__tokens[this.__position],this.__position+=1),L},o.prototype.peek=function(L){var $=null;return L=L||0,L+=this.__position,L>=0&&L<this.__tokens_length&&($=this.__tokens[L]),$},o.prototype.add=function(L){this.__parent_token&&(L.parent=this.__parent_token),this.__tokens.push(L),this.__tokens_length+=1},be.exports.TokenStream=o},function(be,o,L){var $=L(12).Pattern;function v(c,S){$.call(this,c,S),S?this._line_regexp=this._input.get_regexp(S._line_regexp):this.__set_whitespace_patterns("",""),this.newline_count=0,this.whitespace_before_token=""}v.prototype=new $,v.prototype.__set_whitespace_patterns=function(c,S){c+="\\t ",S+="\\n\\r",this._match_pattern=this._input.get_regexp("["+c+S+"]+",!0),this._newline_regexp=this._input.get_regexp("\\r\\n|["+S+"]")},v.prototype.read=function(){this.newline_count=0,this.whitespace_before_token="";var c=this._input.read(this._match_pattern);if(c===" ")this.whitespace_before_token=" ";else if(c){var S=this.__split(this._newline_regexp,c);this.newline_count=S.length-1,this.whitespace_before_token=S[this.newline_count]}return c},v.prototype.matching=function(c,S){var y=this._create();return y.__set_whitespace_patterns(c,S),y._update(),y},v.prototype._create=function(){return new v(this._input,this)},v.prototype.__split=function(c,S){c.lastIndex=0;for(var y=0,q=[],ae=c.exec(S);ae;)q.push(S.substring(y,ae.index)),y=ae.index+ae[0].length,ae=c.exec(S);return y<S.length?q.push(S.substring(y,S.length)):q.push(""),q},be.exports.WhitespacePattern=v},function(be){function o(L,$){this._input=L,this._starting_pattern=null,this._match_pattern=null,this._until_pattern=null,this._until_after=!1,$&&(this._starting_pattern=this._input.get_regexp($._starting_pattern,!0),this._match_pattern=this._input.get_regexp($._match_pattern,!0),this._until_pattern=this._input.get_regexp($._until_pattern),this._until_after=$._until_after)}o.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},o.prototype.read_match=function(){return this._input.match(this._match_pattern)},o.prototype.until_after=function(L){var $=this._create();return $._until_after=!0,$._until_pattern=this._input.get_regexp(L),$._update(),$},o.prototype.until=function(L){var $=this._create();return $._until_after=!1,$._until_pattern=this._input.get_regexp(L),$._update(),$},o.prototype.starting_with=function(L){var $=this._create();return $._starting_pattern=this._input.get_regexp(L,!0),$._update(),$},o.prototype.matching=function(L){var $=this._create();return $._match_pattern=this._input.get_regexp(L,!0),$._update(),$},o.prototype._create=function(){return new o(this._input,this)},o.prototype._update=function(){},be.exports.Pattern=o},function(be){function o(L,$){L=typeof L=="string"?L:L.source,$=typeof $=="string"?$:$.source,this.__directives_block_pattern=new RegExp(L+/ beautify( \w+[:]\w+)+ /.source+$,"g"),this.__directive_pattern=/ (\w+)[:](\w+)/g,this.__directives_end_ignore_pattern=new RegExp(L+/\sbeautify\signore:end\s/.source+$,"g")}o.prototype.get_directives=function(L){if(!L.match(this.__directives_block_pattern))return null;var $={};this.__directive_pattern.lastIndex=0;for(var v=this.__directive_pattern.exec(L);v;)$[v[1]]=v[2],v=this.__directive_pattern.exec(L);return $},o.prototype.readIgnored=function(L){return L.readUntilAfter(this.__directives_end_ignore_pattern)},be.exports.Directives=o},function(be,o,L){var $=L(12).Pattern,v={django:!1,erb:!1,handlebars:!1,php:!1,smarty:!1,angular:!1};function c(S,y){$.call(this,S,y),this.__template_pattern=null,this._disabled=Object.assign({},v),this._excluded=Object.assign({},v),y&&(this.__template_pattern=this._input.get_regexp(y.__template_pattern),this._excluded=Object.assign(this._excluded,y._excluded),this._disabled=Object.assign(this._disabled,y._disabled));var q=new $(S);this.__patterns={handlebars_comment:q.starting_with(/{{!--/).until_after(/--}}/),handlebars_unescaped:q.starting_with(/{{{/).until_after(/}}}/),handlebars:q.starting_with(/{{/).until_after(/}}/),php:q.starting_with(/<\?(?:[= ]|php)/).until_after(/\?>/),erb:q.starting_with(/<%[^%]/).until_after(/[^%]%>/),django:q.starting_with(/{%/).until_after(/%}/),django_value:q.starting_with(/{{/).until_after(/}}/),django_comment:q.starting_with(/{#/).until_after(/#}/),smarty:q.starting_with(/{(?=[^}{\s\n])/).until_after(/[^\s\n]}/),smarty_comment:q.starting_with(/{\*/).until_after(/\*}/),smarty_literal:q.starting_with(/{literal}/).until_after(/{\/literal}/)}}c.prototype=new $,c.prototype._create=function(){return new c(this._input,this)},c.prototype._update=function(){this.__set_templated_pattern()},c.prototype.disable=function(S){var y=this._create();return y._disabled[S]=!0,y._update(),y},c.prototype.read_options=function(S){var y=this._create();for(var q in v)y._disabled[q]=S.templating.indexOf(q)===-1;return y._update(),y},c.prototype.exclude=function(S){var y=this._create();return y._excluded[S]=!0,y._update(),y},c.prototype.read=function(){var S="";this._match_pattern?S=this._input.read(this._starting_pattern):S=this._input.read(this._starting_pattern,this.__template_pattern);for(var y=this._read_template();y;)this._match_pattern?y+=this._input.read(this._match_pattern):y+=this._input.readUntil(this.__template_pattern),S+=y,y=this._read_template();return this._until_after&&(S+=this._input.readUntilAfter(this._until_pattern)),S},c.prototype.__set_templated_pattern=function(){var S=[];this._disabled.php||S.push(this.__patterns.php._starting_pattern.source),this._disabled.handlebars||S.push(this.__patterns.handlebars._starting_pattern.source),this._disabled.angular||S.push(this.__patterns.handlebars._starting_pattern.source),this._disabled.erb||S.push(this.__patterns.erb._starting_pattern.source),this._disabled.django||(S.push(this.__patterns.django._starting_pattern.source),S.push(this.__patterns.django_value._starting_pattern.source),S.push(this.__patterns.django_comment._starting_pattern.source)),this._disabled.smarty||S.push(this.__patterns.smarty._starting_pattern.source),this._until_pattern&&S.push(this._until_pattern.source),this.__template_pattern=this._input.get_regexp("(?:"+S.join("|")+")")},c.prototype._read_template=function(){var S="",y=this._input.peek();if(y==="<"){var q=this._input.peek(1);!this._disabled.php&&!this._excluded.php&&q==="?"&&(S=S||this.__patterns.php.read()),!this._disabled.erb&&!this._excluded.erb&&q==="%"&&(S=S||this.__patterns.erb.read())}else y==="{"&&(!this._disabled.handlebars&&!this._excluded.handlebars&&(S=S||this.__patterns.handlebars_comment.read(),S=S||this.__patterns.handlebars_unescaped.read(),S=S||this.__patterns.handlebars.read()),this._disabled.django||(!this._excluded.django&&!this._excluded.handlebars&&(S=S||this.__patterns.django_value.read()),this._excluded.django||(S=S||this.__patterns.django_comment.read(),S=S||this.__patterns.django.read())),this._disabled.smarty||this._disabled.django&&this._disabled.handlebars&&(S=S||this.__patterns.smarty_comment.read(),S=S||this.__patterns.smarty_literal.read(),S=S||this.__patterns.smarty.read()));return S},be.exports.TemplatablePattern=c}],ve={};function le(be){var o=ve[be];if(o!==void 0)return o.exports;var L=ve[be]={exports:{}};return Re[be](L,L.exports,le),L.exports}var Te=le(0);N=Te})();var ie=N;_=[],T=function(){return{js_beautify:ie}}.apply(et,_),T!==void 0&&(Ht.exports=T)})()},15342:function(Ht){(function(_,T){Ht.exports=T()})(typeof self!="undefined"?self:this,function(){return function(et){var _={};function T(N){if(_[N])return _[N].exports;var ie=_[N]={i:N,l:!1,exports:{}};return et[N].call(ie.exports,ie,ie.exports,T),ie.l=!0,ie.exports}return T.m=et,T.c=_,T.d=function(N,ie,Re){T.o(N,ie)||Object.defineProperty(N,ie,{enumerable:!0,get:Re})},T.r=function(N){typeof Symbol!="undefined"&&Symbol.toStringTag&&Object.defineProperty(N,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(N,"__esModule",{value:!0})},T.t=function(N,ie){if(ie&1&&(N=T(N)),ie&8||ie&4&&typeof N=="object"&&N&&N.__esModule)return N;var Re=Object.create(null);if(T.r(Re),Object.defineProperty(Re,"default",{enumerable:!0,value:N}),ie&2&&typeof N!="string")for(var ve in N)T.d(Re,ve,function(le){return N[le]}.bind(null,ve));return Re},T.n=function(N){var ie=N&&N.__esModule?function(){return N.default}:function(){return N};return T.d(ie,"a",ie),ie},T.o=function(N,ie){return Object.prototype.hasOwnProperty.call(N,ie)},T.p="",T(T.s=1)}([function(et,_,T){},function(et,_,T){"use strict";T.r(_);var N=T(0),ie=function(){function j(l,d,h){this.lexer=void 0,this.start=void 0,this.end=void 0,this.lexer=l,this.start=d,this.end=h}return j.range=function(d,h){return h?!d||!d.loc||!h.loc||d.loc.lexer!==h.loc.lexer?null:new j(d.loc.lexer,d.loc.start,h.loc.end):d&&d.loc},j}(),Re=function(){function j(d,h){this.text=void 0,this.loc=void 0,this.text=d,this.loc=h}var l=j.prototype;return l.range=function(h,m){return new j(m,ie.range(this,h))},j}(),ve=function j(l,d){this.position=void 0;var h="KaTeX parse error: "+l,m,I=d&&d.loc;if(I&&I.start<=I.end){var H=I.lexer.input;m=I.start;var Ee=I.end;m===H.length?h+=" at end of input: ":h+=" at position "+(m+1)+": ";var Oe=H.slice(m,Ee).replace(/[^]/g,"$&\u0332"),Ke;m>15?Ke="\u2026"+H.slice(m-15,m):Ke=H.slice(0,m);var st;Ee+15<H.length?st=H.slice(Ee,Ee+15)+"\u2026":st=H.slice(Ee),h+=Ke+Oe+st}var _t=new Error(h);return _t.name="ParseError",_t.__proto__=j.prototype,_t.position=m,_t};ve.prototype.__proto__=Error.prototype;var le=ve,Te=function(l,d){return l.indexOf(d)!==-1},be=function(l,d){return l===void 0?d:l},o=/([A-Z])/g,L=function(l){return l.replace(o,"-$1").toLowerCase()},$={"&":"&amp;",">":"&gt;","<":"&lt;",'"':"&quot;","'":"&#x27;"},v=/[&><"']/g;function c(j){return String(j).replace(v,function(l){return $[l]})}var S=function j(l){return l.type==="ordgroup"||l.type==="color"?l.body.length===1?j(l.body[0]):l:l.type==="font"?j(l.body):l},y=function(l){var d=S(l);return d.type==="mathord"||d.type==="textord"||d.type==="atom"},q=function(l){if(!l)throw new Error("Expected non-null, but got "+String(l));return l},ae=function(l){var d=/^\s*([^\\/#]*?)(?::|&#0*58|&#x0*3a)/i.exec(l);return d!=null?d[1]:"_relative"},P={contains:Te,deflt:be,escape:c,hyphenate:L,getBaseElem:S,isCharacterBox:y,protocolFromUrl:ae},z=function(){function j(d){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,d=d||{},this.displayMode=P.deflt(d.displayMode,!1),this.output=P.deflt(d.output,"htmlAndMathml"),this.leqno=P.deflt(d.leqno,!1),this.fleqn=P.deflt(d.fleqn,!1),this.throwOnError=P.deflt(d.throwOnError,!0),this.errorColor=P.deflt(d.errorColor,"#cc0000"),this.macros=d.macros||{},this.minRuleThickness=Math.max(0,P.deflt(d.minRuleThickness,0)),this.colorIsTextColor=P.deflt(d.colorIsTextColor,!1),this.strict=P.deflt(d.strict,"warn"),this.trust=P.deflt(d.trust,!1),this.maxSize=Math.max(0,P.deflt(d.maxSize,1/0)),this.maxExpand=Math.max(0,P.deflt(d.maxExpand,1e3))}var l=j.prototype;return l.reportNonstrict=function(h,m,I){var H=this.strict;if(typeof H=="function"&&(H=H(h,m,I)),!(!H||H==="ignore")){if(H===!0||H==="error")throw new le("LaTeX-incompatible input and strict mode is set to 'error': "+(m+" ["+h+"]"),I);H==="warn"?typeof console!="undefined"&&console.warn("LaTeX-incompatible input and strict mode is set to 'warn': "+(m+" ["+h+"]")):typeof console!="undefined"&&console.warn("LaTeX-incompatible input and strict mode is set to "+("unrecognized '"+H+"': "+m+" ["+h+"]"))}},l.useStrictBehavior=function(h,m,I){var H=this.strict;if(typeof H=="function")try{H=H(h,m,I)}catch(Ee){H="error"}return!H||H==="ignore"?!1:H===!0||H==="error"?!0:H==="warn"?(typeof console!="undefined"&&console.warn("LaTeX-incompatible input and strict mode is set to 'warn': "+(m+" ["+h+"]")),!1):(typeof console!="undefined"&&console.warn("LaTeX-incompatible input and strict mode is set to "+("unrecognized '"+H+"': "+m+" ["+h+"]")),!1)},l.isTrusted=function(h){h.url&&!h.protocol&&(h.protocol=P.protocolFromUrl(h.url));var m=typeof this.trust=="function"?this.trust(h):this.trust;return!!m},j}(),W=function(){function j(d,h,m){this.id=void 0,this.size=void 0,this.cramped=void 0,this.id=d,this.size=h,this.cramped=m}var l=j.prototype;return l.sup=function(){return Ne[Z[this.id]]},l.sub=function(){return Ne[B[this.id]]},l.fracNum=function(){return Ne[ne[this.id]]},l.fracDen=function(){return Ne[X[this.id]]},l.cramp=function(){return Ne[me[this.id]]},l.text=function(){return Ne[ee[this.id]]},l.isTight=function(){return this.size>=2},j}(),re=0,b=1,D=2,F=3,U=4,fe=5,ye=6,Se=7,Ne=[new W(re,0,!1),new W(b,0,!0),new W(D,1,!1),new W(F,1,!0),new W(U,2,!1),new W(fe,2,!0),new W(ye,3,!1),new W(Se,3,!0)],Z=[U,fe,U,fe,ye,Se,ye,Se],B=[fe,fe,fe,fe,Se,Se,Se,Se],ne=[D,F,U,fe,ye,Se,ye,Se],X=[F,F,fe,fe,Se,Se,Se,Se],me=[b,b,F,F,fe,fe,Se,Se],ee=[re,b,D,F,D,F,D,F],g={DISPLAY:Ne[re],TEXT:Ne[D],SCRIPT:Ne[U],SCRIPTSCRIPT:Ne[ye]},w=[{name:"latin",blocks:[[256,591],[768,879]]},{name:"cyrillic",blocks:[[1024,1279]]},{name:"brahmic",blocks:[[2304,4255]]},{name:"georgian",blocks:[[4256,4351]]},{name:"cjk",blocks:[[12288,12543],[19968,40879],[65280,65376]]},{name:"hangul",blocks:[[44032,55215]]}];function Q(j){for(var l=0;l<w.length;l++)for(var d=w[l],h=0;h<d.blocks.length;h++){var m=d.blocks[h];if(j>=m[0]&&j<=m[1])return d.name}return null}var J=[];w.forEach(function(j){return j.blocks.forEach(function(l){return J.push.apply(J,l)})});function Pe(j){for(var l=0;l<J.length;l+=2)if(j>=J[l]&&j<=J[l+1])return!0;return!1}var Ue=80,Xe=function(l,d){return"M95,"+(622+l+d)+`
c-2.7,0,-7.17,-2.7,-13.5,-8c-5.8,-5.3,-9.5,-10,-9.5,-14
c0,-2,0.3,-3.3,1,-4c1.3,-2.7,23.83,-20.7,67.5,-54
c44.2,-33.3,65.8,-50.3,66.5,-51c1.3,-1.3,3,-2,5,-2c4.7,0,8.7,3.3,12,10
s173,378,173,378c0.7,0,35.3,-71,104,-213c68.7,-142,137.5,-285,206.5,-429
c69,-144,104.5,-217.7,106.5,-221
l`+l/2.075+" -"+l+`
c5.3,-9.3,12,-14,20,-14
H400000v`+(40+l)+`H845.2724
s-225.272,467,-225.272,467s-235,486,-235,486c-2.7,4.7,-9,7,-19,7
c-6,0,-10,-1,-12,-3s-194,-422,-194,-422s-65,47,-65,47z
M`+(834+l)+" "+d+"h400000v"+(40+l)+"h-400000z"},Ze=function(l,d){return"M263,"+(601+l+d)+`c0.7,0,18,39.7,52,119
c34,79.3,68.167,158.7,102.5,238c34.3,79.3,51.8,119.3,52.5,120
c340,-704.7,510.7,-1060.3,512,-1067
l`+l/2.084+" -"+l+`
c4.7,-7.3,11,-11,19,-11
H40000v`+(40+l)+`H1012.3
s-271.3,567,-271.3,567c-38.7,80.7,-84,175,-136,283c-52,108,-89.167,185.3,-111.5,232
c-22.3,46.7,-33.8,70.3,-34.5,71c-4.7,4.7,-12.3,7,-23,7s-12,-1,-12,-1
s-109,-253,-109,-253c-72.7,-168,-109.3,-252,-110,-252c-10.7,8,-22,16.7,-34,26
c-22,17.3,-33.3,26,-34,26s-26,-26,-26,-26s76,-59,76,-59s76,-60,76,-60z
M`+(1001+l)+" "+d+"h400000v"+(40+l)+"h-400000z"},lt=function(l,d){return"M983 "+(10+l+d)+`
l`+l/3.13+" -"+l+`
c4,-6.7,10,-10,18,-10 H400000v`+(40+l)+`
H1013.1s-83.4,268,-264.1,840c-180.7,572,-277,876.3,-289,913c-4.7,4.7,-12.7,7,-24,7
s-12,0,-12,0c-1.3,-3.3,-3.7,-11.7,-7,-25c-35.3,-125.3,-106.7,-373.3,-214,-744
c-10,12,-21,25,-33,39s-32,39,-32,39c-6,-5.3,-15,-14,-27,-26s25,-30,25,-30
c26.7,-32.7,52,-63,76,-91s52,-60,52,-60s208,722,208,722
c56,-175.3,126.3,-397.3,211,-666c84.7,-268.7,153.8,-488.2,207.5,-658.5
c53.7,-170.3,84.5,-266.8,92.5,-289.5z
M`+(1001+l)+" "+d+"h400000v"+(40+l)+"h-400000z"},at=function(l,d){return"M424,"+(2398+l+d)+`
c-1.3,-0.7,-38.5,-172,-111.5,-514c-73,-342,-109.8,-513.3,-110.5,-514
c0,-2,-10.7,14.3,-32,49c-4.7,7.3,-9.8,15.7,-15.5,25c-5.7,9.3,-9.8,16,-12.5,20
s-5,7,-5,7c-4,-3.3,-8.3,-7.7,-13,-13s-13,-13,-13,-13s76,-122,76,-122s77,-121,77,-121
s209,968,209,968c0,-2,84.7,-361.7,254,-1079c169.3,-717.3,254.7,-1077.7,256,-1081
l`+l/4.223+" -"+l+`c4,-6.7,10,-10,18,-10 H400000
v`+(40+l)+`H1014.6
s-87.3,378.7,-272.6,1166c-185.3,787.3,-279.3,1182.3,-282,1185
c-2,6,-10,9,-24,9
c-8,0,-12,-0.7,-12,-2z M`+(1001+l)+" "+d+`
h400000v`+(40+l)+"h-400000z"},ct=function(l,d){return"M473,"+(2713+l+d)+`
c339.3,-1799.3,509.3,-2700,510,-2702 l`+l/5.298+" -"+l+`
c3.3,-7.3,9.3,-11,18,-11 H400000v`+(40+l)+`H1017.7
s-90.5,478,-276.2,1466c-185.7,988,-279.5,1483,-281.5,1485c-2,6,-10,9,-24,9
c-8,0,-12,-0.7,-12,-2c0,-1.3,-5.3,-32,-16,-92c-50.7,-293.3,-119.7,-693.3,-207,-1200
c0,-1.3,-5.3,8.7,-16,30c-10.7,21.3,-21.3,42.7,-32,64s-16,33,-16,33s-26,-26,-26,-26
s76,-153,76,-153s77,-151,77,-151c0.7,0.7,35.7,202,105,604c67.3,400.7,102,602.7,104,
606zM`+(1001+l)+" "+d+"h400000v"+(40+l)+"H1017.7z"},Ot=function(l,d,h){var m=h-54-d-l;return"M702 "+(l+d)+"H400000"+(40+l)+`
H742v`+m+`l-4 4-4 4c-.667.7 -2 1.5-4 2.5s-4.167 1.833-6.5 2.5-5.5 1-9.5 1
h-12l-28-84c-16.667-52-96.667 -294.333-240-727l-212 -643 -85 170
c-4-3.333-8.333-7.667-13 -13l-13-13l77-155 77-156c66 199.333 139 419.667
219 661 l218 661zM702 `+d+"H400000v"+(40+l)+"H742z"},Ut=function(l,d,h){d=1e3*d;var m="";switch(l){case"sqrtMain":m=Xe(d,Ue);break;case"sqrtSize1":m=Ze(d,Ue);break;case"sqrtSize2":m=lt(d,Ue);break;case"sqrtSize3":m=at(d,Ue);break;case"sqrtSize4":m=ct(d,Ue);break;case"sqrtTall":m=Ot(d,Ue,h)}return m},un={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`},Ft=function(){function j(d){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=d,this.classes=[],this.height=0,this.depth=0,this.maxFontSize=0,this.style={}}var l=j.prototype;return l.hasClass=function(h){return P.contains(this.classes,h)},l.toNode=function(){for(var h=document.createDocumentFragment(),m=0;m<this.children.length;m++)h.appendChild(this.children[m].toNode());return h},l.toMarkup=function(){for(var h="",m=0;m<this.children.length;m++)h+=this.children[m].toMarkup();return h},l.toText=function(){var h=function(I){return I.toText()};return this.children.map(h).join("")},j}(),nt=function(l){return l.filter(function(d){return d}).join(" ")},Et=function(l,d,h){if(this.classes=l||[],this.attributes={},this.height=0,this.depth=0,this.maxFontSize=0,this.style=h||{},d){d.style.isTight()&&this.classes.push("mtight");var m=d.getColor();m&&(this.style.color=m)}},oe=function(l){var d=document.createElement(l);d.className=nt(this.classes);for(var h in this.style)this.style.hasOwnProperty(h)&&(d.style[h]=this.style[h]);for(var m in this.attributes)this.attributes.hasOwnProperty(m)&&d.setAttribute(m,this.attributes[m]);for(var I=0;I<this.children.length;I++)d.appendChild(this.children[I].toNode());return d},_e=function(l){var d="<"+l;this.classes.length&&(d+=' class="'+P.escape(nt(this.classes))+'"');var h="";for(var m in this.style)this.style.hasOwnProperty(m)&&(h+=P.hyphenate(m)+":"+this.style[m]+";");h&&(d+=' style="'+P.escape(h)+'"');for(var I in this.attributes)this.attributes.hasOwnProperty(I)&&(d+=" "+I+'="'+P.escape(this.attributes[I])+'"');d+=">";for(var H=0;H<this.children.length;H++)d+=this.children[H].toMarkup();return d+="</"+l+">",d},M=function(){function j(d,h,m,I){this.children=void 0,this.attributes=void 0,this.classes=void 0,this.height=void 0,this.depth=void 0,this.width=void 0,this.maxFontSize=void 0,this.style=void 0,Et.call(this,d,m,I),this.children=h||[]}var l=j.prototype;return l.setAttribute=function(h,m){this.attributes[h]=m},l.hasClass=function(h){return P.contains(this.classes,h)},l.toNode=function(){return oe.call(this,"span")},l.toMarkup=function(){return _e.call(this,"span")},j}(),ce=function(){function j(d,h,m,I){this.children=void 0,this.attributes=void 0,this.classes=void 0,this.height=void 0,this.depth=void 0,this.maxFontSize=void 0,this.style=void 0,Et.call(this,h,I),this.children=m||[],this.setAttribute("href",d)}var l=j.prototype;return l.setAttribute=function(h,m){this.attributes[h]=m},l.hasClass=function(h){return P.contains(this.classes,h)},l.toNode=function(){return oe.call(this,"a")},l.toMarkup=function(){return _e.call(this,"a")},j}(),xe=function(){function j(d,h,m){this.src=void 0,this.alt=void 0,this.classes=void 0,this.height=void 0,this.depth=void 0,this.maxFontSize=void 0,this.style=void 0,this.alt=h,this.src=d,this.classes=["mord"],this.style=m}var l=j.prototype;return l.hasClass=function(h){return P.contains(this.classes,h)},l.toNode=function(){var h=document.createElement("img");h.src=this.src,h.alt=this.alt,h.className="mord";for(var m in this.style)this.style.hasOwnProperty(m)&&(h.style[m]=this.style[m]);return h},l.toMarkup=function(){var h="<img src='"+this.src+" 'alt='"+this.alt+"' ",m="";for(var I in this.style)this.style.hasOwnProperty(I)&&(m+=P.hyphenate(I)+":"+this.style[I]+";");return m&&(h+=' style="'+P.escape(m)+'"'),h+="'/>",h},j}(),O={\u00EE:"\u0131\u0302",\u00EF:"\u0131\u0308",\u00ED:"\u0131\u0301",\u00EC:"\u0131\u0300"},C=function(){function j(d,h,m,I,H,Ee,Oe,Ke){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=d,this.height=h||0,this.depth=m||0,this.italic=I||0,this.skew=H||0,this.width=Ee||0,this.classes=Oe||[],this.style=Ke||{},this.maxFontSize=0;var st=Q(this.text.charCodeAt(0));st&&this.classes.push(st+"_fallback"),/[îïíì]/.test(this.text)&&(this.text=O[this.text])}var l=j.prototype;return l.hasClass=function(h){return P.contains(this.classes,h)},l.toNode=function(){var h=document.createTextNode(this.text),m=null;this.italic>0&&(m=document.createElement("span"),m.style.marginRight=this.italic+"em"),this.classes.length>0&&(m=m||document.createElement("span"),m.className=nt(this.classes));for(var I in this.style)this.style.hasOwnProperty(I)&&(m=m||document.createElement("span"),m.style[I]=this.style[I]);return m?(m.appendChild(h),m):h},l.toMarkup=function(){var h=!1,m="<span";this.classes.length&&(h=!0,m+=' class="',m+=P.escape(nt(this.classes)),m+='"');var I="";this.italic>0&&(I+="margin-right:"+this.italic+"em;");for(var H in this.style)this.style.hasOwnProperty(H)&&(I+=P.hyphenate(H)+":"+this.style[H]+";");I&&(h=!0,m+=' style="'+P.escape(I)+'"');var Ee=P.escape(this.text);return h?(m+=">",m+=Ee,m+="</span>",m):Ee},j}(),k=function(){function j(d,h){this.children=void 0,this.attributes=void 0,this.children=d||[],this.attributes=h||{}}var l=j.prototype;return l.toNode=function(){var h="http://www.w3.org/2000/svg",m=document.createElementNS(h,"svg");for(var I in this.attributes)Object.prototype.hasOwnProperty.call(this.attributes,I)&&m.setAttribute(I,this.attributes[I]);for(var H=0;H<this.children.length;H++)m.appendChild(this.children[H].toNode());return m},l.toMarkup=function(){var h="<svg";for(var m in this.attributes)Object.prototype.hasOwnProperty.call(this.attributes,m)&&(h+=" "+m+"='"+this.attributes[m]+"'");h+=">";for(var I=0;I<this.children.length;I++)h+=this.children[I].toMarkup();return h+="</svg>",h},j}(),he=function(){function j(d,h){this.pathName=void 0,this.alternate=void 0,this.pathName=d,this.alternate=h}var l=j.prototype;return l.toNode=function(){var h="http://www.w3.org/2000/svg",m=document.createElementNS(h,"path");return this.alternate?m.setAttribute("d",this.alternate):m.setAttribute("d",un[this.pathName]),m},l.toMarkup=function(){return this.alternate?"<path d='"+this.alternate+"'/>":"<path d='"+un[this.pathName]+"'/>"},j}(),de=function(){function j(d){this.attributes=void 0,this.attributes=d||{}}var l=j.prototype;return l.toNode=function(){var h="http://www.w3.org/2000/svg",m=document.createElementNS(h,"line");for(var I in this.attributes)Object.prototype.hasOwnProperty.call(this.attributes,I)&&m.setAttribute(I,this.attributes[I]);return m},l.toMarkup=function(){var h="<line";for(var m in this.attributes)Object.prototype.hasOwnProperty.call(this.attributes,m)&&(h+=" "+m+"='"+this.attributes[m]+"'");return h+="/>",h},j}();function K(j){if(j instanceof C)return j;throw new Error("Expected symbolNode but got "+String(j)+".")}function Ie(j){if(j instanceof M)return j;throw new Error("Expected span<HtmlDomNode> but got "+String(j)+".")}var $e={"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]}},Me={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]},Be={\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 Ye(j,l){$e[j]=l}function Qe(j,l,d){if(!$e[l])throw new Error("Font metrics not found for font: "+l+".");var h=j.charCodeAt(0),m=$e[l][h];if(!m&&j[0]in Be&&(h=Be[j[0]].charCodeAt(0),m=$e[l][h]),!m&&d==="text"&&Pe(h)&&(m=$e[l][77]),m)return{depth:m[0],height:m[1],italic:m[2],skew:m[3],width:m[4]}}var Je={};function dt(j){var l;if(j>=5?l=0:j>=3?l=1:l=2,!Je[l]){var d=Je[l]={cssEmPerMu:Me.quad[l]/18};for(var h in Me)Me.hasOwnProperty(h)&&(d[h]=Me[h][l])}return Je[l]}var At={bin:1,close:1,inner:1,open:1,punct:1,rel:1},gt={"accent-token":1,mathord:1,"op-token":1,spacing:1,textord:1},Rt={math:{},text:{}},Ct=Rt;function x(j,l,d,h,m,I){Rt[j][m]={font:l,group:d,replace:h},I&&h&&(Rt[j][h]=Rt[j][m])}var A="math",rt="text",Y="main",Ce="ams",vn="accent-token",ke="bin",He="close",We="inner",te="mathord",pe="op-token",De="open",ze="punct",V="rel",kt="spacing",Le="textord";x(A,Y,V,"\u2261","\\equiv",!0),x(A,Y,V,"\u227A","\\prec",!0),x(A,Y,V,"\u227B","\\succ",!0),x(A,Y,V,"\u223C","\\sim",!0),x(A,Y,V,"\u22A5","\\perp"),x(A,Y,V,"\u2AAF","\\preceq",!0),x(A,Y,V,"\u2AB0","\\succeq",!0),x(A,Y,V,"\u2243","\\simeq",!0),x(A,Y,V,"\u2223","\\mid",!0),x(A,Y,V,"\u226A","\\ll",!0),x(A,Y,V,"\u226B","\\gg",!0),x(A,Y,V,"\u224D","\\asymp",!0),x(A,Y,V,"\u2225","\\parallel"),x(A,Y,V,"\u22C8","\\bowtie",!0),x(A,Y,V,"\u2323","\\smile",!0),x(A,Y,V,"\u2291","\\sqsubseteq",!0),x(A,Y,V,"\u2292","\\sqsupseteq",!0),x(A,Y,V,"\u2250","\\doteq",!0),x(A,Y,V,"\u2322","\\frown",!0),x(A,Y,V,"\u220B","\\ni",!0),x(A,Y,V,"\u221D","\\propto",!0),x(A,Y,V,"\u22A2","\\vdash",!0),x(A,Y,V,"\u22A3","\\dashv",!0),x(A,Y,V,"\u220B","\\owns"),x(A,Y,ze,".","\\ldotp"),x(A,Y,ze,"\u22C5","\\cdotp"),x(A,Y,Le,"#","\\#"),x(rt,Y,Le,"#","\\#"),x(A,Y,Le,"&","\\&"),x(rt,Y,Le,"&","\\&"),x(A,Y,Le,"\u2135","\\aleph",!0),x(A,Y,Le,"\u2200","\\forall",!0),x(A,Y,Le,"\u210F","\\hbar",!0),x(A,Y,Le,"\u2203","\\exists",!0),x(A,Y,Le,"\u2207","\\nabla",!0),x(A,Y,Le,"\u266D","\\flat",!0),x(A,Y,Le,"\u2113","\\ell",!0),x(A,Y,Le,"\u266E","\\natural",!0),x(A,Y,Le,"\u2663","\\clubsuit",!0),x(A,Y,Le,"\u2118","\\wp",!0),x(A,Y,Le,"\u266F","\\sharp",!0),x(A,Y,Le,"\u2662","\\diamondsuit",!0),x(A,Y,Le,"\u211C","\\Re",!0),x(A,Y,Le,"\u2661","\\heartsuit",!0),x(A,Y,Le,"\u2111","\\Im",!0),x(A,Y,Le,"\u2660","\\spadesuit",!0),x(rt,Y,Le,"\xA7","\\S",!0),x(rt,Y,Le,"\xB6","\\P",!0),x(A,Y,Le,"\u2020","\\dag"),x(rt,Y,Le,"\u2020","\\dag"),x(rt,Y,Le,"\u2020","\\textdagger"),x(A,Y,Le,"\u2021","\\ddag"),x(rt,Y,Le,"\u2021","\\ddag"),x(rt,Y,Le,"\u2021","\\textdaggerdbl"),x(A,Y,He,"\u23B1","\\rmoustache",!0),x(A,Y,De,"\u23B0","\\lmoustache",!0),x(A,Y,He,"\u27EF","\\rgroup",!0),x(A,Y,De,"\u27EE","\\lgroup",!0),x(A,Y,ke,"\u2213","\\mp",!0),x(A,Y,ke,"\u2296","\\ominus",!0),x(A,Y,ke,"\u228E","\\uplus",!0),x(A,Y,ke,"\u2293","\\sqcap",!0),x(A,Y,ke,"\u2217","\\ast"),x(A,Y,ke,"\u2294","\\sqcup",!0),x(A,Y,ke,"\u25EF","\\bigcirc"),x(A,Y,ke,"\u2219","\\bullet"),x(A,Y,ke,"\u2021","\\ddagger"),x(A,Y,ke,"\u2240","\\wr",!0),x(A,Y,ke,"\u2A3F","\\amalg"),x(A,Y,ke,"&","\\And"),x(A,Y,V,"\u27F5","\\longleftarrow",!0),x(A,Y,V,"\u21D0","\\Leftarrow",!0),x(A,Y,V,"\u27F8","\\Longleftarrow",!0),x(A,Y,V,"\u27F6","\\longrightarrow",!0),x(A,Y,V,"\u21D2","\\Rightarrow",!0),x(A,Y,V,"\u27F9","\\Longrightarrow",!0),x(A,Y,V,"\u2194","\\leftrightarrow",!0),x(A,Y,V,"\u27F7","\\longleftrightarrow",!0),x(A,Y,V,"\u21D4","\\Leftrightarrow",!0),x(A,Y,V,"\u27FA","\\Longleftrightarrow",!0),x(A,Y,V,"\u21A6","\\mapsto",!0),x(A,Y,V,"\u27FC","\\longmapsto",!0),x(A,Y,V,"\u2197","\\nearrow",!0),x(A,Y,V,"\u21A9","\\hookleftarrow",!0),x(A,Y,V,"\u21AA","\\hookrightarrow",!0),x(A,Y,V,"\u2198","\\searrow",!0),x(A,Y,V,"\u21BC","\\leftharpoonup",!0),x(A,Y,V,"\u21C0","\\rightharpoonup",!0),x(A,Y,V,"\u2199","\\swarrow",!0),x(A,Y,V,"\u21BD","\\leftharpoondown",!0),x(A,Y,V,"\u21C1","\\rightharpoondown",!0),x(A,Y,V,"\u2196","\\nwarrow",!0),x(A,Y,V,"\u21CC","\\rightleftharpoons",!0),x(A,Ce,V,"\u226E","\\nless",!0),x(A,Ce,V,"\uE010","\\@nleqslant"),x(A,Ce,V,"\uE011","\\@nleqq"),x(A,Ce,V,"\u2A87","\\lneq",!0),x(A,Ce,V,"\u2268","\\lneqq",!0),x(A,Ce,V,"\uE00C","\\@lvertneqq"),x(A,Ce,V,"\u22E6","\\lnsim",!0),x(A,Ce,V,"\u2A89","\\lnapprox",!0),x(A,Ce,V,"\u2280","\\nprec",!0),x(A,Ce,V,"\u22E0","\\npreceq",!0),x(A,Ce,V,"\u22E8","\\precnsim",!0),x(A,Ce,V,"\u2AB9","\\precnapprox",!0),x(A,Ce,V,"\u2241","\\nsim",!0),x(A,Ce,V,"\uE006","\\@nshortmid"),x(A,Ce,V,"\u2224","\\nmid",!0),x(A,Ce,V,"\u22AC","\\nvdash",!0),x(A,Ce,V,"\u22AD","\\nvDash",!0),x(A,Ce,V,"\u22EA","\\ntriangleleft"),x(A,Ce,V,"\u22EC","\\ntrianglelefteq",!0),x(A,Ce,V,"\u228A","\\subsetneq",!0),x(A,Ce,V,"\uE01A","\\@varsubsetneq"),x(A,Ce,V,"\u2ACB","\\subsetneqq",!0),x(A,Ce,V,"\uE017","\\@varsubsetneqq"),x(A,Ce,V,"\u226F","\\ngtr",!0),x(A,Ce,V,"\uE00F","\\@ngeqslant"),x(A,Ce,V,"\uE00E","\\@ngeqq"),x(A,Ce,V,"\u2A88","\\gneq",!0),x(A,Ce,V,"\u2269","\\gneqq",!0),x(A,Ce,V,"\uE00D","\\@gvertneqq"),x(A,Ce,V,"\u22E7","\\gnsim",!0),x(A,Ce,V,"\u2A8A","\\gnapprox",!0),x(A,Ce,V,"\u2281","\\nsucc",!0),x(A,Ce,V,"\u22E1","\\nsucceq",!0),x(A,Ce,V,"\u22E9","\\succnsim",!0),x(A,Ce,V,"\u2ABA","\\succnapprox",!0),x(A,Ce,V,"\u2246","\\ncong",!0),x(A,Ce,V,"\uE007","\\@nshortparallel"),x(A,Ce,V,"\u2226","\\nparallel",!0),x(A,Ce,V,"\u22AF","\\nVDash",!0),x(A,Ce,V,"\u22EB","\\ntriangleright"),x(A,Ce,V,"\u22ED","\\ntrianglerighteq",!0),x(A,Ce,V,"\uE018","\\@nsupseteqq"),x(A,Ce,V,"\u228B","\\supsetneq",!0),x(A,Ce,V,"\uE01B","\\@varsupsetneq"),x(A,Ce,V,"\u2ACC","\\supsetneqq",!0),x(A,Ce,V,"\uE019","\\@varsupsetneqq"),x(A,Ce,V,"\u22AE","\\nVdash",!0),x(A,Ce,V,"\u2AB5","\\precneqq",!0),x(A,Ce,V,"\u2AB6","\\succneqq",!0),x(A,Ce,V,"\uE016","\\@nsubseteqq"),x(A,Ce,ke,"\u22B4","\\unlhd"),x(A,Ce,ke,"\u22B5","\\unrhd"),x(A,Ce,V,"\u219A","\\nleftarrow",!0),x(A,Ce,V,"\u219B","\\nrightarrow",!0),x(A,Ce,V,"\u21CD","\\nLeftarrow",!0),x(A,Ce,V,"\u21CF","\\nRightarrow",!0),x(A,Ce,V,"\u21AE","\\nleftrightarrow",!0),x(A,Ce,V,"\u21CE","\\nLeftrightarrow",!0),x(A,Ce,V,"\u25B3","\\vartriangle"),x(A,Ce,Le,"\u210F","\\hslash"),x(A,Ce,Le,"\u25BD","\\triangledown"),x(A,Ce,Le,"\u25CA","\\lozenge"),x(A,Ce,Le,"\u24C8","\\circledS"),x(A,Ce,Le,"\xAE","\\circledR"),x(rt,Ce,Le,"\xAE","\\circledR"),x(A,Ce,Le,"\u2221","\\measuredangle",!0),x(A,Ce,Le,"\u2204","\\nexists"),x(A,Ce,Le,"\u2127","\\mho"),x(A,Ce,Le,"\u2132","\\Finv",!0),x(A,Ce,Le,"\u2141","\\Game",!0),x(A,Ce,Le,"\u2035","\\backprime"),x(A,Ce,Le,"\u25B2","\\blacktriangle"),x(A,Ce,Le,"\u25BC","\\blacktriangledown"),x(A,Ce,Le,"\u25A0","\\blacksquare"),x(A,Ce,Le,"\u29EB","\\blacklozenge"),x(A,Ce,Le,"\u2605","\\bigstar"),x(A,Ce,Le,"\u2222","\\sphericalangle",!0),x(A,Ce,Le,"\u2201","\\complement",!0),x(A,Ce,Le,"\xF0","\\eth",!0),x(A,Ce,Le,"\u2571","\\diagup"),x(A,Ce,Le,"\u2572","\\diagdown"),x(A,Ce,Le,"\u25A1","\\square"),x(A,Ce,Le,"\u25A1","\\Box"),x(A,Ce,Le,"\u25CA","\\Diamond"),x(A,Ce,Le,"\xA5","\\yen",!0),x(rt,Ce,Le,"\xA5","\\yen",!0),x(A,Ce,Le,"\u2713","\\checkmark",!0),x(rt,Ce,Le,"\u2713","\\checkmark"),x(A,Ce,Le,"\u2136","\\beth",!0),x(A,Ce,Le,"\u2138","\\daleth",!0),x(A,Ce,Le,"\u2137","\\gimel",!0),x(A,Ce,Le,"\u03DD","\\digamma",!0),x(A,Ce,Le,"\u03F0","\\varkappa"),x(A,Ce,De,"\u250C","\\ulcorner",!0),x(A,Ce,He,"\u2510","\\urcorner",!0),x(A,Ce,De,"\u2514","\\llcorner",!0),x(A,Ce,He,"\u2518","\\lrcorner",!0),x(A,Ce,V,"\u2266","\\leqq",!0),x(A,Ce,V,"\u2A7D","\\leqslant",!0),x(A,Ce,V,"\u2A95","\\eqslantless",!0),x(A,Ce,V,"\u2272","\\lesssim",!0),x(A,Ce,V,"\u2A85","\\lessapprox",!0),x(A,Ce,V,"\u224A","\\approxeq",!0),x(A,Ce,ke,"\u22D6","\\lessdot"),x(A,Ce,V,"\u22D8","\\lll",!0),x(A,Ce,V,"\u2276","\\lessgtr",!0),x(A,Ce,V,"\u22DA","\\lesseqgtr",!0),x(A,Ce,V,"\u2A8B","\\lesseqqgtr",!0),x(A,Ce,V,"\u2251","\\doteqdot"),x(A,Ce,V,"\u2253","\\risingdotseq",!0),x(A,Ce,V,"\u2252","\\fallingdotseq",!0),x(A,Ce,V,"\u223D","\\backsim",!0),x(A,Ce,V,"\u22CD","\\backsimeq",!0),x(A,Ce,V,"\u2AC5","\\subseteqq",!0),x(A,Ce,V,"\u22D0","\\Subset",!0),x(A,Ce,V,"\u228F","\\sqsubset",!0),x(A,Ce,V,"\u227C","\\preccurlyeq",!0),x(A,Ce,V,"\u22DE","\\curlyeqprec",!0),x(A,Ce,V,"\u227E","\\precsim",!0),x(A,Ce,V,"\u2AB7","\\precapprox",!0),x(A,Ce,V,"\u22B2","\\vartriangleleft"),x(A,Ce,V,"\u22B4","\\trianglelefteq"),x(A,Ce,V,"\u22A8","\\vDash",!0),x(A,Ce,V,"\u22AA","\\Vvdash",!0),x(A,Ce,V,"\u2323","\\smallsmile"),x(A,Ce,V,"\u2322","\\smallfrown"),x(A,Ce,V,"\u224F","\\bumpeq",!0),x(A,Ce,V,"\u224E","\\Bumpeq",!0),x(A,Ce,V,"\u2267","\\geqq",!0),x(A,Ce,V,"\u2A7E","\\geqslant",!0),x(A,Ce,V,"\u2A96","\\eqslantgtr",!0),x(A,Ce,V,"\u2273","\\gtrsim",!0),x(A,Ce,V,"\u2A86","\\gtrapprox",!0),x(A,Ce,ke,"\u22D7","\\gtrdot"),x(A,Ce,V,"\u22D9","\\ggg",!0),x(A,Ce,V,"\u2277","\\gtrless",!0),x(A,Ce,V,"\u22DB","\\gtreqless",!0),x(A,Ce,V,"\u2A8C","\\gtreqqless",!0),x(A,Ce,V,"\u2256","\\eqcirc",!0),x(A,Ce,V,"\u2257","\\circeq",!0),x(A,Ce,V,"\u225C","\\triangleq",!0),x(A,Ce,V,"\u223C","\\thicksim"),x(A,Ce,V,"\u2248","\\thickapprox"),x(A,Ce,V,"\u2AC6","\\supseteqq",!0),x(A,Ce,V,"\u22D1","\\Supset",!0),x(A,Ce,V,"\u2290","\\sqsupset",!0),x(A,Ce,V,"\u227D","\\succcurlyeq",!0),x(A,Ce,V,"\u22DF","\\curlyeqsucc",!0),x(A,Ce,V,"\u227F","\\succsim",!0),x(A,Ce,V,"\u2AB8","\\succapprox",!0),x(A,Ce,V,"\u22B3","\\vartriangleright"),x(A,Ce,V,"\u22B5","\\trianglerighteq"),x(A,Ce,V,"\u22A9","\\Vdash",!0),x(A,Ce,V,"\u2223","\\shortmid"),x(A,Ce,V,"\u2225","\\shortparallel"),x(A,Ce,V,"\u226C","\\between",!0),x(A,Ce,V,"\u22D4","\\pitchfork",!0),x(A,Ce,V,"\u221D","\\varpropto"),x(A,Ce,V,"\u25C0","\\blacktriangleleft"),x(A,Ce,V,"\u2234","\\therefore",!0),x(A,Ce,V,"\u220D","\\backepsilon"),x(A,Ce,V,"\u25B6","\\blacktriangleright"),x(A,Ce,V,"\u2235","\\because",!0),x(A,Ce,V,"\u22D8","\\llless"),x(A,Ce,V,"\u22D9","\\gggtr"),x(A,Ce,ke,"\u22B2","\\lhd"),x(A,Ce,ke,"\u22B3","\\rhd"),x(A,Ce,V,"\u2242","\\eqsim",!0),x(A,Y,V,"\u22C8","\\Join"),x(A,Ce,V,"\u2251","\\Doteq",!0),x(A,Ce,ke,"\u2214","\\dotplus",!0),x(A,Ce,ke,"\u2216","\\smallsetminus"),x(A,Ce,ke,"\u22D2","\\Cap",!0),x(A,Ce,ke,"\u22D3","\\Cup",!0),x(A,Ce,ke,"\u2A5E","\\doublebarwedge",!0),x(A,Ce,ke,"\u229F","\\boxminus",!0),x(A,Ce,ke,"\u229E","\\boxplus",!0),x(A,Ce,ke,"\u22C7","\\divideontimes",!0),x(A,Ce,ke,"\u22C9","\\ltimes",!0),x(A,Ce,ke,"\u22CA","\\rtimes",!0),x(A,Ce,ke,"\u22CB","\\leftthreetimes",!0),x(A,Ce,ke,"\u22CC","\\rightthreetimes",!0),x(A,Ce,ke,"\u22CF","\\curlywedge",!0),x(A,Ce,ke,"\u22CE","\\curlyvee",!0),x(A,Ce,ke,"\u229D","\\circleddash",!0),x(A,Ce,ke,"\u229B","\\circledast",!0),x(A,Ce,ke,"\u22C5","\\centerdot"),x(A,Ce,ke,"\u22BA","\\intercal",!0),x(A,Ce,ke,"\u22D2","\\doublecap"),x(A,Ce,ke,"\u22D3","\\doublecup"),x(A,Ce,ke,"\u22A0","\\boxtimes",!0),x(A,Ce,V,"\u21E2","\\dashrightarrow",!0),x(A,Ce,V,"\u21E0","\\dashleftarrow",!0),x(A,Ce,V,"\u21C7","\\leftleftarrows",!0),x(A,Ce,V,"\u21C6","\\leftrightarrows",!0),x(A,Ce,V,"\u21DA","\\Lleftarrow",!0),x(A,Ce,V,"\u219E","\\twoheadleftarrow",!0),x(A,Ce,V,"\u21A2","\\leftarrowtail",!0),x(A,Ce,V,"\u21AB","\\looparrowleft",!0),x(A,Ce,V,"\u21CB","\\leftrightharpoons",!0),x(A,Ce,V,"\u21B6","\\curvearrowleft",!0),x(A,Ce,V,"\u21BA","\\circlearrowleft",!0),x(A,Ce,V,"\u21B0","\\Lsh",!0),x(A,Ce,V,"\u21C8","\\upuparrows",!0),x(A,Ce,V,"\u21BF","\\upharpoonleft",!0),x(A,Ce,V,"\u21C3","\\downharpoonleft",!0),x(A,Ce,V,"\u22B8","\\multimap",!0),x(A,Ce,V,"\u21AD","\\leftrightsquigarrow",!0),x(A,Ce,V,"\u21C9","\\rightrightarrows",!0),x(A,Ce,V,"\u21C4","\\rightleftarrows",!0),x(A,Ce,V,"\u21A0","\\twoheadrightarrow",!0),x(A,Ce,V,"\u21A3","\\rightarrowtail",!0),x(A,Ce,V,"\u21AC","\\looparrowright",!0),x(A,Ce,V,"\u21B7","\\curvearrowright",!0),x(A,Ce,V,"\u21BB","\\circlearrowright",!0),x(A,Ce,V,"\u21B1","\\Rsh",!0),x(A,Ce,V,"\u21CA","\\downdownarrows",!0),x(A,Ce,V,"\u21BE","\\upharpoonright",!0),x(A,Ce,V,"\u21C2","\\downharpoonright",!0),x(A,Ce,V,"\u21DD","\\rightsquigarrow",!0),x(A,Ce,V,"\u21DD","\\leadsto"),x(A,Ce,V,"\u21DB","\\Rrightarrow",!0),x(A,Ce,V,"\u21BE","\\restriction"),x(A,Y,Le,"\u2018","`"),x(A,Y,Le,"$","\\$"),x(rt,Y,Le,"$","\\$"),x(rt,Y,Le,"$","\\textdollar"),x(A,Y,Le,"%","\\%"),x(rt,Y,Le,"%","\\%"),x(A,Y,Le,"_","\\_"),x(rt,Y,Le,"_","\\_"),x(rt,Y,Le,"_","\\textunderscore"),x(A,Y,Le,"\u2220","\\angle",!0),x(A,Y,Le,"\u221E","\\infty",!0),x(A,Y,Le,"\u2032","\\prime"),x(A,Y,Le,"\u25B3","\\triangle"),x(A,Y,Le,"\u0393","\\Gamma",!0),x(A,Y,Le,"\u0394","\\Delta",!0),x(A,Y,Le,"\u0398","\\Theta",!0),x(A,Y,Le,"\u039B","\\Lambda",!0),x(A,Y,Le,"\u039E","\\Xi",!0),x(A,Y,Le,"\u03A0","\\Pi",!0),x(A,Y,Le,"\u03A3","\\Sigma",!0),x(A,Y,Le,"\u03A5","\\Upsilon",!0),x(A,Y,Le,"\u03A6","\\Phi",!0),x(A,Y,Le,"\u03A8","\\Psi",!0),x(A,Y,Le,"\u03A9","\\Omega",!0),x(A,Y,Le,"A","\u0391"),x(A,Y,Le,"B","\u0392"),x(A,Y,Le,"E","\u0395"),x(A,Y,Le,"Z","\u0396"),x(A,Y,Le,"H","\u0397"),x(A,Y,Le,"I","\u0399"),x(A,Y,Le,"K","\u039A"),x(A,Y,Le,"M","\u039C"),x(A,Y,Le,"N","\u039D"),x(A,Y,Le,"O","\u039F"),x(A,Y,Le,"P","\u03A1"),x(A,Y,Le,"T","\u03A4"),x(A,Y,Le,"X","\u03A7"),x(A,Y,Le,"\xAC","\\neg",!0),x(A,Y,Le,"\xAC","\\lnot"),x(A,Y,Le,"\u22A4","\\top"),x(A,Y,Le,"\u22A5","\\bot"),x(A,Y,Le,"\u2205","\\emptyset"),x(A,Ce,Le,"\u2205","\\varnothing"),x(A,Y,te,"\u03B1","\\alpha",!0),x(A,Y,te,"\u03B2","\\beta",!0),x(A,Y,te,"\u03B3","\\gamma",!0),x(A,Y,te,"\u03B4","\\delta",!0),x(A,Y,te,"\u03F5","\\epsilon",!0),x(A,Y,te,"\u03B6","\\zeta",!0),x(A,Y,te,"\u03B7","\\eta",!0),x(A,Y,te,"\u03B8","\\theta",!0),x(A,Y,te,"\u03B9","\\iota",!0),x(A,Y,te,"\u03BA","\\kappa",!0),x(A,Y,te,"\u03BB","\\lambda",!0),x(A,Y,te,"\u03BC","\\mu",!0),x(A,Y,te,"\u03BD","\\nu",!0),x(A,Y,te,"\u03BE","\\xi",!0),x(A,Y,te,"\u03BF","\\omicron",!0),x(A,Y,te,"\u03C0","\\pi",!0),x(A,Y,te,"\u03C1","\\rho",!0),x(A,Y,te,"\u03C3","\\sigma",!0),x(A,Y,te,"\u03C4","\\tau",!0),x(A,Y,te,"\u03C5","\\upsilon",!0),x(A,Y,te,"\u03D5","\\phi",!0),x(A,Y,te,"\u03C7","\\chi",!0),x(A,Y,te,"\u03C8","\\psi",!0),x(A,Y,te,"\u03C9","\\omega",!0),x(A,Y,te,"\u03B5","\\varepsilon",!0),x(A,Y,te,"\u03D1","\\vartheta",!0),x(A,Y,te,"\u03D6","\\varpi",!0),x(A,Y,te,"\u03F1","\\varrho",!0),x(A,Y,te,"\u03C2","\\varsigma",!0),x(A,Y,te,"\u03C6","\\varphi",!0),x(A,Y,ke,"\u2217","*"),x(A,Y,ke,"+","+"),x(A,Y,ke,"\u2212","-"),x(A,Y,ke,"\u22C5","\\cdot",!0),x(A,Y,ke,"\u2218","\\circ"),x(A,Y,ke,"\xF7","\\div",!0),x(A,Y,ke,"\xB1","\\pm",!0),x(A,Y,ke,"\xD7","\\times",!0),x(A,Y,ke,"\u2229","\\cap",!0),x(A,Y,ke,"\u222A","\\cup",!0),x(A,Y,ke,"\u2216","\\setminus"),x(A,Y,ke,"\u2227","\\land"),x(A,Y,ke,"\u2228","\\lor"),x(A,Y,ke,"\u2227","\\wedge",!0),x(A,Y,ke,"\u2228","\\vee",!0),x(A,Y,Le,"\u221A","\\surd"),x(A,Y,De,"(","("),x(A,Y,De,"[","["),x(A,Y,De,"\u27E8","\\langle",!0),x(A,Y,De,"\u2223","\\lvert"),x(A,Y,De,"\u2225","\\lVert"),x(A,Y,He,")",")"),x(A,Y,He,"]","]"),x(A,Y,He,"?","?"),x(A,Y,He,"!","!"),x(A,Y,He,"\u27E9","\\rangle",!0),x(A,Y,He,"\u2223","\\rvert"),x(A,Y,He,"\u2225","\\rVert"),x(A,Y,V,"=","="),x(A,Y,V,"<","<"),x(A,Y,V,">",">"),x(A,Y,V,":",":"),x(A,Y,V,"\u2248","\\approx",!0),x(A,Y,V,"\u2245","\\cong",!0),x(A,Y,V,"\u2265","\\ge"),x(A,Y,V,"\u2265","\\geq",!0),x(A,Y,V,"\u2190","\\gets"),x(A,Y,V,">","\\gt"),x(A,Y,V,"\u2208","\\in",!0),x(A,Y,V,"\uE020","\\@not"),x(A,Y,V,"\u2282","\\subset",!0),x(A,Y,V,"\u2283","\\supset",!0),x(A,Y,V,"\u2286","\\subseteq",!0),x(A,Y,V,"\u2287","\\supseteq",!0),x(A,Ce,V,"\u2288","\\nsubseteq",!0),x(A,Ce,V,"\u2289","\\nsupseteq",!0),x(A,Y,V,"\u22A8","\\models"),x(A,Y,V,"\u2190","\\leftarrow",!0),x(A,Y,V,"\u2264","\\le"),x(A,Y,V,"\u2264","\\leq",!0),x(A,Y,V,"<","\\lt"),x(A,Y,V,"\u2192","\\rightarrow",!0),x(A,Y,V,"\u2192","\\to"),x(A,Ce,V,"\u2271","\\ngeq",!0),x(A,Ce,V,"\u2270","\\nleq",!0),x(A,Y,kt,"\xA0","\\ "),x(A,Y,kt,"\xA0","~"),x(A,Y,kt,"\xA0","\\space"),x(A,Y,kt,"\xA0","\\nobreakspace"),x(rt,Y,kt,"\xA0","\\ "),x(rt,Y,kt,"\xA0","~"),x(rt,Y,kt,"\xA0","\\space"),x(rt,Y,kt,"\xA0","\\nobreakspace"),x(A,Y,kt,null,"\\nobreak"),x(A,Y,kt,null,"\\allowbreak"),x(A,Y,ze,",",","),x(A,Y,ze,";",";"),x(A,Ce,ke,"\u22BC","\\barwedge",!0),x(A,Ce,ke,"\u22BB","\\veebar",!0),x(A,Y,ke,"\u2299","\\odot",!0),x(A,Y,ke,"\u2295","\\oplus",!0),x(A,Y,ke,"\u2297","\\otimes",!0),x(A,Y,Le,"\u2202","\\partial",!0),x(A,Y,ke,"\u2298","\\oslash",!0),x(A,Ce,ke,"\u229A","\\circledcirc",!0),x(A,Ce,ke,"\u22A1","\\boxdot",!0),x(A,Y,ke,"\u25B3","\\bigtriangleup"),x(A,Y,ke,"\u25BD","\\bigtriangledown"),x(A,Y,ke,"\u2020","\\dagger"),x(A,Y,ke,"\u22C4","\\diamond"),x(A,Y,ke,"\u22C6","\\star"),x(A,Y,ke,"\u25C3","\\triangleleft"),x(A,Y,ke,"\u25B9","\\triangleright"),x(A,Y,De,"{","\\{"),x(rt,Y,Le,"{","\\{"),x(rt,Y,Le,"{","\\textbraceleft"),x(A,Y,He,"}","\\}"),x(rt,Y,Le,"}","\\}"),x(rt,Y,Le,"}","\\textbraceright"),x(A,Y,De,"{","\\lbrace"),x(A,Y,He,"}","\\rbrace"),x(A,Y,De,"[","\\lbrack"),x(rt,Y,Le,"[","\\lbrack"),x(A,Y,He,"]","\\rbrack"),x(rt,Y,Le,"]","\\rbrack"),x(A,Y,De,"(","\\lparen"),x(A,Y,He,")","\\rparen"),x(rt,Y,Le,"<","\\textless"),x(rt,Y,Le,">","\\textgreater"),x(A,Y,De,"\u230A","\\lfloor",!0),x(A,Y,He,"\u230B","\\rfloor",!0),x(A,Y,De,"\u2308","\\lceil",!0),x(A,Y,He,"\u2309","\\rceil",!0),x(A,Y,Le,"\\","\\backslash"),x(A,Y,Le,"\u2223","|"),x(A,Y,Le,"\u2223","\\vert"),x(rt,Y,Le,"|","\\textbar"),x(A,Y,Le,"\u2225","\\|"),x(A,Y,Le,"\u2225","\\Vert"),x(rt,Y,Le,"\u2225","\\textbardbl"),x(rt,Y,Le,"~","\\textasciitilde"),x(rt,Y,Le,"\\","\\textbackslash"),x(rt,Y,Le,"^","\\textasciicircum"),x(A,Y,V,"\u2191","\\uparrow",!0),x(A,Y,V,"\u21D1","\\Uparrow",!0),x(A,Y,V,"\u2193","\\downarrow",!0),x(A,Y,V,"\u21D3","\\Downarrow",!0),x(A,Y,V,"\u2195","\\updownarrow",!0),x(A,Y,V,"\u21D5","\\Updownarrow",!0),x(A,Y,pe,"\u2210","\\coprod"),x(A,Y,pe,"\u22C1","\\bigvee"),x(A,Y,pe,"\u22C0","\\bigwedge"),x(A,Y,pe,"\u2A04","\\biguplus"),x(A,Y,pe,"\u22C2","\\bigcap"),x(A,Y,pe,"\u22C3","\\bigcup"),x(A,Y,pe,"\u222B","\\int"),x(A,Y,pe,"\u222B","\\intop"),x(A,Y,pe,"\u222C","\\iint"),x(A,Y,pe,"\u222D","\\iiint"),x(A,Y,pe,"\u220F","\\prod"),x(A,Y,pe,"\u2211","\\sum"),x(A,Y,pe,"\u2A02","\\bigotimes"),x(A,Y,pe,"\u2A01","\\bigoplus"),x(A,Y,pe,"\u2A00","\\bigodot"),x(A,Y,pe,"\u222E","\\oint"),x(A,Y,pe,"\u222F","\\oiint"),x(A,Y,pe,"\u2230","\\oiiint"),x(A,Y,pe,"\u2A06","\\bigsqcup"),x(A,Y,pe,"\u222B","\\smallint"),x(rt,Y,We,"\u2026","\\textellipsis"),x(A,Y,We,"\u2026","\\mathellipsis"),x(rt,Y,We,"\u2026","\\ldots",!0),x(A,Y,We,"\u2026","\\ldots",!0),x(A,Y,We,"\u22EF","\\@cdots",!0),x(A,Y,We,"\u22F1","\\ddots",!0),x(A,Y,Le,"\u22EE","\\varvdots"),x(A,Y,vn,"\u02CA","\\acute"),x(A,Y,vn,"\u02CB","\\grave"),x(A,Y,vn,"\xA8","\\ddot"),x(A,Y,vn,"~","\\tilde"),x(A,Y,vn,"\u02C9","\\bar"),x(A,Y,vn,"\u02D8","\\breve"),x(A,Y,vn,"\u02C7","\\check"),x(A,Y,vn,"^","\\hat"),x(A,Y,vn,"\u20D7","\\vec"),x(A,Y,vn,"\u02D9","\\dot"),x(A,Y,vn,"\u02DA","\\mathring"),x(A,Y,te,"\u0131","\\imath",!0),x(A,Y,te,"\u0237","\\jmath",!0),x(rt,Y,Le,"\u0131","\\i",!0),x(rt,Y,Le,"\u0237","\\j",!0),x(rt,Y,Le,"\xDF","\\ss",!0),x(rt,Y,Le,"\xE6","\\ae",!0),x(rt,Y,Le,"\xE6","\\ae",!0),x(rt,Y,Le,"\u0153","\\oe",!0),x(rt,Y,Le,"\xF8","\\o",!0),x(rt,Y,Le,"\xC6","\\AE",!0),x(rt,Y,Le,"\u0152","\\OE",!0),x(rt,Y,Le,"\xD8","\\O",!0),x(rt,Y,vn,"\u02CA","\\'"),x(rt,Y,vn,"\u02CB","\\`"),x(rt,Y,vn,"\u02C6","\\^"),x(rt,Y,vn,"\u02DC","\\~"),x(rt,Y,vn,"\u02C9","\\="),x(rt,Y,vn,"\u02D8","\\u"),x(rt,Y,vn,"\u02D9","\\."),x(rt,Y,vn,"\u02DA","\\r"),x(rt,Y,vn,"\u02C7","\\v"),x(rt,Y,vn,"\xA8",'\\"'),x(rt,Y,vn,"\u02DD","\\H"),x(rt,Y,vn,"\u25EF","\\textcircled");var jt={"--":!0,"---":!0,"``":!0,"''":!0};x(rt,Y,Le,"\u2013","--"),x(rt,Y,Le,"\u2013","\\textendash"),x(rt,Y,Le,"\u2014","---"),x(rt,Y,Le,"\u2014","\\textemdash"),x(rt,Y,Le,"\u2018","`"),x(rt,Y,Le,"\u2018","\\textquoteleft"),x(rt,Y,Le,"\u2019","'"),x(rt,Y,Le,"\u2019","\\textquoteright"),x(rt,Y,Le,"\u201C","``"),x(rt,Y,Le,"\u201C","\\textquotedblleft"),x(rt,Y,Le,"\u201D","''"),x(rt,Y,Le,"\u201D","\\textquotedblright"),x(A,Y,Le,"\xB0","\\degree",!0),x(rt,Y,Le,"\xB0","\\degree"),x(rt,Y,Le,"\xB0","\\textdegree",!0),x(A,Y,te,"\xA3","\\pounds"),x(A,Y,te,"\xA3","\\mathsterling",!0),x(rt,Y,te,"\xA3","\\pounds"),x(rt,Y,te,"\xA3","\\textsterling",!0),x(A,Ce,Le,"\u2720","\\maltese"),x(rt,Ce,Le,"\u2720","\\maltese"),x(rt,Y,kt,"\xA0","\\ "),x(rt,Y,kt,"\xA0"," "),x(rt,Y,kt,"\xA0","~");for(var ln='0123456789/@."',bt=0;bt<ln.length;bt++){var Lt=ln.charAt(bt);x(A,Y,Le,Lt,Lt)}for(var ot='0123456789!@*()-=+[]<>|";:?/.,',ft=0;ft<ot.length;ft++){var Gt=ot.charAt(ft);x(rt,Y,Le,Gt,Gt)}for(var yn="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz",nn=0;nn<yn.length;nn++){var je=yn.charAt(nn);x(A,Y,te,je,je),x(rt,Y,Le,je,je)}x(A,Ce,Le,"C","\u2102"),x(rt,Ce,Le,"C","\u2102"),x(A,Ce,Le,"H","\u210D"),x(rt,Ce,Le,"H","\u210D"),x(A,Ce,Le,"N","\u2115"),x(rt,Ce,Le,"N","\u2115"),x(A,Ce,Le,"P","\u2119"),x(rt,Ce,Le,"P","\u2119"),x(A,Ce,Le,"Q","\u211A"),x(rt,Ce,Le,"Q","\u211A"),x(A,Ce,Le,"R","\u211D"),x(rt,Ce,Le,"R","\u211D"),x(A,Ce,Le,"Z","\u2124"),x(rt,Ce,Le,"Z","\u2124"),x(A,Y,te,"h","\u210E"),x(rt,Y,te,"h","\u210E");for(var we="",ut=0;ut<yn.length;ut++){var it=yn.charAt(ut);we=String.fromCharCode(55349,56320+ut),x(A,Y,te,it,we),x(rt,Y,Le,it,we),we=String.fromCharCode(55349,56372+ut),x(A,Y,te,it,we),x(rt,Y,Le,it,we),we=String.fromCharCode(55349,56424+ut),x(A,Y,te,it,we),x(rt,Y,Le,it,we),we=String.fromCharCode(55349,56580+ut),x(A,Y,te,it,we),x(rt,Y,Le,it,we),we=String.fromCharCode(55349,56736+ut),x(A,Y,te,it,we),x(rt,Y,Le,it,we),we=String.fromCharCode(55349,56788+ut),x(A,Y,te,it,we),x(rt,Y,Le,it,we),we=String.fromCharCode(55349,56840+ut),x(A,Y,te,it,we),x(rt,Y,Le,it,we),we=String.fromCharCode(55349,56944+ut),x(A,Y,te,it,we),x(rt,Y,Le,it,we),ut<26&&(we=String.fromCharCode(55349,56632+ut),x(A,Y,te,it,we),x(rt,Y,Le,it,we),we=String.fromCharCode(55349,56476+ut),x(A,Y,te,it,we),x(rt,Y,Le,it,we))}we="\u{1D55C}",x(A,Y,te,"k",we),x(rt,Y,Le,"k",we);for(var yt=0;yt<10;yt++){var Mt=yt.toString();we=String.fromCharCode(55349,57294+yt),x(A,Y,te,Mt,we),x(rt,Y,Le,Mt,we),we=String.fromCharCode(55349,57314+yt),x(A,Y,te,Mt,we),x(rt,Y,Le,Mt,we),we=String.fromCharCode(55349,57324+yt),x(A,Y,te,Mt,we),x(rt,Y,Le,Mt,we),we=String.fromCharCode(55349,57334+yt),x(A,Y,te,Mt,we),x(rt,Y,Le,Mt,we)}for(var Kt="\xC7\xD0\xDE\xE7\xFE",Pt=0;Pt<Kt.length;Pt++){var Zt=Kt.charAt(Pt);x(A,Y,te,Zt,Zt),x(rt,Y,Le,Zt,Zt)}x(rt,Y,Le,"\xF0","\xF0"),x(rt,Y,Le,"\u2013","\u2013"),x(rt,Y,Le,"\u2014","\u2014"),x(rt,Y,Le,"\u2018","\u2018"),x(rt,Y,Le,"\u2019","\u2019"),x(rt,Y,Le,"\u201C","\u201C"),x(rt,Y,Le,"\u201D","\u201D");var Yt=[["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"]],Nt=[["mathbf","textbf","Main-Bold"],["","",""],["mathsf","textsf","SansSerif-Regular"],["mathboldsf","textboldsf","SansSerif-Bold"],["mathtt","texttt","Typewriter-Regular"]],xt=function(l,d){var h=l.charCodeAt(0),m=l.charCodeAt(1),I=(h-55296)*1024+(m-56320)+65536,H=d==="math"?0:1;if(119808<=I&&I<120484){var Ee=Math.floor((I-119808)/26);return[Yt[Ee][2],Yt[Ee][H]]}else if(120782<=I&&I<=120831){var Oe=Math.floor((I-120782)/10);return[Nt[Oe][2],Nt[Oe][H]]}else{if(I===120485||I===120486)return[Yt[0][2],Yt[0][H]];if(120486<I&&I<120782)return["",""];throw new le("Unsupported character: "+l)}},rn=[[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]],Qt=[.5,.6,.7,.8,.9,1,1.2,1.44,1.728,2.074,2.488],hn=function(l,d){return d.size<2?l:rn[l-1][d.size-1]},zn=function(){function j(d){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=d.style,this.color=d.color,this.size=d.size||j.BASESIZE,this.textSize=d.textSize||this.size,this.phantom=!!d.phantom,this.font=d.font||"",this.fontFamily=d.fontFamily||"",this.fontWeight=d.fontWeight||"",this.fontShape=d.fontShape||"",this.sizeMultiplier=Qt[this.size-1],this.maxSize=d.maxSize,this.minRuleThickness=d.minRuleThickness,this._fontMetrics=void 0}var l=j.prototype;return l.extend=function(h){var m={style:this.style,size:this.size,textSize:this.textSize,color:this.color,phantom:this.phantom,font:this.font,fontFamily:this.fontFamily,fontWeight:this.fontWeight,fontShape:this.fontShape,maxSize:this.maxSize,minRuleThickness:this.minRuleThickness};for(var I in h)h.hasOwnProperty(I)&&(m[I]=h[I]);return new j(m)},l.havingStyle=function(h){return this.style===h?this:this.extend({style:h,size:hn(this.textSize,h)})},l.havingCrampedStyle=function(){return this.havingStyle(this.style.cramp())},l.havingSize=function(h){return this.size===h&&this.textSize===h?this:this.extend({style:this.style.text(),size:h,textSize:h,sizeMultiplier:Qt[h-1]})},l.havingBaseStyle=function(h){h=h||this.style.text();var m=hn(j.BASESIZE,h);return this.size===m&&this.textSize===j.BASESIZE&&this.style===h?this:this.extend({style:h,size:m})},l.havingBaseSizing=function(){var h;switch(this.style.id){case 4:case 5:h=3;break;case 6:case 7:h=1;break;default:h=6}return this.extend({style:this.style.text(),size:h})},l.withColor=function(h){return this.extend({color:h})},l.withPhantom=function(){return this.extend({phantom:!0})},l.withFont=function(h){return this.extend({font:h})},l.withTextFontFamily=function(h){return this.extend({fontFamily:h,font:""})},l.withTextFontWeight=function(h){return this.extend({fontWeight:h,font:""})},l.withTextFontShape=function(h){return this.extend({fontShape:h,font:""})},l.sizingClasses=function(h){return h.size!==this.size?["sizing","reset-size"+h.size,"size"+this.size]:[]},l.baseSizingClasses=function(){return this.size!==j.BASESIZE?["sizing","reset-size"+this.size,"size"+j.BASESIZE]:[]},l.fontMetrics=function(){return this._fontMetrics||(this._fontMetrics=dt(this.size)),this._fontMetrics},l.getColor=function(){return this.phantom?"transparent":this.color},j}();zn.BASESIZE=6;var Qn=zn,On={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},Vt={ex:!0,em:!0,mu:!0},qe=function(l){return typeof l!="string"&&(l=l.unit),l in On||l in Vt||l==="ex"},tt=function(l,d){var h;if(l.unit in On)h=On[l.unit]/d.fontMetrics().ptPerEm/d.sizeMultiplier;else if(l.unit==="mu")h=d.fontMetrics().cssEmPerMu;else{var m;if(d.style.isTight()?m=d.havingStyle(d.style.text()):m=d,l.unit==="ex")h=m.fontMetrics().xHeight;else if(l.unit==="em")h=m.fontMetrics().quad;else throw new le("Invalid unit: '"+l.unit+"'");m!==d&&(h*=m.sizeMultiplier/d.sizeMultiplier)}return Math.min(l.number*h,d.maxSize)},ht=["\\imath","\u0131","\\jmath","\u0237","\\pounds","\\mathsterling","\\textsterling","\xA3"],wt=function(l,d,h){return Ct[h][l]&&Ct[h][l].replace&&(l=Ct[h][l].replace),{value:l,metrics:Qe(l,d,h)}},mt=function(l,d,h,m,I){var H=wt(l,d,h),Ee=H.metrics;l=H.value;var Oe;if(Ee){var Ke=Ee.italic;(h==="text"||m&&m.font==="mathit")&&(Ke=0),Oe=new C(l,Ee.height,Ee.depth,Ke,Ee.skew,Ee.width,I)}else typeof console!="undefined"&&console.warn("No character metrics "+("for '"+l+"' in style '"+d+"' and mode '"+h+"'")),Oe=new C(l,0,0,0,0,0,I);if(m){Oe.maxFontSize=m.sizeMultiplier,m.style.isTight()&&Oe.classes.push("mtight");var st=m.getColor();st&&(Oe.style.color=st)}return Oe},It=function(l,d,h,m){return m===void 0&&(m=[]),h.font==="boldsymbol"&&wt(l,"Main-Bold",d).metrics?mt(l,"Main-Bold",d,h,m.concat(["mathbf"])):l==="\\"||Ct[d][l].font==="main"?mt(l,"Main-Regular",d,h,m):mt(l,"AMS-Regular",d,h,m.concat(["amsrm"]))},Tt=function(l,d,h,m){return/[0-9]/.test(l.charAt(0))||P.contains(ht,l)?{fontName:"Main-Italic",fontClass:"mathit"}:{fontName:"Math-Italic",fontClass:"mathdefault"}},Wt=function(l,d,h,m){return P.contains(ht,l)?{fontName:"Main-Italic",fontClass:"mathit"}:/[0-9]/.test(l.charAt(0))?{fontName:"Caligraphic-Regular",fontClass:"mathcal"}:{fontName:"Math-Italic",fontClass:"mathdefault"}},mn=function(l,d,h,m){return wt(l,"Math-BoldItalic",d).metrics?{fontName:"Math-BoldItalic",fontClass:"boldsymbol"}:{fontName:"Main-Bold",fontClass:"mathbf"}},cn=function(l,d,h){var m=l.mode,I=l.text,H=["mord"],Ee=m==="math"||m==="text"&&d.font,Oe=Ee?d.font:d.fontFamily;if(I.charCodeAt(0)===55349){var Ke=xt(I,m),st=Ke[0],_t=Ke[1];return mt(I,st,m,d,H.concat(_t))}else if(Oe){var Bt,qt;if(Oe==="boldsymbol"||Oe==="mathnormal"){var fn=Oe==="boldsymbol"?mn(I,m,d,H):Wt(I,m,d,H);Bt=fn.fontName,qt=[fn.fontClass]}else P.contains(ht,I)?(Bt="Main-Italic",qt=["mathit"]):Ee?(Bt=wr[Oe].fontName,qt=[Oe]):(Bt=qn(Oe,d.fontWeight,d.fontShape),qt=[Oe,d.fontWeight,d.fontShape]);if(wt(I,Bt,m).metrics)return mt(I,Bt,m,d,H.concat(qt));if(jt.hasOwnProperty(I)&&Bt.substr(0,10)==="Typewriter"){for(var Sn=[],Kn=0;Kn<I.length;Kn++)Sn.push(mt(I[Kn],Bt,m,d,H.concat(qt)));return rr(Sn)}}if(h==="mathord"){var fr=Tt(I,m,d,H);return mt(I,fr.fontName,m,d,H.concat([fr.fontClass]))}else if(h==="textord"){var pr=Ct[m][I]&&Ct[m][I].font;if(pr==="ams"){var mr=qn("amsrm",d.fontWeight,d.fontShape);return mt(I,mr,m,d,H.concat("amsrm",d.fontWeight,d.fontShape))}else if(pr==="main"||!pr){var jr=qn("textrm",d.fontWeight,d.fontShape);return mt(I,jr,m,d,H.concat(d.fontWeight,d.fontShape))}else{var Kr=qn(pr,d.fontWeight,d.fontShape);return mt(I,Kr,m,d,H.concat(Kr,d.fontWeight,d.fontShape))}}else throw new Error("unexpected type: "+h+" in makeOrd")},Pn=function(l,d){if(nt(l.classes)!==nt(d.classes)||l.skew!==d.skew||l.maxFontSize!==d.maxFontSize)return!1;for(var h in l.style)if(l.style.hasOwnProperty(h)&&l.style[h]!==d.style[h])return!1;for(var m in d.style)if(d.style.hasOwnProperty(m)&&l.style[m]!==d.style[m])return!1;return!0},kn=function(l){for(var d=0;d<l.length-1;d++){var h=l[d],m=l[d+1];h instanceof C&&m instanceof C&&Pn(h,m)&&(h.text+=m.text,h.height=Math.max(h.height,m.height),h.depth=Math.max(h.depth,m.depth),h.italic=m.italic,l.splice(d+1,1),d--)}return l},Un=function(l){for(var d=0,h=0,m=0,I=0;I<l.children.length;I++){var H=l.children[I];H.height>d&&(d=H.height),H.depth>h&&(h=H.depth),H.maxFontSize>m&&(m=H.maxFontSize)}l.height=d,l.depth=h,l.maxFontSize=m},dn=function(l,d,h,m){var I=new M(l,d,h,m);return Un(I),I},Jt=function(l,d,h,m){return new M(l,d,h,m)},Mn=function(l,d,h){var m=dn([l],[],d);return m.height=Math.max(h||d.fontMetrics().defaultRuleThickness,d.minRuleThickness),m.style.borderBottomWidth=m.height+"em",m.maxFontSize=1,m},wn=function(l,d,h,m){var I=new ce(l,d,h,m);return Un(I),I},rr=function(l){var d=new Ft(l);return Un(d),d},Yn=function(l,d){return l instanceof Ft?dn([],[l],d):l},Wn=function(l){if(l.positionType==="individualShift"){for(var d=l.children,h=[d[0]],m=-d[0].shift-d[0].elem.depth,I=m,H=1;H<d.length;H++){var Ee=-d[H].shift-I-d[H].elem.depth,Oe=Ee-(d[H-1].elem.height+d[H-1].elem.depth);I=I+Ee,h.push({type:"kern",size:Oe}),h.push(d[H])}return{children:h,depth:m}}var Ke;if(l.positionType==="top"){for(var st=l.positionData,_t=0;_t<l.children.length;_t++){var Bt=l.children[_t];st-=Bt.type==="kern"?Bt.size:Bt.elem.height+Bt.elem.depth}Ke=st}else if(l.positionType==="bottom")Ke=-l.positionData;else{var qt=l.children[0];if(qt.type!=="elem")throw new Error('First child must have type "elem".');if(l.positionType==="shift")Ke=-qt.elem.depth-l.positionData;else if(l.positionType==="firstBaseline")Ke=-qt.elem.depth;else throw new Error("Invalid positionType "+l.positionType+".")}return{children:l.children,depth:Ke}},Jn=function(l,d){for(var h=Wn(l),m=h.children,I=h.depth,H=0,Ee=0;Ee<m.length;Ee++){var Oe=m[Ee];if(Oe.type==="elem"){var Ke=Oe.elem;H=Math.max(H,Ke.maxFontSize,Ke.height)}}H+=2;var st=dn(["pstrut"],[]);st.style.height=H+"em";for(var _t=[],Bt=I,qt=I,fn=I,Sn=0;Sn<m.length;Sn++){var Kn=m[Sn];if(Kn.type==="kern")fn+=Kn.size;else{var fr=Kn.elem,pr=Kn.wrapperClasses||[],mr=Kn.wrapperStyle||{},jr=dn(pr,[st,fr],void 0,mr);jr.style.top=-H-fn-fr.depth+"em",Kn.marginLeft&&(jr.style.marginLeft=Kn.marginLeft),Kn.marginRight&&(jr.style.marginRight=Kn.marginRight),_t.push(jr),fn+=fr.height+fr.depth}Bt=Math.min(Bt,fn),qt=Math.max(qt,fn)}var Kr=dn(["vlist"],_t);Kr.style.height=qt+"em";var Jr;if(Bt<0){var ti=dn([],[]),ai=dn(["vlist"],[ti]);ai.style.height=-Bt+"em";var Ri=dn(["vlist-s"],[new C("\u200B")]);Jr=[dn(["vlist-r"],[Kr,Ri]),dn(["vlist-r"],[ai])]}else Jr=[dn(["vlist-r"],[Kr])];var Si=dn(["vlist-t"],Jr);return Jr.length===2&&Si.classes.push("vlist-t2"),Si.height=qt,Si.depth=-Bt,Si},Bn=function(l,d){var h=dn(["mspace"],[],d),m=tt(l,d);return h.style.marginRight=m+"em",h},qn=function(l,d,h){var m="";switch(l){case"amsrm":m="AMS";break;case"textrm":m="Main";break;case"textsf":m="SansSerif";break;case"texttt":m="Typewriter";break;default:m=l}var I;return d==="textbf"&&h==="textit"?I="BoldItalic":d==="textbf"?I="Bold":d==="textit"?I="Italic":I="Regular",m+"-"+I},wr={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"}},An={vec:["vec",.471,.714],oiintSize1:["oiintSize1",.957,.499],oiintSize2:["oiintSize2",1.472,.659],oiiintSize1:["oiiintSize1",1.304,.499],oiiintSize2:["oiiintSize2",1.98,.659]},sn=function(l,d){var h=An[l],m=h[0],I=h[1],H=h[2],Ee=new he(m),Oe=new k([Ee],{width:I+"em",height:H+"em",style:"width:"+I+"em",viewBox:"0 0 "+1e3*I+" "+1e3*H,preserveAspectRatio:"xMinYMin"}),Ke=Jt(["overlay"],[Oe],d);return Ke.height=H,Ke.style.height=H+"em",Ke.style.width=I+"em",Ke},Ge={fontMap:wr,makeSymbol:mt,mathsym:It,makeSpan:dn,makeSvgSpan:Jt,makeLineSpan:Mn,makeAnchor:wn,makeFragment:rr,wrapFragment:Yn,makeVList:Jn,makeOrd:cn,makeGlue:Bn,staticSvg:sn,svgData:An,tryCombineChars:kn};function pn(j,l){var d=Ln(j,l);if(!d)throw new Error("Expected node of type "+l+", but got "+(j?"node of type "+j.type:String(j)));return d}function Ln(j,l){return j&&j.type===l?j:null}function Xn(j,l){var d=Gn(j,l);if(!d)throw new Error('Expected node of type "atom" and family "'+l+'", but got '+(j?j.type==="atom"?"atom of family "+j.family:"node of type "+j.type:String(j)));return d}function Gn(j,l){return j&&j.type==="atom"&&j.family===l?j:null}function ir(j){var l=lr(j);if(!l)throw new Error("Expected node of symbol group type, but got "+(j?"node of type "+j.type:String(j)));return l}function lr(j){return j&&(j.type==="atom"||gt.hasOwnProperty(j.type))?j:null}var Nn={number:3,unit:"mu"},ur={number:4,unit:"mu"},_n={number:5,unit:"mu"},tn={mord:{mop:Nn,mbin:ur,mrel:_n,minner:Nn},mop:{mord:Nn,mop:Nn,mrel:_n,minner:Nn},mbin:{mord:ur,mop:ur,mopen:ur,minner:ur},mrel:{mord:_n,mop:_n,mopen:_n,minner:_n},mopen:{},mclose:{mop:Nn,mbin:ur,mrel:_n,minner:Nn},mpunct:{mord:Nn,mop:Nn,mrel:_n,mopen:Nn,mclose:Nn,mpunct:Nn,minner:Nn},minner:{mord:Nn,mop:Nn,mbin:ur,mrel:_n,mopen:Nn,mpunct:Nn,minner:Nn}},Dn={mord:{mop:Nn},mop:{mord:Nn,mop:Nn},mbin:{},mrel:{},mopen:{},mclose:{mop:Nn},mpunct:{},minner:{mop:Nn}},Zn={},sr={},Pr={};function gn(j){for(var l=j.type,d=j.names,h=j.props,m=j.handler,I=j.htmlBuilder,H=j.mathmlBuilder,Ee={type:l,numArgs:h.numArgs,argTypes:h.argTypes,greediness:h.greediness===void 0?1:h.greediness,allowedInText:!!h.allowedInText,allowedInMath:h.allowedInMath===void 0?!0:h.allowedInMath,numOptionalArgs:h.numOptionalArgs||0,infix:!!h.infix,handler:m},Oe=0;Oe<d.length;++Oe)Zn[d[Oe]]=Ee;l&&(I&&(sr[l]=I),H&&(Pr[l]=H))}function cr(j){var l=j.type,d=j.htmlBuilder,h=j.mathmlBuilder;gn({type:l,names:[],props:{numArgs:0},handler:function(){throw new Error("Should never be called.")},htmlBuilder:d,mathmlBuilder:h})}var ar=function(l){var d=Ln(l,"ordgroup");return d?d.body:[l]},xr=Ge.makeSpan,Mr=["leftmost","mbin","mopen","mrel","mop","mpunct"],Fr=["rightmost","mrel","mclose","mpunct"],vr={display:g.DISPLAY,text:g.TEXT,script:g.SCRIPT,scriptscript:g.SCRIPTSCRIPT},Cr={mord:"mord",mop:"mop",mbin:"mbin",mrel:"mrel",mopen:"mopen",mclose:"mclose",mpunct:"mpunct",minner:"minner"},Er=function(l,d,h,m){m===void 0&&(m=[null,null]);for(var I=[],H=0;H<l.length;H++){var Ee=nr(l[H],d);if(Ee instanceof Ft){var Oe=Ee.children;I.push.apply(I,Oe)}else I.push(Ee)}if(!h)return I;var Ke=d;if(l.length===1){var st=Ln(l[0],"sizing")||Ln(l[0],"styling");st&&(st.type==="sizing"?Ke=d.havingSize(st.size):st.type==="styling"&&(Ke=d.havingStyle(vr[st.style])))}var _t=xr([m[0]||"leftmost"],[],d),Bt=xr([m[1]||"rightmost"],[],d);return qr(I,function(qt,fn){var Sn=fn.classes[0],Kn=qt.classes[0];Sn==="mbin"&&P.contains(Fr,Kn)?fn.classes[0]="mord":Kn==="mbin"&&P.contains(Mr,Sn)&&(qt.classes[0]="mord")},{node:_t},Bt),qr(I,function(qt,fn){var Sn=kr(fn),Kn=kr(qt),fr=Sn&&Kn?qt.hasClass("mtight")?Dn[Sn][Kn]:tn[Sn][Kn]:null;if(fr)return Ge.makeGlue(fr,Ke)},{node:_t},Bt),I},qr=function j(l,d,h,m){m&&l.push(m);for(var I=0;I<l.length;I++){var H=l[I],Ee=Yr(H);if(Ee){j(Ee.children,d,h);continue}if(H.classes[0]!=="mspace"){var Oe=d(H,h.node);Oe&&(h.insertAfter?h.insertAfter(Oe):(l.unshift(Oe),I++)),h.node=H,h.insertAfter=function(Ke){return function(st){l.splice(Ke+1,0,st),I++}}(I)}}m&&l.pop()},Yr=function(l){return l instanceof Ft||l instanceof ce?l:null},ii=function j(l,d){var h=Yr(l);if(h){var m=h.children;if(m.length){if(d==="right")return j(m[m.length-1],"right");if(d==="left")return j(m[0],"left")}}return l},kr=function(l,d){return l?(d&&(l=ii(l,d)),Cr[l.classes[0]]||null):null},ei=function(l,d){var h=["nulldelimiter"].concat(l.baseSizingClasses());return xr(d.concat(h))},nr=function(l,d,h){if(!l)return xr();if(sr[l.type]){var m=sr[l.type](l,d);if(h&&d.size!==h.size){m=xr(d.sizingClasses(h),[m],d);var I=d.sizeMultiplier/h.sizeMultiplier;m.height*=I,m.depth*=I}return m}else throw new le("Got group of unknown type: '"+l.type+"'")};function ci(j,l){var d=xr(["base"],j,l),h=xr(["strut"]);return h.style.height=d.height+d.depth+"em",h.style.verticalAlign=-d.depth+"em",d.children.unshift(h),d}function yi(j,l){var d=null;j.length===1&&j[0].type==="tag"&&(d=j[0].tag,j=j[0].body);for(var h=Er(j,l,!0),m=[],I=[],H=0;H<h.length;H++)if(I.push(h[H]),h[H].hasClass("mbin")||h[H].hasClass("mrel")||h[H].hasClass("allowbreak")){for(var Ee=!1;H<h.length-1&&h[H+1].hasClass("mspace")&&!h[H+1].hasClass("newline");)H++,I.push(h[H]),h[H].hasClass("nobreak")&&(Ee=!0);Ee||(m.push(ci(I,l)),I=[])}else h[H].hasClass("newline")&&(I.pop(),I.length>0&&(m.push(ci(I,l)),I=[]),m.push(h[H]));I.length>0&&m.push(ci(I,l));var Oe;d&&(Oe=ci(Er(d,l,!0)),Oe.classes=["tag"],m.push(Oe));var Ke=xr(["katex-html"],m);if(Ke.setAttribute("aria-hidden","true"),Oe){var st=Oe.children[0];st.style.height=Ke.height+Ke.depth+"em",st.style.verticalAlign=-Ke.depth+"em"}return Ke}function hi(j){return new Ft(j)}var Tr=function(){function j(d,h){this.type=void 0,this.attributes=void 0,this.children=void 0,this.type=d,this.attributes={},this.children=h||[]}var l=j.prototype;return l.setAttribute=function(h,m){this.attributes[h]=m},l.getAttribute=function(h){return this.attributes[h]},l.toNode=function(){var h=document.createElementNS("http://www.w3.org/1998/Math/MathML",this.type);for(var m in this.attributes)Object.prototype.hasOwnProperty.call(this.attributes,m)&&h.setAttribute(m,this.attributes[m]);for(var I=0;I<this.children.length;I++)h.appendChild(this.children[I].toNode());return h},l.toMarkup=function(){var h="<"+this.type;for(var m in this.attributes)Object.prototype.hasOwnProperty.call(this.attributes,m)&&(h+=" "+m+'="',h+=P.escape(this.attributes[m]),h+='"');h+=">";for(var I=0;I<this.children.length;I++)h+=this.children[I].toMarkup();return h+="</"+this.type+">",h},l.toText=function(){return this.children.map(function(h){return h.toText()}).join("")},j}(),fi=function(){function j(d){this.text=void 0,this.text=d}var l=j.prototype;return l.toNode=function(){return document.createTextNode(this.text)},l.toMarkup=function(){return P.escape(this.toText())},l.toText=function(){return this.text},j}(),Ai=function(){function j(d){this.width=void 0,this.character=void 0,this.width=d,d>=.05555&&d<=.05556?this.character="\u200A":d>=.1666&&d<=.1667?this.character="\u2009":d>=.2222&&d<=.2223?this.character="\u2005":d>=.2777&&d<=.2778?this.character="\u2005\u200A":d>=-.05556&&d<=-.05555?this.character="\u200A\u2063":d>=-.1667&&d<=-.1666?this.character="\u2009\u2063":d>=-.2223&&d<=-.2222?this.character="\u205F\u2063":d>=-.2778&&d<=-.2777?this.character="\u2005\u2063":this.character=null}var l=j.prototype;return l.toNode=function(){if(this.character)return document.createTextNode(this.character);var h=document.createElementNS("http://www.w3.org/1998/Math/MathML","mspace");return h.setAttribute("width",this.width+"em"),h},l.toMarkup=function(){return this.character?"<mtext>"+this.character+"</mtext>":'<mspace width="'+this.width+'em"/>'},l.toText=function(){return this.character?this.character:" "},j}(),on={MathNode:Tr,TextNode:fi,SpaceNode:Ai,newDocumentFragment:hi},Qr=function(l,d,h){return Ct[d][l]&&Ct[d][l].replace&&l.charCodeAt(0)!==55349&&!(jt.hasOwnProperty(l)&&h&&(h.fontFamily&&h.fontFamily.substr(4,2)==="tt"||h.font&&h.font.substr(4,2)==="tt"))&&(l=Ct[d][l].replace),new on.TextNode(l)},oi=function(l){return l.length===1?l[0]:new on.MathNode("mrow",l)},Rn=function(l,d){if(d.fontFamily==="texttt")return"monospace";if(d.fontFamily==="textsf")return d.fontShape==="textit"&&d.fontWeight==="textbf"?"sans-serif-bold-italic":d.fontShape==="textit"?"sans-serif-italic":d.fontWeight==="textbf"?"bold-sans-serif":"sans-serif";if(d.fontShape==="textit"&&d.fontWeight==="textbf")return"bold-italic";if(d.fontShape==="textit")return"italic";if(d.fontWeight==="textbf")return"bold";var h=d.font;if(!h||h==="mathnormal")return null;var m=l.mode;if(h==="mathit")return"italic";if(h==="boldsymbol")return"bold-italic";if(h==="mathbf")return"bold";if(h==="mathbb")return"double-struck";if(h==="mathfrak")return"fraktur";if(h==="mathscr"||h==="mathcal")return"script";if(h==="mathsf")return"sans-serif";if(h==="mathtt")return"monospace";var I=l.text;if(P.contains(["\\imath","\\jmath"],I))return null;Ct[m][I]&&Ct[m][I].replace&&(I=Ct[m][I].replace);var H=Ge.fontMap[h].fontName;return Qe(I,H,m)?Ge.fontMap[h].variant:null},$n=function(l,d,h){if(l.length===1){var m=En(l[0],d);return h&&m instanceof Tr&&m.type==="mo"&&(m.setAttribute("lspace","0em"),m.setAttribute("rspace","0em")),[m]}for(var I=[],H,Ee=0;Ee<l.length;Ee++){var Oe=En(l[Ee],d);if(Oe instanceof Tr&&H instanceof Tr){if(Oe.type==="mtext"&&H.type==="mtext"&&Oe.getAttribute("mathvariant")===H.getAttribute("mathvariant")){var Ke;(Ke=H.children).push.apply(Ke,Oe.children);continue}else if(Oe.type==="mn"&&H.type==="mn"){var st;(st=H.children).push.apply(st,Oe.children);continue}else if(Oe.type==="mi"&&Oe.children.length===1&&H.type==="mn"){var _t=Oe.children[0];if(_t instanceof fi&&_t.text==="."){var Bt;(Bt=H.children).push.apply(Bt,Oe.children);continue}}else if(H.type==="mi"&&H.children.length===1){var qt=H.children[0];if(qt instanceof fi&&qt.text==="\u0338"&&(Oe.type==="mo"||Oe.type==="mi"||Oe.type==="mn")){var fn=Oe.children[0];fn instanceof fi&&fn.text.length>0&&(fn.text=fn.text.slice(0,1)+"\u0338"+fn.text.slice(1),I.pop())}}}I.push(Oe),H=Oe}return I},Cn=function(l,d,h){return oi($n(l,d,h))},En=function(l,d){if(!l)return new on.MathNode("mrow");if(Pr[l.type]){var h=Pr[l.type](l,d);return h}else throw new le("Got group of unknown type: '"+l.type+"'")};function er(j,l,d,h){var m=$n(j,d),I;m.length===1&&m[0]instanceof Tr&&P.contains(["mrow","mtable"],m[0].type)?I=m[0]:I=new on.MathNode("mrow",m);var H=new on.MathNode("annotation",[new on.TextNode(l)]);H.setAttribute("encoding","application/x-tex");var Ee=new on.MathNode("semantics",[I,H]),Oe=new on.MathNode("math",[Ee]);Oe.setAttribute("xmlns","http://www.w3.org/1998/Math/MathML");var Ke=h?"katex":"katex-mathml";return Ge.makeSpan([Ke],[Oe])}var dr=function(l){return new Qn({style:l.displayMode?g.DISPLAY:g.TEXT,maxSize:l.maxSize,minRuleThickness:l.minRuleThickness})},Hr=function(l,d){if(d.displayMode){var h=["katex-display"];d.leqno&&h.push("leqno"),d.fleqn&&h.push("fleqn"),l=Ge.makeSpan(h,[l])}return l},Dr=function(l,d,h){var m=dr(h),I;if(h.output==="mathml")return er(l,d,m,!0);if(h.output==="html"){var H=yi(l,m);I=Ge.makeSpan(["katex"],[H])}else{var Ee=er(l,d,m,!1),Oe=yi(l,m);I=Ge.makeSpan(["katex"],[Ee,Oe])}return Hr(I,h)},zr=function(l,d,h){var m=dr(h),I=yi(l,m),H=Ge.makeSpan(["katex"],[I]);return Hr(H,h)},Wr=Dr,bi={widehat:"^",widecheck:"\u02C7",widetilde:"~",utilde:"~",overleftarrow:"\u2190",underleftarrow:"\u2190",xleftarrow:"\u2190",overrightarrow:"\u2192",underrightarrow:"\u2192",xrightarrow:"\u2192",underbrace:"\u23DF",overbrace:"\u23DE",overgroup:"\u23E0",undergroup:"\u23E1",overleftrightarrow:"\u2194",underleftrightarrow:"\u2194",xleftrightarrow:"\u2194",Overrightarrow:"\u21D2",xRightarrow:"\u21D2",overleftharpoon:"\u21BC",xleftharpoonup:"\u21BC",overrightharpoon:"\u21C0",xrightharpoonup:"\u21C0",xLeftarrow:"\u21D0",xLeftrightarrow:"\u21D4",xhookleftarrow:"\u21A9",xhookrightarrow:"\u21AA",xmapsto:"\u21A6",xrightharpoondown:"\u21C1",xleftharpoondown:"\u21BD",xrightleftharpoons:"\u21CC",xleftrightharpoons:"\u21CB",xtwoheadleftarrow:"\u219E",xtwoheadrightarrow:"\u21A0",xlongequal:"=",xtofrom:"\u21C4",xrightleftarrows:"\u21C4",xrightequilibrium:"\u21CC",xleftequilibrium:"\u21CB"},xi=function(l){var d=new on.MathNode("mo",[new on.TextNode(bi[l.substr(1)])]);return d.setAttribute("stretchy","true"),d},Hi={overrightarrow:[["rightarrow"],.888,522,"xMaxYMin"],overleftarrow:[["leftarrow"],.888,522,"xMinYMin"],underrightarrow:[["rightarrow"],.888,522,"xMaxYMin"],underleftarrow:[["leftarrow"],.888,522,"xMinYMin"],xrightarrow:[["rightarrow"],1.469,522,"xMaxYMin"],xleftarrow:[["leftarrow"],1.469,522,"xMinYMin"],Overrightarrow:[["doublerightarrow"],.888,560,"xMaxYMin"],xRightarrow:[["doublerightarrow"],1.526,560,"xMaxYMin"],xLeftarrow:[["doubleleftarrow"],1.526,560,"xMinYMin"],overleftharpoon:[["leftharpoon"],.888,522,"xMinYMin"],xleftharpoonup:[["leftharpoon"],.888,522,"xMinYMin"],xleftharpoondown:[["leftharpoondown"],.888,522,"xMinYMin"],overrightharpoon:[["rightharpoon"],.888,522,"xMaxYMin"],xrightharpoonup:[["rightharpoon"],.888,522,"xMaxYMin"],xrightharpoondown:[["rightharpoondown"],.888,522,"xMaxYMin"],xlongequal:[["longequal"],.888,334,"xMinYMin"],xtwoheadleftarrow:[["twoheadleftarrow"],.888,334,"xMinYMin"],xtwoheadrightarrow:[["twoheadrightarrow"],.888,334,"xMaxYMin"],overleftrightarrow:[["leftarrow","rightarrow"],.888,522],overbrace:[["leftbrace","midbrace","rightbrace"],1.6,548],underbrace:[["leftbraceunder","midbraceunder","rightbraceunder"],1.6,548],underleftrightarrow:[["leftarrow","rightarrow"],.888,522],xleftrightarrow:[["leftarrow","rightarrow"],1.75,522],xLeftrightarrow:[["doubleleftarrow","doublerightarrow"],1.75,560],xrightleftharpoons:[["leftharpoondownplus","rightharpoonplus"],1.75,716],xleftrightharpoons:[["leftharpoonplus","rightharpoondownplus"],1.75,716],xhookleftarrow:[["leftarrow","righthook"],1.08,522],xhookrightarrow:[["lefthook","rightarrow"],1.08,522],overlinesegment:[["leftlinesegment","rightlinesegment"],.888,522],underlinesegment:[["leftlinesegment","rightlinesegment"],.888,522],overgroup:[["leftgroup","rightgroup"],.888,342],undergroup:[["leftgroupunder","rightgroupunder"],.888,342],xmapsto:[["leftmapsto","rightarrow"],1.5,522],xtofrom:[["leftToFrom","rightToFrom"],1.75,528],xrightleftarrows:[["baraboveleftarrow","rightarrowabovebar"],1.75,901],xrightequilibrium:[["baraboveshortleftharpoon","rightharpoonaboveshortbar"],1.75,716],xleftequilibrium:[["shortbaraboveleftharpoon","shortrightharpoonabovebar"],1.75,716]},Ni=function(l){return l.type==="ordgroup"?l.body.length:1},mi=function(l,d){function h(){var Oe=4e5,Ke=l.label.substr(1);if(P.contains(["widehat","widecheck","widetilde","utilde"],Ke)){var st=l,_t=Ni(st.base),Bt,qt,fn;if(_t>5)Ke==="widehat"||Ke==="widecheck"?(Bt=420,Oe=2364,fn=.42,qt=Ke+"4"):(Bt=312,Oe=2340,fn=.34,qt="tilde4");else{var Sn=[1,1,2,2,3,3][_t];Ke==="widehat"||Ke==="widecheck"?(Oe=[0,1062,2364,2364,2364][Sn],Bt=[0,239,300,360,420][Sn],fn=[0,.24,.3,.3,.36,.42][Sn],qt=Ke+Sn):(Oe=[0,600,1033,2339,2340][Sn],Bt=[0,260,286,306,312][Sn],fn=[0,.26,.286,.3,.306,.34][Sn],qt="tilde"+Sn)}var Kn=new he(qt),fr=new k([Kn],{width:"100%",height:fn+"em",viewBox:"0 0 "+Oe+" "+Bt,preserveAspectRatio:"none"});return{span:Ge.makeSvgSpan([],[fr],d),minWidth:0,height:fn}}else{var pr=[],mr=Hi[Ke],jr=mr[0],Kr=mr[1],Jr=mr[2],ti=Jr/1e3,ai=jr.length,Ri,Si;if(ai===1){var $r=mr[3];Ri=["hide-tail"],Si=[$r]}else if(ai===2)Ri=["halfarrow-left","halfarrow-right"],Si=["xMinYMin","xMaxYMin"];else if(ai===3)Ri=["brace-left","brace-center","brace-right"],Si=["xMinYMin","xMidYMin","xMaxYMin"];else throw new Error(`Correct katexImagesData or update code here to support
`+ai+" children.");for(var Ui=0;Ui<ai;Ui++){var Ji=new he(jr[Ui]),Wi=new k([Ji],{width:"400em",height:ti+"em",viewBox:"0 0 "+Oe+" "+Jr,preserveAspectRatio:Si[Ui]+" slice"}),Ii=Ge.makeSvgSpan([Ri[Ui]],[Wi],d);if(ai===1)return{span:Ii,minWidth:Kr,height:ti};Ii.style.height=ti+"em",pr.push(Ii)}return{span:Ge.makeSpan(["stretchy"],pr,d),minWidth:Kr,height:ti}}}var m=h(),I=m.span,H=m.minWidth,Ee=m.height;return I.height=Ee,I.style.height=Ee+"em",H>0&&(I.style.minWidth=H+"em"),I},In=function(l,d,h,m){var I,H=l.height+l.depth+2*h;if(/fbox|color/.test(d)){if(I=Ge.makeSpan(["stretchy",d],[],m),d==="fbox"){var Ee=m.color&&m.getColor();Ee&&(I.style.borderColor=Ee)}}else{var Oe=[];/^[bx]cancel$/.test(d)&&Oe.push(new de({x1:"0",y1:"0",x2:"100%",y2:"100%","stroke-width":"0.046em"})),/^x?cancel$/.test(d)&&Oe.push(new de({x1:"0",y1:"100%",x2:"100%",y2:"0","stroke-width":"0.046em"}));var Ke=new k(Oe,{width:"100%",height:H+"em"});I=Ge.makeSvgSpan([],[Ke],m)}return I.height=H,I.style.height=H+"em",I},Tn={encloseSpan:In,mathMLnode:xi,svgSpan:mi},hr=function(l,d){var h,m,I=Ln(l,"supsub"),H;I?(m=pn(I.base,"accent"),h=m.base,I.base=h,H=Ie(nr(I,d)),I.base=m):(m=pn(l,"accent"),h=m.base);var Ee=nr(h,d.havingCrampedStyle()),Oe=m.isShifty&&P.isCharacterBox(h),Ke=0;if(Oe){var st=P.getBaseElem(h),_t=nr(st,d.havingCrampedStyle());Ke=K(_t).skew}var Bt=Math.min(Ee.height,d.fontMetrics().xHeight),qt;if(m.isStretchy)qt=Tn.svgSpan(m,d),qt=Ge.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:Ee},{type:"elem",elem:qt,wrapperClasses:["svg-align"],wrapperStyle:Ke>0?{width:"calc(100% - "+2*Ke+"em)",marginLeft:2*Ke+"em"}:void 0}]},d);else{var fn,Sn;m.label==="\\vec"?(fn=Ge.staticSvg("vec",d),Sn=Ge.svgData.vec[1]):(fn=Ge.makeOrd({mode:m.mode,text:m.label},d,"textord"),fn=K(fn),fn.italic=0,Sn=fn.width),qt=Ge.makeSpan(["accent-body"],[fn]);var Kn=m.label==="\\textcircled";Kn&&(qt.classes.push("accent-full"),Bt=Ee.height);var fr=Ke;Kn||(fr-=Sn/2),qt.style.left=fr+"em",m.label==="\\textcircled"&&(qt.style.top=".2em"),qt=Ge.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:Ee},{type:"kern",size:-Bt},{type:"elem",elem:qt}]},d)}var pr=Ge.makeSpan(["mord","accent"],[qt],d);return H?(H.children[0]=pr,H.height=Math.max(pr.height,H.height),H.classes[0]="mord",H):pr},Gr=function(l,d){var h=l.isStretchy?Tn.mathMLnode(l.label):new on.MathNode("mo",[Qr(l.label,l.mode)]),m=new on.MathNode("mover",[En(l.base,d),h]);return m.setAttribute("accent","true"),m},Sr=new RegExp(["\\acute","\\grave","\\ddot","\\tilde","\\bar","\\breve","\\check","\\hat","\\vec","\\dot","\\mathring"].map(function(j){return"\\"+j}).join("|"));gn({type:"accent",names:["\\acute","\\grave","\\ddot","\\tilde","\\bar","\\breve","\\check","\\hat","\\vec","\\dot","\\mathring","\\widecheck","\\widehat","\\widetilde","\\overrightarrow","\\overleftarrow","\\Overrightarrow","\\overleftrightarrow","\\overgroup","\\overlinesegment","\\overleftharpoon","\\overrightharpoon"],props:{numArgs:1},handler:function(l,d){var h=d[0],m=!Sr.test(l.funcName),I=!m||l.funcName==="\\widehat"||l.funcName==="\\widetilde"||l.funcName==="\\widecheck";return{type:"accent",mode:l.parser.mode,label:l.funcName,isStretchy:m,isShifty:I,base:h}},htmlBuilder:hr,mathmlBuilder:Gr}),gn({type:"accent",names:["\\'","\\`","\\^","\\~","\\=","\\u","\\.",'\\"',"\\r","\\H","\\v","\\textcircled"],props:{numArgs:1,allowedInText:!0,allowedInMath:!1},handler:function(l,d){var h=d[0];return{type:"accent",mode:l.parser.mode,label:l.funcName,isStretchy:!1,isShifty:!0,base:h}},htmlBuilder:hr,mathmlBuilder:Gr}),gn({type:"accentUnder",names:["\\underleftarrow","\\underrightarrow","\\underleftrightarrow","\\undergroup","\\underlinesegment","\\utilde"],props:{numArgs:1},handler:function(l,d){var h=l.parser,m=l.funcName,I=d[0];return{type:"accentUnder",mode:h.mode,label:m,base:I}},htmlBuilder:function(l,d){var h=nr(l.base,d),m=Tn.svgSpan(l,d),I=l.label==="\\utilde"?.12:0,H=Ge.makeVList({positionType:"bottom",positionData:m.height+I,children:[{type:"elem",elem:m,wrapperClasses:["svg-align"]},{type:"kern",size:I},{type:"elem",elem:h}]},d);return Ge.makeSpan(["mord","accentunder"],[H],d)},mathmlBuilder:function(l,d){var h=Tn.mathMLnode(l.label),m=new on.MathNode("munder",[En(l.base,d),h]);return m.setAttribute("accentunder","true"),m}});var pi=function(l){var d=new on.MathNode("mpadded",l?[l]:[]);return d.setAttribute("width","+0.6em"),d.setAttribute("lspace","0.3em"),d};gn({type:"xArrow",names:["\\xleftarrow","\\xrightarrow","\\xLeftarrow","\\xRightarrow","\\xleftrightarrow","\\xLeftrightarrow","\\xhookleftarrow","\\xhookrightarrow","\\xmapsto","\\xrightharpoondown","\\xrightharpoonup","\\xleftharpoondown","\\xleftharpoonup","\\xrightleftharpoons","\\xleftrightharpoons","\\xlongequal","\\xtwoheadrightarrow","\\xtwoheadleftarrow","\\xtofrom","\\xrightleftarrows","\\xrightequilibrium","\\xleftequilibrium"],props:{numArgs:1,numOptionalArgs:1},handler:function(l,d,h){var m=l.parser,I=l.funcName;return{type:"xArrow",mode:m.mode,label:I,body:d[0],below:h[0]}},htmlBuilder:function(l,d){var h=d.style,m=d.havingStyle(h.sup()),I=Ge.wrapFragment(nr(l.body,m,d),d);I.classes.push("x-arrow-pad");var H;l.below&&(m=d.havingStyle(h.sub()),H=Ge.wrapFragment(nr(l.below,m,d),d),H.classes.push("x-arrow-pad"));var Ee=Tn.svgSpan(l,d),Oe=-d.fontMetrics().axisHeight+.5*Ee.height,Ke=-d.fontMetrics().axisHeight-.5*Ee.height-.111;(I.depth>.25||l.label==="\\xleftequilibrium")&&(Ke-=I.depth);var st;if(H){var _t=-d.fontMetrics().axisHeight+H.height+.5*Ee.height+.111;st=Ge.makeVList({positionType:"individualShift",children:[{type:"elem",elem:I,shift:Ke},{type:"elem",elem:Ee,shift:Oe},{type:"elem",elem:H,shift:_t}]},d)}else st=Ge.makeVList({positionType:"individualShift",children:[{type:"elem",elem:I,shift:Ke},{type:"elem",elem:Ee,shift:Oe}]},d);return st.children[0].children[0].children[1].classes.push("svg-align"),Ge.makeSpan(["mrel","x-arrow"],[st],d)},mathmlBuilder:function(l,d){var h=Tn.mathMLnode(l.label),m;if(l.body){var I=pi(En(l.body,d));if(l.below){var H=pi(En(l.below,d));m=new on.MathNode("munderover",[h,H,I])}else m=new on.MathNode("mover",[h,I])}else if(l.below){var Ee=pi(En(l.below,d));m=new on.MathNode("munder",[h,Ee])}else m=pi(),m=new on.MathNode("mover",[h,m]);return m}}),gn({type:"textord",names:["\\@char"],props:{numArgs:1,allowedInText:!0},handler:function(l,d){for(var h=l.parser,m=pn(d[0],"ordgroup"),I=m.body,H="",Ee=0;Ee<I.length;Ee++){var Oe=pn(I[Ee],"textord");H+=Oe.text}var Ke=parseInt(H);if(isNaN(Ke))throw new le("\\@char has non-numeric argument "+H);return{type:"textord",mode:h.mode,text:String.fromCharCode(Ke)}}});var Gi=function(l,d){var h=Er(l.body,d.withColor(l.color),!1);return Ge.makeFragment(h)},ji=function(l,d){var h=$n(l.body,d.withColor(l.color)),m=new on.MathNode("mstyle",h);return m.setAttribute("mathcolor",l.color),m};gn({type:"color",names:["\\textcolor"],props:{numArgs:2,allowedInText:!0,greediness:3,argTypes:["color","original"]},handler:function(l,d){var h=l.parser,m=pn(d[0],"color-token").color,I=d[1];return{type:"color",mode:h.mode,color:m,body:ar(I)}},htmlBuilder:Gi,mathmlBuilder:ji}),gn({type:"color",names:["\\color"],props:{numArgs:1,allowedInText:!0,greediness:3,argTypes:["color"]},handler:function(l,d){var h=l.parser,m=l.breakOnTokenText,I=pn(d[0],"color-token").color;h.gullet.macros.set("\\current@color",I);var H=h.parseExpression(!0,m);return{type:"color",mode:h.mode,color:I,body:H}},htmlBuilder:Gi,mathmlBuilder:ji}),gn({type:"cr",names:["\\cr","\\newline"],props:{numArgs:0,numOptionalArgs:1,argTypes:["size"],allowedInText:!0},handler:function(l,d,h){var m=l.parser,I=l.funcName,H=h[0],Ee=I==="\\cr",Oe=!1;return Ee||(m.settings.displayMode&&m.settings.useStrictBehavior("newLineInDisplayMode","In LaTeX, \\\\ or \\newline does nothing in display mode")?Oe=!1:Oe=!0),{type:"cr",mode:m.mode,newLine:Oe,newRow:Ee,size:H&&pn(H,"size").value}},htmlBuilder:function(l,d){if(l.newRow)throw new le("\\cr valid only within a tabular/array environment");var h=Ge.makeSpan(["mspace"],[],d);return l.newLine&&(h.classes.push("newline"),l.size&&(h.style.marginTop=tt(l.size,d)+"em")),h},mathmlBuilder:function(l,d){var h=new on.MathNode("mspace");return l.newLine&&(h.setAttribute("linebreak","newline"),l.size&&h.setAttribute("height",tt(l.size,d)+"em")),h}});var Ci=function(l,d,h){var m=Ct.math[l]&&Ct.math[l].replace,I=Qe(m||l,d,h);if(!I)throw new Error("Unsupported symbol "+l+" and font size "+d+".");return I},ss=function(l,d,h,m){var I=h.havingBaseStyle(d),H=Ge.makeSpan(m.concat(I.sizingClasses(h)),[l],h),Ee=I.sizeMultiplier/h.sizeMultiplier;return H.height*=Ee,H.depth*=Ee,H.maxFontSize=I.sizeMultiplier,H},as=function(l,d,h){var m=d.havingBaseStyle(h),I=(1-d.sizeMultiplier/m.sizeMultiplier)*d.fontMetrics().axisHeight;l.classes.push("delimcenter"),l.style.top=I+"em",l.height-=I,l.depth+=I},os=function(l,d,h,m,I,H){var Ee=Ge.makeSymbol(l,"Main-Regular",I,m),Oe=ss(Ee,d,m,H);return h&&as(Oe,m,d),Oe},es=function(l,d,h,m){return Ge.makeSymbol(l,"Size"+d+"-Regular",h,m)},ls=function(l,d,h,m,I,H){var Ee=es(l,d,I,m),Oe=ss(Ge.makeSpan(["delimsizing","size"+d],[Ee],m),g.TEXT,m,H);return h&&as(Oe,m,g.TEXT),Oe},Pi=function(l,d,h){var m;d==="Size1-Regular"?m="delim-size1":m="delim-size4";var I=Ge.makeSpan(["delimsizinginner",m],[Ge.makeSpan([],[Ge.makeSymbol(l,d,h)])]);return{type:"elem",elem:I}},ni={type:"kern",size:-.005},us=function(l,d,h,m,I,H){var Ee,Oe,Ke,st;Ee=Ke=st=l,Oe=null;var _t="Size1-Regular";l==="\\uparrow"?Ke=st="\u23D0":l==="\\Uparrow"?Ke=st="\u2016":l==="\\downarrow"?Ee=Ke="\u23D0":l==="\\Downarrow"?Ee=Ke="\u2016":l==="\\updownarrow"?(Ee="\\uparrow",Ke="\u23D0",st="\\downarrow"):l==="\\Updownarrow"?(Ee="\\Uparrow",Ke="\u2016",st="\\Downarrow"):l==="["||l==="\\lbrack"?(Ee="\u23A1",Ke="\u23A2",st="\u23A3",_t="Size4-Regular"):l==="]"||l==="\\rbrack"?(Ee="\u23A4",Ke="\u23A5",st="\u23A6",_t="Size4-Regular"):l==="\\lfloor"||l==="\u230A"?(Ke=Ee="\u23A2",st="\u23A3",_t="Size4-Regular"):l==="\\lceil"||l==="\u2308"?(Ee="\u23A1",Ke=st="\u23A2",_t="Size4-Regular"):l==="\\rfloor"||l==="\u230B"?(Ke=Ee="\u23A5",st="\u23A6",_t="Size4-Regular"):l==="\\rceil"||l==="\u2309"?(Ee="\u23A4",Ke=st="\u23A5",_t="Size4-Regular"):l==="("||l==="\\lparen"?(Ee="\u239B",Ke="\u239C",st="\u239D",_t="Size4-Regular"):l===")"||l==="\\rparen"?(Ee="\u239E",Ke="\u239F",st="\u23A0",_t="Size4-Regular"):l==="\\{"||l==="\\lbrace"?(Ee="\u23A7",Oe="\u23A8",st="\u23A9",Ke="\u23AA",_t="Size4-Regular"):l==="\\}"||l==="\\rbrace"?(Ee="\u23AB",Oe="\u23AC",st="\u23AD",Ke="\u23AA",_t="Size4-Regular"):l==="\\lgroup"||l==="\u27EE"?(Ee="\u23A7",st="\u23A9",Ke="\u23AA",_t="Size4-Regular"):l==="\\rgroup"||l==="\u27EF"?(Ee="\u23AB",st="\u23AD",Ke="\u23AA",_t="Size4-Regular"):l==="\\lmoustache"||l==="\u23B0"?(Ee="\u23A7",st="\u23AD",Ke="\u23AA",_t="Size4-Regular"):(l==="\\rmoustache"||l==="\u23B1")&&(Ee="\u23AB",st="\u23A9",Ke="\u23AA",_t="Size4-Regular");var Bt=Ci(Ee,_t,I),qt=Bt.height+Bt.depth,fn=Ci(Ke,_t,I),Sn=fn.height+fn.depth,Kn=Ci(st,_t,I),fr=Kn.height+Kn.depth,pr=0,mr=1;if(Oe!==null){var jr=Ci(Oe,_t,I);pr=jr.height+jr.depth,mr=2}var Kr=qt+fr+pr,Jr=Math.max(0,Math.ceil((d-Kr)/(mr*Sn))),ti=Kr+Jr*mr*Sn,ai=m.fontMetrics().axisHeight;h&&(ai*=m.sizeMultiplier);var Ri=ti/2-ai,Si=(Jr+1)*.005-Sn,$r=[];if($r.push(Pi(st,_t,I)),Oe===null)for(var Ui=0;Ui<Jr;Ui++)$r.push(ni),$r.push(Pi(Ke,_t,I));else{for(var Ji=0;Ji<Jr;Ji++)$r.push(ni),$r.push(Pi(Ke,_t,I));$r.push({type:"kern",size:Si}),$r.push(Pi(Ke,_t,I)),$r.push(ni),$r.push(Pi(Oe,_t,I));for(var Wi=0;Wi<Jr;Wi++)$r.push(ni),$r.push(Pi(Ke,_t,I))}$r.push({type:"kern",size:Si}),$r.push(Pi(Ke,_t,I)),$r.push(ni),$r.push(Pi(Ee,_t,I));var Ii=m.havingBaseStyle(g.TEXT),qi=Ge.makeVList({positionType:"bottom",positionData:Ri,children:$r},Ii);return ss(Ge.makeSpan(["delimsizing","mult"],[qi],Ii),g.TEXT,m,H)},ts=80,Ei=.08,Ti=function(l,d,h,m,I){var H=Ut(l,m,h),Ee=new he(l,H),Oe=new k([Ee],{width:"400em",height:d+"em",viewBox:"0 0 400000 "+h,preserveAspectRatio:"xMinYMin slice"});return Ge.makeSvgSpan(["hide-tail"],[Oe],I)},br=function(l,d){var h=d.havingBaseSizing(),m=zi("\\surd",l*h.sizeMultiplier,gi,h),I=h.sizeMultiplier,H=Math.max(0,d.minRuleThickness-d.fontMetrics().sqrtRuleThickness),Ee,Oe=0,Ke=0,st=0,_t;return m.type==="small"?(st=1e3+1e3*H+ts,l<1?I=1:l<1.4&&(I=.7),Oe=(1+H+Ei)/I,Ke=(1+H)/I,Ee=Ti("sqrtMain",Oe,st,H,d),Ee.style.minWidth="0.853em",_t=.833/I):m.type==="large"?(st=(1e3+ts)*Zr[m.size],Ke=(Zr[m.size]+H)/I,Oe=(Zr[m.size]+H+Ei)/I,Ee=Ti("sqrtSize"+m.size,Oe,st,H,d),Ee.style.minWidth="1.02em",_t=1/I):(Oe=l+H+Ei,Ke=l+H,st=Math.floor(1e3*l+H)+ts,Ee=Ti("sqrtTall",Oe,st,H,d),Ee.style.minWidth="0.742em",_t=1.056),Ee.height=Ke,Ee.style.height=Oe+"em",{span:Ee,advanceWidth:_t,ruleWidth:(d.fontMetrics().sqrtRuleThickness+H)*I}},tr=["(","\\lparen",")","\\rparen","[","\\lbrack","]","\\rbrack","\\{","\\lbrace","\\}","\\rbrace","\\lfloor","\\rfloor","\u230A","\u230B","\\lceil","\\rceil","\u2308","\u2309","\\surd"],li=["\\uparrow","\\downarrow","\\updownarrow","\\Uparrow","\\Downarrow","\\Updownarrow","|","\\|","\\vert","\\Vert","\\lvert","\\rvert","\\lVert","\\rVert","\\lgroup","\\rgroup","\u27EE","\u27EF","\\lmoustache","\\rmoustache","\u23B0","\u23B1"],ui=["<",">","\\langle","\\rangle","/","\\backslash","\\lt","\\gt"],Zr=[0,1.2,1.8,2.4,3],wi=function(l,d,h,m,I){if(l==="<"||l==="\\lt"||l==="\u27E8"?l="\\langle":(l===">"||l==="\\gt"||l==="\u27E9")&&(l="\\rangle"),P.contains(tr,l)||P.contains(ui,l))return ls(l,d,!1,h,m,I);if(P.contains(li,l))return us(l,Zr[d],!1,h,m,I);throw new le("Illegal delimiter: '"+l+"'")},Ir=[{type:"small",style:g.SCRIPTSCRIPT},{type:"small",style:g.SCRIPT},{type:"small",style:g.TEXT},{type:"large",size:1},{type:"large",size:2},{type:"large",size:3},{type:"large",size:4}],Fi=[{type:"small",style:g.SCRIPTSCRIPT},{type:"small",style:g.SCRIPT},{type:"small",style:g.TEXT},{type:"stack"}],gi=[{type:"small",style:g.SCRIPTSCRIPT},{type:"small",style:g.SCRIPT},{type:"small",style:g.TEXT},{type:"large",size:1},{type:"large",size:2},{type:"large",size:3},{type:"large",size:4},{type:"stack"}],Oi=function(l){if(l.type==="small")return"Main-Regular";if(l.type==="large")return"Size"+l.size+"-Regular";if(l.type==="stack")return"Size4-Regular";throw new Error("Add support for delim type '"+l.type+"' here.")},zi=function(l,d,h,m){for(var I=Math.min(2,3-m.style.size),H=I;H<h.length&&h[H].type!=="stack";H++){var Ee=Ci(l,Oi(h[H]),"math"),Oe=Ee.height+Ee.depth;if(h[H].type==="small"){var Ke=m.havingBaseStyle(h[H].style);Oe*=Ke.sizeMultiplier}if(Oe>d)return h[H]}return h[h.length-1]},Or=function(l,d,h,m,I,H){l==="<"||l==="\\lt"||l==="\u27E8"?l="\\langle":(l===">"||l==="\\gt"||l==="\u27E9")&&(l="\\rangle");var Ee;P.contains(ui,l)?Ee=Ir:P.contains(tr,l)?Ee=gi:Ee=Fi;var Oe=zi(l,d,Ee,m);return Oe.type==="small"?os(l,Oe.style,h,m,I,H):Oe.type==="large"?ls(l,Oe.size,h,m,I,H):us(l,d,h,m,I,H)},gs=function(l,d,h,m,I,H){var Ee=m.fontMetrics().axisHeight*m.sizeMultiplier,Oe=901,Ke=5/m.fontMetrics().ptPerEm,st=Math.max(d-Ee,h+Ee),_t=Math.max(st/500*Oe,2*st-Ke);return Or(l,_t,!0,m,I,H)},Di={sqrtImage:br,sizedDelim:wi,customSizedDelim:Or,leftRightDelim:gs},cs={"\\bigl":{mclass:"mopen",size:1},"\\Bigl":{mclass:"mopen",size:2},"\\biggl":{mclass:"mopen",size:3},"\\Biggl":{mclass:"mopen",size:4},"\\bigr":{mclass:"mclose",size:1},"\\Bigr":{mclass:"mclose",size:2},"\\biggr":{mclass:"mclose",size:3},"\\Biggr":{mclass:"mclose",size:4},"\\bigm":{mclass:"mrel",size:1},"\\Bigm":{mclass:"mrel",size:2},"\\biggm":{mclass:"mrel",size:3},"\\Biggm":{mclass:"mrel",size:4},"\\big":{mclass:"mord",size:1},"\\Big":{mclass:"mord",size:2},"\\bigg":{mclass:"mord",size:3},"\\Bigg":{mclass:"mord",size:4}},ea=["(","\\lparen",")","\\rparen","[","\\lbrack","]","\\rbrack","\\{","\\lbrace","\\}","\\rbrace","\\lfloor","\\rfloor","\u230A","\u230B","\\lceil","\\rceil","\u2308","\u2309","<",">","\\langle","\u27E8","\\rangle","\u27E9","\\lt","\\gt","\\lvert","\\rvert","\\lVert","\\rVert","\\lgroup","\\rgroup","\u27EE","\u27EF","\\lmoustache","\\rmoustache","\u23B0","\u23B1","/","\\backslash","|","\\vert","\\|","\\Vert","\\uparrow","\\Uparrow","\\downarrow","\\Downarrow","\\updownarrow","\\Updownarrow","."];function vs(j,l){var d=lr(j);if(d&&P.contains(ea,d.text))return d;throw new le("Invalid delimiter: '"+(d?d.text:JSON.stringify(j))+"' after '"+l.funcName+"'",j)}gn({type:"delimsizing",names:["\\bigl","\\Bigl","\\biggl","\\Biggl","\\bigr","\\Bigr","\\biggr","\\Biggr","\\bigm","\\Bigm","\\biggm","\\Biggm","\\big","\\Big","\\bigg","\\Bigg"],props:{numArgs:1},handler:function(l,d){var h=vs(d[0],l);return{type:"delimsizing",mode:l.parser.mode,size:cs[l.funcName].size,mclass:cs[l.funcName].mclass,delim:h.text}},htmlBuilder:function(l,d){return l.delim==="."?Ge.makeSpan([l.mclass]):Di.sizedDelim(l.delim,l.size,d,l.mode,[l.mclass])},mathmlBuilder:function(l){var d=[];l.delim!=="."&&d.push(Qr(l.delim,l.mode));var h=new on.MathNode("mo",d);return l.mclass==="mopen"||l.mclass==="mclose"?h.setAttribute("fence","true"):h.setAttribute("fence","false"),h}});function _s(j){if(!j.body)throw new Error("Bug: The leftright ParseNode wasn't fully parsed.")}gn({type:"leftright-right",names:["\\right"],props:{numArgs:1},handler:function(l,d){var h=l.parser.gullet.macros.get("\\current@color");if(h&&typeof h!="string")throw new le("\\current@color set to non-string in \\right");return{type:"leftright-right",mode:l.parser.mode,delim:vs(d[0],l).text,color:h}}}),gn({type:"leftright",names:["\\left"],props:{numArgs:1},handler:function(l,d){var h=vs(d[0],l),m=l.parser;++m.leftrightDepth;var I=m.parseExpression(!1);--m.leftrightDepth,m.expect("\\right",!1);var H=pn(m.parseFunction(),"leftright-right");return{type:"leftright",mode:m.mode,body:I,left:h.text,right:H.delim,rightColor:H.color}},htmlBuilder:function(l,d){_s(l);for(var h=Er(l.body,d,!0,["mopen","mclose"]),m=0,I=0,H=!1,Ee=0;Ee<h.length;Ee++)h[Ee].isMiddle?H=!0:(m=Math.max(h[Ee].height,m),I=Math.max(h[Ee].depth,I));m*=d.sizeMultiplier,I*=d.sizeMultiplier;var Oe;if(l.left==="."?Oe=ei(d,["mopen"]):Oe=Di.leftRightDelim(l.left,m,I,d,l.mode,["mopen"]),h.unshift(Oe),H)for(var Ke=1;Ke<h.length;Ke++){var st=h[Ke],_t=st.isMiddle;_t&&(h[Ke]=Di.leftRightDelim(_t.delim,m,I,_t.options,l.mode,[]))}var Bt;if(l.right===".")Bt=ei(d,["mclose"]);else{var qt=l.rightColor?d.withColor(l.rightColor):d;Bt=Di.leftRightDelim(l.right,m,I,qt,l.mode,["mclose"])}return h.push(Bt),Ge.makeSpan(["minner"],h,d)},mathmlBuilder:function(l,d){_s(l);var h=$n(l.body,d);if(l.left!=="."){var m=new on.MathNode("mo",[Qr(l.left,l.mode)]);m.setAttribute("fence","true"),h.unshift(m)}if(l.right!=="."){var I=new on.MathNode("mo",[Qr(l.right,l.mode)]);I.setAttribute("fence","true"),l.rightColor&&I.setAttribute("mathcolor",l.rightColor),h.push(I)}return oi(h)}}),gn({type:"middle",names:["\\middle"],props:{numArgs:1},handler:function(l,d){var h=vs(d[0],l);if(!l.parser.leftrightDepth)throw new le("\\middle without preceding \\left",h);return{type:"middle",mode:l.parser.mode,delim:h.text}},htmlBuilder:function(l,d){var h;if(l.delim===".")h=ei(d,[]);else{h=Di.sizedDelim(l.delim,1,d,l.mode,[]);var m={delim:l.delim,options:d};h.isMiddle=m}return h},mathmlBuilder:function(l,d){var h=l.delim==="\\vert"||l.delim==="|"?Qr("|","text"):Qr(l.delim,l.mode),m=new on.MathNode("mo",[h]);return m.setAttribute("fence","true"),m.setAttribute("lspace","0.05em"),m.setAttribute("rspace","0.05em"),m}});var ys=function(l,d){var h=Ge.wrapFragment(nr(l.body,d),d),m=l.label.substr(1),I=d.sizeMultiplier,H,Ee=0,Oe=P.isCharacterBox(l.body);if(m==="sout")H=Ge.makeSpan(["stretchy","sout"]),H.height=d.fontMetrics().defaultRuleThickness/I,Ee=-.5*d.fontMetrics().xHeight;else{/cancel/.test(m)?Oe||h.classes.push("cancel-pad"):h.classes.push("boxpad");var Ke=0,st=0;/box/.test(m)?(st=Math.max(d.fontMetrics().fboxrule,d.minRuleThickness),Ke=d.fontMetrics().fboxsep+(m==="colorbox"?0:st)):Ke=Oe?.2:0,H=Tn.encloseSpan(h,m,Ke,d),/fbox|boxed|fcolorbox/.test(m)&&(H.style.borderStyle="solid",H.style.borderWidth=st+"em"),Ee=h.depth+Ke,l.backgroundColor&&(H.style.backgroundColor=l.backgroundColor,l.borderColor&&(H.style.borderColor=l.borderColor))}var _t;return l.backgroundColor?_t=Ge.makeVList({positionType:"individualShift",children:[{type:"elem",elem:H,shift:Ee},{type:"elem",elem:h,shift:0}]},d):_t=Ge.makeVList({positionType:"individualShift",children:[{type:"elem",elem:h,shift:0},{type:"elem",elem:H,shift:Ee,wrapperClasses:/cancel/.test(m)?["svg-align"]:[]}]},d),/cancel/.test(m)&&(_t.height=h.height,_t.depth=h.depth),/cancel/.test(m)&&!Oe?Ge.makeSpan(["mord","cancel-lap"],[_t],d):Ge.makeSpan(["mord"],[_t],d)},Ts=function(l,d){var h=0,m=new on.MathNode(l.label.indexOf("colorbox")>-1?"mpadded":"menclose",[En(l.body,d)]);switch(l.label){case"\\cancel":m.setAttribute("notation","updiagonalstrike");break;case"\\bcancel":m.setAttribute("notation","downdiagonalstrike");break;case"\\sout":m.setAttribute("notation","horizontalstrike");break;case"\\fbox":m.setAttribute("notation","box");break;case"\\fcolorbox":case"\\colorbox":if(h=d.fontMetrics().fboxsep*d.fontMetrics().ptPerEm,m.setAttribute("width","+"+2*h+"pt"),m.setAttribute("height","+"+2*h+"pt"),m.setAttribute("lspace",h+"pt"),m.setAttribute("voffset",h+"pt"),l.label==="\\fcolorbox"){var I=Math.max(d.fontMetrics().fboxrule,d.minRuleThickness);m.setAttribute("style","border: "+I+"em solid "+String(l.borderColor))}break;case"\\xcancel":m.setAttribute("notation","updiagonalstrike downdiagonalstrike");break}return l.backgroundColor&&m.setAttribute("mathbackground",l.backgroundColor),m};gn({type:"enclose",names:["\\colorbox"],props:{numArgs:2,allowedInText:!0,greediness:3,argTypes:["color","text"]},handler:function(l,d,h){var m=l.parser,I=l.funcName,H=pn(d[0],"color-token").color,Ee=d[1];return{type:"enclose",mode:m.mode,label:I,backgroundColor:H,body:Ee}},htmlBuilder:ys,mathmlBuilder:Ts}),gn({type:"enclose",names:["\\fcolorbox"],props:{numArgs:3,allowedInText:!0,greediness:3,argTypes:["color","color","text"]},handler:function(l,d,h){var m=l.parser,I=l.funcName,H=pn(d[0],"color-token").color,Ee=pn(d[1],"color-token").color,Oe=d[2];return{type:"enclose",mode:m.mode,label:I,backgroundColor:Ee,borderColor:H,body:Oe}},htmlBuilder:ys,mathmlBuilder:Ts}),gn({type:"enclose",names:["\\fbox"],props:{numArgs:1,argTypes:["hbox"],allowedInText:!0},handler:function(l,d){var h=l.parser;return{type:"enclose",mode:h.mode,label:"\\fbox",body:d[0]}}}),gn({type:"enclose",names:["\\cancel","\\bcancel","\\xcancel","\\sout"],props:{numArgs:1},handler:function(l,d,h){var m=l.parser,I=l.funcName,H=d[0];return{type:"enclose",mode:m.mode,label:I,body:H}},htmlBuilder:ys,mathmlBuilder:Ts});var Ms={};function $i(j){for(var l=j.type,d=j.names,h=j.props,m=j.handler,I=j.htmlBuilder,H=j.mathmlBuilder,Ee={type:l,numArgs:h.numArgs||0,greediness:1,allowedInText:!1,numOptionalArgs:0,handler:m},Oe=0;Oe<d.length;++Oe)Ms[d[Oe]]=Ee;I&&(sr[l]=I),H&&(Pr[l]=H)}function Ds(j){var l=[];j.consumeSpaces();for(var d=j.fetch().text;d==="\\hline"||d==="\\hdashline";)j.consume(),l.push(d==="\\hdashline"),j.consumeSpaces(),d=j.fetch().text;return l}function Br(j,l,d){var h=l.hskipBeforeAndAfter,m=l.addJot,I=l.cols,H=l.arraystretch,Ee=l.colSeparationType;if(j.gullet.beginGroup(),j.gullet.macros.set("\\\\","\\cr"),!H){var Oe=j.gullet.expandMacroAsText("\\arraystretch");if(Oe==null)H=1;else if(H=parseFloat(Oe),!H||H<0)throw new le("Invalid \\arraystretch: "+Oe)}j.gullet.beginGroup();var Ke=[],st=[Ke],_t=[],Bt=[];for(Bt.push(Ds(j));;){var qt=j.parseExpression(!1,"\\cr");j.gullet.endGroup(),j.gullet.beginGroup(),qt={type:"ordgroup",mode:j.mode,body:qt},d&&(qt={type:"styling",mode:j.mode,style:d,body:[qt]}),Ke.push(qt);var fn=j.fetch().text;if(fn==="&")j.consume();else if(fn==="\\end"){Ke.length===1&&qt.type==="styling"&&qt.body[0].body.length===0&&st.pop(),Bt.length<st.length+1&&Bt.push([]);break}else if(fn==="\\cr"){var Sn=pn(j.parseFunction(),"cr");_t.push(Sn.size),Bt.push(Ds(j)),Ke=[],st.push(Ke)}else throw new le("Expected & or \\\\ or \\cr or \\end",j.nextToken)}return j.gullet.endGroup(),j.gullet.endGroup(),{type:"array",mode:j.mode,addJot:m,arraystretch:H,body:st,cols:I,rowGaps:_t,hskipBeforeAndAfter:h,hLinesBeforeRow:Bt,colSeparationType:Ee}}function Lr(j){return j.substr(0,1)==="d"?"display":"text"}var Rr=function(l,d){var h,m,I=l.body.length,H=l.hLinesBeforeRow,Ee=0,Oe=new Array(I),Ke=[],st=Math.max(d.fontMetrics().arrayRuleWidth,d.minRuleThickness),_t=1/d.fontMetrics().ptPerEm,Bt=5*_t;if(l.colSeparationType&&l.colSeparationType==="small"){var qt=d.havingStyle(g.SCRIPT).sizeMultiplier;Bt=.2778*(qt/d.sizeMultiplier)}var fn=12*_t,Sn=3*_t,Kn=l.arraystretch*fn,fr=.7*Kn,pr=.3*Kn,mr=0;function jr(va){for(var ps=0;ps<va.length;++ps)ps>0&&(mr+=.25),Ke.push({pos:mr,isDashed:va[ps]})}for(jr(H[0]),h=0;h<l.body.length;++h){var Kr=l.body[h],Jr=fr,ti=pr;Ee<Kr.length&&(Ee=Kr.length);var ai=new Array(Kr.length);for(m=0;m<Kr.length;++m){var Ri=nr(Kr[m],d);ti<Ri.depth&&(ti=Ri.depth),Jr<Ri.height&&(Jr=Ri.height),ai[m]=Ri}var Si=l.rowGaps[h],$r=0;Si&&($r=tt(Si,d),$r>0&&($r+=pr,ti<$r&&(ti=$r),$r=0)),l.addJot&&(ti+=Sn),ai.height=Jr,ai.depth=ti,mr+=Jr,ai.pos=mr,mr+=ti+$r,Oe[h]=ai,jr(H[h+1])}var Ui=mr/2+d.fontMetrics().axisHeight,Ji=l.cols||[],Wi=[],Ii,qi;for(m=0,qi=0;m<Ee||qi<Ji.length;++m,++qi){for(var di=Ji[qi]||{},Zi=!0;di.type==="separator";){if(Zi||(Ii=Ge.makeSpan(["arraycolsep"],[]),Ii.style.width=d.fontMetrics().doubleRuleSep+"em",Wi.push(Ii)),di.separator==="|"||di.separator===":"){var to=di.separator==="|"?"solid":"dashed",Ss=Ge.makeSpan(["vertical-separator"],[],d);Ss.style.height=mr+"em",Ss.style.borderRightWidth=st+"em",Ss.style.borderRightStyle=to,Ss.style.margin="0 -"+st/2+"em",Ss.style.verticalAlign=-(mr-Ui)+"em",Wi.push(Ss)}else throw new le("Invalid separator type: "+di.separator);qi++,di=Ji[qi]||{},Zi=!1}if(!(m>=Ee)){var As=void 0;(m>0||l.hskipBeforeAndAfter)&&(As=P.deflt(di.pregap,Bt),As!==0&&(Ii=Ge.makeSpan(["arraycolsep"],[]),Ii.style.width=As+"em",Wi.push(Ii)));var Cs=[];for(h=0;h<I;++h){var Ys=Oe[h],Xs=Ys[m];if(Xs){var ms=Ys.pos-Ui;Xs.depth=Ys.depth,Xs.height=Ys.height,Cs.push({type:"elem",elem:Xs,shift:ms})}}Cs=Ge.makeVList({positionType:"individualShift",children:Cs},d),Cs=Ge.makeSpan(["col-align-"+(di.align||"c")],[Cs]),Wi.push(Cs),(m<Ee-1||l.hskipBeforeAndAfter)&&(As=P.deflt(di.postgap,Bt),As!==0&&(Ii=Ge.makeSpan(["arraycolsep"],[]),Ii.style.width=As+"em",Wi.push(Ii)))}}if(Oe=Ge.makeSpan(["mtable"],Wi),Ke.length>0){for(var Ba=Ge.makeLineSpan("hline",d,st),no=Ge.makeLineSpan("hdashline",d,st),pa=[{type:"elem",elem:Oe,shift:0}];Ke.length>0;){var Qs=Ke.pop(),ga=Qs.pos-Ui;Qs.isDashed?pa.push({type:"elem",elem:no,shift:ga}):pa.push({type:"elem",elem:Ba,shift:ga})}Oe=Ge.makeVList({positionType:"individualShift",children:pa},d)}return Ge.makeSpan(["mord"],[Oe],d)},ri={c:"center ",l:"left ",r:"right "},si=function(l,d){var h=new on.MathNode("mtable",l.body.map(function(mr){return new on.MathNode("mtr",mr.map(function(jr){return new on.MathNode("mtd",[En(jr,d)])}))})),m=l.arraystretch===.5?.1:.16+l.arraystretch-1+(l.addJot?.09:0);h.setAttribute("rowspacing",m+"em");var I="",H="";if(l.cols){var Ee=l.cols,Oe="",Ke=!1,st=0,_t=Ee.length;Ee[0].type==="separator"&&(I+="top ",st=1),Ee[Ee.length-1].type==="separator"&&(I+="bottom ",_t-=1);for(var Bt=st;Bt<_t;Bt++)Ee[Bt].type==="align"?(H+=ri[Ee[Bt].align],Ke&&(Oe+="none "),Ke=!0):Ee[Bt].type==="separator"&&Ke&&(Oe+=Ee[Bt].separator==="|"?"solid ":"dashed ",Ke=!1);h.setAttribute("columnalign",H.trim()),/[sd]/.test(Oe)&&h.setAttribute("columnlines",Oe.trim())}if(l.colSeparationType==="align"){for(var qt=l.cols||[],fn="",Sn=1;Sn<qt.length;Sn++)fn+=Sn%2?"0em ":"1em ";h.setAttribute("columnspacing",fn.trim())}else l.colSeparationType==="alignat"?h.setAttribute("columnspacing","0em"):l.colSeparationType==="small"?h.setAttribute("columnspacing","0.2778em"):h.setAttribute("columnspacing","1em");var Kn="",fr=l.hLinesBeforeRow;I+=fr[0].length>0?"left ":"",I+=fr[fr.length-1].length>0?"right ":"";for(var pr=1;pr<fr.length-1;pr++)Kn+=fr[pr].length===0?"none ":fr[pr][0]?"dashed ":"solid ";return/[sd]/.test(Kn)&&h.setAttribute("rowlines",Kn.trim()),I!==""&&(h=new on.MathNode("menclose",[h]),h.setAttribute("notation",I.trim())),l.arraystretch&&l.arraystretch<1&&(h=new on.MathNode("mstyle",[h]),h.setAttribute("scriptlevel","1")),h},ds=function(l,d){var h=[],m=Br(l.parser,{cols:h,addJot:!0},"display"),I,H=0,Ee={type:"ordgroup",mode:l.mode,body:[]},Oe=Ln(d[0],"ordgroup");if(Oe){for(var Ke="",st=0;st<Oe.body.length;st++){var _t=pn(Oe.body[st],"textord");Ke+=_t.text}I=Number(Ke),H=I*2}var Bt=!H;m.body.forEach(function(Kn){for(var fr=1;fr<Kn.length;fr+=2){var pr=pn(Kn[fr],"styling"),mr=pn(pr.body[0],"ordgroup");mr.body.unshift(Ee)}if(Bt)H<Kn.length&&(H=Kn.length);else{var jr=Kn.length/2;if(I<jr)throw new le("Too many math in a row: "+("expected "+I+", but got "+jr),Kn[0])}});for(var qt=0;qt<H;++qt){var fn="r",Sn=0;qt%2===1?fn="l":qt>0&&Bt&&(Sn=1),h[qt]={type:"align",align:fn,pregap:Sn,postgap:0}}return m.colSeparationType=Bt?"align":"alignat",m};$i({type:"array",names:["array","darray"],props:{numArgs:1},handler:function(l,d){var h=lr(d[0]),m=h?[d[0]]:pn(d[0],"ordgroup").body,I=m.map(function(Ee){var Oe=ir(Ee),Ke=Oe.text;if("lcr".indexOf(Ke)!==-1)return{type:"align",align:Ke};if(Ke==="|")return{type:"separator",separator:"|"};if(Ke===":")return{type:"separator",separator:":"};throw new le("Unknown column alignment: "+Ke,Ee)}),H={cols:I,hskipBeforeAndAfter:!0};return Br(l.parser,H,Lr(l.envName))},htmlBuilder:Rr,mathmlBuilder:si}),$i({type:"array",names:["matrix","pmatrix","bmatrix","Bmatrix","vmatrix","Vmatrix"],props:{numArgs:0},handler:function(l){var d={matrix:null,pmatrix:["(",")"],bmatrix:["[","]"],Bmatrix:["\\{","\\}"],vmatrix:["|","|"],Vmatrix:["\\Vert","\\Vert"]}[l.envName],h={hskipBeforeAndAfter:!1},m=Br(l.parser,h,Lr(l.envName));return d?{type:"leftright",mode:l.mode,body:[m],left:d[0],right:d[1],rightColor:void 0}:m},htmlBuilder:Rr,mathmlBuilder:si}),$i({type:"array",names:["smallmatrix"],props:{numArgs:0},handler:function(l){var d={arraystretch:.5},h=Br(l.parser,d,"script");return h.colSeparationType="small",h},htmlBuilder:Rr,mathmlBuilder:si}),$i({type:"array",names:["subarray"],props:{numArgs:1},handler:function(l,d){var h=lr(d[0]),m=h?[d[0]]:pn(d[0],"ordgroup").body,I=m.map(function(Ee){var Oe=ir(Ee),Ke=Oe.text;if("lc".indexOf(Ke)!==-1)return{type:"align",align:Ke};throw new le("Unknown column alignment: "+Ke,Ee)});if(I.length>1)throw new le("{subarray} can contain only one column");var H={cols:I,hskipBeforeAndAfter:!1,arraystretch:.5};if(H=Br(l.parser,H,"script"),H.body[0].length>1)throw new le("{subarray} can contain only one column");return H},htmlBuilder:Rr,mathmlBuilder:si}),$i({type:"array",names:["cases","dcases"],props:{numArgs:0},handler:function(l){var d={arraystretch:1.2,cols:[{type:"align",align:"l",pregap:0,postgap:1},{type:"align",align:"l",pregap:0,postgap:0}]},h=Br(l.parser,d,Lr(l.envName));return{type:"leftright",mode:l.mode,body:[h],left:"\\{",right:".",rightColor:void 0}},htmlBuilder:Rr,mathmlBuilder:si}),$i({type:"array",names:["aligned"],props:{numArgs:0},handler:ds,htmlBuilder:Rr,mathmlBuilder:si}),$i({type:"array",names:["gathered"],props:{numArgs:0},handler:function(l){var d={cols:[{type:"align",align:"c"}],addJot:!0};return Br(l.parser,d,"display")},htmlBuilder:Rr,mathmlBuilder:si}),$i({type:"array",names:["alignedat"],props:{numArgs:1},handler:ds,htmlBuilder:Rr,mathmlBuilder:si}),gn({type:"text",names:["\\hline","\\hdashline"],props:{numArgs:0,allowedInText:!0,allowedInMath:!0},handler:function(l,d){throw new le(l.funcName+" valid only within array environment")}});var Rs=Ms,Bs=Rs;gn({type:"environment",names:["\\begin","\\end"],props:{numArgs:1,argTypes:["text"]},handler:function(l,d){var h=l.parser,m=l.funcName,I=d[0];if(I.type!=="ordgroup")throw new le("Invalid environment name",I);for(var H="",Ee=0;Ee<I.body.length;++Ee)H+=pn(I.body[Ee],"textord").text;if(m==="\\begin"){if(!Bs.hasOwnProperty(H))throw new le("No such environment: "+H,I);var Oe=Bs[H],Ke=h.parseArguments("\\begin{"+H+"}",Oe),st=Ke.args,_t=Ke.optArgs,Bt={mode:h.mode,envName:H,parser:h},qt=Oe.handler(Bt,st,_t);h.expect("\\end",!1);var fn=h.nextToken,Sn=pn(h.parseFunction(),"environment");if(Sn.name!==H)throw new le("Mismatch: \\begin{"+H+"} matched by \\end{"+Sn.name+"}",fn);return qt}return{type:"environment",mode:h.mode,name:H,nameGroup:I}}});var Ns=Ge.makeSpan;function hs(j,l){var d=Er(j.body,l,!0);return Ns([j.mclass],d,l)}function ns(j,l){var d,h=$n(j.body,l);return j.mclass==="minner"?on.newDocumentFragment(h):(j.mclass==="mord"?j.isCharacterBox?(d=h[0],d.type="mi"):d=new on.MathNode("mi",h):(j.isCharacterBox?(d=h[0],d.type="mo"):d=new on.MathNode("mo",h),j.mclass==="mbin"?(d.attributes.lspace="0.22em",d.attributes.rspace="0.22em"):j.mclass==="mpunct"?(d.attributes.lspace="0em",d.attributes.rspace="0.17em"):(j.mclass==="mopen"||j.mclass==="mclose")&&(d.attributes.lspace="0em",d.attributes.rspace="0em")),d)}gn({type:"mclass",names:["\\mathord","\\mathbin","\\mathrel","\\mathopen","\\mathclose","\\mathpunct","\\mathinner"],props:{numArgs:1},handler:function(l,d){var h=l.parser,m=l.funcName,I=d[0];return{type:"mclass",mode:h.mode,mclass:"m"+m.substr(5),body:ar(I),isCharacterBox:P.isCharacterBox(I)}},htmlBuilder:hs,mathmlBuilder:ns});var Xt=function(l){var d=l.type==="ordgroup"&&l.body.length?l.body[0]:l;return d.type==="atom"&&(d.family==="bin"||d.family==="rel")?"m"+d.family:"mord"};gn({type:"mclass",names:["\\@binrel"],props:{numArgs:2},handler:function(l,d){var h=l.parser;return{type:"mclass",mode:h.mode,mclass:Xt(d[0]),body:[d[1]],isCharacterBox:P.isCharacterBox(d[1])}}}),gn({type:"mclass",names:["\\stackrel","\\overset","\\underset"],props:{numArgs:2},handler:function(l,d){var h=l.parser,m=l.funcName,I=d[1],H=d[0],Ee;m!=="\\stackrel"?Ee=Xt(I):Ee="mrel";var Oe={type:"op",mode:I.mode,limits:!0,alwaysHandleSupSub:!0,parentIsSupSub:!1,symbol:!1,suppressBaseShift:m!=="\\stackrel",body:ar(I)},Ke={type:"supsub",mode:H.mode,base:Oe,sup:m==="\\underset"?null:H,sub:m==="\\underset"?H:null};return{type:"mclass",mode:h.mode,mclass:Ee,body:[Ke],isCharacterBox:P.isCharacterBox(Ke)}},htmlBuilder:hs,mathmlBuilder:ns});var bs=function(l,d){var h=l.font,m=d.withFont(h);return nr(l.body,m)},ta=function(l,d){var h=l.font,m=d.withFont(h);return En(l.body,m)},ya={"\\Bbb":"\\mathbb","\\bold":"\\mathbf","\\frak":"\\mathfrak","\\bm":"\\boldsymbol"};gn({type:"font",names:["\\mathrm","\\mathit","\\mathbf","\\mathnormal","\\mathbb","\\mathcal","\\mathfrak","\\mathscr","\\mathsf","\\mathtt","\\Bbb","\\bold","\\frak"],props:{numArgs:1,greediness:2},handler:function(l,d){var h=l.parser,m=l.funcName,I=d[0],H=m;return H in ya&&(H=ya[H]),{type:"font",mode:h.mode,font:H.slice(1),body:I}},htmlBuilder:bs,mathmlBuilder:ta}),gn({type:"mclass",names:["\\boldsymbol","\\bm"],props:{numArgs:1,greediness:2},handler:function(l,d){var h=l.parser,m=d[0],I=P.isCharacterBox(m);return{type:"mclass",mode:h.mode,mclass:Xt(m),body:[{type:"font",mode:h.mode,font:"boldsymbol",body:m}],isCharacterBox:I}}}),gn({type:"font",names:["\\rm","\\sf","\\tt","\\bf","\\it"],props:{numArgs:0,allowedInText:!0},handler:function(l,d){var h=l.parser,m=l.funcName,I=l.breakOnTokenText,H=h.mode,Ee=h.parseExpression(!0,I),Oe="math"+m.slice(1);return{type:"font",mode:H,font:Oe,body:{type:"ordgroup",mode:h.mode,body:Ee}}},htmlBuilder:bs,mathmlBuilder:ta});var ba=function(l,d){var h=d;return l==="display"?h=h.id>=g.SCRIPT.id?h.text():g.DISPLAY:l==="text"&&h.size===g.DISPLAY.size?h=g.TEXT:l==="script"?h=g.SCRIPT:l==="scriptscript"&&(h=g.SCRIPTSCRIPT),h},na=function(l,d){var h=ba(l.size,d.style),m=h.fracNum(),I=h.fracDen(),H;H=d.havingStyle(m);var Ee=nr(l.numer,H,d);if(l.continued){var Oe=8.5/d.fontMetrics().ptPerEm,Ke=3.5/d.fontMetrics().ptPerEm;Ee.height=Ee.height<Oe?Oe:Ee.height,Ee.depth=Ee.depth<Ke?Ke:Ee.depth}H=d.havingStyle(I);var st=nr(l.denom,H,d),_t,Bt,qt;l.hasBarLine?(l.barSize?(Bt=tt(l.barSize,d),_t=Ge.makeLineSpan("frac-line",d,Bt)):_t=Ge.makeLineSpan("frac-line",d),Bt=_t.height,qt=_t.height):(_t=null,Bt=0,qt=d.fontMetrics().defaultRuleThickness);var fn,Sn,Kn;h.size===g.DISPLAY.size||l.size==="display"?(fn=d.fontMetrics().num1,Bt>0?Sn=3*qt:Sn=7*qt,Kn=d.fontMetrics().denom1):(Bt>0?(fn=d.fontMetrics().num2,Sn=qt):(fn=d.fontMetrics().num3,Sn=3*qt),Kn=d.fontMetrics().denom2);var fr;if(_t){var mr=d.fontMetrics().axisHeight;fn-Ee.depth-(mr+.5*Bt)<Sn&&(fn+=Sn-(fn-Ee.depth-(mr+.5*Bt))),mr-.5*Bt-(st.height-Kn)<Sn&&(Kn+=Sn-(mr-.5*Bt-(st.height-Kn)));var jr=-(mr-.5*Bt);fr=Ge.makeVList({positionType:"individualShift",children:[{type:"elem",elem:st,shift:Kn},{type:"elem",elem:_t,shift:jr},{type:"elem",elem:Ee,shift:-fn}]},d)}else{var pr=fn-Ee.depth-(st.height-Kn);pr<Sn&&(fn+=.5*(Sn-pr),Kn+=.5*(Sn-pr)),fr=Ge.makeVList({positionType:"individualShift",children:[{type:"elem",elem:st,shift:Kn},{type:"elem",elem:Ee,shift:-fn}]},d)}H=d.havingStyle(h),fr.height*=H.sizeMultiplier/d.sizeMultiplier,fr.depth*=H.sizeMultiplier/d.sizeMultiplier;var Kr;h.size===g.DISPLAY.size?Kr=d.fontMetrics().delim1:Kr=d.fontMetrics().delim2;var Jr,ti;return l.leftDelim==null?Jr=ei(d,["mopen"]):Jr=Di.customSizedDelim(l.leftDelim,Kr,!0,d.havingStyle(h),l.mode,["mopen"]),l.continued?ti=Ge.makeSpan([]):l.rightDelim==null?ti=ei(d,["mclose"]):ti=Di.customSizedDelim(l.rightDelim,Kr,!0,d.havingStyle(h),l.mode,["mclose"]),Ge.makeSpan(["mord"].concat(H.sizingClasses(d)),[Jr,Ge.makeSpan(["mfrac"],[fr]),ti],d)},ra=function(l,d){var h=new on.MathNode("mfrac",[En(l.numer,d),En(l.denom,d)]);if(!l.hasBarLine)h.setAttribute("linethickness","0px");else if(l.barSize){var m=tt(l.barSize,d);h.setAttribute("linethickness",m+"em")}var I=ba(l.size,d.style);if(I.size!==d.style.size){h=new on.MathNode("mstyle",[h]);var H=I.size===g.DISPLAY.size?"true":"false";h.setAttribute("displaystyle",H),h.setAttribute("scriptlevel","0")}if(l.leftDelim!=null||l.rightDelim!=null){var Ee=[];if(l.leftDelim!=null){var Oe=new on.MathNode("mo",[new on.TextNode(l.leftDelim.replace("\\",""))]);Oe.setAttribute("fence","true"),Ee.push(Oe)}if(Ee.push(h),l.rightDelim!=null){var Ke=new on.MathNode("mo",[new on.TextNode(l.rightDelim.replace("\\",""))]);Ke.setAttribute("fence","true"),Ee.push(Ke)}return oi(Ee)}return h};gn({type:"genfrac",names:["\\cfrac","\\dfrac","\\frac","\\tfrac","\\dbinom","\\binom","\\tbinom","\\\\atopfrac","\\\\bracefrac","\\\\brackfrac"],props:{numArgs:2,greediness:2},handler:function(l,d){var h=l.parser,m=l.funcName,I=d[0],H=d[1],Ee,Oe=null,Ke=null,st="auto";switch(m){case"\\cfrac":case"\\dfrac":case"\\frac":case"\\tfrac":Ee=!0;break;case"\\\\atopfrac":Ee=!1;break;case"\\dbinom":case"\\binom":case"\\tbinom":Ee=!1,Oe="(",Ke=")";break;case"\\\\bracefrac":Ee=!1,Oe="\\{",Ke="\\}";break;case"\\\\brackfrac":Ee=!1,Oe="[",Ke="]";break;default:throw new Error("Unrecognized genfrac command")}switch(m){case"\\cfrac":case"\\dfrac":case"\\dbinom":st="display";break;case"\\tfrac":case"\\tbinom":st="text";break}return{type:"genfrac",mode:h.mode,continued:m==="\\cfrac",numer:I,denom:H,hasBarLine:Ee,leftDelim:Oe,rightDelim:Ke,size:st,barSize:null}},htmlBuilder:na,mathmlBuilder:ra}),gn({type:"infix",names:["\\over","\\choose","\\atop","\\brace","\\brack"],props:{numArgs:0,infix:!0},handler:function(l){var d=l.parser,h=l.funcName,m=l.token,I;switch(h){case"\\over":I="\\frac";break;case"\\choose":I="\\binom";break;case"\\atop":I="\\\\atopfrac";break;case"\\brace":I="\\\\bracefrac";break;case"\\brack":I="\\\\brackfrac";break;default:throw new Error("Unrecognized infix genfrac command")}return{type:"infix",mode:d.mode,replaceWith:I,token:m}}});var Ki=["display","text","script","scriptscript"],Fs=function(l){var d=null;return l.length>0&&(d=l,d=d==="."?null:d),d};gn({type:"genfrac",names:["\\genfrac"],props:{numArgs:6,greediness:6,argTypes:["math","math","size","text","math","math"]},handler:function(l,d){var h=l.parser,m=d[4],I=d[5],H=Ln(d[0],"atom");H&&(H=Xn(d[0],"open"));var Ee=H?Fs(H.text):null,Oe=Ln(d[1],"atom");Oe&&(Oe=Xn(d[1],"close"));var Ke=Oe?Fs(Oe.text):null,st=pn(d[2],"size"),_t,Bt=null;st.isBlank?_t=!0:(Bt=st.value,_t=Bt.number>0);var qt="auto",fn=Ln(d[3],"ordgroup");if(fn){if(fn.body.length>0){var Sn=pn(fn.body[0],"textord");qt=Ki[Number(Sn.text)]}}else fn=pn(d[3],"textord"),qt=Ki[Number(fn.text)];return{type:"genfrac",mode:h.mode,numer:m,denom:I,continued:!1,hasBarLine:_t,barSize:Bt,leftDelim:Ee,rightDelim:Ke,size:qt}},htmlBuilder:na,mathmlBuilder:ra}),gn({type:"infix",names:["\\above"],props:{numArgs:1,argTypes:["size"],infix:!0},handler:function(l,d){var h=l.parser,m=l.funcName,I=l.token;return{type:"infix",mode:h.mode,replaceWith:"\\\\abovefrac",size:pn(d[0],"size").value,token:I}}}),gn({type:"genfrac",names:["\\\\abovefrac"],props:{numArgs:3,argTypes:["math","size","math"]},handler:function(l,d){var h=l.parser,m=l.funcName,I=d[0],H=q(pn(d[1],"infix").size),Ee=d[2],Oe=H.number>0;return{type:"genfrac",mode:h.mode,numer:I,denom:Ee,continued:!1,hasBarLine:Oe,barSize:H,leftDelim:null,rightDelim:null,size:"auto"}},htmlBuilder:na,mathmlBuilder:ra});var xa=function(l,d){var h=d.style,m,I,H=Ln(l,"supsub");H?(m=H.sup?nr(H.sup,d.havingStyle(h.sup()),d):nr(H.sub,d.havingStyle(h.sub()),d),I=pn(H.base,"horizBrace")):I=pn(l,"horizBrace");var Ee=nr(I.base,d.havingBaseStyle(g.DISPLAY)),Oe=Tn.svgSpan(I,d),Ke;if(I.isOver?(Ke=Ge.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:Ee},{type:"kern",size:.1},{type:"elem",elem:Oe}]},d),Ke.children[0].children[0].children[1].classes.push("svg-align")):(Ke=Ge.makeVList({positionType:"bottom",positionData:Ee.depth+.1+Oe.height,children:[{type:"elem",elem:Oe},{type:"kern",size:.1},{type:"elem",elem:Ee}]},d),Ke.children[0].children[0].children[0].classes.push("svg-align")),m){var st=Ge.makeSpan(["mord",I.isOver?"mover":"munder"],[Ke],d);I.isOver?Ke=Ge.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:st},{type:"kern",size:.2},{type:"elem",elem:m}]},d):Ke=Ge.makeVList({positionType:"bottom",positionData:st.depth+.2+m.height+m.depth,children:[{type:"elem",elem:m},{type:"kern",size:.2},{type:"elem",elem:st}]},d)}return Ge.makeSpan(["mord",I.isOver?"mover":"munder"],[Ke],d)},ja=function(l,d){var h=Tn.mathMLnode(l.label);return new on.MathNode(l.isOver?"mover":"munder",[En(l.base,d),h])};gn({type:"horizBrace",names:["\\overbrace","\\underbrace"],props:{numArgs:1},handler:function(l,d){var h=l.parser,m=l.funcName;return{type:"horizBrace",mode:h.mode,label:m,isOver:/^\\over/.test(m),base:d[0]}},htmlBuilder:xa,mathmlBuilder:ja}),gn({type:"href",names:["\\href"],props:{numArgs:2,argTypes:["url","original"],allowedInText:!0},handler:function(l,d){var h=l.parser,m=d[1],I=pn(d[0],"url").url;return h.settings.isTrusted({command:"\\href",url:I})?{type:"href",mode:h.mode,href:I,body:ar(m)}:h.formatUnsupportedCmd("\\href")},htmlBuilder:function(l,d){var h=Er(l.body,d,!1);return Ge.makeAnchor(l.href,[],h,d)},mathmlBuilder:function(l,d){var h=Cn(l.body,d);return h instanceof Tr||(h=new Tr("mrow",[h])),h.setAttribute("href",l.href),h}}),gn({type:"href",names:["\\url"],props:{numArgs:1,argTypes:["url"],allowedInText:!0},handler:function(l,d){var h=l.parser,m=pn(d[0],"url").url;if(!h.settings.isTrusted({command:"\\url",url:m}))return h.formatUnsupportedCmd("\\url");for(var I=[],H=0;H<m.length;H++){var Ee=m[H];Ee==="~"&&(Ee="\\textasciitilde"),I.push({type:"textord",mode:"text",text:Ee})}var Oe={type:"text",mode:h.mode,font:"\\texttt",body:I};return{type:"href",mode:h.mode,href:m,body:ar(Oe)}}}),gn({type:"htmlmathml",names:["\\html@mathml"],props:{numArgs:2,allowedInText:!0},handler:function(l,d){var h=l.parser;return{type:"htmlmathml",mode:h.mode,html:ar(d[0]),mathml:ar(d[1])}},htmlBuilder:function(l,d){var h=Er(l.html,d,!1);return Ge.makeFragment(h)},mathmlBuilder:function(l,d){return Cn(l.mathml,d)}});var zs=function(l){if(/^[-+]? *(\d+(\.\d*)?|\.\d+)$/.test(l))return{number:+l,unit:"bp"};var d=/([-+]?) *(\d+(?:\.\d*)?|\.\d+) *([a-z]{2})/.exec(l);if(!d)throw new le("Invalid size: '"+l+"' in \\includegraphics");var h={number:+(d[1]+d[2]),unit:d[3]};if(!qe(h))throw new le("Invalid unit: '"+h.unit+"' in \\includegraphics.");return h};gn({type:"includegraphics",names:["\\includegraphics"],props:{numArgs:1,numOptionalArgs:1,argTypes:["raw","url"],allowedInText:!1},handler:function(l,d,h){var m=l.parser,I={number:0,unit:"em"},H={number:.9,unit:"em"},Ee={number:0,unit:"em"},Oe="";if(h[0])for(var Ke=pn(h[0],"raw").string,st=Ke.split(","),_t=0;_t<st.length;_t++){var Bt=st[_t].split("=");if(Bt.length===2){var qt=Bt[1].trim();switch(Bt[0].trim()){case"alt":Oe=qt;break;case"width":I=zs(qt);break;case"height":H=zs(qt);break;case"totalheight":Ee=zs(qt);break;default:throw new le("Invalid key: '"+Bt[0]+"' in \\includegraphics.")}}}var fn=pn(d[0],"url").url;return Oe===""&&(Oe=fn,Oe=Oe.replace(/^.*[\\/]/,""),Oe=Oe.substring(0,Oe.lastIndexOf("."))),m.settings.isTrusted({command:"\\includegraphics",url:fn})?{type:"includegraphics",mode:m.mode,alt:Oe,width:I,height:H,totalheight:Ee,src:fn}:m.formatUnsupportedCmd("\\includegraphics")},htmlBuilder:function(l,d){var h=tt(l.height,d),m=0;l.totalheight.number>0&&(m=tt(l.totalheight,d)-h,m=Number(m.toFixed(2)));var I=0;l.width.number>0&&(I=tt(l.width,d));var H={height:h+m+"em"};I>0&&(H.width=I+"em"),m>0&&(H.verticalAlign=-m+"em");var Ee=new xe(l.src,l.alt,H);return Ee.height=h,Ee.depth=m,Ee},mathmlBuilder:function(l,d){var h=new on.MathNode("mglyph",[]);h.setAttribute("alt",l.alt);var m=tt(l.height,d),I=0;if(l.totalheight.number>0&&(I=tt(l.totalheight,d)-m,I=I.toFixed(2),h.setAttribute("valign","-"+I+"em")),h.setAttribute("height",m+I+"em"),l.width.number>0){var H=tt(l.width,d);h.setAttribute("width",H+"em")}return h.setAttribute("src",l.src),h}}),gn({type:"kern",names:["\\kern","\\mkern","\\hskip","\\mskip"],props:{numArgs:1,argTypes:["size"],allowedInText:!0},handler:function(l,d){var h=l.parser,m=l.funcName,I=pn(d[0],"size");if(h.settings.strict){var H=m[1]==="m",Ee=I.value.unit==="mu";H?(Ee||h.settings.reportNonstrict("mathVsTextUnits","LaTeX's "+m+" supports only mu units, "+("not "+I.value.unit+" units")),h.mode!=="math"&&h.settings.reportNonstrict("mathVsTextUnits","LaTeX's "+m+" works only in math mode")):Ee&&h.settings.reportNonstrict("mathVsTextUnits","LaTeX's "+m+" doesn't support mu units")}return{type:"kern",mode:h.mode,dimension:I.value}},htmlBuilder:function(l,d){return Ge.makeGlue(l.dimension,d)},mathmlBuilder:function(l,d){var h=tt(l.dimension,d);return new on.SpaceNode(h)}}),gn({type:"lap",names:["\\mathllap","\\mathrlap","\\mathclap"],props:{numArgs:1,allowedInText:!0},handler:function(l,d){var h=l.parser,m=l.funcName,I=d[0];return{type:"lap",mode:h.mode,alignment:m.slice(5),body:I}},htmlBuilder:function(l,d){var h;l.alignment==="clap"?(h=Ge.makeSpan([],[nr(l.body,d)]),h=Ge.makeSpan(["inner"],[h],d)):h=Ge.makeSpan(["inner"],[nr(l.body,d)]);var m=Ge.makeSpan(["fix"],[]),I=Ge.makeSpan([l.alignment],[h,m],d),H=Ge.makeSpan(["strut"]);return H.style.height=I.height+I.depth+"em",H.style.verticalAlign=-I.depth+"em",I.children.unshift(H),I=Ge.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:I}]},d),Ge.makeSpan(["mord"],[I],d)},mathmlBuilder:function(l,d){var h=new on.MathNode("mpadded",[En(l.body,d)]);if(l.alignment!=="rlap"){var m=l.alignment==="llap"?"-1":"-0.5";h.setAttribute("lspace",m+"width")}return h.setAttribute("width","0px"),h}}),gn({type:"styling",names:["\\(","$"],props:{numArgs:0,allowedInText:!0,allowedInMath:!1},handler:function(l,d){var h=l.funcName,m=l.parser,I=m.mode;m.switchMode("math");var H=h==="\\("?"\\)":"$",Ee=m.parseExpression(!1,H);return m.expect(H),m.switchMode(I),{type:"styling",mode:m.mode,style:"text",body:Ee}}}),gn({type:"text",names:["\\)","\\]"],props:{numArgs:0,allowedInText:!0,allowedInMath:!1},handler:function(l,d){throw new le("Mismatched "+l.funcName)}});var ia=function(l,d){switch(d.style.size){case g.DISPLAY.size:return l.display;case g.TEXT.size:return l.text;case g.SCRIPT.size:return l.script;case g.SCRIPTSCRIPT.size:return l.scriptscript;default:return l.text}};gn({type:"mathchoice",names:["\\mathchoice"],props:{numArgs:4},handler:function(l,d){var h=l.parser;return{type:"mathchoice",mode:h.mode,display:ar(d[0]),text:ar(d[1]),script:ar(d[2]),scriptscript:ar(d[3])}},htmlBuilder:function(l,d){var h=ia(l,d),m=Er(h,d,!1);return Ge.makeFragment(m)},mathmlBuilder:function(l,d){var h=ia(l,d);return Cn(h,d)}});var $s=function(l,d,h,m,I,H,Ee){l=Ge.makeSpan([],[l]);var Oe,Ke;if(d){var st=nr(d,m.havingStyle(I.sup()),m);Ke={elem:st,kern:Math.max(m.fontMetrics().bigOpSpacing1,m.fontMetrics().bigOpSpacing3-st.depth)}}if(h){var _t=nr(h,m.havingStyle(I.sub()),m);Oe={elem:_t,kern:Math.max(m.fontMetrics().bigOpSpacing2,m.fontMetrics().bigOpSpacing4-_t.height)}}var Bt;if(Ke&&Oe){var qt=m.fontMetrics().bigOpSpacing5+Oe.elem.height+Oe.elem.depth+Oe.kern+l.depth+Ee;Bt=Ge.makeVList({positionType:"bottom",positionData:qt,children:[{type:"kern",size:m.fontMetrics().bigOpSpacing5},{type:"elem",elem:Oe.elem,marginLeft:-H+"em"},{type:"kern",size:Oe.kern},{type:"elem",elem:l},{type:"kern",size:Ke.kern},{type:"elem",elem:Ke.elem,marginLeft:H+"em"},{type:"kern",size:m.fontMetrics().bigOpSpacing5}]},m)}else if(Oe){var fn=l.height-Ee;Bt=Ge.makeVList({positionType:"top",positionData:fn,children:[{type:"kern",size:m.fontMetrics().bigOpSpacing5},{type:"elem",elem:Oe.elem,marginLeft:-H+"em"},{type:"kern",size:Oe.kern},{type:"elem",elem:l}]},m)}else if(Ke){var Sn=l.depth+Ee;Bt=Ge.makeVList({positionType:"bottom",positionData:Sn,children:[{type:"elem",elem:l},{type:"kern",size:Ke.kern},{type:"elem",elem:Ke.elem,marginLeft:H+"em"},{type:"kern",size:m.fontMetrics().bigOpSpacing5}]},m)}else return l;return Ge.makeSpan(["mop","op-limits"],[Bt],m)},Ea=["\\smallint"],Xi=function(l,d){var h,m,I=!1,H,Ee=Ln(l,"supsub");Ee?(h=Ee.sup,m=Ee.sub,H=pn(Ee.base,"op"),I=!0):H=pn(l,"op");var Oe=d.style,Ke=!1;Oe.size===g.DISPLAY.size&&H.symbol&&!P.contains(Ea,H.name)&&(Ke=!0);var st;if(H.symbol){var _t=Ke?"Size2-Regular":"Size1-Regular",Bt="";if((H.name==="\\oiint"||H.name==="\\oiiint")&&(Bt=H.name.substr(1),H.name=Bt==="oiint"?"\\iint":"\\iiint"),st=Ge.makeSymbol(H.name,_t,"math",d,["mop","op-symbol",Ke?"large-op":"small-op"]),Bt.length>0){var qt=st.italic,fn=Ge.staticSvg(Bt+"Size"+(Ke?"2":"1"),d);st=Ge.makeVList({positionType:"individualShift",children:[{type:"elem",elem:st,shift:0},{type:"elem",elem:fn,shift:Ke?.08:0}]},d),H.name="\\"+Bt,st.classes.unshift("mop"),st.italic=qt}}else if(H.body){var Sn=Er(H.body,d,!0);Sn.length===1&&Sn[0]instanceof C?(st=Sn[0],st.classes[0]="mop"):st=Ge.makeSpan(["mop"],Ge.tryCombineChars(Sn),d)}else{for(var Kn=[],fr=1;fr<H.name.length;fr++)Kn.push(Ge.mathsym(H.name[fr],H.mode,d));st=Ge.makeSpan(["mop"],Kn,d)}var pr=0,mr=0;return(st instanceof C||H.name==="\\oiint"||H.name==="\\oiiint")&&!H.suppressBaseShift&&(pr=(st.height-st.depth)/2-d.fontMetrics().axisHeight,mr=st.italic),I?$s(st,h,m,d,Oe,mr,pr):(pr&&(st.style.position="relative",st.style.top=pr+"em"),st)},Is=function(l,d){var h;if(l.symbol)h=new Tr("mo",[Qr(l.name,l.mode)]),P.contains(Ea,l.name)&&h.setAttribute("largeop","false");else if(l.body)h=new Tr("mo",$n(l.body,d));else{h=new Tr("mi",[new fi(l.name.slice(1))]);var m=new Tr("mo",[Qr("\u2061","text")]);l.parentIsSupSub?h=new Tr("mo",[h,m]):h=hi([h,m])}return h},Ka={"\u220F":"\\prod","\u2210":"\\coprod","\u2211":"\\sum","\u22C0":"\\bigwedge","\u22C1":"\\bigvee","\u22C2":"\\bigcap","\u22C3":"\\bigcup","\u2A00":"\\bigodot","\u2A01":"\\bigoplus","\u2A02":"\\bigotimes","\u2A04":"\\biguplus","\u2A06":"\\bigsqcup"};gn({type:"op",names:["\\coprod","\\bigvee","\\bigwedge","\\biguplus","\\bigcap","\\bigcup","\\intop","\\prod","\\sum","\\bigotimes","\\bigoplus","\\bigodot","\\bigsqcup","\\smallint","\u220F","\u2210","\u2211","\u22C0","\u22C1","\u22C2","\u22C3","\u2A00","\u2A01","\u2A02","\u2A04","\u2A06"],props:{numArgs:0},handler:function(l,d){var h=l.parser,m=l.funcName,I=m;return I.length===1&&(I=Ka[I]),{type:"op",mode:h.mode,limits:!0,parentIsSupSub:!1,symbol:!0,name:I}},htmlBuilder:Xi,mathmlBuilder:Is}),gn({type:"op",names:["\\mathop"],props:{numArgs:1},handler:function(l,d){var h=l.parser,m=d[0];return{type:"op",mode:h.mode,limits:!1,parentIsSupSub:!1,symbol:!1,body:ar(m)}},htmlBuilder:Xi,mathmlBuilder:Is});var wa={"\u222B":"\\int","\u222C":"\\iint","\u222D":"\\iiint","\u222E":"\\oint","\u222F":"\\oiint","\u2230":"\\oiiint"};gn({type:"op",names:["\\arcsin","\\arccos","\\arctan","\\arctg","\\arcctg","\\arg","\\ch","\\cos","\\cosec","\\cosh","\\cot","\\cotg","\\coth","\\csc","\\ctg","\\cth","\\deg","\\dim","\\exp","\\hom","\\ker","\\lg","\\ln","\\log","\\sec","\\sin","\\sinh","\\sh","\\tan","\\tanh","\\tg","\\th"],props:{numArgs:0},handler:function(l){var d=l.parser,h=l.funcName;return{type:"op",mode:d.mode,limits:!1,parentIsSupSub:!1,symbol:!1,name:h}},htmlBuilder:Xi,mathmlBuilder:Is}),gn({type:"op",names:["\\det","\\gcd","\\inf","\\lim","\\max","\\min","\\Pr","\\sup"],props:{numArgs:0},handler:function(l){var d=l.parser,h=l.funcName;return{type:"op",mode:d.mode,limits:!0,parentIsSupSub:!1,symbol:!1,name:h}},htmlBuilder:Xi,mathmlBuilder:Is}),gn({type:"op",names:["\\int","\\iint","\\iiint","\\oint","\\oiint","\\oiiint","\u222B","\u222C","\u222D","\u222E","\u222F","\u2230"],props:{numArgs:0},handler:function(l){var d=l.parser,h=l.funcName,m=h;return m.length===1&&(m=wa[m]),{type:"op",mode:d.mode,limits:!1,parentIsSupSub:!1,symbol:!0,name:m}},htmlBuilder:Xi,mathmlBuilder:Is});var sa=function(l,d){var h,m,I=!1,H,Ee=Ln(l,"supsub");Ee?(h=Ee.sup,m=Ee.sub,H=pn(Ee.base,"operatorname"),I=!0):H=pn(l,"operatorname");var Oe;if(H.body.length>0){for(var Ke=H.body.map(function(qt){var fn=qt.text;return typeof fn=="string"?{type:"textord",mode:qt.mode,text:fn}:qt}),st=Er(Ke,d.withFont("mathrm"),!0),_t=0;_t<st.length;_t++){var Bt=st[_t];Bt instanceof C&&(Bt.text=Bt.text.replace(/\u2212/,"-").replace(/\u2217/,"*"))}Oe=Ge.makeSpan(["mop"],st,d)}else Oe=Ge.makeSpan(["mop"],[],d);return I?$s(Oe,h,m,d,d.style,0,0):Oe},Wa=function(l,d){for(var h=$n(l.body,d.withFont("mathrm")),m=!0,I=0;I<h.length;I++){var H=h[I];if(!(H instanceof on.SpaceNode))if(H instanceof on.MathNode)switch(H.type){case"mi":case"mn":case"ms":case"mspace":case"mtext":break;case"mo":{var Ee=H.children[0];H.children.length===1&&Ee instanceof on.TextNode?Ee.text=Ee.text.replace(/\u2212/,"-").replace(/\u2217/,"*"):m=!1;break}default:m=!1}else m=!1}if(m){var Oe=h.map(function(_t){return _t.toText()}).join("");h=[new on.TextNode(Oe)]}var Ke=new on.MathNode("mi",h);Ke.setAttribute("mathvariant","normal");var st=new on.MathNode("mo",[Qr("\u2061","text")]);return l.parentIsSupSub?new on.MathNode("mo",[Ke,st]):on.newDocumentFragment([Ke,st])};gn({type:"operatorname",names:["\\operatorname","\\operatorname*"],props:{numArgs:1},handler:function(l,d){var h=l.parser,m=l.funcName,I=d[0];return{type:"operatorname",mode:h.mode,body:ar(I),alwaysHandleSupSub:m==="\\operatorname*",limits:!1,parentIsSupSub:!1}},htmlBuilder:sa,mathmlBuilder:Wa}),cr({type:"ordgroup",htmlBuilder:function(l,d){return l.semisimple?Ge.makeFragment(Er(l.body,d,!1)):Ge.makeSpan(["mord"],Er(l.body,d,!0),d)},mathmlBuilder:function(l,d){return Cn(l.body,d,!0)}}),gn({type:"overline",names:["\\overline"],props:{numArgs:1},handler:function(l,d){var h=l.parser,m=d[0];return{type:"overline",mode:h.mode,body:m}},htmlBuilder:function(l,d){var h=nr(l.body,d.havingCrampedStyle()),m=Ge.makeLineSpan("overline-line",d),I=d.fontMetrics().defaultRuleThickness,H=Ge.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:h},{type:"kern",size:3*I},{type:"elem",elem:m},{type:"kern",size:I}]},d);return Ge.makeSpan(["mord","overline"],[H],d)},mathmlBuilder:function(l,d){var h=new on.MathNode("mo",[new on.TextNode("\u203E")]);h.setAttribute("stretchy","true");var m=new on.MathNode("mover",[En(l.body,d),h]);return m.setAttribute("accent","true"),m}}),gn({type:"phantom",names:["\\phantom"],props:{numArgs:1,allowedInText:!0},handler:function(l,d){var h=l.parser,m=d[0];return{type:"phantom",mode:h.mode,body:ar(m)}},htmlBuilder:function(l,d){var h=Er(l.body,d.withPhantom(),!1);return Ge.makeFragment(h)},mathmlBuilder:function(l,d){var h=$n(l.body,d);return new on.MathNode("mphantom",h)}}),gn({type:"hphantom",names:["\\hphantom"],props:{numArgs:1,allowedInText:!0},handler:function(l,d){var h=l.parser,m=d[0];return{type:"hphantom",mode:h.mode,body:m}},htmlBuilder:function(l,d){var h=Ge.makeSpan([],[nr(l.body,d.withPhantom())]);if(h.height=0,h.depth=0,h.children)for(var m=0;m<h.children.length;m++)h.children[m].height=0,h.children[m].depth=0;return h=Ge.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:h}]},d),Ge.makeSpan(["mord"],[h],d)},mathmlBuilder:function(l,d){var h=$n(ar(l.body),d),m=new on.MathNode("mphantom",h),I=new on.MathNode("mpadded",[m]);return I.setAttribute("height","0px"),I.setAttribute("depth","0px"),I}}),gn({type:"vphantom",names:["\\vphantom"],props:{numArgs:1,allowedInText:!0},handler:function(l,d){var h=l.parser,m=d[0];return{type:"vphantom",mode:h.mode,body:m}},htmlBuilder:function(l,d){var h=Ge.makeSpan(["inner"],[nr(l.body,d.withPhantom())]),m=Ge.makeSpan(["fix"],[]);return Ge.makeSpan(["mord","rlap"],[h,m],d)},mathmlBuilder:function(l,d){var h=$n(ar(l.body),d),m=new on.MathNode("mphantom",h),I=new on.MathNode("mpadded",[m]);return I.setAttribute("width","0px"),I}}),gn({type:"raisebox",names:["\\raisebox"],props:{numArgs:2,argTypes:["size","hbox"],allowedInText:!0},handler:function(l,d){var h=l.parser,m=pn(d[0],"size").value,I=d[1];return{type:"raisebox",mode:h.mode,dy:m,body:I}},htmlBuilder:function(l,d){var h=nr(l.body,d),m=tt(l.dy,d);return Ge.makeVList({positionType:"shift",positionData:-m,children:[{type:"elem",elem:h}]},d)},mathmlBuilder:function(l,d){var h=new on.MathNode("mpadded",[En(l.body,d)]),m=l.dy.number+l.dy.unit;return h.setAttribute("voffset",m),h}}),gn({type:"rule",names:["\\rule"],props:{numArgs:2,numOptionalArgs:1,argTypes:["size","size","size"]},handler:function(l,d,h){var m=l.parser,I=h[0],H=pn(d[0],"size"),Ee=pn(d[1],"size");return{type:"rule",mode:m.mode,shift:I&&pn(I,"size").value,width:H.value,height:Ee.value}},htmlBuilder:function(l,d){var h=Ge.makeSpan(["mord","rule"],[],d),m=tt(l.width,d),I=tt(l.height,d),H=l.shift?tt(l.shift,d):0;return h.style.borderRightWidth=m+"em",h.style.borderTopWidth=I+"em",h.style.bottom=H+"em",h.width=m,h.height=I+H,h.depth=-H,h.maxFontSize=I*1.125*d.sizeMultiplier,h},mathmlBuilder:function(l,d){var h=tt(l.width,d),m=tt(l.height,d),I=l.shift?tt(l.shift,d):0,H=d.color&&d.getColor()||"black",Ee=new on.MathNode("mspace");Ee.setAttribute("mathbackground",H),Ee.setAttribute("width",h+"em"),Ee.setAttribute("height",m+"em");var Oe=new on.MathNode("mpadded",[Ee]);return I>=0?Oe.setAttribute("height","+"+I+"em"):(Oe.setAttribute("height",I+"em"),Oe.setAttribute("depth","+"+-I+"em")),Oe.setAttribute("voffset",I+"em"),Oe}});function aa(j,l,d){for(var h=Er(j,l,!1),m=l.sizeMultiplier/d.sizeMultiplier,I=0;I<h.length;I++){var H=h[I].classes.indexOf("sizing");H<0?Array.prototype.push.apply(h[I].classes,l.sizingClasses(d)):h[I].classes[H+1]==="reset-size"+l.size&&(h[I].classes[H+1]="reset-size"+d.size),h[I].height*=m,h[I].depth*=m}return Ge.makeFragment(h)}var Ls=["\\tiny","\\sixptsize","\\scriptsize","\\footnotesize","\\small","\\normalsize","\\large","\\Large","\\LARGE","\\huge","\\Huge"],Ga=function(l,d){var h=d.havingSize(l.size);return aa(l.body,h,d)};gn({type:"sizing",names:Ls,props:{numArgs:0,allowedInText:!0},handler:function(l,d){var h=l.breakOnTokenText,m=l.funcName,I=l.parser,H=I.parseExpression(!1,h);return{type:"sizing",mode:I.mode,size:Ls.indexOf(m)+1,body:H}},htmlBuilder:Ga,mathmlBuilder:function(l,d){var h=d.havingSize(l.size),m=$n(l.body,h),I=new on.MathNode("mstyle",m);return I.setAttribute("mathsize",h.sizeMultiplier+"em"),I}}),gn({type:"smash",names:["\\smash"],props:{numArgs:1,numOptionalArgs:1,allowedInText:!0},handler:function(l,d,h){var m=l.parser,I=!1,H=!1,Ee=h[0]&&pn(h[0],"ordgroup");if(Ee)for(var Oe="",Ke=0;Ke<Ee.body.length;++Ke){var st=Ee.body[Ke];if(Oe=st.text,Oe==="t")I=!0;else if(Oe==="b")H=!0;else{I=!1,H=!1;break}}else I=!0,H=!0;var _t=d[0];return{type:"smash",mode:m.mode,body:_t,smashHeight:I,smashDepth:H}},htmlBuilder:function(l,d){var h=Ge.makeSpan([],[nr(l.body,d)]);if(!l.smashHeight&&!l.smashDepth)return h;if(l.smashHeight&&(h.height=0,h.children))for(var m=0;m<h.children.length;m++)h.children[m].height=0;if(l.smashDepth&&(h.depth=0,h.children))for(var I=0;I<h.children.length;I++)h.children[I].depth=0;var H=Ge.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:h}]},d);return Ge.makeSpan(["mord"],[H],d)},mathmlBuilder:function(l,d){var h=new on.MathNode("mpadded",[En(l.body,d)]);return l.smashHeight&&h.setAttribute("height","0px"),l.smashDepth&&h.setAttribute("depth","0px"),h}}),gn({type:"sqrt",names:["\\sqrt"],props:{numArgs:1,numOptionalArgs:1},handler:function(l,d,h){var m=l.parser,I=h[0],H=d[0];return{type:"sqrt",mode:m.mode,body:H,index:I}},htmlBuilder:function(l,d){var h=nr(l.body,d.havingCrampedStyle());h.height===0&&(h.height=d.fontMetrics().xHeight),h=Ge.wrapFragment(h,d);var m=d.fontMetrics(),I=m.defaultRuleThickness,H=I;d.style.id<g.TEXT.id&&(H=d.fontMetrics().xHeight);var Ee=I+H/4,Oe=h.height+h.depth+Ee+I,Ke=Di.sqrtImage(Oe,d),st=Ke.span,_t=Ke.ruleWidth,Bt=Ke.advanceWidth,qt=st.height-_t;qt>h.height+h.depth+Ee&&(Ee=(Ee+qt-h.height-h.depth)/2);var fn=st.height-h.height-Ee-_t;h.style.paddingLeft=Bt+"em";var Sn=Ge.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:h,wrapperClasses:["svg-align"]},{type:"kern",size:-(h.height+fn)},{type:"elem",elem:st},{type:"kern",size:_t}]},d);if(l.index){var Kn=d.havingStyle(g.SCRIPTSCRIPT),fr=nr(l.index,Kn,d),pr=.6*(Sn.height-Sn.depth),mr=Ge.makeVList({positionType:"shift",positionData:-pr,children:[{type:"elem",elem:fr}]},d),jr=Ge.makeSpan(["root"],[mr]);return Ge.makeSpan(["mord","sqrt"],[jr,Sn],d)}else return Ge.makeSpan(["mord","sqrt"],[Sn],d)},mathmlBuilder:function(l,d){var h=l.body,m=l.index;return m?new on.MathNode("mroot",[En(h,d),En(m,d)]):new on.MathNode("msqrt",[En(h,d)])}});var Sa={display:g.DISPLAY,text:g.TEXT,script:g.SCRIPT,scriptscript:g.SCRIPTSCRIPT};gn({type:"styling",names:["\\displaystyle","\\textstyle","\\scriptstyle","\\scriptscriptstyle"],props:{numArgs:0,allowedInText:!0},handler:function(l,d){var h=l.breakOnTokenText,m=l.funcName,I=l.parser,H=I.parseExpression(!0,h),Ee=m.slice(1,m.length-5);return{type:"styling",mode:I.mode,style:Ee,body:H}},htmlBuilder:function(l,d){var h=Sa[l.style],m=d.havingStyle(h).withFont("");return aa(l.body,m,d)},mathmlBuilder:function(l,d){var h=Sa[l.style],m=d.havingStyle(h),I=$n(l.body,m),H=new on.MathNode("mstyle",I),Ee={display:["0","true"],text:["0","false"],script:["1","false"],scriptscript:["2","false"]},Oe=Ee[l.style];return H.setAttribute("scriptlevel",Oe[0]),H.setAttribute("displaystyle",Oe[1]),H}});var Za=function(l,d){var h=l.base;if(h)if(h.type==="op"){var m=h.limits&&(d.style.size===g.DISPLAY.size||h.alwaysHandleSupSub);return m?Xi:null}else if(h.type==="operatorname"){var I=h.alwaysHandleSupSub&&(d.style.size===g.DISPLAY.size||h.limits);return I?sa:null}else{if(h.type==="accent")return P.isCharacterBox(h.base)?hr:null;if(h.type==="horizBrace"){var H=!l.sub;return H===h.isOver?xa:null}else return null}else return null};cr({type:"supsub",htmlBuilder:function(l,d){var h=Za(l,d);if(h)return h(l,d);var m=l.base,I=l.sup,H=l.sub,Ee=nr(m,d),Oe,Ke,st=d.fontMetrics(),_t=0,Bt=0,qt=m&&P.isCharacterBox(m);if(I){var fn=d.havingStyle(d.style.sup());Oe=nr(I,fn,d),qt||(_t=Ee.height-fn.fontMetrics().supDrop*fn.sizeMultiplier/d.sizeMultiplier)}if(H){var Sn=d.havingStyle(d.style.sub());Ke=nr(H,Sn,d),qt||(Bt=Ee.depth+Sn.fontMetrics().subDrop*Sn.sizeMultiplier/d.sizeMultiplier)}var Kn;d.style===g.DISPLAY?Kn=st.sup1:d.style.cramped?Kn=st.sup3:Kn=st.sup2;var fr=d.sizeMultiplier,pr=.5/st.ptPerEm/fr+"em",mr=null;if(Ke){var jr=l.base&&l.base.type==="op"&&l.base.name&&(l.base.name==="\\oiint"||l.base.name==="\\oiiint");(Ee instanceof C||jr)&&(mr=-Ee.italic+"em")}var Kr;if(Oe&&Ke){_t=Math.max(_t,Kn,Oe.depth+.25*st.xHeight),Bt=Math.max(Bt,st.sub2);var Jr=st.defaultRuleThickness,ti=4*Jr;if(_t-Oe.depth-(Ke.height-Bt)<ti){Bt=ti-(_t-Oe.depth)+Ke.height;var ai=.8*st.xHeight-(_t-Oe.depth);ai>0&&(_t+=ai,Bt-=ai)}var Ri=[{type:"elem",elem:Ke,shift:Bt,marginRight:pr,marginLeft:mr},{type:"elem",elem:Oe,shift:-_t,marginRight:pr}];Kr=Ge.makeVList({positionType:"individualShift",children:Ri},d)}else if(Ke){Bt=Math.max(Bt,st.sub1,Ke.height-.8*st.xHeight);var Si=[{type:"elem",elem:Ke,marginLeft:mr,marginRight:pr}];Kr=Ge.makeVList({positionType:"shift",positionData:Bt,children:Si},d)}else if(Oe)_t=Math.max(_t,Kn,Oe.depth+.25*st.xHeight),Kr=Ge.makeVList({positionType:"shift",positionData:-_t,children:[{type:"elem",elem:Oe,marginRight:pr}]},d);else throw new Error("supsub must have either sup or sub.");var $r=kr(Ee,"right")||"mord";return Ge.makeSpan([$r],[Ee,Ge.makeSpan(["msupsub"],[Kr])],d)},mathmlBuilder:function(l,d){var h=!1,m,I,H=Ln(l.base,"horizBrace");H&&(I=!!l.sup,I===H.isOver&&(h=!0,m=H.isOver)),l.base&&(l.base.type==="op"||l.base.type==="operatorname")&&(l.base.parentIsSupSub=!0);var Ee=[En(l.base,d)];l.sub&&Ee.push(En(l.sub,d)),l.sup&&Ee.push(En(l.sup,d));var Oe;if(h)Oe=m?"mover":"munder";else if(l.sub)if(l.sup){var _t=l.base;_t&&_t.type==="op"&&_t.limits&&d.style===g.DISPLAY||_t&&_t.type==="operatorname"&&_t.alwaysHandleSupSub&&(d.style===g.DISPLAY||_t.limits)?Oe="munderover":Oe="msubsup"}else{var st=l.base;st&&st.type==="op"&&st.limits&&(d.style===g.DISPLAY||st.alwaysHandleSupSub)||st&&st.type==="operatorname"&&st.alwaysHandleSupSub&&(st.limits||d.style===g.DISPLAY)?Oe="munder":Oe="msub"}else{var Ke=l.base;Ke&&Ke.type==="op"&&Ke.limits&&(d.style===g.DISPLAY||Ke.alwaysHandleSupSub)||Ke&&Ke.type==="operatorname"&&Ke.alwaysHandleSupSub&&(Ke.limits||d.style===g.DISPLAY)?Oe="mover":Oe="msup"}var Bt=new on.MathNode(Oe,Ee);return Bt}}),cr({type:"atom",htmlBuilder:function(l,d){return Ge.mathsym(l.text,l.mode,d,["m"+l.family])},mathmlBuilder:function(l,d){var h=new on.MathNode("mo",[Qr(l.text,l.mode)]);if(l.family==="bin"){var m=Rn(l,d);m==="bold-italic"&&h.setAttribute("mathvariant",m)}else l.family==="punct"?h.setAttribute("separator","true"):(l.family==="open"||l.family==="close")&&h.setAttribute("stretchy","false");return h}});var Aa={mi:"italic",mn:"normal",mtext:"normal"};cr({type:"mathord",htmlBuilder:function(l,d){return Ge.makeOrd(l,d,"mathord")},mathmlBuilder:function(l,d){var h=new on.MathNode("mi",[Qr(l.text,l.mode,d)]),m=Rn(l,d)||"italic";return m!==Aa[h.type]&&h.setAttribute("mathvariant",m),h}}),cr({type:"textord",htmlBuilder:function(l,d){return Ge.makeOrd(l,d,"textord")},mathmlBuilder:function(l,d){var h=Qr(l.text,l.mode,d),m=Rn(l,d)||"normal",I;return l.mode==="text"?I=new on.MathNode("mtext",[h]):/[0-9]/.test(l.text)?I=new on.MathNode("mn",[h]):l.text==="\\prime"?I=new on.MathNode("mo",[h]):I=new on.MathNode("mi",[h]),m!==Aa[I.type]&&I.setAttribute("mathvariant",m),I}});var Us={"\\nobreak":"nobreak","\\allowbreak":"allowbreak"},Hs={" ":{},"\\ ":{},"~":{className:"nobreak"},"\\space":{},"\\nobreakspace":{className:"nobreak"}};cr({type:"spacing",htmlBuilder:function(l,d){if(Hs.hasOwnProperty(l.text)){var h=Hs[l.text].className||"";if(l.mode==="text"){var m=Ge.makeOrd(l,d,"textord");return m.classes.push(h),m}else return Ge.makeSpan(["mspace",h],[Ge.mathsym(l.text,l.mode,d)],d)}else{if(Us.hasOwnProperty(l.text))return Ge.makeSpan(["mspace",Us[l.text]],[],d);throw new le('Unknown type of space "'+l.text+'"')}},mathmlBuilder:function(l,d){var h;if(Hs.hasOwnProperty(l.text))h=new on.MathNode("mtext",[new on.TextNode("\xA0")]);else{if(Us.hasOwnProperty(l.text))return new on.MathNode("mspace");throw new le('Unknown type of space "'+l.text+'"')}return h}});var js=function(){var l=new on.MathNode("mtd",[]);return l.setAttribute("width","50%"),l};cr({type:"tag",mathmlBuilder:function(l,d){var h=new on.MathNode("mtable",[new on.MathNode("mtr",[js(),new on.MathNode("mtd",[Cn(l.body,d)]),js(),new on.MathNode("mtd",[Cn(l.tag,d)])])]);return h.setAttribute("width","100%"),h}});var oa={"\\text":void 0,"\\textrm":"textrm","\\textsf":"textsf","\\texttt":"texttt","\\textnormal":"textrm"},Ca={"\\textbf":"textbf","\\textmd":"textmd"},Ta={"\\textit":"textit","\\textup":"textup"},Da=function(l,d){var h=l.font;return h?oa[h]?d.withTextFontFamily(oa[h]):Ca[h]?d.withTextFontWeight(Ca[h]):d.withTextFontShape(Ta[h]):d};gn({type:"text",names:["\\text","\\textrm","\\textsf","\\texttt","\\textnormal","\\textbf","\\textmd","\\textit","\\textup"],props:{numArgs:1,argTypes:["text"],greediness:2,allowedInText:!0},handler:function(l,d){var h=l.parser,m=l.funcName,I=d[0];return{type:"text",mode:h.mode,body:ar(I),font:m}},htmlBuilder:function(l,d){var h=Da(l,d),m=Er(l.body,h,!0);return Ge.makeSpan(["mord","text"],Ge.tryCombineChars(m),h)},mathmlBuilder:function(l,d){var h=Da(l,d);return Cn(l.body,h)}}),gn({type:"underline",names:["\\underline"],props:{numArgs:1,allowedInText:!0},handler:function(l,d){var h=l.parser;return{type:"underline",mode:h.mode,body:d[0]}},htmlBuilder:function(l,d){var h=nr(l.body,d),m=Ge.makeLineSpan("underline-line",d),I=d.fontMetrics().defaultRuleThickness,H=Ge.makeVList({positionType:"top",positionData:h.height,children:[{type:"kern",size:I},{type:"elem",elem:m},{type:"kern",size:3*I},{type:"elem",elem:h}]},d);return Ge.makeSpan(["mord","underline"],[H],d)},mathmlBuilder:function(l,d){var h=new on.MathNode("mo",[new on.TextNode("\u203E")]);h.setAttribute("stretchy","true");var m=new on.MathNode("munder",[En(l.body,d),h]);return m.setAttribute("accentunder","true"),m}}),gn({type:"verb",names:["\\verb"],props:{numArgs:0,allowedInText:!0},handler:function(l,d,h){throw new le("\\verb ended by end of line instead of matching delimiter")},htmlBuilder:function(l,d){for(var h=Ra(l),m=[],I=d.havingStyle(d.style.text()),H=0;H<h.length;H++){var Ee=h[H];Ee==="~"&&(Ee="\\textasciitilde"),m.push(Ge.makeSymbol(Ee,"Typewriter-Regular",l.mode,I,["mord","texttt"]))}return Ge.makeSpan(["mord","text"].concat(I.sizingClasses(d)),Ge.tryCombineChars(m),I)},mathmlBuilder:function(l,d){var h=new on.TextNode(Ra(l)),m=new on.MathNode("mtext",[h]);return m.setAttribute("mathvariant","monospace"),m}});var Ra=function(l){return l.body.replace(/ /g,l.star?"\u2423":"\xA0")},Va=Zn,xs=Va,la=`[ \r
]`,ua="\\\\[a-zA-Z@]+",Ya="\\\\[^\uD800-\uDFFF]",Ia=""+ua+la+"*",Xa=new RegExp("^("+ua+")"+la+"*$"),ca="[\u0300-\u036F]",vi=new RegExp(ca+"+$"),rs="("+la+"+)|([!-\\[\\]-\u2027\u202A-\uD7FF\uF900-\uFFFF]"+(ca+"*")+"|[\uD800-\uDBFF][\uDC00-\uDFFF]"+(ca+"*")+"|\\\\verb\\*([^]).*?\\3|\\\\verb([^*a-zA-Z]).*?\\4|\\\\operatorname\\*"+("|"+Ia)+("|"+Ya+")"),Ks=function(){function j(d,h){this.input=void 0,this.settings=void 0,this.tokenRegex=void 0,this.catcodes=void 0,this.input=d,this.settings=h,this.tokenRegex=new RegExp(rs,"g"),this.catcodes={"%":14}}var l=j.prototype;return l.setCatcode=function(h,m){this.catcodes[h]=m},l.lex=function(){var h=this.input,m=this.tokenRegex.lastIndex;if(m===h.length)return new Re("EOF",new ie(this,m,m));var I=this.tokenRegex.exec(h);if(I===null||I.index!==m)throw new le("Unexpected character: '"+h[m]+"'",new Re(h[m],new ie(this,m,m+1)));var H=I[2]||" ";if(this.catcodes[H]===14){var Ee=h.indexOf(`
`,this.tokenRegex.lastIndex);return Ee===-1?(this.tokenRegex.lastIndex=h.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=Ee+1,this.lex()}var Oe=H.match(Xa);return Oe&&(H=Oe[1]),new Re(H,new ie(this,m,this.tokenRegex.lastIndex))},j}(),Qa=function(){function j(d,h){d===void 0&&(d={}),h===void 0&&(h={}),this.current=void 0,this.builtins=void 0,this.undefStack=void 0,this.current=h,this.builtins=d,this.undefStack=[]}var l=j.prototype;return l.beginGroup=function(){this.undefStack.push({})},l.endGroup=function(){if(this.undefStack.length===0)throw new le("Unbalanced namespace destruction: attempt to pop global namespace; please report this as a bug");var h=this.undefStack.pop();for(var m in h)h.hasOwnProperty(m)&&(h[m]===void 0?delete this.current[m]:this.current[m]=h[m])},l.has=function(h){return this.current.hasOwnProperty(h)||this.builtins.hasOwnProperty(h)},l.get=function(h){return this.current.hasOwnProperty(h)?this.current[h]:this.builtins[h]},l.set=function(h,m,I){if(I===void 0&&(I=!1),I){for(var H=0;H<this.undefStack.length;H++)delete this.undefStack[H][h];this.undefStack.length>0&&(this.undefStack[this.undefStack.length-1][h]=m)}else{var Ee=this.undefStack[this.undefStack.length-1];Ee&&!Ee.hasOwnProperty(h)&&(Ee[h]=this.current[h])}this.current[h]=m},j}(),La={},Ws=La;function Fe(j,l){La[j]=l}Fe("\\@firstoftwo",function(j){var l=j.consumeArgs(2);return{tokens:l[0],numArgs:0}}),Fe("\\@secondoftwo",function(j){var l=j.consumeArgs(2);return{tokens:l[1],numArgs:0}}),Fe("\\@ifnextchar",function(j){var l=j.consumeArgs(3),d=j.future();return l[0].length===1&&l[0][0].text===d.text?{tokens:l[1],numArgs:0}:{tokens:l[2],numArgs:0}}),Fe("\\@ifstar","\\@ifnextchar *{\\@firstoftwo{#1}}"),Fe("\\TextOrMath",function(j){var l=j.consumeArgs(2);return j.mode==="text"?{tokens:l[0],numArgs:0}:{tokens:l[1],numArgs:0}});var fs={0:0,1:1,2:2,3:3,4:4,5:5,6:6,7:7,8:8,9:9,a:10,A:10,b:11,B:11,c:12,C:12,d:13,D:13,e:14,E:14,f:15,F:15};Fe("\\char",function(j){var l=j.popToken(),d,h="";if(l.text==="'")d=8,l=j.popToken();else if(l.text==='"')d=16,l=j.popToken();else if(l.text==="`")if(l=j.popToken(),l.text[0]==="\\")h=l.text.charCodeAt(1);else{if(l.text==="EOF")throw new le("\\char` missing argument");h=l.text.charCodeAt(0)}else d=10;if(d){if(h=fs[l.text],h==null||h>=d)throw new le("Invalid base-"+d+" digit "+l.text);for(var m;(m=fs[j.future().text])!=null&&m<d;)h*=d,h+=m,j.popToken()}return"\\@char{"+h+"}"});var da=function(l,d){var h=l.consumeArgs(1)[0];if(h.length!==1)throw new le("\\gdef's first argument must be a macro name");var m=h[0].text,I=0;for(h=l.consumeArgs(1)[0];h.length===1&&h[0].text==="#";){if(h=l.consumeArgs(1)[0],h.length!==1)throw new le('Invalid argument number length "'+h.length+'"');if(!/^[1-9]$/.test(h[0].text))throw new le('Invalid argument number "'+h[0].text+'"');if(I++,parseInt(h[0].text)!==I)throw new le('Argument number "'+h[0].text+'" out of order');h=l.consumeArgs(1)[0]}return l.macros.set(m,{tokens:h,numArgs:I},d),""};Fe("\\gdef",function(j){return da(j,!0)}),Fe("\\def",function(j){return da(j,!1)}),Fe("\\global",function(j){var l=j.consumeArgs(1)[0];if(l.length!==1)throw new le("Invalid command after \\global");var d=l[0].text;if(d==="\\def")return da(j,!0);throw new le("Invalid command '"+d+"' after \\global")});var Gs=function(l,d,h){var m=l.consumeArgs(1)[0];if(m.length!==1)throw new le("\\newcommand's first argument must be a macro name");var I=m[0].text,H=l.isDefined(I);if(H&&!d)throw new le("\\newcommand{"+I+"} attempting to redefine "+(I+"; use \\renewcommand"));if(!H&&!h)throw new le("\\renewcommand{"+I+"} when command "+I+" does not yet exist; use \\newcommand");var Ee=0;if(m=l.consumeArgs(1)[0],m.length===1&&m[0].text==="["){for(var Oe="",Ke=l.expandNextToken();Ke.text!=="]"&&Ke.text!=="EOF";)Oe+=Ke.text,Ke=l.expandNextToken();if(!Oe.match(/^\s*[0-9]+\s*$/))throw new le("Invalid number of arguments: "+Oe);Ee=parseInt(Oe),m=l.consumeArgs(1)[0]}return l.macros.set(I,{tokens:m,numArgs:Ee}),""};Fe("\\newcommand",function(j){return Gs(j,!1,!0)}),Fe("\\renewcommand",function(j){return Gs(j,!0,!1)}),Fe("\\providecommand",function(j){return Gs(j,!0,!0)}),Fe("\\bgroup","{"),Fe("\\egroup","}"),Fe("\\lq","`"),Fe("\\rq","'"),Fe("\\aa","\\r a"),Fe("\\AA","\\r A"),Fe("\\textcopyright","\\html@mathml{\\textcircled{c}}{\\char`\xA9}"),Fe("\\copyright","\\TextOrMath{\\textcopyright}{\\text{\\textcopyright}}"),Fe("\\textregistered","\\html@mathml{\\textcircled{\\scriptsize R}}{\\char`\xAE}"),Fe("\u212C","\\mathscr{B}"),Fe("\u2130","\\mathscr{E}"),Fe("\u2131","\\mathscr{F}"),Fe("\u210B","\\mathscr{H}"),Fe("\u2110","\\mathscr{I}"),Fe("\u2112","\\mathscr{L}"),Fe("\u2133","\\mathscr{M}"),Fe("\u211B","\\mathscr{R}"),Fe("\u212D","\\mathfrak{C}"),Fe("\u210C","\\mathfrak{H}"),Fe("\u2128","\\mathfrak{Z}"),Fe("\\Bbbk","\\Bbb{k}"),Fe("\xB7","\\cdotp"),Fe("\\llap","\\mathllap{\\textrm{#1}}"),Fe("\\rlap","\\mathrlap{\\textrm{#1}}"),Fe("\\clap","\\mathclap{\\textrm{#1}}"),Fe("\\not",'\\html@mathml{\\mathrel{\\mathrlap\\@not}}{\\char"338}'),Fe("\\neq","\\html@mathml{\\mathrel{\\not=}}{\\mathrel{\\char`\u2260}}"),Fe("\\ne","\\neq"),Fe("\u2260","\\neq"),Fe("\\notin","\\html@mathml{\\mathrel{{\\in}\\mathllap{/\\mskip1mu}}}{\\mathrel{\\char`\u2209}}"),Fe("\u2209","\\notin"),Fe("\u2258","\\html@mathml{\\mathrel{=\\kern{-1em}\\raisebox{0.4em}{$\\scriptsize\\frown$}}}{\\mathrel{\\char`\u2258}}"),Fe("\u2259","\\html@mathml{\\stackrel{\\tiny\\wedge}{=}}{\\mathrel{\\char`\u2258}}"),Fe("\u225A","\\html@mathml{\\stackrel{\\tiny\\vee}{=}}{\\mathrel{\\char`\u225A}}"),Fe("\u225B","\\html@mathml{\\stackrel{\\scriptsize\\star}{=}}{\\mathrel{\\char`\u225B}}"),Fe("\u225D","\\html@mathml{\\stackrel{\\tiny\\mathrm{def}}{=}}{\\mathrel{\\char`\u225D}}"),Fe("\u225E","\\html@mathml{\\stackrel{\\tiny\\mathrm{m}}{=}}{\\mathrel{\\char`\u225E}}"),Fe("\u225F","\\html@mathml{\\stackrel{\\tiny?}{=}}{\\mathrel{\\char`\u225F}}"),Fe("\u27C2","\\perp"),Fe("\u203C","\\mathclose{!\\mkern-0.8mu!}"),Fe("\u220C","\\notni"),Fe("\u231C","\\ulcorner"),Fe("\u231D","\\urcorner"),Fe("\u231E","\\llcorner"),Fe("\u231F","\\lrcorner"),Fe("\xA9","\\copyright"),Fe("\xAE","\\textregistered"),Fe("\uFE0F","\\textregistered"),Fe("\\vdots","\\mathord{\\varvdots\\rule{0pt}{15pt}}"),Fe("\u22EE","\\vdots"),Fe("\\varGamma","\\mathit{\\Gamma}"),Fe("\\varDelta","\\mathit{\\Delta}"),Fe("\\varTheta","\\mathit{\\Theta}"),Fe("\\varLambda","\\mathit{\\Lambda}"),Fe("\\varXi","\\mathit{\\Xi}"),Fe("\\varPi","\\mathit{\\Pi}"),Fe("\\varSigma","\\mathit{\\Sigma}"),Fe("\\varUpsilon","\\mathit{\\Upsilon}"),Fe("\\varPhi","\\mathit{\\Phi}"),Fe("\\varPsi","\\mathit{\\Psi}"),Fe("\\varOmega","\\mathit{\\Omega}"),Fe("\\substack","\\begin{subarray}{c}#1\\end{subarray}"),Fe("\\colon","\\nobreak\\mskip2mu\\mathpunct{}\\mathchoice{\\mkern-3mu}{\\mkern-3mu}{}{}{:}\\mskip6mu"),Fe("\\boxed","\\fbox{$\\displaystyle{#1}$}"),Fe("\\iff","\\DOTSB\\;\\Longleftrightarrow\\;"),Fe("\\implies","\\DOTSB\\;\\Longrightarrow\\;"),Fe("\\impliedby","\\DOTSB\\;\\Longleftarrow\\;");var Qi={",":"\\dotsc","\\not":"\\dotsb","+":"\\dotsb","=":"\\dotsb","<":"\\dotsb",">":"\\dotsb","-":"\\dotsb","*":"\\dotsb",":":"\\dotsb","\\DOTSB":"\\dotsb","\\coprod":"\\dotsb","\\bigvee":"\\dotsb","\\bigwedge":"\\dotsb","\\biguplus":"\\dotsb","\\bigcap":"\\dotsb","\\bigcup":"\\dotsb","\\prod":"\\dotsb","\\sum":"\\dotsb","\\bigotimes":"\\dotsb","\\bigoplus":"\\dotsb","\\bigodot":"\\dotsb","\\bigsqcup":"\\dotsb","\\And":"\\dotsb","\\longrightarrow":"\\dotsb","\\Longrightarrow":"\\dotsb","\\longleftarrow":"\\dotsb","\\Longleftarrow":"\\dotsb","\\longleftrightarrow":"\\dotsb","\\Longleftrightarrow":"\\dotsb","\\mapsto":"\\dotsb","\\longmapsto":"\\dotsb","\\hookrightarrow":"\\dotsb","\\doteq":"\\dotsb","\\mathbin":"\\dotsb","\\mathrel":"\\dotsb","\\relbar":"\\dotsb","\\Relbar":"\\dotsb","\\xrightarrow":"\\dotsb","\\xleftarrow":"\\dotsb","\\DOTSI":"\\dotsi","\\int":"\\dotsi","\\oint":"\\dotsi","\\iint":"\\dotsi","\\iiint":"\\dotsi","\\iiiint":"\\dotsi","\\idotsint":"\\dotsi","\\DOTSX":"\\dotsx"};Fe("\\dots",function(j){var l="\\dotso",d=j.expandAfterFuture().text;return d in Qi?l=Qi[d]:(d.substr(0,4)==="\\not"||d in Ct.math&&P.contains(["bin","rel"],Ct.math[d].group))&&(l="\\dotsb"),l});var Dt={")":!0,"]":!0,"\\rbrack":!0,"\\}":!0,"\\rbrace":!0,"\\rangle":!0,"\\rceil":!0,"\\rfloor":!0,"\\rgroup":!0,"\\rmoustache":!0,"\\right":!0,"\\bigr":!0,"\\biggr":!0,"\\Bigr":!0,"\\Biggr":!0,$:!0,";":!0,".":!0,",":!0};Fe("\\dotso",function(j){var l=j.future().text;return l in Dt?"\\ldots\\,":"\\ldots"}),Fe("\\dotsc",function(j){var l=j.future().text;return l in Dt&&l!==","?"\\ldots\\,":"\\ldots"}),Fe("\\cdots",function(j){var l=j.future().text;return l in Dt?"\\@cdots\\,":"\\@cdots"}),Fe("\\dotsb","\\cdots"),Fe("\\dotsm","\\cdots"),Fe("\\dotsi","\\!\\cdots"),Fe("\\dotsx","\\ldots\\,"),Fe("\\DOTSI","\\relax"),Fe("\\DOTSB","\\relax"),Fe("\\DOTSX","\\relax"),Fe("\\tmspace","\\TextOrMath{\\kern#1#3}{\\mskip#1#2}\\relax"),Fe("\\,","\\tmspace+{3mu}{.1667em}"),Fe("\\thinspace","\\,"),Fe("\\>","\\mskip{4mu}"),Fe("\\:","\\tmspace+{4mu}{.2222em}"),Fe("\\medspace","\\:"),Fe("\\;","\\tmspace+{5mu}{.2777em}"),Fe("\\thickspace","\\;"),Fe("\\!","\\tmspace-{3mu}{.1667em}"),Fe("\\negthinspace","\\!"),Fe("\\negmedspace","\\tmspace-{4mu}{.2222em}"),Fe("\\negthickspace","\\tmspace-{5mu}{.277em}"),Fe("\\enspace","\\kern.5em "),Fe("\\enskip","\\hskip.5em\\relax"),Fe("\\quad","\\hskip1em\\relax"),Fe("\\qquad","\\hskip2em\\relax"),Fe("\\tag","\\@ifstar\\tag@literal\\tag@paren"),Fe("\\tag@paren","\\tag@literal{({#1})}"),Fe("\\tag@literal",function(j){if(j.macros.get("\\df@tag"))throw new le("Multiple \\tag");return"\\gdef\\df@tag{\\text{#1}}"}),Fe("\\bmod","\\mathchoice{\\mskip1mu}{\\mskip1mu}{\\mskip5mu}{\\mskip5mu}\\mathbin{\\rm mod}\\mathchoice{\\mskip1mu}{\\mskip1mu}{\\mskip5mu}{\\mskip5mu}"),Fe("\\pod","\\allowbreak\\mathchoice{\\mkern18mu}{\\mkern8mu}{\\mkern8mu}{\\mkern8mu}(#1)"),Fe("\\pmod","\\pod{{\\rm mod}\\mkern6mu#1}"),Fe("\\mod","\\allowbreak\\mathchoice{\\mkern18mu}{\\mkern12mu}{\\mkern12mu}{\\mkern12mu}{\\rm mod}\\,\\,#1"),Fe("\\pmb","\\html@mathml{\\@binrel{#1}{\\mathrlap{#1}\\kern0.5px#1}}{\\mathbf{#1}}"),Fe("\\\\","\\newline"),Fe("\\TeX","\\textrm{\\html@mathml{T\\kern-.1667em\\raisebox{-.5ex}{E}\\kern-.125emX}{TeX}}");var ha=$e["Main-Regular"][84][1]-.7*$e["Main-Regular"][65][1]+"em";Fe("\\LaTeX","\\textrm{\\html@mathml{"+("L\\kern-.36em\\raisebox{"+ha+"}{\\scriptstyle A}")+"\\kern-.15em\\TeX}{LaTeX}}"),Fe("\\KaTeX","\\textrm{\\html@mathml{"+("K\\kern-.17em\\raisebox{"+ha+"}{\\scriptstyle A}")+"\\kern-.15em\\TeX}{KaTeX}}"),Fe("\\hspace","\\@ifstar\\@hspacer\\@hspace"),Fe("\\@hspace","\\hskip #1\\relax"),Fe("\\@hspacer","\\rule{0pt}{0pt}\\hskip #1\\relax"),Fe("\\ordinarycolon",":"),Fe("\\vcentcolon","\\mathrel{\\mathop\\ordinarycolon}"),Fe("\\dblcolon",'\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-.9mu}\\vcentcolon}}{\\mathop{\\char"2237}}'),Fe("\\coloneqq",'\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-1.2mu}=}}{\\mathop{\\char"2254}}'),Fe("\\Coloneqq",'\\html@mathml{\\mathrel{\\dblcolon\\mathrel{\\mkern-1.2mu}=}}{\\mathop{\\char"2237\\char"3d}}'),Fe("\\coloneq",'\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-1.2mu}\\mathrel{-}}}{\\mathop{\\char"3a\\char"2212}}'),Fe("\\Coloneq",'\\html@mathml{\\mathrel{\\dblcolon\\mathrel{\\mkern-1.2mu}\\mathrel{-}}}{\\mathop{\\char"2237\\char"2212}}'),Fe("\\eqqcolon",'\\html@mathml{\\mathrel{=\\mathrel{\\mkern-1.2mu}\\vcentcolon}}{\\mathop{\\char"2255}}'),Fe("\\Eqqcolon",'\\html@mathml{\\mathrel{=\\mathrel{\\mkern-1.2mu}\\dblcolon}}{\\mathop{\\char"3d\\char"2237}}'),Fe("\\eqcolon",'\\html@mathml{\\mathrel{\\mathrel{-}\\mathrel{\\mkern-1.2mu}\\vcentcolon}}{\\mathop{\\char"2239}}'),Fe("\\Eqcolon",'\\html@mathml{\\mathrel{\\mathrel{-}\\mathrel{\\mkern-1.2mu}\\dblcolon}}{\\mathop{\\char"2212\\char"2237}}'),Fe("\\colonapprox",'\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-1.2mu}\\approx}}{\\mathop{\\char"3a\\char"2248}}'),Fe("\\Colonapprox",'\\html@mathml{\\mathrel{\\dblcolon\\mathrel{\\mkern-1.2mu}\\approx}}{\\mathop{\\char"2237\\char"2248}}'),Fe("\\colonsim",'\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-1.2mu}\\sim}}{\\mathop{\\char"3a\\char"223c}}'),Fe("\\Colonsim",'\\html@mathml{\\mathrel{\\dblcolon\\mathrel{\\mkern-1.2mu}\\sim}}{\\mathop{\\char"2237\\char"223c}}'),Fe("\u2237","\\dblcolon"),Fe("\u2239","\\eqcolon"),Fe("\u2254","\\coloneqq"),Fe("\u2255","\\eqqcolon"),Fe("\u2A74","\\Coloneqq"),Fe("\\ratio","\\vcentcolon"),Fe("\\coloncolon","\\dblcolon"),Fe("\\colonequals","\\coloneqq"),Fe("\\coloncolonequals","\\Coloneqq"),Fe("\\equalscolon","\\eqqcolon"),Fe("\\equalscoloncolon","\\Eqqcolon"),Fe("\\colonminus","\\coloneq"),Fe("\\coloncolonminus","\\Coloneq"),Fe("\\minuscolon","\\eqcolon"),Fe("\\minuscoloncolon","\\Eqcolon"),Fe("\\coloncolonapprox","\\Colonapprox"),Fe("\\coloncolonsim","\\Colonsim"),Fe("\\simcolon","\\mathrel{\\sim\\mathrel{\\mkern-1.2mu}\\vcentcolon}"),Fe("\\simcoloncolon","\\mathrel{\\sim\\mathrel{\\mkern-1.2mu}\\dblcolon}"),Fe("\\approxcolon","\\mathrel{\\approx\\mathrel{\\mkern-1.2mu}\\vcentcolon}"),Fe("\\approxcoloncolon","\\mathrel{\\approx\\mathrel{\\mkern-1.2mu}\\dblcolon}"),Fe("\\notni","\\html@mathml{\\not\\ni}{\\mathrel{\\char`\u220C}}"),Fe("\\limsup","\\DOTSB\\operatorname*{lim\\,sup}"),Fe("\\liminf","\\DOTSB\\operatorname*{lim\\,inf}"),Fe("\\gvertneqq","\\html@mathml{\\@gvertneqq}{\u2269}"),Fe("\\lvertneqq","\\html@mathml{\\@lvertneqq}{\u2268}"),Fe("\\ngeqq","\\html@mathml{\\@ngeqq}{\u2271}"),Fe("\\ngeqslant","\\html@mathml{\\@ngeqslant}{\u2271}"),Fe("\\nleqq","\\html@mathml{\\@nleqq}{\u2270}"),Fe("\\nleqslant","\\html@mathml{\\@nleqslant}{\u2270}"),Fe("\\nshortmid","\\html@mathml{\\@nshortmid}{\u2224}"),Fe("\\nshortparallel","\\html@mathml{\\@nshortparallel}{\u2226}"),Fe("\\nsubseteqq","\\html@mathml{\\@nsubseteqq}{\u2288}"),Fe("\\nsupseteqq","\\html@mathml{\\@nsupseteqq}{\u2289}"),Fe("\\varsubsetneq","\\html@mathml{\\@varsubsetneq}{\u228A}"),Fe("\\varsubsetneqq","\\html@mathml{\\@varsubsetneqq}{\u2ACB}"),Fe("\\varsupsetneq","\\html@mathml{\\@varsupsetneq}{\u228B}"),Fe("\\varsupsetneqq","\\html@mathml{\\@varsupsetneqq}{\u2ACC}"),Fe("\\llbracket","\\html@mathml{\\mathopen{[\\mkern-3.2mu[}}{\\mathopen{\\char`\u27E6}}"),Fe("\\rrbracket","\\html@mathml{\\mathclose{]\\mkern-3.2mu]}}{\\mathclose{\\char`\u27E7}}"),Fe("\u27E6","\\llbracket"),Fe("\u27E7","\\rrbracket"),Fe("\\lBrace","\\html@mathml{\\mathopen{\\{\\mkern-3.2mu[}}{\\mathopen{\\char`\u2983}}"),Fe("\\rBrace","\\html@mathml{\\mathclose{]\\mkern-3.2mu\\}}}{\\mathclose{\\char`\u2984}}"),Fe("\u2983","\\lBrace"),Fe("\u2984","\\rBrace"),Fe("\\darr","\\downarrow"),Fe("\\dArr","\\Downarrow"),Fe("\\Darr","\\Downarrow"),Fe("\\lang","\\langle"),Fe("\\rang","\\rangle"),Fe("\\uarr","\\uparrow"),Fe("\\uArr","\\Uparrow"),Fe("\\Uarr","\\Uparrow"),Fe("\\N","\\mathbb{N}"),Fe("\\R","\\mathbb{R}"),Fe("\\Z","\\mathbb{Z}"),Fe("\\alef","\\aleph"),Fe("\\alefsym","\\aleph"),Fe("\\Alpha","\\mathrm{A}"),Fe("\\Beta","\\mathrm{B}"),Fe("\\bull","\\bullet"),Fe("\\Chi","\\mathrm{X}"),Fe("\\clubs","\\clubsuit"),Fe("\\cnums","\\mathbb{C}"),Fe("\\Complex","\\mathbb{C}"),Fe("\\Dagger","\\ddagger"),Fe("\\diamonds","\\diamondsuit"),Fe("\\empty","\\emptyset"),Fe("\\Epsilon","\\mathrm{E}"),Fe("\\Eta","\\mathrm{H}"),Fe("\\exist","\\exists"),Fe("\\harr","\\leftrightarrow"),Fe("\\hArr","\\Leftrightarrow"),Fe("\\Harr","\\Leftrightarrow"),Fe("\\hearts","\\heartsuit"),Fe("\\image","\\Im"),Fe("\\infin","\\infty"),Fe("\\Iota","\\mathrm{I}"),Fe("\\isin","\\in"),Fe("\\Kappa","\\mathrm{K}"),Fe("\\larr","\\leftarrow"),Fe("\\lArr","\\Leftarrow"),Fe("\\Larr","\\Leftarrow"),Fe("\\lrarr","\\leftrightarrow"),Fe("\\lrArr","\\Leftrightarrow"),Fe("\\Lrarr","\\Leftrightarrow"),Fe("\\Mu","\\mathrm{M}"),Fe("\\natnums","\\mathbb{N}"),Fe("\\Nu","\\mathrm{N}"),Fe("\\Omicron","\\mathrm{O}"),Fe("\\plusmn","\\pm"),Fe("\\rarr","\\rightarrow"),Fe("\\rArr","\\Rightarrow"),Fe("\\Rarr","\\Rightarrow"),Fe("\\real","\\Re"),Fe("\\reals","\\mathbb{R}"),Fe("\\Reals","\\mathbb{R}"),Fe("\\Rho","\\mathrm{P}"),Fe("\\sdot","\\cdot"),Fe("\\sect","\\S"),Fe("\\spades","\\spadesuit"),Fe("\\sub","\\subset"),Fe("\\sube","\\subseteq"),Fe("\\supe","\\supseteq"),Fe("\\Tau","\\mathrm{T}"),Fe("\\thetasym","\\vartheta"),Fe("\\weierp","\\wp"),Fe("\\Zeta","\\mathrm{Z}"),Fe("\\argmin","\\DOTSB\\operatorname*{arg\\,min}"),Fe("\\argmax","\\DOTSB\\operatorname*{arg\\,max}"),Fe("\\plim","\\DOTSB\\mathop{\\operatorname{plim}}\\limits"),Fe("\\blue","\\textcolor{##6495ed}{#1}"),Fe("\\orange","\\textcolor{##ffa500}{#1}"),Fe("\\pink","\\textcolor{##ff00af}{#1}"),Fe("\\red","\\textcolor{##df0030}{#1}"),Fe("\\green","\\textcolor{##28ae7b}{#1}"),Fe("\\gray","\\textcolor{gray}{#1}"),Fe("\\purple","\\textcolor{##9d38bd}{#1}"),Fe("\\blueA","\\textcolor{##ccfaff}{#1}"),Fe("\\blueB","\\textcolor{##80f6ff}{#1}"),Fe("\\blueC","\\textcolor{##63d9ea}{#1}"),Fe("\\blueD","\\textcolor{##11accd}{#1}"),Fe("\\blueE","\\textcolor{##0c7f99}{#1}"),Fe("\\tealA","\\textcolor{##94fff5}{#1}"),Fe("\\tealB","\\textcolor{##26edd5}{#1}"),Fe("\\tealC","\\textcolor{##01d1c1}{#1}"),Fe("\\tealD","\\textcolor{##01a995}{#1}"),Fe("\\tealE","\\textcolor{##208170}{#1}"),Fe("\\greenA","\\textcolor{##b6ffb0}{#1}"),Fe("\\greenB","\\textcolor{##8af281}{#1}"),Fe("\\greenC","\\textcolor{##74cf70}{#1}"),Fe("\\greenD","\\textcolor{##1fab54}{#1}"),Fe("\\greenE","\\textcolor{##0d923f}{#1}"),Fe("\\goldA","\\textcolor{##ffd0a9}{#1}"),Fe("\\goldB","\\textcolor{##ffbb71}{#1}"),Fe("\\goldC","\\textcolor{##ff9c39}{#1}"),Fe("\\goldD","\\textcolor{##e07d10}{#1}"),Fe("\\goldE","\\textcolor{##a75a05}{#1}"),Fe("\\redA","\\textcolor{##fca9a9}{#1}"),Fe("\\redB","\\textcolor{##ff8482}{#1}"),Fe("\\redC","\\textcolor{##f9685d}{#1}"),Fe("\\redD","\\textcolor{##e84d39}{#1}"),Fe("\\redE","\\textcolor{##bc2612}{#1}"),Fe("\\maroonA","\\textcolor{##ffbde0}{#1}"),Fe("\\maroonB","\\textcolor{##ff92c6}{#1}"),Fe("\\maroonC","\\textcolor{##ed5fa6}{#1}"),Fe("\\maroonD","\\textcolor{##ca337c}{#1}"),Fe("\\maroonE","\\textcolor{##9e034e}{#1}"),Fe("\\purpleA","\\textcolor{##ddd7ff}{#1}"),Fe("\\purpleB","\\textcolor{##c6b9fc}{#1}"),Fe("\\purpleC","\\textcolor{##aa87ff}{#1}"),Fe("\\purpleD","\\textcolor{##7854ab}{#1}"),Fe("\\purpleE","\\textcolor{##543b78}{#1}"),Fe("\\mintA","\\textcolor{##f5f9e8}{#1}"),Fe("\\mintB","\\textcolor{##edf2df}{#1}"),Fe("\\mintC","\\textcolor{##e0e5cc}{#1}"),Fe("\\grayA","\\textcolor{##f6f7f7}{#1}"),Fe("\\grayB","\\textcolor{##f0f1f2}{#1}"),Fe("\\grayC","\\textcolor{##e3e5e6}{#1}"),Fe("\\grayD","\\textcolor{##d6d8da}{#1}"),Fe("\\grayE","\\textcolor{##babec2}{#1}"),Fe("\\grayF","\\textcolor{##888d93}{#1}"),Fe("\\grayG","\\textcolor{##626569}{#1}"),Fe("\\grayH","\\textcolor{##3b3e40}{#1}"),Fe("\\grayI","\\textcolor{##21242c}{#1}"),Fe("\\kaBlue","\\textcolor{##314453}{#1}"),Fe("\\kaGreen","\\textcolor{##71B307}{#1}");var Zs={"\\relax":!0,"^":!0,_:!0,"\\limits":!0,"\\nolimits":!0},Ja=function(){function j(d,h,m){this.settings=void 0,this.expansionCount=void 0,this.lexer=void 0,this.macros=void 0,this.stack=void 0,this.mode=void 0,this.settings=h,this.expansionCount=0,this.feed(d),this.macros=new Qa(Ws,h.macros),this.mode=m,this.stack=[]}var l=j.prototype;return l.feed=function(h){this.lexer=new Ks(h,this.settings)},l.switchMode=function(h){this.mode=h},l.beginGroup=function(){this.macros.beginGroup()},l.endGroup=function(){this.macros.endGroup()},l.future=function(){return this.stack.length===0&&this.pushToken(this.lexer.lex()),this.stack[this.stack.length-1]},l.popToken=function(){return this.future(),this.stack.pop()},l.pushToken=function(h){this.stack.push(h)},l.pushTokens=function(h){var m;(m=this.stack).push.apply(m,h)},l.consumeSpaces=function(){for(;;){var h=this.future();if(h.text===" ")this.stack.pop();else break}},l.consumeArgs=function(h){for(var m=[],I=0;I<h;++I){this.consumeSpaces();var H=this.popToken();if(H.text==="{"){for(var Ee=[],Oe=1;Oe!==0;){var Ke=this.popToken();if(Ee.push(Ke),Ke.text==="{")++Oe;else if(Ke.text==="}")--Oe;else if(Ke.text==="EOF")throw new le("End of input in macro argument",H)}Ee.pop(),Ee.reverse(),m[I]=Ee}else{if(H.text==="EOF")throw new le("End of input expecting macro argument");m[I]=[H]}}return m},l.expandOnce=function(){var h=this.popToken(),m=h.text,I=this._getExpansion(m);if(I==null)return this.pushToken(h),h;if(this.expansionCount++,this.expansionCount>this.settings.maxExpand)throw new le("Too many expansions: infinite loop or need to increase maxExpand setting");var H=I.tokens;if(I.numArgs){var Ee=this.consumeArgs(I.numArgs);H=H.slice();for(var Oe=H.length-1;Oe>=0;--Oe){var Ke=H[Oe];if(Ke.text==="#"){if(Oe===0)throw new le("Incomplete placeholder at end of macro body",Ke);if(Ke=H[--Oe],Ke.text==="#")H.splice(Oe+1,1);else if(/^[1-9]$/.test(Ke.text)){var st;(st=H).splice.apply(st,[Oe,2].concat(Ee[+Ke.text-1]))}else throw new le("Not a valid argument number",Ke)}}}return this.pushTokens(H),H},l.expandAfterFuture=function(){return this.expandOnce(),this.future()},l.expandNextToken=function(){for(;;){var h=this.expandOnce();if(h instanceof Re)if(h.text==="\\relax")this.stack.pop();else return this.stack.pop()}throw new Error},l.expandMacro=function(h){if(this.macros.get(h)){var m=[],I=this.stack.length;for(this.pushToken(new Re(h));this.stack.length>I;){var H=this.expandOnce();H instanceof Re&&m.push(this.stack.pop())}return m}},l.expandMacroAsText=function(h){var m=this.expandMacro(h);return m&&m.map(function(I){return I.text}).join("")},l._getExpansion=function(h){var m=this.macros.get(h);if(m==null)return m;var I=typeof m=="function"?m(this):m;if(typeof I=="string"){var H=0;if(I.indexOf("#")!==-1)for(var Ee=I.replace(/##/g,"");Ee.indexOf("#"+(H+1))!==-1;)++H;for(var Oe=new Ks(I,this.settings),Ke=[],st=Oe.lex();st.text!=="EOF";)Ke.push(st),st=Oe.lex();Ke.reverse();var _t={tokens:Ke,numArgs:H};return _t}return I},l.isDefined=function(h){return this.macros.has(h)||xs.hasOwnProperty(h)||Ct.math.hasOwnProperty(h)||Ct.text.hasOwnProperty(h)||Zs.hasOwnProperty(h)},j}(),Es={"\u0301":{text:"\\'",math:"\\acute"},"\u0300":{text:"\\`",math:"\\grave"},"\u0308":{text:'\\"',math:"\\ddot"},"\u0303":{text:"\\~",math:"\\tilde"},"\u0304":{text:"\\=",math:"\\bar"},"\u0306":{text:"\\u",math:"\\breve"},"\u030C":{text:"\\v",math:"\\check"},"\u0302":{text:"\\^",math:"\\hat"},"\u0307":{text:"\\.",math:"\\dot"},"\u030A":{text:"\\r",math:"\\mathring"},"\u030B":{text:"\\H"}},Oa={\u00E1:"a\u0301",\u00E0:"a\u0300",\u00E4:"a\u0308",\u01DF:"a\u0308\u0304",\u00E3:"a\u0303",\u0101:"a\u0304",\u0103:"a\u0306",\u1EAF:"a\u0306\u0301",\u1EB1:"a\u0306\u0300",\u1EB5:"a\u0306\u0303",\u01CE:"a\u030C",\u00E2:"a\u0302",\u1EA5:"a\u0302\u0301",\u1EA7:"a\u0302\u0300",\u1EAB:"a\u0302\u0303",\u0227:"a\u0307",\u01E1:"a\u0307\u0304",\u00E5:"a\u030A",\u01FB:"a\u030A\u0301",\u1E03:"b\u0307",\u0107:"c\u0301",\u010D:"c\u030C",\u0109:"c\u0302",\u010B:"c\u0307",\u010F:"d\u030C",\u1E0B:"d\u0307",\u00E9:"e\u0301",\u00E8:"e\u0300",\u00EB:"e\u0308",\u1EBD:"e\u0303",\u0113:"e\u0304",\u1E17:"e\u0304\u0301",\u1E15:"e\u0304\u0300",\u0115:"e\u0306",\u011B:"e\u030C",\u00EA:"e\u0302",\u1EBF:"e\u0302\u0301",\u1EC1:"e\u0302\u0300",\u1EC5:"e\u0302\u0303",\u0117:"e\u0307",\u1E1F:"f\u0307",\u01F5:"g\u0301",\u1E21:"g\u0304",\u011F:"g\u0306",\u01E7:"g\u030C",\u011D:"g\u0302",\u0121:"g\u0307",\u1E27:"h\u0308",\u021F:"h\u030C",\u0125:"h\u0302",\u1E23:"h\u0307",\u00ED:"i\u0301",\u00EC:"i\u0300",\u00EF:"i\u0308",\u1E2F:"i\u0308\u0301",\u0129:"i\u0303",\u012B:"i\u0304",\u012D:"i\u0306",\u01D0:"i\u030C",\u00EE:"i\u0302",\u01F0:"j\u030C",\u0135:"j\u0302",\u1E31:"k\u0301",\u01E9:"k\u030C",\u013A:"l\u0301",\u013E:"l\u030C",\u1E3F:"m\u0301",\u1E41:"m\u0307",\u0144:"n\u0301",\u01F9:"n\u0300",\u00F1:"n\u0303",\u0148:"n\u030C",\u1E45:"n\u0307",\u00F3:"o\u0301",\u00F2:"o\u0300",\u00F6:"o\u0308",\u022B:"o\u0308\u0304",\u00F5:"o\u0303",\u1E4D:"o\u0303\u0301",\u1E4F:"o\u0303\u0308",\u022D:"o\u0303\u0304",\u014D:"o\u0304",\u1E53:"o\u0304\u0301",\u1E51:"o\u0304\u0300",\u014F:"o\u0306",\u01D2:"o\u030C",\u00F4:"o\u0302",\u1ED1:"o\u0302\u0301",\u1ED3:"o\u0302\u0300",\u1ED7:"o\u0302\u0303",\u022F:"o\u0307",\u0231:"o\u0307\u0304",\u0151:"o\u030B",\u1E55:"p\u0301",\u1E57:"p\u0307",\u0155:"r\u0301",\u0159:"r\u030C",\u1E59:"r\u0307",\u015B:"s\u0301",\u1E65:"s\u0301\u0307",\u0161:"s\u030C",\u1E67:"s\u030C\u0307",\u015D:"s\u0302",\u1E61:"s\u0307",\u1E97:"t\u0308",\u0165:"t\u030C",\u1E6B:"t\u0307",\u00FA:"u\u0301",\u00F9:"u\u0300",\u00FC:"u\u0308",\u01D8:"u\u0308\u0301",\u01DC:"u\u0308\u0300",\u01D6:"u\u0308\u0304",\u01DA:"u\u0308\u030C",\u0169:"u\u0303",\u1E79:"u\u0303\u0301",\u016B:"u\u0304",\u1E7B:"u\u0304\u0308",\u016D:"u\u0306",\u01D4:"u\u030C",\u00FB:"u\u0302",\u016F:"u\u030A",\u0171:"u\u030B",\u1E7D:"v\u0303",\u1E83:"w\u0301",\u1E81:"w\u0300",\u1E85:"w\u0308",\u0175:"w\u0302",\u1E87:"w\u0307",\u1E98:"w\u030A",\u1E8D:"x\u0308",\u1E8B:"x\u0307",\u00FD:"y\u0301",\u1EF3:"y\u0300",\u00FF:"y\u0308",\u1EF9:"y\u0303",\u0233:"y\u0304",\u0177:"y\u0302",\u1E8F:"y\u0307",\u1E99:"y\u030A",\u017A:"z\u0301",\u017E:"z\u030C",\u1E91:"z\u0302",\u017C:"z\u0307",\u00C1:"A\u0301",\u00C0:"A\u0300",\u00C4:"A\u0308",\u01DE:"A\u0308\u0304",\u00C3:"A\u0303",\u0100:"A\u0304",\u0102:"A\u0306",\u1EAE:"A\u0306\u0301",\u1EB0:"A\u0306\u0300",\u1EB4:"A\u0306\u0303",\u01CD:"A\u030C",\u00C2:"A\u0302",\u1EA4:"A\u0302\u0301",\u1EA6:"A\u0302\u0300",\u1EAA:"A\u0302\u0303",\u0226:"A\u0307",\u01E0:"A\u0307\u0304",\u00C5:"A\u030A",\u01FA:"A\u030A\u0301",\u1E02:"B\u0307",\u0106:"C\u0301",\u010C:"C\u030C",\u0108:"C\u0302",\u010A:"C\u0307",\u010E:"D\u030C",\u1E0A:"D\u0307",\u00C9:"E\u0301",\u00C8:"E\u0300",\u00CB:"E\u0308",\u1EBC:"E\u0303",\u0112:"E\u0304",\u1E16:"E\u0304\u0301",\u1E14:"E\u0304\u0300",\u0114:"E\u0306",\u011A:"E\u030C",\u00CA:"E\u0302",\u1EBE:"E\u0302\u0301",\u1EC0:"E\u0302\u0300",\u1EC4:"E\u0302\u0303",\u0116:"E\u0307",\u1E1E:"F\u0307",\u01F4:"G\u0301",\u1E20:"G\u0304",\u011E:"G\u0306",\u01E6:"G\u030C",\u011C:"G\u0302",\u0120:"G\u0307",\u1E26:"H\u0308",\u021E:"H\u030C",\u0124:"H\u0302",\u1E22:"H\u0307",\u00CD:"I\u0301",\u00CC:"I\u0300",\u00CF:"I\u0308",\u1E2E:"I\u0308\u0301",\u0128:"I\u0303",\u012A:"I\u0304",\u012C:"I\u0306",\u01CF:"I\u030C",\u00CE:"I\u0302",\u0130:"I\u0307",\u0134:"J\u0302",\u1E30:"K\u0301",\u01E8:"K\u030C",\u0139:"L\u0301",\u013D:"L\u030C",\u1E3E:"M\u0301",\u1E40:"M\u0307",\u0143:"N\u0301",\u01F8:"N\u0300",\u00D1:"N\u0303",\u0147:"N\u030C",\u1E44:"N\u0307",\u00D3:"O\u0301",\u00D2:"O\u0300",\u00D6:"O\u0308",\u022A:"O\u0308\u0304",\u00D5:"O\u0303",\u1E4C:"O\u0303\u0301",\u1E4E:"O\u0303\u0308",\u022C:"O\u0303\u0304",\u014C:"O\u0304",\u1E52:"O\u0304\u0301",\u1E50:"O\u0304\u0300",\u014E:"O\u0306",\u01D1:"O\u030C",\u00D4:"O\u0302",\u1ED0:"O\u0302\u0301",\u1ED2:"O\u0302\u0300",\u1ED6:"O\u0302\u0303",\u022E:"O\u0307",\u0230:"O\u0307\u0304",\u0150:"O\u030B",\u1E54:"P\u0301",\u1E56:"P\u0307",\u0154:"R\u0301",\u0158:"R\u030C",\u1E58:"R\u0307",\u015A:"S\u0301",\u1E64:"S\u0301\u0307",\u0160:"S\u030C",\u1E66:"S\u030C\u0307",\u015C:"S\u0302",\u1E60:"S\u0307",\u0164:"T\u030C",\u1E6A:"T\u0307",\u00DA:"U\u0301",\u00D9:"U\u0300",\u00DC:"U\u0308",\u01D7:"U\u0308\u0301",\u01DB:"U\u0308\u0300",\u01D5:"U\u0308\u0304",\u01D9:"U\u0308\u030C",\u0168:"U\u0303",\u1E78:"U\u0303\u0301",\u016A:"U\u0304",\u1E7A:"U\u0304\u0308",\u016C:"U\u0306",\u01D3:"U\u030C",\u00DB:"U\u0302",\u016E:"U\u030A",\u0170:"U\u030B",\u1E7C:"V\u0303",\u1E82:"W\u0301",\u1E80:"W\u0300",\u1E84:"W\u0308",\u0174:"W\u0302",\u1E86:"W\u0307",\u1E8C:"X\u0308",\u1E8A:"X\u0307",\u00DD:"Y\u0301",\u1EF2:"Y\u0300",\u0178:"Y\u0308",\u1EF8:"Y\u0303",\u0232:"Y\u0304",\u0176:"Y\u0302",\u1E8E:"Y\u0307",\u0179:"Z\u0301",\u017D:"Z\u030C",\u1E90:"Z\u0302",\u017B:"Z\u0307",\u03AC:"\u03B1\u0301",\u1F70:"\u03B1\u0300",\u1FB1:"\u03B1\u0304",\u1FB0:"\u03B1\u0306",\u03AD:"\u03B5\u0301",\u1F72:"\u03B5\u0300",\u03AE:"\u03B7\u0301",\u1F74:"\u03B7\u0300",\u03AF:"\u03B9\u0301",\u1F76:"\u03B9\u0300",\u03CA:"\u03B9\u0308",\u0390:"\u03B9\u0308\u0301",\u1FD2:"\u03B9\u0308\u0300",\u1FD1:"\u03B9\u0304",\u1FD0:"\u03B9\u0306",\u03CC:"\u03BF\u0301",\u1F78:"\u03BF\u0300",\u03CD:"\u03C5\u0301",\u1F7A:"\u03C5\u0300",\u03CB:"\u03C5\u0308",\u03B0:"\u03C5\u0308\u0301",\u1FE2:"\u03C5\u0308\u0300",\u1FE1:"\u03C5\u0304",\u1FE0:"\u03C5\u0306",\u03CE:"\u03C9\u0301",\u1F7C:"\u03C9\u0300",\u038E:"\u03A5\u0301",\u1FEA:"\u03A5\u0300",\u03AB:"\u03A5\u0308",\u1FE9:"\u03A5\u0304",\u1FE8:"\u03A5\u0306",\u038F:"\u03A9\u0301",\u1FFA:"\u03A9\u0300"},Vs=function(){function j(d,h){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 Ja(d,h,this.mode),this.settings=h,this.leftrightDepth=0}var l=j.prototype;return l.expect=function(h,m){if(m===void 0&&(m=!0),this.fetch().text!==h)throw new le("Expected '"+h+"', got '"+this.fetch().text+"'",this.fetch());m&&this.consume()},l.consume=function(){this.nextToken=null},l.fetch=function(){return this.nextToken==null&&(this.nextToken=this.gullet.expandNextToken()),this.nextToken},l.switchMode=function(h){this.mode=h,this.gullet.switchMode(h)},l.parse=function(){this.gullet.beginGroup(),this.settings.colorIsTextColor&&this.gullet.macros.set("\\color","\\textcolor");var h=this.parseExpression(!1);return this.expect("EOF"),this.gullet.endGroup(),h},l.parseExpression=function(h,m){for(var I=[];;){this.mode==="math"&&this.consumeSpaces();var H=this.fetch();if(j.endOfExpression.indexOf(H.text)!==-1||m&&H.text===m||h&&xs[H.text]&&xs[H.text].infix)break;var Ee=this.parseAtom(m);if(!Ee)break;I.push(Ee)}return this.mode==="text"&&this.formLigatures(I),this.handleInfixNodes(I)},l.handleInfixNodes=function(h){for(var m=-1,I,H=0;H<h.length;H++){var Ee=Ln(h[H],"infix");if(Ee){if(m!==-1)throw new le("only one infix operator per group",Ee.token);m=H,I=Ee.replaceWith}}if(m!==-1&&I){var Oe,Ke,st=h.slice(0,m),_t=h.slice(m+1);st.length===1&&st[0].type==="ordgroup"?Oe=st[0]:Oe={type:"ordgroup",mode:this.mode,body:st},_t.length===1&&_t[0].type==="ordgroup"?Ke=_t[0]:Ke={type:"ordgroup",mode:this.mode,body:_t};var Bt;return I==="\\\\abovefrac"?Bt=this.callFunction(I,[Oe,h[m],Ke],[]):Bt=this.callFunction(I,[Oe,Ke],[]),[Bt]}else return h},l.handleSupSubscript=function(h){var m=this.fetch(),I=m.text;this.consume();var H=this.parseGroup(h,!1,j.SUPSUB_GREEDINESS,void 0,void 0,!0);if(!H)throw new le("Expected group after '"+I+"'",m);return H},l.formatUnsupportedCmd=function(h){for(var m=[],I=0;I<h.length;I++)m.push({type:"textord",mode:"text",text:h[I]});var H={type:"text",mode:this.mode,body:m},Ee={type:"color",mode:this.mode,color:this.settings.errorColor,body:[H]};return Ee},l.parseAtom=function(h){var m=this.parseGroup("atom",!1,null,h);if(this.mode==="text")return m;for(var I,H;;){this.consumeSpaces();var Ee=this.fetch();if(Ee.text==="\\limits"||Ee.text==="\\nolimits"){var Oe=Ln(m,"op");if(Oe){var Ke=Ee.text==="\\limits";Oe.limits=Ke,Oe.alwaysHandleSupSub=!0}else if(Oe=Ln(m,"operatorname"),Oe&&Oe.alwaysHandleSupSub){var st=Ee.text==="\\limits";Oe.limits=st}else throw new le("Limit controls must follow a math operator",Ee);this.consume()}else if(Ee.text==="^"){if(I)throw new le("Double superscript",Ee);I=this.handleSupSubscript("superscript")}else if(Ee.text==="_"){if(H)throw new le("Double subscript",Ee);H=this.handleSupSubscript("subscript")}else if(Ee.text==="'"){if(I)throw new le("Double superscript",Ee);var _t={type:"textord",mode:this.mode,text:"\\prime"},Bt=[_t];for(this.consume();this.fetch().text==="'";)Bt.push(_t),this.consume();this.fetch().text==="^"&&Bt.push(this.handleSupSubscript("superscript")),I={type:"ordgroup",mode:this.mode,body:Bt}}else break}return I||H?{type:"supsub",mode:this.mode,base:m,sup:I,sub:H}:m},l.parseFunction=function(h,m,I){var H=this.fetch(),Ee=H.text,Oe=xs[Ee];if(!Oe)return null;if(this.consume(),I!=null&&Oe.greediness<=I)throw new le("Got function '"+Ee+"' with no arguments"+(m?" as "+m:""),H);if(this.mode==="text"&&!Oe.allowedInText)throw new le("Can't use function '"+Ee+"' in text mode",H);if(this.mode==="math"&&Oe.allowedInMath===!1)throw new le("Can't use function '"+Ee+"' in math mode",H);var Ke=this.parseArguments(Ee,Oe),st=Ke.args,_t=Ke.optArgs;return this.callFunction(Ee,st,_t,H,h)},l.callFunction=function(h,m,I,H,Ee){var Oe={funcName:h,parser:this,token:H,breakOnTokenText:Ee},Ke=xs[h];if(Ke&&Ke.handler)return Ke.handler(Oe,m,I);throw new le("No function handler for "+h)},l.parseArguments=function(h,m){var I=m.numArgs+m.numOptionalArgs;if(I===0)return{args:[],optArgs:[]};for(var H=m.greediness,Ee=[],Oe=[],Ke=0;Ke<I;Ke++){var st=m.argTypes&&m.argTypes[Ke],_t=Ke<m.numOptionalArgs,Bt=Ke>0&&!_t||Ke===0&&!_t&&this.mode==="math",qt=this.parseGroupOfType("argument to '"+h+"'",st,_t,H,Bt);if(!qt){if(_t){Oe.push(null);continue}throw new le("Expected group after '"+h+"'",this.fetch())}(_t?Oe:Ee).push(qt)}return{args:Ee,optArgs:Oe}},l.parseGroupOfType=function(h,m,I,H,Ee){switch(m){case"color":return Ee&&this.consumeSpaces(),this.parseColorGroup(I);case"size":return Ee&&this.consumeSpaces(),this.parseSizeGroup(I);case"url":return this.parseUrlGroup(I,Ee);case"math":case"text":return this.parseGroup(h,I,H,void 0,m,Ee);case"hbox":{var Oe=this.parseGroup(h,I,H,void 0,"text",Ee);if(!Oe)return Oe;var Ke={type:"styling",mode:Oe.mode,body:[Oe],style:"text"};return Ke}case"raw":{if(Ee&&this.consumeSpaces(),I&&this.fetch().text==="{")return null;var st=this.parseStringGroup("raw",I,!0);if(st)return{type:"raw",mode:"text",string:st.text};throw new le("Expected raw group",this.fetch())}case"original":case null:case void 0:return this.parseGroup(h,I,H,void 0,void 0,Ee);default:throw new le("Unknown group type as "+h,this.fetch())}},l.consumeSpaces=function(){for(;this.fetch().text===" ";)this.consume()},l.parseStringGroup=function(h,m,I){var H=m?"[":"{",Ee=m?"]":"}",Oe=this.fetch();if(Oe.text!==H){if(m)return null;if(I&&Oe.text!=="EOF"&&/[^{}[\]]/.test(Oe.text))return this.consume(),Oe}var Ke=this.mode;this.mode="text",this.expect(H);for(var st="",_t=this.fetch(),Bt=0,qt=_t,fn;(fn=this.fetch()).text!==Ee||I&&Bt>0;){switch(fn.text){case"EOF":throw new le("Unexpected end of input in "+h,_t.range(qt,st));case H:Bt++;break;case Ee:Bt--;break}qt=fn,st+=qt.text,this.consume()}return this.expect(Ee),this.mode=Ke,_t.range(qt,st)},l.parseRegexGroup=function(h,m){var I=this.mode;this.mode="text";for(var H=this.fetch(),Ee=H,Oe="",Ke;(Ke=this.fetch()).text!=="EOF"&&h.test(Oe+Ke.text);)Ee=Ke,Oe+=Ee.text,this.consume();if(Oe==="")throw new le("Invalid "+m+": '"+H.text+"'",H);return this.mode=I,H.range(Ee,Oe)},l.parseColorGroup=function(h){var m=this.parseStringGroup("color",h);if(!m)return null;var I=/^(#[a-f0-9]{3}|#?[a-f0-9]{6}|[a-z]+)$/i.exec(m.text);if(!I)throw new le("Invalid color: '"+m.text+"'",m);var H=I[0];return/^[0-9a-f]{6}$/i.test(H)&&(H="#"+H),{type:"color-token",mode:this.mode,color:H}},l.parseSizeGroup=function(h){var m,I=!1;if(!h&&this.fetch().text!=="{"?m=this.parseRegexGroup(/^[-+]? *(?:$|\d+|\d+\.\d*|\.\d*) *[a-z]{0,2} *$/,"size"):m=this.parseStringGroup("size",h),!m)return null;!h&&m.text.length===0&&(m.text="0pt",I=!0);var H=/([-+]?) *(\d+(?:\.\d*)?|\.\d+) *([a-z]{2})/.exec(m.text);if(!H)throw new le("Invalid size: '"+m.text+"'",m);var Ee={number:+(H[1]+H[2]),unit:H[3]};if(!qe(Ee))throw new le("Invalid unit: '"+Ee.unit+"'",m);return{type:"size",mode:this.mode,value:Ee,isBlank:I}},l.parseUrlGroup=function(h,m){this.gullet.lexer.setCatcode("%",13);var I=this.parseStringGroup("url",h,!0);if(this.gullet.lexer.setCatcode("%",14),!I)return null;var H=I.text.replace(/\\([#$%&~_^{}])/g,"$1");return{type:"url",mode:this.mode,url:H}},l.parseGroup=function(h,m,I,H,Ee,Oe){var Ke=this.mode;Ee&&this.switchMode(Ee),Oe&&this.consumeSpaces();var st=this.fetch(),_t=st.text,Bt;if(m?_t==="[":_t==="{"||_t==="\\begingroup"){this.consume();var qt=j.endOfGroup[_t];this.gullet.beginGroup();var fn=this.parseExpression(!1,qt),Sn=this.fetch();this.expect(qt),this.gullet.endGroup(),Bt={type:"ordgroup",mode:this.mode,loc:ie.range(st,Sn),body:fn,semisimple:_t==="\\begingroup"||void 0}}else if(m)Bt=null;else if(Bt=this.parseFunction(H,h,I)||this.parseSymbol(),Bt==null&&_t[0]==="\\"&&!Zs.hasOwnProperty(_t)){if(this.settings.throwOnError)throw new le("Undefined control sequence: "+_t,st);Bt=this.formatUnsupportedCmd(_t),this.consume()}return Ee&&this.switchMode(Ke),Bt},l.formLigatures=function(h){for(var m=h.length-1,I=0;I<m;++I){var H=h[I],Ee=H.text;Ee==="-"&&h[I+1].text==="-"&&(I+1<m&&h[I+2].text==="-"?(h.splice(I,3,{type:"textord",mode:"text",loc:ie.range(H,h[I+2]),text:"---"}),m-=2):(h.splice(I,2,{type:"textord",mode:"text",loc:ie.range(H,h[I+1]),text:"--"}),m-=1)),(Ee==="'"||Ee==="`")&&h[I+1].text===Ee&&(h.splice(I,2,{type:"textord",mode:"text",loc:ie.range(H,h[I+1]),text:Ee+Ee}),m-=1)}},l.parseSymbol=function(){var h=this.fetch(),m=h.text;if(/^\\verb[^a-zA-Z]/.test(m)){this.consume();var I=m.slice(5),H=I.charAt(0)==="*";if(H&&(I=I.slice(1)),I.length<2||I.charAt(0)!==I.slice(-1))throw new le(`\\verb assertion failed --
please report what input caused this bug`);return I=I.slice(1,-1),{type:"verb",mode:"text",body:I,star:H}}Oa.hasOwnProperty(m[0])&&!Ct[this.mode][m[0]]&&(this.settings.strict&&this.mode==="math"&&this.settings.reportNonstrict("unicodeTextInMathMode",'Accented Unicode text character "'+m[0]+'" used in math mode',h),m=Oa[m[0]]+m.substr(1));var Ee=vi.exec(m);Ee&&(m=m.substring(0,Ee.index),m==="i"?m="\u0131":m==="j"&&(m="\u0237"));var Oe;if(Ct[this.mode][m]){this.settings.strict&&this.mode==="math"&&Kt.indexOf(m)>=0&&this.settings.reportNonstrict("unicodeTextInMathMode",'Latin-1/Unicode text character "'+m[0]+'" used in math mode',h);var Ke=Ct[this.mode][m].group,st=ie.range(h),_t;if(At.hasOwnProperty(Ke)){var Bt=Ke;_t={type:"atom",mode:this.mode,family:Bt,loc:st,text:m}}else _t={type:Ke,mode:this.mode,loc:st,text:m};Oe=_t}else if(m.charCodeAt(0)>=128)this.settings.strict&&(Pe(m.charCodeAt(0))?this.mode==="math"&&this.settings.reportNonstrict("unicodeTextInMathMode",'Unicode text character "'+m[0]+'" used in math mode',h):this.settings.reportNonstrict("unknownSymbol",'Unrecognized Unicode character "'+m[0]+'"'+(" ("+m.charCodeAt(0)+")"),h)),Oe={type:"textord",mode:"text",loc:ie.range(h),text:m};else return null;if(this.consume(),Ee)for(var qt=0;qt<Ee[0].length;qt++){var fn=Ee[0][qt];if(!Es[fn])throw new le("Unknown accent ' "+fn+"'",h);var Sn=Es[fn][this.mode];if(!Sn)throw new le("Accent "+fn+" unsupported in "+this.mode+" mode",h);Oe={type:"accent",mode:this.mode,loc:ie.range(h),label:Sn,isStretchy:!1,isShifty:!0,base:Oe}}return Oe},j}();Vs.endOfExpression=["}","\\endgroup","\\end","\\right","&"],Vs.endOfGroup={"[":"]","{":"}","\\begingroup":"\\endgroup"},Vs.SUPSUB_GREEDINESS=1;var ka=function(l,d){if(!(typeof l=="string"||l instanceof String))throw new TypeError("KaTeX can only parse string typed expression");var h=new Vs(l,d);delete h.gullet.macros.current["\\df@tag"];var m=h.parse();if(h.gullet.macros.get("\\df@tag")){if(!d.displayMode)throw new le("\\tag works only in display equations");h.gullet.feed("\\df@tag"),m=[{type:"tag",mode:"text",body:m,tag:h.parse()}]}return m},fa=ka,Pa=function(l,d,h){d.textContent="";var m=Mi(l,h).toNode();d.appendChild(m)};typeof document!="undefined"&&document.compatMode!=="CSS1Compat"&&(typeof console!="undefined"&&console.warn("Warning: KaTeX doesn't work in quirks mode. Make sure your website has a suitable doctype."),Pa=function(){throw new le("KaTeX doesn't work in quirks mode.")});var ws=function(l,d){var h=Mi(l,d).toMarkup();return h},ma=function(l,d){var h=new z(d);return fa(l,h)},Os=function(l,d,h){if(h.throwOnError||!(l instanceof le))throw l;var m=Ge.makeSpan(["katex-error"],[new C(d)]);return m.setAttribute("title",l.toString()),m.setAttribute("style","color:"+h.errorColor),m},Mi=function(l,d){var h=new z(d);try{var m=fa(l,h);return Dr(m,l,h)}catch(I){return Os(I,l,h)}},qa=function(l,d){var h=new z(d);try{var m=fa(l,h);return zr(m,l,h)}catch(I){return Os(I,l,h)}},Ma={version:"0.11.1",render:Pa,renderToString:ws,ParseError:le,__parse:ma,__renderToDomTree:Mi,__renderToHTMLTree:qa,__setFontMetrics:Ye,__defineSymbol:x,__defineMacro:Fe,__domTree:{Span:M,Anchor:ce,SymbolNode:C,SvgNode:k,PathNode:he,LineNode:de}},eo=_.default=Ma}]).default})},32834:function(Ht){(function(et,_){Ht.exports=_()})(this,function(){"use strict";function et(ke,He){for(var We=0;We<He.length;We++){var te=He[We];te.enumerable=te.enumerable||!1,te.configurable=!0,"value"in te&&(te.writable=!0),Object.defineProperty(ke,te.key,te)}}function _(ke,He,We){return He&&et(ke.prototype,He),We&&et(ke,We),ke}function T(ke,He){if(ke){if(typeof ke=="string")return N(ke,He);var We=Object.prototype.toString.call(ke).slice(8,-1);if(We==="Object"&&ke.constructor&&(We=ke.constructor.name),We==="Map"||We==="Set")return Array.from(ke);if(We==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(We))return N(ke,He)}}function N(ke,He){(He==null||He>ke.length)&&(He=ke.length);for(var We=0,te=new Array(He);We<He;We++)te[We]=ke[We];return te}function ie(ke,He){var We=typeof Symbol!="undefined"&&ke[Symbol.iterator]||ke["@@iterator"];if(We)return(We=We.call(ke)).next.bind(We);if(Array.isArray(ke)||(We=T(ke))||He&&ke&&typeof ke.length=="number"){We&&(ke=We);var te=0;return function(){return te>=ke.length?{done:!0}:{done:!1,value:ke[te++]}}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var Re={exports:{}};function ve(){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 le(ke){Re.exports.defaults=ke}Re.exports={defaults:ve(),getDefaults:ve,changeDefaults:le};var Te=/[&<>"']/,be=/[&<>"']/g,o=/[<>"']|&(?!#?\w+;)/,L=/[<>"']|&(?!#?\w+;)/g,$={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"},v=function(He){return $[He]};function c(ke,He){if(He){if(Te.test(ke))return ke.replace(be,v)}else if(o.test(ke))return ke.replace(L,v);return ke}var S=/&(#(?:\d+)|(?:#x[0-9A-Fa-f]+)|(?:\w+));?/ig;function y(ke){return ke.replace(S,function(He,We){return We=We.toLowerCase(),We==="colon"?":":We.charAt(0)==="#"?We.charAt(1)==="x"?String.fromCharCode(parseInt(We.substring(2),16)):String.fromCharCode(+We.substring(1)):""})}var q=/(^|[^\[])\^/g;function ae(ke,He){ke=ke.source||ke,He=He||"";var We={replace:function(pe,De){return De=De.source||De,De=De.replace(q,"$1"),ke=ke.replace(pe,De),We},getRegex:function(){return new RegExp(ke,He)}};return We}var P=/[^\w:]/g,z=/^$|^[a-z][a-z0-9+.-]*:|^[?#]/i;function W(ke,He,We){if(ke){var te;try{te=decodeURIComponent(y(We)).replace(P,"").toLowerCase()}catch(pe){return null}if(te.indexOf("javascript:")===0||te.indexOf("vbscript:")===0||te.indexOf("data:")===0)return null}He&&!z.test(We)&&(We=U(He,We));try{We=encodeURI(We).replace(/%25/g,"%")}catch(pe){return null}return We}var re={},b=/^[^:]+:\/*[^/]*$/,D=/^([^:]+:)[\s\S]*$/,F=/^([^:]+:\/*[^/]*)[\s\S]*$/;function U(ke,He){re[" "+ke]||(b.test(ke)?re[" "+ke]=ke+"/":re[" "+ke]=Ne(ke,"/",!0)),ke=re[" "+ke];var We=ke.indexOf(":")===-1;return He.substring(0,2)==="//"?We?He:ke.replace(D,"$1")+He:He.charAt(0)==="/"?We?He:ke.replace(F,"$1")+He:ke+He}var fe={exec:function(){}};function ye(ke){for(var He=1,We,te;He<arguments.length;He++){We=arguments[He];for(te in We)Object.prototype.hasOwnProperty.call(We,te)&&(ke[te]=We[te])}return ke}function Se(ke,He){var We=ke.replace(/\|/g,function(De,ze,V){for(var kt=!1,Le=ze;--Le>=0&&V[Le]==="\\";)kt=!kt;return kt?"|":" |"}),te=We.split(/ \|/),pe=0;if(te.length>He)te.splice(He);else for(;te.length<He;)te.push("");for(;pe<te.length;pe++)te[pe]=te[pe].trim().replace(/\\\|/g,"|");return te}function Ne(ke,He,We){var te=ke.length;if(te===0)return"";for(var pe=0;pe<te;){var De=ke.charAt(te-pe-1);if(De===He&&!We)pe++;else if(De!==He&&We)pe++;else break}return ke.substr(0,te-pe)}function Z(ke,He){if(ke.indexOf(He[1])===-1)return-1;for(var We=ke.length,te=0,pe=0;pe<We;pe++)if(ke[pe]==="\\")pe++;else if(ke[pe]===He[0])te++;else if(ke[pe]===He[1]&&(te--,te<0))return pe;return-1}function B(ke){ke&&ke.sanitize&&!ke.silent&&console.warn("marked(): sanitize and sanitizer parameters are deprecated since version 0.7.0, should not be used and will be removed in the future. Read more here: https://marked.js.org/#/USING_ADVANCED.md#options")}function ne(ke,He){if(He<1)return"";for(var We="";He>1;)He&1&&(We+=ke),He>>=1,ke+=ke;return We+ke}var X={escape:c,unescape:y,edit:ae,cleanUrl:W,resolveUrl:U,noopTest:fe,merge:ye,splitCells:Se,rtrim:Ne,findClosingBracket:Z,checkSanitizeDeprecation:B,repeatString:ne},me=Re.exports.defaults,ee=X.rtrim,g=X.splitCells,w=X.escape,Q=X.findClosingBracket;function J(ke,He,We){var te=He.href,pe=He.title?w(He.title):null,De=ke[1].replace(/\\([\[\]])/g,"$1");return ke[0].charAt(0)!=="!"?{type:"link",raw:We,href:te,title:pe,text:De}:{type:"image",raw:We,href:te,title:pe,text:w(De)}}function Pe(ke,He){var We=ke.match(/^(\s+)(?:```)/);if(We===null)return He;var te=We[1];return He.split(`
`).map(function(pe){var De=pe.match(/^\s+/);if(De===null)return pe;var ze=De[0];return ze.length>=te.length?pe.slice(te.length):pe}).join(`
`)}var Ue=function(){function ke(We){this.options=We||me}var He=ke.prototype;return He.space=function(te){var pe=this.rules.block.newline.exec(te);if(pe)return pe[0].length>1?{type:"space",raw:pe[0]}:{raw:`
`}},He.code=function(te){var pe=this.rules.block.code.exec(te);if(pe){var De=pe[0].replace(/^ {1,4}/gm,"");return{type:"code",raw:pe[0],codeBlockStyle:"indented",text:this.options.pedantic?De:ee(De,`
`)}}},He.fences=function(te){var pe=this.rules.block.fences.exec(te);if(pe){var De=pe[0],ze=Pe(De,pe[3]||"");return{type:"code",raw:De,lang:pe[2]?pe[2].trim():pe[2],text:ze}}},He.heading=function(te){var pe=this.rules.block.heading.exec(te);if(pe){var De=pe[2].trim();if(/#$/.test(De)){var ze=ee(De,"#");(this.options.pedantic||!ze||/ $/.test(ze))&&(De=ze.trim())}return{type:"heading",raw:pe[0],depth:pe[1].length,text:De}}},He.nptable=function(te){var pe=this.rules.block.nptable.exec(te);if(pe){var De={type:"table",header:g(pe[1].replace(/^ *| *\| *$/g,"")),align:pe[2].replace(/^ *|\| *$/g,"").split(/ *\| */),cells:pe[3]?pe[3].replace(/\n$/,"").split(`
`):[],raw:pe[0]};if(De.header.length===De.align.length){var ze=De.align.length,V;for(V=0;V<ze;V++)/^ *-+: *$/.test(De.align[V])?De.align[V]="right":/^ *:-+: *$/.test(De.align[V])?De.align[V]="center":/^ *:-+ *$/.test(De.align[V])?De.align[V]="left":De.align[V]=null;for(ze=De.cells.length,V=0;V<ze;V++)De.cells[V]=g(De.cells[V],De.header.length);return De}}},He.hr=function(te){var pe=this.rules.block.hr.exec(te);if(pe)return{type:"hr",raw:pe[0]}},He.blockquote=function(te){var pe=this.rules.block.blockquote.exec(te);if(pe){var De=pe[0].replace(/^ *> ?/gm,"");return{type:"blockquote",raw:pe[0],text:De}}},He.list=function(te){var pe=this.rules.block.list.exec(te);if(pe){var De=pe[0],ze=pe[2],V=ze.length>1,kt={type:"list",raw:De,ordered:V,start:V?+ze.slice(0,-1):"",loose:!1,items:[]},Le=pe[0].match(this.rules.block.item),jt=!1,ln,bt,Lt,ot,ft,Gt,yn,nn,je,we=Le.length;Lt=this.rules.block.listItemStart.exec(Le[0]);for(var ut=0;ut<we;ut++){if(ln=Le[ut],De=ln,this.options.pedantic||(je=ln.match(new RegExp("\\n\\s*\\n {0,"+(Lt[0].length-1)+"}\\S")),je&&(ft=ln.length-je.index+Le.slice(ut+1).join(`
`).length,kt.raw=kt.raw.substring(0,kt.raw.length-ft),ln=ln.substring(0,je.index),De=ln,we=ut+1)),ut!==we-1){if(ot=this.rules.block.listItemStart.exec(Le[ut+1]),this.options.pedantic?ot[1].length>Lt[1].length:ot[1].length>=Lt[0].length||ot[1].length>3){Le.splice(ut,2,Le[ut]+(!this.options.pedantic&&ot[1].length<Lt[0].length&&!Le[ut].match(/\n$/)?"":`
`)+Le[ut+1]),ut--,we--;continue}else(!this.options.pedantic||this.options.smartLists?ot[2][ot[2].length-1]!==ze[ze.length-1]:V===(ot[2].length===1))&&(ft=Le.slice(ut+1).join(`
`).length,kt.raw=kt.raw.substring(0,kt.raw.length-ft),ut=we-1);Lt=ot}bt=ln.length,ln=ln.replace(/^ *([*+-]|\d+[.)]) ?/,""),~ln.indexOf(`
`)&&(bt-=ln.length,ln=this.options.pedantic?ln.replace(/^ {1,4}/gm,""):ln.replace(new RegExp("^ {1,"+bt+"}","gm"),"")),ln=ee(ln,`
`),ut!==we-1&&(De=De+`
`),Gt=jt||/\n\n(?!\s*$)/.test(De),ut!==we-1&&(jt=De.slice(-2)===`
`,Gt||(Gt=jt)),Gt&&(kt.loose=!0),this.options.gfm&&(yn=/^\[[ xX]\] /.test(ln),nn=void 0,yn&&(nn=ln[1]!==" ",ln=ln.replace(/^\[[ xX]\] +/,""))),kt.items.push({type:"list_item",raw:De,task:yn,checked:nn,loose:Gt,text:ln})}return kt}},He.html=function(te){var pe=this.rules.block.html.exec(te);if(pe)return{type:this.options.sanitize?"paragraph":"html",raw:pe[0],pre:!this.options.sanitizer&&(pe[1]==="pre"||pe[1]==="script"||pe[1]==="style"),text:this.options.sanitize?this.options.sanitizer?this.options.sanitizer(pe[0]):w(pe[0]):pe[0]}},He.def=function(te){var pe=this.rules.block.def.exec(te);if(pe){pe[3]&&(pe[3]=pe[3].substring(1,pe[3].length-1));var De=pe[1].toLowerCase().replace(/\s+/g," ");return{type:"def",tag:De,raw:pe[0],href:pe[2],title:pe[3]}}},He.table=function(te){var pe=this.rules.block.table.exec(te);if(pe){var De={type:"table",header:g(pe[1].replace(/^ *| *\| *$/g,"")),align:pe[2].replace(/^ *|\| *$/g,"").split(/ *\| */),cells:pe[3]?pe[3].replace(/\n$/,"").split(`
`):[]};if(De.header.length===De.align.length){De.raw=pe[0];var ze=De.align.length,V;for(V=0;V<ze;V++)/^ *-+: *$/.test(De.align[V])?De.align[V]="right":/^ *:-+: *$/.test(De.align[V])?De.align[V]="center":/^ *:-+ *$/.test(De.align[V])?De.align[V]="left":De.align[V]=null;for(ze=De.cells.length,V=0;V<ze;V++)De.cells[V]=g(De.cells[V].replace(/^ *\| *| *\| *$/g,""),De.header.length);return De}}},He.lheading=function(te){var pe=this.rules.block.lheading.exec(te);if(pe)return{type:"heading",raw:pe[0],depth:pe[2].charAt(0)==="="?1:2,text:pe[1]}},He.paragraph=function(te){var pe=this.rules.block.paragraph.exec(te);if(pe)return{type:"paragraph",raw:pe[0],text:pe[1].charAt(pe[1].length-1)===`
`?pe[1].slice(0,-1):pe[1]}},He.text=function(te){var pe=this.rules.block.text.exec(te);if(pe)return{type:"text",raw:pe[0],text:pe[0]}},He.escape=function(te){var pe=this.rules.inline.escape.exec(te);if(pe)return{type:"escape",raw:pe[0],text:w(pe[1])}},He.tag=function(te,pe,De){var ze=this.rules.inline.tag.exec(te);if(ze)return!pe&&/^<a /i.test(ze[0])?pe=!0:pe&&/^<\/a>/i.test(ze[0])&&(pe=!1),!De&&/^<(pre|code|kbd|script)(\s|>)/i.test(ze[0])?De=!0:De&&/^<\/(pre|code|kbd|script)(\s|>)/i.test(ze[0])&&(De=!1),{type:this.options.sanitize?"text":"html",raw:ze[0],inLink:pe,inRawBlock:De,text:this.options.sanitize?this.options.sanitizer?this.options.sanitizer(ze[0]):w(ze[0]):ze[0]}},He.link=function(te){var pe=this.rules.inline.link.exec(te);if(pe){var De=pe[2].trim();if(!this.options.pedantic&&/^</.test(De)){if(!/>$/.test(De))return;var ze=ee(De.slice(0,-1),"\\");if((De.length-ze.length)%2===0)return}else{var V=Q(pe[2],"()");if(V>-1){var kt=pe[0].indexOf("!")===0?5:4,Le=kt+pe[1].length+V;pe[2]=pe[2].substring(0,V),pe[0]=pe[0].substring(0,Le).trim(),pe[3]=""}}var jt=pe[2],ln="";if(this.options.pedantic){var bt=/^([^'"]*[^\s])\s+(['"])(.*)\2/.exec(jt);bt&&(jt=bt[1],ln=bt[3])}else ln=pe[3]?pe[3].slice(1,-1):"";return jt=jt.trim(),/^</.test(jt)&&(this.options.pedantic&&!/>$/.test(De)?jt=jt.slice(1):jt=jt.slice(1,-1)),J(pe,{href:jt&&jt.replace(this.rules.inline._escapes,"$1"),title:ln&&ln.replace(this.rules.inline._escapes,"$1")},pe[0])}},He.reflink=function(te,pe){var De;if((De=this.rules.inline.reflink.exec(te))||(De=this.rules.inline.nolink.exec(te))){var ze=(De[2]||De[1]).replace(/\s+/g," ");if(ze=pe[ze.toLowerCase()],!ze||!ze.href){var V=De[0].charAt(0);return{type:"text",raw:V,text:V}}return J(De,ze,De[0])}},He.emStrong=function(te,pe,De){De===void 0&&(De="");var ze=this.rules.inline.emStrong.lDelim.exec(te);if(ze&&!(ze[3]&&De.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 V=ze[1]||ze[2]||"";if(!V||V&&(De===""||this.rules.inline.punctuation.exec(De))){var kt=ze[0].length-1,Le,jt,ln=kt,bt=0,Lt=ze[0][0]==="*"?this.rules.inline.emStrong.rDelimAst:this.rules.inline.emStrong.rDelimUnd;for(Lt.lastIndex=0,pe=pe.slice(-1*te.length+kt);(ze=Lt.exec(pe))!=null;)if(Le=ze[1]||ze[2]||ze[3]||ze[4]||ze[5]||ze[6],!!Le){if(jt=Le.length,ze[3]||ze[4]){ln+=jt;continue}else if((ze[5]||ze[6])&&kt%3&&!((kt+jt)%3)){bt+=jt;continue}if(ln-=jt,!(ln>0))return jt=Math.min(jt,jt+ln+bt),Math.min(kt,jt)%2?{type:"em",raw:te.slice(0,kt+ze.index+jt+1),text:te.slice(1,kt+ze.index+jt)}:{type:"strong",raw:te.slice(0,kt+ze.index+jt+1),text:te.slice(2,kt+ze.index+jt-1)}}}}},He.codespan=function(te){var pe=this.rules.inline.code.exec(te);if(pe){var De=pe[2].replace(/\n/g," "),ze=/[^ ]/.test(De),V=/^ /.test(De)&&/ $/.test(De);return ze&&V&&(De=De.substring(1,De.length-1)),De=w(De,!0),{type:"codespan",raw:pe[0],text:De}}},He.br=function(te){var pe=this.rules.inline.br.exec(te);if(pe)return{type:"br",raw:pe[0]}},He.del=function(te){var pe=this.rules.inline.del.exec(te);if(pe)return{type:"del",raw:pe[0],text:pe[2]}},He.autolink=function(te,pe){var De=this.rules.inline.autolink.exec(te);if(De){var ze,V;return De[2]==="@"?(ze=w(this.options.mangle?pe(De[1]):De[1]),V="mailto:"+ze):(ze=w(De[1]),V=ze),{type:"link",raw:De[0],text:ze,href:V,tokens:[{type:"text",raw:ze,text:ze}]}}},He.url=function(te,pe){var De;if(De=this.rules.inline.url.exec(te)){var ze,V;if(De[2]==="@")ze=w(this.options.mangle?pe(De[0]):De[0]),V="mailto:"+ze;else{var kt;do kt=De[0],De[0]=this.rules.inline._backpedal.exec(De[0])[0];while(kt!==De[0]);ze=w(De[0]),De[1]==="www."?V="http://"+ze:V=ze}return{type:"link",raw:De[0],text:ze,href:V,tokens:[{type:"text",raw:ze,text:ze}]}}},He.inlineText=function(te,pe,De){var ze=this.rules.inline.text.exec(te);if(ze){var V;return pe?V=this.options.sanitize?this.options.sanitizer?this.options.sanitizer(ze[0]):w(ze[0]):ze[0]:V=w(this.options.smartypants?De(ze[0]):ze[0]),{type:"text",raw:ze[0],text:V}}},ke}(),Xe=X.noopTest,Ze=X.edit,lt=X.merge,at={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:Xe,table:Xe,lheading:/^([^\n]+)\n {0,3}(=+|-+) *(?:\n+|$)/,_paragraph:/^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html| +\n)[^\n]+)*)/,text:/^[^\n]+/};at._label=/(?!\s*\])(?:\\[\[\]]|[^\[\]])+/,at._title=/(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/,at.def=Ze(at.def).replace("label",at._label).replace("title",at._title).getRegex(),at.bullet=/(?:[*+-]|\d{1,9}[.)])/,at.item=/^( *)(bull) ?[^\n]*(?:\n(?! *bull ?)[^\n]*)*/,at.item=Ze(at.item,"gm").replace(/bull/g,at.bullet).getRegex(),at.listItemStart=Ze(/^( *)(bull) */).replace("bull",at.bullet).getRegex(),at.list=Ze(at.list).replace(/bull/g,at.bullet).replace("hr","\\n+(?=\\1?(?:(?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$))").replace("def","\\n+(?="+at.def.source+")").getRegex(),at._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",at._comment=/<!--(?!-?>)[\s\S]*?(?:-->|$)/,at.html=Ze(at.html,"i").replace("comment",at._comment).replace("tag",at._tag).replace("attribute",/ +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(),at.paragraph=Ze(at._paragraph).replace("hr",at.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",at._tag).getRegex(),at.blockquote=Ze(at.blockquote).replace("paragraph",at.paragraph).getRegex(),at.normal=lt({},at),at.gfm=lt({},at.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*|$)"}),at.gfm.nptable=Ze(at.gfm.nptable).replace("hr",at.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",at._tag).getRegex(),at.gfm.table=Ze(at.gfm.table).replace("hr",at.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",at._tag).getRegex(),at.pedantic=lt({},at.normal,{html:Ze(`^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+?</\\1> *(?:\\n{2,}|\\s*$)|<tag(?:"[^"]*"|'[^']*'|\\s[^'"/>\\s]*)*?/?> *(?:\\n{2,}|\\s*$))`).replace("comment",at._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:Xe,paragraph:Ze(at.normal._paragraph).replace("hr",at.hr).replace("heading",` *#{1,6} *[^
]`).replace("lheading",at.lheading).replace("blockquote"," {0,3}>").replace("|fences","").replace("|list","").replace("|html","").getRegex()});var ct={escape:/^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/,autolink:/^<(scheme:[^\s\x00-\x1f<>]*|email)>/,url:Xe,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:Xe,text:/^(`+|[^`])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\<!\[`*_]|\b_|$)|[^ ](?= {2,}\n)))/,punctuation:/^([\spunctuation])/};ct._punctuation="!\"#$%&'()+\\-.,/:;<=>?@\\[\\]`^{|}~",ct.punctuation=Ze(ct.punctuation).replace(/punctuation/g,ct._punctuation).getRegex(),ct.blockSkip=/\[[^\]]*?\]\([^\)]*?\)|`[^`]*?`|<[^>]*?>/g,ct.escapedEmSt=/\\\*|\\_/g,ct._comment=Ze(at._comment).replace("(?:-->|$)","-->").getRegex(),ct.emStrong.lDelim=Ze(ct.emStrong.lDelim).replace(/punct/g,ct._punctuation).getRegex(),ct.emStrong.rDelimAst=Ze(ct.emStrong.rDelimAst,"g").replace(/punct/g,ct._punctuation).getRegex(),ct.emStrong.rDelimUnd=Ze(ct.emStrong.rDelimUnd,"g").replace(/punct/g,ct._punctuation).getRegex(),ct._escapes=/\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/g,ct._scheme=/[a-zA-Z][a-zA-Z0-9+.-]{1,31}/,ct._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])?)+(?![-_])/,ct.autolink=Ze(ct.autolink).replace("scheme",ct._scheme).replace("email",ct._email).getRegex(),ct._attribute=/\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/,ct.tag=Ze(ct.tag).replace("comment",ct._comment).replace("attribute",ct._attribute).getRegex(),ct._label=/(?:\[(?:\\.|[^\[\]\\])*\]|\\.|`[^`]*`|[^\[\]\\`])*?/,ct._href=/<(?:\\.|[^\n<>\\])+>|[^\s\x00-\x1f]*/,ct._title=/"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/,ct.link=Ze(ct.link).replace("label",ct._label).replace("href",ct._href).replace("title",ct._title).getRegex(),ct.reflink=Ze(ct.reflink).replace("label",ct._label).getRegex(),ct.reflinkSearch=Ze(ct.reflinkSearch,"g").replace("reflink",ct.reflink).replace("nolink",ct.nolink).getRegex(),ct.normal=lt({},ct),ct.pedantic=lt({},ct.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:Ze(/^!?\[(label)\]\((.*?)\)/).replace("label",ct._label).getRegex(),reflink:Ze(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace("label",ct._label).getRegex()}),ct.gfm=lt({},ct.normal,{escape:Ze(ct.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.!#$%&'*+\/=?_`{\|}~-]+@)))/}),ct.gfm.url=Ze(ct.gfm.url,"i").replace("email",ct.gfm._extended_email).getRegex(),ct.breaks=lt({},ct.gfm,{br:Ze(ct.br).replace("{2,}","*").getRegex(),text:Ze(ct.gfm.text).replace("\\b_","\\b_| {2,}\\n").replace(/\{2,\}/g,"*").getRegex()});var Ot={block:at,inline:ct},Ut=Ue,un=Re.exports.defaults,Ft=Ot.block,nt=Ot.inline,Et=X.repeatString;function oe(ke){return ke.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 _e(ke){var He="",We,te,pe=ke.length;for(We=0;We<pe;We++)te=ke.charCodeAt(We),Math.random()>.5&&(te="x"+te.toString(16)),He+="&#"+te+";";return He}var M=function(){function ke(We){this.tokens=[],this.tokens.links=Object.create(null),this.options=We||un,this.options.tokenizer=this.options.tokenizer||new Ut,this.tokenizer=this.options.tokenizer,this.tokenizer.options=this.options;var te={block:Ft.normal,inline:nt.normal};this.options.pedantic?(te.block=Ft.pedantic,te.inline=nt.pedantic):this.options.gfm&&(te.block=Ft.gfm,this.options.breaks?te.inline=nt.breaks:te.inline=nt.gfm),this.tokenizer.rules=te}ke.lex=function(te,pe){var De=new ke(pe);return De.lex(te)},ke.lexInline=function(te,pe){var De=new ke(pe);return De.inlineTokens(te)};var He=ke.prototype;return He.lex=function(te){return te=te.replace(/\r\n|\r/g,`
`).replace(/\t/g," "),this.blockTokens(te,this.tokens,!0),this.inline(this.tokens),this.tokens},He.blockTokens=function(te,pe,De){pe===void 0&&(pe=[]),De===void 0&&(De=!0),this.options.pedantic&&(te=te.replace(/^ +$/gm,""));for(var ze,V,kt,Le;te;){if(ze=this.tokenizer.space(te)){te=te.substring(ze.raw.length),ze.type&&pe.push(ze);continue}if(ze=this.tokenizer.code(te)){te=te.substring(ze.raw.length),Le=pe[pe.length-1],Le&&Le.type==="paragraph"?(Le.raw+=`
`+ze.raw,Le.text+=`
`+ze.text):pe.push(ze);continue}if(ze=this.tokenizer.fences(te)){te=te.substring(ze.raw.length),pe.push(ze);continue}if(ze=this.tokenizer.heading(te)){te=te.substring(ze.raw.length),pe.push(ze);continue}if(ze=this.tokenizer.nptable(te)){te=te.substring(ze.raw.length),pe.push(ze);continue}if(ze=this.tokenizer.hr(te)){te=te.substring(ze.raw.length),pe.push(ze);continue}if(ze=this.tokenizer.blockquote(te)){te=te.substring(ze.raw.length),ze.tokens=this.blockTokens(ze.text,[],De),pe.push(ze);continue}if(ze=this.tokenizer.list(te)){for(te=te.substring(ze.raw.length),kt=ze.items.length,V=0;V<kt;V++)ze.items[V].tokens=this.blockTokens(ze.items[V].text,[],!1);pe.push(ze);continue}if(ze=this.tokenizer.html(te)){te=te.substring(ze.raw.length),pe.push(ze);continue}if(De&&(ze=this.tokenizer.def(te))){te=te.substring(ze.raw.length),this.tokens.links[ze.tag]||(this.tokens.links[ze.tag]={href:ze.href,title:ze.title});continue}if(ze=this.tokenizer.table(te)){te=te.substring(ze.raw.length),pe.push(ze);continue}if(ze=this.tokenizer.lheading(te)){te=te.substring(ze.raw.length),pe.push(ze);continue}if(De&&(ze=this.tokenizer.paragraph(te))){te=te.substring(ze.raw.length),pe.push(ze);continue}if(ze=this.tokenizer.text(te)){te=te.substring(ze.raw.length),Le=pe[pe.length-1],Le&&Le.type==="text"?(Le.raw+=`
`+ze.raw,Le.text+=`
`+ze.text):pe.push(ze);continue}if(te){var jt="Infinite loop on byte: "+te.charCodeAt(0);if(this.options.silent){console.error(jt);break}else throw new Error(jt)}}return pe},He.inline=function(te){var pe,De,ze,V,kt,Le,jt=te.length;for(pe=0;pe<jt;pe++)switch(Le=te[pe],Le.type){case"paragraph":case"text":case"heading":{Le.tokens=[],this.inlineTokens(Le.text,Le.tokens);break}case"table":{for(Le.tokens={header:[],cells:[]},V=Le.header.length,De=0;De<V;De++)Le.tokens.header[De]=[],this.inlineTokens(Le.header[De],Le.tokens.header[De]);for(V=Le.cells.length,De=0;De<V;De++)for(kt=Le.cells[De],Le.tokens.cells[De]=[],ze=0;ze<kt.length;ze++)Le.tokens.cells[De][ze]=[],this.inlineTokens(kt[ze],Le.tokens.cells[De][ze]);break}case"blockquote":{this.inline(Le.tokens);break}case"list":{for(V=Le.items.length,De=0;De<V;De++)this.inline(Le.items[De].tokens);break}}return te},He.inlineTokens=function(te,pe,De,ze){pe===void 0&&(pe=[]),De===void 0&&(De=!1),ze===void 0&&(ze=!1);var V,kt,Le=te,jt,ln,bt;if(this.tokens.links){var Lt=Object.keys(this.tokens.links);if(Lt.length>0)for(;(jt=this.tokenizer.rules.inline.reflinkSearch.exec(Le))!=null;)Lt.includes(jt[0].slice(jt[0].lastIndexOf("[")+1,-1))&&(Le=Le.slice(0,jt.index)+"["+Et("a",jt[0].length-2)+"]"+Le.slice(this.tokenizer.rules.inline.reflinkSearch.lastIndex))}for(;(jt=this.tokenizer.rules.inline.blockSkip.exec(Le))!=null;)Le=Le.slice(0,jt.index)+"["+Et("a",jt[0].length-2)+"]"+Le.slice(this.tokenizer.rules.inline.blockSkip.lastIndex);for(;(jt=this.tokenizer.rules.inline.escapedEmSt.exec(Le))!=null;)Le=Le.slice(0,jt.index)+"++"+Le.slice(this.tokenizer.rules.inline.escapedEmSt.lastIndex);for(;te;){if(ln||(bt=""),ln=!1,V=this.tokenizer.escape(te)){te=te.substring(V.raw.length),pe.push(V);continue}if(V=this.tokenizer.tag(te,De,ze)){te=te.substring(V.raw.length),De=V.inLink,ze=V.inRawBlock;var ot=pe[pe.length-1];ot&&V.type==="text"&&ot.type==="text"?(ot.raw+=V.raw,ot.text+=V.text):pe.push(V);continue}if(V=this.tokenizer.link(te)){te=te.substring(V.raw.length),V.type==="link"&&(V.tokens=this.inlineTokens(V.text,[],!0,ze)),pe.push(V);continue}if(V=this.tokenizer.reflink(te,this.tokens.links)){te=te.substring(V.raw.length);var ft=pe[pe.length-1];V.type==="link"?(V.tokens=this.inlineTokens(V.text,[],!0,ze),pe.push(V)):ft&&V.type==="text"&&ft.type==="text"?(ft.raw+=V.raw,ft.text+=V.text):pe.push(V);continue}if(V=this.tokenizer.emStrong(te,Le,bt)){te=te.substring(V.raw.length),V.tokens=this.inlineTokens(V.text,[],De,ze),pe.push(V);continue}if(V=this.tokenizer.codespan(te)){te=te.substring(V.raw.length),pe.push(V);continue}if(V=this.tokenizer.br(te)){te=te.substring(V.raw.length),pe.push(V);continue}if(V=this.tokenizer.del(te)){te=te.substring(V.raw.length),V.tokens=this.inlineTokens(V.text,[],De,ze),pe.push(V);continue}if(V=this.tokenizer.autolink(te,_e)){te=te.substring(V.raw.length),pe.push(V);continue}if(!De&&(V=this.tokenizer.url(te,_e))){te=te.substring(V.raw.length),pe.push(V);continue}if(V=this.tokenizer.inlineText(te,ze,oe)){te=te.substring(V.raw.length),V.raw.slice(-1)!=="_"&&(bt=V.raw.slice(-1)),ln=!0,kt=pe[pe.length-1],kt&&kt.type==="text"?(kt.raw+=V.raw,kt.text+=V.text):pe.push(V);continue}if(te){var Gt="Infinite loop on byte: "+te.charCodeAt(0);if(this.options.silent){console.error(Gt);break}else throw new Error(Gt)}}return pe},_(ke,null,[{key:"rules",get:function(){return{block:Ft,inline:nt}}}]),ke}(),ce=Re.exports.defaults,xe=X.cleanUrl,O=X.escape,C=function(){function ke(We){this.options=We||ce}var He=ke.prototype;return He.code=function(te,pe,De){var ze=(pe||"").match(/\S*/)[0];if(this.options.highlight){var V=this.options.highlight(te,ze);V!=null&&V!==te&&(De=!0,te=V)}return te=te.replace(/\n$/,"")+`
`,ze?'<pre><code class="'+this.options.langPrefix+O(ze,!0)+'">'+(De?te:O(te,!0))+`</code></pre>
`:"<pre><code>"+(De?te:O(te,!0))+`</code></pre>
`},He.blockquote=function(te){return`<blockquote>
`+te+`</blockquote>
`},He.html=function(te){return te},He.heading=function(te,pe,De,ze){return this.options.headerIds?"<h"+pe+' id="'+this.options.headerPrefix+ze.slug(De)+'">'+te+"</h"+pe+`>
`:"<h"+pe+">"+te+"</h"+pe+`>
`},He.hr=function(){return this.options.xhtml?`<hr/>
`:`<hr>
`},He.list=function(te,pe,De){var ze=pe?"ol":"ul",V=pe&&De!==1?' start="'+De+'"':"";return"<"+ze+V+`>
`+te+"</"+ze+`>
`},He.listitem=function(te){return"<li>"+te+`</li>
`},He.checkbox=function(te){return"<input "+(te?'checked="" ':"")+'disabled="" type="checkbox"'+(this.options.xhtml?" /":"")+"> "},He.paragraph=function(te){return"<p>"+te+`</p>
`},He.table=function(te,pe){return pe&&(pe="<tbody>"+pe+"</tbody>"),`<table>
<thead>
`+te+`</thead>
`+pe+`</table>
`},He.tablerow=function(te){return`<tr>
`+te+`</tr>
`},He.tablecell=function(te,pe){var De=pe.header?"th":"td",ze=pe.align?"<"+De+' align="'+pe.align+'">':"<"+De+">";return ze+te+"</"+De+`>
`},He.strong=function(te){return"<strong>"+te+"</strong>"},He.em=function(te){return"<em>"+te+"</em>"},He.codespan=function(te){return"<code>"+te+"</code>"},He.br=function(){return this.options.xhtml?"<br/>":"<br>"},He.del=function(te){return"<del>"+te+"</del>"},He.link=function(te,pe,De){if(te=xe(this.options.sanitize,this.options.baseUrl,te),te===null)return De;var ze='<a href="'+O(te)+'"';return pe&&(ze+=' title="'+pe+'"'),ze+=">"+De+"</a>",ze},He.image=function(te,pe,De){if(te=xe(this.options.sanitize,this.options.baseUrl,te),te===null)return De;var ze='<img src="'+te+'" alt="'+De+'"';return pe&&(ze+=' title="'+pe+'"'),ze+=this.options.xhtml?"/>":">",ze},He.text=function(te){return te},ke}(),k=function(){function ke(){}var He=ke.prototype;return He.strong=function(te){return te},He.em=function(te){return te},He.codespan=function(te){return te},He.del=function(te){return te},He.html=function(te){return te},He.text=function(te){return te},He.link=function(te,pe,De){return""+De},He.image=function(te,pe,De){return""+De},He.br=function(){return""},ke}(),he=function(){function ke(){this.seen={}}var He=ke.prototype;return He.serialize=function(te){return te.toLowerCase().trim().replace(/<[!\/a-z].*?>/ig,"").replace(/[\u2000-\u206F\u2E00-\u2E7F\\'!"#$%&()*+,./:;<=>?@[\]^`{|}~]/g,"").replace(/\s/g,"-")},He.getNextSafeSlug=function(te,pe){var De=te,ze=0;if(this.seen.hasOwnProperty(De)){ze=this.seen[te];do ze++,De=te+"-"+ze;while(this.seen.hasOwnProperty(De))}return pe||(this.seen[te]=ze,this.seen[De]=0),De},He.slug=function(te,pe){pe===void 0&&(pe={});var De=this.serialize(te);return this.getNextSafeSlug(De,pe.dryrun)},ke}(),de=C,K=k,Ie=he,$e=Re.exports.defaults,Me=X.unescape,Be=function(){function ke(We){this.options=We||$e,this.options.renderer=this.options.renderer||new de,this.renderer=this.options.renderer,this.renderer.options=this.options,this.textRenderer=new K,this.slugger=new Ie}ke.parse=function(te,pe){var De=new ke(pe);return De.parse(te)},ke.parseInline=function(te,pe){var De=new ke(pe);return De.parseInline(te)};var He=ke.prototype;return He.parse=function(te,pe){pe===void 0&&(pe=!0);var De="",ze,V,kt,Le,jt,ln,bt,Lt,ot,ft,Gt,yn,nn,je,we,ut,it,yt,Mt=te.length;for(ze=0;ze<Mt;ze++)switch(ft=te[ze],ft.type){case"space":continue;case"hr":{De+=this.renderer.hr();continue}case"heading":{De+=this.renderer.heading(this.parseInline(ft.tokens),ft.depth,Me(this.parseInline(ft.tokens,this.textRenderer)),this.slugger);continue}case"code":{De+=this.renderer.code(ft.text,ft.lang,ft.escaped);continue}case"table":{for(Lt="",bt="",Le=ft.header.length,V=0;V<Le;V++)bt+=this.renderer.tablecell(this.parseInline(ft.tokens.header[V]),{header:!0,align:ft.align[V]});for(Lt+=this.renderer.tablerow(bt),ot="",Le=ft.cells.length,V=0;V<Le;V++){for(ln=ft.tokens.cells[V],bt="",jt=ln.length,kt=0;kt<jt;kt++)bt+=this.renderer.tablecell(this.parseInline(ln[kt]),{header:!1,align:ft.align[kt]});ot+=this.renderer.tablerow(bt)}De+=this.renderer.table(Lt,ot);continue}case"blockquote":{ot=this.parse(ft.tokens),De+=this.renderer.blockquote(ot);continue}case"list":{for(Gt=ft.ordered,yn=ft.start,nn=ft.loose,Le=ft.items.length,ot="",V=0;V<Le;V++)we=ft.items[V],ut=we.checked,it=we.task,je="",we.task&&(yt=this.renderer.checkbox(ut),nn?we.tokens.length>0&&we.tokens[0].type==="text"?(we.tokens[0].text=yt+" "+we.tokens[0].text,we.tokens[0].tokens&&we.tokens[0].tokens.length>0&&we.tokens[0].tokens[0].type==="text"&&(we.tokens[0].tokens[0].text=yt+" "+we.tokens[0].tokens[0].text)):we.tokens.unshift({type:"text",text:yt}):je+=yt),je+=this.parse(we.tokens,nn),ot+=this.renderer.listitem(je,it,ut);De+=this.renderer.list(ot,Gt,yn);continue}case"html":{De+=this.renderer.html(ft.text);continue}case"paragraph":{De+=this.renderer.paragraph(this.parseInline(ft.tokens));continue}case"text":{for(ot=ft.tokens?this.parseInline(ft.tokens):ft.text;ze+1<Mt&&te[ze+1].type==="text";)ft=te[++ze],ot+=`
`+(ft.tokens?this.parseInline(ft.tokens):ft.text);De+=pe?this.renderer.paragraph(ot):ot;continue}default:{var Kt='Token with "'+ft.type+'" type was not found.';if(this.options.silent){console.error(Kt);return}else throw new Error(Kt)}}return De},He.parseInline=function(te,pe){pe=pe||this.renderer;var De="",ze,V,kt=te.length;for(ze=0;ze<kt;ze++)switch(V=te[ze],V.type){case"escape":{De+=pe.text(V.text);break}case"html":{De+=pe.html(V.text);break}case"link":{De+=pe.link(V.href,V.title,this.parseInline(V.tokens,pe));break}case"image":{De+=pe.image(V.href,V.title,V.text);break}case"strong":{De+=pe.strong(this.parseInline(V.tokens,pe));break}case"em":{De+=pe.em(this.parseInline(V.tokens,pe));break}case"codespan":{De+=pe.codespan(V.text);break}case"br":{De+=pe.br();break}case"del":{De+=pe.del(this.parseInline(V.tokens,pe));break}case"text":{De+=pe.text(V.text);break}default:{var Le='Token with "'+V.type+'" type was not found.';if(this.options.silent){console.error(Le);return}else throw new Error(Le)}}return De},ke}(),Ye=M,Qe=Be,Je=Ue,dt=C,At=k,gt=he,Rt=X.merge,Ct=X.checkSanitizeDeprecation,x=X.escape,A=Re.exports.getDefaults,rt=Re.exports.changeDefaults,Y=Re.exports.defaults;function Ce(ke,He,We){if(typeof ke=="undefined"||ke===null)throw new Error("marked(): input parameter is undefined or null");if(typeof ke!="string")throw new Error("marked(): input parameter is of type "+Object.prototype.toString.call(ke)+", string expected");if(typeof He=="function"&&(We=He,He=null),He=Rt({},Ce.defaults,He||{}),Ct(He),We){var te=He.highlight,pe;try{pe=Ye.lex(ke,He)}catch(kt){return We(kt)}var De=function(Le){var jt;if(!Le)try{He.walkTokens&&Ce.walkTokens(pe,He.walkTokens),jt=Qe.parse(pe,He)}catch(ln){Le=ln}return He.highlight=te,Le?We(Le):We(null,jt)};if(!te||te.length<3||(delete He.highlight,!pe.length))return De();var ze=0;Ce.walkTokens(pe,function(kt){kt.type==="code"&&(ze++,setTimeout(function(){te(kt.text,kt.lang,function(Le,jt){if(Le)return De(Le);jt!=null&&jt!==kt.text&&(kt.text=jt,kt.escaped=!0),ze--,ze===0&&De()})},0))}),ze===0&&De();return}try{var V=Ye.lex(ke,He);return He.walkTokens&&Ce.walkTokens(V,He.walkTokens),Qe.parse(V,He)}catch(kt){if(kt.message+=`
Please report this to https://github.com/markedjs/marked.`,He.silent)return"<p>An error occurred:</p><pre>"+x(kt.message+"",!0)+"</pre>";throw kt}}Ce.options=Ce.setOptions=function(ke){return Rt(Ce.defaults,ke),rt(Ce.defaults),Ce},Ce.getDefaults=A,Ce.defaults=Y,Ce.use=function(ke){var He=Rt({},ke);if(ke.renderer&&function(){var te=Ce.defaults.renderer||new dt,pe=function(V){var kt=te[V];te[V]=function(){for(var Le=arguments.length,jt=new Array(Le),ln=0;ln<Le;ln++)jt[ln]=arguments[ln];var bt=ke.renderer[V].apply(te,jt);return bt===!1&&(bt=kt.apply(te,jt)),bt}};for(var De in ke.renderer)pe(De);He.renderer=te}(),ke.tokenizer&&function(){var te=Ce.defaults.tokenizer||new Je,pe=function(V){var kt=te[V];te[V]=function(){for(var Le=arguments.length,jt=new Array(Le),ln=0;ln<Le;ln++)jt[ln]=arguments[ln];var bt=ke.tokenizer[V].apply(te,jt);return bt===!1&&(bt=kt.apply(te,jt)),bt}};for(var De in ke.tokenizer)pe(De);He.tokenizer=te}(),ke.walkTokens){var We=Ce.defaults.walkTokens;He.walkTokens=function(te){ke.walkTokens(te),We&&We(te)}}Ce.setOptions(He)},Ce.walkTokens=function(ke,He){for(var We=ie(ke),te;!(te=We()).done;){var pe=te.value;switch(He(pe),pe.type){case"table":{for(var De=ie(pe.tokens.header),ze;!(ze=De()).done;){var V=ze.value;Ce.walkTokens(V,He)}for(var kt=ie(pe.tokens.cells),Le;!(Le=kt()).done;)for(var jt=Le.value,ln=ie(jt),bt;!(bt=ln()).done;){var Lt=bt.value;Ce.walkTokens(Lt,He)}break}case"list":{Ce.walkTokens(pe.items,He);break}default:pe.tokens&&Ce.walkTokens(pe.tokens,He)}}},Ce.parseInline=function(ke,He){if(typeof ke=="undefined"||ke===null)throw new Error("marked.parseInline(): input parameter is undefined or null");if(typeof ke!="string")throw new Error("marked.parseInline(): input parameter is of type "+Object.prototype.toString.call(ke)+", string expected");He=Rt({},Ce.defaults,He||{}),Ct(He);try{var We=Ye.lexInline(ke,He);return He.walkTokens&&Ce.walkTokens(We,He.walkTokens),Qe.parseInline(We,He)}catch(te){if(te.message+=`
Please report this to https://github.com/markedjs/marked.`,He.silent)return"<p>An error occurred:</p><pre>"+x(te.message+"",!0)+"</pre>";throw te}},Ce.Parser=Qe,Ce.parser=Qe.parse,Ce.Renderer=dt,Ce.TextRenderer=At,Ce.Lexer=Ye,Ce.lexer=Ye.lex,Ce.Tokenizer=Je,Ce.Slugger=gt,Ce.parse=Ce;var vn=Ce;return vn})},11690:function(Ht){const et=/[&<>"']/,_=/[&<>"']/g,T=/[<>"']|&(?!#?\w+;)/,N=/[<>"']|&(?!#?\w+;)/g,ie={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"},Re=U=>ie[U];function ve(U,fe){if(fe){if(et.test(U))return U.replace(_,Re)}else if(T.test(U))return U.replace(N,Re);return U}const le=/&(#(?:\d+)|(?:#x[0-9A-Fa-f]+)|(?:\w+));?/ig;function Te(U){return U.replace(le,(fe,ye)=>(ye=ye.toLowerCase(),ye==="colon"?":":ye.charAt(0)==="#"?ye.charAt(1)==="x"?String.fromCharCode(parseInt(ye.substring(2),16)):String.fromCharCode(+ye.substring(1)):""))}const be=/(^|[^\[])\^/g;function o(U,fe){U=U.source||U,fe=fe||"";const ye={replace:(Se,Ne)=>(Ne=Ne.source||Ne,Ne=Ne.replace(be,"$1"),U=U.replace(Se,Ne),ye),getRegex:()=>new RegExp(U,fe)};return ye}const L=/[^\w:]/g,$=/^$|^[a-z][a-z0-9+.-]*:|^[?#]/i;function v(U,fe,ye){if(U){let Se;try{Se=decodeURIComponent(Te(ye)).replace(L,"").toLowerCase()}catch(Ne){return null}if(Se.indexOf("javascript:")===0||Se.indexOf("vbscript:")===0||Se.indexOf("data:")===0)return null}fe&&!$.test(ye)&&(ye=ae(fe,ye));try{ye=encodeURI(ye).replace(/%25/g,"%")}catch(Se){return null}return ye}const c={},S=/^[^:]+:\/*[^/]*$/,y=/^([^:]+:)[\s\S]*$/,q=/^([^:]+:\/*[^/]*)[\s\S]*$/;function ae(U,fe){c[" "+U]||(S.test(U)?c[" "+U]=U+"/":c[" "+U]=re(U,"/",!0)),U=c[" "+U];const ye=U.indexOf(":")===-1;return fe.substring(0,2)==="//"?ye?fe:U.replace(y,"$1")+fe:fe.charAt(0)==="/"?ye?fe:U.replace(q,"$1")+fe:U+fe}const P={exec:function(){}};function z(U){let fe=1,ye,Se;for(;fe<arguments.length;fe++){ye=arguments[fe];for(Se in ye)Object.prototype.hasOwnProperty.call(ye,Se)&&(U[Se]=ye[Se])}return U}function W(U,fe){const ye=U.replace(/\|/g,(Z,B,ne)=>{let X=!1,me=B;for(;--me>=0&&ne[me]==="\\";)X=!X;return X?"|":" |"}),Se=ye.split(/ \|/);let Ne=0;if(Se.length>fe)Se.splice(fe);else for(;Se.length<fe;)Se.push("");for(;Ne<Se.length;Ne++)Se[Ne]=Se[Ne].trim().replace(/\\\|/g,"|");return Se}function re(U,fe,ye){const Se=U.length;if(Se===0)return"";let Ne=0;for(;Ne<Se;){const Z=U.charAt(Se-Ne-1);if(Z===fe&&!ye)Ne++;else if(Z!==fe&&ye)Ne++;else break}return U.substr(0,Se-Ne)}function b(U,fe){if(U.indexOf(fe[1])===-1)return-1;const ye=U.length;let Se=0,Ne=0;for(;Ne<ye;Ne++)if(U[Ne]==="\\")Ne++;else if(U[Ne]===fe[0])Se++;else if(U[Ne]===fe[1]&&(Se--,Se<0))return Ne;return-1}function D(U){U&&U.sanitize&&!U.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 F(U,fe){if(fe<1)return"";let ye="";for(;fe>1;)fe&1&&(ye+=U),fe>>=1,U+=U;return ye+U}Ht.exports={escape:ve,unescape:Te,edit:o,cleanUrl:v,resolveUrl:ae,noopTest:P,merge:z,splitCells:W,rtrim:re,findClosingBracket:b,checkSanitizeDeprecation:D,repeatString:F}},75918:function(Ht,et,_){"use strict";_.d(et,{Wi:function(){return le},Z0:function(){return Te},aU:function(){return ve},eZ:function(){return o},wY:function(){return be}});var T=_(4348),N=_(69323),ie=_(13268),Re=function(L,$,v,c){function S(y){return y instanceof v?y:new v(function(q){q(y)})}return new(v||(v=Promise))(function(y,q){function ae(W){try{z(c.next(W))}catch(re){q(re)}}function P(W){try{z(c.throw(W))}catch(re){q(re)}}function z(W){W.done?y(W.value):S(W.value).then(ae,P)}z((c=c.apply(L,$||[])).next())})};class ve extends N.JT{constructor($,v="",c="",S=!0,y){super(),this._onDidChange=this._register(new T.Q5),this.onDidChange=this._onDidChange.event,this._enabled=!0,this._id=$,this._label=v,this._cssClass=c,this._enabled=S,this._actionCallback=y}get id(){return this._id}get label(){return this._label}set label($){this._setLabel($)}_setLabel($){this._label!==$&&(this._label=$,this._onDidChange.fire({label:$}))}get tooltip(){return this._tooltip||""}set tooltip($){this._setTooltip($)}_setTooltip($){this._tooltip!==$&&(this._tooltip=$,this._onDidChange.fire({tooltip:$}))}get class(){return this._cssClass}set class($){this._setClass($)}_setClass($){this._cssClass!==$&&(this._cssClass=$,this._onDidChange.fire({class:$}))}get enabled(){return this._enabled}set enabled($){this._setEnabled($)}_setEnabled($){this._enabled!==$&&(this._enabled=$,this._onDidChange.fire({enabled:$}))}get checked(){return this._checked}set checked($){this._setChecked($)}_setChecked($){this._checked!==$&&(this._checked=$,this._onDidChange.fire({checked:$}))}run($,v){return Re(this,void 0,void 0,function*(){this._actionCallback&&(yield this._actionCallback($))})}}class le extends N.JT{constructor(){super(...arguments),this._onBeforeRun=this._register(new T.Q5),this.onBeforeRun=this._onBeforeRun.event,this._onDidRun=this._register(new T.Q5),this.onDidRun=this._onDidRun.event}run($,v){return Re(this,void 0,void 0,function*(){if(!$.enabled)return;this._onBeforeRun.fire({action:$});let c;try{yield this.runAction($,v)}catch(S){c=S}this._onDidRun.fire({action:$,error:c})})}runAction($,v){return Re(this,void 0,void 0,function*(){yield $.run(v)})}}class Te extends ve{constructor($){super(Te.ID,$,$?"separator text":"separator"),this.checked=!1,this.enabled=!1}}Te.ID="vs.actions.separator";class be{constructor($,v,c,S){this.tooltip="",this.enabled=!0,this.checked=!1,this.id=$,this.label=v,this.class=S,this._actions=c}get actions(){return this._actions}dispose(){}run(){return Re(this,void 0,void 0,function*(){})}}class o extends ve{constructor(){super(o.ID,ie.N("submenu.empty","(empty)"),void 0,!1)}}o.ID="vs.actions.empty"},76068:function(Ht,et,_){"use strict";_.d(et,{ok:function(){return T}});function T(N,ie){if(!N)throw new Error(ie?`Assertion failed (${ie})`:"Assertion Failed")}},52615:function(Ht,et,_){"use strict";_.d(et,{CM:function(){return ve},JL:function(){return le},dT:function(){return be},fK:function(){return Re},lA:function(){return Te}});var T=_(4348);class N{constructor(){this._icons=new Map,this._onDidRegister=new T.Q5}add(L){const $=this._icons.get(L.id);$?L.description?$.description=L.description:console.error(`Duplicate registration of codicon ${L.id}`):(this._icons.set(L.id,L),this._onDidRegister.fire(L))}get(L){return this._icons.get(L)}get all(){return this._icons.values()}get onDidRegister(){return this._onDidRegister.event}}const ie=new N,Re=ie;function ve(o,L){return new Te(o,L)}function le(o){return o?o.replace(/\$\((.*?)\)/g,(L,$)=>` ${$} `).trim():""}class Te{constructor(L,$,v){this.id=L,this.definition=$,this.description=v,ie.add(this)}get classNames(){return"codicon codicon-"+this.id}get classNamesArray(){return["codicon","codicon-"+this.id]}get cssSelector(){return".codicon.codicon-"+this.id}}var be;(function(o){o.iconNameSegment="[A-Za-z0-9]+",o.iconNameExpression="[A-Za-z0-9\\-]+",o.iconModifierExpression="~[A-Za-z]+";const L=new RegExp(`^(${o.iconNameExpression})(${o.iconModifierExpression})?$`);function $(S){if(S instanceof Te)return["codicon","codicon-"+S.id];const y=L.exec(S.id);if(!y)return $(Te.error);let[,q,ae]=y;const P=["codicon","codicon-"+q];return ae&&P.push("codicon-modifier-"+ae.substr(1)),P}o.asClassNameArray=$;function v(S){return $(S).join(" ")}o.asClassName=v;function c(S){return"."+$(S).join(".")}o.asCSSSelector=c})(be||(be={})),function(o){o.add=new o("add",{fontCharacter:"\\ea60"}),o.plus=new o("plus",o.add.definition),o.gistNew=new o("gist-new",o.add.definition),o.repoCreate=new o("repo-create",o.add.definition),o.lightbulb=new o("lightbulb",{fontCharacter:"\\ea61"}),o.lightBulb=new o("light-bulb",{fontCharacter:"\\ea61"}),o.repo=new o("repo",{fontCharacter:"\\ea62"}),o.repoDelete=new o("repo-delete",{fontCharacter:"\\ea62"}),o.gistFork=new o("gist-fork",{fontCharacter:"\\ea63"}),o.repoForked=new o("repo-forked",{fontCharacter:"\\ea63"}),o.gitPullRequest=new o("git-pull-request",{fontCharacter:"\\ea64"}),o.gitPullRequestAbandoned=new o("git-pull-request-abandoned",{fontCharacter:"\\ea64"}),o.recordKeys=new o("record-keys",{fontCharacter:"\\ea65"}),o.keyboard=new o("keyboard",{fontCharacter:"\\ea65"}),o.tag=new o("tag",{fontCharacter:"\\ea66"}),o.tagAdd=new o("tag-add",{fontCharacter:"\\ea66"}),o.tagRemove=new o("tag-remove",{fontCharacter:"\\ea66"}),o.person=new o("person",{fontCharacter:"\\ea67"}),o.personFollow=new o("person-follow",{fontCharacter:"\\ea67"}),o.personOutline=new o("person-outline",{fontCharacter:"\\ea67"}),o.personFilled=new o("person-filled",{fontCharacter:"\\ea67"}),o.gitBranch=new o("git-branch",{fontCharacter:"\\ea68"}),o.gitBranchCreate=new o("git-branch-create",{fontCharacter:"\\ea68"}),o.gitBranchDelete=new o("git-branch-delete",{fontCharacter:"\\ea68"}),o.sourceControl=new o("source-control",{fontCharacter:"\\ea68"}),o.mirror=new o("mirror",{fontCharacter:"\\ea69"}),o.mirrorPublic=new o("mirror-public",{fontCharacter:"\\ea69"}),o.star=new o("star",{fontCharacter:"\\ea6a"}),o.starAdd=new o("star-add",{fontCharacter:"\\ea6a"}),o.starDelete=new o("star-delete",{fontCharacter:"\\ea6a"}),o.starEmpty=new o("star-empty",{fontCharacter:"\\ea6a"}),o.comment=new o("comment",{fontCharacter:"\\ea6b"}),o.commentAdd=new o("comment-add",{fontCharacter:"\\ea6b"}),o.alert=new o("alert",{fontCharacter:"\\ea6c"}),o.warning=new o("warning",{fontCharacter:"\\ea6c"}),o.search=new o("search",{fontCharacter:"\\ea6d"}),o.searchSave=new o("search-save",{fontCharacter:"\\ea6d"}),o.logOut=new o("log-out",{fontCharacter:"\\ea6e"}),o.signOut=new o("sign-out",{fontCharacter:"\\ea6e"}),o.logIn=new o("log-in",{fontCharacter:"\\ea6f"}),o.signIn=new o("sign-in",{fontCharacter:"\\ea6f"}),o.eye=new o("eye",{fontCharacter:"\\ea70"}),o.eyeUnwatch=new o("eye-unwatch",{fontCharacter:"\\ea70"}),o.eyeWatch=new o("eye-watch",{fontCharacter:"\\ea70"}),o.circleFilled=new o("circle-filled",{fontCharacter:"\\ea71"}),o.primitiveDot=new o("primitive-dot",{fontCharacter:"\\ea71"}),o.closeDirty=new o("close-dirty",{fontCharacter:"\\ea71"}),o.debugBreakpoint=new o("debug-breakpoint",{fontCharacter:"\\ea71"}),o.debugBreakpointDisabled=new o("debug-breakpoint-disabled",{fontCharacter:"\\ea71"}),o.debugHint=new o("debug-hint",{fontCharacter:"\\ea71"}),o.primitiveSquare=new o("primitive-square",{fontCharacter:"\\ea72"}),o.edit=new o("edit",{fontCharacter:"\\ea73"}),o.pencil=new o("pencil",{fontCharacter:"\\ea73"}),o.info=new o("info",{fontCharacter:"\\ea74"}),o.issueOpened=new o("issue-opened",{fontCharacter:"\\ea74"}),o.gistPrivate=new o("gist-private",{fontCharacter:"\\ea75"}),o.gitForkPrivate=new o("git-fork-private",{fontCharacter:"\\ea75"}),o.lock=new o("lock",{fontCharacter:"\\ea75"}),o.mirrorPrivate=new o("mirror-private",{fontCharacter:"\\ea75"}),o.close=new o("close",{fontCharacter:"\\ea76"}),o.removeClose=new o("remove-close",{fontCharacter:"\\ea76"}),o.x=new o("x",{fontCharacter:"\\ea76"}),o.repoSync=new o("repo-sync",{fontCharacter:"\\ea77"}),o.sync=new o("sync",{fontCharacter:"\\ea77"}),o.clone=new o("clone",{fontCharacter:"\\ea78"}),o.desktopDownload=new o("desktop-download",{fontCharacter:"\\ea78"}),o.beaker=new o("beaker",{fontCharacter:"\\ea79"}),o.microscope=new o("microscope",{fontCharacter:"\\ea79"}),o.vm=new o("vm",{fontCharacter:"\\ea7a"}),o.deviceDesktop=new o("device-desktop",{fontCharacter:"\\ea7a"}),o.file=new o("file",{fontCharacter:"\\ea7b"}),o.fileText=new o("file-text",{fontCharacter:"\\ea7b"}),o.more=new o("more",{fontCharacter:"\\ea7c"}),o.ellipsis=new o("ellipsis",{fontCharacter:"\\ea7c"}),o.kebabHorizontal=new o("kebab-horizontal",{fontCharacter:"\\ea7c"}),o.mailReply=new o("mail-reply",{fontCharacter:"\\ea7d"}),o.reply=new o("reply",{fontCharacter:"\\ea7d"}),o.organization=new o("organization",{fontCharacter:"\\ea7e"}),o.organizationFilled=new o("organization-filled",{fontCharacter:"\\ea7e"}),o.organizationOutline=new o("organization-outline",{fontCharacter:"\\ea7e"}),o.newFile=new o("new-file",{fontCharacter:"\\ea7f"}),o.fileAdd=new o("file-add",{fontCharacter:"\\ea7f"}),o.newFolder=new o("new-folder",{fontCharacter:"\\ea80"}),o.fileDirectoryCreate=new o("file-directory-create",{fontCharacter:"\\ea80"}),o.trash=new o("trash",{fontCharacter:"\\ea81"}),o.trashcan=new o("trashcan",{fontCharacter:"\\ea81"}),o.history=new o("history",{fontCharacter:"\\ea82"}),o.clock=new o("clock",{fontCharacter:"\\ea82"}),o.folder=new o("folder",{fontCharacter:"\\ea83"}),o.fileDirectory=new o("file-directory",{fontCharacter:"\\ea83"}),o.symbolFolder=new o("symbol-folder",{fontCharacter:"\\ea83"}),o.logoGithub=new o("logo-github",{fontCharacter:"\\ea84"}),o.markGithub=new o("mark-github",{fontCharacter:"\\ea84"}),o.github=new o("github",{fontCharacter:"\\ea84"}),o.terminal=new o("terminal",{fontCharacter:"\\ea85"}),o.console=new o("console",{fontCharacter:"\\ea85"}),o.repl=new o("repl",{fontCharacter:"\\ea85"}),o.zap=new o("zap",{fontCharacter:"\\ea86"}),o.symbolEvent=new o("symbol-event",{fontCharacter:"\\ea86"}),o.error=new o("error",{fontCharacter:"\\ea87"}),o.stop=new o("stop",{fontCharacter:"\\ea87"}),o.variable=new o("variable",{fontCharacter:"\\ea88"}),o.symbolVariable=new o("symbol-variable",{fontCharacter:"\\ea88"}),o.array=new o("array",{fontCharacter:"\\ea8a"}),o.symbolArray=new o("symbol-array",{fontCharacter:"\\ea8a"}),o.symbolModule=new o("symbol-module",{fontCharacter:"\\ea8b"}),o.symbolPackage=new o("symbol-package",{fontCharacter:"\\ea8b"}),o.symbolNamespace=new o("symbol-namespace",{fontCharacter:"\\ea8b"}),o.symbolObject=new o("symbol-object",{fontCharacter:"\\ea8b"}),o.symbolMethod=new o("symbol-method",{fontCharacter:"\\ea8c"}),o.symbolFunction=new o("symbol-function",{fontCharacter:"\\ea8c"}),o.symbolConstructor=new o("symbol-constructor",{fontCharacter:"\\ea8c"}),o.symbolBoolean=new o("symbol-boolean",{fontCharacter:"\\ea8f"}),o.symbolNull=new o("symbol-null",{fontCharacter:"\\ea8f"}),o.symbolNumeric=new o("symbol-numeric",{fontCharacter:"\\ea90"}),o.symbolNumber=new o("symbol-number",{fontCharacter:"\\ea90"}),o.symbolStructure=new o("symbol-structure",{fontCharacter:"\\ea91"}),o.symbolStruct=new o("symbol-struct",{fontCharacter:"\\ea91"}),o.symbolParameter=new o("symbol-parameter",{fontCharacter:"\\ea92"}),o.symbolTypeParameter=new o("symbol-type-parameter",{fontCharacter:"\\ea92"}),o.symbolKey=new o("symbol-key",{fontCharacter:"\\ea93"}),o.symbolText=new o("symbol-text",{fontCharacter:"\\ea93"}),o.symbolReference=new o("symbol-reference",{fontCharacter:"\\ea94"}),o.goToFile=new o("go-to-file",{fontCharacter:"\\ea94"}),o.symbolEnum=new o("symbol-enum",{fontCharacter:"\\ea95"}),o.symbolValue=new o("symbol-value",{fontCharacter:"\\ea95"}),o.symbolRuler=new o("symbol-ruler",{fontCharacter:"\\ea96"}),o.symbolUnit=new o("symbol-unit",{fontCharacter:"\\ea96"}),o.activateBreakpoints=new o("activate-breakpoints",{fontCharacter:"\\ea97"}),o.archive=new o("archive",{fontCharacter:"\\ea98"}),o.arrowBoth=new o("arrow-both",{fontCharacter:"\\ea99"}),o.arrowDown=new o("arrow-down",{fontCharacter:"\\ea9a"}),o.arrowLeft=new o("arrow-left",{fontCharacter:"\\ea9b"}),o.arrowRight=new o("arrow-right",{fontCharacter:"\\ea9c"}),o.arrowSmallDown=new o("arrow-small-down",{fontCharacter:"\\ea9d"}),o.arrowSmallLeft=new o("arrow-small-left",{fontCharacter:"\\ea9e"}),o.arrowSmallRight=new o("arrow-small-right",{fontCharacter:"\\ea9f"}),o.arrowSmallUp=new o("arrow-small-up",{fontCharacter:"\\eaa0"}),o.arrowUp=new o("arrow-up",{fontCharacter:"\\eaa1"}),o.bell=new o("bell",{fontCharacter:"\\eaa2"}),o.bold=new o("bold",{fontCharacter:"\\eaa3"}),o.book=new o("book",{fontCharacter:"\\eaa4"}),o.bookmark=new o("bookmark",{fontCharacter:"\\eaa5"}),o.debugBreakpointConditionalUnverified=new o("debug-breakpoint-conditional-unverified",{fontCharacter:"\\eaa6"}),o.debugBreakpointConditional=new o("debug-breakpoint-conditional",{fontCharacter:"\\eaa7"}),o.debugBreakpointConditionalDisabled=new o("debug-breakpoint-conditional-disabled",{fontCharacter:"\\eaa7"}),o.debugBreakpointDataUnverified=new o("debug-breakpoint-data-unverified",{fontCharacter:"\\eaa8"}),o.debugBreakpointData=new o("debug-breakpoint-data",{fontCharacter:"\\eaa9"}),o.debugBreakpointDataDisabled=new o("debug-breakpoint-data-disabled",{fontCharacter:"\\eaa9"}),o.debugBreakpointLogUnverified=new o("debug-breakpoint-log-unverified",{fontCharacter:"\\eaaa"}),o.debugBreakpointLog=new o("debug-breakpoint-log",{fontCharacter:"\\eaab"}),o.debugBreakpointLogDisabled=new o("debug-breakpoint-log-disabled",{fontCharacter:"\\eaab"}),o.briefcase=new o("briefcase",{fontCharacter:"\\eaac"}),o.broadcast=new o("broadcast",{fontCharacter:"\\eaad"}),o.browser=new o("browser",{fontCharacter:"\\eaae"}),o.bug=new o("bug",{fontCharacter:"\\eaaf"}),o.calendar=new o("calendar",{fontCharacter:"\\eab0"}),o.caseSensitive=new o("case-sensitive",{fontCharacter:"\\eab1"}),o.check=new o("check",{fontCharacter:"\\eab2"}),o.checklist=new o("checklist",{fontCharacter:"\\eab3"}),o.chevronDown=new o("chevron-down",{fontCharacter:"\\eab4"}),o.dropDownButton=new o("drop-down-button",o.chevronDown.definition),o.chevronLeft=new o("chevron-left",{fontCharacter:"\\eab5"}),o.chevronRight=new o("chevron-right",{fontCharacter:"\\eab6"}),o.chevronUp=new o("chevron-up",{fontCharacter:"\\eab7"}),o.chromeClose=new o("chrome-close",{fontCharacter:"\\eab8"}),o.chromeMaximize=new o("chrome-maximize",{fontCharacter:"\\eab9"}),o.chromeMinimize=new o("chrome-minimize",{fontCharacter:"\\eaba"}),o.chromeRestore=new o("chrome-restore",{fontCharacter:"\\eabb"}),o.circleOutline=new o("circle-outline",{fontCharacter:"\\eabc"}),o.debugBreakpointUnverified=new o("debug-breakpoint-unverified",{fontCharacter:"\\eabc"}),o.circleSlash=new o("circle-slash",{fontCharacter:"\\eabd"}),o.circuitBoard=new o("circuit-board",{fontCharacter:"\\eabe"}),o.clearAll=new o("clear-all",{fontCharacter:"\\eabf"}),o.clippy=new o("clippy",{fontCharacter:"\\eac0"}),o.closeAll=new o("close-all",{fontCharacter:"\\eac1"}),o.cloudDownload=new o("cloud-download",{fontCharacter:"\\eac2"}),o.cloudUpload=new o("cloud-upload",{fontCharacter:"\\eac3"}),o.code=new o("code",{fontCharacter:"\\eac4"}),o.collapseAll=new o("collapse-all",{fontCharacter:"\\eac5"}),o.colorMode=new o("color-mode",{fontCharacter:"\\eac6"}),o.commentDiscussion=new o("comment-discussion",{fontCharacter:"\\eac7"}),o.compareChanges=new o("compare-changes",{fontCharacter:"\\eafd"}),o.creditCard=new o("credit-card",{fontCharacter:"\\eac9"}),o.dash=new o("dash",{fontCharacter:"\\eacc"}),o.dashboard=new o("dashboard",{fontCharacter:"\\eacd"}),o.database=new o("database",{fontCharacter:"\\eace"}),o.debugContinue=new o("debug-continue",{fontCharacter:"\\eacf"}),o.debugDisconnect=new o("debug-disconnect",{fontCharacter:"\\ead0"}),o.debugPause=new o("debug-pause",{fontCharacter:"\\ead1"}),o.debugRestart=new o("debug-restart",{fontCharacter:"\\ead2"}),o.debugStart=new o("debug-start",{fontCharacter:"\\ead3"}),o.debugStepInto=new o("debug-step-into",{fontCharacter:"\\ead4"}),o.debugStepOut=new o("debug-step-out",{fontCharacter:"\\ead5"}),o.debugStepOver=new o("debug-step-over",{fontCharacter:"\\ead6"}),o.debugStop=new o("debug-stop",{fontCharacter:"\\ead7"}),o.debug=new o("debug",{fontCharacter:"\\ead8"}),o.deviceCameraVideo=new o("device-camera-video",{fontCharacter:"\\ead9"}),o.deviceCamera=new o("device-camera",{fontCharacter:"\\eada"}),o.deviceMobile=new o("device-mobile",{fontCharacter:"\\eadb"}),o.diffAdded=new o("diff-added",{fontCharacter:"\\eadc"}),o.diffIgnored=new o("diff-ignored",{fontCharacter:"\\eadd"}),o.diffModified=new o("diff-modified",{fontCharacter:"\\eade"}),o.diffRemoved=new o("diff-removed",{fontCharacter:"\\eadf"}),o.diffRenamed=new o("diff-renamed",{fontCharacter:"\\eae0"}),o.diff=new o("diff",{fontCharacter:"\\eae1"}),o.discard=new o("discard",{fontCharacter:"\\eae2"}),o.editorLayout=new o("editor-layout",{fontCharacter:"\\eae3"}),o.emptyWindow=new o("empty-window",{fontCharacter:"\\eae4"}),o.exclude=new o("exclude",{fontCharacter:"\\eae5"}),o.extensions=new o("extensions",{fontCharacter:"\\eae6"}),o.eyeClosed=new o("eye-closed",{fontCharacter:"\\eae7"}),o.fileBinary=new o("file-binary",{fontCharacter:"\\eae8"}),o.fileCode=new o("file-code",{fontCharacter:"\\eae9"}),o.fileMedia=new o("file-media",{fontCharacter:"\\eaea"}),o.filePdf=new o("file-pdf",{fontCharacter:"\\eaeb"}),o.fileSubmodule=new o("file-submodule",{fontCharacter:"\\eaec"}),o.fileSymlinkDirectory=new o("file-symlink-directory",{fontCharacter:"\\eaed"}),o.fileSymlinkFile=new o("file-symlink-file",{fontCharacter:"\\eaee"}),o.fileZip=new o("file-zip",{fontCharacter:"\\eaef"}),o.files=new o("files",{fontCharacter:"\\eaf0"}),o.filter=new o("filter",{fontCharacter:"\\eaf1"}),o.flame=new o("flame",{fontCharacter:"\\eaf2"}),o.foldDown=new o("fold-down",{fontCharacter:"\\eaf3"}),o.foldUp=new o("fold-up",{fontCharacter:"\\eaf4"}),o.fold=new o("fold",{fontCharacter:"\\eaf5"}),o.folderActive=new o("folder-active",{fontCharacter:"\\eaf6"}),o.folderOpened=new o("folder-opened",{fontCharacter:"\\eaf7"}),o.gear=new o("gear",{fontCharacter:"\\eaf8"}),o.gift=new o("gift",{fontCharacter:"\\eaf9"}),o.gistSecret=new o("gist-secret",{fontCharacter:"\\eafa"}),o.gist=new o("gist",{fontCharacter:"\\eafb"}),o.gitCommit=new o("git-commit",{fontCharacter:"\\eafc"}),o.gitCompare=new o("git-compare",{fontCharacter:"\\eafd"}),o.gitMerge=new o("git-merge",{fontCharacter:"\\eafe"}),o.githubAction=new o("github-action",{fontCharacter:"\\eaff"}),o.githubAlt=new o("github-alt",{fontCharacter:"\\eb00"}),o.globe=new o("globe",{fontCharacter:"\\eb01"}),o.grabber=new o("grabber",{fontCharacter:"\\eb02"}),o.graph=new o("graph",{fontCharacter:"\\eb03"}),o.gripper=new o("gripper",{fontCharacter:"\\eb04"}),o.heart=new o("heart",{fontCharacter:"\\eb05"}),o.home=new o("home",{fontCharacter:"\\eb06"}),o.horizontalRule=new o("horizontal-rule",{fontCharacter:"\\eb07"}),o.hubot=new o("hubot",{fontCharacter:"\\eb08"}),o.inbox=new o("inbox",{fontCharacter:"\\eb09"}),o.issueClosed=new o("issue-closed",{fontCharacter:"\\eba4"}),o.issueReopened=new o("issue-reopened",{fontCharacter:"\\eb0b"}),o.issues=new o("issues",{fontCharacter:"\\eb0c"}),o.italic=new o("italic",{fontCharacter:"\\eb0d"}),o.jersey=new o("jersey",{fontCharacter:"\\eb0e"}),o.json=new o("json",{fontCharacter:"\\eb0f"}),o.kebabVertical=new o("kebab-vertical",{fontCharacter:"\\eb10"}),o.key=new o("key",{fontCharacter:"\\eb11"}),o.law=new o("law",{fontCharacter:"\\eb12"}),o.lightbulbAutofix=new o("lightbulb-autofix",{fontCharacter:"\\eb13"}),o.linkExternal=new o("link-external",{fontCharacter:"\\eb14"}),o.link=new o("link",{fontCharacter:"\\eb15"}),o.listOrdered=new o("list-ordered",{fontCharacter:"\\eb16"}),o.listUnordered=new o("list-unordered",{fontCharacter:"\\eb17"}),o.liveShare=new o("live-share",{fontCharacter:"\\eb18"}),o.loading=new o("loading",{fontCharacter:"\\eb19"}),o.location=new o("location",{fontCharacter:"\\eb1a"}),o.mailRead=new o("mail-read",{fontCharacter:"\\eb1b"}),o.mail=new o("mail",{fontCharacter:"\\eb1c"}),o.markdown=new o("markdown",{fontCharacter:"\\eb1d"}),o.megaphone=new o("megaphone",{fontCharacter:"\\eb1e"}),o.mention=new o("mention",{fontCharacter:"\\eb1f"}),o.milestone=new o("milestone",{fontCharacter:"\\eb20"}),o.mortarBoard=new o("mortar-board",{fontCharacter:"\\eb21"}),o.move=new o("move",{fontCharacter:"\\eb22"}),o.multipleWindows=new o("multiple-windows",{fontCharacter:"\\eb23"}),o.mute=new o("mute",{fontCharacter:"\\eb24"}),o.noNewline=new o("no-newline",{fontCharacter:"\\eb25"}),o.note=new o("note",{fontCharacter:"\\eb26"}),o.octoface=new o("octoface",{fontCharacter:"\\eb27"}),o.openPreview=new o("open-preview",{fontCharacter:"\\eb28"}),o.package_=new o("package",{fontCharacter:"\\eb29"}),o.paintcan=new o("paintcan",{fontCharacter:"\\eb2a"}),o.pin=new o("pin",{fontCharacter:"\\eb2b"}),o.play=new o("play",{fontCharacter:"\\eb2c"}),o.run=new o("run",{fontCharacter:"\\eb2c"}),o.plug=new o("plug",{fontCharacter:"\\eb2d"}),o.preserveCase=new o("preserve-case",{fontCharacter:"\\eb2e"}),o.preview=new o("preview",{fontCharacter:"\\eb2f"}),o.project=new o("project",{fontCharacter:"\\eb30"}),o.pulse=new o("pulse",{fontCharacter:"\\eb31"}),o.question=new o("question",{fontCharacter:"\\eb32"}),o.quote=new o("quote",{fontCharacter:"\\eb33"}),o.radioTower=new o("radio-tower",{fontCharacter:"\\eb34"}),o.reactions=new o("reactions",{fontCharacter:"\\eb35"}),o.references=new o("references",{fontCharacter:"\\eb36"}),o.refresh=new o("refresh",{fontCharacter:"\\eb37"}),o.regex=new o("regex",{fontCharacter:"\\eb38"}),o.remoteExplorer=new o("remote-explorer",{fontCharacter:"\\eb39"}),o.remote=new o("remote",{fontCharacter:"\\eb3a"}),o.remove=new o("remove",{fontCharacter:"\\eb3b"}),o.replaceAll=new o("replace-all",{fontCharacter:"\\eb3c"}),o.replace=new o("replace",{fontCharacter:"\\eb3d"}),o.repoClone=new o("repo-clone",{fontCharacter:"\\eb3e"}),o.repoForcePush=new o("repo-force-push",{fontCharacter:"\\eb3f"}),o.repoPull=new o("repo-pull",{fontCharacter:"\\eb40"}),o.repoPush=new o("repo-push",{fontCharacter:"\\eb41"}),o.report=new o("report",{fontCharacter:"\\eb42"}),o.requestChanges=new o("request-changes",{fontCharacter:"\\eb43"}),o.rocket=new o("rocket",{fontCharacter:"\\eb44"}),o.rootFolderOpened=new o("root-folder-opened",{fontCharacter:"\\eb45"}),o.rootFolder=new o("root-folder",{fontCharacter:"\\eb46"}),o.rss=new o("rss",{fontCharacter:"\\eb47"}),o.ruby=new o("ruby",{fontCharacter:"\\eb48"}),o.saveAll=new o("save-all",{fontCharacter:"\\eb49"}),o.saveAs=new o("save-as",{fontCharacter:"\\eb4a"}),o.save=new o("save",{fontCharacter:"\\eb4b"}),o.screenFull=new o("screen-full",{fontCharacter:"\\eb4c"}),o.screenNormal=new o("screen-normal",{fontCharacter:"\\eb4d"}),o.searchStop=new o("search-stop",{fontCharacter:"\\eb4e"}),o.server=new o("server",{fontCharacter:"\\eb50"}),o.settingsGear=new o("settings-gear",{fontCharacter:"\\eb51"}),o.settings=new o("settings",{fontCharacter:"\\eb52"}),o.shield=new o("shield",{fontCharacter:"\\eb53"}),o.smiley=new o("smiley",{fontCharacter:"\\eb54"}),o.sortPrecedence=new o("sort-precedence",{fontCharacter:"\\eb55"}),o.splitHorizontal=new o("split-horizontal",{fontCharacter:"\\eb56"}),o.splitVertical=new o("split-vertical",{fontCharacter:"\\eb57"}),o.squirrel=new o("squirrel",{fontCharacter:"\\eb58"}),o.starFull=new o("star-full",{fontCharacter:"\\eb59"}),o.starHalf=new o("star-half",{fontCharacter:"\\eb5a"}),o.symbolClass=new o("symbol-class",{fontCharacter:"\\eb5b"}),o.symbolColor=new o("symbol-color",{fontCharacter:"\\eb5c"}),o.symbolConstant=new o("symbol-constant",{fontCharacter:"\\eb5d"}),o.symbolEnumMember=new o("symbol-enum-member",{fontCharacter:"\\eb5e"}),o.symbolField=new o("symbol-field",{fontCharacter:"\\eb5f"}),o.symbolFile=new o("symbol-file",{fontCharacter:"\\eb60"}),o.symbolInterface=new o("symbol-interface",{fontCharacter:"\\eb61"}),o.symbolKeyword=new o("symbol-keyword",{fontCharacter:"\\eb62"}),o.symbolMisc=new o("symbol-misc",{fontCharacter:"\\eb63"}),o.symbolOperator=new o("symbol-operator",{fontCharacter:"\\eb64"}),o.symbolProperty=new o("symbol-property",{fontCharacter:"\\eb65"}),o.wrench=new o("wrench",{fontCharacter:"\\eb65"}),o.wrenchSubaction=new o("wrench-subaction",{fontCharacter:"\\eb65"}),o.symbolSnippet=new o("symbol-snippet",{fontCharacter:"\\eb66"}),o.tasklist=new o("tasklist",{fontCharacter:"\\eb67"}),o.telescope=new o("telescope",{fontCharacter:"\\eb68"}),o.textSize=new o("text-size",{fontCharacter:"\\eb69"}),o.threeBars=new o("three-bars",{fontCharacter:"\\eb6a"}),o.thumbsdown=new o("thumbsdown",{fontCharacter:"\\eb6b"}),o.thumbsup=new o("thumbsup",{fontCharacter:"\\eb6c"}),o.tools=new o("tools",{fontCharacter:"\\eb6d"}),o.triangleDown=new o("triangle-down",{fontCharacter:"\\eb6e"}),o.triangleLeft=new o("triangle-left",{fontCharacter:"\\eb6f"}),o.triangleRight=new o("triangle-right",{fontCharacter:"\\eb70"}),o.triangleUp=new o("triangle-up",{fontCharacter:"\\eb71"}),o.twitter=new o("twitter",{fontCharacter:"\\eb72"}),o.unfold=new o("unfold",{fontCharacter:"\\eb73"}),o.unlock=new o("unlock",{fontCharacter:"\\eb74"}),o.unmute=new o("unmute",{fontCharacter:"\\eb75"}),o.unverified=new o("unverified",{fontCharacter:"\\eb76"}),o.verified=new o("verified",{fontCharacter:"\\eb77"}),o.versions=new o("versions",{fontCharacter:"\\eb78"}),o.vmActive=new o("vm-active",{fontCharacter:"\\eb79"}),o.vmOutline=new o("vm-outline",{fontCharacter:"\\eb7a"}),o.vmRunning=new o("vm-running",{fontCharacter:"\\eb7b"}),o.watch=new o("watch",{fontCharacter:"\\eb7c"}),o.whitespace=new o("whitespace",{fontCharacter:"\\eb7d"}),o.wholeWord=new o("whole-word",{fontCharacter:"\\eb7e"}),o.window=new o("window",{fontCharacter:"\\eb7f"}),o.wordWrap=new o("word-wrap",{fontCharacter:"\\eb80"}),o.zoomIn=new o("zoom-in",{fontCharacter:"\\eb81"}),o.zoomOut=new o("zoom-out",{fontCharacter:"\\eb82"}),o.listFilter=new o("list-filter",{fontCharacter:"\\eb83"}),o.listFlat=new o("list-flat",{fontCharacter:"\\eb84"}),o.listSelection=new o("list-selection",{fontCharacter:"\\eb85"}),o.selection=new o("selection",{fontCharacter:"\\eb85"}),o.listTree=new o("list-tree",{fontCharacter:"\\eb86"}),o.debugBreakpointFunctionUnverified=new o("debug-breakpoint-function-unverified",{fontCharacter:"\\eb87"}),o.debugBreakpointFunction=new o("debug-breakpoint-function",{fontCharacter:"\\eb88"}),o.debugBreakpointFunctionDisabled=new o("debug-breakpoint-function-disabled",{fontCharacter:"\\eb88"}),o.debugStackframeActive=new o("debug-stackframe-active",{fontCharacter:"\\eb89"}),o.debugStackframeDot=new o("debug-stackframe-dot",{fontCharacter:"\\eb8a"}),o.debugStackframe=new o("debug-stackframe",{fontCharacter:"\\eb8b"}),o.debugStackframeFocused=new o("debug-stackframe-focused",{fontCharacter:"\\eb8b"}),o.debugBreakpointUnsupported=new o("debug-breakpoint-unsupported",{fontCharacter:"\\eb8c"}),o.symbolString=new o("symbol-string",{fontCharacter:"\\eb8d"}),o.debugReverseContinue=new o("debug-reverse-continue",{fontCharacter:"\\eb8e"}),o.debugStepBack=new o("debug-step-back",{fontCharacter:"\\eb8f"}),o.debugRestartFrame=new o("debug-restart-frame",{fontCharacter:"\\eb90"}),o.callIncoming=new o("call-incoming",{fontCharacter:"\\eb92"}),o.callOutgoing=new o("call-outgoing",{fontCharacter:"\\eb93"}),o.menu=new o("menu",{fontCharacter:"\\eb94"}),o.expandAll=new o("expand-all",{fontCharacter:"\\eb95"}),o.feedback=new o("feedback",{fontCharacter:"\\eb96"}),o.groupByRefType=new o("group-by-ref-type",{fontCharacter:"\\eb97"}),o.ungroupByRefType=new o("ungroup-by-ref-type",{fontCharacter:"\\eb98"}),o.account=new o("account",{fontCharacter:"\\eb99"}),o.bellDot=new o("bell-dot",{fontCharacter:"\\eb9a"}),o.debugConsole=new o("debug-console",{fontCharacter:"\\eb9b"}),o.library=new o("library",{fontCharacter:"\\eb9c"}),o.output=new o("output",{fontCharacter:"\\eb9d"}),o.runAll=new o("run-all",{fontCharacter:"\\eb9e"}),o.syncIgnored=new o("sync-ignored",{fontCharacter:"\\eb9f"}),o.pinned=new o("pinned",{fontCharacter:"\\eba0"}),o.githubInverted=new o("github-inverted",{fontCharacter:"\\eba1"}),o.debugAlt=new o("debug-alt",{fontCharacter:"\\eb91"}),o.serverProcess=new o("server-process",{fontCharacter:"\\eba2"}),o.serverEnvironment=new o("server-environment",{fontCharacter:"\\eba3"}),o.pass=new o("pass",{fontCharacter:"\\eba4"}),o.stopCircle=new o("stop-circle",{fontCharacter:"\\eba5"}),o.playCircle=new o("play-circle",{fontCharacter:"\\eba6"}),o.record=new o("record",{fontCharacter:"\\eba7"}),o.debugAltSmall=new o("debug-alt-small",{fontCharacter:"\\eba8"}),o.vmConnect=new o("vm-connect",{fontCharacter:"\\eba9"}),o.cloud=new o("cloud",{fontCharacter:"\\ebaa"}),o.merge=new o("merge",{fontCharacter:"\\ebab"}),o.exportIcon=new o("export",{fontCharacter:"\\ebac"}),o.graphLeft=new o("graph-left",{fontCharacter:"\\ebad"}),o.magnet=new o("magnet",{fontCharacter:"\\ebae"}),o.notebook=new o("notebook",{fontCharacter:"\\ebaf"}),o.redo=new o("redo",{fontCharacter:"\\ebb0"}),o.checkAll=new o("check-all",{fontCharacter:"\\ebb1"}),o.pinnedDirty=new o("pinned-dirty",{fontCharacter:"\\ebb2"}),o.passFilled=new o("pass-filled",{fontCharacter:"\\ebb3"}),o.circleLargeFilled=new o("circle-large-filled",{fontCharacter:"\\ebb4"}),o.circleLargeOutline=new o("circle-large-outline",{fontCharacter:"\\ebb5"}),o.combine=new o("combine",{fontCharacter:"\\ebb6"}),o.gather=new o("gather",{fontCharacter:"\\ebb6"}),o.table=new o("table",{fontCharacter:"\\ebb7"}),o.variableGroup=new o("variable-group",{fontCharacter:"\\ebb8"}),o.typeHierarchy=new o("type-hierarchy",{fontCharacter:"\\ebb9"}),o.typeHierarchySub=new o("type-hierarchy-sub",{fontCharacter:"\\ebba"}),o.typeHierarchySuper=new o("type-hierarchy-super",{fontCharacter:"\\ebbb"}),o.gitPullRequestCreate=new o("git-pull-request-create",{fontCharacter:"\\ebbc"}),o.runAbove=new o("run-above",{fontCharacter:"\\ebbd"}),o.runBelow=new o("run-below",{fontCharacter:"\\ebbe"}),o.notebookTemplate=new o("notebook-template",{fontCharacter:"\\ebbf"}),o.debugRerun=new o("debug-rerun",{fontCharacter:"\\ebc0"}),o.workspaceTrusted=new o("workspace-trusted",{fontCharacter:"\\ebc1"}),o.workspaceUntrusted=new o("workspace-untrusted",{fontCharacter:"\\ebc2"}),o.workspaceUnspecified=new o("workspace-unspecified",{fontCharacter:"\\ebc3"}),o.terminalCmd=new o("terminal-cmd",{fontCharacter:"\\ebc4"}),o.terminalDebian=new o("terminal-debian",{fontCharacter:"\\ebc5"}),o.terminalLinux=new o("terminal-linux",{fontCharacter:"\\ebc6"}),o.terminalPowershell=new o("terminal-powershell",{fontCharacter:"\\ebc7"}),o.terminalTmux=new o("terminal-tmux",{fontCharacter:"\\ebc8"}),o.terminalUbuntu=new o("terminal-ubuntu",{fontCharacter:"\\ebc9"}),o.terminalBash=new o("terminal-bash",{fontCharacter:"\\ebca"}),o.arrowSwap=new o("arrow-swap",{fontCharacter:"\\ebcb"}),o.copy=new o("copy",{fontCharacter:"\\ebcc"}),o.personAdd=new o("person-add",{fontCharacter:"\\ebcd"}),o.filterFilled=new o("filter-filled",{fontCharacter:"\\ebce"}),o.wand=new o("wand",{fontCharacter:"\\ebcf"}),o.debugLineByLine=new o("debug-line-by-line",{fontCharacter:"\\ebd0"}),o.inspect=new o("inspect",{fontCharacter:"\\ebd1"}),o.layers=new o("layers",{fontCharacter:"\\ebd2"}),o.layersDot=new o("layers-dot",{fontCharacter:"\\ebd3"}),o.layersActive=new o("layers-active",{fontCharacter:"\\ebd4"}),o.compass=new o("compass",{fontCharacter:"\\ebd5"}),o.compassDot=new o("compass-dot",{fontCharacter:"\\ebd6"}),o.compassActive=new o("compass-active",{fontCharacter:"\\ebd7"}),o.azure=new o("azure",{fontCharacter:"\\ebd8"}),o.issueDraft=new o("issue-draft",{fontCharacter:"\\ebd9"}),o.gitPullRequestClosed=new o("git-pull-request-closed",{fontCharacter:"\\ebda"}),o.gitPullRequestDraft=new o("git-pull-request-draft",{fontCharacter:"\\ebdb"}),o.debugAll=new o("debug-all",{fontCharacter:"\\ebdc"}),o.debugCoverage=new o("debug-coverage",{fontCharacter:"\\ebdd"}),o.runErrors=new o("run-errors",{fontCharacter:"\\ebde"}),o.folderLibrary=new o("folder-library",{fontCharacter:"\\ebdf"}),o.debugContinueSmall=new o("debug-continue-small",{fontCharacter:"\\ebe0"}),o.beakerStop=new o("beaker-stop",{fontCharacter:"\\ebe1"}),o.graphLine=new o("graph-line",{fontCharacter:"\\ebe2"}),o.graphScatter=new o("graph-scatter",{fontCharacter:"\\ebe3"}),o.pieChart=new o("pie-chart",{fontCharacter:"\\ebe4"}),o.bracket=new o("bracket",o.json.definition),o.bracketDot=new o("bracket-dot",{fontCharacter:"\\ebe5"}),o.bracketError=new o("bracket-error",{fontCharacter:"\\ebe6"}),o.lockSmall=new o("lock-small",{fontCharacter:"\\ebe7"}),o.azureDevops=new o("azure-devops",{fontCharacter:"\\ebe8"}),o.verifiedFilled=new o("verified-filled",{fontCharacter:"\\ebe9"})}(Te||(Te={}))},79881:function(Ht,et,_){"use strict";_.d(et,{B8:function(){return $},Cp:function(){return Re},F0:function(){return be},L6:function(){return L},VV:function(){return Te},b1:function(){return o},dL:function(){return ie},ri:function(){return ve}});class T{constructor(){this.listeners=[],this.unexpectedErrorHandler=function(c){setTimeout(()=>{throw c.stack?new Error(c.message+`
`+c.stack):c},0)}}emit(c){this.listeners.forEach(S=>{S(c)})}onUnexpectedError(c){this.unexpectedErrorHandler(c),this.emit(c)}onUnexpectedExternalError(c){this.unexpectedErrorHandler(c)}}const N=new T;function ie(v){Te(v)||N.onUnexpectedError(v)}function Re(v){Te(v)||N.onUnexpectedExternalError(v)}function ve(v){if(v instanceof Error){let{name:c,message:S}=v;const y=v.stacktrace||v.stack;return{$isError:!0,name:c,message:S,stack:y}}return v}const le="Canceled";function Te(v){return v instanceof Error&&v.name===le&&v.message===le}function be(){const v=new Error(le);return v.name=v.message,v}function o(v){return v?new Error(`Illegal argument: ${v}`):new Error("Illegal argument")}function L(v){return v?new Error(`Illegal state: ${v}`):new Error("Illegal state")}class $ extends Error{constructor(c){super("NotSupported"),c&&(this.message=c)}}},4348:function(Ht,et,_){"use strict";_.d(et,{D0:function(){return $},E7:function(){return v},K3:function(){return L},Q5:function(){return o},ZD:function(){return c},ju:function(){return ve}});var T=_(79881),N=_(69323),ie=_(34502),Re=_(95830),ve;(function(S){S.None=()=>N.JT.None;function y(ne){return(X,me=null,ee)=>{let g=!1,w;return w=ne(Q=>{if(!g)return w?w.dispose():g=!0,X.call(me,Q)},null,ee),g&&w.dispose(),w}}S.once=y;function q(ne,X){return b((me,ee=null,g)=>ne(w=>me.call(ee,X(w)),null,g))}S.map=q;function ae(ne,X){return b((me,ee=null,g)=>ne(w=>{X(w),me.call(ee,w)},null,g))}S.forEach=ae;function P(ne,X){return b((me,ee=null,g)=>ne(w=>X(w)&&me.call(ee,w),null,g))}S.filter=P;function z(ne){return ne}S.signal=z;function W(...ne){return(X,me=null,ee)=>(0,N.F8)(...ne.map(g=>g(w=>X.call(me,w),null,ee)))}S.any=W;function re(ne,X,me){let ee=me;return q(ne,g=>(ee=X(ee,g),ee))}S.reduce=re;function b(ne){let X;const me=new o({onFirstListenerAdd(){X=ne(me.fire,me)},onLastListenerRemove(){X.dispose()}});return me.event}function D(ne,X,me=100,ee=!1,g){let w,Q,J,Pe=0;const Ue=new o({leakWarningThreshold:g,onFirstListenerAdd(){w=ne(Xe=>{Pe++,Q=X(Q,Xe),ee&&!J&&(Ue.fire(Q),Q=void 0),clearTimeout(J),J=setTimeout(()=>{const Ze=Q;Q=void 0,J=void 0,(!ee||Pe>1)&&Ue.fire(Ze),Pe=0},me)})},onLastListenerRemove(){w.dispose()}});return Ue.event}S.debounce=D;function F(ne,X=(me,ee)=>me===ee){let me=!0,ee;return P(ne,g=>{const w=me||!X(g,ee);return me=!1,ee=g,w})}S.latch=F;function U(ne,X){return[S.filter(ne,X),S.filter(ne,me=>!X(me))]}S.split=U;function fe(ne,X=!1,me=[]){let ee=me.slice(),g=ne(J=>{ee?ee.push(J):Q.fire(J)});const w=()=>{ee&&ee.forEach(J=>Q.fire(J)),ee=null},Q=new o({onFirstListenerAdd(){g||(g=ne(J=>Q.fire(J)))},onFirstListenerDidAdd(){ee&&(X?setTimeout(w):w())},onLastListenerRemove(){g&&g.dispose(),g=null}});return Q.event}S.buffer=fe;class ye{constructor(X){this.event=X}map(X){return new ye(q(this.event,X))}forEach(X){return new ye(ae(this.event,X))}filter(X){return new ye(P(this.event,X))}reduce(X,me){return new ye(re(this.event,X,me))}latch(){return new ye(F(this.event))}debounce(X,me=100,ee=!1,g){return new ye(D(this.event,X,me,ee,g))}on(X,me,ee){return this.event(X,me,ee)}once(X,me,ee){return y(this.event)(X,me,ee)}}function Se(ne){return new ye(ne)}S.chain=Se;function Ne(ne,X,me=ee=>ee){const ee=(...J)=>Q.fire(me(...J)),g=()=>ne.on(X,ee),w=()=>ne.removeListener(X,ee),Q=new o({onFirstListenerAdd:g,onLastListenerRemove:w});return Q.event}S.fromNodeEventEmitter=Ne;function Z(ne,X,me=ee=>ee){const ee=(...J)=>Q.fire(me(...J)),g=()=>ne.addEventListener(X,ee),w=()=>ne.removeEventListener(X,ee),Q=new o({onFirstListenerAdd:g,onLastListenerRemove:w});return Q.event}S.fromDOMEventEmitter=Z;function B(ne){return new Promise(X=>y(ne)(X))}S.toPromise=B})(ve||(ve={}));class le{constructor(y){this._listenerCount=0,this._invocationCount=0,this._elapsedOverall=0,this._name=`${y}_${le._idPool++}`}start(y){this._stopWatch=new Re.G(!0),this._listenerCount=y}stop(){if(this._stopWatch){const y=this._stopWatch.elapsed();this._elapsedOverall+=y,this._invocationCount+=1,console.info(`did FIRE ${this._name}: elapsed_ms: ${y.toFixed(5)}, listener: ${this._listenerCount} (elapsed_overall: ${this._elapsedOverall.toFixed(2)}, invocations: ${this._invocationCount})`),this._stopWatch=void 0}}}le._idPool=0;let Te=-1;class be{constructor(y,q=Math.random().toString(18).slice(2,5)){this.customThreshold=y,this.name=q,this._warnCountdown=0}dispose(){this._stacks&&this._stacks.clear()}check(y){let q=Te;if(typeof this.customThreshold=="number"&&(q=this.customThreshold),q<=0||y<q)return;this._stacks||(this._stacks=new Map);const ae=new Error().stack.split(`
`).slice(3).join(`
`),P=this._stacks.get(ae)||0;if(this._stacks.set(ae,P+1),this._warnCountdown-=1,this._warnCountdown<=0){this._warnCountdown=q*.5;let z,W=0;for(const[re,b]of this._stacks)(!z||W<b)&&(z=re,W=b);console.warn(`[${this.name}] potential listener LEAK detected, having ${y} listeners already. MOST frequent listener (${W}):`),console.warn(z)}return()=>{const z=this._stacks.get(ae)||0;this._stacks.set(ae,z-1)}}}class o{constructor(y){var q;this._disposed=!1,this._options=y,this._leakageMon=Te>0?new be(this._options&&this._options.leakWarningThreshold):void 0,this._perfMon=!((q=this._options)===null||q===void 0)&&q._profName?new le(this._options._profName):void 0}get event(){return this._event||(this._event=(y,q,ae)=>{var P;this._listeners||(this._listeners=new ie.S);const z=this._listeners.isEmpty();z&&this._options&&this._options.onFirstListenerAdd&&this._options.onFirstListenerAdd(this);const W=this._listeners.push(q?[y,q]:y);z&&this._options&&this._options.onFirstListenerDidAdd&&this._options.onFirstListenerDidAdd(this),this._options&&this._options.onListenerDidAdd&&this._options.onListenerDidAdd(this,y,q);const re=(P=this._leakageMon)===null||P===void 0?void 0:P.check(this._listeners.size),b=(0,N.OF)(()=>{re&&re(),this._disposed||(W(),this._options&&this._options.onLastListenerRemove&&(this._listeners&&!this._listeners.isEmpty()||this._options.onLastListenerRemove(this)))});return ae instanceof N.SL?ae.add(b):Array.isArray(ae)&&ae.push(b),b}),this._event}fire(y){var q,ae;if(this._listeners){this._deliveryQueue||(this._deliveryQueue=new ie.S);for(let P of this._listeners)this._deliveryQueue.push([P,y]);for((q=this._perfMon)===null||q===void 0||q.start(this._deliveryQueue.size);this._deliveryQueue.size>0;){const[P,z]=this._deliveryQueue.shift();try{typeof P=="function"?P.call(void 0,z):P[0].call(P[1],z)}catch(W){(0,T.dL)(W)}}(ae=this._perfMon)===null||ae===void 0||ae.stop()}}dispose(){var y,q,ae,P,z;this._disposed||(this._disposed=!0,(y=this._listeners)===null||y===void 0||y.clear(),(q=this._deliveryQueue)===null||q===void 0||q.clear(),(P=(ae=this._options)===null||ae===void 0?void 0:ae.onLastListenerRemove)===null||P===void 0||P.call(ae),(z=this._leakageMon)===null||z===void 0||z.dispose())}}class L extends o{constructor(y){super(y),this._isPaused=0,this._eventQueue=new ie.S,this._mergeFn=y==null?void 0:y.merge}pause(){this._isPaused++}resume(){if(this._isPaused!==0&&--this._isPaused===0)if(this._mergeFn){const y=Array.from(this._eventQueue);this._eventQueue.clear(),super.fire(this._mergeFn(y))}else for(;!this._isPaused&&this._eventQueue.size!==0;)super.fire(this._eventQueue.shift())}fire(y){this._listeners&&(this._isPaused!==0?this._eventQueue.push(y):super.fire(y))}}class $ extends L{constructor(y){var q;super(y),this._delay=(q=y.delay)!==null&&q!==void 0?q:100}fire(y){this._handle||(this.pause(),this._handle=setTimeout(()=>{this._handle=void 0,this.resume()},this._delay)),super.fire(y)}}class v{constructor(){this.buffers=[]}wrapEvent(y){return(q,ae,P)=>y(z=>{const W=this.buffers[this.buffers.length-1];W?W.push(()=>q.call(ae,z)):q.call(ae,z)},void 0,P)}bufferEvents(y){const q=[];this.buffers.push(q);const ae=y();return this.buffers.pop(),q.forEach(P=>P()),ae}}class c{constructor(){this.listening=!1,this.inputEvent=ve.None,this.inputEventListener=N.JT.None,this.emitter=new o({onFirstListenerDidAdd:()=>{this.listening=!0,this.inputEventListener=this.inputEvent(this.emitter.fire,this.emitter)},onLastListenerRemove:()=>{this.listening=!1,this.inputEventListener.dispose()}}),this.event=this.emitter.event}set input(y){this.inputEvent=y,this.listening&&(this.inputEventListener.dispose(),this.inputEventListener=y(this.emitter.fire,this.emitter))}dispose(){this.inputEventListener.dispose(),this.emitter.dispose()}}},17845:function(Ht,et,_){"use strict";_.d(et,{I:function(){return T}});function T(N){const ie=this;let Re=!1,ve;return function(){return Re||(Re=!0,ve=N.apply(ie,arguments)),ve}}},88226:function(Ht,et,_){"use strict";_.d(et,{$:function(){return T}});var T;(function(N){function ie(W){return W&&typeof W=="object"&&typeof W[Symbol.iterator]=="function"}N.is=ie;const Re=Object.freeze([]);function ve(){return Re}N.empty=ve;function*le(W){yield W}N.single=le;function Te(W){return W||Re}N.from=Te;function be(W){return!W||W[Symbol.iterator]().next().done===!0}N.isEmpty=be;function o(W){return W[Symbol.iterator]().next().value}N.first=o;function L(W,re){for(const b of W)if(re(b))return!0;return!1}N.some=L;function $(W,re){for(const b of W)if(re(b))return b}N.find=$;function*v(W,re){for(const b of W)re(b)&&(yield b)}N.filter=v;function*c(W,re){let b=0;for(const D of W)yield re(D,b++)}N.map=c;function*S(...W){for(const re of W)for(const b of re)yield b}N.concat=S;function*y(W){for(const re of W)for(const b of re)yield b}N.concatNested=y;function q(W,re,b){let D=b;for(const F of W)D=re(D,F);return D}N.reduce=q;function*ae(W,re,b=W.length){for(re<0&&(re+=W.length),b<0?b+=W.length:b>W.length&&(b=W.length);re<b;re++)yield W[re]}N.slice=ae;function P(W,re=Number.POSITIVE_INFINITY){const b=[];if(re===0)return[b,W];const D=W[Symbol.iterator]();for(let F=0;F<re;F++){const U=D.next();if(U.done)return[b,N.empty()];b.push(U.value)}return[b,{[Symbol.iterator](){return D}}]}N.consume=P;function z(W,re,b=(D,F)=>D===F){const D=W[Symbol.iterator](),F=re[Symbol.iterator]();for(;;){const U=D.next(),fe=F.next();if(U.done!==fe.done)return!1;if(U.done)return!0;if(!b(U.value,fe.value))return!1}}N.equals=z})(T||(T={}))},69323:function(Ht,et,_){"use strict";_.d(et,{B9:function(){return c},F8:function(){return S},JT:function(){return ae},Jz:function(){return z},OF:function(){return y},SL:function(){return q},Wf:function(){return v},XK:function(){return P},dk:function(){return L}});var T=_(17845),N=_(88226);const ie=!1;let Re=null;function ve(W){Re=W}if(ie){const W="__is_disposable_tracked__";ve(new class{trackDisposable(re){const b=new Error("Potentially leaked disposable").stack;setTimeout(()=>{re[W]||console.log(b)},3e3)}setParent(re,b){if(re&&re!==ae.None)try{re[W]=!0}catch(D){}}markAsDisposed(re){if(re&&re!==ae.None)try{re[W]=!0}catch(b){}}markAsSingleton(re){}})}function le(W){return Re==null||Re.trackDisposable(W),W}function Te(W){Re==null||Re.markAsDisposed(W)}function be(W,re){Re==null||Re.setParent(W,re)}function o(W,re){if(Re)for(const b of W)Re.setParent(b,re)}function L(W){return Re==null||Re.markAsSingleton(W),W}class $ extends Error{constructor(re){super(`Encountered errors while disposing of store. Errors: [${re.join(", ")}]`),this.errors=re}}function v(W){return typeof W.dispose=="function"&&W.dispose.length===0}function c(W){if(N.$.is(W)){let re=[];for(const b of W)if(b)try{b.dispose()}catch(D){re.push(D)}if(re.length===1)throw re[0];if(re.length>1)throw new $(re);return Array.isArray(W)?[]:W}else if(W)return W.dispose(),W}function S(...W){const re=y(()=>c(W));return o(W,re),re}function y(W){const re=le({dispose:(0,T.I)(()=>{Te(re),W()})});return re}class q{constructor(){this._toDispose=new Set,this._isDisposed=!1,le(this)}dispose(){this._isDisposed||(Te(this),this._isDisposed=!0,this.clear())}clear(){try{c(this._toDispose.values())}finally{this._toDispose.clear()}}add(re){if(!re)return re;if(re===this)throw new Error("Cannot register a disposable on itself!");return be(re,this),this._isDisposed?q.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(re),re}}q.DISABLE_DISPOSED_WARNING=!1;class ae{constructor(){this._store=new q,le(this),be(this._store,this)}dispose(){Te(this),this._store.dispose()}_register(re){if(re===this)throw new Error("Cannot register a disposable on itself!");return this._store.add(re)}}ae.None=Object.freeze({dispose(){}});class P{constructor(){this._isDisposed=!1,le(this)}get value(){return this._isDisposed?void 0:this._value}set value(re){var b;this._isDisposed||re===this._value||((b=this._value)===null||b===void 0||b.dispose(),re&&be(re,this),this._value=re)}clear(){this.value=void 0}dispose(){var re;this._isDisposed=!0,Te(this),(re=this._value)===null||re===void 0||re.dispose(),this._value=void 0}clearAndLeak(){const re=this._value;return this._value=void 0,re&&be(re,null),re}}class z{constructor(re){this.object=re}dispose(){}}},34502:function(Ht,et,_){"use strict";_.d(et,{S:function(){return N}});class T{constructor(Re){this.element=Re,this.next=T.Undefined,this.prev=T.Undefined}}T.Undefined=new T(void 0);class N{constructor(){this._first=T.Undefined,this._last=T.Undefined,this._size=0}get size(){return this._size}isEmpty(){return this._first===T.Undefined}clear(){let Re=this._first;for(;Re!==T.Undefined;){const ve=Re.next;Re.prev=T.Undefined,Re.next=T.Undefined,Re=ve}this._first=T.Undefined,this._last=T.Undefined,this._size=0}unshift(Re){return this._insert(Re,!1)}push(Re){return this._insert(Re,!0)}_insert(Re,ve){const le=new T(Re);if(this._first===T.Undefined)this._first=le,this._last=le;else if(ve){const be=this._last;this._last=le,le.prev=be,be.next=le}else{const be=this._first;this._first=le,le.next=be,be.prev=le}this._size+=1;let Te=!1;return()=>{Te||(Te=!0,this._remove(le))}}shift(){if(this._first!==T.Undefined){const Re=this._first.element;return this._remove(this._first),Re}}pop(){if(this._last!==T.Undefined){const Re=this._last.element;return this._remove(this._last),Re}}_remove(Re){if(Re.prev!==T.Undefined&&Re.next!==T.Undefined){const ve=Re.prev;ve.next=Re.next,Re.next.prev=ve}else Re.prev===T.Undefined&&Re.next===T.Undefined?(this._first=T.Undefined,this._last=T.Undefined):Re.next===T.Undefined?(this._last=this._last.prev,this._last.next=T.Undefined):Re.prev===T.Undefined&&(this._first=this._first.next,this._first.prev=T.Undefined);this._size-=1}*[Symbol.iterator](){let Re=this._first;for(;Re!==T.Undefined;)yield Re.element,Re=Re.next}}},23345:function(Ht,et,_){"use strict";_.d(et,{$L:function(){return D},ED:function(){return z},IJ:function(){return re},OS:function(){return ye},WE:function(){return U},dz:function(){return W},gn:function(){return F},li:function(){return y},r:function(){return Z},tY:function(){return b},xS:function(){return fe}});var T=_(97671),N;const ie="en";let Re=!1,ve=!1,le=!1,Te=!1,be=!1,o=!1,L=!1,$,v=null,c=null,S;const y=typeof self=="object"?self:typeof _.g=="object"?_.g:{};let q;typeof y.vscode!="undefined"&&typeof y.vscode.process!="undefined"?q=y.vscode.process:typeof T!="undefined"&&(q=T);const ae=typeof((N=q==null?void 0:q.versions)===null||N===void 0?void 0:N.electron)=="string"&&q.type==="renderer";if(typeof navigator=="object"&&!ae)S=navigator.userAgent,Re=S.indexOf("Windows")>=0,ve=S.indexOf("Macintosh")>=0,L=(S.indexOf("Macintosh")>=0||S.indexOf("iPad")>=0||S.indexOf("iPhone")>=0)&&!!navigator.maxTouchPoints&&navigator.maxTouchPoints>0,le=S.indexOf("Linux")>=0,o=!0,$=navigator.language,v=$;else if(typeof q=="object"){Re=q.platform==="win32",ve=q.platform==="darwin",le=q.platform==="linux",Te=le&&!!q.env.SNAP&&!!q.env.SNAP_REVISION,$=ie,v=ie;const B=q.env.VSCODE_NLS_CONFIG;if(B)try{const ne=JSON.parse(B),X=ne.availableLanguages["*"];$=ne.locale,v=X||ie,c=ne._translationsConfigFile}catch(ne){}be=!0}else console.error("Unable to resolve platform.");let P=0;ve?P=1:Re?P=3:le&&(P=2);const z=Re,W=ve,re=le,b=be,D=o,F=L,U=S,fe=function(){if(y.setImmediate)return y.setImmediate.bind(y);if(typeof y.postMessage=="function"&&!y.importScripts){let X=[];y.addEventListener("message",ee=>{if(ee.data&&ee.data.vscodeSetImmediateId)for(let g=0,w=X.length;g<w;g++){const Q=X[g];if(Q.id===ee.data.vscodeSetImmediateId){X.splice(g,1),Q.callback();return}}});let me=0;return ee=>{const g=++me;X.push({id:g,callback:ee}),y.postMessage({vscodeSetImmediateId:g},"*")}}if(typeof(q==null?void 0:q.nextTick)=="function")return q.nextTick.bind(q);const ne=Promise.resolve();return X=>ne.then(X)}(),ye=ve||L?2:Re?1:3;let Se=!0,Ne=!1;function Z(){if(!Ne){Ne=!0;const B=new Uint8Array(2);B[0]=1,B[1]=2,Se=new Uint16Array(B.buffer)[0]===513}return Se}},95830:function(Ht,et,_){"use strict";_.d(et,{G:function(){return ie}});var T=_(23345);const N=T.li.performance&&typeof T.li.performance.now=="function";class ie{constructor(ve){this._highResolution=N&&ve,this._startTime=this._now(),this._stopTime=-1}static create(ve=!0){return new ie(ve)}stop(){this._stopTime=this._now()}elapsed(){return this._stopTime!==-1?this._stopTime-this._startTime:this._now()-this._startTime}_now(){return this._highResolution?T.li.performance.now():Date.now()}}},82983:function(Ht,et,_){"use strict";_.d(et,{$i:function(){return Pe},C8:function(){return at},GF:function(){return $},HO:function(){return me},IO:function(){return v},K7:function(){return lt},Kw:function(){return Ut},LC:function(){return y},Mh:function(){return fe},P1:function(){return ye},PJ:function(){return un},Qe:function(){return Ue},R1:function(){return L},RP:function(){return Q},S6:function(){return Ft},TT:function(){return z},Ut:function(){return g},V8:function(){return q},WU:function(){return ie},YK:function(){return Ne},YU:function(){return Re},ZG:function(){return Se},ZH:function(){return B},ab:function(){return Xe},c1:function(){return ct},df:function(){return D},ec:function(){return ve},fi:function(){return nt},fy:function(){return le},j3:function(){return Te},j_:function(){return re},m5:function(){return T},mK:function(){return b},mr:function(){return c},oH:function(){return _e},oL:function(){return be},ok:function(){return U},ow:function(){return ae},qq:function(){return F},qu:function(){return P},rL:function(){return Z},uS:function(){return Ot},un:function(){return o},uq:function(){return S},vH:function(){return X},xe:function(){return Ze},zY:function(){return W}});function T(O){return!O||typeof O!="string"?!0:O.trim().length===0}const N=/{(\d+)}/g;function ie(O,...C){return C.length===0?O:O.replace(N,function(k,he){const de=parseInt(he,10);return isNaN(de)||de<0||de>=C.length?k:C[de]})}function Re(O){return O.replace(/[<>&]/g,function(C){switch(C){case"<":return"&lt;";case">":return"&gt;";case"&":return"&amp;";default:return C}})}function ve(O){return O.replace(/[\\\{\}\*\+\?\|\^\$\.\[\]\(\)]/g,"\\$&")}function le(O,C=" "){const k=Te(O,C);return be(k,C)}function Te(O,C){if(!O||!C)return O;const k=C.length;if(k===0||O.length===0)return O;let he=0;for(;O.indexOf(C,he)===he;)he=he+k;return O.substring(he)}function be(O,C){if(!O||!C)return O;const k=C.length,he=O.length;if(k===0||he===0)return O;let de=he,K=-1;for(;K=O.lastIndexOf(C,de-1),!(K===-1||K+k!==de);){if(K===0)return"";de=K}return O.substring(0,de)}function o(O){return O.replace(/[\-\\\{\}\+\?\|\^\$\.\,\[\]\(\)\#\s]/g,"\\$&").replace(/[\*]/g,".*")}function L(O){return O.replace(/\*/g,"")}function $(O,C,k={}){if(!O)throw new Error("Cannot create regex from empty string");C||(O=ve(O)),k.wholeWord&&(/\B/.test(O.charAt(0))||(O="\\b"+O),/\B/.test(O.charAt(O.length-1))||(O=O+"\\b"));let he="";return k.global&&(he+="g"),k.matchCase||(he+="i"),k.multiline&&(he+="m"),k.unicode&&(he+="u"),new RegExp(O,he)}function v(O){return O.source==="^"||O.source==="^$"||O.source==="$"||O.source==="^\\s*$"?!1:!!(O.exec("")&&O.lastIndex===0)}function c(O){return(O.global?"g":"")+(O.ignoreCase?"i":"")+(O.multiline?"m":"")+(O.unicode?"u":"")}function S(O){return O.split(/\r\n|\r|\n/)}function y(O){for(let C=0,k=O.length;C<k;C++){const he=O.charCodeAt(C);if(he!==32&&he!==9)return C}return-1}function q(O,C=0,k=O.length){for(let he=C;he<k;he++){const de=O.charCodeAt(he);if(de!==32&&de!==9)return O.substring(C,he)}return O.substring(C,k)}function ae(O,C=O.length-1){for(let k=C;k>=0;k--){const he=O.charCodeAt(k);if(he!==32&&he!==9)return k}return-1}function P(O,C){return O<C?-1:O>C?1:0}function z(O,C,k=0,he=O.length,de=0,K=C.length){for(;k<he&&de<K;k++,de++){let Me=O.charCodeAt(k),Be=C.charCodeAt(de);if(Me<Be)return-1;if(Me>Be)return 1}const Ie=he-k,$e=K-de;return Ie<$e?-1:Ie>$e?1:0}function W(O,C){return re(O,C,0,O.length,0,C.length)}function re(O,C,k=0,he=O.length,de=0,K=C.length){for(;k<he&&de<K;k++,de++){let Me=O.charCodeAt(k),Be=C.charCodeAt(de);if(Me===Be)continue;if(Me>=128||Be>=128)return z(O.toLowerCase(),C.toLowerCase(),k,he,de,K);b(Me)&&(Me-=32),b(Be)&&(Be-=32);const Ye=Me-Be;if(Ye!==0)return Ye}const Ie=he-k,$e=K-de;return Ie<$e?-1:Ie>$e?1:0}function b(O){return O>=97&&O<=122}function D(O){return O>=65&&O<=90}function F(O,C){return O.length===C.length&&re(O,C)===0}function U(O,C){const k=C.length;return C.length>O.length?!1:re(O,C,0,k)===0}function fe(O,C){let k,he=Math.min(O.length,C.length);for(k=0;k<he;k++)if(O.charCodeAt(k)!==C.charCodeAt(k))return k;return he}function ye(O,C){let k,he=Math.min(O.length,C.length);const de=O.length-1,K=C.length-1;for(k=0;k<he;k++)if(O.charCodeAt(de-k)!==C.charCodeAt(K-k))return k;return he}function Se(O){return 55296<=O&&O<=56319}function Ne(O){return 56320<=O&&O<=57343}function Z(O,C){return(O-55296<<10)+(C-56320)+65536}function B(O,C,k){const he=O.charCodeAt(k);if(Se(he)&&k+1<C){const de=O.charCodeAt(k+1);if(Ne(de))return Z(he,de)}return he}function ne(O,C){const k=O.charCodeAt(C-1);if(Ne(k)&&C>1){const he=O.charCodeAt(C-2);if(Se(he))return Z(he,k)}return k}function X(O,C){const k=Et.getInstance(),he=C,de=O.length,K=B(O,de,C);C+=K>=65536?2:1;let Ie=k.getGraphemeBreakType(K);for(;C<de;){const $e=B(O,de,C),Me=k.getGraphemeBreakType($e);if(nt(Ie,Me))break;C+=$e>=65536?2:1,Ie=Me}return C-he}function me(O,C){const k=Et.getInstance(),he=C,de=ne(O,C);C-=de>=65536?2:1;let K=k.getGraphemeBreakType(de);for(;C>0;){const Ie=ne(O,C),$e=k.getGraphemeBreakType(Ie);if(nt($e,K))break;C-=Ie>=65536?2:1,K=$e}return he-C}const ee=/(?:[\u05BE\u05C0\u05C3\u05C6\u05D0-\u05F4\u0608\u060B\u060D\u061B-\u064A\u066D-\u066F\u0671-\u06D5\u06E5\u06E6\u06EE\u06EF\u06FA-\u0710\u0712-\u072F\u074D-\u07A5\u07B1-\u07EA\u07F4\u07F5\u07FA-\u0815\u081A\u0824\u0828\u0830-\u0858\u085E-\u08BD\u200F\uFB1D\uFB1F-\uFB28\uFB2A-\uFD3D\uFD50-\uFDFC\uFE70-\uFEFC]|\uD802[\uDC00-\uDD1B\uDD20-\uDE00\uDE10-\uDE33\uDE40-\uDEE4\uDEEB-\uDF35\uDF40-\uDFFF]|\uD803[\uDC00-\uDCFF]|\uD83A[\uDC00-\uDCCF\uDD00-\uDD43\uDD50-\uDFFF]|\uD83B[\uDC00-\uDEBB])/;function g(O){return ee.test(O)}const w=/(?:[\u231A\u231B\u23F0\u23F3\u2600-\u27BF\u2B50\u2B55]|\uD83C[\uDDE6-\uDDFF\uDF00-\uDFFF]|\uD83D[\uDC00-\uDE4F\uDE80-\uDEFC\uDFE0-\uDFEB]|\uD83E[\uDD00-\uDDFF\uDE70-\uDED6])/;function Q(O){return w.test(O)}const J=/^[\t\n\r\x20-\x7E]*$/;function Pe(O){return J.test(O)}const Ue=/[\u2028\u2029]/;function Xe(O){return Ue.test(O)}function Ze(O){for(let C=0,k=O.length;C<k;C++)if(lt(O.charCodeAt(C)))return!0;return!1}function lt(O){return O=+O,O>=11904&&O<=55215||O>=63744&&O<=64255||O>=65281&&O<=65374}function at(O){return O>=127462&&O<=127487||O===8986||O===8987||O===9200||O===9203||O>=9728&&O<=10175||O===11088||O===11093||O>=127744&&O<=128591||O>=128640&&O<=128764||O>=128992&&O<=129003||O>=129280&&O<=129535||O>=129648&&O<=129750}const ct="\uFEFF";function Ot(O){return!!(O&&O.length>0&&O.charCodeAt(0)===65279)}function Ut(O,C=!1){return O?(C&&(O=O.replace(/\\./g,"")),O.toLowerCase()!==O):!1}function un(O){return O=O%(2*26),O<26?String.fromCharCode(97+O):String.fromCharCode(65+O-26)}function Ft(O){return Et.getInstance().getGraphemeBreakType(O)}function nt(O,C){return O===0?C!==5&&C!==7:O===2&&C===3?!1:O===4||O===2||O===3||C===4||C===2||C===3?!0:!(O===8&&(C===8||C===9||C===11||C===12)||(O===11||O===9)&&(C===9||C===10)||(O===12||O===10)&&C===10||C===5||C===13||C===7||O===1||O===13&&C===14||O===6&&C===6)}class Et{constructor(){this._data=oe()}static getInstance(){return Et._INSTANCE||(Et._INSTANCE=new Et),Et._INSTANCE}getGraphemeBreakType(C){if(C<32)return C===10?3:C===13?2:4;if(C<127)return 0;const k=this._data,he=k.length/3;let de=1;for(;de<=he;)if(C<k[3*de])de=2*de;else if(C>k[3*de+1])de=2*de+1;else return k[3*de+2];return 0}}Et._INSTANCE=null;function oe(){return JSON.parse("[0,0,0,51592,51592,11,44424,44424,11,72251,72254,5,7150,7150,7,48008,48008,11,55176,55176,11,128420,128420,14,3276,3277,5,9979,9980,14,46216,46216,11,49800,49800,11,53384,53384,11,70726,70726,5,122915,122916,5,129320,129327,14,2558,2558,5,5906,5908,5,9762,9763,14,43360,43388,8,45320,45320,11,47112,47112,11,48904,48904,11,50696,50696,11,52488,52488,11,54280,54280,11,70082,70083,1,71350,71350,7,73111,73111,5,127892,127893,14,128726,128727,14,129473,129474,14,2027,2035,5,2901,2902,5,3784,3789,5,6754,6754,5,8418,8420,5,9877,9877,14,11088,11088,14,44008,44008,5,44872,44872,11,45768,45768,11,46664,46664,11,47560,47560,11,48456,48456,11,49352,49352,11,50248,50248,11,51144,51144,11,52040,52040,11,52936,52936,11,53832,53832,11,54728,54728,11,69811,69814,5,70459,70460,5,71096,71099,7,71998,71998,5,72874,72880,5,119149,119149,7,127374,127374,14,128335,128335,14,128482,128482,14,128765,128767,14,129399,129400,14,129680,129685,14,1476,1477,5,2377,2380,7,2759,2760,5,3137,3140,7,3458,3459,7,4153,4154,5,6432,6434,5,6978,6978,5,7675,7679,5,9723,9726,14,9823,9823,14,9919,9923,14,10035,10036,14,42736,42737,5,43596,43596,5,44200,44200,11,44648,44648,11,45096,45096,11,45544,45544,11,45992,45992,11,46440,46440,11,46888,46888,11,47336,47336,11,47784,47784,11,48232,48232,11,48680,48680,11,49128,49128,11,49576,49576,11,50024,50024,11,50472,50472,11,50920,50920,11,51368,51368,11,51816,51816,11,52264,52264,11,52712,52712,11,53160,53160,11,53608,53608,11,54056,54056,11,54504,54504,11,54952,54952,11,68108,68111,5,69933,69940,5,70197,70197,7,70498,70499,7,70845,70845,5,71229,71229,5,71727,71735,5,72154,72155,5,72344,72345,5,73023,73029,5,94095,94098,5,121403,121452,5,126981,127182,14,127538,127546,14,127990,127990,14,128391,128391,14,128445,128449,14,128500,128505,14,128752,128752,14,129160,129167,14,129356,129356,14,129432,129442,14,129648,129651,14,129751,131069,14,173,173,4,1757,1757,1,2274,2274,1,2494,2494,5,2641,2641,5,2876,2876,5,3014,3016,7,3262,3262,7,3393,3396,5,3570,3571,7,3968,3972,5,4228,4228,7,6086,6086,5,6679,6680,5,6912,6915,5,7080,7081,5,7380,7392,5,8252,8252,14,9096,9096,14,9748,9749,14,9784,9786,14,9833,9850,14,9890,9894,14,9938,9938,14,9999,9999,14,10085,10087,14,12349,12349,14,43136,43137,7,43454,43456,7,43755,43755,7,44088,44088,11,44312,44312,11,44536,44536,11,44760,44760,11,44984,44984,11,45208,45208,11,45432,45432,11,45656,45656,11,45880,45880,11,46104,46104,11,46328,46328,11,46552,46552,11,46776,46776,11,47000,47000,11,47224,47224,11,47448,47448,11,47672,47672,11,47896,47896,11,48120,48120,11,48344,48344,11,48568,48568,11,48792,48792,11,49016,49016,11,49240,49240,11,49464,49464,11,49688,49688,11,49912,49912,11,50136,50136,11,50360,50360,11,50584,50584,11,50808,50808,11,51032,51032,11,51256,51256,11,51480,51480,11,51704,51704,11,51928,51928,11,52152,52152,11,52376,52376,11,52600,52600,11,52824,52824,11,53048,53048,11,53272,53272,11,53496,53496,11,53720,53720,11,53944,53944,11,54168,54168,11,54392,54392,11,54616,54616,11,54840,54840,11,55064,55064,11,65438,65439,5,69633,69633,5,69837,69837,1,70018,70018,7,70188,70190,7,70368,70370,7,70465,70468,7,70712,70719,5,70835,70840,5,70850,70851,5,71132,71133,5,71340,71340,7,71458,71461,5,71985,71989,7,72002,72002,7,72193,72202,5,72281,72283,5,72766,72766,7,72885,72886,5,73104,73105,5,92912,92916,5,113824,113827,4,119173,119179,5,121505,121519,5,125136,125142,5,127279,127279,14,127489,127490,14,127570,127743,14,127900,127901,14,128254,128254,14,128369,128370,14,128400,128400,14,128425,128432,14,128468,128475,14,128489,128494,14,128715,128720,14,128745,128745,14,128759,128760,14,129004,129023,14,129296,129304,14,129340,129342,14,129388,129392,14,129404,129407,14,129454,129455,14,129485,129487,14,129659,129663,14,129719,129727,14,917536,917631,5,13,13,2,1160,1161,5,1564,1564,4,1807,1807,1,2085,2087,5,2363,2363,7,2402,2403,5,2507,2508,7,2622,2624,7,2691,2691,7,2786,2787,5,2881,2884,5,3006,3006,5,3072,3072,5,3170,3171,5,3267,3268,7,3330,3331,7,3406,3406,1,3538,3540,5,3655,3662,5,3897,3897,5,4038,4038,5,4184,4185,5,4352,4447,8,6068,6069,5,6155,6157,5,6448,6449,7,6742,6742,5,6783,6783,5,6966,6970,5,7042,7042,7,7143,7143,7,7212,7219,5,7412,7412,5,8206,8207,4,8294,8303,4,8596,8601,14,9410,9410,14,9742,9742,14,9757,9757,14,9770,9770,14,9794,9794,14,9828,9828,14,9855,9855,14,9882,9882,14,9900,9903,14,9929,9933,14,9963,9967,14,9987,9988,14,10006,10006,14,10062,10062,14,10175,10175,14,11744,11775,5,42607,42607,5,43043,43044,7,43263,43263,5,43444,43445,7,43569,43570,5,43698,43700,5,43766,43766,5,44032,44032,11,44144,44144,11,44256,44256,11,44368,44368,11,44480,44480,11,44592,44592,11,44704,44704,11,44816,44816,11,44928,44928,11,45040,45040,11,45152,45152,11,45264,45264,11,45376,45376,11,45488,45488,11,45600,45600,11,45712,45712,11,45824,45824,11,45936,45936,11,46048,46048,11,46160,46160,11,46272,46272,11,46384,46384,11,46496,46496,11,46608,46608,11,46720,46720,11,46832,46832,11,46944,46944,11,47056,47056,11,47168,47168,11,47280,47280,11,47392,47392,11,47504,47504,11,47616,47616,11,47728,47728,11,47840,47840,11,47952,47952,11,48064,48064,11,48176,48176,11,48288,48288,11,48400,48400,11,48512,48512,11,48624,48624,11,48736,48736,11,48848,48848,11,48960,48960,11,49072,49072,11,49184,49184,11,49296,49296,11,49408,49408,11,49520,49520,11,49632,49632,11,49744,49744,11,49856,49856,11,49968,49968,11,50080,50080,11,50192,50192,11,50304,50304,11,50416,50416,11,50528,50528,11,50640,50640,11,50752,50752,11,50864,50864,11,50976,50976,11,51088,51088,11,51200,51200,11,51312,51312,11,51424,51424,11,51536,51536,11,51648,51648,11,51760,51760,11,51872,51872,11,51984,51984,11,52096,52096,11,52208,52208,11,52320,52320,11,52432,52432,11,52544,52544,11,52656,52656,11,52768,52768,11,52880,52880,11,52992,52992,11,53104,53104,11,53216,53216,11,53328,53328,11,53440,53440,11,53552,53552,11,53664,53664,11,53776,53776,11,53888,53888,11,54000,54000,11,54112,54112,11,54224,54224,11,54336,54336,11,54448,54448,11,54560,54560,11,54672,54672,11,54784,54784,11,54896,54896,11,55008,55008,11,55120,55120,11,64286,64286,5,66272,66272,5,68900,68903,5,69762,69762,7,69817,69818,5,69927,69931,5,70003,70003,5,70070,70078,5,70094,70094,7,70194,70195,7,70206,70206,5,70400,70401,5,70463,70463,7,70475,70477,7,70512,70516,5,70722,70724,5,70832,70832,5,70842,70842,5,70847,70848,5,71088,71089,7,71102,71102,7,71219,71226,5,71231,71232,5,71342,71343,7,71453,71455,5,71463,71467,5,71737,71738,5,71995,71996,5,72000,72000,7,72145,72147,7,72160,72160,5,72249,72249,7,72273,72278,5,72330,72342,5,72752,72758,5,72850,72871,5,72882,72883,5,73018,73018,5,73031,73031,5,73109,73109,5,73461,73462,7,94031,94031,5,94192,94193,7,119142,119142,7,119155,119162,4,119362,119364,5,121476,121476,5,122888,122904,5,123184,123190,5,126976,126979,14,127184,127231,14,127344,127345,14,127405,127461,14,127514,127514,14,127561,127567,14,127778,127779,14,127896,127896,14,127985,127986,14,127995,127999,5,128326,128328,14,128360,128366,14,128378,128378,14,128394,128397,14,128405,128406,14,128422,128423,14,128435,128443,14,128453,128464,14,128479,128480,14,128484,128487,14,128496,128498,14,128640,128709,14,128723,128724,14,128736,128741,14,128747,128748,14,128755,128755,14,128762,128762,14,128981,128991,14,129096,129103,14,129292,129292,14,129311,129311,14,129329,129330,14,129344,129349,14,129360,129374,14,129394,129394,14,129402,129402,14,129413,129425,14,129445,129450,14,129466,129471,14,129483,129483,14,129511,129535,14,129653,129655,14,129667,129670,14,129705,129711,14,129731,129743,14,917505,917505,4,917760,917999,5,10,10,3,127,159,4,768,879,5,1471,1471,5,1536,1541,1,1648,1648,5,1767,1768,5,1840,1866,5,2070,2073,5,2137,2139,5,2307,2307,7,2366,2368,7,2382,2383,7,2434,2435,7,2497,2500,5,2519,2519,5,2563,2563,7,2631,2632,5,2677,2677,5,2750,2752,7,2763,2764,7,2817,2817,5,2879,2879,5,2891,2892,7,2914,2915,5,3008,3008,5,3021,3021,5,3076,3076,5,3146,3149,5,3202,3203,7,3264,3265,7,3271,3272,7,3298,3299,5,3390,3390,5,3402,3404,7,3426,3427,5,3535,3535,5,3544,3550,7,3635,3635,7,3763,3763,7,3893,3893,5,3953,3966,5,3981,3991,5,4145,4145,7,4157,4158,5,4209,4212,5,4237,4237,5,4520,4607,10,5970,5971,5,6071,6077,5,6089,6099,5,6277,6278,5,6439,6440,5,6451,6456,7,6683,6683,5,6744,6750,5,6765,6770,7,6846,6846,5,6964,6964,5,6972,6972,5,7019,7027,5,7074,7077,5,7083,7085,5,7146,7148,7,7154,7155,7,7222,7223,5,7394,7400,5,7416,7417,5,8204,8204,5,8233,8233,4,8288,8292,4,8413,8416,5,8482,8482,14,8986,8987,14,9193,9203,14,9654,9654,14,9733,9733,14,9745,9745,14,9752,9752,14,9760,9760,14,9766,9766,14,9774,9775,14,9792,9792,14,9800,9811,14,9825,9826,14,9831,9831,14,9852,9853,14,9872,9873,14,9880,9880,14,9885,9887,14,9896,9897,14,9906,9916,14,9926,9927,14,9936,9936,14,9941,9960,14,9974,9974,14,9982,9985,14,9992,9997,14,10002,10002,14,10017,10017,14,10055,10055,14,10071,10071,14,10145,10145,14,11013,11015,14,11503,11505,5,12334,12335,5,12951,12951,14,42612,42621,5,43014,43014,5,43047,43047,7,43204,43205,5,43335,43345,5,43395,43395,7,43450,43451,7,43561,43566,5,43573,43574,5,43644,43644,5,43710,43711,5,43758,43759,7,44005,44005,5,44012,44012,7,44060,44060,11,44116,44116,11,44172,44172,11,44228,44228,11,44284,44284,11,44340,44340,11,44396,44396,11,44452,44452,11,44508,44508,11,44564,44564,11,44620,44620,11,44676,44676,11,44732,44732,11,44788,44788,11,44844,44844,11,44900,44900,11,44956,44956,11,45012,45012,11,45068,45068,11,45124,45124,11,45180,45180,11,45236,45236,11,45292,45292,11,45348,45348,11,45404,45404,11,45460,45460,11,45516,45516,11,45572,45572,11,45628,45628,11,45684,45684,11,45740,45740,11,45796,45796,11,45852,45852,11,45908,45908,11,45964,45964,11,46020,46020,11,46076,46076,11,46132,46132,11,46188,46188,11,46244,46244,11,46300,46300,11,46356,46356,11,46412,46412,11,46468,46468,11,46524,46524,11,46580,46580,11,46636,46636,11,46692,46692,11,46748,46748,11,46804,46804,11,46860,46860,11,46916,46916,11,46972,46972,11,47028,47028,11,47084,47084,11,47140,47140,11,47196,47196,11,47252,47252,11,47308,47308,11,47364,47364,11,47420,47420,11,47476,47476,11,47532,47532,11,47588,47588,11,47644,47644,11,47700,47700,11,47756,47756,11,47812,47812,11,47868,47868,11,47924,47924,11,47980,47980,11,48036,48036,11,48092,48092,11,48148,48148,11,48204,48204,11,48260,48260,11,48316,48316,11,48372,48372,11,48428,48428,11,48484,48484,11,48540,48540,11,48596,48596,11,48652,48652,11,48708,48708,11,48764,48764,11,48820,48820,11,48876,48876,11,48932,48932,11,48988,48988,11,49044,49044,11,49100,49100,11,49156,49156,11,49212,49212,11,49268,49268,11,49324,49324,11,49380,49380,11,49436,49436,11,49492,49492,11,49548,49548,11,49604,49604,11,49660,49660,11,49716,49716,11,49772,49772,11,49828,49828,11,49884,49884,11,49940,49940,11,49996,49996,11,50052,50052,11,50108,50108,11,50164,50164,11,50220,50220,11,50276,50276,11,50332,50332,11,50388,50388,11,50444,50444,11,50500,50500,11,50556,50556,11,50612,50612,11,50668,50668,11,50724,50724,11,50780,50780,11,50836,50836,11,50892,50892,11,50948,50948,11,51004,51004,11,51060,51060,11,51116,51116,11,51172,51172,11,51228,51228,11,51284,51284,11,51340,51340,11,51396,51396,11,51452,51452,11,51508,51508,11,51564,51564,11,51620,51620,11,51676,51676,11,51732,51732,11,51788,51788,11,51844,51844,11,51900,51900,11,51956,51956,11,52012,52012,11,52068,52068,11,52124,52124,11,52180,52180,11,52236,52236,11,52292,52292,11,52348,52348,11,52404,52404,11,52460,52460,11,52516,52516,11,52572,52572,11,52628,52628,11,52684,52684,11,52740,52740,11,52796,52796,11,52852,52852,11,52908,52908,11,52964,52964,11,53020,53020,11,53076,53076,11,53132,53132,11,53188,53188,11,53244,53244,11,53300,53300,11,53356,53356,11,53412,53412,11,53468,53468,11,53524,53524,11,53580,53580,11,53636,53636,11,53692,53692,11,53748,53748,11,53804,53804,11,53860,53860,11,53916,53916,11,53972,53972,11,54028,54028,11,54084,54084,11,54140,54140,11,54196,54196,11,54252,54252,11,54308,54308,11,54364,54364,11,54420,54420,11,54476,54476,11,54532,54532,11,54588,54588,11,54644,54644,11,54700,54700,11,54756,54756,11,54812,54812,11,54868,54868,11,54924,54924,11,54980,54980,11,55036,55036,11,55092,55092,11,55148,55148,11,55216,55238,9,65056,65071,5,65529,65531,4,68097,68099,5,68159,68159,5,69446,69456,5,69688,69702,5,69808,69810,7,69815,69816,7,69821,69821,1,69888,69890,5,69932,69932,7,69957,69958,7,70016,70017,5,70067,70069,7,70079,70080,7,70089,70092,5,70095,70095,5,70191,70193,5,70196,70196,5,70198,70199,5,70367,70367,5,70371,70378,5,70402,70403,7,70462,70462,5,70464,70464,5,70471,70472,7,70487,70487,5,70502,70508,5,70709,70711,7,70720,70721,7,70725,70725,7,70750,70750,5,70833,70834,7,70841,70841,7,70843,70844,7,70846,70846,7,70849,70849,7,71087,71087,5,71090,71093,5,71100,71101,5,71103,71104,5,71216,71218,7,71227,71228,7,71230,71230,7,71339,71339,5,71341,71341,5,71344,71349,5,71351,71351,5,71456,71457,7,71462,71462,7,71724,71726,7,71736,71736,7,71984,71984,5,71991,71992,7,71997,71997,7,71999,71999,1,72001,72001,1,72003,72003,5,72148,72151,5,72156,72159,7,72164,72164,7,72243,72248,5,72250,72250,1,72263,72263,5,72279,72280,7,72324,72329,1,72343,72343,7,72751,72751,7,72760,72765,5,72767,72767,5,72873,72873,7,72881,72881,7,72884,72884,7,73009,73014,5,73020,73021,5,73030,73030,1,73098,73102,7,73107,73108,7,73110,73110,7,73459,73460,5,78896,78904,4,92976,92982,5,94033,94087,7,94180,94180,5,113821,113822,5,119141,119141,5,119143,119145,5,119150,119154,5,119163,119170,5,119210,119213,5,121344,121398,5,121461,121461,5,121499,121503,5,122880,122886,5,122907,122913,5,122918,122922,5,123628,123631,5,125252,125258,5,126980,126980,14,127183,127183,14,127245,127247,14,127340,127343,14,127358,127359,14,127377,127386,14,127462,127487,6,127491,127503,14,127535,127535,14,127548,127551,14,127568,127569,14,127744,127777,14,127780,127891,14,127894,127895,14,127897,127899,14,127902,127984,14,127987,127989,14,127991,127994,14,128000,128253,14,128255,128317,14,128329,128334,14,128336,128359,14,128367,128368,14,128371,128377,14,128379,128390,14,128392,128393,14,128398,128399,14,128401,128404,14,128407,128419,14,128421,128421,14,128424,128424,14,128433,128434,14,128444,128444,14,128450,128452,14,128465,128467,14,128476,128478,14,128481,128481,14,128483,128483,14,128488,128488,14,128495,128495,14,128499,128499,14,128506,128591,14,128710,128714,14,128721,128722,14,128725,128725,14,128728,128735,14,128742,128744,14,128746,128746,14,128749,128751,14,128753,128754,14,128756,128758,14,128761,128761,14,128763,128764,14,128884,128895,14,128992,129003,14,129036,129039,14,129114,129119,14,129198,129279,14,129293,129295,14,129305,129310,14,129312,129319,14,129328,129328,14,129331,129338,14,129343,129343,14,129351,129355,14,129357,129359,14,129375,129387,14,129393,129393,14,129395,129398,14,129401,129401,14,129403,129403,14,129408,129412,14,129426,129431,14,129443,129444,14,129451,129453,14,129456,129465,14,129472,129472,14,129475,129482,14,129484,129484,14,129488,129510,14,129536,129647,14,129652,129652,14,129656,129658,14,129664,129666,14,129671,129679,14,129686,129704,14,129712,129718,14,129728,129730,14,129744,129750,14,917504,917504,4,917506,917535,4,917632,917759,4,918000,921599,4,0,9,4,11,12,4,14,31,4,169,169,14,174,174,14,1155,1159,5,1425,1469,5,1473,1474,5,1479,1479,5,1552,1562,5,1611,1631,5,1750,1756,5,1759,1764,5,1770,1773,5,1809,1809,5,1958,1968,5,2045,2045,5,2075,2083,5,2089,2093,5,2259,2273,5,2275,2306,5,2362,2362,5,2364,2364,5,2369,2376,5,2381,2381,5,2385,2391,5,2433,2433,5,2492,2492,5,2495,2496,7,2503,2504,7,2509,2509,5,2530,2531,5,2561,2562,5,2620,2620,5,2625,2626,5,2635,2637,5,2672,2673,5,2689,2690,5,2748,2748,5,2753,2757,5,2761,2761,7,2765,2765,5,2810,2815,5,2818,2819,7,2878,2878,5,2880,2880,7,2887,2888,7,2893,2893,5,2903,2903,5,2946,2946,5,3007,3007,7,3009,3010,7,3018,3020,7,3031,3031,5,3073,3075,7,3134,3136,5,3142,3144,5,3157,3158,5,3201,3201,5,3260,3260,5,3263,3263,5,3266,3266,5,3270,3270,5,3274,3275,7,3285,3286,5,3328,3329,5,3387,3388,5,3391,3392,7,3398,3400,7,3405,3405,5,3415,3415,5,3457,3457,5,3530,3530,5,3536,3537,7,3542,3542,5,3551,3551,5,3633,3633,5,3636,3642,5,3761,3761,5,3764,3772,5,3864,3865,5,3895,3895,5,3902,3903,7,3967,3967,7,3974,3975,5,3993,4028,5,4141,4144,5,4146,4151,5,4155,4156,7,4182,4183,7,4190,4192,5,4226,4226,5,4229,4230,5,4253,4253,5,4448,4519,9,4957,4959,5,5938,5940,5,6002,6003,5,6070,6070,7,6078,6085,7,6087,6088,7,6109,6109,5,6158,6158,4,6313,6313,5,6435,6438,7,6441,6443,7,6450,6450,5,6457,6459,5,6681,6682,7,6741,6741,7,6743,6743,7,6752,6752,5,6757,6764,5,6771,6780,5,6832,6845,5,6847,6848,5,6916,6916,7,6965,6965,5,6971,6971,7,6973,6977,7,6979,6980,7,7040,7041,5,7073,7073,7,7078,7079,7,7082,7082,7,7142,7142,5,7144,7145,5,7149,7149,5,7151,7153,5,7204,7211,7,7220,7221,7,7376,7378,5,7393,7393,7,7405,7405,5,7415,7415,7,7616,7673,5,8203,8203,4,8205,8205,13,8232,8232,4,8234,8238,4,8265,8265,14,8293,8293,4,8400,8412,5,8417,8417,5,8421,8432,5,8505,8505,14,8617,8618,14,9000,9000,14,9167,9167,14,9208,9210,14,9642,9643,14,9664,9664,14,9728,9732,14,9735,9741,14,9743,9744,14,9746,9746,14,9750,9751,14,9753,9756,14,9758,9759,14,9761,9761,14,9764,9765,14,9767,9769,14,9771,9773,14,9776,9783,14,9787,9791,14,9793,9793,14,9795,9799,14,9812,9822,14,9824,9824,14,9827,9827,14,9829,9830,14,9832,9832,14,9851,9851,14,9854,9854,14,9856,9861,14,9874,9876,14,9878,9879,14,9881,9881,14,9883,9884,14,9888,9889,14,9895,9895,14,9898,9899,14,9904,9905,14,9917,9918,14,9924,9925,14,9928,9928,14,9934,9935,14,9937,9937,14,9939,9940,14,9961,9962,14,9968,9973,14,9975,9978,14,9981,9981,14,9986,9986,14,9989,9989,14,9998,9998,14,10000,10001,14,10004,10004,14,10013,10013,14,10024,10024,14,10052,10052,14,10060,10060,14,10067,10069,14,10083,10084,14,10133,10135,14,10160,10160,14,10548,10549,14,11035,11036,14,11093,11093,14,11647,11647,5,12330,12333,5,12336,12336,14,12441,12442,5,12953,12953,14,42608,42610,5,42654,42655,5,43010,43010,5,43019,43019,5,43045,43046,5,43052,43052,5,43188,43203,7,43232,43249,5,43302,43309,5,43346,43347,7,43392,43394,5,43443,43443,5,43446,43449,5,43452,43453,5,43493,43493,5,43567,43568,7,43571,43572,7,43587,43587,5,43597,43597,7,43696,43696,5,43703,43704,5,43713,43713,5,43756,43757,5,43765,43765,7,44003,44004,7,44006,44007,7,44009,44010,7,44013,44013,5,44033,44059,12,44061,44087,12,44089,44115,12,44117,44143,12,44145,44171,12,44173,44199,12,44201,44227,12,44229,44255,12,44257,44283,12,44285,44311,12,44313,44339,12,44341,44367,12,44369,44395,12,44397,44423,12,44425,44451,12,44453,44479,12,44481,44507,12,44509,44535,12,44537,44563,12,44565,44591,12,44593,44619,12,44621,44647,12,44649,44675,12,44677,44703,12,44705,44731,12,44733,44759,12,44761,44787,12,44789,44815,12,44817,44843,12,44845,44871,12,44873,44899,12,44901,44927,12,44929,44955,12,44957,44983,12,44985,45011,12,45013,45039,12,45041,45067,12,45069,45095,12,45097,45123,12,45125,45151,12,45153,45179,12,45181,45207,12,45209,45235,12,45237,45263,12,45265,45291,12,45293,45319,12,45321,45347,12,45349,45375,12,45377,45403,12,45405,45431,12,45433,45459,12,45461,45487,12,45489,45515,12,45517,45543,12,45545,45571,12,45573,45599,12,45601,45627,12,45629,45655,12,45657,45683,12,45685,45711,12,45713,45739,12,45741,45767,12,45769,45795,12,45797,45823,12,45825,45851,12,45853,45879,12,45881,45907,12,45909,45935,12,45937,45963,12,45965,45991,12,45993,46019,12,46021,46047,12,46049,46075,12,46077,46103,12,46105,46131,12,46133,46159,12,46161,46187,12,46189,46215,12,46217,46243,12,46245,46271,12,46273,46299,12,46301,46327,12,46329,46355,12,46357,46383,12,46385,46411,12,46413,46439,12,46441,46467,12,46469,46495,12,46497,46523,12,46525,46551,12,46553,46579,12,46581,46607,12,46609,46635,12,46637,46663,12,46665,46691,12,46693,46719,12,46721,46747,12,46749,46775,12,46777,46803,12,46805,46831,12,46833,46859,12,46861,46887,12,46889,46915,12,46917,46943,12,46945,46971,12,46973,46999,12,47001,47027,12,47029,47055,12,47057,47083,12,47085,47111,12,47113,47139,12,47141,47167,12,47169,47195,12,47197,47223,12,47225,47251,12,47253,47279,12,47281,47307,12,47309,47335,12,47337,47363,12,47365,47391,12,47393,47419,12,47421,47447,12,47449,47475,12,47477,47503,12,47505,47531,12,47533,47559,12,47561,47587,12,47589,47615,12,47617,47643,12,47645,47671,12,47673,47699,12,47701,47727,12,47729,47755,12,47757,47783,12,47785,47811,12,47813,47839,12,47841,47867,12,47869,47895,12,47897,47923,12,47925,47951,12,47953,47979,12,47981,48007,12,48009,48035,12,48037,48063,12,48065,48091,12,48093,48119,12,48121,48147,12,48149,48175,12,48177,48203,12,48205,48231,12,48233,48259,12,48261,48287,12,48289,48315,12,48317,48343,12,48345,48371,12,48373,48399,12,48401,48427,12,48429,48455,12,48457,48483,12,48485,48511,12,48513,48539,12,48541,48567,12,48569,48595,12,48597,48623,12,48625,48651,12,48653,48679,12,48681,48707,12,48709,48735,12,48737,48763,12,48765,48791,12,48793,48819,12,48821,48847,12,48849,48875,12,48877,48903,12,48905,48931,12,48933,48959,12,48961,48987,12,48989,49015,12,49017,49043,12,49045,49071,12,49073,49099,12,49101,49127,12,49129,49155,12,49157,49183,12,49185,49211,12,49213,49239,12,49241,49267,12,49269,49295,12,49297,49323,12,49325,49351,12,49353,49379,12,49381,49407,12,49409,49435,12,49437,49463,12,49465,49491,12,49493,49519,12,49521,49547,12,49549,49575,12,49577,49603,12,49605,49631,12,49633,49659,12,49661,49687,12,49689,49715,12,49717,49743,12,49745,49771,12,49773,49799,12,49801,49827,12,49829,49855,12,49857,49883,12,49885,49911,12,49913,49939,12,49941,49967,12,49969,49995,12,49997,50023,12,50025,50051,12,50053,50079,12,50081,50107,12,50109,50135,12,50137,50163,12,50165,50191,12,50193,50219,12,50221,50247,12,50249,50275,12,50277,50303,12,50305,50331,12,50333,50359,12,50361,50387,12,50389,50415,12,50417,50443,12,50445,50471,12,50473,50499,12,50501,50527,12,50529,50555,12,50557,50583,12,50585,50611,12,50613,50639,12,50641,50667,12,50669,50695,12,50697,50723,12,50725,50751,12,50753,50779,12,50781,50807,12,50809,50835,12,50837,50863,12,50865,50891,12,50893,50919,12,50921,50947,12,50949,50975,12,50977,51003,12,51005,51031,12,51033,51059,12,51061,51087,12,51089,51115,12,51117,51143,12,51145,51171,12,51173,51199,12,51201,51227,12,51229,51255,12,51257,51283,12,51285,51311,12,51313,51339,12,51341,51367,12,51369,51395,12,51397,51423,12,51425,51451,12,51453,51479,12,51481,51507,12,51509,51535,12,51537,51563,12,51565,51591,12,51593,51619,12,51621,51647,12,51649,51675,12,51677,51703,12,51705,51731,12,51733,51759,12,51761,51787,12,51789,51815,12,51817,51843,12,51845,51871,12,51873,51899,12,51901,51927,12,51929,51955,12,51957,51983,12,51985,52011,12,52013,52039,12,52041,52067,12,52069,52095,12,52097,52123,12,52125,52151,12,52153,52179,12,52181,52207,12,52209,52235,12,52237,52263,12,52265,52291,12,52293,52319,12,52321,52347,12,52349,52375,12,52377,52403,12,52405,52431,12,52433,52459,12,52461,52487,12,52489,52515,12,52517,52543,12,52545,52571,12,52573,52599,12,52601,52627,12,52629,52655,12,52657,52683,12,52685,52711,12,52713,52739,12,52741,52767,12,52769,52795,12,52797,52823,12,52825,52851,12,52853,52879,12,52881,52907,12,52909,52935,12,52937,52963,12,52965,52991,12,52993,53019,12,53021,53047,12,53049,53075,12,53077,53103,12,53105,53131,12,53133,53159,12,53161,53187,12,53189,53215,12,53217,53243,12,53245,53271,12,53273,53299,12,53301,53327,12,53329,53355,12,53357,53383,12,53385,53411,12,53413,53439,12,53441,53467,12,53469,53495,12,53497,53523,12,53525,53551,12,53553,53579,12,53581,53607,12,53609,53635,12,53637,53663,12,53665,53691,12,53693,53719,12,53721,53747,12,53749,53775,12,53777,53803,12,53805,53831,12,53833,53859,12,53861,53887,12,53889,53915,12,53917,53943,12,53945,53971,12,53973,53999,12,54001,54027,12,54029,54055,12,54057,54083,12,54085,54111,12,54113,54139,12,54141,54167,12,54169,54195,12,54197,54223,12,54225,54251,12,54253,54279,12,54281,54307,12,54309,54335,12,54337,54363,12,54365,54391,12,54393,54419,12,54421,54447,12,54449,54475,12,54477,54503,12,54505,54531,12,54533,54559,12,54561,54587,12,54589,54615,12,54617,54643,12,54645,54671,12,54673,54699,12,54701,54727,12,54729,54755,12,54757,54783,12,54785,54811,12,54813,54839,12,54841,54867,12,54869,54895,12,54897,54923,12,54925,54951,12,54953,54979,12,54981,55007,12,55009,55035,12,55037,55063,12,55065,55091,12,55093,55119,12,55121,55147,12,55149,55175,12,55177,55203,12,55243,55291,10,65024,65039,5,65279,65279,4,65520,65528,4,66045,66045,5,66422,66426,5,68101,68102,5,68152,68154,5,68325,68326,5,69291,69292,5,69632,69632,7,69634,69634,7,69759,69761,5]")}function _e(O,C){if(O===0)return 0;const k=M(O,C);if(k!==void 0)return k;const he=ne(C,O);return O-=ce(he),O}function M(O,C){let k=ne(C,O);for(O-=ce(k);xe(k)||k===65039||k===8419;){if(O===0)return;k=ne(C,O),O-=ce(k)}if(at(k)){if(O>=0){const he=ne(C,O);he===8205&&(O-=ce(he))}return O}}function ce(O){return O>=65536?2:1}function xe(O){return 127995<=O&&O<=127999}},72999:function(Ht,et,_){"use strict";_.d(et,{$E:function(){return y},$K:function(){return Te},D8:function(){return v},HD:function(){return N},IU:function(){return q},Jp:function(){return be},Kn:function(){return ie},cW:function(){return L},f6:function(){return ae},hj:function(){return Re},jn:function(){return ve},kJ:function(){return T},mf:function(){return $},o8:function(){return le},p_:function(){return o},vE:function(){return P}});function T(z){return Array.isArray(z)}function N(z){return typeof z=="string"}function ie(z){return typeof z=="object"&&z!==null&&!Array.isArray(z)&&!(z instanceof RegExp)&&!(z instanceof Date)}function Re(z){return typeof z=="number"&&!isNaN(z)}function ve(z){return z===!0||z===!1}function le(z){return typeof z=="undefined"}function Te(z){return!be(z)}function be(z){return le(z)||z===null}function o(z,W){if(!z)throw new Error(W?`Unexpected type, expected '${W}'`:"Unexpected type")}function L(z){if(be(z))throw new Error("Assertion Failed: argument is undefined or null");return z}function $(z){return typeof z=="function"}function v(z,W){const re=Math.min(z.length,W.length);for(let b=0;b<re;b++)c(z[b],W[b])}function c(z,W){if(N(W)){if(typeof z!==W)throw new Error(`argument does not match constraint: typeof ${W}`)}else if($(W)){try{if(z instanceof W)return}catch(re){}if(!be(z)&&z.constructor===W||W.length===1&&W.call(void 0,z)===!0)return;throw new Error("argument does not match one of these constraints: arg instanceof constraint, arg.constructor === constraint, nor constraint(arg) === true")}}function S(z){let W=[],re=Object.getPrototypeOf(z);for(;Object.prototype!==re;)W=W.concat(Object.getOwnPropertyNames(re)),re=Object.getPrototypeOf(re);return W}function y(z){const W=[];for(const re of S(z))typeof z[re]=="function"&&W.push(re);return W}function q(z,W){const re=D=>function(){const F=Array.prototype.slice.call(arguments,0);return W(D,F)};let b={};for(const D of z)b[D]=re(D);return b}function ae(z){return z===null?void 0:z}function P(z,W="Unreachable"){throw new Error(W)}},13268:function(Ht,et,_){"use strict";_.d(et,{N:function(){return N}});function T(ie,Re){let ve;return Re.length===0?ve=ie:ve=ie.replace(/\{(\d+)\}/g,function(le,Te){const be=Te[0];return typeof Re[be]!="undefined"?Re[be]:le}),ve}function N(ie,Re,...ve){return T(Re,ve)}},96236:function(Ht,et,_){"use strict";_.d(et,{BH:function(){return q},NZ:function(){return ae},U8:function(){return P},co:function(){return y},eH:function(){return S},vr:function(){return c}});var T=_(75918),N=_(52615),ie=_(4348),Re=_(88226),ve=_(69323),le=_(34502),Te=_(35884),be=_(90689),o=_(16925),L=_(49055),$=function(z,W,re,b){var D=arguments.length,F=D<3?W:b===null?b=Object.getOwnPropertyDescriptor(W,re):b,U;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")F=Reflect.decorate(z,W,re,b);else for(var fe=z.length-1;fe>=0;fe--)(U=z[fe])&&(F=(D<3?U(F):D>3?U(W,re,F):U(W,re))||F);return D>3&&F&&Object.defineProperty(W,re,F),F},v=function(z,W){return function(re,b){W(re,b,z)}};function c(z){return z.command!==void 0}class S{constructor(W){this.id=S._idPool++,this._debugName=W}}S._idPool=0,S.CommandPalette=new S("CommandPalette"),S.EditorContext=new S("EditorContext"),S.SimpleEditorContext=new S("SimpleEditorContext"),S.EditorContextCopy=new S("EditorContextCopy"),S.EditorContextPeek=new S("EditorContextPeek"),S.MenubarEditMenu=new S("MenubarEditMenu"),S.MenubarCopy=new S("MenubarCopy"),S.MenubarGoMenu=new S("MenubarGoMenu"),S.MenubarSelectionMenu=new S("MenubarSelectionMenu"),S.InlineCompletionsActions=new S("InlineCompletionsActions");const y=(0,o.yh)("menuService"),q=new class{constructor(){this._commands=new Map,this._menuItems=new Map,this._onDidChangeMenu=new ie.Q5,this.onDidChangeMenu=this._onDidChangeMenu.event,this._commandPaletteChangeEvent={has:z=>z===S.CommandPalette}}addCommand(z){return this.addCommands(Re.$.single(z))}addCommands(z){for(const W of z)this._commands.set(W.id,W);return this._onDidChangeMenu.fire(this._commandPaletteChangeEvent),(0,ve.OF)(()=>{let W=!1;for(const re of z)W=this._commands.delete(re.id)||W;W&&this._onDidChangeMenu.fire(this._commandPaletteChangeEvent)})}getCommand(z){return this._commands.get(z)}getCommands(){const z=new Map;return this._commands.forEach((W,re)=>z.set(re,W)),z}appendMenuItem(z,W){return this.appendMenuItems(Re.$.single({id:z,item:W}))}appendMenuItems(z){const W=new Set,re=new le.S;for(const{id:b,item:D}of z){let F=this._menuItems.get(b);F||(F=new le.S,this._menuItems.set(b,F)),re.push(F.push(D)),W.add(b)}return this._onDidChangeMenu.fire(W),(0,ve.OF)(()=>{if(re.size>0){for(let b of re)b();this._onDidChangeMenu.fire(W),re.clear()}})}getMenuItems(z){let W;return this._menuItems.has(z)?W=[...this._menuItems.get(z)]:W=[],z===S.CommandPalette&&this._appendImplicitItems(W),W}_appendImplicitItems(z){const W=new Set;for(const re of z)c(re)&&(W.add(re.command.id),re.alt&&W.add(re.alt.id));this._commands.forEach((re,b)=>{W.has(b)||z.push({command:re})})}};class ae extends T.wY{constructor(W,re,b,D){super(`submenuitem.${W.submenu.id}`,typeof W.title=="string"?W.title:W.title.value,[],"submenu"),this.item=W,this._menuService=re,this._contextKeyService=b,this._options=D}get actions(){const W=[],re=this._menuService.createMenu(this.item.submenu,this._contextKeyService),b=re.getActions(this._options);re.dispose();for(const[,D]of b)D.length>0&&(W.push(...D),W.push(new T.Z0));return W.length&&W.pop(),W}}let P=class Qo{constructor(W,re,b,D,F){var U,fe;if(this._commandService=F,this.id=W.id,this.label=b!=null&&b.renderShortTitle&&W.shortTitle?typeof W.shortTitle=="string"?W.shortTitle:W.shortTitle.value:typeof W.title=="string"?W.title:W.title.value,this.tooltip=(fe=typeof W.tooltip=="string"?W.tooltip:(U=W.tooltip)===null||U===void 0?void 0:U.value)!==null&&fe!==void 0?fe:"",this.enabled=!W.precondition||D.contextMatchesRules(W.precondition),this.checked=void 0,W.toggled){const ye=W.toggled.condition?W.toggled:{condition:W.toggled};this.checked=D.contextMatchesRules(ye.condition),this.checked&&ye.tooltip&&(this.tooltip=typeof ye.tooltip=="string"?ye.tooltip:ye.tooltip.value),ye.title&&(this.label=typeof ye.title=="string"?ye.title:ye.title.value)}this.item=W,this.alt=re?new Qo(re,void 0,b,D,F):void 0,this._options=b,L.kS.isThemeIcon(W.icon)&&(this.class=N.dT.asClassName(W.icon))}dispose(){}run(...W){var re,b;let D=[];return!((re=this._options)===null||re===void 0)&&re.arg&&(D=[...D,this._options.arg]),!((b=this._options)===null||b===void 0)&&b.shouldForwardArgs&&(D=[...D,...W]),this._commandService.executeCommand(this.id,...D)}};P=$([v(3,be.i6),v(4,Te.H)],P)},35884:function(Ht,et,_){"use strict";_.d(et,{H:function(){return Te},P:function(){return be}});var T=_(4348),N=_(88226),ie=_(69323),Re=_(34502),ve=_(72999),le=_(16925);const Te=(0,le.yh)("commandService"),be=new class{constructor(){this._commands=new Map,this._onDidRegisterCommand=new T.Q5,this.onDidRegisterCommand=this._onDidRegisterCommand.event}registerCommand(o,L){if(!o)throw new Error("invalid command");if(typeof o=="string"){if(!L)throw new Error("invalid command");return this.registerCommand({id:o,handler:L})}if(o.description){const y=[];for(let ae of o.description.args)y.push(ae.constraint);const q=o.handler;o.handler=function(ae,...P){return(0,ve.D8)(P,y),q(ae,...P)}}const{id:$}=o;let v=this._commands.get($);v||(v=new Re.S,this._commands.set($,v));let c=v.unshift(o),S=(0,ie.OF)(()=>{c();const y=this._commands.get($);y!=null&&y.isEmpty()&&this._commands.delete($)});return this._onDidRegisterCommand.fire($),S}registerCommandAlias(o,L){return be.registerCommand(o,($,...v)=>$.get(Te).executeCommand(L,...v))}getCommand(o){const L=this._commands.get(o);if(!(!L||L.isEmpty()))return N.$.first(L)}getCommands(){const o=new Map;for(const L of this._commands.keys()){const $=this.getCommand(L);$&&o.set(L,$)}return o}};be.registerCommand("noop",()=>{})},90689:function(Ht,et,_){"use strict";_.d(et,{Ao:function(){return Te},Eq:function(){return Z},Fb:function(){return be},K8:function(){return X},i6:function(){return Ne},uy:function(){return Se}});var T=_(23345),N=_(82983),ie=_(16925);let Re=T.WE||"";const ve=new Map;ve.set("false",!1),ve.set("true",!0),ve.set("isMac",T.dz),ve.set("isLinux",T.IJ),ve.set("isWindows",T.ED),ve.set("isWeb",T.$L),ve.set("isMacNative",T.dz&&!T.$L),ve.set("isEdge",Re.indexOf("Edg/")>=0),ve.set("isFirefox",Re.indexOf("Firefox")>=0),ve.set("isChrome",Re.indexOf("Chrome")>=0),ve.set("isSafari",Re.indexOf("Safari")>=0);const le=Object.prototype.hasOwnProperty;class Te{static has(g){return v.create(g)}static equals(g,w){return c.create(g,w)}static regex(g,w){return D.create(g,w)}static not(g){return ae.create(g)}static and(...g){return fe.create(g,null)}static or(...g){return ye.create(g,null,!0)}static deserialize(g,w=!1){if(g)return this._deserializeOrExpression(g,w)}static _deserializeOrExpression(g,w){let Q=g.split("||");return ye.create(Q.map(J=>this._deserializeAndExpression(J,w)),null,!0)}static _deserializeAndExpression(g,w){let Q=g.split("&&");return fe.create(Q.map(J=>this._deserializeOne(J,w)),null)}static _deserializeOne(g,w){if(g=g.trim(),g.indexOf("!=")>=0){let Q=g.split("!=");return q.create(Q[0].trim(),this._deserializeValue(Q[1],w))}if(g.indexOf("==")>=0){let Q=g.split("==");return c.create(Q[0].trim(),this._deserializeValue(Q[1],w))}if(g.indexOf("=~")>=0){let Q=g.split("=~");return D.create(Q[0].trim(),this._deserializeRegexValue(Q[1],w))}if(g.indexOf(" in ")>=0){let Q=g.split(" in ");return S.create(Q[0].trim(),Q[1].trim())}if(/^[^<=>]+>=[^<=>]+$/.test(g)){const Q=g.split(">=");return W.create(Q[0].trim(),Q[1].trim())}if(/^[^<=>]+>[^<=>]+$/.test(g)){const Q=g.split(">");return z.create(Q[0].trim(),Q[1].trim())}if(/^[^<=>]+<=[^<=>]+$/.test(g)){const Q=g.split("<=");return b.create(Q[0].trim(),Q[1].trim())}if(/^[^<=>]+<[^<=>]+$/.test(g)){const Q=g.split("<");return re.create(Q[0].trim(),Q[1].trim())}return/^\!\s*/.test(g)?ae.create(g.substr(1).trim()):v.create(g)}static _deserializeValue(g,w){if(g=g.trim(),g==="true")return!0;if(g==="false")return!1;let Q=/^'([^']*)'$/.exec(g);return Q?Q[1].trim():g}static _deserializeRegexValue(g,w){if((0,N.m5)(g)){if(w)throw new Error("missing regexp-value for =~-expression");return console.warn("missing regexp-value for =~-expression"),null}let Q=g.indexOf("/"),J=g.lastIndexOf("/");if(Q===J||Q<0){if(w)throw new Error(`bad regexp-value '${g}', missing /-enclosure`);return console.warn(`bad regexp-value '${g}', missing /-enclosure`),null}let Pe=g.slice(Q+1,J),Ue=g[J+1]==="i"?"i":"";try{return new RegExp(Pe,Ue)}catch(Xe){if(w)throw new Error(`bad regexp-value '${g}', parse error: ${Xe}`);return console.warn(`bad regexp-value '${g}', parse error: ${Xe}`),null}}}function be(ee,g){const w=ee?ee.substituteConstants():void 0,Q=g?g.substituteConstants():void 0;return!w&&!Q?!0:!w||!Q?!1:w.equals(Q)}function o(ee,g){return ee.cmp(g)}class L{constructor(){this.type=0}cmp(g){return this.type-g.type}equals(g){return g.type===this.type}substituteConstants(){return this}evaluate(g){return!1}serialize(){return"false"}keys(){return[]}negate(){return $.INSTANCE}}L.INSTANCE=new L;class ${constructor(){this.type=1}cmp(g){return this.type-g.type}equals(g){return g.type===this.type}substituteConstants(){return this}evaluate(g){return!0}serialize(){return"true"}keys(){return[]}negate(){return L.INSTANCE}}$.INSTANCE=new $;class v{constructor(g,w){this.key=g,this.negated=w,this.type=2}static create(g,w=null){const Q=ve.get(g);return typeof Q=="boolean"?Q?$.INSTANCE:L.INSTANCE:new v(g,w)}cmp(g){return g.type!==this.type?this.type-g.type:B(this.key,g.key)}equals(g){return g.type===this.type?this.key===g.key:!1}substituteConstants(){const g=ve.get(this.key);return typeof g=="boolean"?g?$.INSTANCE:L.INSTANCE:this}evaluate(g){return!!g.getValue(this.key)}serialize(){return this.key}keys(){return[this.key]}negate(){return this.negated||(this.negated=ae.create(this.key,this)),this.negated}}class c{constructor(g,w,Q){this.key=g,this.value=w,this.negated=Q,this.type=4}static create(g,w,Q=null){if(typeof w=="boolean")return w?v.create(g,Q):ae.create(g,Q);const J=ve.get(g);return typeof J=="boolean"?w===(J?"true":"false")?$.INSTANCE:L.INSTANCE:new c(g,w,Q)}cmp(g){return g.type!==this.type?this.type-g.type:ne(this.key,this.value,g.key,g.value)}equals(g){return g.type===this.type?this.key===g.key&&this.value===g.value:!1}substituteConstants(){const g=ve.get(this.key);if(typeof g=="boolean"){const w=g?"true":"false";return this.value===w?$.INSTANCE:L.INSTANCE}return this}evaluate(g){return g.getValue(this.key)==this.value}serialize(){return`${this.key} == '${this.value}'`}keys(){return[this.key]}negate(){return this.negated||(this.negated=q.create(this.key,this.value,this)),this.negated}}class S{constructor(g,w){this.key=g,this.valueKey=w,this.type=10,this.negated=null}static create(g,w){return new S(g,w)}cmp(g){return g.type!==this.type?this.type-g.type:ne(this.key,this.valueKey,g.key,g.valueKey)}equals(g){return g.type===this.type?this.key===g.key&&this.valueKey===g.valueKey:!1}substituteConstants(){return this}evaluate(g){const w=g.getValue(this.valueKey),Q=g.getValue(this.key);return Array.isArray(w)?w.indexOf(Q)>=0:typeof Q=="string"&&typeof w=="object"&&w!==null?le.call(w,Q):!1}serialize(){return`${this.key} in '${this.valueKey}'`}keys(){return[this.key,this.valueKey]}negate(){return this.negated||(this.negated=y.create(this)),this.negated}}class y{constructor(g){this._actual=g,this.type=11}static create(g){return new y(g)}cmp(g){return g.type!==this.type?this.type-g.type:this._actual.cmp(g._actual)}equals(g){return g.type===this.type?this._actual.equals(g._actual):!1}substituteConstants(){return this}evaluate(g){return!this._actual.evaluate(g)}serialize(){throw new Error("Method not implemented.")}keys(){return this._actual.keys()}negate(){return this._actual}}class q{constructor(g,w,Q){this.key=g,this.value=w,this.negated=Q,this.type=5}static create(g,w,Q=null){if(typeof w=="boolean")return w?ae.create(g,Q):v.create(g,Q);const J=ve.get(g);return typeof J=="boolean"?w===(J?"true":"false")?L.INSTANCE:$.INSTANCE:new q(g,w,Q)}cmp(g){return g.type!==this.type?this.type-g.type:ne(this.key,this.value,g.key,g.value)}equals(g){return g.type===this.type?this.key===g.key&&this.value===g.value:!1}substituteConstants(){const g=ve.get(this.key);if(typeof g=="boolean"){const w=g?"true":"false";return this.value===w?L.INSTANCE:$.INSTANCE}return this}evaluate(g){return g.getValue(this.key)!=this.value}serialize(){return`${this.key} != '${this.value}'`}keys(){return[this.key]}negate(){return this.negated||(this.negated=c.create(this.key,this.value,this)),this.negated}}class ae{constructor(g,w){this.key=g,this.negated=w,this.type=3}static create(g,w=null){const Q=ve.get(g);return typeof Q=="boolean"?Q?L.INSTANCE:$.INSTANCE:new ae(g,w)}cmp(g){return g.type!==this.type?this.type-g.type:B(this.key,g.key)}equals(g){return g.type===this.type?this.key===g.key:!1}substituteConstants(){const g=ve.get(this.key);return typeof g=="boolean"?g?L.INSTANCE:$.INSTANCE:this}evaluate(g){return!g.getValue(this.key)}serialize(){return`!${this.key}`}keys(){return[this.key]}negate(){return this.negated||(this.negated=v.create(this.key,this)),this.negated}}function P(ee,g){if(typeof ee=="string"){const w=parseFloat(ee);isNaN(w)||(ee=w)}return typeof ee=="string"||typeof ee=="number"?g(ee):L.INSTANCE}class z{constructor(g,w,Q){this.key=g,this.value=w,this.negated=Q,this.type=12}static create(g,w,Q=null){return P(w,J=>new z(g,J,Q))}cmp(g){return g.type!==this.type?this.type-g.type:ne(this.key,this.value,g.key,g.value)}equals(g){return g.type===this.type?this.key===g.key&&this.value===g.value:!1}substituteConstants(){return this}evaluate(g){return typeof this.value=="string"?!1:parseFloat(g.getValue(this.key))>this.value}serialize(){return`${this.key} > ${this.value}`}keys(){return[this.key]}negate(){return this.negated||(this.negated=b.create(this.key,this.value,this)),this.negated}}class W{constructor(g,w,Q){this.key=g,this.value=w,this.negated=Q,this.type=13}static create(g,w,Q=null){return P(w,J=>new W(g,J,Q))}cmp(g){return g.type!==this.type?this.type-g.type:ne(this.key,this.value,g.key,g.value)}equals(g){return g.type===this.type?this.key===g.key&&this.value===g.value:!1}substituteConstants(){return this}evaluate(g){return typeof this.value=="string"?!1:parseFloat(g.getValue(this.key))>=this.value}serialize(){return`${this.key} >= ${this.value}`}keys(){return[this.key]}negate(){return this.negated||(this.negated=re.create(this.key,this.value,this)),this.negated}}class re{constructor(g,w,Q){this.key=g,this.value=w,this.negated=Q,this.type=14}static create(g,w,Q=null){return P(w,J=>new re(g,J,Q))}cmp(g){return g.type!==this.type?this.type-g.type:ne(this.key,this.value,g.key,g.value)}equals(g){return g.type===this.type?this.key===g.key&&this.value===g.value:!1}substituteConstants(){return this}evaluate(g){return typeof this.value=="string"?!1:parseFloat(g.getValue(this.key))<this.value}serialize(){return`${this.key} < ${this.value}`}keys(){return[this.key]}negate(){return this.negated||(this.negated=W.create(this.key,this.value,this)),this.negated}}class b{constructor(g,w,Q){this.key=g,this.value=w,this.negated=Q,this.type=15}static create(g,w,Q=null){return P(w,J=>new b(g,J,Q))}cmp(g){return g.type!==this.type?this.type-g.type:ne(this.key,this.value,g.key,g.value)}equals(g){return g.type===this.type?this.key===g.key&&this.value===g.value:!1}substituteConstants(){return this}evaluate(g){return typeof this.value=="string"?!1:parseFloat(g.getValue(this.key))<=this.value}serialize(){return`${this.key} <= ${this.value}`}keys(){return[this.key]}negate(){return this.negated||(this.negated=z.create(this.key,this.value,this)),this.negated}}class D{constructor(g,w){this.key=g,this.regexp=w,this.type=7,this.negated=null}static create(g,w){return new D(g,w)}cmp(g){if(g.type!==this.type)return this.type-g.type;if(this.key<g.key)return-1;if(this.key>g.key)return 1;const w=this.regexp?this.regexp.source:"",Q=g.regexp?g.regexp.source:"";return w<Q?-1:w>Q?1:0}equals(g){if(g.type===this.type){const w=this.regexp?this.regexp.source:"",Q=g.regexp?g.regexp.source:"";return this.key===g.key&&w===Q}return!1}substituteConstants(){return this}evaluate(g){let w=g.getValue(this.key);return this.regexp?this.regexp.test(w):!1}serialize(){const g=this.regexp?`/${this.regexp.source}/${this.regexp.ignoreCase?"i":""}`:"/invalid/";return`${this.key} =~ ${g}`}keys(){return[this.key]}negate(){return this.negated||(this.negated=F.create(this)),this.negated}}class F{constructor(g){this._actual=g,this.type=8}static create(g){return new F(g)}cmp(g){return g.type!==this.type?this.type-g.type:this._actual.cmp(g._actual)}equals(g){return g.type===this.type?this._actual.equals(g._actual):!1}substituteConstants(){return this}evaluate(g){return!this._actual.evaluate(g)}serialize(){throw new Error("Method not implemented.")}keys(){return this._actual.keys()}negate(){return this._actual}}function U(ee){let g=null;for(let w=0,Q=ee.length;w<Q;w++){const J=ee[w].substituteConstants();if(ee[w]!==J&&g===null){g=[];for(let Pe=0;Pe<w;Pe++)g[Pe]=ee[Pe]}g!==null&&(g[w]=J)}return g===null?ee:g}class fe{constructor(g,w){this.expr=g,this.negated=w,this.type=6}static create(g,w){return fe._normalizeArr(g,w)}cmp(g){if(g.type!==this.type)return this.type-g.type;if(this.expr.length<g.expr.length)return-1;if(this.expr.length>g.expr.length)return 1;for(let w=0,Q=this.expr.length;w<Q;w++){const J=o(this.expr[w],g.expr[w]);if(J!==0)return J}return 0}equals(g){if(g.type===this.type){if(this.expr.length!==g.expr.length)return!1;for(let w=0,Q=this.expr.length;w<Q;w++)if(!this.expr[w].equals(g.expr[w]))return!1;return!0}return!1}substituteConstants(){const g=U(this.expr);return g===this.expr?this:fe.create(g,this.negated)}evaluate(g){for(let w=0,Q=this.expr.length;w<Q;w++)if(!this.expr[w].evaluate(g))return!1;return!0}static _normalizeArr(g,w){const Q=[];let J=!1;for(const Pe of g)if(Pe){if(Pe.type===1){J=!0;continue}if(Pe.type===0)return L.INSTANCE;if(Pe.type===6){Q.push(...Pe.expr);continue}Q.push(Pe)}if(Q.length===0&&J)return $.INSTANCE;if(Q.length!==0){if(Q.length===1)return Q[0];Q.sort(o);for(let Pe=1;Pe<Q.length;Pe++)Q[Pe-1].equals(Q[Pe])&&(Q.splice(Pe,1),Pe--);if(Q.length===1)return Q[0];for(;Q.length>1;){const Pe=Q[Q.length-1];if(Pe.type!==9)break;Q.pop();const Ue=Q.pop(),Xe=Q.length===0,Ze=ye.create(Pe.expr.map(lt=>fe.create([lt,Ue],null)),null,Xe);Ze&&(Q.push(Ze),Q.sort(o))}return Q.length===1?Q[0]:new fe(Q,w)}}serialize(){return this.expr.map(g=>g.serialize()).join(" && ")}keys(){const g=[];for(let w of this.expr)g.push(...w.keys());return g}negate(){if(!this.negated){const g=[];for(let w of this.expr)g.push(w.negate());this.negated=ye.create(g,this,!0)}return this.negated}}class ye{constructor(g,w){this.expr=g,this.negated=w,this.type=9}static create(g,w,Q){return ye._normalizeArr(g,w,Q)}cmp(g){if(g.type!==this.type)return this.type-g.type;if(this.expr.length<g.expr.length)return-1;if(this.expr.length>g.expr.length)return 1;for(let w=0,Q=this.expr.length;w<Q;w++){const J=o(this.expr[w],g.expr[w]);if(J!==0)return J}return 0}equals(g){if(g.type===this.type){if(this.expr.length!==g.expr.length)return!1;for(let w=0,Q=this.expr.length;w<Q;w++)if(!this.expr[w].equals(g.expr[w]))return!1;return!0}return!1}substituteConstants(){const g=U(this.expr);return g===this.expr?this:ye.create(g,this.negated,!1)}evaluate(g){for(let w=0,Q=this.expr.length;w<Q;w++)if(this.expr[w].evaluate(g))return!0;return!1}static _normalizeArr(g,w,Q){let J=[],Pe=!1;if(g){for(let Ue=0,Xe=g.length;Ue<Xe;Ue++){const Ze=g[Ue];if(Ze){if(Ze.type===0){Pe=!0;continue}if(Ze.type===1)return $.INSTANCE;if(Ze.type===9){J=J.concat(Ze.expr);continue}J.push(Ze)}}if(J.length===0&&Pe)return L.INSTANCE;J.sort(o)}if(J.length!==0){if(J.length===1)return J[0];for(let Ue=1;Ue<J.length;Ue++)J[Ue-1].equals(J[Ue])&&(J.splice(Ue,1),Ue--);if(J.length===1)return J[0];if(Q){for(let Ue=0;Ue<J.length;Ue++)for(let Xe=Ue+1;Xe<J.length;Xe++)X(J[Ue],J[Xe])&&(J.splice(Xe,1),Xe--);if(J.length===1)return J[0]}return new ye(J,w)}}serialize(){return this.expr.map(g=>g.serialize()).join(" || ")}keys(){const g=[];for(let w of this.expr)g.push(...w.keys());return g}negate(){if(!this.negated){let g=[];for(let w of this.expr)g.push(w.negate());for(;g.length>1;){const w=g.shift(),Q=g.shift(),J=[];for(const Ue of me(w))for(const Xe of me(Q))J.push(fe.create([Ue,Xe],null));const Pe=g.length===0;g.unshift(ye.create(J,null,Pe))}this.negated=g[0]}return this.negated}}class Se extends v{constructor(g,w,Q){super(g,null),this._defaultValue=w,typeof Q=="object"?Se._info.push(Object.assign(Object.assign({},Q),{key:g})):Q!==!0&&Se._info.push({key:g,description:Q,type:w!=null?typeof w:void 0})}static all(){return Se._info.values()}bindTo(g){return g.createKey(this.key,this._defaultValue)}getValue(g){return g.getContextKeyValue(this.key)}toNegated(){return this.negate()}isEqualTo(g){return c.create(this.key,g)}}Se._info=[];const Ne=(0,ie.yh)("contextKeyService"),Z="setContext";function B(ee,g){return ee<g?-1:ee>g?1:0}function ne(ee,g,w,Q){return ee<w?-1:ee>w?1:g<Q?-1:g>Q?1:0}function X(ee,g){if(g.type===6&&ee.type!==9&&ee.type!==6){for(const J of g.expr)if(ee.equals(J))return!0}const w=ee.negate(),Q=me(w).concat(me(g));Q.sort(o);for(let J=0;J<Q.length;J++){const Ue=Q[J].negate();for(let Xe=J+1;Xe<Q.length;Xe++){const Ze=Q[Xe];if(Ue.equals(Ze))return!0}}return!1}function me(ee){return ee.type===9?ee.expr:[ee]}},16925:function(Ht,et,_){"use strict";_.d(et,{I8:function(){return T},TG:function(){return N},jt:function(){return ve},yh:function(){return Re}});var T;(function(le){le.serviceIds=new Map,le.DI_TARGET="$di$target",le.DI_DEPENDENCIES="$di$dependencies";function Te(be){return be[le.DI_DEPENDENCIES]||[]}le.getServiceDependencies=Te})(T||(T={}));const N=Re("instantiationService");function ie(le,Te,be,o){Te[T.DI_TARGET]===Te?Te[T.DI_DEPENDENCIES].push({id:le,index:be,optional:o}):(Te[T.DI_DEPENDENCIES]=[{id:le,index:be,optional:o}],Te[T.DI_TARGET]=Te)}function Re(le){if(T.serviceIds.has(le))return T.serviceIds.get(le);const Te=function(be,o,L){if(arguments.length!==3)throw new Error("@IServiceName-decorator can only be used to decorate a parameter");ie(Te,be,L,!1)};return Te.toString=()=>le,T.serviceIds.set(le,Te),Te}function ve(le){return function(Te,be,o){if(arguments.length!==3)throw new Error("@optional-decorator can only be used to decorate a parameter");ie(le,Te,o,!0)}}},44650:function(Ht,et,_){"use strict";_.d(et,{B:function(){return Re}});var T=_(76068),N=_(72999);class ie{constructor(){this.data=new Map}add(le,Te){T.ok(N.HD(le)),T.ok(N.Kn(Te)),T.ok(!this.data.has(le),"There is already an extension with this id"),this.data.set(le,Te)}as(le){return this.data.get(le)||null}}const Re=new ie},66213:function(Ht,et,_){"use strict";_.d(et,{e:function(){return T}});var T;(function(N){N.DARK="dark",N.LIGHT="light",N.HIGH_CONTRAST="hc"})(T||(T={}))},49055:function(Ht,et,_){"use strict";_.d(et,{EN:function(){return o},IP:function(){return v},Ic:function(){return y},XE:function(){return Te},bB:function(){return q},kS:function(){return L},m6:function(){return $}});var T=_(52615),N=_(4348),ie=_(69323),Re=_(16925),ve=_(44650),le=_(66213);const Te=(0,Re.yh)("themeService");var be;(function(ae){function P(z){return z&&typeof z=="object"&&typeof z.id=="string"}ae.isThemeColor=P})(be||(be={}));function o(ae){return{id:ae}}var L;(function(ae){function P(F){return F&&typeof F=="object"&&typeof F.id=="string"&&(typeof F.color=="undefined"||be.isThemeColor(F.color))}ae.isThemeIcon=P;const z=new RegExp(`^\\$\\((${T.dT.iconNameExpression}(?:${T.dT.iconModifierExpression})?)\\)$`);function W(F){const U=z.exec(F);if(!U)return;let[,fe]=U;return{id:fe}}ae.fromString=W;function re(F,U){let fe=F.id;const ye=fe.lastIndexOf("~");return ye!==-1&&(fe=fe.substring(0,ye)),U&&(fe=`${fe}~${U}`),{id:fe}}ae.modify=re;function b(F,U){var fe,ye;return F.id===U.id&&((fe=F.color)===null||fe===void 0?void 0:fe.id)===((ye=U.color)===null||ye===void 0?void 0:ye.id)}ae.isEqual=b;function D(F,U){return{id:F.id,color:U?o(U):void 0}}ae.asThemeIcon=D,ae.asClassNameArray=T.dT.asClassNameArray,ae.asClassName=T.dT.asClassName,ae.asCSSSelector=T.dT.asCSSSelector})(L||(L={}));function $(ae){switch(ae){case le.e.DARK:return"vs-dark";case le.e.HIGH_CONTRAST:return"hc-black";default:return"vs"}}const v={ThemingContribution:"base.contributions.theming"};class c{constructor(){this.themingParticipants=[],this.themingParticipants=[],this.onThemingParticipantAddedEmitter=new N.Q5}onColorThemeChange(P){return this.themingParticipants.push(P),this.onThemingParticipantAddedEmitter.fire(P),(0,ie.OF)(()=>{const z=this.themingParticipants.indexOf(P);this.themingParticipants.splice(z,1)})}getThemingParticipants(){return this.themingParticipants}}let S=new c;ve.B.add(v.ThemingContribution,S);function y(ae){return S.onColorThemeChange(ae)}class q extends ie.JT{constructor(P){super(),this.themeService=P,this.theme=P.getColorTheme(),this._register(this.themeService.onDidColorThemeChange(z=>this.onThemeChange(z)))}onThemeChange(P){this.theme=P,this.updateStyles()}updateStyles(){}}},31561:function(Ht,et,_){"use strict";_.d(et,{Z:function(){return F}});var T=_(96663),N=_(90493),ie=_(72071),Re=_(6620),ve=_(35593),le=_(92310),Te=_.n(le),be=_(8654),o=_(59301),L=_(10228),$=_(16089),v=L.Z.ESC,c=L.Z.TAB;function S(U){var fe=U.visible,ye=U.triggerRef,Se=U.onVisibleChange,Ne=U.autoFocus,Z=U.overlayRef,B=o.useRef(!1),ne=function(){if(fe){var g,w;(g=ye.current)===null||g===void 0||(w=g.focus)===null||w===void 0||w.call(g),Se==null||Se(!1)}},X=function(){var g;return(g=Z.current)!==null&&g!==void 0&&g.focus?(Z.current.focus(),B.current=!0,!0):!1},me=function(g){switch(g.keyCode){case v:ne();break;case c:{var w=!1;B.current||(w=X()),w?g.preventDefault():ne();break}}};o.useEffect(function(){return fe?(window.addEventListener("keydown",me),Ne&&(0,$.Z)(X,3),function(){window.removeEventListener("keydown",me),B.current=!1}):function(){B.current=!1}},[fe])}var y=(0,o.forwardRef)(function(U,fe){var ye=U.overlay,Se=U.arrow,Ne=U.prefixCls,Z=(0,o.useMemo)(function(){var ne;return typeof ye=="function"?ne=ye():ne=ye,ne},[ye]),B=(0,be.sQ)(fe,Z==null?void 0:Z.ref);return o.createElement(o.Fragment,null,Se&&o.createElement("div",{className:"".concat(Ne,"-arrow")}),o.cloneElement(Z,{ref:(0,be.Yr)(Z)?B:void 0}))}),q=y,ae={adjustX:1,adjustY:1},P=[0,0],z={topLeft:{points:["bl","tl"],overflow:ae,offset:[0,-4],targetOffset:P},top:{points:["bc","tc"],overflow:ae,offset:[0,-4],targetOffset:P},topRight:{points:["br","tr"],overflow:ae,offset:[0,-4],targetOffset:P},bottomLeft:{points:["tl","bl"],overflow:ae,offset:[0,4],targetOffset:P},bottom:{points:["tc","bc"],overflow:ae,offset:[0,4],targetOffset:P},bottomRight:{points:["tr","br"],overflow:ae,offset:[0,4],targetOffset:P}},W=z,re=["arrow","prefixCls","transitionName","animation","align","placement","placements","getPopupContainer","showAction","hideAction","overlayClassName","overlayStyle","visible","trigger","autoFocus","overlay","children","onVisibleChange"];function b(U,fe){var ye,Se=U.arrow,Ne=Se===void 0?!1:Se,Z=U.prefixCls,B=Z===void 0?"rc-dropdown":Z,ne=U.transitionName,X=U.animation,me=U.align,ee=U.placement,g=ee===void 0?"bottomLeft":ee,w=U.placements,Q=w===void 0?W:w,J=U.getPopupContainer,Pe=U.showAction,Ue=U.hideAction,Xe=U.overlayClassName,Ze=U.overlayStyle,lt=U.visible,at=U.trigger,ct=at===void 0?["hover"]:at,Ot=U.autoFocus,Ut=U.overlay,un=U.children,Ft=U.onVisibleChange,nt=(0,Re.Z)(U,re),Et=o.useState(),oe=(0,ie.Z)(Et,2),_e=oe[0],M=oe[1],ce="visible"in U?lt:_e,xe=o.useRef(null),O=o.useRef(null),C=o.useRef(null);o.useImperativeHandle(fe,function(){return xe.current});var k=function(Qe){M(Qe),Ft==null||Ft(Qe)};S({visible:ce,triggerRef:C,onVisibleChange:k,autoFocus:Ot,overlayRef:O});var he=function(Qe){var Je=U.onOverlayClick;M(!1),Je&&Je(Qe)},de=function(){return o.createElement(q,{ref:O,overlay:Ut,prefixCls:B,arrow:Ne})},K=function(){return typeof Ut=="function"?de:de()},Ie=function(){var Qe=U.minOverlayWidthMatchTrigger,Je=U.alignPoint;return"minOverlayWidthMatchTrigger"in U?Qe:!Je},$e=function(){var Qe=U.openClassName;return Qe!==void 0?Qe:"".concat(B,"-open")},Me=o.cloneElement(un,{className:Te()((ye=un.props)===null||ye===void 0?void 0:ye.className,ce&&$e()),ref:(0,be.Yr)(un)?(0,be.sQ)(C,un.ref):void 0}),Be=Ue;return!Be&&ct.indexOf("contextMenu")!==-1&&(Be=["click"]),o.createElement(ve.Z,(0,T.Z)({builtinPlacements:Q},nt,{prefixCls:B,ref:xe,popupClassName:Te()(Xe,(0,N.Z)({},"".concat(B,"-show-arrow"),Ne)),popupStyle:Ze,action:ct,showAction:Pe,hideAction:Be,popupPlacement:g,popupAlign:me,popupTransitionName:ne,popupAnimation:X,popupVisible:ce,stretch:Ie()?"minWidth":"",popup:K(),onPopupVisibleChange:k,onPopupClick:he,getPopupContainer:J}),Me)}var D=o.forwardRef(b),F=D},93681:function(Ht,et,_){"use strict";_.r(et),_.d(et,{BaseInput:function(){return L},default:function(){return z}});var T=_(96663),N=_(44127),ie=_(90493),Re=_(20135),ve=_(92310),le=_.n(ve),Te=_(59301),be=_(5643),o=function(re){var b,D,F=re.inputElement,U=re.prefixCls,fe=re.prefix,ye=re.suffix,Se=re.addonBefore,Ne=re.addonAfter,Z=re.className,B=re.style,ne=re.disabled,X=re.readOnly,me=re.focused,ee=re.triggerFocus,g=re.allowClear,w=re.value,Q=re.handleReset,J=re.hidden,Pe=re.classes,Ue=re.classNames,Xe=re.dataAttrs,Ze=re.styles,lt=re.components,at=(lt==null?void 0:lt.affixWrapper)||"span",ct=(lt==null?void 0:lt.groupWrapper)||"span",Ot=(lt==null?void 0:lt.wrapper)||"span",Ut=(lt==null?void 0:lt.groupAddon)||"span",un=(0,Te.useRef)(null),Ft=function(de){var K;(K=un.current)!==null&&K!==void 0&&K.contains(de.target)&&(ee==null||ee())},nt=function(){var de;if(!g)return null;var K=!ne&&!X&&w,Ie="".concat(U,"-clear-icon"),$e=(0,Re.Z)(g)==="object"&&g!==null&&g!==void 0&&g.clearIcon?g.clearIcon:"\u2716";return Te.createElement("span",{onClick:Q,onMouseDown:function(Be){return Be.preventDefault()},className:le()(Ie,(de={},(0,ie.Z)(de,"".concat(Ie,"-hidden"),!K),(0,ie.Z)(de,"".concat(Ie,"-has-suffix"),!!ye),de)),role:"button",tabIndex:-1},$e)},Et=(0,Te.cloneElement)(F,{value:w,hidden:J,className:le()((b=F.props)===null||b===void 0?void 0:b.className,!(0,be.X3)(re)&&!(0,be.He)(re)&&Z)||null,style:(0,N.Z)((0,N.Z)({},(D=F.props)===null||D===void 0?void 0:D.style),!(0,be.X3)(re)&&!(0,be.He)(re)?B:{})});if((0,be.X3)(re)){var oe,_e="".concat(U,"-affix-wrapper"),M=le()(_e,(oe={},(0,ie.Z)(oe,"".concat(_e,"-disabled"),ne),(0,ie.Z)(oe,"".concat(_e,"-focused"),me),(0,ie.Z)(oe,"".concat(_e,"-readonly"),X),(0,ie.Z)(oe,"".concat(_e,"-input-with-clear-btn"),ye&&g&&w),oe),!(0,be.He)(re)&&Z,Pe==null?void 0:Pe.affixWrapper,Ue==null?void 0:Ue.affixWrapper),ce=(ye||g)&&Te.createElement("span",{className:le()("".concat(U,"-suffix"),Ue==null?void 0:Ue.suffix),style:Ze==null?void 0:Ze.suffix},nt(),ye);Et=Te.createElement(at,(0,T.Z)({className:M,style:(0,N.Z)((0,N.Z)({},(0,be.He)(re)?void 0:B),Ze==null?void 0:Ze.affixWrapper),hidden:!(0,be.He)(re)&&J,onClick:Ft},Xe==null?void 0:Xe.affixWrapper,{ref:un}),fe&&Te.createElement("span",{className:le()("".concat(U,"-prefix"),Ue==null?void 0:Ue.prefix),style:Ze==null?void 0:Ze.prefix},fe),(0,Te.cloneElement)(F,{value:w,hidden:null}),ce)}if((0,be.He)(re)){var xe="".concat(U,"-group"),O="".concat(xe,"-addon"),C=le()("".concat(U,"-wrapper"),xe,Pe==null?void 0:Pe.wrapper),k=le()("".concat(U,"-group-wrapper"),Z,Pe==null?void 0:Pe.group);return Te.createElement(ct,{className:k,style:B,hidden:J},Te.createElement(Ot,{className:C},Se&&Te.createElement(Ut,{className:O},Se),(0,Te.cloneElement)(Et,{hidden:null}),Ne&&Te.createElement(Ut,{className:O},Ne)))}return Et},L=o,$=_(19127),v=_(72071),c=_(6620),S=_(18929),y=_(2738),q=["autoComplete","onChange","onFocus","onBlur","onPressEnter","onKeyDown","prefixCls","disabled","htmlSize","className","maxLength","suffix","showCount","type","classes","classNames","styles"],ae=(0,Te.forwardRef)(function(W,re){var b=W.autoComplete,D=W.onChange,F=W.onFocus,U=W.onBlur,fe=W.onPressEnter,ye=W.onKeyDown,Se=W.prefixCls,Ne=Se===void 0?"rc-input":Se,Z=W.disabled,B=W.htmlSize,ne=W.className,X=W.maxLength,me=W.suffix,ee=W.showCount,g=W.type,w=g===void 0?"text":g,Q=W.classes,J=W.classNames,Pe=W.styles,Ue=(0,c.Z)(W,q),Xe=(0,S.Z)(W.defaultValue,{value:W.value}),Ze=(0,v.Z)(Xe,2),lt=Ze[0],at=Ze[1],ct=(0,Te.useState)(!1),Ot=(0,v.Z)(ct,2),Ut=Ot[0],un=Ot[1],Ft=(0,Te.useRef)(null),nt=function(k){Ft.current&&(0,be.nH)(Ft.current,k)};(0,Te.useImperativeHandle)(re,function(){return{focus:nt,blur:function(){var k;(k=Ft.current)===null||k===void 0||k.blur()},setSelectionRange:function(k,he,de){var K;(K=Ft.current)===null||K===void 0||K.setSelectionRange(k,he,de)},select:function(){var k;(k=Ft.current)===null||k===void 0||k.select()},input:Ft.current}}),(0,Te.useEffect)(function(){un(function(C){return C&&Z?!1:C})},[Z]);var Et=function(k){W.value===void 0&&at(k.target.value),Ft.current&&(0,be.rJ)(Ft.current,k,D)},oe=function(k){fe&&k.key==="Enter"&&fe(k),ye==null||ye(k)},_e=function(k){un(!0),F==null||F(k)},M=function(k){un(!1),U==null||U(k)},ce=function(k){at(""),nt(),Ft.current&&(0,be.rJ)(Ft.current,k,D)},xe=function(){var k=(0,y.Z)(W,["prefixCls","onPressEnter","addonBefore","addonAfter","prefix","suffix","allowClear","defaultValue","showCount","classes","htmlSize","styles","classNames"]);return Te.createElement("input",(0,T.Z)({autoComplete:b},k,{onChange:Et,onFocus:_e,onBlur:M,onKeyDown:oe,className:le()(Ne,(0,ie.Z)({},"".concat(Ne,"-disabled"),Z),J==null?void 0:J.input),style:Pe==null?void 0:Pe.input,ref:Ft,size:B,type:w}))},O=function(){var k=Number(X)>0;if(me||ee){var he=(0,be.D7)(lt),de=(0,$.Z)(he).length,K=(0,Re.Z)(ee)==="object"?ee.formatter({value:he,count:de,maxLength:X}):"".concat(de).concat(k?" / ".concat(X):"");return Te.createElement(Te.Fragment,null,!!ee&&Te.createElement("span",{className:le()("".concat(Ne,"-show-count-suffix"),(0,ie.Z)({},"".concat(Ne,"-show-count-has-suffix"),!!me),J==null?void 0:J.count),style:(0,N.Z)({},Pe==null?void 0:Pe.count)},K),me)}return null};return Te.createElement(L,(0,T.Z)({},Ue,{prefixCls:Ne,className:ne,inputElement:xe(),handleReset:ce,value:(0,be.D7)(lt),focused:Ut,triggerFocus:nt,suffix:O(),disabled:Z,classes:Q,classNames:J,styles:Pe}))}),P=ae,z=P},5643:function(Ht,et,_){"use strict";_.d(et,{D7:function(){return ve},He:function(){return T},X3:function(){return N},nH:function(){return Re},rJ:function(){return ie}});function T(le){return!!(le.addonBefore||le.addonAfter)}function N(le){return!!(le.prefix||le.suffix||le.allowClear)}function ie(le,Te,be,o){if(be){var L=Te;if(Te.type==="click"){var $=le.cloneNode(!0);L=Object.create(Te,{target:{value:$},currentTarget:{value:$}}),$.value="",be(L);return}if(o!==void 0){L=Object.create(Te,{target:{value:le},currentTarget:{value:le}}),le.value=o,be(L);return}be(L)}}function Re(le,Te){if(le){le.focus(Te);var be=Te||{},o=be.cursor;if(o){var L=le.value.length;switch(o){case"start":le.setSelectionRange(0,0);break;case"end":le.setSelectionRange(L,L);break;default:le.setSelectionRange(0,L)}}}}function ve(le){return typeof le=="undefined"||le===null?"":String(le)}},15285:function(Ht,et,_){"use strict";_.d(et,{iz:function(){return Yt},ck:function(){return We},BW:function(){return Zt},sN:function(){return We},Wd:function(){return it},ZP:function(){return Vt},Xl:function(){return ye}});var T=_(96663),N=_(90493),ie=_(44127),Re=_(19127),ve=_(72071),le=_(6620),Te=_(92310),be=_.n(Te),o=_(11780),L=_(18929),$=_(13697),v=_(48736),c=_(59301),S=_(4676),y=c.createContext(null);function q(qe,tt){return qe===void 0?null:"".concat(qe,"-").concat(tt)}function ae(qe){var tt=c.useContext(y);return q(tt,qe)}var P=_(80547),z=["children","locked"],W=c.createContext(null);function re(qe,tt){var ht=(0,ie.Z)({},qe);return Object.keys(tt).forEach(function(wt){var mt=tt[wt];mt!==void 0&&(ht[wt]=mt)}),ht}function b(qe){var tt=qe.children,ht=qe.locked,wt=(0,le.Z)(qe,z),mt=c.useContext(W),It=(0,P.Z)(function(){return re(mt,wt)},[mt,wt],function(Tt,Wt){return!ht&&(Tt[0]!==Wt[0]||!(0,$.Z)(Tt[1],Wt[1],!0))});return c.createElement(W.Provider,{value:It},tt)}var D=[],F=c.createContext(null);function U(){return c.useContext(F)}var fe=c.createContext(D);function ye(qe){var tt=c.useContext(fe);return c.useMemo(function(){return qe!==void 0?[].concat((0,Re.Z)(tt),[qe]):tt},[tt,qe])}var Se=c.createContext(null),Ne=c.createContext({}),Z=Ne,B=_(29194);function ne(qe){var tt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;if((0,B.Z)(qe)){var ht=qe.nodeName.toLowerCase(),wt=["input","select","textarea","button"].includes(ht)||qe.isContentEditable||ht==="a"&&!!qe.getAttribute("href"),mt=qe.getAttribute("tabindex"),It=Number(mt),Tt=null;return mt&&!Number.isNaN(It)?Tt=It:wt&&Tt===null&&(Tt=0),wt&&qe.disabled&&(Tt=null),Tt!==null&&(Tt>=0||tt&&Tt<0)}return!1}function X(qe){var tt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,ht=(0,Re.Z)(qe.querySelectorAll("*")).filter(function(wt){return ne(wt,tt)});return ne(qe,tt)&&ht.unshift(qe),ht}var me=null;function ee(){me=document.activeElement}function g(){me=null}function w(){if(me)try{me.focus()}catch(qe){}}function Q(qe,tt){if(tt.keyCode===9){var ht=X(qe),wt=ht[tt.shiftKey?0:ht.length-1],mt=wt===document.activeElement||qe===document.activeElement;if(mt){var It=ht[tt.shiftKey?ht.length-1:0];It.focus(),tt.preventDefault()}}}var J=_(10228),Pe=_(16089),Ue=J.Z.LEFT,Xe=J.Z.RIGHT,Ze=J.Z.UP,lt=J.Z.DOWN,at=J.Z.ENTER,ct=J.Z.ESC,Ot=J.Z.HOME,Ut=J.Z.END,un=[Ze,lt,Ue,Xe];function Ft(qe,tt,ht,wt){var mt,It,Tt,Wt,mn="prev",cn="next",Pn="children",kn="parent";if(qe==="inline"&&wt===at)return{inlineTrigger:!0};var Un=(mt={},(0,N.Z)(mt,Ze,mn),(0,N.Z)(mt,lt,cn),mt),dn=(It={},(0,N.Z)(It,Ue,ht?cn:mn),(0,N.Z)(It,Xe,ht?mn:cn),(0,N.Z)(It,lt,Pn),(0,N.Z)(It,at,Pn),It),Jt=(Tt={},(0,N.Z)(Tt,Ze,mn),(0,N.Z)(Tt,lt,cn),(0,N.Z)(Tt,at,Pn),(0,N.Z)(Tt,ct,kn),(0,N.Z)(Tt,Ue,ht?Pn:kn),(0,N.Z)(Tt,Xe,ht?kn:Pn),Tt),Mn={inline:Un,horizontal:dn,vertical:Jt,inlineSub:Un,horizontalSub:Jt,verticalSub:Jt},wn=(Wt=Mn["".concat(qe).concat(tt?"":"Sub")])===null||Wt===void 0?void 0:Wt[wt];switch(wn){case mn:return{offset:-1,sibling:!0};case cn:return{offset:1,sibling:!0};case kn:return{offset:-1,sibling:!1};case Pn:return{offset:1,sibling:!1};default:return null}}function nt(qe){for(var tt=qe;tt;){if(tt.getAttribute("data-menu-list"))return tt;tt=tt.parentElement}return null}function Et(qe,tt){for(var ht=qe||document.activeElement;ht;){if(tt.has(ht))return ht;ht=ht.parentElement}return null}function oe(qe,tt){var ht=X(qe,!0);return ht.filter(function(wt){return tt.has(wt)})}function _e(qe,tt,ht){var wt=arguments.length>3&&arguments[3]!==void 0?arguments[3]:1;if(!qe)return null;var mt=oe(qe,tt),It=mt.length,Tt=mt.findIndex(function(Wt){return ht===Wt});return wt<0?Tt===-1?Tt=It-1:Tt-=1:wt>0&&(Tt+=1),Tt=(Tt+It)%It,mt[Tt]}var M=function(tt,ht){var wt=new Set,mt=new Map,It=new Map;return tt.forEach(function(Tt){var Wt=document.querySelector("[data-menu-id='".concat(q(ht,Tt),"']"));Wt&&(wt.add(Wt),It.set(Wt,Tt),mt.set(Tt,Wt))}),{elements:wt,key2element:mt,element2key:It}};function ce(qe,tt,ht,wt,mt,It,Tt,Wt,mn,cn){var Pn=c.useRef(),kn=c.useRef();kn.current=tt;var Un=function(){Pe.Z.cancel(Pn.current)};return c.useEffect(function(){return function(){Un()}},[]),function(dn){var Jt=dn.which;if([].concat(un,[at,ct,Ot,Ut]).includes(Jt)){var Mn=It(),wn=M(Mn,wt),rr=wn,Yn=rr.elements,Wn=rr.key2element,Jn=rr.element2key,Bn=Wn.get(tt),qn=Et(Bn,Yn),wr=Jn.get(qn),An=Ft(qe,Tt(wr,!0).length===1,ht,Jt);if(!An&&Jt!==Ot&&Jt!==Ut)return;(un.includes(Jt)||[Ot,Ut].includes(Jt))&&dn.preventDefault();var sn=function(Nn){if(Nn){var ur=Nn,_n=Nn.querySelector("a");_n!=null&&_n.getAttribute("href")&&(ur=_n);var tn=Jn.get(Nn);Wt(tn),Un(),Pn.current=(0,Pe.Z)(function(){kn.current===tn&&ur.focus()})}};if([Ot,Ut].includes(Jt)||An.sibling||!qn){var Ge;!qn||qe==="inline"?Ge=mt.current:Ge=nt(qn);var pn,Ln=oe(Ge,Yn);Jt===Ot?pn=Ln[0]:Jt===Ut?pn=Ln[Ln.length-1]:pn=_e(Ge,Yn,qn,An.offset),sn(pn)}else if(An.inlineTrigger)mn(wr);else if(An.offset>0)mn(wr,!0),Un(),Pn.current=(0,Pe.Z)(function(){wn=M(Mn,wt);var lr=qn.getAttribute("aria-controls"),Nn=document.getElementById(lr),ur=_e(Nn,wn.elements);sn(ur)},5);else if(An.offset<0){var Xn=Tt(wr,!0),Gn=Xn[Xn.length-2],ir=Wn.get(Gn);mn(Gn,!1),sn(ir)}}cn==null||cn(dn)}}function xe(qe){Promise.resolve().then(qe)}var O="__RC_UTIL_PATH_SPLIT__",C=function(tt){return tt.join(O)},k=function(tt){return tt.split(O)},he="rc-menu-more";function de(){var qe=c.useState({}),tt=(0,ve.Z)(qe,2),ht=tt[1],wt=(0,c.useRef)(new Map),mt=(0,c.useRef)(new Map),It=c.useState([]),Tt=(0,ve.Z)(It,2),Wt=Tt[0],mn=Tt[1],cn=(0,c.useRef)(0),Pn=(0,c.useRef)(!1),kn=function(){Pn.current||ht({})},Un=(0,c.useCallback)(function(Wn,Jn){var Bn=C(Jn);mt.current.set(Bn,Wn),wt.current.set(Wn,Bn),cn.current+=1;var qn=cn.current;xe(function(){qn===cn.current&&kn()})},[]),dn=(0,c.useCallback)(function(Wn,Jn){var Bn=C(Jn);mt.current.delete(Bn),wt.current.delete(Wn)},[]),Jt=(0,c.useCallback)(function(Wn){mn(Wn)},[]),Mn=(0,c.useCallback)(function(Wn,Jn){var Bn=wt.current.get(Wn)||"",qn=k(Bn);return Jn&&Wt.includes(qn[0])&&qn.unshift(he),qn},[Wt]),wn=(0,c.useCallback)(function(Wn,Jn){return Wn.some(function(Bn){var qn=Mn(Bn,!0);return qn.includes(Jn)})},[Mn]),rr=function(){var Jn=(0,Re.Z)(wt.current.keys());return Wt.length&&Jn.push(he),Jn},Yn=(0,c.useCallback)(function(Wn){var Jn="".concat(wt.current.get(Wn)).concat(O),Bn=new Set;return(0,Re.Z)(mt.current.keys()).forEach(function(qn){qn.startsWith(Jn)&&Bn.add(mt.current.get(qn))}),Bn},[]);return c.useEffect(function(){return function(){Pn.current=!0}},[]),{registerPath:Un,unregisterPath:dn,refreshOverflowKeys:Jt,isSubPathKey:wn,getKeyPath:Mn,getKeys:rr,getSubPathKeys:Yn}}function K(qe){var tt=c.useRef(qe);tt.current=qe;var ht=c.useCallback(function(){for(var wt,mt=arguments.length,It=new Array(mt),Tt=0;Tt<mt;Tt++)It[Tt]=arguments[Tt];return(wt=tt.current)===null||wt===void 0?void 0:wt.call.apply(wt,[tt].concat(It))},[]);return qe?ht:void 0}var Ie=Math.random().toFixed(5).toString().slice(2),$e=0;function Me(qe){var tt=(0,L.Z)(qe,{value:qe}),ht=(0,ve.Z)(tt,2),wt=ht[0],mt=ht[1];return c.useEffect(function(){$e+=1;var It="".concat(Ie,"-").concat($e);mt("rc-menu-uuid-".concat(It))},[]),wt}var Be=_(52884),Ye=_(95727),Qe=_(65711),Je=_(85745),dt=_(2738),At=_(8654);function gt(qe,tt,ht,wt){var mt=c.useContext(W),It=mt.activeKey,Tt=mt.onActive,Wt=mt.onInactive,mn={active:It===qe};return tt||(mn.onMouseEnter=function(cn){ht==null||ht({key:qe,domEvent:cn}),Tt(qe)},mn.onMouseLeave=function(cn){wt==null||wt({key:qe,domEvent:cn}),Wt(qe)}),mn}function Rt(qe){var tt=c.useContext(W),ht=tt.mode,wt=tt.rtl,mt=tt.inlineIndent;if(ht!=="inline")return null;var It=qe;return wt?{paddingRight:It*mt}:{paddingLeft:It*mt}}function Ct(qe){var tt=qe.icon,ht=qe.props,wt=qe.children,mt;return tt===null||tt===!1?null:(typeof tt=="function"?mt=c.createElement(tt,(0,ie.Z)({},ht)):typeof tt!="boolean"&&(mt=tt),mt||wt||null)}var x=["item"];function A(qe){var tt=qe.item,ht=(0,le.Z)(qe,x);return Object.defineProperty(ht,"item",{get:function(){return(0,v.ZP)(!1,"`info.item` is deprecated since we will move to function component that not provides React Node instance in future."),tt}}),ht}var rt=["title","attribute","elementRef"],Y=["style","className","eventKey","warnKey","disabled","itemIcon","children","role","onMouseEnter","onMouseLeave","onClick","onKeyDown","onFocus"],Ce=["active"],vn=function(qe){(0,Qe.Z)(ht,qe);var tt=(0,Je.Z)(ht);function ht(){return(0,Be.Z)(this,ht),tt.apply(this,arguments)}return(0,Ye.Z)(ht,[{key:"render",value:function(){var mt=this.props,It=mt.title,Tt=mt.attribute,Wt=mt.elementRef,mn=(0,le.Z)(mt,rt),cn=(0,dt.Z)(mn,["eventKey","popupClassName","popupOffset","onTitleClick"]);return(0,v.ZP)(!Tt,"`attribute` of Menu.Item is deprecated. Please pass attribute directly."),c.createElement(o.Z.Item,(0,T.Z)({},Tt,{title:typeof It=="string"?It:void 0},cn,{ref:Wt}))}}]),ht}(c.Component),ke=c.forwardRef(function(qe,tt){var ht,wt=qe.style,mt=qe.className,It=qe.eventKey,Tt=qe.warnKey,Wt=qe.disabled,mn=qe.itemIcon,cn=qe.children,Pn=qe.role,kn=qe.onMouseEnter,Un=qe.onMouseLeave,dn=qe.onClick,Jt=qe.onKeyDown,Mn=qe.onFocus,wn=(0,le.Z)(qe,Y),rr=ae(It),Yn=c.useContext(W),Wn=Yn.prefixCls,Jn=Yn.onItemClick,Bn=Yn.disabled,qn=Yn.overflowDisabled,wr=Yn.itemIcon,An=Yn.selectedKeys,sn=Yn.onActive,Ge=c.useContext(Z),pn=Ge._internalRenderMenuItem,Ln="".concat(Wn,"-item"),Xn=c.useRef(),Gn=c.useRef(),ir=Bn||Wt,lr=(0,At.x1)(tt,Gn),Nn=ye(It),ur=function(vr){return{key:It,keyPath:(0,Re.Z)(Nn).reverse(),item:Xn.current,domEvent:vr}},_n=mn||wr,tn=gt(It,ir,kn,Un),Dn=tn.active,Zn=(0,le.Z)(tn,Ce),sr=An.includes(It),Pr=Rt(Nn.length),gn=function(vr){if(!ir){var Cr=ur(vr);dn==null||dn(A(Cr)),Jn(Cr)}},cr=function(vr){if(Jt==null||Jt(vr),vr.which===J.Z.ENTER){var Cr=ur(vr);dn==null||dn(A(Cr)),Jn(Cr)}},ar=function(vr){sn(It),Mn==null||Mn(vr)},xr={};qe.role==="option"&&(xr["aria-selected"]=sr);var Mr=c.createElement(vn,(0,T.Z)({ref:Xn,elementRef:lr,role:Pn===null?"none":Pn||"menuitem",tabIndex:Wt?null:-1,"data-menu-id":qn&&rr?null:rr},wn,Zn,xr,{component:"li","aria-disabled":Wt,style:(0,ie.Z)((0,ie.Z)({},Pr),wt),className:be()(Ln,(ht={},(0,N.Z)(ht,"".concat(Ln,"-active"),Dn),(0,N.Z)(ht,"".concat(Ln,"-selected"),sr),(0,N.Z)(ht,"".concat(Ln,"-disabled"),ir),ht),mt),onClick:gn,onKeyDown:cr,onFocus:ar}),cn,c.createElement(Ct,{props:(0,ie.Z)((0,ie.Z)({},qe),{},{isSelected:sr}),icon:_n}));return pn&&(Mr=pn(Mr,qe,{selected:sr})),Mr});function He(qe,tt){var ht=qe.eventKey,wt=U(),mt=ye(ht);return c.useEffect(function(){if(wt)return wt.registerPath(ht,mt),function(){wt.unregisterPath(ht,mt)}},[mt]),wt?null:c.createElement(ke,(0,T.Z)({},qe,{ref:tt}))}var We=c.forwardRef(He),te=["className","children"],pe=function(tt,ht){var wt=tt.className,mt=tt.children,It=(0,le.Z)(tt,te),Tt=c.useContext(W),Wt=Tt.prefixCls,mn=Tt.mode,cn=Tt.rtl;return c.createElement("ul",(0,T.Z)({className:be()(Wt,cn&&"".concat(Wt,"-rtl"),"".concat(Wt,"-sub"),"".concat(Wt,"-").concat(mn==="inline"?"inline":"vertical"),wt),role:"menu"},It,{"data-menu-list":!0,ref:ht}),mt)},De=c.forwardRef(pe);De.displayName="SubMenuList";var ze=De,V=_(11592);function kt(qe,tt){return(0,V.Z)(qe).map(function(ht,wt){if(c.isValidElement(ht)){var mt,It,Tt=ht.key,Wt=(mt=(It=ht.props)===null||It===void 0?void 0:It.eventKey)!==null&&mt!==void 0?mt:Tt,mn=Wt==null;mn&&(Wt="tmp_key-".concat([].concat((0,Re.Z)(tt),[wt]).join("-")));var cn={key:Wt,eventKey:Wt};return c.cloneElement(ht,cn)}return ht})}var Le=_(35593),jt={adjustX:1,adjustY:1},ln={topLeft:{points:["bl","tl"],overflow:jt},topRight:{points:["br","tr"],overflow:jt},bottomLeft:{points:["tl","bl"],overflow:jt},bottomRight:{points:["tr","br"],overflow:jt},leftTop:{points:["tr","tl"],overflow:jt},leftBottom:{points:["br","bl"],overflow:jt},rightTop:{points:["tl","tr"],overflow:jt},rightBottom:{points:["bl","br"],overflow:jt}},bt={topLeft:{points:["bl","tl"],overflow:jt},topRight:{points:["br","tr"],overflow:jt},bottomLeft:{points:["tl","bl"],overflow:jt},bottomRight:{points:["tr","br"],overflow:jt},rightTop:{points:["tr","tl"],overflow:jt},rightBottom:{points:["br","bl"],overflow:jt},leftTop:{points:["tl","tr"],overflow:jt},leftBottom:{points:["bl","br"],overflow:jt}},Lt=null;function ot(qe,tt,ht){if(tt)return tt;if(ht)return ht[qe]||ht.other}var ft={horizontal:"bottomLeft",vertical:"rightTop","vertical-left":"rightTop","vertical-right":"leftTop"};function Gt(qe){var tt=qe.prefixCls,ht=qe.visible,wt=qe.children,mt=qe.popup,It=qe.popupStyle,Tt=qe.popupClassName,Wt=qe.popupOffset,mn=qe.disabled,cn=qe.mode,Pn=qe.onVisibleChange,kn=c.useContext(W),Un=kn.getPopupContainer,dn=kn.rtl,Jt=kn.subMenuOpenDelay,Mn=kn.subMenuCloseDelay,wn=kn.builtinPlacements,rr=kn.triggerSubMenuAction,Yn=kn.forceSubMenuRender,Wn=kn.rootClassName,Jn=kn.motion,Bn=kn.defaultMotions,qn=c.useState(!1),wr=(0,ve.Z)(qn,2),An=wr[0],sn=wr[1],Ge=dn?(0,ie.Z)((0,ie.Z)({},bt),wn):(0,ie.Z)((0,ie.Z)({},ln),wn),pn=ft[cn],Ln=ot(cn,Jn,Bn),Xn=c.useRef(Ln);cn!=="inline"&&(Xn.current=Ln);var Gn=(0,ie.Z)((0,ie.Z)({},Xn.current),{},{leavedClassName:"".concat(tt,"-hidden"),removeOnLeave:!1,motionAppear:!0}),ir=c.useRef();return c.useEffect(function(){return ir.current=(0,Pe.Z)(function(){sn(ht)}),function(){Pe.Z.cancel(ir.current)}},[ht]),c.createElement(Le.Z,{prefixCls:tt,popupClassName:be()("".concat(tt,"-popup"),(0,N.Z)({},"".concat(tt,"-rtl"),dn),Tt,Wn),stretch:cn==="horizontal"?"minWidth":null,getPopupContainer:Un,builtinPlacements:Ge,popupPlacement:pn,popupVisible:An,popup:mt,popupStyle:It,popupAlign:Wt&&{offset:Wt},action:mn?[]:[rr],mouseEnterDelay:Jt,mouseLeaveDelay:Mn,onPopupVisibleChange:Pn,forceRender:Yn,popupMotion:Gn,fresh:!0},wt)}var yn=_(77900);function nn(qe){var tt=qe.id,ht=qe.open,wt=qe.keyPath,mt=qe.children,It="inline",Tt=c.useContext(W),Wt=Tt.prefixCls,mn=Tt.forceSubMenuRender,cn=Tt.motion,Pn=Tt.defaultMotions,kn=Tt.mode,Un=c.useRef(!1);Un.current=kn===It;var dn=c.useState(!Un.current),Jt=(0,ve.Z)(dn,2),Mn=Jt[0],wn=Jt[1],rr=Un.current?ht:!1;c.useEffect(function(){Un.current&&wn(!1)},[kn]);var Yn=(0,ie.Z)({},ot(It,cn,Pn));wt.length>1&&(Yn.motionAppear=!1);var Wn=Yn.onVisibleChanged;return Yn.onVisibleChanged=function(Jn){return!Un.current&&!Jn&&wn(!0),Wn==null?void 0:Wn(Jn)},Mn?null:c.createElement(b,{mode:It,locked:!Un.current},c.createElement(yn.default,(0,T.Z)({visible:rr},Yn,{forceRender:mn,removeOnLeave:!1,leavedClassName:"".concat(Wt,"-hidden")}),function(Jn){var Bn=Jn.className,qn=Jn.style;return c.createElement(ze,{id:tt,className:Bn,style:qn},mt)}))}var je=["style","className","title","eventKey","warnKey","disabled","internalPopupClose","children","itemIcon","expandIcon","popupClassName","popupOffset","popupStyle","onClick","onMouseEnter","onMouseLeave","onTitleClick","onTitleMouseEnter","onTitleMouseLeave"],we=["active"],ut=function(tt){var ht,wt=tt.style,mt=tt.className,It=tt.title,Tt=tt.eventKey,Wt=tt.warnKey,mn=tt.disabled,cn=tt.internalPopupClose,Pn=tt.children,kn=tt.itemIcon,Un=tt.expandIcon,dn=tt.popupClassName,Jt=tt.popupOffset,Mn=tt.popupStyle,wn=tt.onClick,rr=tt.onMouseEnter,Yn=tt.onMouseLeave,Wn=tt.onTitleClick,Jn=tt.onTitleMouseEnter,Bn=tt.onTitleMouseLeave,qn=(0,le.Z)(tt,je),wr=ae(Tt),An=c.useContext(W),sn=An.prefixCls,Ge=An.mode,pn=An.openKeys,Ln=An.disabled,Xn=An.overflowDisabled,Gn=An.activeKey,ir=An.selectedKeys,lr=An.itemIcon,Nn=An.expandIcon,ur=An.onItemClick,_n=An.onOpenChange,tn=An.onActive,Dn=c.useContext(Z),Zn=Dn._internalRenderSubMenuItem,sr=c.useContext(Se),Pr=sr.isSubPathKey,gn=ye(),cr="".concat(sn,"-submenu"),ar=Ln||mn,xr=c.useRef(),Mr=c.useRef(),Fr=kn!=null?kn:lr,vr=Un!=null?Un:Nn,Cr=pn.includes(Tt),Er=!Xn&&Cr,qr=Pr(ir,Tt),Yr=gt(Tt,ar,Jn,Bn),ii=Yr.active,kr=(0,le.Z)(Yr,we),ei=c.useState(!1),nr=(0,ve.Z)(ei,2),ci=nr[0],yi=nr[1],hi=function(zr){ar||yi(zr)},Tr=function(zr){hi(!0),rr==null||rr({key:Tt,domEvent:zr})},fi=function(zr){hi(!1),Yn==null||Yn({key:Tt,domEvent:zr})},Ai=c.useMemo(function(){return ii||(Ge!=="inline"?ci||Pr([Gn],Tt):!1)},[Ge,ii,Gn,ci,Tt,Pr]),on=Rt(gn.length),Qr=function(zr){ar||(Wn==null||Wn({key:Tt,domEvent:zr}),Ge==="inline"&&_n(Tt,!Cr))},oi=K(function(Dr){wn==null||wn(A(Dr)),ur(Dr)}),Rn=function(zr){Ge!=="inline"&&_n(Tt,zr)},$n=function(){tn(Tt)},Cn=wr&&"".concat(wr,"-popup"),En=c.createElement("div",(0,T.Z)({role:"menuitem",style:on,className:"".concat(cr,"-title"),tabIndex:ar?null:-1,ref:xr,title:typeof It=="string"?It:null,"data-menu-id":Xn&&wr?null:wr,"aria-expanded":Er,"aria-haspopup":!0,"aria-controls":Cn,"aria-disabled":ar,onClick:Qr,onFocus:$n},kr),It,c.createElement(Ct,{icon:Ge!=="horizontal"?vr:void 0,props:(0,ie.Z)((0,ie.Z)({},tt),{},{isOpen:Er,isSubMenu:!0})},c.createElement("i",{className:"".concat(cr,"-arrow")}))),er=c.useRef(Ge);if(Ge!=="inline"&&gn.length>1?er.current="vertical":er.current=Ge,!Xn){var dr=er.current;En=c.createElement(Gt,{mode:dr,prefixCls:cr,visible:!cn&&Er&&Ge!=="inline",popupClassName:dn,popupOffset:Jt,popupStyle:Mn,popup:c.createElement(b,{mode:dr==="horizontal"?"vertical":dr},c.createElement(ze,{id:Cn,ref:Mr},Pn)),disabled:ar,onVisibleChange:Rn},En)}var Hr=c.createElement(o.Z.Item,(0,T.Z)({role:"none"},qn,{component:"li",style:wt,className:be()(cr,"".concat(cr,"-").concat(Ge),mt,(ht={},(0,N.Z)(ht,"".concat(cr,"-open"),Er),(0,N.Z)(ht,"".concat(cr,"-active"),Ai),(0,N.Z)(ht,"".concat(cr,"-selected"),qr),(0,N.Z)(ht,"".concat(cr,"-disabled"),ar),ht)),onMouseEnter:Tr,onMouseLeave:fi}),En,!Xn&&c.createElement(nn,{id:Cn,open:Er,keyPath:gn},Pn));return Zn&&(Hr=Zn(Hr,tt,{selected:qr,active:Ai,open:Er,disabled:ar})),c.createElement(b,{onItemClick:oi,mode:Ge==="horizontal"?"vertical":Ge,itemIcon:Fr,expandIcon:vr},Hr)};function it(qe){var tt=qe.eventKey,ht=qe.children,wt=ye(tt),mt=kt(ht,wt),It=U();c.useEffect(function(){if(It)return It.registerPath(tt,wt),function(){It.unregisterPath(tt,wt)}},[wt]);var Tt;return It?Tt=mt:Tt=c.createElement(ut,qe,mt),c.createElement(fe.Provider,{value:wt},Tt)}var yt=_(20135),Mt=["className","title","eventKey","children"],Kt=["children"],Pt=function(tt){var ht=tt.className,wt=tt.title,mt=tt.eventKey,It=tt.children,Tt=(0,le.Z)(tt,Mt),Wt=c.useContext(W),mn=Wt.prefixCls,cn="".concat(mn,"-item-group");return c.createElement("li",(0,T.Z)({role:"presentation"},Tt,{onClick:function(kn){return kn.stopPropagation()},className:be()(cn,ht)}),c.createElement("div",{role:"presentation",className:"".concat(cn,"-title"),title:typeof wt=="string"?wt:void 0},wt),c.createElement("ul",{role:"group",className:"".concat(cn,"-list")},It))};function Zt(qe){var tt=qe.children,ht=(0,le.Z)(qe,Kt),wt=ye(ht.eventKey),mt=kt(tt,wt),It=U();return It?mt:c.createElement(Pt,(0,dt.Z)(ht,["warnKey"]),mt)}function Yt(qe){var tt=qe.className,ht=qe.style,wt=c.useContext(W),mt=wt.prefixCls,It=U();return It?null:c.createElement("li",{role:"separator",className:be()("".concat(mt,"-item-divider"),tt),style:ht})}var Nt=["label","children","key","type"];function xt(qe){return(qe||[]).map(function(tt,ht){if(tt&&(0,yt.Z)(tt)==="object"){var wt=tt,mt=wt.label,It=wt.children,Tt=wt.key,Wt=wt.type,mn=(0,le.Z)(wt,Nt),cn=Tt!=null?Tt:"tmp-".concat(ht);return It||Wt==="group"?Wt==="group"?c.createElement(Zt,(0,T.Z)({key:cn},mn,{title:mt}),xt(It)):c.createElement(it,(0,T.Z)({key:cn},mn,{title:mt}),xt(It)):Wt==="divider"?c.createElement(Yt,(0,T.Z)({key:cn},mn)):c.createElement(We,(0,T.Z)({key:cn},mn),mt)}return null}).filter(function(tt){return tt})}function rn(qe,tt,ht){var wt=qe;return tt&&(wt=xt(tt)),kt(wt,ht)}var Qt=["prefixCls","rootClassName","style","className","tabIndex","items","children","direction","id","mode","inlineCollapsed","disabled","disabledOverflow","subMenuOpenDelay","subMenuCloseDelay","forceSubMenuRender","defaultOpenKeys","openKeys","activeKey","defaultActiveFirst","selectable","multiple","defaultSelectedKeys","selectedKeys","onSelect","onDeselect","inlineIndent","motion","defaultMotions","triggerSubMenuAction","builtinPlacements","itemIcon","expandIcon","overflowedIndicator","overflowedIndicatorPopupClassName","getPopupContainer","onClick","onOpenChange","onKeyDown","openAnimation","openTransitionName","_internalRenderMenuItem","_internalRenderSubMenuItem"],hn=[],zn=c.forwardRef(function(qe,tt){var ht,wt,mt=qe,It=mt.prefixCls,Tt=It===void 0?"rc-menu":It,Wt=mt.rootClassName,mn=mt.style,cn=mt.className,Pn=mt.tabIndex,kn=Pn===void 0?0:Pn,Un=mt.items,dn=mt.children,Jt=mt.direction,Mn=mt.id,wn=mt.mode,rr=wn===void 0?"vertical":wn,Yn=mt.inlineCollapsed,Wn=mt.disabled,Jn=mt.disabledOverflow,Bn=mt.subMenuOpenDelay,qn=Bn===void 0?.1:Bn,wr=mt.subMenuCloseDelay,An=wr===void 0?.1:wr,sn=mt.forceSubMenuRender,Ge=mt.defaultOpenKeys,pn=mt.openKeys,Ln=mt.activeKey,Xn=mt.defaultActiveFirst,Gn=mt.selectable,ir=Gn===void 0?!0:Gn,lr=mt.multiple,Nn=lr===void 0?!1:lr,ur=mt.defaultSelectedKeys,_n=mt.selectedKeys,tn=mt.onSelect,Dn=mt.onDeselect,Zn=mt.inlineIndent,sr=Zn===void 0?24:Zn,Pr=mt.motion,gn=mt.defaultMotions,cr=mt.triggerSubMenuAction,ar=cr===void 0?"hover":cr,xr=mt.builtinPlacements,Mr=mt.itemIcon,Fr=mt.expandIcon,vr=mt.overflowedIndicator,Cr=vr===void 0?"...":vr,Er=mt.overflowedIndicatorPopupClassName,qr=mt.getPopupContainer,Yr=mt.onClick,ii=mt.onOpenChange,kr=mt.onKeyDown,ei=mt.openAnimation,nr=mt.openTransitionName,ci=mt._internalRenderMenuItem,yi=mt._internalRenderSubMenuItem,hi=(0,le.Z)(mt,Qt),Tr=c.useMemo(function(){return rn(dn,Un,hn)},[dn,Un]),fi=c.useState(!1),Ai=(0,ve.Z)(fi,2),on=Ai[0],Qr=Ai[1],oi=c.useRef(),Rn=Me(Mn),$n=Jt==="rtl",Cn=(0,L.Z)(Ge,{value:pn,postState:function(Lr){return Lr||hn}}),En=(0,ve.Z)(Cn,2),er=En[0],dr=En[1],Hr=function(Lr){var Rr=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;function ri(){dr(Lr),ii==null||ii(Lr)}Rr?(0,S.flushSync)(ri):ri()},Dr=c.useState(er),zr=(0,ve.Z)(Dr,2),Wr=zr[0],bi=zr[1],xi=c.useRef(!1),Hi=c.useMemo(function(){return(rr==="inline"||rr==="vertical")&&Yn?["vertical",Yn]:[rr,!1]},[rr,Yn]),Ni=(0,ve.Z)(Hi,2),mi=Ni[0],In=Ni[1],Tn=mi==="inline",hr=c.useState(mi),Gr=(0,ve.Z)(hr,2),Sr=Gr[0],pi=Gr[1],Gi=c.useState(In),ji=(0,ve.Z)(Gi,2),Ci=ji[0],ss=ji[1];c.useEffect(function(){pi(mi),ss(In),xi.current&&(Tn?dr(Wr):Hr(hn))},[mi,In]);var as=c.useState(0),os=(0,ve.Z)(as,2),es=os[0],ls=os[1],Pi=es>=Tr.length-1||Sr!=="horizontal"||Jn;c.useEffect(function(){Tn&&bi(er)},[er]),c.useEffect(function(){return xi.current=!0,function(){xi.current=!1}},[]);var ni=de(),us=ni.registerPath,ts=ni.unregisterPath,Ei=ni.refreshOverflowKeys,Ti=ni.isSubPathKey,br=ni.getKeyPath,tr=ni.getKeys,li=ni.getSubPathKeys,ui=c.useMemo(function(){return{registerPath:us,unregisterPath:ts}},[us,ts]),Zr=c.useMemo(function(){return{isSubPathKey:Ti}},[Ti]);c.useEffect(function(){Ei(Pi?hn:Tr.slice(es+1).map(function(Br){return Br.key}))},[es,Pi]);var wi=(0,L.Z)(Ln||Xn&&((ht=Tr[0])===null||ht===void 0?void 0:ht.key),{value:Ln}),Ir=(0,ve.Z)(wi,2),Fi=Ir[0],gi=Ir[1],Oi=K(function(Br){gi(Br)}),zi=K(function(){gi(void 0)});(0,c.useImperativeHandle)(tt,function(){return{list:oi.current,focus:function(Lr){var Rr,ri=tr(),si=M(ri,Rn),ds=si.elements,Rs=si.key2element,Bs=si.element2key,Ns=oe(oi.current,ds),hs=Fi!=null?Fi:Ns[0]?Bs.get(Ns[0]):(Rr=Tr.find(function(bs){return!bs.props.disabled}))===null||Rr===void 0?void 0:Rr.key,ns=Rs.get(hs);if(hs&&ns){var Xt;ns==null||(Xt=ns.focus)===null||Xt===void 0||Xt.call(ns,Lr)}}}});var Or=(0,L.Z)(ur||[],{value:_n,postState:function(Lr){return Array.isArray(Lr)?Lr:Lr==null?hn:[Lr]}}),gs=(0,ve.Z)(Or,2),Di=gs[0],cs=gs[1],ea=function(Lr){if(ir){var Rr=Lr.key,ri=Di.includes(Rr),si;Nn?ri?si=Di.filter(function(Rs){return Rs!==Rr}):si=[].concat((0,Re.Z)(Di),[Rr]):si=[Rr],cs(si);var ds=(0,ie.Z)((0,ie.Z)({},Lr),{},{selectedKeys:si});ri?Dn==null||Dn(ds):tn==null||tn(ds)}!Nn&&er.length&&Sr!=="inline"&&Hr(hn)},vs=K(function(Br){Yr==null||Yr(A(Br)),ea(Br)}),_s=K(function(Br,Lr){var Rr=er.filter(function(si){return si!==Br});if(Lr)Rr.push(Br);else if(Sr!=="inline"){var ri=li(Br);Rr=Rr.filter(function(si){return!ri.has(si)})}(0,$.Z)(er,Rr,!0)||Hr(Rr,!0)}),ys=function(Lr,Rr){var ri=Rr!=null?Rr:!er.includes(Lr);_s(Lr,ri)},Ts=ce(Sr,Fi,$n,Rn,oi,tr,br,gi,ys,kr);c.useEffect(function(){Qr(!0)},[]);var Ms=c.useMemo(function(){return{_internalRenderMenuItem:ci,_internalRenderSubMenuItem:yi}},[ci,yi]),$i=Sr!=="horizontal"||Jn?Tr:Tr.map(function(Br,Lr){return c.createElement(b,{key:Br.key,overflowDisabled:Lr>es},Br)}),Ds=c.createElement(o.Z,(0,T.Z)({id:Mn,ref:oi,prefixCls:"".concat(Tt,"-overflow"),component:"ul",itemComponent:We,className:be()(Tt,"".concat(Tt,"-root"),"".concat(Tt,"-").concat(Sr),cn,(wt={},(0,N.Z)(wt,"".concat(Tt,"-inline-collapsed"),Ci),(0,N.Z)(wt,"".concat(Tt,"-rtl"),$n),wt),Wt),dir:Jt,style:mn,role:"menu",tabIndex:kn,data:$i,renderRawItem:function(Lr){return Lr},renderRawRest:function(Lr){var Rr=Lr.length,ri=Rr?Tr.slice(-Rr):null;return c.createElement(it,{eventKey:he,title:Cr,disabled:Pi,internalPopupClose:Rr===0,popupClassName:Er},ri)},maxCount:Sr!=="horizontal"||Jn?o.Z.INVALIDATE:o.Z.RESPONSIVE,ssr:"full","data-menu-list":!0,onVisibleChange:function(Lr){ls(Lr)},onKeyDown:Ts},hi));return c.createElement(Z.Provider,{value:Ms},c.createElement(y.Provider,{value:Rn},c.createElement(b,{prefixCls:Tt,rootClassName:Wt,mode:Sr,openKeys:er,rtl:$n,disabled:Wn,motion:on?Pr:null,defaultMotions:on?gn:null,activeKey:Fi,onActive:Oi,onInactive:zi,selectedKeys:Di,inlineIndent:sr,subMenuOpenDelay:qn,subMenuCloseDelay:An,forceSubMenuRender:sn,builtinPlacements:xr,triggerSubMenuAction:ar,getPopupContainer:qr,itemIcon:Mr,expandIcon:Fr,onItemClick:vs,onOpenChange:_s},c.createElement(Se.Provider,{value:Zr},Ds),c.createElement("div",{style:{display:"none"},"aria-hidden":!0},c.createElement(F.Provider,{value:ui},Tr)))))}),Qn=zn,On=Qn;On.Item=We,On.SubMenu=it,On.ItemGroup=Zt,On.Divider=Yt;var Vt=On},11780:function(Ht,et,_){"use strict";_.d(et,{Z:function(){return ee}});var T=_(96663),N=_(44127),ie=_(72071),Re=_(6620),ve=_(59301),le=_(92310),Te=_.n(le),be=_(29301),o=_(34280),L=["prefixCls","invalidate","item","renderItem","responsive","responsiveDisabled","registerSize","itemKey","className","style","children","display","order","component"],$=void 0;function v(g,w){var Q=g.prefixCls,J=g.invalidate,Pe=g.item,Ue=g.renderItem,Xe=g.responsive,Ze=g.responsiveDisabled,lt=g.registerSize,at=g.itemKey,ct=g.className,Ot=g.style,Ut=g.children,un=g.display,Ft=g.order,nt=g.component,Et=nt===void 0?"div":nt,oe=(0,Re.Z)(g,L),_e=Xe&&!un;function M(k){lt(at,k)}ve.useEffect(function(){return function(){M(null)}},[]);var ce=Ue&&Pe!==$?Ue(Pe,{index:Ft}):Ut,xe;J||(xe={opacity:_e?0:1,height:_e?0:$,overflowY:_e?"hidden":$,order:Xe?Ft:$,pointerEvents:_e?"none":$,position:_e?"absolute":$});var O={};_e&&(O["aria-hidden"]=!0);var C=ve.createElement(Et,(0,T.Z)({className:Te()(!J&&Q,ct),style:(0,N.Z)((0,N.Z)({},xe),Ot)},O,oe,{ref:w}),ce);return Xe&&(C=ve.createElement(be.Z,{onResize:function(he){var de=he.offsetWidth;M(de)},disabled:Ze},C)),C}var c=ve.forwardRef(v);c.displayName="Item";var S=c,y=_(6089),q=_(4676),ae=_(16089);function P(g){if(typeof MessageChannel=="undefined")(0,ae.Z)(g);else{var w=new MessageChannel;w.port1.onmessage=function(){return g()},w.port2.postMessage(void 0)}}function z(){var g=ve.useRef(null),w=function(J){g.current||(g.current=[],P(function(){(0,q.unstable_batchedUpdates)(function(){g.current.forEach(function(Pe){Pe()}),g.current=null})})),g.current.push(J)};return w}function W(g,w){var Q=ve.useState(w),J=(0,ie.Z)(Q,2),Pe=J[0],Ue=J[1],Xe=(0,y.Z)(function(Ze){g(function(){Ue(Ze)})});return[Pe,Xe]}var re=ve.createContext(null),b=["component"],D=["className"],F=["className"],U=function(w,Q){var J=ve.useContext(re);if(!J){var Pe=w.component,Ue=Pe===void 0?"div":Pe,Xe=(0,Re.Z)(w,b);return ve.createElement(Ue,(0,T.Z)({},Xe,{ref:Q}))}var Ze=J.className,lt=(0,Re.Z)(J,D),at=w.className,ct=(0,Re.Z)(w,F);return ve.createElement(re.Provider,{value:null},ve.createElement(S,(0,T.Z)({ref:Q,className:Te()(Ze,at)},lt,ct)))},fe=ve.forwardRef(U);fe.displayName="RawItem";var ye=fe,Se=["prefixCls","data","renderItem","renderRawItem","itemKey","itemWidth","ssr","style","className","maxCount","renderRest","renderRawRest","suffix","component","itemComponent","onVisibleChange"],Ne="responsive",Z="invalidate";function B(g){return"+ ".concat(g.length," ...")}function ne(g,w){var Q=g.prefixCls,J=Q===void 0?"rc-overflow":Q,Pe=g.data,Ue=Pe===void 0?[]:Pe,Xe=g.renderItem,Ze=g.renderRawItem,lt=g.itemKey,at=g.itemWidth,ct=at===void 0?10:at,Ot=g.ssr,Ut=g.style,un=g.className,Ft=g.maxCount,nt=g.renderRest,Et=g.renderRawRest,oe=g.suffix,_e=g.component,M=_e===void 0?"div":_e,ce=g.itemComponent,xe=g.onVisibleChange,O=(0,Re.Z)(g,Se),C=Ot==="full",k=z(),he=W(k,null),de=(0,ie.Z)(he,2),K=de[0],Ie=de[1],$e=K||0,Me=W(k,new Map),Be=(0,ie.Z)(Me,2),Ye=Be[0],Qe=Be[1],Je=W(k,0),dt=(0,ie.Z)(Je,2),At=dt[0],gt=dt[1],Rt=W(k,0),Ct=(0,ie.Z)(Rt,2),x=Ct[0],A=Ct[1],rt=W(k,0),Y=(0,ie.Z)(rt,2),Ce=Y[0],vn=Y[1],ke=(0,ve.useState)(null),He=(0,ie.Z)(ke,2),We=He[0],te=He[1],pe=(0,ve.useState)(null),De=(0,ie.Z)(pe,2),ze=De[0],V=De[1],kt=ve.useMemo(function(){return ze===null&&C?Number.MAX_SAFE_INTEGER:ze||0},[ze,K]),Le=(0,ve.useState)(!1),jt=(0,ie.Z)(Le,2),ln=jt[0],bt=jt[1],Lt="".concat(J,"-item"),ot=Math.max(At,x),ft=Ft===Ne,Gt=Ue.length&&ft,yn=Ft===Z,nn=Gt||typeof Ft=="number"&&Ue.length>Ft,je=(0,ve.useMemo)(function(){var Vt=Ue;return Gt?K===null&&C?Vt=Ue:Vt=Ue.slice(0,Math.min(Ue.length,$e/ct)):typeof Ft=="number"&&(Vt=Ue.slice(0,Ft)),Vt},[Ue,ct,K,Ft,Gt]),we=(0,ve.useMemo)(function(){return Gt?Ue.slice(kt+1):Ue.slice(je.length)},[Ue,je,Gt,kt]),ut=(0,ve.useCallback)(function(Vt,qe){var tt;return typeof lt=="function"?lt(Vt):(tt=lt&&(Vt==null?void 0:Vt[lt]))!==null&&tt!==void 0?tt:qe},[lt]),it=(0,ve.useCallback)(Xe||function(Vt){return Vt},[Xe]);function yt(Vt,qe,tt){ze===Vt&&(qe===void 0||qe===We)||(V(Vt),tt||(bt(Vt<Ue.length-1),xe==null||xe(Vt)),qe!==void 0&&te(qe))}function Mt(Vt,qe){Ie(qe.clientWidth)}function Kt(Vt,qe){Qe(function(tt){var ht=new Map(tt);return qe===null?ht.delete(Vt):ht.set(Vt,qe),ht})}function Pt(Vt,qe){A(qe),gt(x)}function Zt(Vt,qe){vn(qe)}function Yt(Vt){return Ye.get(ut(je[Vt],Vt))}(0,o.Z)(function(){if($e&&typeof ot=="number"&&je){var Vt=Ce,qe=je.length,tt=qe-1;if(!qe){yt(0,null);return}for(var ht=0;ht<qe;ht+=1){var wt=Yt(ht);if(C&&(wt=wt||0),wt===void 0){yt(ht-1,void 0,!0);break}if(Vt+=wt,tt===0&&Vt<=$e||ht===tt-1&&Vt+Yt(tt)<=$e){yt(tt,null);break}else if(Vt+ot>$e){yt(ht-1,Vt-wt-Ce+x);break}}oe&&Yt(0)+Ce>$e&&te(null)}},[$e,Ye,x,Ce,ut,je]);var Nt=ln&&!!we.length,xt={};We!==null&&Gt&&(xt={position:"absolute",left:We,top:0});var rn={prefixCls:Lt,responsive:Gt,component:ce,invalidate:yn},Qt=Ze?function(Vt,qe){var tt=ut(Vt,qe);return ve.createElement(re.Provider,{key:tt,value:(0,N.Z)((0,N.Z)({},rn),{},{order:qe,item:Vt,itemKey:tt,registerSize:Kt,display:qe<=kt})},Ze(Vt,qe))}:function(Vt,qe){var tt=ut(Vt,qe);return ve.createElement(S,(0,T.Z)({},rn,{order:qe,key:tt,item:Vt,renderItem:it,itemKey:tt,registerSize:Kt,display:qe<=kt}))},hn={order:Nt?kt:Number.MAX_SAFE_INTEGER,className:"".concat(Lt,"-rest"),registerSize:Pt,display:Nt},zn=nt||B,Qn=Et?ve.createElement(re.Provider,{value:(0,N.Z)((0,N.Z)({},rn),hn)},Et(we)):ve.createElement(S,(0,T.Z)({},rn,hn),typeof zn=="function"?zn(we):zn),On=ve.createElement(M,(0,T.Z)({className:Te()(!yn&&J,un),style:Ut,ref:w},O),je.map(Qt),nn?Qn:null,oe&&ve.createElement(S,(0,T.Z)({},rn,{responsive:ft,responsiveDisabled:!Gt,order:kt,className:"".concat(Lt,"-suffix"),registerSize:Zt,display:!0,style:xt}),oe));return ft?ve.createElement(be.Z,{onResize:Mt,disabled:!Gt},On):On}var X=ve.forwardRef(ne);X.displayName="Overflow",X.Item=ye,X.RESPONSIVE=Ne,X.INVALIDATE=Z;var me=X,ee=me},29301:function(Ht,et,_){"use strict";_.d(et,{Z:function(){return Z}});var T=_(96663),N=_(59301),ie=_(11592),Re=_(48736),ve=_(44127),le=_(20135),Te=_(76846),be=_(8654),o=N.createContext(null);function L(B){var ne=B.children,X=B.onBatchResize,me=N.useRef(0),ee=N.useRef([]),g=N.useContext(o),w=N.useCallback(function(Q,J,Pe){me.current+=1;var Ue=me.current;ee.current.push({size:Q,element:J,data:Pe}),Promise.resolve().then(function(){Ue===me.current&&(X==null||X(ee.current),ee.current=[])}),g==null||g(Q,J,Pe)},[X,g]);return N.createElement(o.Provider,{value:w},ne)}var $=_(76374),v=new Map;function c(B){B.forEach(function(ne){var X,me=ne.target;(X=v.get(me))===null||X===void 0||X.forEach(function(ee){return ee(me)})})}var S=new $.Z(c),y=null,q=null;function ae(B,ne){v.has(B)||(v.set(B,new Set),S.observe(B)),v.get(B).add(ne)}function P(B,ne){v.has(B)&&(v.get(B).delete(ne),v.get(B).size||(S.unobserve(B),v.delete(B)))}var z=_(52884),W=_(95727),re=_(65711),b=_(85745),D=function(B){(0,re.Z)(X,B);var ne=(0,b.Z)(X);function X(){return(0,z.Z)(this,X),ne.apply(this,arguments)}return(0,W.Z)(X,[{key:"render",value:function(){return this.props.children}}]),X}(N.Component);function F(B,ne){var X=B.children,me=B.disabled,ee=N.useRef(null),g=N.useRef(null),w=N.useContext(o),Q=typeof X=="function",J=Q?X(ee):X,Pe=N.useRef({width:-1,height:-1,offsetWidth:-1,offsetHeight:-1}),Ue=!Q&&N.isValidElement(J)&&(0,be.Yr)(J),Xe=Ue?(0,be.C4)(J):null,Ze=(0,be.x1)(Xe,ee),lt=function(){var Ut;return(0,Te.ZP)(ee.current)||(ee.current&&(0,le.Z)(ee.current)==="object"?(0,Te.ZP)((Ut=ee.current)===null||Ut===void 0?void 0:Ut.nativeElement):null)||(0,Te.ZP)(g.current)};N.useImperativeHandle(ne,function(){return lt()});var at=N.useRef(B);at.current=B;var ct=N.useCallback(function(Ot){var Ut=at.current,un=Ut.onResize,Ft=Ut.data,nt=Ot.getBoundingClientRect(),Et=nt.width,oe=nt.height,_e=Ot.offsetWidth,M=Ot.offsetHeight,ce=Math.floor(Et),xe=Math.floor(oe);if(Pe.current.width!==ce||Pe.current.height!==xe||Pe.current.offsetWidth!==_e||Pe.current.offsetHeight!==M){var O={width:ce,height:xe,offsetWidth:_e,offsetHeight:M};Pe.current=O;var C=_e===Math.round(Et)?Et:_e,k=M===Math.round(oe)?oe:M,he=(0,ve.Z)((0,ve.Z)({},O),{},{offsetWidth:C,offsetHeight:k});w==null||w(he,Ot,Ft),un&&Promise.resolve().then(function(){un(he,Ot)})}},[]);return N.useEffect(function(){var Ot=lt();return Ot&&!me&&ae(Ot,ct),function(){return P(Ot,ct)}},[ee.current,me]),N.createElement(D,{ref:g},Ue?N.cloneElement(J,{ref:Ze}):J)}var U=N.forwardRef(F),fe=U,ye="rc-observer-key";function Se(B,ne){var X=B.children,me=typeof X=="function"?[X]:(0,ie.Z)(X);return me.map(function(ee,g){var w=(ee==null?void 0:ee.key)||"".concat(ye,"-").concat(g);return N.createElement(fe,(0,T.Z)({},B,{key:w,ref:g===0?ne:void 0}),ee)})}var Ne=N.forwardRef(Se);Ne.Collection=L;var Z=Ne},17115:function(Ht,et,_){"use strict";_.d(et,{ZP:function(){return Te}});var T=_(72071),N=_(59301),ie=_(47273),Re=0,ve=(0,ie.Z)();function le(){var be;return ve?(be=Re,Re+=1):be="TEST_OR_SSR",be}function Te(be){var o=N.useState(),L=(0,T.Z)(o,2),$=L[0],v=L[1];return N.useEffect(function(){v("rc_select_".concat(le()))},[]),be||$}},77861:function(Ht,et,_){"use strict";_.d(et,{Ac:function(){return Ie},Xo:function(){return A},Wx:function(){return Y},ZP:function(){return nn},lk:function(){return re}});var T=_(96663),N=_(19127),ie=_(90493),Re=_(44127),ve=_(72071),le=_(6620),Te=_(20135),be=_(18929),o=_(48736),L=_(59301),$=_(92310),v=_.n($),c=_(34280),S=_(49658),y=_(10228),q=_(8654),ae=function(we){var ut=we.className,it=we.customizeIcon,yt=we.customizeIconProps,Mt=we.onMouseDown,Kt=we.onClick,Pt=we.children,Zt;return typeof it=="function"?Zt=it(yt):Zt=it,L.createElement("span",{className:ut,onMouseDown:function(Nt){Nt.preventDefault(),Mt&&Mt(Nt)},style:{userSelect:"none",WebkitUserSelect:"none"},unselectable:"on",onClick:Kt,"aria-hidden":!0},Zt!==void 0?Zt:L.createElement("span",{className:v()(ut.split(/\s+/).map(function(Yt){return"".concat(Yt,"-icon")}))},Pt))},P=ae;function z(je,we,ut,it,yt){var Mt=arguments.length>5&&arguments[5]!==void 0?arguments[5]:!1,Kt=arguments.length>6?arguments[6]:void 0,Pt=arguments.length>7?arguments[7]:void 0,Zt=L.useMemo(function(){if((0,Te.Z)(it)==="object")return it.clearIcon;if(yt)return yt},[it,yt]),Yt=L.useMemo(function(){return!!(!Mt&&it&&(ut.length||Kt)&&!(Pt==="combobox"&&Kt===""))},[it,Mt,ut.length,Kt,Pt]);return{allowClear:Yt,clearIcon:L.createElement(P,{className:"".concat(je,"-clear"),onMouseDown:we,customizeIcon:Zt},"\xD7")}}var W=L.createContext(null);function re(){return L.useContext(W)}function b(){var je=arguments.length>0&&arguments[0]!==void 0?arguments[0]:10,we=L.useState(!1),ut=(0,ve.Z)(we,2),it=ut[0],yt=ut[1],Mt=L.useRef(null),Kt=function(){window.clearTimeout(Mt.current)};L.useEffect(function(){return Kt},[]);var Pt=function(Yt,Nt){Kt(),Mt.current=window.setTimeout(function(){yt(Yt),Nt&&Nt()},je)};return[it,Pt,Kt]}function D(){var je=arguments.length>0&&arguments[0]!==void 0?arguments[0]:250,we=L.useRef(null),ut=L.useRef(null);L.useEffect(function(){return function(){window.clearTimeout(ut.current)}},[]);function it(yt){(yt||we.current===null)&&(we.current=yt),window.clearTimeout(ut.current),ut.current=window.setTimeout(function(){we.current=null},je)}return[function(){return we.current},it]}function F(je,we,ut,it){var yt=L.useRef(null);yt.current={open:we,triggerOpen:ut,customizedTrigger:it},L.useEffect(function(){function Mt(Kt){var Pt;if(!((Pt=yt.current)!==null&&Pt!==void 0&&Pt.customizedTrigger)){var Zt=Kt.target;Zt.shadowRoot&&Kt.composed&&(Zt=Kt.composedPath()[0]||Zt),yt.current.open&&je().filter(function(Yt){return Yt}).every(function(Yt){return!Yt.contains(Zt)&&Yt!==Zt})&&yt.current.triggerOpen(!1)}}return window.addEventListener("mousedown",Mt),function(){return window.removeEventListener("mousedown",Mt)}},[])}var U=_(26112),fe=_(11780),ye=function(we,ut){var it,yt,Mt=we.prefixCls,Kt=we.id,Pt=we.inputElement,Zt=we.disabled,Yt=we.tabIndex,Nt=we.autoFocus,xt=we.autoComplete,rn=we.editable,Qt=we.activeDescendantId,hn=we.value,zn=we.maxLength,Qn=we.onKeyDown,On=we.onMouseDown,Vt=we.onChange,qe=we.onPaste,tt=we.onCompositionStart,ht=we.onCompositionEnd,wt=we.open,mt=we.attrs,It=Pt||L.createElement("input",null),Tt=It,Wt=Tt.ref,mn=Tt.props,cn=mn.onKeyDown,Pn=mn.onChange,kn=mn.onMouseDown,Un=mn.onCompositionStart,dn=mn.onCompositionEnd,Jt=mn.style;return(0,o.Kp)(!("maxLength"in It.props),"Passing 'maxLength' to input element directly may not work because input in BaseSelect is controlled."),It=L.cloneElement(It,(0,Re.Z)((0,Re.Z)((0,Re.Z)({type:"search"},mn),{},{id:Kt,ref:(0,q.sQ)(ut,Wt),disabled:Zt,tabIndex:Yt,autoComplete:xt||"off",autoFocus:Nt,className:v()("".concat(Mt,"-selection-search-input"),(it=It)===null||it===void 0||(yt=it.props)===null||yt===void 0?void 0:yt.className),role:"combobox","aria-label":"Search","aria-expanded":wt||!1,"aria-haspopup":"listbox","aria-owns":"".concat(Kt,"_list"),"aria-autocomplete":"list","aria-controls":"".concat(Kt,"_list"),"aria-activedescendant":wt?Qt:void 0},mt),{},{value:rn?hn:"",maxLength:zn,readOnly:!rn,unselectable:rn?null:"on",style:(0,Re.Z)((0,Re.Z)({},Jt),{},{opacity:rn?null:0}),onKeyDown:function(wn){Qn(wn),cn&&cn(wn)},onMouseDown:function(wn){On(wn),kn&&kn(wn)},onChange:function(wn){Vt(wn),Pn&&Pn(wn)},onCompositionStart:function(wn){tt(wn),Un&&Un(wn)},onCompositionEnd:function(wn){ht(wn),dn&&dn(wn)},onPaste:qe})),It},Se=L.forwardRef(ye);Se.displayName="Input";var Ne=Se;function Z(je){return Array.isArray(je)?je:je!==void 0?[je]:[]}var B=typeof window!="undefined"&&window.document&&window.document.documentElement,ne=B;function X(je){return je!=null}function me(je){return!je&&je!==0}function ee(je){return["string","number"].includes((0,Te.Z)(je))}function g(je){var we=void 0;return je&&(ee(je.title)?we=je.title.toString():ee(je.label)&&(we=je.label.toString())),we}function w(je,we){ne?L.useLayoutEffect(je,we):L.useEffect(je,we)}function Q(je){var we;return(we=je.key)!==null&&we!==void 0?we:je.value}var J=function(we){we.preventDefault(),we.stopPropagation()},Pe=function(we){var ut=we.id,it=we.prefixCls,yt=we.values,Mt=we.open,Kt=we.searchValue,Pt=we.autoClearSearchValue,Zt=we.inputRef,Yt=we.placeholder,Nt=we.disabled,xt=we.mode,rn=we.showSearch,Qt=we.autoFocus,hn=we.autoComplete,zn=we.activeDescendantId,Qn=we.tabIndex,On=we.removeIcon,Vt=we.maxTagCount,qe=we.maxTagTextLength,tt=we.maxTagPlaceholder,ht=tt===void 0?function(Gn){return"+ ".concat(Gn.length," ...")}:tt,wt=we.tagRender,mt=we.onToggleOpen,It=we.onRemove,Tt=we.onInputChange,Wt=we.onInputPaste,mn=we.onInputKeyDown,cn=we.onInputMouseDown,Pn=we.onInputCompositionStart,kn=we.onInputCompositionEnd,Un=L.useRef(null),dn=(0,L.useState)(0),Jt=(0,ve.Z)(dn,2),Mn=Jt[0],wn=Jt[1],rr=(0,L.useState)(!1),Yn=(0,ve.Z)(rr,2),Wn=Yn[0],Jn=Yn[1],Bn="".concat(it,"-selection"),qn=Mt||xt==="multiple"&&Pt===!1||xt==="tags"?Kt:"",wr=xt==="tags"||xt==="multiple"&&Pt===!1||rn&&(Mt||Wn);w(function(){wn(Un.current.scrollWidth)},[qn]);function An(Gn,ir,lr,Nn,ur){return L.createElement("span",{className:v()("".concat(Bn,"-item"),(0,ie.Z)({},"".concat(Bn,"-item-disabled"),lr)),title:g(Gn)},L.createElement("span",{className:"".concat(Bn,"-item-content")},ir),Nn&&L.createElement(P,{className:"".concat(Bn,"-item-remove"),onMouseDown:J,onClick:ur,customizeIcon:On},"\xD7"))}function sn(Gn,ir,lr,Nn,ur){var _n=function(Dn){J(Dn),mt(!Mt)};return L.createElement("span",{onMouseDown:_n},wt({label:ir,value:Gn,disabled:lr,closable:Nn,onClose:ur}))}function Ge(Gn){var ir=Gn.disabled,lr=Gn.label,Nn=Gn.value,ur=!Nt&&!ir,_n=lr;if(typeof qe=="number"&&(typeof lr=="string"||typeof lr=="number")){var tn=String(_n);tn.length>qe&&(_n="".concat(tn.slice(0,qe),"..."))}var Dn=function(sr){sr&&sr.stopPropagation(),It(Gn)};return typeof wt=="function"?sn(Nn,_n,ir,ur,Dn):An(Gn,_n,ir,ur,Dn)}function pn(Gn){var ir=typeof ht=="function"?ht(Gn):ht;return An({title:ir},ir,!1)}var Ln=L.createElement("div",{className:"".concat(Bn,"-search"),style:{width:Mn},onFocus:function(){Jn(!0)},onBlur:function(){Jn(!1)}},L.createElement(Ne,{ref:Zt,open:Mt,prefixCls:it,id:ut,inputElement:null,disabled:Nt,autoFocus:Qt,autoComplete:hn,editable:wr,activeDescendantId:zn,value:qn,onKeyDown:mn,onMouseDown:cn,onChange:Tt,onPaste:Wt,onCompositionStart:Pn,onCompositionEnd:kn,tabIndex:Qn,attrs:(0,U.Z)(we,!0)}),L.createElement("span",{ref:Un,className:"".concat(Bn,"-search-mirror"),"aria-hidden":!0},qn,"\xA0")),Xn=L.createElement(fe.Z,{prefixCls:"".concat(Bn,"-overflow"),data:yt,renderItem:Ge,renderRest:pn,suffix:Ln,itemKey:Q,maxCount:Vt});return L.createElement(L.Fragment,null,Xn,!yt.length&&!qn&&L.createElement("span",{className:"".concat(Bn,"-placeholder")},Yt))},Ue=Pe,Xe=function(we){var ut=we.inputElement,it=we.prefixCls,yt=we.id,Mt=we.inputRef,Kt=we.disabled,Pt=we.autoFocus,Zt=we.autoComplete,Yt=we.activeDescendantId,Nt=we.mode,xt=we.open,rn=we.values,Qt=we.placeholder,hn=we.tabIndex,zn=we.showSearch,Qn=we.searchValue,On=we.activeValue,Vt=we.maxLength,qe=we.onInputKeyDown,tt=we.onInputMouseDown,ht=we.onInputChange,wt=we.onInputPaste,mt=we.onInputCompositionStart,It=we.onInputCompositionEnd,Tt=we.title,Wt=L.useState(!1),mn=(0,ve.Z)(Wt,2),cn=mn[0],Pn=mn[1],kn=Nt==="combobox",Un=kn||zn,dn=rn[0],Jt=Qn||"";kn&&On&&!cn&&(Jt=On),L.useEffect(function(){kn&&Pn(!1)},[kn,On]);var Mn=Nt!=="combobox"&&!xt&&!zn?!1:!!Jt,wn=Tt===void 0?g(dn):Tt,rr=function(){if(dn)return null;var Wn=Mn?{visibility:"hidden"}:void 0;return L.createElement("span",{className:"".concat(it,"-selection-placeholder"),style:Wn},Qt)};return L.createElement(L.Fragment,null,L.createElement("span",{className:"".concat(it,"-selection-search")},L.createElement(Ne,{ref:Mt,prefixCls:it,id:yt,open:xt,inputElement:ut,disabled:Kt,autoFocus:Pt,autoComplete:Zt,editable:Un,activeDescendantId:Yt,value:Jt,onKeyDown:qe,onMouseDown:tt,onChange:function(Wn){Pn(!0),ht(Wn)},onPaste:wt,onCompositionStart:mt,onCompositionEnd:It,tabIndex:hn,attrs:(0,U.Z)(we,!0),maxLength:kn?Vt:void 0})),!kn&&dn?L.createElement("span",{className:"".concat(it,"-selection-item"),title:wn,style:Mn?{visibility:"hidden"}:void 0},dn.label):null,rr())},Ze=Xe;function lt(je){return![y.Z.ESC,y.Z.SHIFT,y.Z.BACKSPACE,y.Z.TAB,y.Z.WIN_KEY,y.Z.ALT,y.Z.META,y.Z.WIN_KEY_RIGHT,y.Z.CTRL,y.Z.SEMICOLON,y.Z.EQUALS,y.Z.CAPS_LOCK,y.Z.CONTEXT_MENU,y.Z.F1,y.Z.F2,y.Z.F3,y.Z.F4,y.Z.F5,y.Z.F6,y.Z.F7,y.Z.F8,y.Z.F9,y.Z.F10,y.Z.F11,y.Z.F12].includes(je)}var at=function(we,ut){var it=(0,L.useRef)(null),yt=(0,L.useRef)(!1),Mt=we.prefixCls,Kt=we.open,Pt=we.mode,Zt=we.showSearch,Yt=we.tokenWithEnter,Nt=we.autoClearSearchValue,xt=we.onSearch,rn=we.onSearchSubmit,Qt=we.onToggleOpen,hn=we.onInputKeyDown,zn=we.domRef;L.useImperativeHandle(ut,function(){return{focus:function(){it.current.focus()},blur:function(){it.current.blur()}}});var Qn=D(0),On=(0,ve.Z)(Qn,2),Vt=On[0],qe=On[1],tt=function(Jt){var Mn=Jt.which;(Mn===y.Z.UP||Mn===y.Z.DOWN)&&Jt.preventDefault(),hn&&hn(Jt),Mn===y.Z.ENTER&&Pt==="tags"&&!yt.current&&!Kt&&(rn==null||rn(Jt.target.value)),lt(Mn)&&Qt(!0)},ht=function(){qe(!0)},wt=(0,L.useRef)(null),mt=function(Jt){xt(Jt,!0,yt.current)!==!1&&Qt(!0)},It=function(){yt.current=!0},Tt=function(Jt){yt.current=!1,Pt!=="combobox"&&mt(Jt.target.value)},Wt=function(Jt){var Mn=Jt.target.value;if(Yt&&wt.current&&/[\r\n]/.test(wt.current)){var wn=wt.current.replace(/[\r\n]+$/,"").replace(/\r\n/g," ").replace(/[\r\n]/g," ");Mn=Mn.replace(wn,wt.current)}wt.current=null,mt(Mn)},mn=function(Jt){var Mn=Jt.clipboardData,wn=Mn.getData("text");wt.current=wn},cn=function(Jt){var Mn=Jt.target;if(Mn!==it.current){var wn=document.body.style.msTouchAction!==void 0;wn?setTimeout(function(){it.current.focus()}):it.current.focus()}},Pn=function(Jt){var Mn=Vt();Jt.target!==it.current&&!Mn&&Pt!=="combobox"&&Jt.preventDefault(),(Pt!=="combobox"&&(!Zt||!Mn)||!Kt)&&(Kt&&Nt!==!1&&xt("",!0,!1),Qt())},kn={inputRef:it,onInputKeyDown:tt,onInputMouseDown:ht,onInputChange:Wt,onInputPaste:mn,onInputCompositionStart:It,onInputCompositionEnd:Tt},Un=Pt==="multiple"||Pt==="tags"?L.createElement(Ue,(0,T.Z)({},we,kn)):L.createElement(Ze,(0,T.Z)({},we,kn));return L.createElement("div",{ref:zn,className:"".concat(Mt,"-selector"),onClick:cn,onMouseDown:Pn},Un)},ct=L.forwardRef(at);ct.displayName="Selector";var Ot=ct,Ut=_(35593),un=["prefixCls","disabled","visible","children","popupElement","animation","transitionName","dropdownStyle","dropdownClassName","direction","placement","builtinPlacements","dropdownMatchSelectWidth","dropdownRender","dropdownAlign","getPopupContainer","empty","getTriggerDOMNode","onPopupVisibleChange","onPopupMouseEnter"],Ft=function(we){var ut=we===!0?0:1;return{bottomLeft:{points:["tl","bl"],offset:[0,4],overflow:{adjustX:ut,adjustY:1},htmlRegion:"scroll"},bottomRight:{points:["tr","br"],offset:[0,4],overflow:{adjustX:ut,adjustY:1},htmlRegion:"scroll"},topLeft:{points:["bl","tl"],offset:[0,-4],overflow:{adjustX:ut,adjustY:1},htmlRegion:"scroll"},topRight:{points:["br","tr"],offset:[0,-4],overflow:{adjustX:ut,adjustY:1},htmlRegion:"scroll"}}},nt=function(we,ut){var it=we.prefixCls,yt=we.disabled,Mt=we.visible,Kt=we.children,Pt=we.popupElement,Zt=we.animation,Yt=we.transitionName,Nt=we.dropdownStyle,xt=we.dropdownClassName,rn=we.direction,Qt=rn===void 0?"ltr":rn,hn=we.placement,zn=we.builtinPlacements,Qn=we.dropdownMatchSelectWidth,On=we.dropdownRender,Vt=we.dropdownAlign,qe=we.getPopupContainer,tt=we.empty,ht=we.getTriggerDOMNode,wt=we.onPopupVisibleChange,mt=we.onPopupMouseEnter,It=(0,le.Z)(we,un),Tt="".concat(it,"-dropdown"),Wt=Pt;On&&(Wt=On(Pt));var mn=L.useMemo(function(){return zn||Ft(Qn)},[zn,Qn]),cn=Zt?"".concat(Tt,"-").concat(Zt):Yt,Pn=typeof Qn=="number",kn=L.useMemo(function(){return Pn?null:Qn===!1?"minWidth":"width"},[Qn,Pn]),Un=Nt;Pn&&(Un=(0,Re.Z)((0,Re.Z)({},Un),{},{width:Qn}));var dn=L.useRef(null);return L.useImperativeHandle(ut,function(){return{getPopupElement:function(){return dn.current}}}),L.createElement(Ut.Z,(0,T.Z)({},It,{showAction:wt?["click"]:[],hideAction:wt?["click"]:[],popupPlacement:hn||(Qt==="rtl"?"bottomRight":"bottomLeft"),builtinPlacements:mn,prefixCls:Tt,popupTransitionName:cn,popup:L.createElement("div",{ref:dn,onMouseEnter:mt},Wt),stretch:kn,popupAlign:Vt,popupVisible:Mt,getPopupContainer:qe,popupClassName:v()(xt,(0,ie.Z)({},"".concat(Tt,"-empty"),tt)),popupStyle:Un,getTriggerDOMNode:ht,onPopupVisibleChange:wt}),Kt)},Et=L.forwardRef(nt);Et.displayName="SelectTrigger";var oe=Et,_e=_(4537);function M(je,we){var ut=je.key,it;return"value"in je&&(it=je.value),ut!=null?ut:it!==void 0?it:"rc-index-key-".concat(we)}function ce(je,we){var ut=je||{},it=ut.label,yt=ut.value,Mt=ut.options,Kt=ut.groupLabel,Pt=it||(we?"children":"label");return{label:Pt,value:yt||"value",options:Mt||"options",groupLabel:Kt||Pt}}function xe(je){var we=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},ut=we.fieldNames,it=we.childrenAsData,yt=[],Mt=ce(ut,!1),Kt=Mt.label,Pt=Mt.value,Zt=Mt.options,Yt=Mt.groupLabel;function Nt(xt,rn){xt.forEach(function(Qt){if(rn||!(Zt in Qt)){var hn=Qt[Pt];yt.push({key:M(Qt,yt.length),groupOption:rn,data:Qt,label:Qt[Kt],value:hn})}else{var zn=Qt[Yt];zn===void 0&&it&&(zn=Qt.label),yt.push({key:M(Qt,yt.length),group:!0,data:Qt,label:zn}),Nt(Qt[Zt],!0)}})}return Nt(je,!1),yt}function O(je){var we=(0,Re.Z)({},je);return"props"in we||Object.defineProperty(we,"props",{get:function(){return(0,o.ZP)(!1,"Return type is option instead of Option instance. Please read value directly instead of reading from `props`."),we}}),we}function C(je,we){if(!we||!we.length)return null;var ut=!1;function it(Mt,Kt){var Pt=(0,_e.Z)(Kt),Zt=Pt[0],Yt=Pt.slice(1);if(!Zt)return[Mt];var Nt=Mt.split(Zt);return ut=ut||Nt.length>1,Nt.reduce(function(xt,rn){return[].concat((0,N.Z)(xt),(0,N.Z)(it(rn,Yt)))},[]).filter(function(xt){return xt})}var yt=it(je,we);return ut?yt:null}var k=["id","prefixCls","className","showSearch","tagRender","direction","omitDomProps","displayValues","onDisplayValuesChange","emptyOptions","notFoundContent","onClear","mode","disabled","loading","getInputElement","getRawInputElement","open","defaultOpen","onDropdownVisibleChange","activeValue","onActiveValueChange","activeDescendantId","searchValue","autoClearSearchValue","onSearch","onSearchSplit","tokenSeparators","allowClear","suffixIcon","clearIcon","OptionList","animation","transitionName","dropdownStyle","dropdownClassName","dropdownMatchSelectWidth","dropdownRender","dropdownAlign","placement","builtinPlacements","getPopupContainer","showAction","onFocus","onBlur","onKeyUp","onKeyDown","onMouseDown"],he=["value","onChange","removeIcon","placeholder","autoFocus","maxTagCount","maxTagTextLength","maxTagPlaceholder","choiceTransitionName","onInputKeyDown","onPopupScroll","tabIndex"];function de(je){return je==="tags"||je==="multiple"}var K=L.forwardRef(function(je,we){var ut,it,yt=je.id,Mt=je.prefixCls,Kt=je.className,Pt=je.showSearch,Zt=je.tagRender,Yt=je.direction,Nt=je.omitDomProps,xt=je.displayValues,rn=je.onDisplayValuesChange,Qt=je.emptyOptions,hn=je.notFoundContent,zn=hn===void 0?"Not Found":hn,Qn=je.onClear,On=je.mode,Vt=je.disabled,qe=je.loading,tt=je.getInputElement,ht=je.getRawInputElement,wt=je.open,mt=je.defaultOpen,It=je.onDropdownVisibleChange,Tt=je.activeValue,Wt=je.onActiveValueChange,mn=je.activeDescendantId,cn=je.searchValue,Pn=je.autoClearSearchValue,kn=je.onSearch,Un=je.onSearchSplit,dn=je.tokenSeparators,Jt=je.allowClear,Mn=je.suffixIcon,wn=je.clearIcon,rr=je.OptionList,Yn=je.animation,Wn=je.transitionName,Jn=je.dropdownStyle,Bn=je.dropdownClassName,qn=je.dropdownMatchSelectWidth,wr=je.dropdownRender,An=je.dropdownAlign,sn=je.placement,Ge=je.builtinPlacements,pn=je.getPopupContainer,Ln=je.showAction,Xn=Ln===void 0?[]:Ln,Gn=je.onFocus,ir=je.onBlur,lr=je.onKeyUp,Nn=je.onKeyDown,ur=je.onMouseDown,_n=(0,le.Z)(je,k),tn=de(On),Dn=(Pt!==void 0?Pt:tn)||On==="combobox",Zn=(0,Re.Z)({},_n);he.forEach(function(br){delete Zn[br]}),Nt==null||Nt.forEach(function(br){delete Zn[br]});var sr=L.useState(!1),Pr=(0,ve.Z)(sr,2),gn=Pr[0],cr=Pr[1];L.useEffect(function(){cr((0,S.Z)())},[]);var ar=L.useRef(null),xr=L.useRef(null),Mr=L.useRef(null),Fr=L.useRef(null),vr=L.useRef(null),Cr=b(),Er=(0,ve.Z)(Cr,3),qr=Er[0],Yr=Er[1],ii=Er[2];L.useImperativeHandle(we,function(){var br,tr;return{focus:(br=Fr.current)===null||br===void 0?void 0:br.focus,blur:(tr=Fr.current)===null||tr===void 0?void 0:tr.blur,scrollTo:function(ui){var Zr;return(Zr=vr.current)===null||Zr===void 0?void 0:Zr.scrollTo(ui)}}});var kr=L.useMemo(function(){var br;if(On!=="combobox")return cn;var tr=(br=xt[0])===null||br===void 0?void 0:br.value;return typeof tr=="string"||typeof tr=="number"?String(tr):""},[cn,On,xt]),ei=On==="combobox"&&typeof tt=="function"&&tt()||null,nr=typeof ht=="function"&&ht(),ci=(0,q.x1)(xr,nr==null||(ut=nr.props)===null||ut===void 0?void 0:ut.ref),yi=L.useState(!1),hi=(0,ve.Z)(yi,2),Tr=hi[0],fi=hi[1];(0,c.Z)(function(){fi(!0)},[]);var Ai=(0,be.Z)(!1,{defaultValue:mt,value:wt}),on=(0,ve.Z)(Ai,2),Qr=on[0],oi=on[1],Rn=Tr?Qr:!1,$n=!zn&&Qt;(Vt||$n&&Rn&&On==="combobox")&&(Rn=!1);var Cn=$n?!1:Rn,En=L.useCallback(function(br){var tr=br!==void 0?br:!Rn;Vt||(oi(tr),Rn!==tr&&(It==null||It(tr)))},[Vt,Rn,oi,It]),er=L.useMemo(function(){return(dn||[]).some(function(br){return[`
`,`\r
`].includes(br)})},[dn]),dr=function(tr,li,ui){var Zr=!0,wi=tr;Wt==null||Wt(null);var Ir=ui?null:C(tr,dn);return On!=="combobox"&&Ir&&(wi="",Un==null||Un(Ir),En(!1),Zr=!1),kn&&kr!==wi&&kn(wi,{source:li?"typing":"effect"}),Zr},Hr=function(tr){!tr||!tr.trim()||kn(tr,{source:"submit"})};L.useEffect(function(){!Rn&&!tn&&On!=="combobox"&&dr("",!1,!1)},[Rn]),L.useEffect(function(){Qr&&Vt&&oi(!1),Vt&&Yr(!1)},[Vt]);var Dr=D(),zr=(0,ve.Z)(Dr,2),Wr=zr[0],bi=zr[1],xi=function(tr){var li=Wr(),ui=tr.which;if(ui===y.Z.ENTER&&(On!=="combobox"&&tr.preventDefault(),Rn||En(!0)),bi(!!kr),ui===y.Z.BACKSPACE&&!li&&tn&&!kr&&xt.length){for(var Zr=(0,N.Z)(xt),wi=null,Ir=Zr.length-1;Ir>=0;Ir-=1){var Fi=Zr[Ir];if(!Fi.disabled){Zr.splice(Ir,1),wi=Fi;break}}wi&&rn(Zr,{type:"remove",values:[wi]})}for(var gi=arguments.length,Oi=new Array(gi>1?gi-1:0),zi=1;zi<gi;zi++)Oi[zi-1]=arguments[zi];if(Rn&&vr.current){var Or;(Or=vr.current).onKeyDown.apply(Or,[tr].concat(Oi))}Nn==null||Nn.apply(void 0,[tr].concat(Oi))},Hi=function(tr){for(var li=arguments.length,ui=new Array(li>1?li-1:0),Zr=1;Zr<li;Zr++)ui[Zr-1]=arguments[Zr];if(Rn&&vr.current){var wi;(wi=vr.current).onKeyUp.apply(wi,[tr].concat(ui))}lr==null||lr.apply(void 0,[tr].concat(ui))},Ni=function(tr){var li=xt.filter(function(ui){return ui!==tr});rn(li,{type:"remove",values:[tr]})},mi=L.useRef(!1),In=function(){Yr(!0),Vt||(Gn&&!mi.current&&Gn.apply(void 0,arguments),Xn.includes("focus")&&En(!0)),mi.current=!0},Tn=function(){Yr(!1,function(){mi.current=!1,En(!1)}),!Vt&&(kr&&(On==="tags"?kn(kr,{source:"submit"}):On==="multiple"&&kn("",{source:"blur"})),ir&&ir.apply(void 0,arguments))},hr=[];L.useEffect(function(){return function(){hr.forEach(function(br){return clearTimeout(br)}),hr.splice(0,hr.length)}},[]);var Gr=function(tr){var li,ui=tr.target,Zr=(li=Mr.current)===null||li===void 0?void 0:li.getPopupElement();if(Zr&&Zr.contains(ui)){var wi=setTimeout(function(){var Oi=hr.indexOf(wi);if(Oi!==-1&&hr.splice(Oi,1),ii(),!gn&&!Zr.contains(document.activeElement)){var zi;(zi=Fr.current)===null||zi===void 0||zi.focus()}});hr.push(wi)}for(var Ir=arguments.length,Fi=new Array(Ir>1?Ir-1:0),gi=1;gi<Ir;gi++)Fi[gi-1]=arguments[gi];ur==null||ur.apply(void 0,[tr].concat(Fi))},Sr=L.useState({}),pi=(0,ve.Z)(Sr,2),Gi=pi[1];function ji(){Gi({})}var Ci;nr&&(Ci=function(tr){En(tr)}),F(function(){var br;return[ar.current,(br=Mr.current)===null||br===void 0?void 0:br.getPopupElement()]},Cn,En,!!nr);var ss=L.useMemo(function(){return(0,Re.Z)((0,Re.Z)({},je),{},{notFoundContent:zn,open:Rn,triggerOpen:Cn,id:yt,showSearch:Dn,multiple:tn,toggleOpen:En})},[je,zn,Cn,Rn,yt,Dn,tn,En]),as=!!Mn||qe,os;as&&(os=L.createElement(P,{className:v()("".concat(Mt,"-arrow"),(0,ie.Z)({},"".concat(Mt,"-arrow-loading"),qe)),customizeIcon:Mn,customizeIconProps:{loading:qe,searchValue:kr,open:Rn,focused:qr,showSearch:Dn}}));var es=function(){var tr;Qn==null||Qn(),(tr=Fr.current)===null||tr===void 0||tr.focus(),rn([],{type:"clear",values:xt}),dr("",!1,!1)},ls=z(Mt,es,xt,Jt,wn,Vt,kr,On),Pi=ls.allowClear,ni=ls.clearIcon,us=L.createElement(rr,{ref:vr}),ts=v()(Mt,Kt,(it={},(0,ie.Z)(it,"".concat(Mt,"-focused"),qr),(0,ie.Z)(it,"".concat(Mt,"-multiple"),tn),(0,ie.Z)(it,"".concat(Mt,"-single"),!tn),(0,ie.Z)(it,"".concat(Mt,"-allow-clear"),Jt),(0,ie.Z)(it,"".concat(Mt,"-show-arrow"),as),(0,ie.Z)(it,"".concat(Mt,"-disabled"),Vt),(0,ie.Z)(it,"".concat(Mt,"-loading"),qe),(0,ie.Z)(it,"".concat(Mt,"-open"),Rn),(0,ie.Z)(it,"".concat(Mt,"-customize-input"),ei),(0,ie.Z)(it,"".concat(Mt,"-show-search"),Dn),it)),Ei=L.createElement(oe,{ref:Mr,disabled:Vt,prefixCls:Mt,visible:Cn,popupElement:us,animation:Yn,transitionName:Wn,dropdownStyle:Jn,dropdownClassName:Bn,direction:Yt,dropdownMatchSelectWidth:qn,dropdownRender:wr,dropdownAlign:An,placement:sn,builtinPlacements:Ge,getPopupContainer:pn,empty:Qt,getTriggerDOMNode:function(){return xr.current},onPopupVisibleChange:Ci,onPopupMouseEnter:ji},nr?L.cloneElement(nr,{ref:ci}):L.createElement(Ot,(0,T.Z)({},je,{domRef:xr,prefixCls:Mt,inputElement:ei,ref:Fr,id:yt,showSearch:Dn,autoClearSearchValue:Pn,mode:On,activeDescendantId:mn,tagRender:Zt,values:xt,open:Rn,onToggleOpen:En,activeValue:Tt,searchValue:kr,onSearch:dr,onSearchSubmit:Hr,onRemove:Ni,tokenWithEnter:er}))),Ti;return nr?Ti=Ei:Ti=L.createElement("div",(0,T.Z)({className:ts},Zn,{ref:ar,onMouseDown:Gr,onKeyDown:xi,onKeyUp:Hi,onFocus:In,onBlur:Tn}),qr&&!Rn&&L.createElement("span",{style:{width:0,height:0,position:"absolute",overflow:"hidden",opacity:0},"aria-live":"polite"},"".concat(xt.map(function(br){var tr=br.label,li=br.value;return["number","string"].includes((0,Te.Z)(tr))?tr:li}).join(", "))),Ei,os,Pi&&ni),L.createElement(W.Provider,{value:ss},Ti)}),Ie=K,$e=function(je,we){var ut=L.useRef({values:new Map,options:new Map}),it=L.useMemo(function(){var Mt=ut.current,Kt=Mt.values,Pt=Mt.options,Zt=je.map(function(xt){if(xt.label===void 0){var rn;return(0,Re.Z)((0,Re.Z)({},xt),{},{label:(rn=Kt.get(xt.value))===null||rn===void 0?void 0:rn.label})}return xt}),Yt=new Map,Nt=new Map;return Zt.forEach(function(xt){Yt.set(xt.value,xt),Nt.set(xt.value,we.get(xt.value)||Pt.get(xt.value))}),ut.current.values=Yt,ut.current.options=Nt,Zt},[je,we]),yt=L.useCallback(function(Mt){return we.get(Mt)||ut.current.options.get(Mt)},[we]);return[it,yt]};function Me(je,we){return Z(je).join("").toUpperCase().includes(we)}var Be=function(je,we,ut,it,yt){return L.useMemo(function(){if(!ut||it===!1)return je;var Mt=we.options,Kt=we.label,Pt=we.value,Zt=[],Yt=typeof it=="function",Nt=ut.toUpperCase(),xt=Yt?it:function(Qt,hn){return yt?Me(hn[yt],Nt):hn[Mt]?Me(hn[Kt!=="children"?Kt:"label"],Nt):Me(hn[Pt],Nt)},rn=Yt?function(Qt){return O(Qt)}:function(Qt){return Qt};return je.forEach(function(Qt){if(Qt[Mt]){var hn=xt(ut,rn(Qt));if(hn)Zt.push(Qt);else{var zn=Qt[Mt].filter(function(Qn){return xt(ut,rn(Qn))});zn.length&&Zt.push((0,Re.Z)((0,Re.Z)({},Qt),{},(0,ie.Z)({},Mt,zn)))}return}xt(ut,rn(Qt))&&Zt.push(Qt)}),Zt},[je,it,yt,ut,we])},Ye=_(17115),Qe=_(11592),Je=["children","value"],dt=["children"];function At(je){var we=je,ut=we.key,it=we.props,yt=it.children,Mt=it.value,Kt=(0,le.Z)(it,Je);return(0,Re.Z)({key:ut,value:Mt!==void 0?Mt:ut,children:yt},Kt)}function gt(je){var we=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;return(0,Qe.Z)(je).map(function(ut,it){if(!L.isValidElement(ut)||!ut.type)return null;var yt=ut,Mt=yt.type.isSelectOptGroup,Kt=yt.key,Pt=yt.props,Zt=Pt.children,Yt=(0,le.Z)(Pt,dt);return we||!Mt?At(ut):(0,Re.Z)((0,Re.Z)({key:"__RC_SELECT_GRP__".concat(Kt===null?it:Kt,"__"),label:Kt},Yt),{},{options:gt(Zt)})}).filter(function(ut){return ut})}function Rt(je,we,ut,it,yt){return L.useMemo(function(){var Mt=je,Kt=!je;Kt&&(Mt=gt(we));var Pt=new Map,Zt=new Map,Yt=function(rn,Qt,hn){hn&&typeof hn=="string"&&rn.set(Qt[hn],Qt)};function Nt(xt){for(var rn=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,Qt=0;Qt<xt.length;Qt+=1){var hn=xt[Qt];!hn[ut.options]||rn?(Pt.set(hn[ut.value],hn),Yt(Zt,hn,ut.label),Yt(Zt,hn,it),Yt(Zt,hn,yt)):Nt(hn[ut.options],!0)}}return Nt(Mt),{options:Mt,valueOptions:Pt,labelOptions:Zt}},[je,we,ut,it,yt])}function Ct(je){var we=L.useRef();we.current=je;var ut=L.useCallback(function(){return we.current.apply(we,arguments)},[]);return ut}var x=function(){return null};x.isSelectOptGroup=!0;var A=x,rt=function(){return null};rt.isSelectOption=!0;var Y=rt,Ce=_(80547),vn=_(2738),ke=_(24916),He=L.createContext(null),We=He;function te(){return/(mac\sos|macintosh)/i.test(navigator.appVersion)}var pe=["disabled","title","children","style","className"];function De(je){return typeof je=="string"||typeof je=="number"}var ze=function(we,ut){var it=re(),yt=it.prefixCls,Mt=it.id,Kt=it.open,Pt=it.multiple,Zt=it.mode,Yt=it.searchValue,Nt=it.toggleOpen,xt=it.notFoundContent,rn=it.onPopupScroll,Qt=L.useContext(We),hn=Qt.flattenOptions,zn=Qt.onActiveValue,Qn=Qt.defaultActiveFirstOption,On=Qt.onSelect,Vt=Qt.menuItemSelectedIcon,qe=Qt.rawValues,tt=Qt.fieldNames,ht=Qt.virtual,wt=Qt.direction,mt=Qt.listHeight,It=Qt.listItemHeight,Tt="".concat(yt,"-item"),Wt=(0,Ce.Z)(function(){return hn},[Kt,hn],function(An,sn){return sn[0]&&An[1]!==sn[1]}),mn=L.useRef(null),cn=function(sn){sn.preventDefault()},Pn=function(sn){mn.current&&mn.current.scrollTo(typeof sn=="number"?{index:sn}:sn)},kn=function(sn){for(var Ge=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1,pn=Wt.length,Ln=0;Ln<pn;Ln+=1){var Xn=(sn+Ln*Ge+pn)%pn,Gn=Wt[Xn],ir=Gn.group,lr=Gn.data;if(!ir&&!lr.disabled)return Xn}return-1},Un=L.useState(function(){return kn(0)}),dn=(0,ve.Z)(Un,2),Jt=dn[0],Mn=dn[1],wn=function(sn){var Ge=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;Mn(sn);var pn={source:Ge?"keyboard":"mouse"},Ln=Wt[sn];if(!Ln){zn(null,-1,pn);return}zn(Ln.value,sn,pn)};(0,L.useEffect)(function(){wn(Qn!==!1?kn(0):-1)},[Wt.length,Yt]);var rr=L.useCallback(function(An){return qe.has(An)&&Zt!=="combobox"},[Zt,(0,N.Z)(qe).toString(),qe.size]);(0,L.useEffect)(function(){var An=setTimeout(function(){if(!Pt&&Kt&&qe.size===1){var Ge=Array.from(qe)[0],pn=Wt.findIndex(function(Ln){var Xn=Ln.data;return Xn.value===Ge});pn!==-1&&(wn(pn),Pn(pn))}});if(Kt){var sn;(sn=mn.current)===null||sn===void 0||sn.scrollTo(void 0)}return function(){return clearTimeout(An)}},[Kt,Yt,hn.length]);var Yn=function(sn){sn!==void 0&&On(sn,{selected:!qe.has(sn)}),Pt||Nt(!1)};if(L.useImperativeHandle(ut,function(){return{onKeyDown:function(sn){var Ge=sn.which,pn=sn.ctrlKey;switch(Ge){case y.Z.N:case y.Z.P:case y.Z.UP:case y.Z.DOWN:{var Ln=0;if(Ge===y.Z.UP?Ln=-1:Ge===y.Z.DOWN?Ln=1:te()&&pn&&(Ge===y.Z.N?Ln=1:Ge===y.Z.P&&(Ln=-1)),Ln!==0){var Xn=kn(Jt+Ln,Ln);Pn(Xn),wn(Xn,!0)}break}case y.Z.ENTER:{var Gn=Wt[Jt];Gn&&!Gn.data.disabled?Yn(Gn.value):Yn(void 0),Kt&&sn.preventDefault();break}case y.Z.ESC:Nt(!1),Kt&&sn.stopPropagation()}},onKeyUp:function(){},scrollTo:function(sn){Pn(sn)}}}),Wt.length===0)return L.createElement("div",{role:"listbox",id:"".concat(Mt,"_list"),className:"".concat(Tt,"-empty"),onMouseDown:cn},xt);var Wn=Object.keys(tt).map(function(An){return tt[An]}),Jn=function(sn){return sn.label};function Bn(An,sn){var Ge=An.group;return{role:Ge?"presentation":"option",id:"".concat(Mt,"_list_").concat(sn)}}var qn=function(sn){var Ge=Wt[sn];if(!Ge)return null;var pn=Ge.data||{},Ln=pn.value,Xn=Ge.group,Gn=(0,U.Z)(pn,!0),ir=Jn(Ge);return Ge?L.createElement("div",(0,T.Z)({"aria-label":typeof ir=="string"&&!Xn?ir:null},Gn,{key:sn},Bn(Ge,sn),{"aria-selected":rr(Ln)}),Ln):null},wr={role:"listbox",id:"".concat(Mt,"_list")};return L.createElement(L.Fragment,null,ht&&L.createElement("div",(0,T.Z)({},wr,{style:{height:0,width:0,overflow:"hidden"}}),qn(Jt-1),qn(Jt),qn(Jt+1)),L.createElement(ke.Z,{itemKey:"key",ref:mn,data:Wt,height:mt,itemHeight:It,fullHeight:!1,onMouseDown:cn,onScroll:rn,virtual:ht,direction:wt,innerProps:ht?null:wr},function(An,sn){var Ge,pn=An.group,Ln=An.groupOption,Xn=An.data,Gn=An.label,ir=An.value,lr=Xn.key;if(pn){var Nn,ur=(Nn=Xn.title)!==null&&Nn!==void 0?Nn:De(Gn)?Gn.toString():void 0;return L.createElement("div",{className:v()(Tt,"".concat(Tt,"-group")),title:ur},Gn!==void 0?Gn:lr)}var _n=Xn.disabled,tn=Xn.title,Dn=Xn.children,Zn=Xn.style,sr=Xn.className,Pr=(0,le.Z)(Xn,pe),gn=(0,vn.Z)(Pr,Wn),cr=rr(ir),ar="".concat(Tt,"-option"),xr=v()(Tt,ar,sr,(Ge={},(0,ie.Z)(Ge,"".concat(ar,"-grouped"),Ln),(0,ie.Z)(Ge,"".concat(ar,"-active"),Jt===sn&&!_n),(0,ie.Z)(Ge,"".concat(ar,"-disabled"),_n),(0,ie.Z)(Ge,"".concat(ar,"-selected"),cr),Ge)),Mr=Jn(An),Fr=!Vt||typeof Vt=="function"||cr,vr=typeof Mr=="number"?Mr:Mr||ir,Cr=De(vr)?vr.toString():void 0;return tn!==void 0&&(Cr=tn),L.createElement("div",(0,T.Z)({},(0,U.Z)(gn),ht?{}:Bn(An,sn),{"aria-selected":cr,className:xr,title:Cr,onMouseMove:function(){Jt===sn||_n||wn(sn)},onClick:function(){_n||Yn(ir)},style:Zn}),L.createElement("div",{className:"".concat(ar,"-content")},vr),L.isValidElement(Vt)||cr,Fr&&L.createElement(P,{className:"".concat(Tt,"-option-state"),customizeIcon:Vt,customizeIconProps:{isSelected:cr}},cr?"\u2713":null))}))},V=L.forwardRef(ze);V.displayName="OptionList";var kt=V;function Le(je){var we=je.mode,ut=je.options,it=je.children,yt=je.backfill,Mt=je.allowClear,Kt=je.placeholder,Pt=je.getInputElement,Zt=je.showSearch,Yt=je.onSearch,Nt=je.defaultOpen,xt=je.autoFocus,rn=je.labelInValue,Qt=je.value,hn=je.inputValue,zn=je.optionLabelProp,Qn=isMultiple(we),On=Zt!==void 0?Zt:Qn||we==="combobox",Vt=ut||convertChildrenToData(it);if(warning(we!=="tags"||Vt.every(function(wt){return!wt.disabled}),"Please avoid setting option to disabled in tags mode since user can always type text as tag."),we==="tags"||we==="combobox"){var qe=Vt.some(function(wt){return wt.options?wt.options.some(function(mt){return typeof("value"in mt?mt.value:mt.key)=="number"}):typeof("value"in wt?wt.value:wt.key)=="number"});warning(!qe,"`value` of Option should not use number type when `mode` is `tags` or `combobox`.")}if(warning(we!=="combobox"||!zn,"`combobox` mode not support `optionLabelProp`. Please set `value` on Option directly."),warning(we==="combobox"||!yt,"`backfill` only works with `combobox` mode."),warning(we==="combobox"||!Pt,"`getInputElement` only work with `combobox` mode."),noteOnce(we!=="combobox"||!Pt||!Mt||!Kt,"Customize `getInputElement` should customize clear and placeholder logic instead of configuring `allowClear` and `placeholder`."),Yt&&!On&&we!=="combobox"&&we!=="tags"&&warning(!1,"`onSearch` should work with `showSearch` instead of use alone."),noteOnce(!Nt||xt,"`defaultOpen` makes Select open without focus which means it will not close by click outside. You can set `autoFocus` if needed."),Qt!=null){var tt=toArray(Qt);warning(!rn||tt.every(function(wt){return _typeof(wt)==="object"&&("key"in wt||"value"in wt)}),"`value` should in shape of `{ value: string | number, label?: ReactNode }` when you set `labelInValue` to `true`"),warning(!Qn||Array.isArray(Qt),"`value` should be array when `mode` is `multiple` or `tags`")}if(it){var ht=null;toNodeArray(it).some(function(wt){if(!React.isValidElement(wt)||!wt.type)return!1;var mt=wt,It=mt.type;if(It.isSelectOption)return!1;if(It.isSelectOptGroup){var Tt=toNodeArray(wt.props.children).every(function(Wt){return!React.isValidElement(Wt)||!wt.type||Wt.type.isSelectOption?!0:(ht=Wt.type,!1)});return!Tt}return ht=It,!0}),ht&&warning(!1,"`children` should be `Select.Option` or `Select.OptGroup` instead of `".concat(ht.displayName||ht.name||ht,"`.")),warning(hn===void 0,"`inputValue` is deprecated, please use `searchValue` instead.")}}function jt(je,we){if(je){var ut=function it(yt){for(var Mt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,Kt=0;Kt<yt.length;Kt++){var Pt=yt[Kt];if(Pt[we==null?void 0:we.value]===null)return warning(!1,"`value` in Select options should not be `null`."),!0;if(!Mt&&Array.isArray(Pt[we==null?void 0:we.options])&&it(Pt[we==null?void 0:we.options],!0))break}};ut(je)}}var ln=null,bt=["id","mode","prefixCls","backfill","fieldNames","inputValue","searchValue","onSearch","autoClearSearchValue","onSelect","onDeselect","dropdownMatchSelectWidth","filterOption","filterSort","optionFilterProp","optionLabelProp","options","children","defaultActiveFirstOption","menuItemSelectedIcon","virtual","direction","listHeight","listItemHeight","value","defaultValue","labelInValue","onChange"],Lt=["inputValue"];function ot(je){return!je||(0,Te.Z)(je)!=="object"}var ft=L.forwardRef(function(je,we){var ut=je.id,it=je.mode,yt=je.prefixCls,Mt=yt===void 0?"rc-select":yt,Kt=je.backfill,Pt=je.fieldNames,Zt=je.inputValue,Yt=je.searchValue,Nt=je.onSearch,xt=je.autoClearSearchValue,rn=xt===void 0?!0:xt,Qt=je.onSelect,hn=je.onDeselect,zn=je.dropdownMatchSelectWidth,Qn=zn===void 0?!0:zn,On=je.filterOption,Vt=je.filterSort,qe=je.optionFilterProp,tt=je.optionLabelProp,ht=je.options,wt=je.children,mt=je.defaultActiveFirstOption,It=je.menuItemSelectedIcon,Tt=je.virtual,Wt=je.direction,mn=je.listHeight,cn=mn===void 0?200:mn,Pn=je.listItemHeight,kn=Pn===void 0?20:Pn,Un=je.value,dn=je.defaultValue,Jt=je.labelInValue,Mn=je.onChange,wn=(0,le.Z)(je,bt),rr=(0,Ye.ZP)(ut),Yn=de(it),Wn=!!(!ht&&wt),Jn=L.useMemo(function(){return On===void 0&&it==="combobox"?!1:On},[On,it]),Bn=L.useMemo(function(){return ce(Pt,Wn)},[JSON.stringify(Pt),Wn]),qn=(0,be.Z)("",{value:Yt!==void 0?Yt:Zt,postState:function($n){return $n||""}}),wr=(0,ve.Z)(qn,2),An=wr[0],sn=wr[1],Ge=Rt(ht,wt,Bn,qe,tt),pn=Ge.valueOptions,Ln=Ge.labelOptions,Xn=Ge.options,Gn=L.useCallback(function(Rn){var $n=Z(Rn);return $n.map(function(Cn){var En,er,dr,Hr,Dr;if(ot(Cn))En=Cn;else{var zr;dr=Cn.key,er=Cn.label,En=(zr=Cn.value)!==null&&zr!==void 0?zr:dr}var Wr=pn.get(En);if(Wr){var bi;if(er===void 0&&(er=Wr==null?void 0:Wr[tt||Bn.label]),dr===void 0&&(dr=(bi=Wr==null?void 0:Wr.key)!==null&&bi!==void 0?bi:En),Hr=Wr==null?void 0:Wr.disabled,Dr=Wr==null?void 0:Wr.title,0)var xi}return{label:er,value:En,key:dr,disabled:Hr,title:Dr}})},[Bn,tt,pn]),ir=(0,be.Z)(dn,{value:Un}),lr=(0,ve.Z)(ir,2),Nn=lr[0],ur=lr[1],_n=L.useMemo(function(){var Rn,$n=Gn(Nn);return it==="combobox"&&me((Rn=$n[0])===null||Rn===void 0?void 0:Rn.value)?[]:$n},[Nn,Gn,it]),tn=$e(_n,pn),Dn=(0,ve.Z)(tn,2),Zn=Dn[0],sr=Dn[1],Pr=L.useMemo(function(){if(!it&&Zn.length===1){var Rn=Zn[0];if(Rn.value===null&&(Rn.label===null||Rn.label===void 0))return[]}return Zn.map(function($n){var Cn;return(0,Re.Z)((0,Re.Z)({},$n),{},{label:(Cn=$n.label)!==null&&Cn!==void 0?Cn:$n.value})})},[it,Zn]),gn=L.useMemo(function(){return new Set(Zn.map(function(Rn){return Rn.value}))},[Zn]);L.useEffect(function(){if(it==="combobox"){var Rn,$n=(Rn=Zn[0])===null||Rn===void 0?void 0:Rn.value;sn(X($n)?String($n):"")}},[Zn]);var cr=Ct(function(Rn,$n){var Cn,En=$n!=null?$n:Rn;return Cn={},(0,ie.Z)(Cn,Bn.value,Rn),(0,ie.Z)(Cn,Bn.label,En),Cn}),ar=L.useMemo(function(){if(it!=="tags")return Xn;var Rn=(0,N.Z)(Xn),$n=function(En){return pn.has(En)};return(0,N.Z)(Zn).sort(function(Cn,En){return Cn.value<En.value?-1:1}).forEach(function(Cn){var En=Cn.value;$n(En)||Rn.push(cr(En,Cn.label))}),Rn},[cr,Xn,pn,Zn,it]),xr=Be(ar,Bn,An,Jn,qe),Mr=L.useMemo(function(){return it!=="tags"||!An||xr.some(function(Rn){return Rn[qe||"value"]===An})||xr.some(function(Rn){return Rn[Bn.value]===An})?xr:[cr(An)].concat((0,N.Z)(xr))},[cr,qe,it,xr,An,Bn]),Fr=L.useMemo(function(){return Vt?(0,N.Z)(Mr).sort(function(Rn,$n){return Vt(Rn,$n)}):Mr},[Mr,Vt]),vr=L.useMemo(function(){return xe(Fr,{fieldNames:Bn,childrenAsData:Wn})},[Fr,Bn,Wn]),Cr=function($n){var Cn=Gn($n);if(ur(Cn),Mn&&(Cn.length!==Zn.length||Cn.some(function(dr,Hr){var Dr;return((Dr=Zn[Hr])===null||Dr===void 0?void 0:Dr.value)!==(dr==null?void 0:dr.value)}))){var En=Jt?Cn:Cn.map(function(dr){return dr.value}),er=Cn.map(function(dr){return O(sr(dr.value))});Mn(Yn?En:En[0],Yn?er:er[0])}},Er=L.useState(null),qr=(0,ve.Z)(Er,2),Yr=qr[0],ii=qr[1],kr=L.useState(0),ei=(0,ve.Z)(kr,2),nr=ei[0],ci=ei[1],yi=mt!==void 0?mt:it!=="combobox",hi=L.useCallback(function(Rn,$n){var Cn=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},En=Cn.source,er=En===void 0?"keyboard":En;ci($n),Kt&&it==="combobox"&&Rn!==null&&er==="keyboard"&&ii(String(Rn))},[Kt,it]),Tr=function($n,Cn,En){var er=function(){var mi,In=sr($n);return[Jt?{label:In==null?void 0:In[Bn.label],value:$n,key:(mi=In==null?void 0:In.key)!==null&&mi!==void 0?mi:$n}:$n,O(In)]};if(Cn&&Qt){var dr=er(),Hr=(0,ve.Z)(dr,2),Dr=Hr[0],zr=Hr[1];Qt(Dr,zr)}else if(!Cn&&hn&&En!=="clear"){var Wr=er(),bi=(0,ve.Z)(Wr,2),xi=bi[0],Hi=bi[1];hn(xi,Hi)}},fi=Ct(function(Rn,$n){var Cn,En=Yn?$n.selected:!0;En?Cn=Yn?[].concat((0,N.Z)(Zn),[Rn]):[Rn]:Cn=Zn.filter(function(er){return er.value!==Rn}),Cr(Cn),Tr(Rn,En),it==="combobox"?ii(""):(!de||rn)&&(sn(""),ii(""))}),Ai=function($n,Cn){Cr($n);var En=Cn.type,er=Cn.values;(En==="remove"||En==="clear")&&er.forEach(function(dr){Tr(dr.value,!1,En)})},on=function($n,Cn){if(sn($n),ii(null),Cn.source==="submit"){var En=($n||"").trim();if(En){var er=Array.from(new Set([].concat((0,N.Z)(gn),[En])));Cr(er),Tr(En,!0),sn("")}return}Cn.source!=="blur"&&(it==="combobox"&&Cr($n),Nt==null||Nt($n))},Qr=function($n){var Cn=$n;it!=="tags"&&(Cn=$n.map(function(er){var dr=Ln.get(er);return dr==null?void 0:dr.value}).filter(function(er){return er!==void 0}));var En=Array.from(new Set([].concat((0,N.Z)(gn),(0,N.Z)(Cn))));Cr(En),En.forEach(function(er){Tr(er,!0)})},oi=L.useMemo(function(){var Rn=Tt!==!1&&Qn!==!1;return(0,Re.Z)((0,Re.Z)({},Ge),{},{flattenOptions:vr,onActiveValue:hi,defaultActiveFirstOption:yi,onSelect:fi,menuItemSelectedIcon:It,rawValues:gn,fieldNames:Bn,virtual:Rn,direction:Wt,listHeight:cn,listItemHeight:kn,childrenAsData:Wn})},[Ge,vr,hi,yi,fi,It,gn,Bn,Tt,Qn,cn,kn,Wn]);return L.createElement(We.Provider,{value:oi},L.createElement(Ie,(0,T.Z)({},wn,{id:rr,prefixCls:Mt,ref:we,omitDomProps:Lt,mode:it,displayValues:Pr,onDisplayValuesChange:Ai,direction:Wt,searchValue:An,onSearch:on,autoClearSearchValue:rn,onSearchSplit:Qr,dropdownMatchSelectWidth:Qn,OptionList:kt,emptyOptions:!vr.length,activeValue:Yr,activeDescendantId:"".concat(rr,"_list_").concat(nr)})))}),Gt=ft;Gt.Option=Y,Gt.OptGroup=A;var yn=Gt,nn=yn},9296:function(Ht,et,_){"use strict";_.r(et),_.d(et,{ResizableTextArea:function(){return Se},default:function(){return me}});var T=_(96663),N=_(44127),ie=_(90493),Re=_(20135),ve=_(72071),le=_(6620),Te=_(19127),be=_(92310),o=_.n(be),L=_(93681),$=_(5643),v=_(18929),c=_(59301),S=_(29301),y=_(34280),q=_(16089),ae=`
min-height:0 !important;
max-height:none !important;
height:0 !important;
visibility:hidden !important;
overflow:hidden !important;
position:absolute !important;
z-index:-1000 !important;
top:0 !important;
right:0 !important;
pointer-events: none !important;
`,P=["letter-spacing","line-height","padding-top","padding-bottom","font-family","font-weight","font-size","font-variant","text-rendering","text-transform","width","text-indent","padding-left","padding-right","border-width","box-sizing","word-break","white-space"],z={},W;function re(ee){var g=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,w=ee.getAttribute("id")||ee.getAttribute("data-reactid")||ee.getAttribute("name");if(g&&z[w])return z[w];var Q=window.getComputedStyle(ee),J=Q.getPropertyValue("box-sizing")||Q.getPropertyValue("-moz-box-sizing")||Q.getPropertyValue("-webkit-box-sizing"),Pe=parseFloat(Q.getPropertyValue("padding-bottom"))+parseFloat(Q.getPropertyValue("padding-top")),Ue=parseFloat(Q.getPropertyValue("border-bottom-width"))+parseFloat(Q.getPropertyValue("border-top-width")),Xe=P.map(function(lt){return"".concat(lt,":").concat(Q.getPropertyValue(lt))}).join(";"),Ze={sizingStyle:Xe,paddingSize:Pe,borderSize:Ue,boxSizing:J};return g&&w&&(z[w]=Ze),Ze}function b(ee){var g=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,w=arguments.length>2&&arguments[2]!==void 0?arguments[2]:null,Q=arguments.length>3&&arguments[3]!==void 0?arguments[3]:null;W||(W=document.createElement("textarea"),W.setAttribute("tab-index","-1"),W.setAttribute("aria-hidden","true"),document.body.appendChild(W)),ee.getAttribute("wrap")?W.setAttribute("wrap",ee.getAttribute("wrap")):W.removeAttribute("wrap");var J=re(ee,g),Pe=J.paddingSize,Ue=J.borderSize,Xe=J.boxSizing,Ze=J.sizingStyle;W.setAttribute("style","".concat(Ze,";").concat(ae)),W.value=ee.value||ee.placeholder||"";var lt=void 0,at=void 0,ct,Ot=W.scrollHeight;if(Xe==="border-box"?Ot+=Ue:Xe==="content-box"&&(Ot-=Pe),w!==null||Q!==null){W.value=" ";var Ut=W.scrollHeight-Pe;w!==null&&(lt=Ut*w,Xe==="border-box"&&(lt=lt+Pe+Ue),Ot=Math.max(lt,Ot)),Q!==null&&(at=Ut*Q,Xe==="border-box"&&(at=at+Pe+Ue),ct=Ot>at?"":"hidden",Ot=Math.min(at,Ot))}var un={height:Ot,overflowY:ct,resize:"none"};return lt&&(un.minHeight=lt),at&&(un.maxHeight=at),un}var D=["prefixCls","onPressEnter","defaultValue","value","autoSize","onResize","className","style","disabled","onChange","onInternalAutoSize"],F=0,U=1,fe=2,ye=c.forwardRef(function(ee,g){var w=ee,Q=w.prefixCls,J=w.onPressEnter,Pe=w.defaultValue,Ue=w.value,Xe=w.autoSize,Ze=w.onResize,lt=w.className,at=w.style,ct=w.disabled,Ot=w.onChange,Ut=w.onInternalAutoSize,un=(0,le.Z)(w,D),Ft=(0,v.Z)(Pe,{value:Ue,postState:function(A){return A!=null?A:""}}),nt=(0,ve.Z)(Ft,2),Et=nt[0],oe=nt[1],_e=function(A){oe(A.target.value),Ot==null||Ot(A)},M=c.useRef();c.useImperativeHandle(g,function(){return{textArea:M.current}});var ce=c.useMemo(function(){return Xe&&(0,Re.Z)(Xe)==="object"?[Xe.minRows,Xe.maxRows]:[]},[Xe]),xe=(0,ve.Z)(ce,2),O=xe[0],C=xe[1],k=!!Xe,he=function(){try{if(document.activeElement===M.current){var A=M.current,rt=A.selectionStart,Y=A.selectionEnd,Ce=A.scrollTop;M.current.setSelectionRange(rt,Y),M.current.scrollTop=Ce}}catch(vn){}},de=c.useState(fe),K=(0,ve.Z)(de,2),Ie=K[0],$e=K[1],Me=c.useState(),Be=(0,ve.Z)(Me,2),Ye=Be[0],Qe=Be[1],Je=function(){$e(F)};(0,y.Z)(function(){k&&Je()},[Ue,O,C,k]),(0,y.Z)(function(){if(Ie===F)$e(U);else if(Ie===U){var x=b(M.current,!1,O,C);$e(fe),Qe(x)}else he()},[Ie]);var dt=c.useRef(),At=function(){q.Z.cancel(dt.current)},gt=function(A){Ie===fe&&(Ze==null||Ze(A),Xe&&(At(),dt.current=(0,q.Z)(function(){Je()})))};c.useEffect(function(){return At},[]);var Rt=k?Ye:null,Ct=(0,N.Z)((0,N.Z)({},at),Rt);return(Ie===F||Ie===U)&&(Ct.overflowY="hidden",Ct.overflowX="hidden"),c.createElement(S.Z,{onResize:gt,disabled:!(Xe||Ze)},c.createElement("textarea",(0,T.Z)({},un,{ref:M,style:Ct,className:o()(Q,lt,(0,ie.Z)({},"".concat(Q,"-disabled"),ct)),disabled:ct,value:Et,onChange:_e})))}),Se=ye,Ne=["defaultValue","value","onFocus","onBlur","onChange","allowClear","maxLength","onCompositionStart","onCompositionEnd","suffix","prefixCls","classes","showCount","className","style","disabled","hidden","classNames","styles","onResize"];function Z(ee,g){return(0,Te.Z)(ee||"").slice(0,g).join("")}function B(ee,g,w,Q){var J=w;return ee?J=Z(w,Q):(0,Te.Z)(g||"").length<w.length&&(0,Te.Z)(w||"").length>Q&&(J=g),J}var ne=c.forwardRef(function(ee,g){var w,Q=ee.defaultValue,J=ee.value,Pe=ee.onFocus,Ue=ee.onBlur,Xe=ee.onChange,Ze=ee.allowClear,lt=ee.maxLength,at=ee.onCompositionStart,ct=ee.onCompositionEnd,Ot=ee.suffix,Ut=ee.prefixCls,un=Ut===void 0?"rc-textarea":Ut,Ft=ee.classes,nt=ee.showCount,Et=ee.className,oe=ee.style,_e=ee.disabled,M=ee.hidden,ce=ee.classNames,xe=ee.styles,O=ee.onResize,C=(0,le.Z)(ee,Ne),k=(0,v.Z)(Q,{value:J,defaultValue:Q}),he=(0,ve.Z)(k,2),de=he[0],K=he[1],Ie=(0,c.useRef)(null),$e=c.useState(!1),Me=(0,ve.Z)($e,2),Be=Me[0],Ye=Me[1],Qe=c.useState(!1),Je=(0,ve.Z)(Qe,2),dt=Je[0],At=Je[1],gt=c.useRef(),Rt=c.useRef(0),Ct=c.useState(null),x=(0,ve.Z)(Ct,2),A=x[0],rt=x[1],Y=function(){var ot;(ot=Ie.current)===null||ot===void 0||ot.textArea.focus()};(0,c.useImperativeHandle)(g,function(){return{resizableTextArea:Ie.current,focus:Y,blur:function(){var ot;(ot=Ie.current)===null||ot===void 0||ot.textArea.blur()}}}),(0,c.useEffect)(function(){Ye(function(Lt){return!_e&&Lt})},[_e]);var Ce=Number(lt)>0,vn=function(ot){At(!0),gt.current=de,Rt.current=ot.currentTarget.selectionStart,at==null||at(ot)},ke=function(ot){At(!1);var ft=ot.currentTarget.value;if(Ce){var Gt,yn=Rt.current>=lt+1||Rt.current===((Gt=gt.current)===null||Gt===void 0?void 0:Gt.length);ft=B(yn,gt.current,ft,lt)}ft!==de&&(K(ft),(0,$.rJ)(ot.currentTarget,ot,Xe,ft)),ct==null||ct(ot)},He=function(ot){var ft=ot.target.value;if(!dt&&Ce){var Gt=ot.target.selectionStart>=lt+1||ot.target.selectionStart===ft.length||!ot.target.selectionStart;ft=B(Gt,de,ft,lt)}K(ft),(0,$.rJ)(ot.currentTarget,ot,Xe,ft)},We=function(ot){var ft=C.onPressEnter,Gt=C.onKeyDown;ot.key==="Enter"&&ft&&ft(ot),Gt==null||Gt(ot)},te=function(ot){Ye(!0),Pe==null||Pe(ot)},pe=function(ot){Ye(!1),Ue==null||Ue(ot)},De=function(ot){var ft;K(""),Y(),(0,$.rJ)((ft=Ie.current)===null||ft===void 0?void 0:ft.textArea,ot,Xe)},ze=(0,$.D7)(de);!dt&&Ce&&J==null&&(ze=Z(ze,lt));var V=Ot,kt;if(nt){var Le=(0,Te.Z)(ze).length;(0,Re.Z)(nt)==="object"?kt=nt.formatter({value:ze,count:Le,maxLength:lt}):kt="".concat(Le).concat(Ce?" / ".concat(lt):""),V=c.createElement(c.Fragment,null,V,c.createElement("span",{className:o()("".concat(un,"-data-count"),ce==null?void 0:ce.count),style:xe==null?void 0:xe.count},kt))}var jt=function(ot){var ft;O==null||O(ot),(ft=Ie.current)!==null&&ft!==void 0&&ft.textArea.style.height&&rt(!0)},ln=!C.autoSize&&!nt&&!Ze,bt=c.createElement(L.BaseInput,{value:ze,allowClear:Ze,handleReset:De,suffix:V,prefixCls:un,classes:{affixWrapper:o()(Ft==null?void 0:Ft.affixWrapper,(w={},(0,ie.Z)(w,"".concat(un,"-show-count"),nt),(0,ie.Z)(w,"".concat(un,"-textarea-allow-clear"),Ze),w))},disabled:_e,focused:Be,className:Et,style:(0,N.Z)((0,N.Z)({},oe),A&&!ln?{height:"auto"}:{}),dataAttrs:{affixWrapper:{"data-count":typeof kt=="string"?kt:void 0}},hidden:M,inputElement:c.createElement(Se,(0,T.Z)({},C,{onKeyDown:We,onChange:He,onFocus:te,onBlur:pe,onCompositionStart:vn,onCompositionEnd:ke,className:ce==null?void 0:ce.textarea,style:(0,N.Z)((0,N.Z)({},xe==null?void 0:xe.textarea),{},{resize:oe==null?void 0:oe.resize}),disabled:_e,prefixCls:un,onResize:jt,ref:Ie}))});return bt}),X=ne,me=X},55477:function(Ht,et,_){"use strict";_.d(et,{G:function(){return c},Z:function(){return ae}});var T=_(96663),N=_(44127),ie=_(6620),Re=_(35593),ve=_(59301),le={shiftX:64,adjustY:1},Te={adjustX:1,shiftY:!0},be=[0,0],o={left:{points:["cr","cl"],overflow:Te,offset:[-4,0],targetOffset:be},right:{points:["cl","cr"],overflow:Te,offset:[4,0],targetOffset:be},top:{points:["bc","tc"],overflow:le,offset:[0,-4],targetOffset:be},bottom:{points:["tc","bc"],overflow:le,offset:[0,4],targetOffset:be},topLeft:{points:["bl","tl"],overflow:le,offset:[0,-4],targetOffset:be},leftTop:{points:["tr","tl"],overflow:Te,offset:[-4,0],targetOffset:be},topRight:{points:["br","tr"],overflow:le,offset:[0,-4],targetOffset:be},rightTop:{points:["tl","tr"],overflow:Te,offset:[4,0],targetOffset:be},bottomRight:{points:["tr","br"],overflow:le,offset:[0,4],targetOffset:be},rightBottom:{points:["bl","br"],overflow:Te,offset:[4,0],targetOffset:be},bottomLeft:{points:["tl","bl"],overflow:le,offset:[0,4],targetOffset:be},leftBottom:{points:["br","bl"],overflow:Te,offset:[-4,0],targetOffset:be}},L=null,$=_(92310),v=_.n($);function c(P){var z=P.children,W=P.prefixCls,re=P.id,b=P.overlayInnerStyle,D=P.className,F=P.style;return ve.createElement("div",{className:v()("".concat(W,"-content"),D),style:F},ve.createElement("div",{className:"".concat(W,"-inner"),id:re,role:"tooltip",style:b},typeof z=="function"?z():z))}var S=["overlayClassName","trigger","mouseEnterDelay","mouseLeaveDelay","overlayStyle","prefixCls","children","onVisibleChange","afterVisibleChange","transitionName","animation","motion","placement","align","destroyTooltipOnHide","defaultVisible","getTooltipContainer","overlayInnerStyle","arrowContent","overlay","id","showArrow"],y=function(z,W){var re=z.overlayClassName,b=z.trigger,D=b===void 0?["hover"]:b,F=z.mouseEnterDelay,U=F===void 0?0:F,fe=z.mouseLeaveDelay,ye=fe===void 0?.1:fe,Se=z.overlayStyle,Ne=z.prefixCls,Z=Ne===void 0?"rc-tooltip":Ne,B=z.children,ne=z.onVisibleChange,X=z.afterVisibleChange,me=z.transitionName,ee=z.animation,g=z.motion,w=z.placement,Q=w===void 0?"right":w,J=z.align,Pe=J===void 0?{}:J,Ue=z.destroyTooltipOnHide,Xe=Ue===void 0?!1:Ue,Ze=z.defaultVisible,lt=z.getTooltipContainer,at=z.overlayInnerStyle,ct=z.arrowContent,Ot=z.overlay,Ut=z.id,un=z.showArrow,Ft=un===void 0?!0:un,nt=(0,ie.Z)(z,S),Et=(0,ve.useRef)(null);(0,ve.useImperativeHandle)(W,function(){return Et.current});var oe=(0,N.Z)({},nt);"visible"in z&&(oe.popupVisible=z.visible);var _e=function(){return ve.createElement(c,{key:"content",prefixCls:Z,id:Ut,overlayInnerStyle:at},Ot)};return ve.createElement(Re.Z,(0,T.Z)({popupClassName:re,prefixCls:Z,popup:_e,action:D,builtinPlacements:o,popupPlacement:Q,ref:Et,popupAlign:Pe,getPopupContainer:lt,onPopupVisibleChange:ne,afterPopupVisibleChange:X,popupTransitionName:me,popupAnimation:ee,popupMotion:g,defaultPopupVisible:Ze,autoDestroy:Xe,mouseLeaveDelay:ye,popupStyle:Se,mouseEnterDelay:U,arrow:Ft},oe),B)},q=(0,ve.forwardRef)(y),ae=q},49658:function(Ht,et){"use strict";et.Z=function(){if(typeof navigator=="undefined"||typeof window=="undefined")return!1;var _=navigator.userAgent||navigator.vendor||window.opera;return/(android|bb\d+|meego).+mobile|avantgo|bada\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|iris|kindle|lge |maemo|midp|mmp|mobile.+firefox|netfront|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\/|plucker|pocket|psp|series(4|6)0|symbian|treo|up\.(browser|link)|vodafone|wap|windows ce|xda|xiino|android|ipad|playbook|silk/i.test(_)||/1207|6310|6590|3gso|4thp|50[1-6]i|770s|802s|a wa|abac|ac(er|oo|s-)|ai(ko|rn)|al(av|ca|co)|amoi|an(ex|ny|yw)|aptu|ar(ch|go)|as(te|us)|attw|au(di|-m|r |s )|avan|be(ck|ll|nq)|bi(lb|rd)|bl(ac|az)|br(e|v)w|bumb|bw-(n|u)|c55\/|capi|ccwa|cdm-|cell|chtm|cldc|cmd-|co(mp|nd)|craw|da(it|ll|ng)|dbte|dc-s|devi|dica|dmob|do(c|p)o|ds(12|-d)|el(49|ai)|em(l2|ul)|er(ic|k0)|esl8|ez([4-7]0|os|wa|ze)|fetc|fly(-|_)|g1 u|g560|gene|gf-5|g-mo|go(\.w|od)|gr(ad|un)|haie|hcit|hd-(m|p|t)|hei-|hi(pt|ta)|hp( i|ip)|hs-c|ht(c(-| |_|a|g|p|s|t)|tp)|hu(aw|tc)|i-(20|go|ma)|i230|iac( |-|\/)|ibro|idea|ig01|ikom|im1k|inno|ipaq|iris|ja(t|v)a|jbro|jemu|jigs|kddi|keji|kgt( |\/)|klon|kpt |kwc-|kyo(c|k)|le(no|xi)|lg( g|\/(k|l|u)|50|54|-[a-w])|libw|lynx|m1-w|m3ga|m50\/|ma(te|ui|xo)|mc(01|21|ca)|m-cr|me(rc|ri)|mi(o8|oa|ts)|mmef|mo(01|02|bi|de|do|t(-| |o|v)|zz)|mt(50|p1|v )|mwbp|mywa|n10[0-2]|n20[2-3]|n30(0|2)|n50(0|2|5)|n7(0(0|1)|10)|ne((c|m)-|on|tf|wf|wg|wt)|nok(6|i)|nzph|o2im|op(ti|wv)|oran|owg1|p800|pan(a|d|t)|pdxg|pg(13|-([1-8]|c))|phil|pire|pl(ay|uc)|pn-2|po(ck|rt|se)|prox|psio|pt-g|qa-a|qc(07|12|21|32|60|-[2-7]|i-)|qtek|r380|r600|raks|rim9|ro(ve|zo)|s55\/|sa(ge|ma|mm|ms|ny|va)|sc(01|h-|oo|p-)|sdk\/|se(c(-|0|1)|47|mc|nd|ri)|sgh-|shar|sie(-|m)|sk-0|sl(45|id)|sm(al|ar|b3|it|t5)|so(ft|ny)|sp(01|h-|v-|v )|sy(01|mb)|t2(18|50)|t6(00|10|18)|ta(gt|lk)|tcl-|tdg-|tel(i|m)|tim-|t-mo|to(pl|sh)|ts(70|m-|m3|m5)|tx-9|up(\.b|g1|si)|utst|v400|v750|veri|vi(rg|te)|vk(40|5[0-3]|-v)|vm40|voda|vulc|vx(52|53|60|61|70|80|81|83|85|98)|w3c(-| )|webc|whit|wi(g |nc|nw)|wmlb|wonu|x700|yas-|your|zeto|zte-/i.test(_==null?void 0:_.substr(0,4))}},24916:function(Ht,et,_){"use strict";_.d(et,{Z:function(){return Ft}});var T=_(96663),N=_(20135),ie=_(44127),Re=_(90493),ve=_(72071),le=_(6620),Te=_(92310),be=_.n(Te),o=_(29301),L=_(70425),$=_(34280),v=_(59301),c=_(4676),S=v.forwardRef(function(nt,Et){var oe=nt.height,_e=nt.offsetY,M=nt.offsetX,ce=nt.children,xe=nt.prefixCls,O=nt.onInnerResize,C=nt.innerProps,k=nt.rtl,he=nt.extra,de={},K={display:"flex",flexDirection:"column"};return _e!==void 0&&(de={height:oe,position:"relative",overflow:"hidden"},K=(0,ie.Z)((0,ie.Z)({},K),{},(0,Re.Z)((0,Re.Z)((0,Re.Z)((0,Re.Z)((0,Re.Z)({transform:"translateY(".concat(_e,"px)")},k?"marginRight":"marginLeft",-M),"position","absolute"),"left",0),"right",0),"top",0))),v.createElement("div",{style:de},v.createElement(o.Z,{onResize:function($e){var Me=$e.offsetHeight;Me&&O&&O()}},v.createElement("div",(0,T.Z)({style:K,className:be()((0,Re.Z)({},"".concat(xe,"-holder-inner"),xe)),ref:Et},C),ce,he)))});S.displayName="Filler";var y=S;function q(nt){var Et=nt.children,oe=nt.setRef,_e=v.useCallback(function(M){oe(M)},[]);return v.cloneElement(Et,{ref:_e})}function ae(nt,Et,oe,_e,M,ce,xe,O){var C=O.getKey;return nt.slice(Et,oe+1).map(function(k,he){var de=Et+he,K=xe(k,de,{style:{width:_e},offsetX:M}),Ie=C(k);return v.createElement(q,{key:Ie,setRef:function(Me){return ce(k,Me)}},K)})}function P(nt,Et,oe,_e){var M=oe-nt,ce=Et-oe,xe=Math.min(M,ce)*2;if(_e<=xe){var O=Math.floor(_e/2);return _e%2?oe+O+1:oe-O}return M>ce?oe-(_e-ce):oe+(_e-M)}function z(nt,Et,oe){var _e=nt.length,M=Et.length,ce,xe;if(_e===0&&M===0)return null;_e<M?(ce=nt,xe=Et):(ce=Et,xe=nt);var O={__EMPTY_ITEM__:!0};function C($e){return $e!==void 0?oe($e):O}for(var k=null,he=Math.abs(_e-M)!==1,de=0;de<xe.length;de+=1){var K=C(ce[de]),Ie=C(xe[de]);if(K!==Ie){k=de,he=he||K!==C(xe[de+1]);break}}return k===null?null:{index:k,multiple:he}}function W(nt,Et,oe){var _e=v.useState(nt),M=(0,ve.Z)(_e,2),ce=M[0],xe=M[1],O=v.useState(null),C=(0,ve.Z)(O,2),k=C[0],he=C[1];return v.useEffect(function(){var de=z(ce||[],nt||[],Et);(de==null?void 0:de.index)!==void 0&&(oe==null||oe(de.index),he(nt[de.index])),xe(nt)},[nt]),[k]}var re=_(16089),b=(typeof navigator=="undefined"?"undefined":(0,N.Z)(navigator))==="object"&&/Firefox/i.test(navigator.userAgent),D=b,F=function(nt,Et,oe,_e){var M=(0,v.useRef)(!1),ce=(0,v.useRef)(null);function xe(){clearTimeout(ce.current),M.current=!0,ce.current=setTimeout(function(){M.current=!1},50)}var O=(0,v.useRef)({top:nt,bottom:Et,left:oe,right:_e});return O.current.top=nt,O.current.bottom=Et,O.current.left=oe,O.current.right=_e,function(C,k){var he=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,de=C?k<0&&O.current.left||k>0&&O.current.right:k<0&&O.current.top||k>0&&O.current.bottom;return he&&de?(clearTimeout(ce.current),M.current=!1):(!de||M.current)&&xe(),!M.current&&de}};function U(nt,Et,oe,_e,M,ce,xe){var O=(0,v.useRef)(0),C=(0,v.useRef)(null),k=(0,v.useRef)(null),he=(0,v.useRef)(!1),de=F(Et,oe,_e,M);function K(Qe,Je){if(re.Z.cancel(C.current),!de(!1,Je)){var dt=Qe;if(!dt._virtualHandled)dt._virtualHandled=!0;else return;O.current+=Je,k.current=Je,D||dt.preventDefault(),C.current=(0,re.Z)(function(){var At=he.current?10:1;xe(O.current*At,!1),O.current=0})}}function Ie(Qe,Je){xe(Je,!0),D||Qe.preventDefault()}var $e=(0,v.useRef)(null),Me=(0,v.useRef)(null);function Be(Qe){if(nt){re.Z.cancel(Me.current),Me.current=(0,re.Z)(function(){$e.current=null},2);var Je=Qe.deltaX,dt=Qe.deltaY,At=Qe.shiftKey,gt=Je,Rt=dt;($e.current==="sx"||!$e.current&&At&&dt&&!Je)&&(gt=dt,Rt=0,$e.current="sx");var Ct=Math.abs(gt),x=Math.abs(Rt);$e.current===null&&($e.current=ce&&Ct>x?"x":"y"),$e.current==="y"?K(Qe,Rt):Ie(Qe,gt)}}function Ye(Qe){nt&&(he.current=Qe.detail===k.current)}return[Be,Ye]}function fe(nt,Et,oe,_e){var M=v.useMemo(function(){return[new Map,[]]},[nt,oe.id,_e]),ce=(0,ve.Z)(M,2),xe=ce[0],O=ce[1],C=function(he){var de=arguments.length>1&&arguments[1]!==void 0?arguments[1]:he,K=xe.get(he),Ie=xe.get(de);if(K===void 0||Ie===void 0)for(var $e=nt.length,Me=O.length;Me<$e;Me+=1){var Be,Ye=nt[Me],Qe=Et(Ye);xe.set(Qe,Me);var Je=(Be=oe.get(Qe))!==null&&Be!==void 0?Be:_e;if(O[Me]=(O[Me-1]||0)+Je,Qe===he&&(K=Me),Qe===de&&(Ie=Me),K!==void 0&&Ie!==void 0)break}return{top:O[K-1]||0,bottom:O[Ie]}};return C}var ye=_(52884),Se=_(95727),Ne=function(){function nt(){(0,ye.Z)(this,nt),(0,Re.Z)(this,"maps",void 0),(0,Re.Z)(this,"id",0),(0,Re.Z)(this,"diffKeys",new Set),this.maps=Object.create(null)}return(0,Se.Z)(nt,[{key:"set",value:function(oe,_e){this.maps[oe]=_e,this.id+=1,this.diffKeys.add(oe)}},{key:"get",value:function(oe){return this.maps[oe]}},{key:"resetRecord",value:function(){this.diffKeys.clear()}},{key:"getRecord",value:function(){return this.diffKeys}}]),nt}(),Z=Ne;function B(nt){var Et=parseFloat(nt);return isNaN(Et)?0:Et}function ne(nt,Et,oe){var _e=v.useState(0),M=(0,ve.Z)(_e,2),ce=M[0],xe=M[1],O=(0,v.useRef)(new Map),C=(0,v.useRef)(new Z),k=(0,v.useRef)(0);function he(){k.current+=1}function de(){var Ie=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1;he();var $e=function(){var Ye=!1;O.current.forEach(function(Qe,Je){if(Qe&&Qe.offsetParent){var dt=Qe.offsetHeight,At=getComputedStyle(Qe),gt=At.marginTop,Rt=At.marginBottom,Ct=B(gt),x=B(Rt),A=dt+Ct+x;C.current.get(Je)!==A&&(C.current.set(Je,A),Ye=!0)}}),Ye&&xe(function(Qe){return Qe+1})};if(Ie)$e();else{k.current+=1;var Me=k.current;Promise.resolve().then(function(){Me===k.current&&$e()})}}function K(Ie,$e){var Me=nt(Ie),Be=O.current.get(Me);$e?(O.current.set(Me,$e),de()):O.current.delete(Me),!Be!=!$e&&($e?Et==null||Et(Ie):oe==null||oe(Ie))}return(0,v.useEffect)(function(){return he},[]),[K,de,C.current,ce]}var X=14/15;function me(nt,Et,oe){var _e=(0,v.useRef)(!1),M=(0,v.useRef)(0),ce=(0,v.useRef)(0),xe=(0,v.useRef)(null),O=(0,v.useRef)(null),C,k=function(Ie){if(_e.current){var $e=Math.ceil(Ie.touches[0].pageX),Me=Math.ceil(Ie.touches[0].pageY),Be=M.current-$e,Ye=ce.current-Me,Qe=Math.abs(Be)>Math.abs(Ye);Qe?M.current=$e:ce.current=Me;var Je=oe(Qe,Qe?Be:Ye,!1,Ie);Je&&Ie.preventDefault(),clearInterval(O.current),Je&&(O.current=setInterval(function(){Qe?Be*=X:Ye*=X;var dt=Math.floor(Qe?Be:Ye);(!oe(Qe,dt,!0)||Math.abs(dt)<=.1)&&clearInterval(O.current)},16))}},he=function(){_e.current=!1,C()},de=function(Ie){C(),Ie.touches.length===1&&!_e.current&&(_e.current=!0,M.current=Math.ceil(Ie.touches[0].pageX),ce.current=Math.ceil(Ie.touches[0].pageY),xe.current=Ie.target,xe.current.addEventListener("touchmove",k,{passive:!1}),xe.current.addEventListener("touchend",he,{passive:!0}))};C=function(){xe.current&&(xe.current.removeEventListener("touchmove",k),xe.current.removeEventListener("touchend",he))},(0,$.Z)(function(){return nt&&Et.current.addEventListener("touchstart",de,{passive:!0}),function(){var K;(K=Et.current)===null||K===void 0||K.removeEventListener("touchstart",de),C(),clearInterval(O.current)}},[nt])}function ee(nt){return Math.floor(Math.pow(nt,.5))}function g(nt,Et){var oe="touches"in nt?nt.touches[0]:nt;return oe[Et?"pageX":"pageY"]-window[Et?"scrollX":"scrollY"]}function w(nt,Et,oe){v.useEffect(function(){var _e=Et.current;if(nt&&_e){var M=!1,ce,xe,O=function(){re.Z.cancel(ce)},C=function K(){O(),ce=(0,re.Z)(function(){oe(xe),K()})},k=function(Ie){if(!Ie.target.draggable){var $e=Ie;$e._virtualHandled||($e._virtualHandled=!0,M=!0)}},he=function(){M=!1,O()},de=function(Ie){if(M){var $e=g(Ie,!1),Me=_e.getBoundingClientRect(),Be=Me.top,Ye=Me.bottom;if($e<=Be){var Qe=Be-$e;xe=-ee(Qe),C()}else if($e>=Ye){var Je=$e-Ye;xe=ee(Je),C()}else O()}};return _e.addEventListener("mousedown",k),_e.ownerDocument.addEventListener("mouseup",he),_e.ownerDocument.addEventListener("mousemove",de),function(){_e.removeEventListener("mousedown",k),_e.ownerDocument.removeEventListener("mouseup",he),_e.ownerDocument.removeEventListener("mousemove",de),O()}}},[nt])}var Q=10;function J(nt,Et,oe,_e,M,ce,xe,O){var C=v.useRef(),k=v.useState(null),he=(0,ve.Z)(k,2),de=he[0],K=he[1];return(0,$.Z)(function(){if(de&&de.times<Q){if(!nt.current){K(function(pe){return(0,ie.Z)({},pe)});return}ce();var Ie=de.targetAlign,$e=de.originAlign,Me=de.index,Be=de.offset,Ye=nt.current.clientHeight,Qe=!1,Je=Ie,dt=null;if(Ye){for(var At=Ie||$e,gt=0,Rt=0,Ct=0,x=Math.min(Et.length-1,Me),A=0;A<=x;A+=1){var rt=M(Et[A]);Rt=gt;var Y=oe.get(rt);Ct=Rt+(Y===void 0?_e:Y),gt=Ct}for(var Ce=At==="top"?Be:Ye-Be,vn=x;vn>=0;vn-=1){var ke=M(Et[vn]),He=oe.get(ke);if(He===void 0){Qe=!0;break}if(Ce-=He,Ce<=0)break}switch(At){case"top":dt=Rt-Be;break;case"bottom":dt=Ct-Ye+Be;break;default:{var We=nt.current.scrollTop,te=We+Ye;Rt<We?Je="top":Ct>te&&(Je="bottom")}}dt!==null&&xe(dt),dt!==de.lastTop&&(Qe=!0)}Qe&&K((0,ie.Z)((0,ie.Z)({},de),{},{times:de.times+1,targetAlign:Je,lastTop:dt}))}},[de,nt.current]),function(Ie){if(Ie==null){O();return}if(re.Z.cancel(C.current),typeof Ie=="number")xe(Ie);else if(Ie&&(0,N.Z)(Ie)==="object"){var $e,Me=Ie.align;"index"in Ie?$e=Ie.index:$e=Et.findIndex(function(Qe){return M(Qe)===Ie.key});var Be=Ie.offset,Ye=Be===void 0?0:Be;K({times:0,index:$e,offset:Ye,originAlign:Me})}}}var Pe=v.forwardRef(function(nt,Et){var oe=nt.prefixCls,_e=nt.rtl,M=nt.scrollOffset,ce=nt.scrollRange,xe=nt.onStartMove,O=nt.onStopMove,C=nt.onScroll,k=nt.horizontal,he=nt.spinSize,de=nt.containerSize,K=nt.style,Ie=nt.thumbStyle,$e=nt.showScrollBar,Me=v.useState(!1),Be=(0,ve.Z)(Me,2),Ye=Be[0],Qe=Be[1],Je=v.useState(null),dt=(0,ve.Z)(Je,2),At=dt[0],gt=dt[1],Rt=v.useState(null),Ct=(0,ve.Z)(Rt,2),x=Ct[0],A=Ct[1],rt=!_e,Y=v.useRef(),Ce=v.useRef(),vn=v.useState($e),ke=(0,ve.Z)(vn,2),He=ke[0],We=ke[1],te=v.useRef(),pe=function(){$e===!0||$e===!1||(clearTimeout(te.current),We(!0),te.current=setTimeout(function(){We(!1)},3e3))},De=ce-de||0,ze=de-he||0,V=v.useMemo(function(){if(M===0||De===0)return 0;var Gt=M/De;return Gt*ze},[M,De,ze]),kt=function(yn){yn.stopPropagation(),yn.preventDefault()},Le=v.useRef({top:V,dragging:Ye,pageY:At,startTop:x});Le.current={top:V,dragging:Ye,pageY:At,startTop:x};var jt=function(yn){Qe(!0),gt(g(yn,k)),A(Le.current.top),xe(),yn.stopPropagation(),yn.preventDefault()};v.useEffect(function(){var Gt=function(we){we.preventDefault()},yn=Y.current,nn=Ce.current;return yn.addEventListener("touchstart",Gt,{passive:!1}),nn.addEventListener("touchstart",jt,{passive:!1}),function(){yn.removeEventListener("touchstart",Gt),nn.removeEventListener("touchstart",jt)}},[]);var ln=v.useRef();ln.current=De;var bt=v.useRef();bt.current=ze,v.useEffect(function(){if(Ye){var Gt,yn=function(we){var ut=Le.current,it=ut.dragging,yt=ut.pageY,Mt=ut.startTop;re.Z.cancel(Gt);var Kt=Y.current.getBoundingClientRect(),Pt=de/(k?Kt.width:Kt.height);if(it){var Zt=(g(we,k)-yt)*Pt,Yt=Mt;!rt&&k?Yt-=Zt:Yt+=Zt;var Nt=ln.current,xt=bt.current,rn=xt?Yt/xt:0,Qt=Math.ceil(rn*Nt);Qt=Math.max(Qt,0),Qt=Math.min(Qt,Nt),Gt=(0,re.Z)(function(){C(Qt,k)})}},nn=function(){Qe(!1),O()};return window.addEventListener("mousemove",yn,{passive:!0}),window.addEventListener("touchmove",yn,{passive:!0}),window.addEventListener("mouseup",nn,{passive:!0}),window.addEventListener("touchend",nn,{passive:!0}),function(){window.removeEventListener("mousemove",yn),window.removeEventListener("touchmove",yn),window.removeEventListener("mouseup",nn),window.removeEventListener("touchend",nn),re.Z.cancel(Gt)}}},[Ye]),v.useEffect(function(){return pe(),function(){clearTimeout(te.current)}},[M]),v.useImperativeHandle(Et,function(){return{delayHidden:pe}});var Lt="".concat(oe,"-scrollbar"),ot={position:"absolute",visibility:He?null:"hidden"},ft={position:"absolute",background:"rgba(0, 0, 0, 0.5)",borderRadius:99,cursor:"pointer",userSelect:"none"};return k?(ot.height=8,ot.left=0,ot.right=0,ot.bottom=0,ft.height="100%",ft.width=he,rt?ft.left=V:ft.right=V):(ot.width=8,ot.top=0,ot.bottom=0,rt?ot.right=0:ot.left=0,ft.width="100%",ft.height=he,ft.top=V),v.createElement("div",{ref:Y,className:be()(Lt,(0,Re.Z)((0,Re.Z)((0,Re.Z)({},"".concat(Lt,"-horizontal"),k),"".concat(Lt,"-vertical"),!k),"".concat(Lt,"-visible"),He)),style:(0,ie.Z)((0,ie.Z)({},ot),K),onMouseDown:kt,onMouseMove:pe},v.createElement("div",{ref:Ce,className:be()("".concat(Lt,"-thumb"),(0,Re.Z)({},"".concat(Lt,"-thumb-moving"),Ye)),style:(0,ie.Z)((0,ie.Z)({},ft),Ie),onMouseDown:jt}))}),Ue=Pe,Xe=20;function Ze(){var nt=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0,Et=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,oe=nt/Et*nt;return isNaN(oe)&&(oe=0),oe=Math.max(oe,Xe),Math.floor(oe)}var lt=["prefixCls","className","height","itemHeight","fullHeight","style","data","children","itemKey","virtual","direction","scrollWidth","component","onScroll","onVirtualScroll","onVisibleChange","innerProps","extraRender","styles","showScrollBar"],at=[],ct={overflowY:"auto",overflowAnchor:"none"};function Ot(nt,Et){var oe=nt.prefixCls,_e=oe===void 0?"rc-virtual-list":oe,M=nt.className,ce=nt.height,xe=nt.itemHeight,O=nt.fullHeight,C=O===void 0?!0:O,k=nt.style,he=nt.data,de=nt.children,K=nt.itemKey,Ie=nt.virtual,$e=nt.direction,Me=nt.scrollWidth,Be=nt.component,Ye=Be===void 0?"div":Be,Qe=nt.onScroll,Je=nt.onVirtualScroll,dt=nt.onVisibleChange,At=nt.innerProps,gt=nt.extraRender,Rt=nt.styles,Ct=nt.showScrollBar,x=Ct===void 0?"optional":Ct,A=(0,le.Z)(nt,lt),rt=v.useCallback(function(_n){return typeof K=="function"?K(_n):_n==null?void 0:_n[K]},[K]),Y=ne(rt,null,null),Ce=(0,ve.Z)(Y,4),vn=Ce[0],ke=Ce[1],He=Ce[2],We=Ce[3],te=!!(Ie!==!1&&ce&&xe),pe=v.useMemo(function(){return Object.values(He.maps).reduce(function(_n,tn){return _n+tn},0)},[He.id,He.maps]),De=te&&he&&(Math.max(xe*he.length,pe)>ce||!!Me),ze=$e==="rtl",V=be()(_e,(0,Re.Z)({},"".concat(_e,"-rtl"),ze),M),kt=he||at,Le=(0,v.useRef)(),jt=(0,v.useRef)(),ln=(0,v.useRef)(),bt=(0,v.useState)(0),Lt=(0,ve.Z)(bt,2),ot=Lt[0],ft=Lt[1],Gt=(0,v.useState)(0),yn=(0,ve.Z)(Gt,2),nn=yn[0],je=yn[1],we=(0,v.useState)(!1),ut=(0,ve.Z)(we,2),it=ut[0],yt=ut[1],Mt=function(){yt(!0)},Kt=function(){yt(!1)},Pt={getKey:rt};function Zt(_n){ft(function(tn){var Dn;typeof _n=="function"?Dn=_n(tn):Dn=_n;var Zn=kn(Dn);return Le.current.scrollTop=Zn,Zn})}var Yt=(0,v.useRef)({start:0,end:kt.length}),Nt=(0,v.useRef)(),xt=W(kt,rt),rn=(0,ve.Z)(xt,1),Qt=rn[0];Nt.current=Qt;var hn=v.useMemo(function(){if(!te)return{scrollHeight:void 0,start:0,end:kt.length-1,offset:void 0};if(!De){var _n;return{scrollHeight:((_n=jt.current)===null||_n===void 0?void 0:_n.offsetHeight)||0,start:0,end:kt.length-1,offset:void 0}}for(var tn=0,Dn,Zn,sr,Pr=kt.length,gn=0;gn<Pr;gn+=1){var cr=kt[gn],ar=rt(cr),xr=He.get(ar),Mr=tn+(xr===void 0?xe:xr);Mr>=ot&&Dn===void 0&&(Dn=gn,Zn=tn),Mr>ot+ce&&sr===void 0&&(sr=gn),tn=Mr}return Dn===void 0&&(Dn=0,Zn=0,sr=Math.ceil(ce/xe)),sr===void 0&&(sr=kt.length-1),sr=Math.min(sr+1,kt.length-1),{scrollHeight:tn,start:Dn,end:sr,offset:Zn}},[De,te,ot,kt,We,ce]),zn=hn.scrollHeight,Qn=hn.start,On=hn.end,Vt=hn.offset;Yt.current.start=Qn,Yt.current.end=On,v.useLayoutEffect(function(){var _n=He.getRecord();if(_n.size===1){var tn=Array.from(_n)[0],Dn=kt[Qn];if(Dn){var Zn=rt(Dn);if(Zn===tn){var sr=He.get(tn),Pr=sr-xe;Zt(function(gn){return gn+Pr})}}}He.resetRecord()},[zn]);var qe=v.useState({width:0,height:ce}),tt=(0,ve.Z)(qe,2),ht=tt[0],wt=tt[1],mt=function(tn){wt({width:tn.offsetWidth,height:tn.offsetHeight})},It=(0,v.useRef)(),Tt=(0,v.useRef)(),Wt=v.useMemo(function(){return Ze(ht.width,Me)},[ht.width,Me]),mn=v.useMemo(function(){return Ze(ht.height,zn)},[ht.height,zn]),cn=zn-ce,Pn=(0,v.useRef)(cn);Pn.current=cn;function kn(_n){var tn=_n;return Number.isNaN(Pn.current)||(tn=Math.min(tn,Pn.current)),tn=Math.max(tn,0),tn}var Un=ot<=0,dn=ot>=cn,Jt=nn<=0,Mn=nn>=Me,wn=F(Un,dn,Jt,Mn),rr=function(){return{x:ze?-nn:nn,y:ot}},Yn=(0,v.useRef)(rr()),Wn=(0,L.useEvent)(function(_n){if(Je){var tn=(0,ie.Z)((0,ie.Z)({},rr()),_n);(Yn.current.x!==tn.x||Yn.current.y!==tn.y)&&(Je(tn),Yn.current=tn)}});function Jn(_n,tn){var Dn=_n;tn?((0,c.flushSync)(function(){je(Dn)}),Wn()):Zt(Dn)}function Bn(_n){var tn=_n.currentTarget.scrollTop;tn!==ot&&Zt(tn),Qe==null||Qe(_n),Wn()}var qn=function(tn){var Dn=tn,Zn=Me?Me-ht.width:0;return Dn=Math.max(Dn,0),Dn=Math.min(Dn,Zn),Dn},wr=(0,L.useEvent)(function(_n,tn){tn?((0,c.flushSync)(function(){je(function(Dn){var Zn=Dn+(ze?-_n:_n);return qn(Zn)})}),Wn()):Zt(function(Dn){var Zn=Dn+_n;return Zn})}),An=U(te,Un,dn,Jt,Mn,!!Me,wr),sn=(0,ve.Z)(An,2),Ge=sn[0],pn=sn[1];me(te,Le,function(_n,tn,Dn,Zn){var sr=Zn;return wn(_n,tn,Dn)?!1:!sr||!sr._virtualHandled?(sr&&(sr._virtualHandled=!0),Ge({preventDefault:function(){},deltaX:_n?tn:0,deltaY:_n?0:tn}),!0):!1}),w(De,Le,function(_n){Zt(function(tn){return tn+_n})}),(0,$.Z)(function(){function _n(Dn){var Zn=Un&&Dn.detail<0,sr=dn&&Dn.detail>0;te&&!Zn&&!sr&&Dn.preventDefault()}var tn=Le.current;return tn.addEventListener("wheel",Ge,{passive:!1}),tn.addEventListener("DOMMouseScroll",pn,{passive:!0}),tn.addEventListener("MozMousePixelScroll",_n,{passive:!1}),function(){tn.removeEventListener("wheel",Ge),tn.removeEventListener("DOMMouseScroll",pn),tn.removeEventListener("MozMousePixelScroll",_n)}},[te,Un,dn]),(0,$.Z)(function(){if(Me){var _n=qn(nn);je(_n),Wn({x:_n})}},[ht.width,Me]);var Ln=function(){var tn,Dn;(tn=It.current)===null||tn===void 0||tn.delayHidden(),(Dn=Tt.current)===null||Dn===void 0||Dn.delayHidden()},Xn=J(Le,kt,He,xe,rt,function(){return ke(!0)},Zt,Ln);v.useImperativeHandle(Et,function(){return{nativeElement:ln.current,getScrollInfo:rr,scrollTo:function(tn){function Dn(Zn){return Zn&&(0,N.Z)(Zn)==="object"&&("left"in Zn||"top"in Zn)}Dn(tn)?(tn.left!==void 0&&je(qn(tn.left)),Xn(tn.top)):Xn(tn)}}}),(0,$.Z)(function(){if(dt){var _n=kt.slice(Qn,On+1);dt(_n,kt)}},[Qn,On,kt]);var Gn=fe(kt,rt,He,xe),ir=gt==null?void 0:gt({start:Qn,end:On,virtual:De,offsetX:nn,offsetY:Vt,rtl:ze,getSize:Gn}),lr=ae(kt,Qn,On,Me,nn,vn,de,Pt),Nn=null;ce&&(Nn=(0,ie.Z)((0,Re.Z)({},C?"height":"maxHeight",ce),ct),te&&(Nn.overflowY="hidden",Me&&(Nn.overflowX="hidden"),it&&(Nn.pointerEvents="none")));var ur={};return ze&&(ur.dir="rtl"),v.createElement("div",(0,T.Z)({ref:ln,style:(0,ie.Z)((0,ie.Z)({},k),{},{position:"relative"}),className:V},ur,A),v.createElement(o.Z,{onResize:mt},v.createElement(Ye,{className:"".concat(_e,"-holder"),style:Nn,ref:Le,onScroll:Bn,onMouseEnter:Ln},v.createElement(y,{prefixCls:_e,height:zn,offsetX:nn,offsetY:Vt,scrollWidth:Me,onInnerResize:ke,ref:jt,innerProps:At,rtl:ze,extra:ir},lr))),De&&zn>ce&&v.createElement(Ue,{ref:It,prefixCls:_e,scrollOffset:ot,scrollRange:zn,rtl:ze,onScroll:Jn,onStartMove:Mt,onStopMove:Kt,spinSize:mn,containerSize:ht.height,style:Rt==null?void 0:Rt.verticalScrollBar,thumbStyle:Rt==null?void 0:Rt.verticalScrollBarThumb,showScrollBar:x}),De&&Me>ht.width&&v.createElement(Ue,{ref:Tt,prefixCls:_e,scrollOffset:nn,scrollRange:Me,rtl:ze,onScroll:Jn,onStartMove:Mt,onStopMove:Kt,spinSize:Wt,containerSize:ht.width,horizontal:!0,style:Rt==null?void 0:Rt.horizontalScrollBar,thumbStyle:Rt==null?void 0:Rt.horizontalScrollBarThumb,showScrollBar:x}))}var Ut=v.forwardRef(Ot);Ut.displayName="List";var un=Ut,Ft=un},83145:function(Ht,et,_){"use strict";Object.defineProperty(et,"__esModule",{value:!0}),et.CopyToClipboard=void 0;var T=ie(_(59301)),N=ie(_(25769));function ie(z){return z&&z.__esModule?z:{default:z}}function Re(z){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Re=function(re){return typeof re}:Re=function(re){return re&&typeof Symbol=="function"&&re.constructor===Symbol&&re!==Symbol.prototype?"symbol":typeof re},Re(z)}function ve(z,W){var re=Object.keys(z);if(Object.getOwnPropertySymbols){var b=Object.getOwnPropertySymbols(z);W&&(b=b.filter(function(D){return Object.getOwnPropertyDescriptor(z,D).enumerable})),re.push.apply(re,b)}return re}function le(z){for(var W=1;W<arguments.length;W++){var re=arguments[W]!=null?arguments[W]:{};W%2?ve(re,!0).forEach(function(b){ae(z,b,re[b])}):Object.getOwnPropertyDescriptors?Object.defineProperties(z,Object.getOwnPropertyDescriptors(re)):ve(re).forEach(function(b){Object.defineProperty(z,b,Object.getOwnPropertyDescriptor(re,b))})}return z}function Te(z,W){if(z==null)return{};var re=be(z,W),b,D;if(Object.getOwnPropertySymbols){var F=Object.getOwnPropertySymbols(z);for(D=0;D<F.length;D++)b=F[D],!(W.indexOf(b)>=0)&&Object.prototype.propertyIsEnumerable.call(z,b)&&(re[b]=z[b])}return re}function be(z,W){if(z==null)return{};var re={},b=Object.keys(z),D,F;for(F=0;F<b.length;F++)D=b[F],!(W.indexOf(D)>=0)&&(re[D]=z[D]);return re}function o(z,W){if(!(z instanceof W))throw new TypeError("Cannot call a class as a function")}function L(z,W){for(var re=0;re<W.length;re++){var b=W[re];b.enumerable=b.enumerable||!1,b.configurable=!0,"value"in b&&(b.writable=!0),Object.defineProperty(z,b.key,b)}}function $(z,W,re){return W&&L(z.prototype,W),re&&L(z,re),z}function v(z,W){return W&&(Re(W)==="object"||typeof W=="function")?W:S(z)}function c(z){return c=Object.setPrototypeOf?Object.getPrototypeOf:function(re){return re.__proto__||Object.getPrototypeOf(re)},c(z)}function S(z){if(z===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return z}function y(z,W){if(typeof W!="function"&&W!==null)throw new TypeError("Super expression must either be null or a function");z.prototype=Object.create(W&&W.prototype,{constructor:{value:z,writable:!0,configurable:!0}}),W&&q(z,W)}function q(z,W){return q=Object.setPrototypeOf||function(b,D){return b.__proto__=D,b},q(z,W)}function ae(z,W,re){return W in z?Object.defineProperty(z,W,{value:re,enumerable:!0,configurable:!0,writable:!0}):z[W]=re,z}var P=function(z){y(W,z);function W(){var re,b;o(this,W);for(var D=arguments.length,F=new Array(D),U=0;U<D;U++)F[U]=arguments[U];return b=v(this,(re=c(W)).call.apply(re,[this].concat(F))),ae(S(b),"onClick",function(fe){var ye=b.props,Se=ye.text,Ne=ye.onCopy,Z=ye.children,B=ye.options,ne=T.default.Children.only(Z),X=(0,N.default)(Se,B);Ne&&Ne(Se,X),ne&&ne.props&&typeof ne.props.onClick=="function"&&ne.props.onClick(fe)}),b}return $(W,[{key:"render",value:function(){var b=this.props,D=b.text,F=b.onCopy,U=b.options,fe=b.children,ye=Te(b,["text","onCopy","options","children"]),Se=T.default.Children.only(fe);return T.default.cloneElement(Se,le({},ye,{onClick:this.onClick}))}}]),W}(T.default.PureComponent);et.CopyToClipboard=P,ae(P,"defaultProps",{onCopy:void 0,options:void 0})},56102:function(Ht,et,_){"use strict";var T=_(83145),N=T.CopyToClipboard;N.CopyToClipboard=N,Ht.exports=N},76374:function(Ht,et,_){"use strict";var T=function(){if(typeof Map!="undefined")return Map;function Z(B,ne){var X=-1;return B.some(function(me,ee){return me[0]===ne?(X=ee,!0):!1}),X}return function(){function B(){this.__entries__=[]}return Object.defineProperty(B.prototype,"size",{get:function(){return this.__entries__.length},enumerable:!0,configurable:!0}),B.prototype.get=function(ne){var X=Z(this.__entries__,ne),me=this.__entries__[X];return me&&me[1]},B.prototype.set=function(ne,X){var me=Z(this.__entries__,ne);~me?this.__entries__[me][1]=X:this.__entries__.push([ne,X])},B.prototype.delete=function(ne){var X=this.__entries__,me=Z(X,ne);~me&&X.splice(me,1)},B.prototype.has=function(ne){return!!~Z(this.__entries__,ne)},B.prototype.clear=function(){this.__entries__.splice(0)},B.prototype.forEach=function(ne,X){X===void 0&&(X=null);for(var me=0,ee=this.__entries__;me<ee.length;me++){var g=ee[me];ne.call(X,g[1],g[0])}},B}()}(),N=typeof window!="undefined"&&typeof document!="undefined"&&window.document===document,ie=function(){return typeof _.g!="undefined"&&_.g.Math===Math?_.g:typeof self!="undefined"&&self.Math===Math?self:typeof window!="undefined"&&window.Math===Math?window:Function("return this")()}(),Re=function(){return typeof requestAnimationFrame=="function"?requestAnimationFrame.bind(ie):function(Z){return setTimeout(function(){return Z(Date.now())},1e3/60)}}(),ve=2;function le(Z,B){var ne=!1,X=!1,me=0;function ee(){ne&&(ne=!1,Z()),X&&w()}function g(){Re(ee)}function w(){var Q=Date.now();if(ne){if(Q-me<ve)return;X=!0}else ne=!0,X=!1,setTimeout(g,B);me=Q}return w}var Te=20,be=["top","right","bottom","left","width","height","size","weight"],o=typeof MutationObserver!="undefined",L=function(){function Z(){this.connected_=!1,this.mutationEventsAdded_=!1,this.mutationsObserver_=null,this.observers_=[],this.onTransitionEnd_=this.onTransitionEnd_.bind(this),this.refresh=le(this.refresh.bind(this),Te)}return Z.prototype.addObserver=function(B){~this.observers_.indexOf(B)||this.observers_.push(B),this.connected_||this.connect_()},Z.prototype.removeObserver=function(B){var ne=this.observers_,X=ne.indexOf(B);~X&&ne.splice(X,1),!ne.length&&this.connected_&&this.disconnect_()},Z.prototype.refresh=function(){var B=this.updateObservers_();B&&this.refresh()},Z.prototype.updateObservers_=function(){var B=this.observers_.filter(function(ne){return ne.gatherActive(),ne.hasActive()});return B.forEach(function(ne){return ne.broadcastActive()}),B.length>0},Z.prototype.connect_=function(){!N||this.connected_||(document.addEventListener("transitionend",this.onTransitionEnd_),window.addEventListener("resize",this.refresh),o?(this.mutationsObserver_=new MutationObserver(this.refresh),this.mutationsObserver_.observe(document,{attributes:!0,childList:!0,characterData:!0,subtree:!0})):(document.addEventListener("DOMSubtreeModified",this.refresh),this.mutationEventsAdded_=!0),this.connected_=!0)},Z.prototype.disconnect_=function(){!N||!this.connected_||(document.removeEventListener("transitionend",this.onTransitionEnd_),window.removeEventListener("resize",this.refresh),this.mutationsObserver_&&this.mutationsObserver_.disconnect(),this.mutationEventsAdded_&&document.removeEventListener("DOMSubtreeModified",this.refresh),this.mutationsObserver_=null,this.mutationEventsAdded_=!1,this.connected_=!1)},Z.prototype.onTransitionEnd_=function(B){var ne=B.propertyName,X=ne===void 0?"":ne,me=be.some(function(ee){return!!~X.indexOf(ee)});me&&this.refresh()},Z.getInstance=function(){return this.instance_||(this.instance_=new Z),this.instance_},Z.instance_=null,Z}(),$=function(Z,B){for(var ne=0,X=Object.keys(B);ne<X.length;ne++){var me=X[ne];Object.defineProperty(Z,me,{value:B[me],enumerable:!1,writable:!1,configurable:!0})}return Z},v=function(Z){var B=Z&&Z.ownerDocument&&Z.ownerDocument.defaultView;return B||ie},c=D(0,0,0,0);function S(Z){return parseFloat(Z)||0}function y(Z){for(var B=[],ne=1;ne<arguments.length;ne++)B[ne-1]=arguments[ne];return B.reduce(function(X,me){var ee=Z["border-"+me+"-width"];return X+S(ee)},0)}function q(Z){for(var B=["top","right","bottom","left"],ne={},X=0,me=B;X<me.length;X++){var ee=me[X],g=Z["padding-"+ee];ne[ee]=S(g)}return ne}function ae(Z){var B=Z.getBBox();return D(0,0,B.width,B.height)}function P(Z){var B=Z.clientWidth,ne=Z.clientHeight;if(!B&&!ne)return c;var X=v(Z).getComputedStyle(Z),me=q(X),ee=me.left+me.right,g=me.top+me.bottom,w=S(X.width),Q=S(X.height);if(X.boxSizing==="border-box"&&(Math.round(w+ee)!==B&&(w-=y(X,"left","right")+ee),Math.round(Q+g)!==ne&&(Q-=y(X,"top","bottom")+g)),!W(Z)){var J=Math.round(w+ee)-B,Pe=Math.round(Q+g)-ne;Math.abs(J)!==1&&(w-=J),Math.abs(Pe)!==1&&(Q-=Pe)}return D(me.left,me.top,w,Q)}var z=function(){return typeof SVGGraphicsElement!="undefined"?function(Z){return Z instanceof v(Z).SVGGraphicsElement}:function(Z){return Z instanceof v(Z).SVGElement&&typeof Z.getBBox=="function"}}();function W(Z){return Z===v(Z).document.documentElement}function re(Z){return N?z(Z)?ae(Z):P(Z):c}function b(Z){var B=Z.x,ne=Z.y,X=Z.width,me=Z.height,ee=typeof DOMRectReadOnly!="undefined"?DOMRectReadOnly:Object,g=Object.create(ee.prototype);return $(g,{x:B,y:ne,width:X,height:me,top:ne,right:B+X,bottom:me+ne,left:B}),g}function D(Z,B,ne,X){return{x:Z,y:B,width:ne,height:X}}var F=function(){function Z(B){this.broadcastWidth=0,this.broadcastHeight=0,this.contentRect_=D(0,0,0,0),this.target=B}return Z.prototype.isActive=function(){var B=re(this.target);return this.contentRect_=B,B.width!==this.broadcastWidth||B.height!==this.broadcastHeight},Z.prototype.broadcastRect=function(){var B=this.contentRect_;return this.broadcastWidth=B.width,this.broadcastHeight=B.height,B},Z}(),U=function(){function Z(B,ne){var X=b(ne);$(this,{target:B,contentRect:X})}return Z}(),fe=function(){function Z(B,ne,X){if(this.activeObservations_=[],this.observations_=new T,typeof B!="function")throw new TypeError("The callback provided as parameter 1 is not a function.");this.callback_=B,this.controller_=ne,this.callbackCtx_=X}return Z.prototype.observe=function(B){if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");if(!(typeof Element=="undefined"||!(Element instanceof Object))){if(!(B instanceof v(B).Element))throw new TypeError('parameter 1 is not of type "Element".');var ne=this.observations_;ne.has(B)||(ne.set(B,new F(B)),this.controller_.addObserver(this),this.controller_.refresh())}},Z.prototype.unobserve=function(B){if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");if(!(typeof Element=="undefined"||!(Element instanceof Object))){if(!(B instanceof v(B).Element))throw new TypeError('parameter 1 is not of type "Element".');var ne=this.observations_;ne.has(B)&&(ne.delete(B),ne.size||this.controller_.removeObserver(this))}},Z.prototype.disconnect=function(){this.clearActive(),this.observations_.clear(),this.controller_.removeObserver(this)},Z.prototype.gatherActive=function(){var B=this;this.clearActive(),this.observations_.forEach(function(ne){ne.isActive()&&B.activeObservations_.push(ne)})},Z.prototype.broadcastActive=function(){if(this.hasActive()){var B=this.callbackCtx_,ne=this.activeObservations_.map(function(X){return new U(X.target,X.broadcastRect())});this.callback_.call(B,ne,B),this.clearActive()}},Z.prototype.clearActive=function(){this.activeObservations_.splice(0)},Z.prototype.hasActive=function(){return this.activeObservations_.length>0},Z}(),ye=typeof WeakMap!="undefined"?new WeakMap:new T,Se=function(){function Z(B){if(!(this instanceof Z))throw new TypeError("Cannot call a class as a function.");if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");var ne=L.getInstance(),X=new fe(B,ne,this);ye.set(this,X)}return Z}();["observe","unobserve","disconnect"].forEach(function(Z){Se.prototype[Z]=function(){var B;return(B=ye.get(this))[Z].apply(B,arguments)}});var Ne=function(){return typeof ie.ResizeObserver!="undefined"?ie.ResizeObserver:Se}();et.Z=Ne},98040:function(Ht){Ht.exports=function(){var et=document.getSelection();if(!et.rangeCount)return function(){};for(var _=document.activeElement,T=[],N=0;N<et.rangeCount;N++)T.push(et.getRangeAt(N));switch(_.tagName.toUpperCase()){case"INPUT":case"TEXTAREA":_.blur();break;default:_=null;break}return et.removeAllRanges(),function(){et.type==="Caret"&&et.removeAllRanges(),et.rangeCount||T.forEach(function(ie){et.addRange(ie)}),_&&_.focus()}}},1012:function(Ht,et,_){"use strict";_.d(et,{Z:function(){return v}});var T=typeof crypto!="undefined"&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)||typeof msCrypto!="undefined"&&typeof msCrypto.getRandomValues=="function"&&msCrypto.getRandomValues.bind(msCrypto),N=new Uint8Array(16);function ie(){if(!T)throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return T(N)}var Re=/^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000)$/i;function ve(c){return typeof c=="string"&&Re.test(c)}for(var le=ve,Te=[],be=0;be<256;++be)Te.push((be+256).toString(16).substr(1));function o(c){var S=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,y=(Te[c[S+0]]+Te[c[S+1]]+Te[c[S+2]]+Te[c[S+3]]+"-"+Te[c[S+4]]+Te[c[S+5]]+"-"+Te[c[S+6]]+Te[c[S+7]]+"-"+Te[c[S+8]]+Te[c[S+9]]+"-"+Te[c[S+10]]+Te[c[S+11]]+Te[c[S+12]]+Te[c[S+13]]+Te[c[S+14]]+Te[c[S+15]]).toLowerCase();if(!le(y))throw TypeError("Stringified UUID is invalid");return y}var L=o;function $(c,S,y){c=c||{};var q=c.random||(c.rng||ie)();if(q[6]=q[6]&15|64,q[8]=q[8]&63|128,S){y=y||0;for(var ae=0;ae<16;++ae)S[y+ae]=q[ae];return S}return L(q)}var v=$},93314:function(Ht){"use strict";Ht.exports="data:image/png;base64,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"},96908:function(Ht){"use strict";Ht.exports="data:image/png;base64,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"},57177:function(Ht){"use strict";Ht.exports="data:image/png;base64,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"},81378:function(Ht){"use strict";Ht.exports="data:image/png;base64,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"},40846:function(Ht,et,_){"use strict";_.d(et,{ZP:function(){return Ps}});function T(a){return a&&a.__esModule&&Object.prototype.hasOwnProperty.call(a,"default")?a.default:a}var N={exports:{}};(function(a,e){(function(t){var n=/^(?=((?:[a-zA-Z0-9+\-.]+:)?))\1(?=((?:\/\/[^\/?#]*)?))\2(?=((?:(?:[^?#\/]*\/)*[^;?#\/]*)?))\3((?:;[^?#]*)?)(\?[^#]*)?(#[^]*)?$/,r=/^(?=([^\/?#]*))\1([^]*)$/,i=/(?:\/|^)\.(?=\/)/g,s=/(?:\/|^)\.\.\/(?!\.\.\/)[^\/]*(?=\/)/g,u={buildAbsoluteURL:function(f,p,E){if(E=E||{},f=f.trim(),p=p.trim(),!p){if(!E.alwaysNormalize)return f;var R=u.parseURL(f);if(!R)throw new Error("Error trying to parse base URL.");return R.path=u.normalizePath(R.path),u.buildURLFromParts(R)}var G=u.parseURL(p);if(!G)throw new Error("Error trying to parse relative URL.");if(G.scheme)return E.alwaysNormalize?(G.path=u.normalizePath(G.path),u.buildURLFromParts(G)):p;var ue=u.parseURL(f);if(!ue)throw new Error("Error trying to parse base URL.");if(!ue.netLoc&&ue.path&&ue.path[0]!=="/"){var se=r.exec(ue.path);ue.netLoc=se[1],ue.path=se[2]}ue.netLoc&&!ue.path&&(ue.path="/");var ge={scheme:ue.scheme,netLoc:G.netLoc,path:null,params:G.params,query:G.query,fragment:G.fragment};if(!G.netLoc&&(ge.netLoc=ue.netLoc,G.path[0]!=="/"))if(!G.path)ge.path=ue.path,G.params||(ge.params=ue.params,G.query||(ge.query=ue.query));else{var Ae=ue.path,Ve=Ae.substring(0,Ae.lastIndexOf("/")+1)+G.path;ge.path=u.normalizePath(Ve)}return ge.path===null&&(ge.path=E.alwaysNormalize?u.normalizePath(G.path):G.path),u.buildURLFromParts(ge)},parseURL:function(f){var p=n.exec(f);return p?{scheme:p[1]||"",netLoc:p[2]||"",path:p[3]||"",params:p[4]||"",query:p[5]||"",fragment:p[6]||""}:null},normalizePath:function(f){for(f=f.split("").reverse().join("").replace(i,"");f.length!==(f=f.replace(s,"")).length;);return f.split("").reverse().join("")},buildURLFromParts:function(f){return f.scheme+f.netLoc+f.path+f.params+f.query+f.fragment}};a.exports=u})()})(N);var ie=N.exports;function Re(a,e){var t=Object.keys(a);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(a);e&&(n=n.filter(function(r){return Object.getOwnPropertyDescriptor(a,r).enumerable})),t.push.apply(t,n)}return t}function ve(a){for(var e=1;e<arguments.length;e++){var t=arguments[e]!=null?arguments[e]:{};e%2?Re(Object(t),!0).forEach(function(n){be(a,n,t[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(a,Object.getOwnPropertyDescriptors(t)):Re(Object(t)).forEach(function(n){Object.defineProperty(a,n,Object.getOwnPropertyDescriptor(t,n))})}return a}function le(a,e){if(typeof a!="object"||!a)return a;var t=a[Symbol.toPrimitive];if(t!==void 0){var n=t.call(a,e||"default");if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(a)}function Te(a){var e=le(a,"string");return typeof e=="symbol"?e:String(e)}function be(a,e,t){return e=Te(e),e in a?Object.defineProperty(a,e,{value:t,enumerable:!0,configurable:!0,writable:!0}):a[e]=t,a}function o(){return o=Object.assign?Object.assign.bind():function(a){for(var e=1;e<arguments.length;e++){var t=arguments[e];for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(a[n]=t[n])}return a},o.apply(this,arguments)}const L=Number.isFinite||function(a){return typeof a=="number"&&isFinite(a)},$=Number.isSafeInteger||function(a){return typeof a=="number"&&Math.abs(a)<=v},v=Number.MAX_SAFE_INTEGER||9007199254740991;let c=function(a){return a.MEDIA_ATTACHING="hlsMediaAttaching",a.MEDIA_ATTACHED="hlsMediaAttached",a.MEDIA_DETACHING="hlsMediaDetaching",a.MEDIA_DETACHED="hlsMediaDetached",a.BUFFER_RESET="hlsBufferReset",a.BUFFER_CODECS="hlsBufferCodecs",a.BUFFER_CREATED="hlsBufferCreated",a.BUFFER_APPENDING="hlsBufferAppending",a.BUFFER_APPENDED="hlsBufferAppended",a.BUFFER_EOS="hlsBufferEos",a.BUFFER_FLUSHING="hlsBufferFlushing",a.BUFFER_FLUSHED="hlsBufferFlushed",a.MANIFEST_LOADING="hlsManifestLoading",a.MANIFEST_LOADED="hlsManifestLoaded",a.MANIFEST_PARSED="hlsManifestParsed",a.LEVEL_SWITCHING="hlsLevelSwitching",a.LEVEL_SWITCHED="hlsLevelSwitched",a.LEVEL_LOADING="hlsLevelLoading",a.LEVEL_LOADED="hlsLevelLoaded",a.LEVEL_UPDATED="hlsLevelUpdated",a.LEVEL_PTS_UPDATED="hlsLevelPtsUpdated",a.LEVELS_UPDATED="hlsLevelsUpdated",a.AUDIO_TRACKS_UPDATED="hlsAudioTracksUpdated",a.AUDIO_TRACK_SWITCHING="hlsAudioTrackSwitching",a.AUDIO_TRACK_SWITCHED="hlsAudioTrackSwitched",a.AUDIO_TRACK_LOADING="hlsAudioTrackLoading",a.AUDIO_TRACK_LOADED="hlsAudioTrackLoaded",a.SUBTITLE_TRACKS_UPDATED="hlsSubtitleTracksUpdated",a.SUBTITLE_TRACKS_CLEARED="hlsSubtitleTracksCleared",a.SUBTITLE_TRACK_SWITCH="hlsSubtitleTrackSwitch",a.SUBTITLE_TRACK_LOADING="hlsSubtitleTrackLoading",a.SUBTITLE_TRACK_LOADED="hlsSubtitleTrackLoaded",a.SUBTITLE_FRAG_PROCESSED="hlsSubtitleFragProcessed",a.CUES_PARSED="hlsCuesParsed",a.NON_NATIVE_TEXT_TRACKS_FOUND="hlsNonNativeTextTracksFound",a.INIT_PTS_FOUND="hlsInitPtsFound",a.FRAG_LOADING="hlsFragLoading",a.FRAG_LOAD_EMERGENCY_ABORTED="hlsFragLoadEmergencyAborted",a.FRAG_LOADED="hlsFragLoaded",a.FRAG_DECRYPTED="hlsFragDecrypted",a.FRAG_PARSING_INIT_SEGMENT="hlsFragParsingInitSegment",a.FRAG_PARSING_USERDATA="hlsFragParsingUserdata",a.FRAG_PARSING_METADATA="hlsFragParsingMetadata",a.FRAG_PARSED="hlsFragParsed",a.FRAG_BUFFERED="hlsFragBuffered",a.FRAG_CHANGED="hlsFragChanged",a.FPS_DROP="hlsFpsDrop",a.FPS_DROP_LEVEL_CAPPING="hlsFpsDropLevelCapping",a.MAX_AUTO_LEVEL_UPDATED="hlsMaxAutoLevelUpdated",a.ERROR="hlsError",a.DESTROYING="hlsDestroying",a.KEY_LOADING="hlsKeyLoading",a.KEY_LOADED="hlsKeyLoaded",a.LIVE_BACK_BUFFER_REACHED="hlsLiveBackBufferReached",a.BACK_BUFFER_REACHED="hlsBackBufferReached",a.STEERING_MANIFEST_LOADED="hlsSteeringManifestLoaded",a}({}),S=function(a){return a.NETWORK_ERROR="networkError",a.MEDIA_ERROR="mediaError",a.KEY_SYSTEM_ERROR="keySystemError",a.MUX_ERROR="muxError",a.OTHER_ERROR="otherError",a}({}),y=function(a){return a.KEY_SYSTEM_NO_KEYS="keySystemNoKeys",a.KEY_SYSTEM_NO_ACCESS="keySystemNoAccess",a.KEY_SYSTEM_NO_SESSION="keySystemNoSession",a.KEY_SYSTEM_NO_CONFIGURED_LICENSE="keySystemNoConfiguredLicense",a.KEY_SYSTEM_LICENSE_REQUEST_FAILED="keySystemLicenseRequestFailed",a.KEY_SYSTEM_SERVER_CERTIFICATE_REQUEST_FAILED="keySystemServerCertificateRequestFailed",a.KEY_SYSTEM_SERVER_CERTIFICATE_UPDATE_FAILED="keySystemServerCertificateUpdateFailed",a.KEY_SYSTEM_SESSION_UPDATE_FAILED="keySystemSessionUpdateFailed",a.KEY_SYSTEM_STATUS_OUTPUT_RESTRICTED="keySystemStatusOutputRestricted",a.KEY_SYSTEM_STATUS_INTERNAL_ERROR="keySystemStatusInternalError",a.MANIFEST_LOAD_ERROR="manifestLoadError",a.MANIFEST_LOAD_TIMEOUT="manifestLoadTimeOut",a.MANIFEST_PARSING_ERROR="manifestParsingError",a.MANIFEST_INCOMPATIBLE_CODECS_ERROR="manifestIncompatibleCodecsError",a.LEVEL_EMPTY_ERROR="levelEmptyError",a.LEVEL_LOAD_ERROR="levelLoadError",a.LEVEL_LOAD_TIMEOUT="levelLoadTimeOut",a.LEVEL_PARSING_ERROR="levelParsingError",a.LEVEL_SWITCH_ERROR="levelSwitchError",a.AUDIO_TRACK_LOAD_ERROR="audioTrackLoadError",a.AUDIO_TRACK_LOAD_TIMEOUT="audioTrackLoadTimeOut",a.SUBTITLE_LOAD_ERROR="subtitleTrackLoadError",a.SUBTITLE_TRACK_LOAD_TIMEOUT="subtitleTrackLoadTimeOut",a.FRAG_LOAD_ERROR="fragLoadError",a.FRAG_LOAD_TIMEOUT="fragLoadTimeOut",a.FRAG_DECRYPT_ERROR="fragDecryptError",a.FRAG_PARSING_ERROR="fragParsingError",a.FRAG_GAP="fragGap",a.REMUX_ALLOC_ERROR="remuxAllocError",a.KEY_LOAD_ERROR="keyLoadError",a.KEY_LOAD_TIMEOUT="keyLoadTimeOut",a.BUFFER_ADD_CODEC_ERROR="bufferAddCodecError",a.BUFFER_INCOMPATIBLE_CODECS_ERROR="bufferIncompatibleCodecsError",a.BUFFER_APPEND_ERROR="bufferAppendError",a.BUFFER_APPENDING_ERROR="bufferAppendingError",a.BUFFER_STALLED_ERROR="bufferStalledError",a.BUFFER_FULL_ERROR="bufferFullError",a.BUFFER_SEEK_OVER_HOLE="bufferSeekOverHole",a.BUFFER_NUDGE_ON_STALL="bufferNudgeOnStall",a.INTERNAL_EXCEPTION="internalException",a.INTERNAL_ABORTED="aborted",a.UNKNOWN="unknown",a}({});const q=function(){},ae={trace:q,debug:q,log:q,warn:q,info:q,error:q};let P=ae;function z(a){const e=self.console[a];return e?e.bind(self.console,`[${a}] >`):q}function W(a,...e){e.forEach(function(t){P[t]=a[t]?a[t].bind(a):z(t)})}function re(a,e){if(typeof console=="object"&&a===!0||typeof a=="object"){W(a,"debug","log","info","warn","error");try{P.log(`Debug logs enabled for "${e}" in hls.js version 1.5.20`)}catch(t){P=ae}}else P=ae}const b=P,D=/^(\d+)x(\d+)$/,F=/(.+?)=(".*?"|.*?)(?:,|$)/g;class U{constructor(e){typeof e=="string"&&(e=U.parseAttrList(e)),o(this,e)}get clientAttrs(){return Object.keys(this).filter(e=>e.substring(0,2)==="X-")}decimalInteger(e){const t=parseInt(this[e],10);return t>Number.MAX_SAFE_INTEGER?1/0:t}hexadecimalInteger(e){if(this[e]){let t=(this[e]||"0x").slice(2);t=(t.length&1?"0":"")+t;const n=new Uint8Array(t.length/2);for(let r=0;r<t.length/2;r++)n[r]=parseInt(t.slice(r*2,r*2+2),16);return n}else return null}hexadecimalIntegerAsNumber(e){const t=parseInt(this[e],16);return t>Number.MAX_SAFE_INTEGER?1/0:t}decimalFloatingPoint(e){return parseFloat(this[e])}optionalFloat(e,t){const n=this[e];return n?parseFloat(n):t}enumeratedString(e){return this[e]}bool(e){return this[e]==="YES"}decimalResolution(e){const t=D.exec(this[e]);if(t!==null)return{width:parseInt(t[1],10),height:parseInt(t[2],10)}}static parseAttrList(e){let t;const n={},r='"';for(F.lastIndex=0;(t=F.exec(e))!==null;){let i=t[2];i.indexOf(r)===0&&i.lastIndexOf(r)===i.length-1&&(i=i.slice(1,-1));const s=t[1].trim();n[s]=i}return n}}function fe(a){return a!=="ID"&&a!=="CLASS"&&a!=="START-DATE"&&a!=="DURATION"&&a!=="END-DATE"&&a!=="END-ON-NEXT"}function ye(a){return a==="SCTE35-OUT"||a==="SCTE35-IN"}class Se{constructor(e,t){if(this.attr=void 0,this._startDate=void 0,this._endDate=void 0,this._badValueForSameId=void 0,t){const n=t.attr;for(const r in n)if(Object.prototype.hasOwnProperty.call(e,r)&&e[r]!==n[r]){b.warn(`DATERANGE tag attribute: "${r}" does not match for tags with ID: "${e.ID}"`),this._badValueForSameId=r;break}e=o(new U({}),n,e)}if(this.attr=e,this._startDate=new Date(e["START-DATE"]),"END-DATE"in this.attr){const n=new Date(this.attr["END-DATE"]);L(n.getTime())&&(this._endDate=n)}}get id(){return this.attr.ID}get class(){return this.attr.CLASS}get startDate(){return this._startDate}get endDate(){if(this._endDate)return this._endDate;const e=this.duration;return e!==null?new Date(this._startDate.getTime()+e*1e3):null}get duration(){if("DURATION"in this.attr){const e=this.attr.decimalFloatingPoint("DURATION");if(L(e))return e}else if(this._endDate)return(this._endDate.getTime()-this._startDate.getTime())/1e3;return null}get plannedDuration(){return"PLANNED-DURATION"in this.attr?this.attr.decimalFloatingPoint("PLANNED-DURATION"):null}get endOnNext(){return this.attr.bool("END-ON-NEXT")}get isValid(){return!!this.id&&!this._badValueForSameId&&L(this.startDate.getTime())&&(this.duration===null||this.duration>=0)&&(!this.endOnNext||!!this.class)}}class Ne{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 Z={AUDIO:"audio",VIDEO:"video",AUDIOVIDEO:"audiovideo"};class B{constructor(e){this._byteRange=null,this._url=null,this.baseurl=void 0,this.relurl=void 0,this.elementaryStreams={[Z.AUDIO]:null,[Z.VIDEO]:null,[Z.AUDIOVIDEO]:null},this.baseurl=e}setByteRange(e,t){const n=e.split("@",2);let r;n.length===1?r=(t==null?void 0:t.byteRangeEndOffset)||0:r=parseInt(n[1]),this._byteRange=[r,parseInt(n[0])+r]}get byteRange(){return this._byteRange?this._byteRange:[]}get byteRangeStartOffset(){return this.byteRange[0]}get byteRangeEndOffset(){return this.byteRange[1]}get url(){return!this._url&&this.baseurl&&this.relurl&&(this._url=ie.buildAbsoluteURL(this.baseurl,this.relurl,{alwaysNormalize:!0})),this._url||""}set url(e){this._url=e}}class ne extends B{constructor(e,t){super(t),this._decryptdata=null,this.rawProgramDateTime=null,this.programDateTime=null,this.tagList=[],this.duration=0,this.sn=0,this.levelkeys=void 0,this.type=void 0,this.loader=null,this.keyLoader=null,this.level=-1,this.cc=0,this.startPTS=void 0,this.endPTS=void 0,this.startDTS=void 0,this.endDTS=void 0,this.start=0,this.deltaPTS=void 0,this.maxStartPTS=void 0,this.minEndPTS=void 0,this.stats=new Ne,this.data=void 0,this.bitrateTest=!1,this.title=null,this.initSegment=null,this.endList=void 0,this.gap=void 0,this.urlId=0,this.type=e}get decryptdata(){const{levelkeys:e}=this;if(!e&&!this._decryptdata)return null;if(!this._decryptdata&&this.levelkeys&&!this.levelkeys.NONE){const t=this.levelkeys.identity;if(t)this._decryptdata=t.getDecryptData(this.sn);else{const n=Object.keys(this.levelkeys);if(n.length===1)return this._decryptdata=this.levelkeys[n[0]].getDecryptData(this.sn)}}return this._decryptdata}get end(){return this.start+this.duration}get endProgramDateTime(){if(this.programDateTime===null||!L(this.programDateTime))return null;const e=L(this.duration)?this.duration:0;return this.programDateTime+e*1e3}get encrypted(){var e;if((e=this._decryptdata)!=null&&e.encrypted)return!0;if(this.levelkeys){const t=Object.keys(this.levelkeys),n=t.length;if(n>1||n===1&&this.levelkeys[t[0]].encrypted)return!0}return!1}setKeyFormat(e){if(this.levelkeys){const t=this.levelkeys[e];t&&!this._decryptdata&&(this._decryptdata=t.getDecryptData(this.sn))}}abortRequests(){var e,t;(e=this.loader)==null||e.abort(),(t=this.keyLoader)==null||t.abort()}setElementaryStreamInfo(e,t,n,r,i,s=!1){const{elementaryStreams:u}=this,f=u[e];if(!f){u[e]={startPTS:t,endPTS:n,startDTS:r,endDTS:i,partial:s};return}f.startPTS=Math.min(f.startPTS,t),f.endPTS=Math.max(f.endPTS,n),f.startDTS=Math.min(f.startDTS,r),f.endDTS=Math.max(f.endDTS,i)}clearElementaryStreamInfo(){const{elementaryStreams:e}=this;e[Z.AUDIO]=null,e[Z.VIDEO]=null,e[Z.AUDIOVIDEO]=null}}class X extends B{constructor(e,t,n,r,i){super(n),this.fragOffset=0,this.duration=0,this.gap=!1,this.independent=!1,this.relurl=void 0,this.fragment=void 0,this.index=void 0,this.stats=new Ne,this.duration=e.decimalFloatingPoint("DURATION"),this.gap=e.bool("GAP"),this.independent=e.bool("INDEPENDENT"),this.relurl=e.enumeratedString("URI"),this.fragment=t,this.index=r;const s=e.enumeratedString("BYTERANGE");s&&this.setByteRange(s,i),i&&(this.fragOffset=i.fragOffset+i.duration)}get start(){return this.fragment.start+this.fragOffset}get end(){return this.start+this.duration}get loaded(){const{elementaryStreams:e}=this;return!!(e.audio||e.video||e.audiovideo)}}const me=10;class ee{constructor(e){this.PTSKnown=!1,this.alignedSliding=!1,this.averagetargetduration=void 0,this.endCC=0,this.endSN=0,this.fragments=void 0,this.fragmentHint=void 0,this.partList=null,this.dateRanges=void 0,this.live=!0,this.ageHeader=0,this.advancedDateTime=void 0,this.updated=!0,this.advanced=!0,this.availabilityDelay=void 0,this.misses=0,this.startCC=0,this.startSN=0,this.startTimeOffset=null,this.targetduration=0,this.totalduration=0,this.type=null,this.url=void 0,this.m3u8="",this.version=null,this.canBlockReload=!1,this.canSkipUntil=0,this.canSkipDateRanges=!1,this.skippedSegments=0,this.recentlyRemovedDateranges=void 0,this.partHoldBack=0,this.holdBack=0,this.partTarget=0,this.preloadHint=void 0,this.renditionReports=void 0,this.tuneInGoal=0,this.deltaUpdateFailed=void 0,this.driftStartTime=0,this.driftEndTime=0,this.driftStart=0,this.driftEnd=0,this.encryptedFragments=void 0,this.playlistParsingError=null,this.variableList=null,this.hasVariableRefs=!1,this.fragments=[],this.encryptedFragments=[],this.dateRanges={},this.url=e}reloaded(e){if(!e){this.advanced=!0,this.updated=!0;return}const t=this.lastPartSn-e.lastPartSn,n=this.lastPartIndex-e.lastPartIndex;this.updated=this.endSN!==e.endSN||!!n||!!t||!this.live,this.advanced=this.endSN>e.endSN||t>0||t===0&&n>0,this.updated||this.advanced?this.misses=Math.floor(e.misses*.6):this.misses=e.misses+1,this.availabilityDelay=e.availabilityDelay}get hasProgramDateTime(){return this.fragments.length?L(this.fragments[this.fragments.length-1].programDateTime):!1}get levelTargetDuration(){return this.averagetargetduration||this.targetduration||me}get drift(){const e=this.driftEndTime-this.driftStartTime;return e>0?(this.driftEnd-this.driftStart)*1e3/e:1}get edge(){return this.partEnd||this.fragmentEnd}get partEnd(){var e;return(e=this.partList)!=null&&e.length?this.partList[this.partList.length-1].end:this.fragmentEnd}get fragmentEnd(){var e;return(e=this.fragments)!=null&&e.length?this.fragments[this.fragments.length-1].end:0}get age(){return this.advancedDateTime?Math.max(Date.now()-this.advancedDateTime,0)/1e3:0}get lastPartIndex(){var e;return(e=this.partList)!=null&&e.length?this.partList[this.partList.length-1].index:-1}get lastPartSn(){var e;return(e=this.partList)!=null&&e.length?this.partList[this.partList.length-1].fragment.sn:this.endSN}}function g(a){return Uint8Array.from(atob(a),e=>e.charCodeAt(0))}function w(a){const e=Pe(a).subarray(0,16),t=new Uint8Array(16);return t.set(e,16-e.length),t}function Q(a){const e=function(n,r,i){const s=n[r];n[r]=n[i],n[i]=s};e(a,0,3),e(a,1,2),e(a,4,5),e(a,6,7)}function J(a){const e=a.split(":");let t=null;if(e[0]==="data"&&e.length===2){const n=e[1].split(";"),r=n[n.length-1].split(",");if(r.length===2){const i=r[0]==="base64",s=r[1];i?(n.splice(-1,1),t=g(s)):t=w(s)}}return t}function Pe(a){return Uint8Array.from(unescape(encodeURIComponent(a)),e=>e.charCodeAt(0))}const Ue=typeof self!="undefined"?self:void 0;var Xe={CLEARKEY:"org.w3.clearkey",FAIRPLAY:"com.apple.fps",PLAYREADY:"com.microsoft.playready",WIDEVINE:"com.widevine.alpha"},Ze={CLEARKEY:"org.w3.clearkey",FAIRPLAY:"com.apple.streamingkeydelivery",PLAYREADY:"com.microsoft.playready",WIDEVINE:"urn:uuid:edef8ba9-79d6-4ace-a3c8-27dcd51d21ed"};function lt(a){switch(a){case Ze.FAIRPLAY:return Xe.FAIRPLAY;case Ze.PLAYREADY:return Xe.PLAYREADY;case Ze.WIDEVINE:return Xe.WIDEVINE;case Ze.CLEARKEY:return Xe.CLEARKEY}}var at={CENC:"1077efecc0b24d02ace33c1e52e2fb4b",CLEARKEY:"e2719d58a985b3c9781ab030af78d30e",FAIRPLAY:"94ce86fb07ff4f43adb893d2fa968ca2",PLAYREADY:"9a04f07998404286ab92e65be0885f95",WIDEVINE:"edef8ba979d64acea3c827dcd51d21ed"};function ct(a){if(a===at.WIDEVINE)return Xe.WIDEVINE;if(a===at.PLAYREADY)return Xe.PLAYREADY;if(a===at.CENC||a===at.CLEARKEY)return Xe.CLEARKEY}function Ot(a){switch(a){case Xe.FAIRPLAY:return Ze.FAIRPLAY;case Xe.PLAYREADY:return Ze.PLAYREADY;case Xe.WIDEVINE:return Ze.WIDEVINE;case Xe.CLEARKEY:return Ze.CLEARKEY}}function Ut(a){const{drmSystems:e,widevineLicenseUrl:t}=a,n=e?[Xe.FAIRPLAY,Xe.WIDEVINE,Xe.PLAYREADY,Xe.CLEARKEY].filter(r=>!!e[r]):[];return!n[Xe.WIDEVINE]&&t&&n.push(Xe.WIDEVINE),n}const un=function(a){return Ue!=null&&(a=Ue.navigator)!=null&&a.requestMediaKeySystemAccess?self.navigator.requestMediaKeySystemAccess.bind(self.navigator):null}();function Ft(a,e,t,n){let r;switch(a){case Xe.FAIRPLAY:r=["cenc","sinf"];break;case Xe.WIDEVINE:case Xe.PLAYREADY:r=["cenc"];break;case Xe.CLEARKEY:r=["cenc","keyids"];break;default:throw new Error(`Unknown key-system: ${a}`)}return nt(r,e,t,n)}function nt(a,e,t,n){return[{initDataTypes:a,persistentState:n.persistentState||"optional",distinctiveIdentifier:n.distinctiveIdentifier||"optional",sessionTypes:n.sessionTypes||[n.sessionType||"temporary"],audioCapabilities:e.map(i=>({contentType:`audio/mp4; codecs="${i}"`,robustness:n.audioRobustness||"",encryptionScheme:n.audioEncryptionScheme||null})),videoCapabilities:t.map(i=>({contentType:`video/mp4; codecs="${i}"`,robustness:n.videoRobustness||"",encryptionScheme:n.videoEncryptionScheme||null}))}]}function Et(a){const e=new Uint16Array(a.buffer,a.byteOffset,a.byteLength/2),t=String.fromCharCode.apply(null,Array.from(e)),n=t.substring(t.indexOf("<"),t.length),s=new DOMParser().parseFromString(n,"text/xml").getElementsByTagName("KID")[0];if(s){const u=s.childNodes[0]?s.childNodes[0].nodeValue:s.getAttribute("VALUE");if(u){const f=g(u).subarray(0,16);return Q(f),f}}return null}function oe(a,e,t){return Uint8Array.prototype.slice?a.slice(e,t):new Uint8Array(Array.prototype.slice.call(a,e,t))}const _e=(a,e)=>e+10<=a.length&&a[e]===73&&a[e+1]===68&&a[e+2]===51&&a[e+3]<255&&a[e+4]<255&&a[e+6]<128&&a[e+7]<128&&a[e+8]<128&&a[e+9]<128,M=(a,e)=>e+10<=a.length&&a[e]===51&&a[e+1]===68&&a[e+2]===73&&a[e+3]<255&&a[e+4]<255&&a[e+6]<128&&a[e+7]<128&&a[e+8]<128&&a[e+9]<128,ce=(a,e)=>{const t=e;let n=0;for(;_e(a,e);){n+=10;const r=xe(a,e+6);n+=r,M(a,e+10)&&(n+=10),e+=n}if(n>0)return a.subarray(t,t+n)},xe=(a,e)=>{let t=0;return t=(a[e]&127)<<21,t|=(a[e+1]&127)<<14,t|=(a[e+2]&127)<<7,t|=a[e+3]&127,t},O=(a,e)=>_e(a,e)&&xe(a,e+6)+10<=a.length-e,C=a=>{const e=de(a);for(let t=0;t<e.length;t++){const n=e[t];if(k(n))return Be(n)}},k=a=>a&&a.key==="PRIV"&&a.info==="com.apple.streaming.transportStreamTimestamp",he=a=>{const e=String.fromCharCode(a[0],a[1],a[2],a[3]),t=xe(a,4),n=10;return{type:e,size:t,data:a.subarray(n,n+t)}},de=a=>{let e=0;const t=[];for(;_e(a,e);){const n=xe(a,e+6);e+=10;const r=e+n;for(;e+8<r;){const i=he(a.subarray(e)),s=K(i);s&&t.push(s),e+=i.size+10}M(a,e)&&(e+=10)}return t},K=a=>a.type==="PRIV"?Ie(a):a.type[0]==="W"?Me(a):$e(a),Ie=a=>{if(a.size<2)return;const e=Ye(a.data,!0),t=new Uint8Array(a.data.subarray(e.length+1));return{key:a.type,info:e,data:t.buffer}},$e=a=>{if(a.size<2)return;if(a.type==="TXXX"){let t=1;const n=Ye(a.data.subarray(t),!0);t+=n.length+1;const r=Ye(a.data.subarray(t));return{key:a.type,info:n,data:r}}const e=Ye(a.data.subarray(1));return{key:a.type,data:e}},Me=a=>{if(a.type==="WXXX"){if(a.size<2)return;let t=1;const n=Ye(a.data.subarray(t),!0);t+=n.length+1;const r=Ye(a.data.subarray(t));return{key:a.type,info:n,data:r}}const e=Ye(a.data);return{key:a.type,data:e}},Be=a=>{if(a.data.byteLength===8){const e=new Uint8Array(a.data),t=e[3]&1;let n=(e[4]<<23)+(e[5]<<15)+(e[6]<<7)+e[7];return n/=45,t&&(n+=4772185884e-2),Math.round(n)}},Ye=(a,e=!1)=>{const t=Je();if(t){const p=t.decode(a);if(e){const E=p.indexOf("\0");return E!==-1?p.substring(0,E):p}return p.replace(/\0/g,"")}const n=a.length;let r,i,s,u="",f=0;for(;f<n;){if(r=a[f++],r===0&&e)return u;if(r===0||r===3)continue;switch(r>>4){case 0:case 1:case 2:case 3:case 4:case 5:case 6:case 7:u+=String.fromCharCode(r);break;case 12:case 13:i=a[f++],u+=String.fromCharCode((r&31)<<6|i&63);break;case 14:i=a[f++],s=a[f++],u+=String.fromCharCode((r&15)<<12|(i&63)<<6|(s&63)<<0);break}}return u};let Qe;function Je(){if(!navigator.userAgent.includes("PlayStation 4"))return!Qe&&typeof self.TextDecoder!="undefined"&&(Qe=new self.TextDecoder("utf-8")),Qe}const dt={hexDump:function(a){let e="";for(let t=0;t<a.length;t++){let n=a[t].toString(16);n.length<2&&(n="0"+n),e+=n}return e}},At=Math.pow(2,32)-1,gt=[].push,Rt={video:1,audio:2,id3:3,text:4};function Ct(a){return String.fromCharCode.apply(null,a)}function x(a,e){const t=a[e]<<8|a[e+1];return t<0?65536+t:t}function A(a,e){const t=Y(a,e);return t<0?4294967296+t:t}function rt(a,e){let t=A(a,e);return t*=Math.pow(2,32),t+=A(a,e+4),t}function Y(a,e){return a[e]<<24|a[e+1]<<16|a[e+2]<<8|a[e+3]}function Ce(a,e,t){a[e]=t>>24,a[e+1]=t>>16&255,a[e+2]=t>>8&255,a[e+3]=t&255}function vn(a){const e=a.byteLength;for(let t=0;t<e;){const n=A(a,t);if(n>8&&a[t+4]===109&&a[t+5]===111&&a[t+6]===111&&a[t+7]===102)return!0;t=n>1?t+n:e}return!1}function ke(a,e){const t=[];if(!e.length)return t;const n=a.byteLength;for(let r=0;r<n;){const i=A(a,r),s=Ct(a.subarray(r+4,r+8)),u=i>1?r+i:n;if(s===e[0])if(e.length===1)t.push(a.subarray(r+8,u));else{const f=ke(a.subarray(r+8,u),e.slice(1));f.length&&gt.apply(t,f)}r=u}return t}function He(a){const e=[],t=a[0];let n=8;const r=A(a,n);n+=4;let i=0,s=0;t===0?(i=A(a,n),s=A(a,n+4),n+=8):(i=rt(a,n),s=rt(a,n+8),n+=16),n+=2;let u=a.length+s;const f=x(a,n);n+=2;for(let p=0;p<f;p++){let E=n;const R=A(a,E);E+=4;const G=R&2147483647;if((R&2147483648)>>>31===1)return b.warn("SIDX has hierarchical references (not supported)"),null;const se=A(a,E);E+=4,e.push({referenceSize:G,subsegmentDuration:se,info:{duration:se/r,start:u,end:u+G-1}}),u+=G,E+=4,n=E}return{earliestPresentationTime:i,timescale:r,version:t,referencesCount:f,references:e}}function We(a){const e=[],t=ke(a,["moov","trak"]);for(let r=0;r<t.length;r++){const i=t[r],s=ke(i,["tkhd"])[0];if(s){let u=s[0];const f=A(s,u===0?12:20),p=ke(i,["mdia","mdhd"])[0];if(p){u=p[0];const E=A(p,u===0?12:20),R=ke(i,["mdia","hdlr"])[0];if(R){const G=Ct(R.subarray(8,12)),ue={soun:Z.AUDIO,vide:Z.VIDEO}[G];if(ue){const se=ke(i,["mdia","minf","stbl","stsd"])[0],ge=te(se);e[f]={timescale:E,type:ue},e[ue]=ve({timescale:E,id:f},ge)}}}}}return ke(a,["moov","mvex","trex"]).forEach(r=>{const i=A(r,4),s=e[i];s&&(s.default={duration:A(r,12),flags:A(r,20)})}),e}function te(a){const e=a.subarray(8),t=e.subarray(86),n=Ct(e.subarray(4,8));let r=n;const i=n==="enca"||n==="encv";if(i){const u=ke(e,[n])[0].subarray(n==="enca"?28:78);ke(u,["sinf"]).forEach(p=>{const E=ke(p,["schm"])[0];if(E){const R=Ct(E.subarray(4,8));if(R==="cbcs"||R==="cenc"){const G=ke(p,["frma"])[0];G&&(r=Ct(G))}}})}switch(r){case"avc1":case"avc2":case"avc3":case"avc4":{const s=ke(t,["avcC"])[0];r+="."+De(s[1])+De(s[2])+De(s[3]);break}case"mp4a":{const s=ke(e,[n])[0],u=ke(s.subarray(28),["esds"])[0];if(u&&u.length>12){let f=4;if(u[f++]!==3)break;f=pe(u,f),f+=2;const p=u[f++];if(p&128&&(f+=2),p&64&&(f+=u[f++]),u[f++]!==4)break;f=pe(u,f);const E=u[f++];if(E===64)r+="."+De(E);else break;if(f+=12,u[f++]!==5)break;f=pe(u,f);const R=u[f++];let G=(R&248)>>3;G===31&&(G+=1+((R&7)<<3)+((u[f]&224)>>5)),r+="."+G}break}case"hvc1":case"hev1":{const s=ke(t,["hvcC"])[0],u=s[1],f=["","A","B","C"][u>>6],p=u&31,E=A(s,2),R=(u&32)>>5?"H":"L",G=s[12],ue=s.subarray(6,12);r+="."+f+p,r+="."+E.toString(16).toUpperCase(),r+="."+R+G;let se="";for(let ge=ue.length;ge--;){const Ae=ue[ge];(Ae||se)&&(se="."+Ae.toString(16).toUpperCase()+se)}r+=se;break}case"dvh1":case"dvhe":{const s=ke(t,["dvcC"])[0],u=s[2]>>1&127,f=s[2]<<5&32|s[3]>>3&31;r+="."+ze(u)+"."+ze(f);break}case"vp09":{const s=ke(t,["vpcC"])[0],u=s[4],f=s[5],p=s[6]>>4&15;r+="."+ze(u)+"."+ze(f)+"."+ze(p);break}case"av01":{const s=ke(t,["av1C"])[0],u=s[1]>>>5,f=s[1]&31,p=s[2]>>>7?"H":"M",E=(s[2]&64)>>6,R=(s[2]&32)>>5,G=u===2&&E?R?12:10:E?10:8,ue=(s[2]&16)>>4,se=(s[2]&8)>>3,ge=(s[2]&4)>>2,Ae=s[2]&3;r+="."+u+"."+ze(f)+p+"."+ze(G)+"."+ue+"."+se+ge+Ae+"."+ze(1)+"."+ze(1)+"."+ze(1)+"."+0;break}}return{codec:r,encrypted:i}}function pe(a,e){const t=e+5;for(;a[e++]&128&&e<t;);return e}function De(a){return("0"+a.toString(16).toUpperCase()).slice(-2)}function ze(a){return(a<10?"0":"")+a}function V(a,e){if(!a||!e)return a;const t=e.keyId;return t&&e.isCommonEncryption&&ke(a,["moov","trak"]).forEach(r=>{const s=ke(r,["mdia","minf","stbl","stsd"])[0].subarray(8);let u=ke(s,["enca"]);const f=u.length>0;f||(u=ke(s,["encv"])),u.forEach(p=>{const E=f?p.subarray(28):p.subarray(78);ke(E,["sinf"]).forEach(G=>{const ue=kt(G);if(ue){const se=ue.subarray(8,24);se.some(ge=>ge!==0)||(b.log(`[eme] Patching keyId in 'enc${f?"a":"v"}>sinf>>tenc' box: ${dt.hexDump(se)} -> ${dt.hexDump(t)}`),ue.set(t,8))}})})}),a}function kt(a){const e=ke(a,["schm"])[0];if(e){const t=Ct(e.subarray(4,8));if(t==="cbcs"||t==="cenc")return ke(a,["schi","tenc"])[0]}return null}function Le(a,e){return ke(e,["moof","traf"]).reduce((t,n)=>{const r=ke(n,["tfdt"])[0],i=r[0],s=ke(n,["tfhd"]).reduce((u,f)=>{const p=A(f,4),E=a[p];if(E){let R=A(r,4);if(i===1){if(R===At)return b.warn("[mp4-demuxer]: Ignoring assumed invalid signed 64-bit track fragment decode time"),u;R*=At+1,R+=A(r,8)}const G=E.timescale||9e4,ue=R/G;if(L(ue)&&(u===null||ue<u))return ue}return u},null);return s!==null&&L(s)&&(t===null||s<t)?s:t},null)}function jt(a,e){let t=0,n=0,r=0;const i=ke(a,["moof","traf"]);for(let s=0;s<i.length;s++){const u=i[s],f=ke(u,["tfhd"])[0],p=A(f,4),E=e[p];if(!E)continue;const R=E.default,G=A(f,0)|(R==null?void 0:R.flags);let ue=R==null?void 0:R.duration;G&8&&(G&2?ue=A(f,12):ue=A(f,8));const se=E.timescale||9e4,ge=ke(u,["trun"]);for(let Ae=0;Ae<ge.length;Ae++){if(t=ln(ge[Ae]),!t&&ue){const Ve=A(ge[Ae],4);t=ue*Ve}E.type===Z.VIDEO?n+=t/se:E.type===Z.AUDIO&&(r+=t/se)}}if(n===0&&r===0){let s=1/0,u=0,f=0;const p=ke(a,["sidx"]);for(let E=0;E<p.length;E++){const R=He(p[E]);if(R!=null&&R.references){s=Math.min(s,R.earliestPresentationTime/R.timescale);const G=R.references.reduce((ue,se)=>ue+se.info.duration||0,0);u=Math.max(u,G+R.earliestPresentationTime/R.timescale),f=u-s}}if(f&&L(f))return f}return n||r}function ln(a){const e=A(a,0);let t=8;e&1&&(t+=4),e&4&&(t+=4);let n=0;const r=A(a,4);for(let i=0;i<r;i++){if(e&256){const s=A(a,t);n+=s,t+=4}e&512&&(t+=4),e&1024&&(t+=4),e&2048&&(t+=4)}return n}function bt(a,e,t){ke(e,["moof","traf"]).forEach(n=>{ke(n,["tfhd"]).forEach(r=>{const i=A(r,4),s=a[i];if(!s)return;const u=s.timescale||9e4;ke(n,["tfdt"]).forEach(f=>{const p=f[0],E=t*u;if(E){let R=A(f,4);if(p===0)R-=E,R=Math.max(R,0),Ce(f,4,R);else{R*=Math.pow(2,32),R+=A(f,8),R-=E,R=Math.max(R,0);const G=Math.floor(R/(At+1)),ue=Math.floor(R%(At+1));Ce(f,4,G),Ce(f,8,ue)}}})})})}function Lt(a){const e={valid:null,remainder:null},t=ke(a,["moof"]);if(t.length<2)return e.remainder=a,e;const n=t[t.length-1];return e.valid=oe(a,0,n.byteOffset-8),e.remainder=oe(a,n.byteOffset-8),e}function ot(a,e){const t=new Uint8Array(a.length+e.length);return t.set(a),t.set(e,a.length),t}function ft(a,e){const t=[],n=e.samples,r=e.timescale,i=e.id;let s=!1;return ke(n,["moof"]).map(f=>{const p=f.byteOffset-8;ke(f,["traf"]).map(R=>{const G=ke(R,["tfdt"]).map(ue=>{const se=ue[0];let ge=A(ue,4);return se===1&&(ge*=Math.pow(2,32),ge+=A(ue,8)),ge/r})[0];return G!==void 0&&(a=G),ke(R,["tfhd"]).map(ue=>{const se=A(ue,4),ge=A(ue,0)&16777215,Ae=(ge&1)!==0,Ve=(ge&2)!==0,vt=(ge&8)!==0;let pt=0;const $t=(ge&16)!==0;let St=0;const an=(ge&32)!==0;let zt=8;se===i&&(Ae&&(zt+=8),Ve&&(zt+=4),vt&&(pt=A(ue,zt),zt+=4),$t&&(St=A(ue,zt),zt+=4),an&&(zt+=4),e.type==="video"&&(s=Gt(e.codec)),ke(R,["trun"]).map(bn=>{const Fn=bn[0],en=A(bn,0)&16777215,xn=(en&1)!==0;let yr=0;const Hn=(en&4)!==0,_r=(en&256)!==0;let gr=0;const or=(en&512)!==0;let Nr=0;const Xr=(en&1024)!==0,Vn=(en&2048)!==0;let jn=0;const Ur=A(bn,4);let Ar=8;xn&&(yr=A(bn,Ar),Ar+=4),Hn&&(Ar+=4);let Vr=yr+p;for(let _i=0;_i<Ur;_i++){if(_r?(gr=A(bn,Ar),Ar+=4):gr=pt,or?(Nr=A(bn,Ar),Ar+=4):Nr=St,Xr&&(Ar+=4),Vn&&(Fn===0?jn=A(bn,Ar):jn=Y(bn,Ar),Ar+=4),e.type===Z.VIDEO){let Li=0;for(;Li<Nr;){const ki=A(n,Vr);if(Vr+=4,yn(s,n[Vr])){const Yi=n.subarray(Vr,Vr+ki);nn(Yi,s?2:1,a+jn/r,t)}Vr+=ki,Li+=ki+4}}a+=gr/r}}))})})}),t}function Gt(a){if(!a)return!1;const e=a.indexOf("."),t=e<0?a:a.substring(0,e);return t==="hvc1"||t==="hev1"||t==="dvh1"||t==="dvhe"}function yn(a,e){if(a){const t=e>>1&63;return t===39||t===40}else return(e&31)===6}function nn(a,e,t,n){const r=je(a);let i=0;i+=e;let s=0,u=0,f=0;for(;i<r.length;){s=0;do{if(i>=r.length)break;f=r[i++],s+=f}while(f===255);u=0;do{if(i>=r.length)break;f=r[i++],u+=f}while(f===255);const p=r.length-i;let E=i;if(u<p)i+=u;else if(u>p){b.error(`Malformed SEI payload. ${u} is too small, only ${p} bytes left to parse.`);break}if(s===4){if(r[E++]===181){const G=x(r,E);if(E+=2,G===49){const ue=A(r,E);if(E+=4,ue===1195456820){const se=r[E++];if(se===3){const ge=r[E++],Ae=31&ge,Ve=64&ge,vt=Ve?2+Ae*3:0,pt=new Uint8Array(vt);if(Ve){pt[0]=ge;for(let $t=1;$t<vt;$t++)pt[$t]=r[E++]}n.push({type:se,payloadType:s,pts:t,bytes:pt})}}}}}else if(s===5&&u>16){const R=[];for(let se=0;se<16;se++){const ge=r[E++].toString(16);R.push(ge.length==1?"0"+ge:ge),(se===3||se===5||se===7||se===9)&&R.push("-")}const G=u-16,ue=new Uint8Array(G);for(let se=0;se<G;se++)ue[se]=r[E++];n.push({payloadType:s,pts:t,uuid:R.join(""),userData:Ye(ue),userDataBytes:ue})}}}function je(a){const e=a.byteLength,t=[];let n=1;for(;n<e-2;)a[n]===0&&a[n+1]===0&&a[n+2]===3?(t.push(n+2),n+=2):n++;if(t.length===0)return a;const r=e-t.length,i=new Uint8Array(r);let s=0;for(n=0;n<r;s++,n++)s===t[0]&&(s++,t.shift()),i[n]=a[s];return i}function we(a){const e=a[0];let t="",n="",r=0,i=0,s=0,u=0,f=0,p=0;if(e===0){for(;Ct(a.subarray(p,p+1))!=="\0";)t+=Ct(a.subarray(p,p+1)),p+=1;for(t+=Ct(a.subarray(p,p+1)),p+=1;Ct(a.subarray(p,p+1))!=="\0";)n+=Ct(a.subarray(p,p+1)),p+=1;n+=Ct(a.subarray(p,p+1)),p+=1,r=A(a,12),i=A(a,16),u=A(a,20),f=A(a,24),p=28}else if(e===1){p+=4,r=A(a,p),p+=4;const R=A(a,p);p+=4;const G=A(a,p);for(p+=4,s=Yo(2,32)*R+G,$(s)||(s=Number.MAX_SAFE_INTEGER,b.warn("Presentation time exceeds safe integer limit and wrapped to max safe integer in parsing emsg box")),u=A(a,p),p+=4,f=A(a,p),p+=4;Ct(a.subarray(p,p+1))!=="\0";)t+=Ct(a.subarray(p,p+1)),p+=1;for(t+=Ct(a.subarray(p,p+1)),p+=1;Ct(a.subarray(p,p+1))!=="\0";)n+=Ct(a.subarray(p,p+1)),p+=1;n+=Ct(a.subarray(p,p+1)),p+=1}const E=a.subarray(p,a.byteLength);return{schemeIdUri:t,value:n,timeScale:r,presentationTime:s,presentationTimeDelta:i,eventDuration:u,id:f,payload:E}}function ut(a,...e){const t=e.length;let n=8,r=t;for(;r--;)n+=e[r].byteLength;const i=new Uint8Array(n);for(i[0]=n>>24&255,i[1]=n>>16&255,i[2]=n>>8&255,i[3]=n&255,i.set(a,4),r=0,n=8;r<t;r++)i.set(e[r],n),n+=e[r].byteLength;return i}function it(a,e,t){if(a.byteLength!==16)throw new RangeError("Invalid system id");let n,r;if(e){n=1,r=new Uint8Array(e.length*16);for(let u=0;u<e.length;u++){const f=e[u];if(f.byteLength!==16)throw new RangeError("Invalid key");r.set(f,u*16)}}else n=0,r=new Uint8Array;let i;n>0?(i=new Uint8Array(4),e.length>0&&new DataView(i.buffer).setUint32(0,e.length,!1)):i=new Uint8Array;const s=new Uint8Array(4);return t&&t.byteLength>0&&new DataView(s.buffer).setUint32(0,t.byteLength,!1),ut([112,115,115,104],new Uint8Array([n,0,0,0]),a,i,r,s,t||new Uint8Array)}function yt(a){const e=[];if(a instanceof ArrayBuffer){const t=a.byteLength;let n=0;for(;n+32<t;){const r=new DataView(a,n),i=Mt(r);e.push(i),n+=i.size}}return e}function Mt(a){const e=a.getUint32(0),t=a.byteOffset,n=a.byteLength;if(n<e)return{offset:t,size:n};if(a.getUint32(4)!==1886614376)return{offset:t,size:e};const i=a.getUint32(8)>>>24;if(i!==0&&i!==1)return{offset:t,size:e};const s=a.buffer,u=dt.hexDump(new Uint8Array(s,t+12,16)),f=a.getUint32(28);let p=null,E=null;if(i===0){if(e-32<f||f<22)return{offset:t,size:e};E=new Uint8Array(s,t+32,f)}else if(i===1){if(!f||n<t+32+f*16+16)return{offset:t,size:e};p=[];for(let R=0;R<f;R++)p.push(new Uint8Array(s,t+32+R*16,16))}return{version:i,systemId:u,kids:p,data:E,offset:t,size:e}}let Kt={};class Pt{static clearKeyUriToKeyIdMap(){Kt={}}constructor(e,t,n,r=[1],i=null){this.uri=void 0,this.method=void 0,this.keyFormat=void 0,this.keyFormatVersions=void 0,this.encrypted=void 0,this.isCommonEncryption=void 0,this.iv=null,this.key=null,this.keyId=null,this.pssh=null,this.method=e,this.uri=t,this.keyFormat=n,this.keyFormatVersions=r,this.iv=i,this.encrypted=e?e!=="NONE":!1,this.isCommonEncryption=this.encrypted&&e!=="AES-128"}isSupported(){if(this.method){if(this.method==="AES-128"||this.method==="NONE")return!0;if(this.keyFormat==="identity")return this.method==="SAMPLE-AES";switch(this.keyFormat){case Ze.FAIRPLAY:case Ze.WIDEVINE:case Ze.PLAYREADY:case Ze.CLEARKEY:return["ISO-23001-7","SAMPLE-AES","SAMPLE-AES-CENC","SAMPLE-AES-CTR"].indexOf(this.method)!==-1}}return!1}getDecryptData(e){if(!this.encrypted||!this.uri)return null;if(this.method==="AES-128"&&this.uri&&!this.iv){typeof e!="number"&&(this.method==="AES-128"&&!this.iv&&b.warn(`missing IV for initialization segment with method="${this.method}" - compliance issue`),e=0);const n=Zt(e);return new Pt(this.method,this.uri,"identity",this.keyFormatVersions,n)}const t=J(this.uri);if(t)switch(this.keyFormat){case Ze.WIDEVINE:this.pssh=t,t.length>=22&&(this.keyId=t.subarray(t.length-22,t.length-6));break;case Ze.PLAYREADY:{const n=new Uint8Array([154,4,240,121,152,64,66,134,171,146,230,91,224,136,95,149]);this.pssh=it(n,null,t),this.keyId=Et(t);break}default:{let n=t.subarray(0,16);if(n.length!==16){const r=new Uint8Array(16);r.set(n,16-n.length),n=r}this.keyId=n;break}}if(!this.keyId||this.keyId.byteLength!==16){let n=Kt[this.uri];if(!n){const r=Object.keys(Kt).length%Number.MAX_SAFE_INTEGER;n=new Uint8Array(16),new DataView(n.buffer,12,4).setUint32(0,r),Kt[this.uri]=n}this.keyId=n}return this}}function Zt(a){const e=new Uint8Array(16);for(let t=12;t<16;t++)e[t]=a>>8*(15-t)&255;return e}const Yt=/\{\$([a-zA-Z0-9-_]+)\}/g;function Nt(a){return Yt.test(a)}function xt(a,e,t){if(a.variableList!==null||a.hasVariableRefs)for(let n=t.length;n--;){const r=t[n],i=e[r];i&&(e[r]=rn(a,i))}}function rn(a,e){if(a.variableList!==null||a.hasVariableRefs){const t=a.variableList;return e.replace(Yt,n=>{const r=n.substring(2,n.length-1),i=t==null?void 0:t[r];return i===void 0?(a.playlistParsingError||(a.playlistParsingError=new Error(`Missing preceding EXT-X-DEFINE tag for Variable Reference: "${r}"`)),n):i})}return e}function Qt(a,e,t){let n=a.variableList;n||(a.variableList=n={});let r,i;if("QUERYPARAM"in e){r=e.QUERYPARAM;try{const s=new self.URL(t).searchParams;if(s.has(r))i=s.get(r);else throw new Error(`"${r}" does not match any query parameter in URI: "${t}"`)}catch(s){a.playlistParsingError||(a.playlistParsingError=new Error(`EXT-X-DEFINE QUERYPARAM: ${s.message}`))}}else r=e.NAME,i=e.VALUE;r in n?a.playlistParsingError||(a.playlistParsingError=new Error(`EXT-X-DEFINE duplicate Variable Name declarations: "${r}"`)):n[r]=i||""}function hn(a,e,t){const n=e.IMPORT;if(t&&n in t){let r=a.variableList;r||(a.variableList=r={}),r[n]=t[n]}else a.playlistParsingError||(a.playlistParsingError=new Error(`EXT-X-DEFINE IMPORT attribute not found in Multivariant Playlist: "${n}"`))}function zn(a=!0){return typeof self=="undefined"?void 0:(a||!self.MediaSource)&&self.ManagedMediaSource||self.MediaSource||self.WebKitMediaSource}function Qn(a){return typeof self!="undefined"&&a===self.ManagedMediaSource}const On={audio:{a3ds:1,"ac-3":.95,"ac-4":1,alac:.9,alaw:1,dra1:1,"dts+":1,"dts-":1,dtsc:1,dtse:1,dtsh:1,"ec-3":.9,enca:1,fLaC:.9,flac:.9,FLAC:.9,g719:1,g726:1,m4ae:1,mha1:1,mha2:1,mhm1:1,mhm2:1,mlpa:1,mp4a:1,"raw ":1,Opus:1,opus:1,samr:1,sawb:1,sawp:1,sevc:1,sqcp:1,ssmv:1,twos:1,ulaw:1},video:{avc1:1,avc2:1,avc3:1,avc4:1,avcp:1,av01:.8,drac:1,dva1:1,dvav:1,dvh1:.7,dvhe:.7,encv:1,hev1:.75,hvc1:.75,mjp2:1,mp4v:1,mvc1:1,mvc2:1,mvc3:1,mvc4:1,resv:1,rv60:1,s263:1,svc1:1,svc2:1,"vc-1":1,vp08:1,vp09:.9},text:{stpp:1,wvtt:1}};function Vt(a,e){const t=On[e];return!!t&&!!t[a.slice(0,4)]}function qe(a,e,t=!0){return!a.split(",").some(n=>!tt(n,e,t))}function tt(a,e,t=!0){var n;const r=zn(t);return(n=r==null?void 0:r.isTypeSupported(ht(a,e)))!=null?n:!1}function ht(a,e){return`${e}/mp4;codecs="${a}"`}function wt(a){if(a){const e=a.substring(0,4);return On.video[e]}return 2}function mt(a){return a.split(",").reduce((e,t)=>{const n=On.video[t];return n?(n*2+e)/(e?3:2):(On.audio[t]+e)/(e?2:1)},0)}const It={};function Tt(a,e=!0){if(It[a])return It[a];const t={flac:["flac","fLaC","FLAC"],opus:["opus","Opus"]}[a];for(let n=0;n<t.length;n++)if(tt(t[n],"audio",e))return It[a]=t[n],t[n];return a}const Wt=/flac|opus/i;function mn(a,e=!0){return a.replace(Wt,t=>Tt(t.toLowerCase(),e))}function cn(a,e){return a&&a!=="mp4a"?a:e&&e.split(",")[0]}function Pn(a){const e=a.split(",");for(let t=0;t<e.length;t++){const n=e[t].split(".");if(n.length>2){let r=n.shift()+".";r+=parseInt(n.shift()).toString(16),r+=("000"+parseInt(n.shift()).toString(16)).slice(-4),e[t]=r}}return e.join(",")}const kn=/#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,Un=/#EXT-X-MEDIA:(.*)/g,dn=/^#EXT(?:INF|-X-TARGETDURATION):/m,Jt=new RegExp([/#EXTINF:\s*(\d*(?:\.\d+)?)(?:,(.*)\s+)?/.source,/(?!#) *(\S[^\r\n]*)/.source,/#EXT-X-BYTERANGE:*(.+)/.source,/#EXT-X-PROGRAM-DATE-TIME:(.+)/.source,/#.*/.source].join("|"),"g"),Mn=new RegExp([/#(EXTM3U)/.source,/#EXT-X-(DATERANGE|DEFINE|KEY|MAP|PART|PART-INF|PLAYLIST-TYPE|PRELOAD-HINT|RENDITION-REPORT|SERVER-CONTROL|SKIP|START):(.+)/.source,/#EXT-X-(BITRATE|DISCONTINUITY-SEQUENCE|MEDIA-SEQUENCE|TARGETDURATION|VERSION): *(\d+)/.source,/#EXT-X-(DISCONTINUITY|ENDLIST|GAP|INDEPENDENT-SEGMENTS)/.source,/(#)([^:]*):(.*)/.source,/(#)(.*)(?:.*)\r?\n?/.source].join("|"));class wn{static findGroup(e,t){for(let n=0;n<e.length;n++){const r=e[n];if(r.id===t)return r}}static resolve(e,t){return ie.buildAbsoluteURL(t,e,{alwaysNormalize:!0})}static isMediaPlaylist(e){return dn.test(e)}static parseMasterPlaylist(e,t){const n=Nt(e),r={contentSteering:null,levels:[],playlistParsingError:null,sessionData:null,sessionKeys:null,startTimeOffset:null,variableList:null,hasVariableRefs:n},i=[];kn.lastIndex=0;let s;for(;(s=kn.exec(e))!=null;)if(s[1]){var u;const p=new U(s[1]);xt(r,p,["CODECS","SUPPLEMENTAL-CODECS","ALLOWED-CPC","PATHWAY-ID","STABLE-VARIANT-ID","AUDIO","VIDEO","SUBTITLES","CLOSED-CAPTIONS","NAME"]);const E=rn(r,s[2]),R={attrs:p,bitrate:p.decimalInteger("BANDWIDTH")||p.decimalInteger("AVERAGE-BANDWIDTH"),name:p.NAME,url:wn.resolve(E,t)},G=p.decimalResolution("RESOLUTION");G&&(R.width=G.width,R.height=G.height),Wn(p.CODECS,R),(u=R.unknownCodecs)!=null&&u.length||i.push(R),r.levels.push(R)}else if(s[3]){const p=s[3],E=s[4];switch(p){case"SESSION-DATA":{const R=new U(E);xt(r,R,["DATA-ID","LANGUAGE","VALUE","URI"]);const G=R["DATA-ID"];G&&(r.sessionData===null&&(r.sessionData={}),r.sessionData[G]=R);break}case"SESSION-KEY":{const R=rr(E,t,r);R.encrypted&&R.isSupported()?(r.sessionKeys===null&&(r.sessionKeys=[]),r.sessionKeys.push(R)):b.warn(`[Keys] Ignoring invalid EXT-X-SESSION-KEY tag: "${E}"`);break}case"DEFINE":{{const R=new U(E);xt(r,R,["NAME","VALUE","QUERYPARAM"]),Qt(r,R,t)}break}case"CONTENT-STEERING":{const R=new U(E);xt(r,R,["SERVER-URI","PATHWAY-ID"]),r.contentSteering={uri:wn.resolve(R["SERVER-URI"],t),pathwayId:R["PATHWAY-ID"]||"."};break}case"START":{r.startTimeOffset=Yn(E);break}}}const f=i.length>0&&i.length<r.levels.length;return r.levels=f?i:r.levels,r.levels.length===0&&(r.playlistParsingError=new Error("no levels found in manifest")),r}static parseMasterPlaylistMedia(e,t,n){let r;const i={},s=n.levels,u={AUDIO:s.map(p=>({id:p.attrs.AUDIO,audioCodec:p.audioCodec})),SUBTITLES:s.map(p=>({id:p.attrs.SUBTITLES,textCodec:p.textCodec})),"CLOSED-CAPTIONS":[]};let f=0;for(Un.lastIndex=0;(r=Un.exec(e))!==null;){const p=new U(r[1]),E=p.TYPE;if(E){const R=u[E],G=i[E]||[];i[E]=G,xt(n,p,["URI","GROUP-ID","LANGUAGE","ASSOC-LANGUAGE","STABLE-RENDITION-ID","NAME","INSTREAM-ID","CHARACTERISTICS","CHANNELS"]);const ue=p.LANGUAGE,se=p["ASSOC-LANGUAGE"],ge=p.CHANNELS,Ae=p.CHARACTERISTICS,Ve=p["INSTREAM-ID"],vt={attrs:p,bitrate:0,id:f++,groupId:p["GROUP-ID"]||"",name:p.NAME||ue||"",type:E,default:p.bool("DEFAULT"),autoselect:p.bool("AUTOSELECT"),forced:p.bool("FORCED"),lang:ue,url:p.URI?wn.resolve(p.URI,t):""};if(se&&(vt.assocLang=se),ge&&(vt.channels=ge),Ae&&(vt.characteristics=Ae),Ve&&(vt.instreamId=Ve),R!=null&&R.length){const pt=wn.findGroup(R,vt.groupId)||R[0];Jn(vt,pt,"audioCodec"),Jn(vt,pt,"textCodec")}G.push(vt)}}return i}static parseLevelPlaylist(e,t,n,r,i,s){const u=new ee(t),f=u.fragments;let p=null,E=0,R=0,G=0,ue=0,se=null,ge=new ne(r,t),Ae,Ve,vt,pt=-1,$t=!1,St=null;for(Jt.lastIndex=0,u.m3u8=e,u.hasVariableRefs=Nt(e);(Ae=Jt.exec(e))!==null;){$t&&($t=!1,ge=new ne(r,t),ge.start=G,ge.sn=E,ge.cc=ue,ge.level=n,p&&(ge.initSegment=p,ge.rawProgramDateTime=p.rawProgramDateTime,p.rawProgramDateTime=null,St&&(ge.setByteRange(St),St=null)));const Fn=Ae[1];if(Fn){ge.duration=parseFloat(Fn);const en=(" "+Ae[2]).slice(1);ge.title=en||null,ge.tagList.push(en?["INF",Fn,en]:["INF",Fn])}else if(Ae[3]){if(L(ge.duration)){ge.start=G,vt&&An(ge,vt,u),ge.sn=E,ge.level=n,ge.cc=ue,f.push(ge);const en=(" "+Ae[3]).slice(1);ge.relurl=rn(u,en),qn(ge,se),se=ge,G+=ge.duration,E++,R=0,$t=!0}}else if(Ae[4]){const en=(" "+Ae[4]).slice(1);se?ge.setByteRange(en,se):ge.setByteRange(en)}else if(Ae[5])ge.rawProgramDateTime=(" "+Ae[5]).slice(1),ge.tagList.push(["PROGRAM-DATE-TIME",ge.rawProgramDateTime]),pt===-1&&(pt=f.length);else{if(Ae=Ae[0].match(Mn),!Ae){b.warn("No matches on slow regex match for level playlist!");continue}for(Ve=1;Ve<Ae.length&&typeof Ae[Ve]=="undefined";Ve++);const en=(" "+Ae[Ve]).slice(1),xn=(" "+Ae[Ve+1]).slice(1),yr=Ae[Ve+2]?(" "+Ae[Ve+2]).slice(1):"";switch(en){case"PLAYLIST-TYPE":u.type=xn.toUpperCase();break;case"MEDIA-SEQUENCE":E=u.startSN=parseInt(xn);break;case"SKIP":{const Hn=new U(xn);xt(u,Hn,["RECENTLY-REMOVED-DATERANGES"]);const _r=Hn.decimalInteger("SKIPPED-SEGMENTS");if(L(_r)){u.skippedSegments=_r;for(let or=_r;or--;)f.unshift(null);E+=_r}const gr=Hn.enumeratedString("RECENTLY-REMOVED-DATERANGES");gr&&(u.recentlyRemovedDateranges=gr.split(" "));break}case"TARGETDURATION":u.targetduration=Math.max(parseInt(xn),1);break;case"VERSION":u.version=parseInt(xn);break;case"INDEPENDENT-SEGMENTS":case"EXTM3U":break;case"ENDLIST":u.live=!1;break;case"#":(xn||yr)&&ge.tagList.push(yr?[xn,yr]:[xn]);break;case"DISCONTINUITY":ue++,ge.tagList.push(["DIS"]);break;case"GAP":ge.gap=!0,ge.tagList.push([en]);break;case"BITRATE":ge.tagList.push([en,xn]);break;case"DATERANGE":{const Hn=new U(xn);xt(u,Hn,["ID","CLASS","START-DATE","END-DATE","SCTE35-CMD","SCTE35-OUT","SCTE35-IN"]),xt(u,Hn,Hn.clientAttrs);const _r=new Se(Hn,u.dateRanges[Hn.ID]);_r.isValid||u.skippedSegments?u.dateRanges[_r.id]=_r:b.warn(`Ignoring invalid DATERANGE tag: "${xn}"`),ge.tagList.push(["EXT-X-DATERANGE",xn]);break}case"DEFINE":{{const Hn=new U(xn);xt(u,Hn,["NAME","VALUE","IMPORT","QUERYPARAM"]),"IMPORT"in Hn?hn(u,Hn,s):Qt(u,Hn,t)}break}case"DISCONTINUITY-SEQUENCE":ue=parseInt(xn);break;case"KEY":{const Hn=rr(xn,t,u);if(Hn.isSupported()){if(Hn.method==="NONE"){vt=void 0;break}vt||(vt={}),vt[Hn.keyFormat]&&(vt=o({},vt)),vt[Hn.keyFormat]=Hn}else b.warn(`[Keys] Ignoring invalid EXT-X-KEY tag: "${xn}"`);break}case"START":u.startTimeOffset=Yn(xn);break;case"MAP":{const Hn=new U(xn);if(xt(u,Hn,["BYTERANGE","URI"]),ge.duration){const _r=new ne(r,t);wr(_r,Hn,n,vt),p=_r,ge.initSegment=p,p.rawProgramDateTime&&!ge.rawProgramDateTime&&(ge.rawProgramDateTime=p.rawProgramDateTime)}else{const _r=ge.byteRangeEndOffset;if(_r){const gr=ge.byteRangeStartOffset;St=`${_r-gr}@${gr}`}else St=null;wr(ge,Hn,n,vt),p=ge,$t=!0}break}case"SERVER-CONTROL":{const Hn=new U(xn);u.canBlockReload=Hn.bool("CAN-BLOCK-RELOAD"),u.canSkipUntil=Hn.optionalFloat("CAN-SKIP-UNTIL",0),u.canSkipDateRanges=u.canSkipUntil>0&&Hn.bool("CAN-SKIP-DATERANGES"),u.partHoldBack=Hn.optionalFloat("PART-HOLD-BACK",0),u.holdBack=Hn.optionalFloat("HOLD-BACK",0);break}case"PART-INF":{const Hn=new U(xn);u.partTarget=Hn.decimalFloatingPoint("PART-TARGET");break}case"PART":{let Hn=u.partList;Hn||(Hn=u.partList=[]);const _r=R>0?Hn[Hn.length-1]:void 0,gr=R++,or=new U(xn);xt(u,or,["BYTERANGE","URI"]);const Nr=new X(or,ge,t,gr,_r);Hn.push(Nr),ge.duration+=Nr.duration;break}case"PRELOAD-HINT":{const Hn=new U(xn);xt(u,Hn,["URI"]),u.preloadHint=Hn;break}case"RENDITION-REPORT":{const Hn=new U(xn);xt(u,Hn,["URI"]),u.renditionReports=u.renditionReports||[],u.renditionReports.push(Hn);break}default:b.warn(`line parsed but not handled: ${Ae}`);break}}}se&&!se.relurl?(f.pop(),G-=se.duration,u.partList&&(u.fragmentHint=se)):u.partList&&(qn(ge,se),ge.cc=ue,u.fragmentHint=ge,vt&&An(ge,vt,u));const an=f.length,zt=f[0],bn=f[an-1];if(G+=u.skippedSegments*u.targetduration,G>0&&an&&bn){u.averagetargetduration=G/an;const Fn=bn.sn;u.endSN=Fn!=="initSegment"?Fn:0,u.live||(bn.endList=!0),zt&&(u.startCC=zt.cc)}else u.endSN=0,u.startCC=0;return u.fragmentHint&&(G+=u.fragmentHint.duration),u.totalduration=G,u.endCC=ue,pt>0&&Bn(f,pt),u}}function rr(a,e,t){var n,r;const i=new U(a);xt(t,i,["KEYFORMAT","KEYFORMATVERSIONS","URI","IV","URI"]);const s=(n=i.METHOD)!=null?n:"",u=i.URI,f=i.hexadecimalInteger("IV"),p=i.KEYFORMATVERSIONS,E=(r=i.KEYFORMAT)!=null?r:"identity";u&&i.IV&&!f&&b.error(`Invalid IV: ${i.IV}`);const R=u?wn.resolve(u,e):"",G=(p||"1").split("/").map(Number).filter(Number.isFinite);return new Pt(s,R,E,G,f)}function Yn(a){const t=new U(a).decimalFloatingPoint("TIME-OFFSET");return L(t)?t:null}function Wn(a,e){let t=(a||"").split(/[ ,]+/).filter(n=>n);["video","audio","text"].forEach(n=>{const r=t.filter(i=>Vt(i,n));r.length&&(e[`${n}Codec`]=r.join(","),t=t.filter(i=>r.indexOf(i)===-1))}),e.unknownCodecs=t}function Jn(a,e,t){const n=e[t];n&&(a[t]=n)}function Bn(a,e){let t=a[e];for(let n=e;n--;){const r=a[n];if(!r)return;r.programDateTime=t.programDateTime-r.duration*1e3,t=r}}function qn(a,e){a.rawProgramDateTime?a.programDateTime=Date.parse(a.rawProgramDateTime):e!=null&&e.programDateTime&&(a.programDateTime=e.endProgramDateTime),L(a.programDateTime)||(a.programDateTime=null,a.rawProgramDateTime=null)}function wr(a,e,t,n){a.relurl=e.URI,e.BYTERANGE&&a.setByteRange(e.BYTERANGE),a.level=t,a.sn="initSegment",n&&(a.levelkeys=n),a.initSegment=null}function An(a,e,t){a.levelkeys=e;const{encryptedFragments:n}=t;(!n.length||n[n.length-1].levelkeys!==e)&&Object.keys(e).some(r=>e[r].isCommonEncryption)&&n.push(a)}var sn={MANIFEST:"manifest",LEVEL:"level",AUDIO_TRACK:"audioTrack",SUBTITLE_TRACK:"subtitleTrack"},Ge={MAIN:"main",AUDIO:"audio",SUBTITLE:"subtitle"};function pn(a){const{type:e}=a;switch(e){case sn.AUDIO_TRACK:return Ge.AUDIO;case sn.SUBTITLE_TRACK:return Ge.SUBTITLE;default:return Ge.MAIN}}function Ln(a,e){let t=a.url;return(t===void 0||t.indexOf("data:")===0)&&(t=e.url),t}class Xn{constructor(e){this.hls=void 0,this.loaders=Object.create(null),this.variableList=null,this.hls=e,this.registerListeners()}startLoad(e){}stopLoad(){this.destroyInternalLoaders()}registerListeners(){const{hls:e}=this;e.on(c.MANIFEST_LOADING,this.onManifestLoading,this),e.on(c.LEVEL_LOADING,this.onLevelLoading,this),e.on(c.AUDIO_TRACK_LOADING,this.onAudioTrackLoading,this),e.on(c.SUBTITLE_TRACK_LOADING,this.onSubtitleTrackLoading,this)}unregisterListeners(){const{hls:e}=this;e.off(c.MANIFEST_LOADING,this.onManifestLoading,this),e.off(c.LEVEL_LOADING,this.onLevelLoading,this),e.off(c.AUDIO_TRACK_LOADING,this.onAudioTrackLoading,this),e.off(c.SUBTITLE_TRACK_LOADING,this.onSubtitleTrackLoading,this)}createInternalLoader(e){const t=this.hls.config,n=t.pLoader,r=t.loader,i=n||r,s=new i(t);return this.loaders[e.type]=s,s}getInternalLoader(e){return this.loaders[e.type]}resetInternalLoader(e){this.loaders[e]&&delete this.loaders[e]}destroyInternalLoaders(){for(const e in this.loaders){const t=this.loaders[e];t&&t.destroy(),this.resetInternalLoader(e)}}destroy(){this.variableList=null,this.unregisterListeners(),this.destroyInternalLoaders()}onManifestLoading(e,t){const{url:n}=t;this.variableList=null,this.load({id:null,level:0,responseType:"text",type:sn.MANIFEST,url:n,deliveryDirectives:null})}onLevelLoading(e,t){const{id:n,level:r,pathwayId:i,url:s,deliveryDirectives:u}=t;this.load({id:n,level:r,pathwayId:i,responseType:"text",type:sn.LEVEL,url:s,deliveryDirectives:u})}onAudioTrackLoading(e,t){const{id:n,groupId:r,url:i,deliveryDirectives:s}=t;this.load({id:n,groupId:r,level:null,responseType:"text",type:sn.AUDIO_TRACK,url:i,deliveryDirectives:s})}onSubtitleTrackLoading(e,t){const{id:n,groupId:r,url:i,deliveryDirectives:s}=t;this.load({id:n,groupId:r,level:null,responseType:"text",type:sn.SUBTITLE_TRACK,url:i,deliveryDirectives:s})}load(e){var t;const n=this.hls.config;let r=this.getInternalLoader(e);if(r){const p=r.context;if(p&&p.url===e.url&&p.level===e.level){b.trace("[playlist-loader]: playlist request ongoing");return}b.log(`[playlist-loader]: aborting previous loader for type: ${e.type}`),r.abort()}let i;if(e.type===sn.MANIFEST?i=n.manifestLoadPolicy.default:i=o({},n.playlistLoadPolicy.default,{timeoutRetry:null,errorRetry:null}),r=this.createInternalLoader(e),L((t=e.deliveryDirectives)==null?void 0:t.part)){let p;if(e.type===sn.LEVEL&&e.level!==null?p=this.hls.levels[e.level].details:e.type===sn.AUDIO_TRACK&&e.id!==null?p=this.hls.audioTracks[e.id].details:e.type===sn.SUBTITLE_TRACK&&e.id!==null&&(p=this.hls.subtitleTracks[e.id].details),p){const E=p.partTarget,R=p.targetduration;if(E&&R){const G=Math.max(E*3,R*.8)*1e3;i=o({},i,{maxTimeToFirstByteMs:Math.min(G,i.maxTimeToFirstByteMs),maxLoadTimeMs:Math.min(G,i.maxTimeToFirstByteMs)})}}}const s=i.errorRetry||i.timeoutRetry||{},u={loadPolicy:i,timeout:i.maxLoadTimeMs,maxRetry:s.maxNumRetry||0,retryDelay:s.retryDelayMs||0,maxRetryDelay:s.maxRetryDelayMs||0},f={onSuccess:(p,E,R,G)=>{const ue=this.getInternalLoader(R);this.resetInternalLoader(R.type);const se=p.data;if(se.indexOf("#EXTM3U")!==0){this.handleManifestParsingError(p,R,new Error("no EXTM3U delimiter"),G||null,E);return}E.parsing.start=performance.now(),wn.isMediaPlaylist(se)?this.handleTrackOrLevelPlaylist(p,E,R,G||null,ue):this.handleMasterPlaylist(p,E,R,G)},onError:(p,E,R,G)=>{this.handleNetworkError(E,R,!1,p,G)},onTimeout:(p,E,R)=>{this.handleNetworkError(E,R,!0,void 0,p)}};r.load(e,u,f)}handleMasterPlaylist(e,t,n,r){const i=this.hls,s=e.data,u=Ln(e,n),f=wn.parseMasterPlaylist(s,u);if(f.playlistParsingError){this.handleManifestParsingError(e,n,f.playlistParsingError,r,t);return}const{contentSteering:p,levels:E,sessionData:R,sessionKeys:G,startTimeOffset:ue,variableList:se}=f;this.variableList=se;const{AUDIO:ge=[],SUBTITLES:Ae,"CLOSED-CAPTIONS":Ve}=wn.parseMasterPlaylistMedia(s,u,f);ge.length&&!ge.some(pt=>!pt.url)&&E[0].audioCodec&&!E[0].attrs.AUDIO&&(b.log("[playlist-loader]: audio codec signaled in quality level, but no embedded audio track signaled, create one"),ge.unshift({type:"main",name:"main",groupId:"main",default:!1,autoselect:!1,forced:!1,id:-1,attrs:new U({}),bitrate:0,url:""})),i.trigger(c.MANIFEST_LOADED,{levels:E,audioTracks:ge,subtitles:Ae,captions:Ve,contentSteering:p,url:u,stats:t,networkDetails:r,sessionData:R,sessionKeys:G,startTimeOffset:ue,variableList:se})}handleTrackOrLevelPlaylist(e,t,n,r,i){const s=this.hls,{id:u,level:f,type:p}=n,E=Ln(e,n),R=0,G=L(f)?f:L(u)?u:0,ue=pn(n),se=wn.parseLevelPlaylist(e.data,E,G,ue,R,this.variableList);if(p===sn.MANIFEST){const ge={attrs:new U({}),bitrate:0,details:se,name:"",url:E};s.trigger(c.MANIFEST_LOADED,{levels:[ge],audioTracks:[],url:E,stats:t,networkDetails:r,sessionData:null,sessionKeys:null,contentSteering:null,startTimeOffset:null,variableList:null})}t.parsing.end=performance.now(),n.levelDetails=se,this.handlePlaylistLoaded(se,e,t,n,r,i)}handleManifestParsingError(e,t,n,r,i){this.hls.trigger(c.ERROR,{type:S.NETWORK_ERROR,details:y.MANIFEST_PARSING_ERROR,fatal:t.type===sn.MANIFEST,url:e.url,err:n,error:n,reason:n.message,response:e,context:t,networkDetails:r,stats:i})}handleNetworkError(e,t,n=!1,r,i){let s=`A network ${n?"timeout":"error"+(r?" (status "+r.code+")":"")} occurred while loading ${e.type}`;e.type===sn.LEVEL?s+=`: ${e.level} id: ${e.id}`:(e.type===sn.AUDIO_TRACK||e.type===sn.SUBTITLE_TRACK)&&(s+=` id: ${e.id} group-id: "${e.groupId}"`);const u=new Error(s);b.warn(`[playlist-loader]: ${s}`);let f=y.UNKNOWN,p=!1;const E=this.getInternalLoader(e);switch(e.type){case sn.MANIFEST:f=n?y.MANIFEST_LOAD_TIMEOUT:y.MANIFEST_LOAD_ERROR,p=!0;break;case sn.LEVEL:f=n?y.LEVEL_LOAD_TIMEOUT:y.LEVEL_LOAD_ERROR,p=!1;break;case sn.AUDIO_TRACK:f=n?y.AUDIO_TRACK_LOAD_TIMEOUT:y.AUDIO_TRACK_LOAD_ERROR,p=!1;break;case sn.SUBTITLE_TRACK:f=n?y.SUBTITLE_TRACK_LOAD_TIMEOUT:y.SUBTITLE_LOAD_ERROR,p=!1;break}E&&this.resetInternalLoader(e.type);const R={type:S.NETWORK_ERROR,details:f,fatal:p,url:e.url,loader:E,context:e,error:u,networkDetails:t,stats:i};if(r){const G=(t==null?void 0:t.url)||e.url;R.response=ve({url:G,data:void 0},r)}this.hls.trigger(c.ERROR,R)}handlePlaylistLoaded(e,t,n,r,i,s){const u=this.hls,{type:f,level:p,id:E,groupId:R,deliveryDirectives:G}=r,ue=Ln(t,r),se=pn(r),ge=typeof r.level=="number"&&se===Ge.MAIN?p:void 0;if(!e.fragments.length){const Ve=new Error("No Segments found in Playlist");u.trigger(c.ERROR,{type:S.NETWORK_ERROR,details:y.LEVEL_EMPTY_ERROR,fatal:!1,url:ue,error:Ve,reason:Ve.message,response:t,context:r,level:ge,parent:se,networkDetails:i,stats:n});return}e.targetduration||(e.playlistParsingError=new Error("Missing Target Duration"));const Ae=e.playlistParsingError;if(Ae){u.trigger(c.ERROR,{type:S.NETWORK_ERROR,details:y.LEVEL_PARSING_ERROR,fatal:!1,url:ue,error:Ae,reason:Ae.message,response:t,context:r,level:ge,parent:se,networkDetails:i,stats:n});return}switch(e.live&&s&&(s.getCacheAge&&(e.ageHeader=s.getCacheAge()||0),(!s.getCacheAge||isNaN(e.ageHeader))&&(e.ageHeader=0)),f){case sn.MANIFEST:case sn.LEVEL:u.trigger(c.LEVEL_LOADED,{details:e,level:ge||0,id:E||0,stats:n,networkDetails:i,deliveryDirectives:G});break;case sn.AUDIO_TRACK:u.trigger(c.AUDIO_TRACK_LOADED,{details:e,id:E||0,groupId:R||"",stats:n,networkDetails:i,deliveryDirectives:G});break;case sn.SUBTITLE_TRACK:u.trigger(c.SUBTITLE_TRACK_LOADED,{details:e,id:E||0,groupId:R||"",stats:n,networkDetails:i,deliveryDirectives:G});break}}}function Gn(a,e){let t;try{t=new Event("addtrack")}catch(n){t=document.createEvent("Event"),t.initEvent("addtrack",!1,!1)}t.track=a,e.dispatchEvent(t)}function ir(a,e){const t=a.mode;if(t==="disabled"&&(a.mode="hidden"),a.cues&&!a.cues.getCueById(e.id))try{if(a.addCue(e),!a.cues.getCueById(e.id))throw new Error(`addCue is failed for: ${e}`)}catch(n){b.debug(`[texttrack-utils]: ${n}`);try{const r=new self.TextTrackCue(e.startTime,e.endTime,e.text);r.id=e.id,a.addCue(r)}catch(r){b.debug(`[texttrack-utils]: Legacy TextTrackCue fallback failed: ${r}`)}}t==="disabled"&&(a.mode=t)}function lr(a){const e=a.mode;if(e==="disabled"&&(a.mode="hidden"),a.cues)for(let t=a.cues.length;t--;)a.removeCue(a.cues[t]);e==="disabled"&&(a.mode=e)}function Nn(a,e,t,n){const r=a.mode;if(r==="disabled"&&(a.mode="hidden"),a.cues&&a.cues.length>0){const i=_n(a.cues,e,t);for(let s=0;s<i.length;s++)(!n||n(i[s]))&&a.removeCue(i[s])}r==="disabled"&&(a.mode=r)}function ur(a,e){if(e<a[0].startTime)return 0;const t=a.length-1;if(e>a[t].endTime)return-1;let n=0,r=t;for(;n<=r;){const i=Math.floor((r+n)/2);if(e<a[i].startTime)r=i-1;else if(e>a[i].startTime&&n<t)n=i+1;else return i}return a[n].startTime-e<e-a[r].startTime?n:r}function _n(a,e,t){const n=[],r=ur(a,e);if(r>-1)for(let i=r,s=a.length;i<s;i++){const u=a[i];if(u.startTime>=e&&u.endTime<=t)n.push(u);else if(u.startTime>t)return n}return n}function tn(a){const e=[];for(let t=0;t<a.length;t++){const n=a[t];(n.kind==="subtitles"||n.kind==="captions")&&n.label&&e.push(a[t])}return e}var Dn={audioId3:"org.id3",dateRange:"com.apple.quicktime.HLS",emsg:"https://aomedia.org/emsg/ID3"};const Zn=.25;function sr(){if(typeof self!="undefined")return self.VTTCue||self.TextTrackCue}function Pr(a,e,t,n,r){let i=new a(e,t,"");try{i.value=n,r&&(i.type=r)}catch(s){i=new a(e,t,JSON.stringify(r?ve({type:r},n):n))}return i}const gn=(()=>{const a=sr();try{a&&new a(0,Number.POSITIVE_INFINITY,"")}catch(e){return Number.MAX_VALUE}return Number.POSITIVE_INFINITY})();function cr(a,e){return a.getTime()/1e3-e}function ar(a){return Uint8Array.from(a.replace(/^0x/,"").replace(/([\da-fA-F]{2}) ?/g,"0x$1 ").replace(/ +$/,"").split(" ")).buffer}class xr{constructor(e){this.hls=void 0,this.id3Track=null,this.media=null,this.dateRangeCuesAppended={},this.hls=e,this._registerListeners()}destroy(){this._unregisterListeners(),this.id3Track=null,this.media=null,this.dateRangeCuesAppended={},this.hls=null}_registerListeners(){const{hls:e}=this;e.on(c.MEDIA_ATTACHED,this.onMediaAttached,this),e.on(c.MEDIA_DETACHING,this.onMediaDetaching,this),e.on(c.MANIFEST_LOADING,this.onManifestLoading,this),e.on(c.FRAG_PARSING_METADATA,this.onFragParsingMetadata,this),e.on(c.BUFFER_FLUSHING,this.onBufferFlushing,this),e.on(c.LEVEL_UPDATED,this.onLevelUpdated,this)}_unregisterListeners(){const{hls:e}=this;e.off(c.MEDIA_ATTACHED,this.onMediaAttached,this),e.off(c.MEDIA_DETACHING,this.onMediaDetaching,this),e.off(c.MANIFEST_LOADING,this.onManifestLoading,this),e.off(c.FRAG_PARSING_METADATA,this.onFragParsingMetadata,this),e.off(c.BUFFER_FLUSHING,this.onBufferFlushing,this),e.off(c.LEVEL_UPDATED,this.onLevelUpdated,this)}onMediaAttached(e,t){this.media=t.media}onMediaDetaching(){this.id3Track&&(lr(this.id3Track),this.id3Track=null,this.media=null,this.dateRangeCuesAppended={})}onManifestLoading(){this.dateRangeCuesAppended={}}createTrack(e){const t=this.getID3Track(e.textTracks);return t.mode="hidden",t}getID3Track(e){if(this.media){for(let t=0;t<e.length;t++){const n=e[t];if(n.kind==="metadata"&&n.label==="id3")return Gn(n,this.media),n}return this.media.addTextTrack("metadata","id3")}}onFragParsingMetadata(e,t){if(!this.media)return;const{hls:{config:{enableEmsgMetadataCues:n,enableID3MetadataCues:r}}}=this;if(!n&&!r)return;const{samples:i}=t;this.id3Track||(this.id3Track=this.createTrack(this.media));const s=sr();if(s)for(let u=0;u<i.length;u++){const f=i[u].type;if(f===Dn.emsg&&!n||!r)continue;const p=de(i[u].data);if(p){const E=i[u].pts;let R=E+i[u].duration;R>gn&&(R=gn),R-E<=0&&(R=E+Zn);for(let ue=0;ue<p.length;ue++){const se=p[ue];if(!k(se)){this.updateId3CueEnds(E,f);const ge=Pr(s,E,R,se,f);ge&&this.id3Track.addCue(ge)}}}}}updateId3CueEnds(e,t){var n;const r=(n=this.id3Track)==null?void 0:n.cues;if(r)for(let i=r.length;i--;){const s=r[i];s.type===t&&s.startTime<e&&s.endTime===gn&&(s.endTime=e)}}onBufferFlushing(e,{startOffset:t,endOffset:n,type:r}){const{id3Track:i,hls:s}=this;if(!s)return;const{config:{enableEmsgMetadataCues:u,enableID3MetadataCues:f}}=s;if(i&&(u||f)){let p;r==="audio"?p=E=>E.type===Dn.audioId3&&f:r==="video"?p=E=>E.type===Dn.emsg&&u:p=E=>E.type===Dn.audioId3&&f||E.type===Dn.emsg&&u,Nn(i,t,n,p)}}onLevelUpdated(e,{details:t}){if(!this.media||!t.hasProgramDateTime||!this.hls.config.enableDateRangeMetadataCues)return;const{dateRangeCuesAppended:n,id3Track:r}=this,{dateRanges:i}=t,s=Object.keys(i);if(r){const E=Object.keys(n).filter(R=>!s.includes(R));for(let R=E.length;R--;){const G=E[R];Object.keys(n[G].cues).forEach(ue=>{r.removeCue(n[G].cues[ue])}),delete n[G]}}const u=t.fragments[t.fragments.length-1];if(s.length===0||!L(u==null?void 0:u.programDateTime))return;this.id3Track||(this.id3Track=this.createTrack(this.media));const f=u.programDateTime/1e3-u.start,p=sr();for(let E=0;E<s.length;E++){const R=s[E],G=i[R],ue=cr(G.startDate,f),se=n[R],ge=(se==null?void 0:se.cues)||{};let Ae=(se==null?void 0:se.durationKnown)||!1,Ve=gn;const vt=G.endDate;if(vt)Ve=cr(vt,f),Ae=!0;else if(G.endOnNext&&!Ae){const $t=s.reduce((St,an)=>{if(an!==G.id){const zt=i[an];if(zt.class===G.class&&zt.startDate>G.startDate&&(!St||G.startDate<St.startDate))return zt}return St},null);$t&&(Ve=cr($t.startDate,f),Ae=!0)}const pt=Object.keys(G.attr);for(let $t=0;$t<pt.length;$t++){const St=pt[$t];if(!fe(St))continue;const an=ge[St];if(an)Ae&&!se.durationKnown&&(an.endTime=Ve);else if(p){let zt=G.attr[St];ye(St)&&(zt=ar(zt));const bn=Pr(p,ue,Ve,{key:St,data:zt},Dn.dateRange);bn&&(bn.id=R,this.id3Track.addCue(bn),ge[St]=bn)}}n[R]={cues:ge,dateRange:G,durationKnown:Ae}}}}class Mr{constructor(e){this.hls=void 0,this.config=void 0,this.media=null,this.levelDetails=null,this.currentTime=0,this.stallCount=0,this._latency=null,this.timeupdateHandler=()=>this.timeupdate(),this.hls=e,this.config=e.config,this.registerListeners()}get latency(){return this._latency||0}get maxLatency(){const{config:e,levelDetails:t}=this;return e.liveMaxLatencyDuration!==void 0?e.liveMaxLatencyDuration:t?e.liveMaxLatencyDurationCount*t.targetduration:0}get targetLatency(){const{levelDetails:e}=this;if(e===null)return null;const{holdBack:t,partHoldBack:n,targetduration:r}=e,{liveSyncDuration:i,liveSyncDurationCount:s,lowLatencyMode:u}=this.config,f=this.hls.userConfig;let p=u&&n||t;(f.liveSyncDuration||f.liveSyncDurationCount||p===0)&&(p=i!==void 0?i:s*r);const E=r;return p+Math.min(this.stallCount*1,E)}get liveSyncPosition(){const e=this.estimateLiveEdge(),t=this.targetLatency,n=this.levelDetails;if(e===null||t===null||n===null)return null;const r=n.edge,i=e-t-this.edgeStalled,s=r-n.totalduration,u=r-(this.config.lowLatencyMode&&n.partTarget||n.targetduration);return Math.min(Math.max(s,i),u)}get drift(){const{levelDetails:e}=this;return e===null?1:e.drift}get edgeStalled(){const{levelDetails:e}=this;if(e===null)return 0;const t=(this.config.lowLatencyMode&&e.partTarget||e.targetduration)*3;return Math.max(e.age-t,0)}get forwardBufferLength(){const{media:e,levelDetails:t}=this;if(!e||!t)return 0;const n=e.buffered.length;return(n?e.buffered.end(n-1):t.edge)-this.currentTime}destroy(){this.unregisterListeners(),this.onMediaDetaching(),this.levelDetails=null,this.hls=this.timeupdateHandler=null}registerListeners(){this.hls.on(c.MEDIA_ATTACHED,this.onMediaAttached,this),this.hls.on(c.MEDIA_DETACHING,this.onMediaDetaching,this),this.hls.on(c.MANIFEST_LOADING,this.onManifestLoading,this),this.hls.on(c.LEVEL_UPDATED,this.onLevelUpdated,this),this.hls.on(c.ERROR,this.onError,this)}unregisterListeners(){this.hls.off(c.MEDIA_ATTACHED,this.onMediaAttached,this),this.hls.off(c.MEDIA_DETACHING,this.onMediaDetaching,this),this.hls.off(c.MANIFEST_LOADING,this.onManifestLoading,this),this.hls.off(c.LEVEL_UPDATED,this.onLevelUpdated,this),this.hls.off(c.ERROR,this.onError,this)}onMediaAttached(e,t){this.media=t.media,this.media.addEventListener("timeupdate",this.timeupdateHandler)}onMediaDetaching(){this.media&&(this.media.removeEventListener("timeupdate",this.timeupdateHandler),this.media=null)}onManifestLoading(){this.levelDetails=null,this._latency=null,this.stallCount=0}onLevelUpdated(e,{details:t}){this.levelDetails=t,t.advanced&&this.timeupdate(),!t.live&&this.media&&this.media.removeEventListener("timeupdate",this.timeupdateHandler)}onError(e,t){var n;t.details===y.BUFFER_STALLED_ERROR&&(this.stallCount++,(n=this.levelDetails)!=null&&n.live&&b.warn("[playback-rate-controller]: Stall detected, adjusting target latency"))}timeupdate(){const{media:e,levelDetails:t}=this;if(!e||!t)return;this.currentTime=e.currentTime;const n=this.computeLatency();if(n===null)return;this._latency=n;const{lowLatencyMode:r,maxLiveSyncPlaybackRate:i}=this.config;if(!r||i===1||!t.live)return;const s=this.targetLatency;if(s===null)return;const u=n-s,f=Math.min(this.maxLatency,s+t.targetduration);if(u<f&&u>.05&&this.forwardBufferLength>1){const E=Math.min(2,Math.max(1,i)),R=Math.round(2/(1+Math.exp(-.75*u-this.edgeStalled))*20)/20;e.playbackRate=Math.min(E,Math.max(1,R))}else e.playbackRate!==1&&e.playbackRate!==0&&(e.playbackRate=1)}estimateLiveEdge(){const{levelDetails:e}=this;return e===null?null:e.edge+e.age}computeLatency(){const e=this.estimateLiveEdge();return e===null?null:e-this.currentTime}}const Fr=["NONE","TYPE-0","TYPE-1",null];function vr(a){return Fr.indexOf(a)>-1}const Cr=["SDR","PQ","HLG"];function Er(a){return!!a&&Cr.indexOf(a)>-1}var qr={No:"",Yes:"YES",v2:"v2"};function Yr(a){const{canSkipUntil:e,canSkipDateRanges:t,age:n}=a,r=n<e/2;return e&&r?t?qr.v2:qr.Yes:qr.No}class ii{constructor(e,t,n){this.msn=void 0,this.part=void 0,this.skip=void 0,this.msn=e,this.part=t,this.skip=n}addDirectives(e){const t=new self.URL(e);return this.msn!==void 0&&t.searchParams.set("_HLS_msn",this.msn.toString()),this.part!==void 0&&t.searchParams.set("_HLS_part",this.part.toString()),this.skip&&t.searchParams.set("_HLS_skip",this.skip),t.href}}class kr{constructor(e){this._attrs=void 0,this.audioCodec=void 0,this.bitrate=void 0,this.codecSet=void 0,this.url=void 0,this.frameRate=void 0,this.height=void 0,this.id=void 0,this.name=void 0,this.videoCodec=void 0,this.width=void 0,this.details=void 0,this.fragmentError=0,this.loadError=0,this.loaded=void 0,this.realBitrate=0,this.supportedPromise=void 0,this.supportedResult=void 0,this._avgBitrate=0,this._audioGroups=void 0,this._subtitleGroups=void 0,this._urlId=0,this.url=[e.url],this._attrs=[e.attrs],this.bitrate=e.bitrate,e.details&&(this.details=e.details),this.id=e.id||0,this.name=e.name,this.width=e.width||0,this.height=e.height||0,this.frameRate=e.attrs.optionalFloat("FRAME-RATE",0),this._avgBitrate=e.attrs.decimalInteger("AVERAGE-BANDWIDTH"),this.audioCodec=e.audioCodec,this.videoCodec=e.videoCodec,this.codecSet=[e.videoCodec,e.audioCodec].filter(t=>!!t).map(t=>t.substring(0,4)).join(","),this.addGroupId("audio",e.attrs.AUDIO),this.addGroupId("text",e.attrs.SUBTITLES)}get maxBitrate(){return Math.max(this.realBitrate,this.bitrate)}get averageBitrate(){return this._avgBitrate||this.realBitrate||this.bitrate}get attrs(){return this._attrs[0]}get codecs(){return this.attrs.CODECS||""}get pathwayId(){return this.attrs["PATHWAY-ID"]||"."}get videoRange(){return this.attrs["VIDEO-RANGE"]||"SDR"}get score(){return this.attrs.optionalFloat("SCORE",0)}get uri(){return this.url[0]||""}hasAudioGroup(e){return ei(this._audioGroups,e)}hasSubtitleGroup(e){return ei(this._subtitleGroups,e)}get audioGroups(){return this._audioGroups}get subtitleGroups(){return this._subtitleGroups}addGroupId(e,t){if(t){if(e==="audio"){let n=this._audioGroups;n||(n=this._audioGroups=[]),n.indexOf(t)===-1&&n.push(t)}else if(e==="text"){let n=this._subtitleGroups;n||(n=this._subtitleGroups=[]),n.indexOf(t)===-1&&n.push(t)}}}get urlId(){return 0}set urlId(e){}get audioGroupIds(){return this.audioGroups?[this.audioGroupId]:void 0}get textGroupIds(){return this.subtitleGroups?[this.textGroupId]:void 0}get audioGroupId(){var e;return(e=this.audioGroups)==null?void 0:e[0]}get textGroupId(){var e;return(e=this.subtitleGroups)==null?void 0:e[0]}addFallback(){}}function ei(a,e){return!e||!a?!1:a.indexOf(e)!==-1}function nr(a,e){const t=e.startPTS;if(L(t)){let n=0,r;e.sn>a.sn?(n=t-a.start,r=a):(n=a.start-t,r=e),r.duration!==n&&(r.duration=n)}else e.sn>a.sn?a.cc===e.cc&&a.minEndPTS?e.start=a.start+(a.minEndPTS-a.start):e.start=a.start+a.duration:e.start=Math.max(a.start-e.duration,0)}function ci(a,e,t,n,r,i){n-t<=0&&(b.warn("Fragment should have a positive duration",e),n=t+e.duration,i=r+e.duration);let u=t,f=n;const p=e.startPTS,E=e.endPTS;if(L(p)){const Ae=Math.abs(p-t);L(e.deltaPTS)?e.deltaPTS=Math.max(Ae,e.deltaPTS):e.deltaPTS=Ae,u=Math.max(t,p),t=Math.min(t,p),r=Math.min(r,e.startDTS),f=Math.min(n,E),n=Math.max(n,E),i=Math.max(i,e.endDTS)}const R=t-e.start;e.start!==0&&(e.start=t),e.duration=n-e.start,e.startPTS=t,e.maxStartPTS=u,e.startDTS=r,e.endPTS=n,e.minEndPTS=f,e.endDTS=i;const G=e.sn;if(!a||G<a.startSN||G>a.endSN)return 0;let ue;const se=G-a.startSN,ge=a.fragments;for(ge[se]=e,ue=se;ue>0;ue--)nr(ge[ue],ge[ue-1]);for(ue=se;ue<ge.length-1;ue++)nr(ge[ue],ge[ue+1]);return a.fragmentHint&&nr(ge[ge.length-1],a.fragmentHint),a.PTSKnown=a.alignedSliding=!0,R}function yi(a,e){let t=null;const n=a.fragments;for(let u=n.length-1;u>=0;u--){const f=n[u].initSegment;if(f){t=f;break}}a.fragmentHint&&delete a.fragmentHint.endPTS;let r;fi(a,e,(u,f,p,E)=>{if(e.skippedSegments&&f.cc!==u.cc){const R=u.cc-f.cc;for(let G=p;G<E.length;G++)E[G].cc+=R}L(u.startPTS)&&L(u.endPTS)&&(f.start=f.startPTS=u.startPTS,f.startDTS=u.startDTS,f.maxStartPTS=u.maxStartPTS,f.endPTS=u.endPTS,f.endDTS=u.endDTS,f.minEndPTS=u.minEndPTS,f.duration=u.endPTS-u.startPTS,f.duration&&(r=f),e.PTSKnown=e.alignedSliding=!0),f.elementaryStreams=u.elementaryStreams,f.loader=u.loader,f.stats=u.stats,u.initSegment&&(f.initSegment=u.initSegment,t=u.initSegment)});const i=e.fragments;if(t&&(e.fragmentHint?i.concat(e.fragmentHint):i).forEach(f=>{var p;f&&(!f.initSegment||f.initSegment.relurl===((p=t)==null?void 0:p.relurl))&&(f.initSegment=t)}),e.skippedSegments){if(e.deltaUpdateFailed=i.some(u=>!u),e.deltaUpdateFailed){b.warn("[level-helper] Previous playlist missing segments skipped in delta playlist");for(let u=e.skippedSegments;u--;)i.shift();e.startSN=i[0].sn}else e.canSkipDateRanges&&(e.dateRanges=hi(a.dateRanges,e.dateRanges,e.recentlyRemovedDateranges));e.startCC=e.fragments[0].cc,e.endCC=i[i.length-1].cc}Tr(a.partList,e.partList,(u,f)=>{f.elementaryStreams=u.elementaryStreams,f.stats=u.stats}),r?ci(e,r,r.startPTS,r.endPTS,r.startDTS,r.endDTS):Ai(a,e),i.length&&(e.totalduration=e.edge-i[0].start),e.driftStartTime=a.driftStartTime,e.driftStart=a.driftStart;const s=e.advancedDateTime;if(e.advanced&&s){const u=e.edge;e.driftStart||(e.driftStartTime=s,e.driftStart=u),e.driftEndTime=s,e.driftEnd=u}else e.driftEndTime=a.driftEndTime,e.driftEnd=a.driftEnd,e.advancedDateTime=a.advancedDateTime}function hi(a,e,t){const n=o({},a);return t&&t.forEach(r=>{delete n[r]}),Object.keys(e).forEach(r=>{const i=new Se(e[r].attr,n[r]);i.isValid?n[r]=i:b.warn(`Ignoring invalid Playlist Delta Update DATERANGE tag: "${JSON.stringify(e[r].attr)}"`)}),n}function Tr(a,e,t){if(a&&e){let n=0;for(let r=0,i=a.length;r<=i;r++){const s=a[r],u=e[r+n];s&&u&&s.index===u.index&&s.fragment.sn===u.fragment.sn?t(s,u):n--}}}function fi(a,e,t){const n=e.skippedSegments,r=Math.max(a.startSN,e.startSN)-e.startSN,i=(a.fragmentHint?1:0)+(n?e.endSN:Math.min(a.endSN,e.endSN))-e.startSN,s=e.startSN-a.startSN,u=e.fragmentHint?e.fragments.concat(e.fragmentHint):e.fragments,f=a.fragmentHint?a.fragments.concat(a.fragmentHint):a.fragments;for(let p=r;p<=i;p++){const E=f[s+p];let R=u[p];n&&!R&&p<n&&(R=e.fragments[p]=E),E&&R&&t(E,R,p,u)}}function Ai(a,e){const t=e.startSN+e.skippedSegments-a.startSN,n=a.fragments;t<0||t>=n.length||on(e,n[t].start)}function on(a,e){if(e){const t=a.fragments;for(let n=a.skippedSegments;n<t.length;n++)t[n].start+=e;a.fragmentHint&&(a.fragmentHint.start+=e)}}function Qr(a,e=1/0){let t=1e3*a.targetduration;if(a.updated){const n=a.fragments;if(n.length&&t*4>e){const i=n[n.length-1].duration*1e3;i<t&&(t=i)}}else t/=2;return Math.round(t)}function oi(a,e,t){if(!(a!=null&&a.details))return null;const n=a.details;let r=n.fragments[e-n.startSN];return r||(r=n.fragmentHint,r&&r.sn===e)?r:e<n.startSN&&t&&t.sn===e?t:null}function Rn(a,e,t){var n;return a!=null&&a.details?$n((n=a.details)==null?void 0:n.partList,e,t):null}function $n(a,e,t){if(a)for(let n=a.length;n--;){const r=a[n];if(r.index===t&&r.fragment.sn===e)return r}return null}function Cn(a){a.forEach((e,t)=>{const{details:n}=e;n!=null&&n.fragments&&n.fragments.forEach(r=>{r.level=t})})}function En(a){switch(a.details){case y.FRAG_LOAD_TIMEOUT:case y.KEY_LOAD_TIMEOUT:case y.LEVEL_LOAD_TIMEOUT:case y.MANIFEST_LOAD_TIMEOUT:return!0}return!1}function er(a,e){const t=En(e);return a.default[`${t?"timeout":"error"}Retry`]}function dr(a,e){const t=a.backoff==="linear"?1:Math.pow(2,e);return Math.min(t*a.retryDelayMs,a.maxRetryDelayMs)}function Hr(a){return ve(ve({},a),{errorRetry:null,timeoutRetry:null})}function Dr(a,e,t,n){if(!a)return!1;const r=n==null?void 0:n.code,i=e<a.maxNumRetry&&(zr(r)||!!t);return a.shouldRetry?a.shouldRetry(a,e,t,n,i):i}function zr(a){return a===0&&navigator.onLine===!1||!!a&&(a<400||a>499)}const Wr={search:function(a,e){let t=0,n=a.length-1,r=null,i=null;for(;t<=n;){r=(t+n)/2|0,i=a[r];const s=e(i);if(s>0)t=r+1;else if(s<0)n=r-1;else return i}return null}};function bi(a,e,t){if(e===null||!Array.isArray(a)||!a.length||!L(e))return null;const n=a[0].programDateTime;if(e<(n||0))return null;const r=a[a.length-1].endProgramDateTime;if(e>=(r||0))return null;t=t||0;for(let i=0;i<a.length;++i){const s=a[i];if(mi(e,t,s))return s}return null}function xi(a,e,t=0,n=0,r=.005){let i=null;if(a){i=e[a.sn-e[0].sn+1]||null;const u=a.endDTS-t;u>0&&u<15e-7&&(t+=15e-7)}else t===0&&e[0].start===0&&(i=e[0]);if(i&&((!a||a.level===i.level)&&Ni(t,n,i)===0||Hi(i,a,Math.min(r,n))))return i;const s=Wr.search(e,Ni.bind(null,t,n));return s&&(s!==a||!i)?s:i}function Hi(a,e,t){if(e&&e.start===0&&e.level<a.level&&(e.endPTS||0)>0){const n=e.tagList.reduce((r,i)=>(i[0]==="INF"&&(r+=parseFloat(i[1])),r),t);return a.start<=n}return!1}function Ni(a=0,e=0,t){if(t.start<=a&&t.start+t.duration>a)return 0;const n=Math.min(e,t.duration+(t.deltaPTS?t.deltaPTS:0));return t.start+t.duration-n<=a?1:t.start-n>a&&t.start?-1:0}function mi(a,e,t){const n=Math.min(e,t.duration+(t.deltaPTS?t.deltaPTS:0))*1e3;return(t.endProgramDateTime||0)-n>a}function In(a,e){return Wr.search(a,t=>t.cc<e?1:t.cc>e?-1:0)}var Tn={DoNothing:0,SendEndCallback:1,SendAlternateToPenaltyBox:2,RemoveAlternatePermanently:3,InsertDiscontinuity:4,RetryRequest:5},hr={None:0,MoveAllAlternatesMatchingHost:1,MoveAllAlternatesMatchingHDCP:2,SwitchToSDR:4};class Gr{constructor(e){this.hls=void 0,this.playlistError=0,this.penalizedRenditions={},this.log=void 0,this.warn=void 0,this.error=void 0,this.hls=e,this.log=b.log.bind(b,"[info]:"),this.warn=b.warn.bind(b,"[warning]:"),this.error=b.error.bind(b,"[error]:"),this.registerListeners()}registerListeners(){const e=this.hls;e.on(c.ERROR,this.onError,this),e.on(c.MANIFEST_LOADING,this.onManifestLoading,this),e.on(c.LEVEL_UPDATED,this.onLevelUpdated,this)}unregisterListeners(){const e=this.hls;e&&(e.off(c.ERROR,this.onError,this),e.off(c.ERROR,this.onErrorOut,this),e.off(c.MANIFEST_LOADING,this.onManifestLoading,this),e.off(c.LEVEL_UPDATED,this.onLevelUpdated,this))}destroy(){this.unregisterListeners(),this.hls=null,this.penalizedRenditions={}}startLoad(e){}stopLoad(){this.playlistError=0}getVariantLevelIndex(e){return(e==null?void 0:e.type)===Ge.MAIN?e.level:this.hls.loadLevel}onManifestLoading(){this.playlistError=0,this.penalizedRenditions={}}onLevelUpdated(){this.playlistError=0}onError(e,t){var n,r;if(t.fatal)return;const i=this.hls,s=t.context;switch(t.details){case y.FRAG_LOAD_ERROR:case y.FRAG_LOAD_TIMEOUT:case y.KEY_LOAD_ERROR:case y.KEY_LOAD_TIMEOUT:t.errorAction=this.getFragRetryOrSwitchAction(t);return;case y.FRAG_PARSING_ERROR:if((n=t.frag)!=null&&n.gap){t.errorAction={action:Tn.DoNothing,flags:hr.None};return}case y.FRAG_GAP:case y.FRAG_DECRYPT_ERROR:{t.errorAction=this.getFragRetryOrSwitchAction(t),t.errorAction.action=Tn.SendAlternateToPenaltyBox;return}case y.LEVEL_EMPTY_ERROR:case y.LEVEL_PARSING_ERROR:{var u,f;const p=t.parent===Ge.MAIN?t.level:i.loadLevel;t.details===y.LEVEL_EMPTY_ERROR&&((u=t.context)!=null&&(f=u.levelDetails)!=null&&f.live)?t.errorAction=this.getPlaylistRetryOrSwitchAction(t,p):(t.levelRetry=!1,t.errorAction=this.getLevelSwitchAction(t,p))}return;case y.LEVEL_LOAD_ERROR:case y.LEVEL_LOAD_TIMEOUT:typeof(s==null?void 0:s.level)=="number"&&(t.errorAction=this.getPlaylistRetryOrSwitchAction(t,s.level));return;case y.AUDIO_TRACK_LOAD_ERROR:case y.AUDIO_TRACK_LOAD_TIMEOUT:case y.SUBTITLE_LOAD_ERROR:case y.SUBTITLE_TRACK_LOAD_TIMEOUT:if(s){const p=i.levels[i.loadLevel];if(p&&(s.type===sn.AUDIO_TRACK&&p.hasAudioGroup(s.groupId)||s.type===sn.SUBTITLE_TRACK&&p.hasSubtitleGroup(s.groupId))){t.errorAction=this.getPlaylistRetryOrSwitchAction(t,i.loadLevel),t.errorAction.action=Tn.SendAlternateToPenaltyBox,t.errorAction.flags=hr.MoveAllAlternatesMatchingHost;return}}return;case y.KEY_SYSTEM_STATUS_OUTPUT_RESTRICTED:{const p=i.levels[i.loadLevel],E=p==null?void 0:p.attrs["HDCP-LEVEL"];E?t.errorAction={action:Tn.SendAlternateToPenaltyBox,flags:hr.MoveAllAlternatesMatchingHDCP,hdcpLevel:E}:this.keySystemError(t)}return;case y.BUFFER_ADD_CODEC_ERROR:case y.REMUX_ALLOC_ERROR:case y.BUFFER_APPEND_ERROR:t.errorAction=this.getLevelSwitchAction(t,(r=t.level)!=null?r:i.loadLevel);return;case y.INTERNAL_EXCEPTION:case y.BUFFER_APPENDING_ERROR:case y.BUFFER_FULL_ERROR:case y.LEVEL_SWITCH_ERROR:case y.BUFFER_STALLED_ERROR:case y.BUFFER_SEEK_OVER_HOLE:case y.BUFFER_NUDGE_ON_STALL:t.errorAction={action:Tn.DoNothing,flags:hr.None};return}t.type===S.KEY_SYSTEM_ERROR&&this.keySystemError(t)}keySystemError(e){const t=this.getVariantLevelIndex(e.frag);e.levelRetry=!1,e.errorAction=this.getLevelSwitchAction(e,t)}getPlaylistRetryOrSwitchAction(e,t){const n=this.hls,r=er(n.config.playlistLoadPolicy,e),i=this.playlistError++;if(Dr(r,i,En(e),e.response))return{action:Tn.RetryRequest,flags:hr.None,retryConfig:r,retryCount:i};const u=this.getLevelSwitchAction(e,t);return r&&(u.retryConfig=r,u.retryCount=i),u}getFragRetryOrSwitchAction(e){const t=this.hls,n=this.getVariantLevelIndex(e.frag),r=t.levels[n],{fragLoadPolicy:i,keyLoadPolicy:s}=t.config,u=er(e.details.startsWith("key")?s:i,e),f=t.levels.reduce((E,R)=>E+R.fragmentError,0);if(r&&(e.details!==y.FRAG_GAP&&r.fragmentError++,Dr(u,f,En(e),e.response)))return{action:Tn.RetryRequest,flags:hr.None,retryConfig:u,retryCount:f};const p=this.getLevelSwitchAction(e,n);return u&&(p.retryConfig=u,p.retryCount=f),p}getLevelSwitchAction(e,t){const n=this.hls;t==null&&(t=n.loadLevel);const r=this.hls.levels[t];if(r){var i,s;const p=e.details;r.loadError++,p===y.BUFFER_APPEND_ERROR&&r.fragmentError++;let E=-1;const{levels:R,loadLevel:G,minAutoLevel:ue,maxAutoLevel:se}=n;n.autoLevelEnabled||(n.loadLevel=-1);const ge=(i=e.frag)==null?void 0:i.type,Ve=(ge===Ge.AUDIO&&p===y.FRAG_PARSING_ERROR||e.sourceBufferName==="audio"&&(p===y.BUFFER_ADD_CODEC_ERROR||p===y.BUFFER_APPEND_ERROR))&&R.some(({audioCodec:an})=>r.audioCodec!==an),pt=e.sourceBufferName==="video"&&(p===y.BUFFER_ADD_CODEC_ERROR||p===y.BUFFER_APPEND_ERROR)&&R.some(({codecSet:an,audioCodec:zt})=>r.codecSet!==an&&r.audioCodec===zt),{type:$t,groupId:St}=(s=e.context)!=null?s:{};for(let an=R.length;an--;){const zt=(an+G)%R.length;if(zt!==G&&zt>=ue&&zt<=se&&R[zt].loadError===0){var u,f;const bn=R[zt];if(p===y.FRAG_GAP&&ge===Ge.MAIN&&e.frag){const Fn=R[zt].details;if(Fn){const en=xi(e.frag,Fn.fragments,e.frag.start);if(en!=null&&en.gap)continue}}else{if($t===sn.AUDIO_TRACK&&bn.hasAudioGroup(St)||$t===sn.SUBTITLE_TRACK&&bn.hasSubtitleGroup(St))continue;if(ge===Ge.AUDIO&&(u=r.audioGroups)!=null&&u.some(Fn=>bn.hasAudioGroup(Fn))||ge===Ge.SUBTITLE&&(f=r.subtitleGroups)!=null&&f.some(Fn=>bn.hasSubtitleGroup(Fn))||Ve&&r.audioCodec===bn.audioCodec||!Ve&&r.audioCodec!==bn.audioCodec||pt&&r.codecSet===bn.codecSet)continue}E=zt;break}}if(E>-1&&n.loadLevel!==E)return e.levelRetry=!0,this.playlistError=0,{action:Tn.SendAlternateToPenaltyBox,flags:hr.None,nextAutoLevel:E}}return{action:Tn.SendAlternateToPenaltyBox,flags:hr.MoveAllAlternatesMatchingHost}}onErrorOut(e,t){var n;switch((n=t.errorAction)==null?void 0:n.action){case Tn.DoNothing:break;case Tn.SendAlternateToPenaltyBox:this.sendAlternateToPenaltyBox(t),!t.errorAction.resolved&&t.details!==y.FRAG_GAP?t.fatal=!0:/MediaSource readyState: ended/.test(t.error.message)&&(this.warn(`MediaSource ended after "${t.sourceBufferName}" sourceBuffer append error. Attempting to recover from media error.`),this.hls.recoverMediaError());break;case Tn.RetryRequest:break}if(t.fatal){this.hls.stopLoad();return}}sendAlternateToPenaltyBox(e){const t=this.hls,n=e.errorAction;if(!n)return;const{flags:r,hdcpLevel:i,nextAutoLevel:s}=n;switch(r){case hr.None:this.switchLevel(e,s);break;case hr.MoveAllAlternatesMatchingHDCP:i&&(t.maxHdcpLevel=Fr[Fr.indexOf(i)-1],n.resolved=!0),this.warn(`Restricting playback to HDCP-LEVEL of "${t.maxHdcpLevel}" or lower`);break}n.resolved||this.switchLevel(e,s)}switchLevel(e,t){t!==void 0&&e.errorAction&&(this.warn(`switching to level ${t} after ${e.details}`),this.hls.nextAutoLevel=t,e.errorAction.resolved=!0,this.hls.nextLoadLevel=this.hls.nextAutoLevel)}}class Sr{constructor(e,t){this.hls=void 0,this.timer=-1,this.requestScheduled=-1,this.canLoad=!1,this.log=void 0,this.warn=void 0,this.log=b.log.bind(b,`${t}:`),this.warn=b.warn.bind(b,`${t}:`),this.hls=e}destroy(){this.clearTimer(),this.hls=this.log=this.warn=null}clearTimer(){this.timer!==-1&&(self.clearTimeout(this.timer),this.timer=-1)}startLoad(){this.canLoad=!0,this.requestScheduled=-1,this.loadPlaylist()}stopLoad(){this.canLoad=!1,this.clearTimer()}switchParams(e,t,n){const r=t==null?void 0:t.renditionReports;if(r){let i=-1;for(let s=0;s<r.length;s++){const u=r[s];let f;try{f=new self.URL(u.URI,t.url).href}catch(p){b.warn(`Could not construct new URL for Rendition Report: ${p}`),f=u.URI||""}if(f===e){i=s;break}else f===e.substring(0,f.length)&&(i=s)}if(i!==-1){const s=r[i],u=parseInt(s["LAST-MSN"])||(t==null?void 0:t.lastPartSn);let f=parseInt(s["LAST-PART"])||(t==null?void 0:t.lastPartIndex);if(this.hls.config.lowLatencyMode){const E=Math.min(t.age-t.partTarget,t.targetduration);f>=0&&E>t.partTarget&&(f+=1)}const p=n&&Yr(n);return new ii(u,f>=0?f:void 0,p)}}}loadPlaylist(e){this.requestScheduled===-1&&(this.requestScheduled=self.performance.now())}shouldLoadPlaylist(e){return this.canLoad&&!!e&&!!e.url&&(!e.details||e.details.live)}shouldReloadPlaylist(e){return this.timer===-1&&this.requestScheduled===-1&&this.shouldLoadPlaylist(e)}playlistLoaded(e,t,n){const{details:r,stats:i}=t,s=self.performance.now(),u=i.loading.first?Math.max(0,s-i.loading.first):0;if(r.advancedDateTime=Date.now()-u,r.live||n!=null&&n.live){if(r.reloaded(n),n&&this.log(`live playlist ${e} ${r.advanced?"REFRESHED "+r.lastPartSn+"-"+r.lastPartIndex:r.updated?"UPDATED":"MISSED"}`),n&&r.fragments.length>0&&yi(n,r),!this.canLoad||!r.live)return;let f,p,E;if(r.canBlockReload&&r.endSN&&r.advanced){const Ae=this.hls.config.lowLatencyMode,Ve=r.lastPartSn,vt=r.endSN,pt=r.lastPartIndex,$t=pt!==-1,St=Ve===vt,an=Ae?0:pt;$t?(p=St?vt+1:Ve,E=St?an:pt+1):p=vt+1;const zt=r.age,bn=zt+r.ageHeader;let Fn=Math.min(bn-r.partTarget,r.targetduration*1.5);if(Fn>0){if(n&&Fn>n.tuneInGoal)this.warn(`CDN Tune-in goal increased from: ${n.tuneInGoal} to: ${Fn} with playlist age: ${r.age}`),Fn=0;else{const en=Math.floor(Fn/r.targetduration);if(p+=en,E!==void 0){const xn=Math.round(Fn%r.targetduration/r.partTarget);E+=xn}this.log(`CDN Tune-in age: ${r.ageHeader}s last advanced ${zt.toFixed(2)}s goal: ${Fn} skip sn ${en} to part ${E}`)}r.tuneInGoal=Fn}if(f=this.getDeliveryDirectives(r,t.deliveryDirectives,p,E),Ae||!St){this.loadPlaylist(f);return}}else(r.canBlockReload||r.canSkipUntil)&&(f=this.getDeliveryDirectives(r,t.deliveryDirectives,p,E));const R=this.hls.mainForwardBufferInfo,G=R?R.end-R.len:0,ue=(r.edge-G)*1e3,se=Qr(r,ue);r.updated&&s>this.requestScheduled+se&&(this.requestScheduled=i.loading.start),p!==void 0&&r.canBlockReload?this.requestScheduled=i.loading.first+se-(r.partTarget*1e3||1e3):this.requestScheduled===-1||this.requestScheduled+se<s?this.requestScheduled=s:this.requestScheduled-s<=0&&(this.requestScheduled+=se);let ge=this.requestScheduled-s;ge=Math.max(0,ge),this.log(`reload live playlist ${e} in ${Math.round(ge)} ms`),this.timer=self.setTimeout(()=>this.loadPlaylist(f),ge)}else this.clearTimer()}getDeliveryDirectives(e,t,n,r){let i=Yr(e);return t!=null&&t.skip&&e.deltaUpdateFailed&&(n=t.msn,r=t.part,i=qr.No),new ii(n,r,i)}checkRetry(e){const t=e.details,n=En(e),r=e.errorAction,{action:i,retryCount:s=0,retryConfig:u}=r||{},f=!!r&&!!u&&(i===Tn.RetryRequest||!r.resolved&&i===Tn.SendAlternateToPenaltyBox);if(f){var p;if(this.requestScheduled=-1,s>=u.maxNumRetry)return!1;if(n&&(p=e.context)!=null&&p.deliveryDirectives)this.warn(`Retrying playlist loading ${s+1}/${u.maxNumRetry} after "${t}" without delivery-directives`),this.loadPlaylist();else{const E=dr(u,s);this.timer=self.setTimeout(()=>this.loadPlaylist(),E),this.warn(`Retrying playlist loading ${s+1}/${u.maxNumRetry} after "${t}" in ${E}ms`)}e.levelRetry=!0,r.resolved=!0}return f}}class pi{constructor(e,t=0,n=0){this.halfLife=void 0,this.alpha_=void 0,this.estimate_=void 0,this.totalWeight_=void 0,this.halfLife=e,this.alpha_=e?Math.exp(Math.log(.5)/e):0,this.estimate_=t,this.totalWeight_=n}sample(e,t){const n=Math.pow(this.alpha_,e);this.estimate_=t*(1-n)+n*this.estimate_,this.totalWeight_+=e}getTotalWeight(){return this.totalWeight_}getEstimate(){if(this.alpha_){const e=1-Math.pow(this.alpha_,this.totalWeight_);if(e)return this.estimate_/e}return this.estimate_}}class Gi{constructor(e,t,n,r=100){this.defaultEstimate_=void 0,this.minWeight_=void 0,this.minDelayMs_=void 0,this.slow_=void 0,this.fast_=void 0,this.defaultTTFB_=void 0,this.ttfb_=void 0,this.defaultEstimate_=n,this.minWeight_=.001,this.minDelayMs_=50,this.slow_=new pi(e),this.fast_=new pi(t),this.defaultTTFB_=r,this.ttfb_=new pi(e)}update(e,t){const{slow_:n,fast_:r,ttfb_:i}=this;n.halfLife!==e&&(this.slow_=new pi(e,n.getEstimate(),n.getTotalWeight())),r.halfLife!==t&&(this.fast_=new pi(t,r.getEstimate(),r.getTotalWeight())),i.halfLife!==e&&(this.ttfb_=new pi(e,i.getEstimate(),i.getTotalWeight()))}sample(e,t){e=Math.max(e,this.minDelayMs_);const n=8*t,r=e/1e3,i=n/r;this.fast_.sample(r,i),this.slow_.sample(r,i)}sampleTTFB(e){const t=e/1e3,n=Math.sqrt(2)*Math.exp(-Math.pow(t,2)/2);this.ttfb_.sample(n,Math.max(e,5))}canEstimate(){return this.fast_.getTotalWeight()>=this.minWeight_}getEstimate(){return this.canEstimate()?Math.min(this.fast_.getEstimate(),this.slow_.getEstimate()):this.defaultEstimate_}getEstimateTTFB(){return this.ttfb_.getTotalWeight()>=this.minWeight_?this.ttfb_.getEstimate():this.defaultTTFB_}destroy(){}}const ji={supported:!0,configurations:[],decodingInfoResults:[{supported:!0,powerEfficient:!0,smooth:!0}]},Ci={};function ss(a,e,t,n,r,i){const s=a.audioCodec?a.audioGroups:null,u=i==null?void 0:i.audioCodec,f=i==null?void 0:i.channels,p=f?parseInt(f):u?1/0:2;let E=null;if(s!=null&&s.length)try{s.length===1&&s[0]?E=e.groups[s[0]].channels:E=s.reduce((R,G)=>{if(G){const ue=e.groups[G];if(!ue)throw new Error(`Audio track group ${G} not found`);Object.keys(ue.channels).forEach(se=>{R[se]=(R[se]||0)+ue.channels[se]})}return R},{2:0})}catch(R){return!0}return a.videoCodec!==void 0&&(a.width>1920&&a.height>1088||a.height>1920&&a.width>1088||a.frameRate>Math.max(n,30)||a.videoRange!=="SDR"&&a.videoRange!==t||a.bitrate>Math.max(r,8e6))||!!E&&L(p)&&Object.keys(E).some(R=>parseInt(R)>p)}function as(a,e,t){const n=a.videoCodec,r=a.audioCodec;if(!n||!r||!t)return Promise.resolve(ji);const i={width:a.width,height:a.height,bitrate:Math.ceil(Math.max(a.bitrate*.9,a.averageBitrate)),framerate:a.frameRate||30},s=a.videoRange;s!=="SDR"&&(i.transferFunction=s.toLowerCase());const u=n.split(",").map(f=>({type:"media-source",video:ve(ve({},i),{},{contentType:ht(f,"video")})}));return r&&a.audioGroups&&a.audioGroups.forEach(f=>{var p;f&&((p=e.groups[f])==null||p.tracks.forEach(E=>{if(E.groupId===f){const R=E.channels||"",G=parseFloat(R);L(G)&&G>2&&u.push.apply(u,r.split(",").map(ue=>({type:"media-source",audio:{contentType:ht(ue,"audio"),channels:""+G}})))}}))}),Promise.all(u.map(f=>{const p=os(f);return Ci[p]||(Ci[p]=t.decodingInfo(f))})).then(f=>({supported:!f.some(p=>!p.supported),configurations:u,decodingInfoResults:f})).catch(f=>({supported:!1,configurations:u,decodingInfoResults:[],error:f}))}function os(a){const{audio:e,video:t}=a,n=t||e;if(n){const r=n.contentType.split('"')[1];if(t)return`r${t.height}x${t.width}f${Math.ceil(t.framerate)}${t.transferFunction||"sd"}_${r}_${Math.ceil(t.bitrate/1e5)}`;if(e)return`c${e.channels}${e.spatialRendering?"s":"n"}_${r}`}return""}function es(){if(typeof matchMedia=="function"){const a=matchMedia("(dynamic-range: high)"),e=matchMedia("bad query");if(a.media!==e.media)return a.matches===!0}return!1}function ls(a,e){let t=!1,n=[];return a&&(t=a!=="SDR",n=[a]),e&&(n=e.allowedVideoRanges||Cr.slice(0),t=e.preferHDR!==void 0?e.preferHDR:es(),t?n=n.filter(r=>r!=="SDR"):n=["SDR"]),{preferHDR:t,allowedVideoRanges:n}}function Pi(a,e,t,n,r){const i=Object.keys(a),s=n==null?void 0:n.channels,u=n==null?void 0:n.audioCodec,f=s&&parseInt(s)===2;let p=!0,E=!1,R=1/0,G=1/0,ue=1/0,se=0,ge=[];const{preferHDR:Ae,allowedVideoRanges:Ve}=ls(e,r);for(let St=i.length;St--;){const an=a[i[St]];p=an.channels[2]>0,R=Math.min(R,an.minHeight),G=Math.min(G,an.minFramerate),ue=Math.min(ue,an.minBitrate);const zt=Ve.filter(bn=>an.videoRanges[bn]>0);zt.length>0&&(E=!0,ge=zt)}R=L(R)?R:0,G=L(G)?G:0;const vt=Math.max(1080,R),pt=Math.max(30,G);return ue=L(ue)?ue:t,t=Math.max(ue,t),E||(e=void 0,ge=[]),{codecSet:i.reduce((St,an)=>{const zt=a[an];if(an===St)return St;if(zt.minBitrate>t)return ni(an,`min bitrate of ${zt.minBitrate} > current estimate of ${t}`),St;if(!zt.hasDefaultAudio)return ni(an,"no renditions with default or auto-select sound found"),St;if(u&&an.indexOf(u.substring(0,4))%5!==0)return ni(an,`audio codec preference "${u}" not found`),St;if(s&&!f){if(!zt.channels[s])return ni(an,`no renditions with ${s} channel sound found (channels options: ${Object.keys(zt.channels)})`),St}else if((!u||f)&&p&&zt.channels[2]===0)return ni(an,"no renditions with stereo sound found"),St;return zt.minHeight>vt?(ni(an,`min resolution of ${zt.minHeight} > maximum of ${vt}`),St):zt.minFramerate>pt?(ni(an,`min framerate of ${zt.minFramerate} > maximum of ${pt}`),St):ge.some(bn=>zt.videoRanges[bn]>0)?zt.maxScore<se?(ni(an,`max score of ${zt.maxScore} < selected max of ${se}`),St):St&&(mt(an)>=mt(St)||zt.fragmentError>a[St].fragmentError)?St:(se=zt.maxScore,an):(ni(an,`no variants with VIDEO-RANGE of ${JSON.stringify(ge)} found`),St)},void 0),videoRanges:ge,preferHDR:Ae,minFramerate:G,minBitrate:ue}}function ni(a,e){b.log(`[abr] start candidates with "${a}" ignored because ${e}`)}function us(a){return a.reduce((e,t)=>{let n=e.groups[t.groupId];n||(n=e.groups[t.groupId]={tracks:[],channels:{2:0},hasDefault:!1,hasAutoSelect:!1}),n.tracks.push(t);const r=t.channels||"2";return n.channels[r]=(n.channels[r]||0)+1,n.hasDefault=n.hasDefault||t.default,n.hasAutoSelect=n.hasAutoSelect||t.autoselect,n.hasDefault&&(e.hasDefaultAudio=!0),n.hasAutoSelect&&(e.hasAutoSelectAudio=!0),e},{hasDefaultAudio:!1,hasAutoSelectAudio:!1,groups:{}})}function ts(a,e,t,n){return a.slice(t,n+1).reduce((r,i)=>{if(!i.codecSet)return r;const s=i.audioGroups;let u=r[i.codecSet];u||(r[i.codecSet]=u={minBitrate:1/0,minHeight:1/0,minFramerate:1/0,maxScore:0,videoRanges:{SDR:0},channels:{2:0},hasDefaultAudio:!s,fragmentError:0}),u.minBitrate=Math.min(u.minBitrate,i.bitrate);const f=Math.min(i.height,i.width);return u.minHeight=Math.min(u.minHeight,f),u.minFramerate=Math.min(u.minFramerate,i.frameRate),u.maxScore=Math.max(u.maxScore,i.score),u.fragmentError+=i.fragmentError,u.videoRanges[i.videoRange]=(u.videoRanges[i.videoRange]||0)+1,s&&s.forEach(p=>{if(!p)return;const E=e.groups[p];E&&(u.hasDefaultAudio=u.hasDefaultAudio||e.hasDefaultAudio?E.hasDefault:E.hasAutoSelect||!e.hasDefaultAudio&&!e.hasAutoSelectAudio,Object.keys(E.channels).forEach(R=>{u.channels[R]=(u.channels[R]||0)+E.channels[R]}))}),r},{})}function Ei(a,e,t){if("attrs"in a){const n=e.indexOf(a);if(n!==-1)return n}for(let n=0;n<e.length;n++){const r=e[n];if(Ti(a,r,t))return n}return-1}function Ti(a,e,t){const{groupId:n,name:r,lang:i,assocLang:s,default:u}=a,f=a.forced;return(n===void 0||e.groupId===n)&&(r===void 0||e.name===r)&&(i===void 0||e.lang===i)&&(i===void 0||e.assocLang===s)&&(u===void 0||e.default===u)&&(f===void 0||e.forced===f)&&(!("characteristics"in a)||br(a.characteristics||"",e.characteristics))&&(t===void 0||t(a,e))}function br(a,e=""){const t=a.split(","),n=e.split(",");return t.length===n.length&&!t.some(r=>n.indexOf(r)===-1)}function tr(a,e){const{audioCodec:t,channels:n}=a;return(t===void 0||(e.audioCodec||"").substring(0,4)===t.substring(0,4))&&(n===void 0||n===(e.channels||"2"))}function li(a,e,t,n,r){const i=e[n],u=e.reduce((G,ue,se)=>{const ge=ue.uri;return(G[ge]||(G[ge]=[])).push(se),G},{})[i.uri];u.length>1&&(n=Math.max.apply(Math,u));const f=i.videoRange,p=i.frameRate,E=i.codecSet.substring(0,4),R=ui(e,n,G=>{if(G.videoRange!==f||G.frameRate!==p||G.codecSet.substring(0,4)!==E)return!1;const ue=G.audioGroups,se=t.filter(ge=>!ue||ue.indexOf(ge.groupId)!==-1);return Ei(a,se,r)>-1});return R>-1?R:ui(e,n,G=>{const ue=G.audioGroups,se=t.filter(ge=>!ue||ue.indexOf(ge.groupId)!==-1);return Ei(a,se,r)>-1})}function ui(a,e,t){for(let n=e;n>-1;n--)if(t(a[n]))return n;for(let n=e+1;n<a.length;n++)if(t(a[n]))return n;return-1}class Zr{constructor(e){this.hls=void 0,this.lastLevelLoadSec=0,this.lastLoadedFragLevel=-1,this.firstSelection=-1,this._nextAutoLevel=-1,this.nextAutoLevelKey="",this.audioTracksByGroup=null,this.codecTiers=null,this.timer=-1,this.fragCurrent=null,this.partCurrent=null,this.bitrateTestDelay=0,this.bwEstimator=void 0,this._abandonRulesCheck=()=>{const{fragCurrent:t,partCurrent:n,hls:r}=this,{autoLevelEnabled:i,media:s}=r;if(!t||!s)return;const u=performance.now(),f=n?n.stats:t.stats,p=n?n.duration:t.duration,E=u-f.loading.start,R=r.minAutoLevel;if(f.aborted||f.loaded&&f.loaded===f.total||t.level<=R){this.clearTimer(),this._nextAutoLevel=-1;return}if(!i||s.paused||!s.playbackRate||!s.readyState)return;const G=r.mainForwardBufferInfo;if(G===null)return;const ue=this.bwEstimator.getEstimateTTFB(),se=Math.abs(s.playbackRate);if(E<=Math.max(ue,1e3*(p/(se*2))))return;const ge=G.len/se,Ae=f.loading.first?f.loading.first-f.loading.start:-1,Ve=f.loaded&&Ae>-1,vt=this.getBwEstimate(),pt=r.levels,$t=pt[t.level],St=f.total||Math.max(f.loaded,Math.round(p*$t.averageBitrate/8));let an=Ve?E-Ae:E;an<1&&Ve&&(an=Math.min(E,f.loaded*8/vt));const zt=Ve?f.loaded*1e3/an:0,bn=zt?(St-f.loaded)/zt:St*8/vt+ue/1e3;if(bn<=ge)return;const Fn=zt?zt*8:vt;let en=Number.POSITIVE_INFINITY,xn;for(xn=t.level-1;xn>R;xn--){const Hn=pt[xn].maxBitrate;if(en=this.getTimeToLoadFrag(ue/1e3,Fn,p*Hn,!pt[xn].details),en<ge)break}if(en>=bn||en>p*10)return;r.nextLoadLevel=r.nextAutoLevel=xn,Ve?this.bwEstimator.sample(E-Math.min(ue,Ae),f.loaded):this.bwEstimator.sampleTTFB(E);const yr=pt[xn].maxBitrate;this.getBwEstimate()*this.hls.config.abrBandWidthUpFactor>yr&&this.resetEstimator(yr),this.clearTimer(),b.warn(`[abr] Fragment ${t.sn}${n?" part "+n.index:""} of level ${t.level} is loading too slowly;
Time to underbuffer: ${ge.toFixed(3)} s
Estimated load time for current fragment: ${bn.toFixed(3)} s
Estimated load time for down switch fragment: ${en.toFixed(3)} s
TTFB estimate: ${Ae|0} ms
Current BW estimate: ${L(vt)?vt|0:"Unknown"} bps
New BW estimate: ${this.getBwEstimate()|0} bps
Switching to level ${xn} @ ${yr|0} bps`),r.trigger(c.FRAG_LOAD_EMERGENCY_ABORTED,{frag:t,part:n,stats:f})},this.hls=e,this.bwEstimator=this.initEstimator(),this.registerListeners()}resetEstimator(e){e&&(b.log(`setting initial bwe to ${e}`),this.hls.config.abrEwmaDefaultEstimate=e),this.firstSelection=-1,this.bwEstimator=this.initEstimator()}initEstimator(){const e=this.hls.config;return new Gi(e.abrEwmaSlowVoD,e.abrEwmaFastVoD,e.abrEwmaDefaultEstimate)}registerListeners(){const{hls:e}=this;e.on(c.MANIFEST_LOADING,this.onManifestLoading,this),e.on(c.FRAG_LOADING,this.onFragLoading,this),e.on(c.FRAG_LOADED,this.onFragLoaded,this),e.on(c.FRAG_BUFFERED,this.onFragBuffered,this),e.on(c.LEVEL_SWITCHING,this.onLevelSwitching,this),e.on(c.LEVEL_LOADED,this.onLevelLoaded,this),e.on(c.LEVELS_UPDATED,this.onLevelsUpdated,this),e.on(c.MAX_AUTO_LEVEL_UPDATED,this.onMaxAutoLevelUpdated,this),e.on(c.ERROR,this.onError,this)}unregisterListeners(){const{hls:e}=this;e&&(e.off(c.MANIFEST_LOADING,this.onManifestLoading,this),e.off(c.FRAG_LOADING,this.onFragLoading,this),e.off(c.FRAG_LOADED,this.onFragLoaded,this),e.off(c.FRAG_BUFFERED,this.onFragBuffered,this),e.off(c.LEVEL_SWITCHING,this.onLevelSwitching,this),e.off(c.LEVEL_LOADED,this.onLevelLoaded,this),e.off(c.LEVELS_UPDATED,this.onLevelsUpdated,this),e.off(c.MAX_AUTO_LEVEL_UPDATED,this.onMaxAutoLevelUpdated,this),e.off(c.ERROR,this.onError,this))}destroy(){this.unregisterListeners(),this.clearTimer(),this.hls=this._abandonRulesCheck=null,this.fragCurrent=this.partCurrent=null}onManifestLoading(e,t){this.lastLoadedFragLevel=-1,this.firstSelection=-1,this.lastLevelLoadSec=0,this.fragCurrent=this.partCurrent=null,this.onLevelsUpdated(),this.clearTimer()}onLevelsUpdated(){this.lastLoadedFragLevel>-1&&this.fragCurrent&&(this.lastLoadedFragLevel=this.fragCurrent.level),this._nextAutoLevel=-1,this.onMaxAutoLevelUpdated(),this.codecTiers=null,this.audioTracksByGroup=null}onMaxAutoLevelUpdated(){this.firstSelection=-1,this.nextAutoLevelKey=""}onFragLoading(e,t){const n=t.frag;if(!this.ignoreFragment(n)){if(!n.bitrateTest){var r;this.fragCurrent=n,this.partCurrent=(r=t.part)!=null?r:null}this.clearTimer(),this.timer=self.setInterval(this._abandonRulesCheck,100)}}onLevelSwitching(e,t){this.clearTimer()}onError(e,t){if(!t.fatal)switch(t.details){case y.BUFFER_ADD_CODEC_ERROR:case y.BUFFER_APPEND_ERROR:this.lastLoadedFragLevel=-1,this.firstSelection=-1;break;case y.FRAG_LOAD_TIMEOUT:{const n=t.frag,{fragCurrent:r,partCurrent:i}=this;if(n&&r&&n.sn===r.sn&&n.level===r.level){const s=performance.now(),u=i?i.stats:n.stats,f=s-u.loading.start,p=u.loading.first?u.loading.first-u.loading.start:-1;if(u.loaded&&p>-1){const R=this.bwEstimator.getEstimateTTFB();this.bwEstimator.sample(f-Math.min(R,p),u.loaded)}else this.bwEstimator.sampleTTFB(f)}break}}}getTimeToLoadFrag(e,t,n,r){const i=e+n/t,s=r?this.lastLevelLoadSec:0;return i+s}onLevelLoaded(e,t){const n=this.hls.config,{loading:r}=t.stats,i=r.end-r.start;L(i)&&(this.lastLevelLoadSec=i/1e3),t.details.live?this.bwEstimator.update(n.abrEwmaSlowLive,n.abrEwmaFastLive):this.bwEstimator.update(n.abrEwmaSlowVoD,n.abrEwmaFastVoD)}onFragLoaded(e,{frag:t,part:n}){const r=n?n.stats:t.stats;if(t.type===Ge.MAIN&&this.bwEstimator.sampleTTFB(r.loading.first-r.loading.start),!this.ignoreFragment(t)){if(this.clearTimer(),t.level===this._nextAutoLevel&&(this._nextAutoLevel=-1),this.firstSelection=-1,this.hls.config.abrMaxWithRealBitrate){const i=n?n.duration:t.duration,s=this.hls.levels[t.level],u=(s.loaded?s.loaded.bytes:0)+r.loaded,f=(s.loaded?s.loaded.duration:0)+i;s.loaded={bytes:u,duration:f},s.realBitrate=Math.round(8*u/f)}if(t.bitrateTest){const i={stats:r,frag:t,part:n,id:t.type};this.onFragBuffered(c.FRAG_BUFFERED,i),t.bitrateTest=!1}else this.lastLoadedFragLevel=t.level}}onFragBuffered(e,t){const{frag:n,part:r}=t,i=r!=null&&r.stats.loaded?r.stats:n.stats;if(i.aborted||this.ignoreFragment(n))return;const s=i.parsing.end-i.loading.start-Math.min(i.loading.first-i.loading.start,this.bwEstimator.getEstimateTTFB());this.bwEstimator.sample(s,i.loaded),i.bwEstimate=this.getBwEstimate(),n.bitrateTest?this.bitrateTestDelay=s/1e3:this.bitrateTestDelay=0}ignoreFragment(e){return e.type!==Ge.MAIN||e.sn==="initSegment"}clearTimer(){this.timer>-1&&(self.clearInterval(this.timer),this.timer=-1)}get firstAutoLevel(){const{maxAutoLevel:e,minAutoLevel:t}=this.hls,n=this.getBwEstimate(),r=this.hls.config.maxStarvationDelay,i=this.findBestLevel(n,t,e,0,r,1,1);if(i>-1)return i;const s=this.hls.firstLevel,u=Math.min(Math.max(s,t),e);return b.warn(`[abr] Could not find best starting auto level. Defaulting to first in playlist ${s} clamped to ${u}`),u}get forcedAutoLevel(){return this.nextAutoLevelKey?-1:this._nextAutoLevel}get nextAutoLevel(){const e=this.forcedAutoLevel,n=this.bwEstimator.canEstimate(),r=this.lastLoadedFragLevel>-1;if(e!==-1&&(!n||!r||this.nextAutoLevelKey===this.getAutoLevelKey()))return e;const i=n&&r?this.getNextABRAutoLevel():this.firstAutoLevel;if(e!==-1){const s=this.hls.levels;if(s.length>Math.max(e,i)&&s[e].loadError<=s[i].loadError)return e}return this._nextAutoLevel=i,this.nextAutoLevelKey=this.getAutoLevelKey(),i}getAutoLevelKey(){return`${this.getBwEstimate()}_${this.getStarvationDelay().toFixed(2)}`}getNextABRAutoLevel(){const{fragCurrent:e,partCurrent:t,hls:n}=this,{maxAutoLevel:r,config:i,minAutoLevel:s}=n,u=t?t.duration:e?e.duration:0,f=this.getBwEstimate(),p=this.getStarvationDelay();let E=i.abrBandWidthFactor,R=i.abrBandWidthUpFactor;if(p){const Ae=this.findBestLevel(f,s,r,p,0,E,R);if(Ae>=0)return Ae}let G=u?Math.min(u,i.maxStarvationDelay):i.maxStarvationDelay;if(!p){const Ae=this.bitrateTestDelay;Ae&&(G=(u?Math.min(u,i.maxLoadingDelay):i.maxLoadingDelay)-Ae,b.info(`[abr] bitrate test took ${Math.round(1e3*Ae)}ms, set first fragment max fetchDuration to ${Math.round(1e3*G)} ms`),E=R=1)}const ue=this.findBestLevel(f,s,r,p,G,E,R);if(b.info(`[abr] ${p?"rebuffering expected":"buffer is empty"}, optimal quality level ${ue}`),ue>-1)return ue;const se=n.levels[s],ge=n.levels[n.loadLevel];return(se==null?void 0:se.bitrate)<(ge==null?void 0:ge.bitrate)?s:n.loadLevel}getStarvationDelay(){const e=this.hls,t=e.media;if(!t)return 1/0;const n=t&&t.playbackRate!==0?Math.abs(t.playbackRate):1,r=e.mainForwardBufferInfo;return(r?r.len:0)/n}getBwEstimate(){return this.bwEstimator.canEstimate()?this.bwEstimator.getEstimate():this.hls.config.abrEwmaDefaultEstimate}findBestLevel(e,t,n,r,i,s,u){var f;const p=r+i,E=this.lastLoadedFragLevel,R=E===-1?this.hls.firstLevel:E,{fragCurrent:G,partCurrent:ue}=this,{levels:se,allAudioTracks:ge,loadLevel:Ae,config:Ve}=this.hls;if(se.length===1)return 0;const vt=se[R],pt=!!(vt!=null&&(f=vt.details)!=null&&f.live),$t=Ae===-1||E===-1;let St,an="SDR",zt=(vt==null?void 0:vt.frameRate)||0;const{audioPreference:bn,videoPreference:Fn}=Ve,en=this.audioTracksByGroup||(this.audioTracksByGroup=us(ge));if($t){if(this.firstSelection!==-1)return this.firstSelection;const gr=this.codecTiers||(this.codecTiers=ts(se,en,t,n)),or=Pi(gr,an,e,bn,Fn),{codecSet:Nr,videoRanges:Xr,minFramerate:Vn,minBitrate:jn,preferHDR:Ur}=or;St=Nr,an=Ur?Xr[Xr.length-1]:Xr[0],zt=Vn,e=Math.max(e,jn),b.log(`[abr] picked start tier ${JSON.stringify(or)}`)}else St=vt==null?void 0:vt.codecSet,an=vt==null?void 0:vt.videoRange;const xn=ue?ue.duration:G?G.duration:0,yr=this.bwEstimator.getEstimateTTFB()/1e3,Hn=[];for(let gr=n;gr>=t;gr--){var _r;const or=se[gr],Nr=gr>R;if(!or)continue;if(Ve.useMediaCapabilities&&!or.supportedResult&&!or.supportedPromise){const _i=navigator.mediaCapabilities;typeof(_i==null?void 0:_i.decodingInfo)=="function"&&ss(or,en,an,zt,e,bn)?(or.supportedPromise=as(or,en,_i),or.supportedPromise.then(Li=>{if(!this.hls)return;or.supportedResult=Li;const ki=this.hls.levels,Yi=ki.indexOf(or);Li.error?b.warn(`[abr] MediaCapabilities decodingInfo error: "${Li.error}" for level ${Yi} ${JSON.stringify(Li)}`):Li.supported||(b.warn(`[abr] Unsupported MediaCapabilities decodingInfo result for level ${Yi} ${JSON.stringify(Li)}`),Yi>-1&&ki.length>1&&(b.log(`[abr] Removing unsupported level ${Yi}`),this.hls.removeLevel(Yi)))})):or.supportedResult=ji}if(St&&or.codecSet!==St||an&&or.videoRange!==an||Nr&&zt>or.frameRate||!Nr&&zt>0&&zt<or.frameRate||or.supportedResult&&!((_r=or.supportedResult.decodingInfoResults)!=null&&_r[0].smooth)){Hn.push(gr);continue}const Xr=or.details,Vn=(ue?Xr==null?void 0:Xr.partTarget:Xr==null?void 0:Xr.averagetargetduration)||xn;let jn;Nr?jn=u*e:jn=s*e;const Ur=xn&&r>=xn*2&&i===0?se[gr].averageBitrate:se[gr].maxBitrate,Ar=this.getTimeToLoadFrag(yr,jn,Ur*Vn,Xr===void 0);if(jn>=Ur&&(gr===E||or.loadError===0&&or.fragmentError===0)&&(Ar<=yr||!L(Ar)||pt&&!this.bitrateTestDelay||Ar<p)){const _i=this.forcedAutoLevel;return gr!==Ae&&(_i===-1||_i!==Ae)&&(Hn.length&&b.trace(`[abr] Skipped level(s) ${Hn.join(",")} of ${n} max with CODECS and VIDEO-RANGE:"${se[Hn[0]].codecs}" ${se[Hn[0]].videoRange}; not compatible with "${vt.codecs}" ${an}`),b.info(`[abr] switch candidate:${R}->${gr} adjustedbw(${Math.round(jn)})-bitrate=${Math.round(jn-Ur)} ttfb:${yr.toFixed(1)} avgDuration:${Vn.toFixed(1)} maxFetchDuration:${p.toFixed(1)} fetchDuration:${Ar.toFixed(1)} firstSelection:${$t} codecSet:${St} videoRange:${an} hls.loadLevel:${Ae}`)),$t&&(this.firstSelection=gr),gr}}return-1}set nextAutoLevel(e){const{maxAutoLevel:t,minAutoLevel:n}=this.hls,r=Math.min(Math.max(e,n),t);this._nextAutoLevel!==r&&(this.nextAutoLevelKey="",this._nextAutoLevel=r)}}class wi{constructor(){this._boundTick=void 0,this._tickTimer=null,this._tickInterval=null,this._tickCallCount=0,this._boundTick=this.tick.bind(this)}destroy(){this.onHandlerDestroying(),this.onHandlerDestroyed()}onHandlerDestroying(){this.clearNextTick(),this.clearInterval()}onHandlerDestroyed(){}hasInterval(){return!!this._tickInterval}hasNextTick(){return!!this._tickTimer}setInterval(e){return this._tickInterval?!1:(this._tickCallCount=0,this._tickInterval=self.setInterval(this._boundTick,e),!0)}clearInterval(){return this._tickInterval?(self.clearInterval(this._tickInterval),this._tickInterval=null,!0):!1}clearNextTick(){return this._tickTimer?(self.clearTimeout(this._tickTimer),this._tickTimer=null,!0):!1}tick(){this._tickCallCount++,this._tickCallCount===1&&(this.doTick(),this._tickCallCount>1&&this.tickImmediate(),this._tickCallCount=0)}tickImmediate(){this.clearNextTick(),this._tickTimer=self.setTimeout(this._boundTick,0)}doTick(){}}var Ir={NOT_LOADED:"NOT_LOADED",APPENDING:"APPENDING",PARTIAL:"PARTIAL",OK:"OK"};class Fi{constructor(e){this.activePartLists=Object.create(null),this.endListFragments=Object.create(null),this.fragments=Object.create(null),this.timeRanges=Object.create(null),this.bufferPadding=.2,this.hls=void 0,this.hasGaps=!1,this.hls=e,this._registerListeners()}_registerListeners(){const{hls:e}=this;e.on(c.BUFFER_APPENDED,this.onBufferAppended,this),e.on(c.FRAG_BUFFERED,this.onFragBuffered,this),e.on(c.FRAG_LOADED,this.onFragLoaded,this)}_unregisterListeners(){const{hls:e}=this;e.off(c.BUFFER_APPENDED,this.onBufferAppended,this),e.off(c.FRAG_BUFFERED,this.onFragBuffered,this),e.off(c.FRAG_LOADED,this.onFragLoaded,this)}destroy(){this._unregisterListeners(),this.fragments=this.activePartLists=this.endListFragments=this.timeRanges=null}getAppendedFrag(e,t){const n=this.activePartLists[t];if(n)for(let r=n.length;r--;){const i=n[r];if(!i)break;const s=i.end;if(i.start<=e&&s!==null&&e<=s)return i}return this.getBufferedFrag(e,t)}getBufferedFrag(e,t){const{fragments:n}=this,r=Object.keys(n);for(let i=r.length;i--;){const s=n[r[i]];if((s==null?void 0:s.body.type)===t&&s.buffered){const u=s.body;if(u.start<=e&&e<=u.end)return u}}return null}detectEvictedFragments(e,t,n,r){this.timeRanges&&(this.timeRanges[e]=t);const i=(r==null?void 0:r.fragment.sn)||-1;Object.keys(this.fragments).forEach(s=>{const u=this.fragments[s];if(!u||i>=u.body.sn)return;if(!u.buffered&&!u.loaded){u.body.type===n&&this.removeFragment(u.body);return}const f=u.range[e];f&&f.time.some(p=>{const E=!this.isTimeBuffered(p.startPTS,p.endPTS,t);return E&&this.removeFragment(u.body),E})})}detectPartialFragments(e){const t=this.timeRanges,{frag:n,part:r}=e;if(!t||n.sn==="initSegment")return;const i=Oi(n),s=this.fragments[i];if(!s||s.buffered&&n.gap)return;const u=!n.relurl;Object.keys(t).forEach(f=>{const p=n.elementaryStreams[f];if(!p)return;const E=t[f],R=u||p.partial===!0;s.range[f]=this.getBufferedTimes(n,r,R,E)}),s.loaded=null,Object.keys(s.range).length?(s.buffered=!0,(s.body.endList=n.endList||s.body.endList)&&(this.endListFragments[s.body.type]=s),gi(s)||this.removeParts(n.sn-1,n.type)):this.removeFragment(s.body)}removeParts(e,t){const n=this.activePartLists[t];n&&(this.activePartLists[t]=n.filter(r=>r.fragment.sn>=e))}fragBuffered(e,t){const n=Oi(e);let r=this.fragments[n];!r&&t&&(r=this.fragments[n]={body:e,appendedPTS:null,loaded:null,buffered:!1,range:Object.create(null)},e.gap&&(this.hasGaps=!0)),r&&(r.loaded=null,r.buffered=!0)}getBufferedTimes(e,t,n,r){const i={time:[],partial:n},s=e.start,u=e.end,f=e.minEndPTS||u,p=e.maxStartPTS||s;for(let E=0;E<r.length;E++){const R=r.start(E)-this.bufferPadding,G=r.end(E)+this.bufferPadding;if(p>=R&&f<=G){i.time.push({startPTS:Math.max(s,r.start(E)),endPTS:Math.min(u,r.end(E))});break}else if(s<G&&u>R){const ue=Math.max(s,r.start(E)),se=Math.min(u,r.end(E));se>ue&&(i.partial=!0,i.time.push({startPTS:ue,endPTS:se}))}else if(u<=R)break}return i}getPartialFragment(e){let t=null,n,r,i,s=0;const{bufferPadding:u,fragments:f}=this;return Object.keys(f).forEach(p=>{const E=f[p];E&&gi(E)&&(r=E.body.start-u,i=E.body.end+u,e>=r&&e<=i&&(n=Math.min(e-r,i-e),s<=n&&(t=E.body,s=n)))}),t}isEndListAppended(e){const t=this.endListFragments[e];return t!==void 0&&(t.buffered||gi(t))}getState(e){const t=Oi(e),n=this.fragments[t];return n?n.buffered?gi(n)?Ir.PARTIAL:Ir.OK:Ir.APPENDING:Ir.NOT_LOADED}isTimeBuffered(e,t,n){let r,i;for(let s=0;s<n.length;s++){if(r=n.start(s)-this.bufferPadding,i=n.end(s)+this.bufferPadding,e>=r&&t<=i)return!0;if(t<=r)return!1}return!1}onFragLoaded(e,t){const{frag:n,part:r}=t;if(n.sn==="initSegment"||n.bitrateTest)return;const i=r?null:t,s=Oi(n);this.fragments[s]={body:n,appendedPTS:null,loaded:i,buffered:!1,range:Object.create(null)}}onBufferAppended(e,t){const{frag:n,part:r,timeRanges:i}=t;if(n.sn==="initSegment")return;const s=n.type;if(r){let u=this.activePartLists[s];u||(this.activePartLists[s]=u=[]),u.push(r)}this.timeRanges=i,Object.keys(i).forEach(u=>{const f=i[u];this.detectEvictedFragments(u,f,s,r)})}onFragBuffered(e,t){this.detectPartialFragments(t)}hasFragment(e){const t=Oi(e);return!!this.fragments[t]}hasParts(e){var t;return!!((t=this.activePartLists[e])!=null&&t.length)}removeFragmentsInRange(e,t,n,r,i){r&&!this.hasGaps||Object.keys(this.fragments).forEach(s=>{const u=this.fragments[s];if(!u)return;const f=u.body;f.type!==n||r&&!f.gap||f.start<t&&f.end>e&&(u.buffered||i)&&this.removeFragment(f)})}removeFragment(e){const t=Oi(e);e.stats.loaded=0,e.clearElementaryStreamInfo();const n=this.activePartLists[e.type];if(n){const r=e.sn;this.activePartLists[e.type]=n.filter(i=>i.fragment.sn!==r)}delete this.fragments[t],e.endList&&delete this.endListFragments[e.type]}removeAllFragments(){this.fragments=Object.create(null),this.endListFragments=Object.create(null),this.activePartLists=Object.create(null),this.hasGaps=!1}}function gi(a){var e,t,n;return a.buffered&&(a.body.gap||((e=a.range.video)==null?void 0:e.partial)||((t=a.range.audio)==null?void 0:t.partial)||((n=a.range.audiovideo)==null?void 0:n.partial))}function Oi(a){return`${a.type}_${a.level}_${a.sn}`}const zi={length:0,start:()=>0,end:()=>0};class Or{static isBuffered(e,t){try{if(e){const n=Or.getBuffered(e);for(let r=0;r<n.length;r++)if(t>=n.start(r)&&t<=n.end(r))return!0}}catch(n){}return!1}static bufferInfo(e,t,n){try{if(e){const r=Or.getBuffered(e),i=[];let s;for(s=0;s<r.length;s++)i.push({start:r.start(s),end:r.end(s)});return this.bufferedInfo(i,t,n)}}catch(r){}return{len:0,start:t,end:t,nextStart:void 0}}static bufferedInfo(e,t,n){t=Math.max(0,t),e.sort(function(p,E){const R=p.start-E.start;return R||E.end-p.end});let r=[];if(n)for(let p=0;p<e.length;p++){const E=r.length;if(E){const R=r[E-1].end;e[p].start-R<n?e[p].end>R&&(r[E-1].end=e[p].end):r.push(e[p])}else r.push(e[p])}else r=e;let i=0,s,u=t,f=t;for(let p=0;p<r.length;p++){const E=r[p].start,R=r[p].end;if(t+n>=E&&t<R)u=E,f=R,i=f-t;else if(t+n<E){s=E;break}}return{len:i,start:u||0,end:f||0,nextStart:s}}static getBuffered(e){try{return e.buffered}catch(t){return b.log("failed to get media.buffered",t),zi}}}class gs{constructor(e,t,n,r=0,i=-1,s=!1){this.level=void 0,this.sn=void 0,this.part=void 0,this.id=void 0,this.size=void 0,this.partial=void 0,this.transmuxing=Di(),this.buffering={audio:Di(),video:Di(),audiovideo:Di()},this.level=e,this.sn=t,this.id=n,this.size=r,this.part=i,this.partial=s}}function Di(){return{start:0,executeStart:0,executeEnd:0,end:0}}function cs(a,e){for(let n=0,r=a.length;n<r;n++){var t;if(((t=a[n])==null?void 0:t.cc)===e)return a[n]}return null}function ea(a,e,t){return!!(e&&(t.endCC>t.startCC||a&&a.cc<t.startCC))}function vs(a,e){const t=a.fragments,n=e.fragments;if(!n.length||!t.length){b.log("No fragments to align");return}const r=cs(t,n[0].cc);if(!r||r&&!r.startPTS){b.log("No frag in previous level to align on");return}return r}function _s(a,e){if(a){const t=a.start+e;a.start=a.startPTS=t,a.endPTS=t+a.duration}}function ys(a,e){const t=e.fragments;for(let n=0,r=t.length;n<r;n++)_s(t[n],a);e.fragmentHint&&_s(e.fragmentHint,a),e.alignedSliding=!0}function Ts(a,e,t){e&&(Ms(a,t,e),!t.alignedSliding&&e&&$i(t,e),!t.alignedSliding&&e&&!t.skippedSegments&&Ai(e,t))}function Ms(a,e,t){if(ea(a,t,e)){const n=vs(t,e);n&&L(n.start)&&(b.log(`Adjusting PTS using last level due to CC increase within current level ${e.url}`),ys(n.start,e))}}function $i(a,e){if(!a.hasProgramDateTime||!e.hasProgramDateTime)return;const t=a.fragments,n=e.fragments;if(!t.length||!n.length)return;let r,i;const s=Math.min(e.endCC,a.endCC);e.startCC<s&&a.startCC<s&&(r=cs(n,s),i=cs(t,s)),(!r||!i)&&(r=n[Math.floor(n.length/2)],i=cs(t,r.cc)||t[Math.floor(t.length/2)]);const u=r.programDateTime,f=i.programDateTime;if(!u||!f)return;const p=(f-u)/1e3-(i.start-r.start);ys(p,a)}const Ds=Math.pow(2,17);class Br{constructor(e){this.config=void 0,this.loader=null,this.partLoadTimeout=-1,this.config=e}destroy(){this.loader&&(this.loader.destroy(),this.loader=null)}abort(){this.loader&&this.loader.abort()}load(e,t){const n=e.url;if(!n)return Promise.reject(new ri({type:S.NETWORK_ERROR,details:y.FRAG_LOAD_ERROR,fatal:!1,frag:e,error:new Error(`Fragment does not have a ${n?"part list":"url"}`),networkDetails:null}));this.abort();const r=this.config,i=r.fLoader,s=r.loader;return new Promise((u,f)=>{if(this.loader&&this.loader.destroy(),e.gap)if(e.tagList.some(ue=>ue[0]==="GAP")){f(Rr(e));return}else e.gap=!1;const p=this.loader=e.loader=i?new i(r):new s(r),E=Lr(e),R=Hr(r.fragLoadPolicy.default),G={loadPolicy:R,timeout:R.maxLoadTimeMs,maxRetry:0,retryDelay:0,maxRetryDelay:0,highWaterMark:e.sn==="initSegment"?1/0:Ds};e.stats=p.stats,p.load(E,G,{onSuccess:(ue,se,ge,Ae)=>{this.resetLoader(e,p);let Ve=ue.data;ge.resetIV&&e.decryptdata&&(e.decryptdata.iv=new Uint8Array(Ve.slice(0,16)),Ve=Ve.slice(16)),u({frag:e,part:null,payload:Ve,networkDetails:Ae})},onError:(ue,se,ge,Ae)=>{this.resetLoader(e,p),f(new ri({type:S.NETWORK_ERROR,details:y.FRAG_LOAD_ERROR,fatal:!1,frag:e,response:ve({url:n,data:void 0},ue),error:new Error(`HTTP Error ${ue.code} ${ue.text}`),networkDetails:ge,stats:Ae}))},onAbort:(ue,se,ge)=>{this.resetLoader(e,p),f(new ri({type:S.NETWORK_ERROR,details:y.INTERNAL_ABORTED,fatal:!1,frag:e,error:new Error("Aborted"),networkDetails:ge,stats:ue}))},onTimeout:(ue,se,ge)=>{this.resetLoader(e,p),f(new ri({type:S.NETWORK_ERROR,details:y.FRAG_LOAD_TIMEOUT,fatal:!1,frag:e,error:new Error(`Timeout after ${G.timeout}ms`),networkDetails:ge,stats:ue}))},onProgress:(ue,se,ge,Ae)=>{t&&t({frag:e,part:null,payload:ge,networkDetails:Ae})}})})}loadPart(e,t,n){this.abort();const r=this.config,i=r.fLoader,s=r.loader;return new Promise((u,f)=>{if(this.loader&&this.loader.destroy(),e.gap||t.gap){f(Rr(e,t));return}const p=this.loader=e.loader=i?new i(r):new s(r),E=Lr(e,t),R=Hr(r.fragLoadPolicy.default),G={loadPolicy:R,timeout:R.maxLoadTimeMs,maxRetry:0,retryDelay:0,maxRetryDelay:0,highWaterMark:Ds};t.stats=p.stats,p.load(E,G,{onSuccess:(ue,se,ge,Ae)=>{this.resetLoader(e,p),this.updateStatsFromPart(e,t);const Ve={frag:e,part:t,payload:ue.data,networkDetails:Ae};n(Ve),u(Ve)},onError:(ue,se,ge,Ae)=>{this.resetLoader(e,p),f(new ri({type:S.NETWORK_ERROR,details:y.FRAG_LOAD_ERROR,fatal:!1,frag:e,part:t,response:ve({url:E.url,data:void 0},ue),error:new Error(`HTTP Error ${ue.code} ${ue.text}`),networkDetails:ge,stats:Ae}))},onAbort:(ue,se,ge)=>{e.stats.aborted=t.stats.aborted,this.resetLoader(e,p),f(new ri({type:S.NETWORK_ERROR,details:y.INTERNAL_ABORTED,fatal:!1,frag:e,part:t,error:new Error("Aborted"),networkDetails:ge,stats:ue}))},onTimeout:(ue,se,ge)=>{this.resetLoader(e,p),f(new ri({type:S.NETWORK_ERROR,details:y.FRAG_LOAD_TIMEOUT,fatal:!1,frag:e,part:t,error:new Error(`Timeout after ${G.timeout}ms`),networkDetails:ge,stats:ue}))}})})}updateStatsFromPart(e,t){const n=e.stats,r=t.stats,i=r.total;if(n.loaded+=r.loaded,i){const f=Math.round(e.duration/t.duration),p=Math.min(Math.round(n.loaded/i),f),R=(f-p)*Math.round(n.loaded/p);n.total=n.loaded+R}else n.total=Math.max(n.loaded,n.total);const s=n.loading,u=r.loading;s.start?s.first+=u.first-u.start:(s.start=u.start,s.first=u.first),s.end=u.end}resetLoader(e,t){e.loader=null,this.loader===t&&(self.clearTimeout(this.partLoadTimeout),this.loader=null),t.destroy()}}function Lr(a,e=null){const t=e||a,n={frag:a,part:e,responseType:"arraybuffer",url:t.url,headers:{},rangeStart:0,rangeEnd:0},r=t.byteRangeStartOffset,i=t.byteRangeEndOffset;if(L(r)&&L(i)){var s;let u=r,f=i;if(a.sn==="initSegment"&&((s=a.decryptdata)==null?void 0:s.method)==="AES-128"){const p=i-r;p%16&&(f=i+(16-p%16)),r!==0&&(n.resetIV=!0,u=r-16)}n.rangeStart=u,n.rangeEnd=f}return n}function Rr(a,e){const t=new Error(`GAP ${a.gap?"tag":"attribute"} found`),n={type:S.MEDIA_ERROR,details:y.FRAG_GAP,fatal:!1,frag:a,error:t,networkDetails:null};return e&&(n.part=e),(e||a).stats.aborted=!0,new ri(n)}class ri extends Error{constructor(e){super(e.error.message),this.data=void 0,this.data=e}}class si{constructor(e,t){this.subtle=void 0,this.aesIV=void 0,this.subtle=e,this.aesIV=t}decrypt(e,t){return this.subtle.decrypt({name:"AES-CBC",iv:this.aesIV},t,e)}}class ds{constructor(e,t){this.subtle=void 0,this.key=void 0,this.subtle=e,this.key=t}expandKey(){return this.subtle.importKey("raw",this.key,{name:"AES-CBC"},!1,["encrypt","decrypt"])}}function Rs(a){const e=a.byteLength,t=e&&new DataView(a.buffer).getUint8(e-1);return t?oe(a,0,e-t):a}class Bs{constructor(){this.rcon=[0,1,2,4,8,16,32,64,128,27,54],this.subMix=[new Uint32Array(256),new Uint32Array(256),new Uint32Array(256),new Uint32Array(256)],this.invSubMix=[new Uint32Array(256),new Uint32Array(256),new Uint32Array(256),new Uint32Array(256)],this.sBox=new Uint32Array(256),this.invSBox=new Uint32Array(256),this.key=new Uint32Array(0),this.ksRows=0,this.keySize=0,this.keySchedule=void 0,this.invKeySchedule=void 0,this.initTable()}uint8ArrayToUint32Array_(e){const t=new DataView(e),n=new Uint32Array(4);for(let r=0;r<4;r++)n[r]=t.getUint32(r*4);return n}initTable(){const e=this.sBox,t=this.invSBox,n=this.subMix,r=n[0],i=n[1],s=n[2],u=n[3],f=this.invSubMix,p=f[0],E=f[1],R=f[2],G=f[3],ue=new Uint32Array(256);let se=0,ge=0,Ae=0;for(Ae=0;Ae<256;Ae++)Ae<128?ue[Ae]=Ae<<1:ue[Ae]=Ae<<1^283;for(Ae=0;Ae<256;Ae++){let Ve=ge^ge<<1^ge<<2^ge<<3^ge<<4;Ve=Ve>>>8^Ve&255^99,e[se]=Ve,t[Ve]=se;const vt=ue[se],pt=ue[vt],$t=ue[pt];let St=ue[Ve]*257^Ve*16843008;r[se]=St<<24|St>>>8,i[se]=St<<16|St>>>16,s[se]=St<<8|St>>>24,u[se]=St,St=$t*16843009^pt*65537^vt*257^se*16843008,p[Ve]=St<<24|St>>>8,E[Ve]=St<<16|St>>>16,R[Ve]=St<<8|St>>>24,G[Ve]=St,se?(se=vt^ue[ue[ue[$t^vt]]],ge^=ue[ue[ge]]):se=ge=1}}expandKey(e){const t=this.uint8ArrayToUint32Array_(e);let n=!0,r=0;for(;r<t.length&&n;)n=t[r]===this.key[r],r++;if(n)return;this.key=t;const i=this.keySize=t.length;if(i!==4&&i!==6&&i!==8)throw new Error("Invalid aes key size="+i);const s=this.ksRows=(i+6+1)*4;let u,f;const p=this.keySchedule=new Uint32Array(s),E=this.invKeySchedule=new Uint32Array(s),R=this.sBox,G=this.rcon,ue=this.invSubMix,se=ue[0],ge=ue[1],Ae=ue[2],Ve=ue[3];let vt,pt;for(u=0;u<s;u++){if(u<i){vt=p[u]=t[u];continue}pt=vt,u%i===0?(pt=pt<<8|pt>>>24,pt=R[pt>>>24]<<24|R[pt>>>16&255]<<16|R[pt>>>8&255]<<8|R[pt&255],pt^=G[u/i|0]<<24):i>6&&u%i===4&&(pt=R[pt>>>24]<<24|R[pt>>>16&255]<<16|R[pt>>>8&255]<<8|R[pt&255]),p[u]=vt=(p[u-i]^pt)>>>0}for(f=0;f<s;f++)u=s-f,f&3?pt=p[u]:pt=p[u-4],f<4||u<=4?E[f]=pt:E[f]=se[R[pt>>>24]]^ge[R[pt>>>16&255]]^Ae[R[pt>>>8&255]]^Ve[R[pt&255]],E[f]=E[f]>>>0}networkToHostOrderSwap(e){return e<<24|(e&65280)<<8|(e&16711680)>>8|e>>>24}decrypt(e,t,n){const r=this.keySize+6,i=this.invKeySchedule,s=this.invSBox,u=this.invSubMix,f=u[0],p=u[1],E=u[2],R=u[3],G=this.uint8ArrayToUint32Array_(n);let ue=G[0],se=G[1],ge=G[2],Ae=G[3];const Ve=new Int32Array(e),vt=new Int32Array(Ve.length);let pt,$t,St,an,zt,bn,Fn,en,xn,yr,Hn,_r,gr,or;const Nr=this.networkToHostOrderSwap;for(;t<Ve.length;){for(xn=Nr(Ve[t]),yr=Nr(Ve[t+1]),Hn=Nr(Ve[t+2]),_r=Nr(Ve[t+3]),zt=xn^i[0],bn=_r^i[1],Fn=Hn^i[2],en=yr^i[3],gr=4,or=1;or<r;or++)pt=f[zt>>>24]^p[bn>>16&255]^E[Fn>>8&255]^R[en&255]^i[gr],$t=f[bn>>>24]^p[Fn>>16&255]^E[en>>8&255]^R[zt&255]^i[gr+1],St=f[Fn>>>24]^p[en>>16&255]^E[zt>>8&255]^R[bn&255]^i[gr+2],an=f[en>>>24]^p[zt>>16&255]^E[bn>>8&255]^R[Fn&255]^i[gr+3],zt=pt,bn=$t,Fn=St,en=an,gr=gr+4;pt=s[zt>>>24]<<24^s[bn>>16&255]<<16^s[Fn>>8&255]<<8^s[en&255]^i[gr],$t=s[bn>>>24]<<24^s[Fn>>16&255]<<16^s[en>>8&255]<<8^s[zt&255]^i[gr+1],St=s[Fn>>>24]<<24^s[en>>16&255]<<16^s[zt>>8&255]<<8^s[bn&255]^i[gr+2],an=s[en>>>24]<<24^s[zt>>16&255]<<16^s[bn>>8&255]<<8^s[Fn&255]^i[gr+3],vt[t]=Nr(pt^ue),vt[t+1]=Nr(an^se),vt[t+2]=Nr(St^ge),vt[t+3]=Nr($t^Ae),ue=xn,se=yr,ge=Hn,Ae=_r,t=t+4}return vt.buffer}}const Ns=16;class hs{constructor(e,{removePKCS7Padding:t=!0}={}){if(this.logEnabled=!0,this.removePKCS7Padding=void 0,this.subtle=null,this.softwareDecrypter=null,this.key=null,this.fastAesKey=null,this.remainderData=null,this.currentIV=null,this.currentResult=null,this.useSoftware=void 0,this.useSoftware=e.enableSoftwareAES,this.removePKCS7Padding=t,t)try{const n=self.crypto;n&&(this.subtle=n.subtle||n.webkitSubtle)}catch(n){}this.useSoftware=!this.subtle}destroy(){this.subtle=null,this.softwareDecrypter=null,this.key=null,this.fastAesKey=null,this.remainderData=null,this.currentIV=null,this.currentResult=null}isSync(){return this.useSoftware}flush(){const{currentResult:e,remainderData:t}=this;if(!e||t)return this.reset(),null;const n=new Uint8Array(e);return this.reset(),this.removePKCS7Padding?Rs(n):n}reset(){this.currentResult=null,this.currentIV=null,this.remainderData=null,this.softwareDecrypter&&(this.softwareDecrypter=null)}decrypt(e,t,n){return this.useSoftware?new Promise((r,i)=>{this.softwareDecrypt(new Uint8Array(e),t,n);const s=this.flush();s?r(s.buffer):i(new Error("[softwareDecrypt] Failed to decrypt data"))}):this.webCryptoDecrypt(new Uint8Array(e),t,n)}softwareDecrypt(e,t,n){const{currentIV:r,currentResult:i,remainderData:s}=this;this.logOnce("JS AES decrypt"),s&&(e=ot(s,e),this.remainderData=null);const u=this.getValidChunk(e);if(!u.length)return null;r&&(n=r);let f=this.softwareDecrypter;f||(f=this.softwareDecrypter=new Bs),f.expandKey(t);const p=i;return this.currentResult=f.decrypt(u.buffer,0,n),this.currentIV=oe(u,-16).buffer,p||null}webCryptoDecrypt(e,t,n){if(this.key!==t||!this.fastAesKey){if(!this.subtle)return Promise.resolve(this.onWebCryptoError(e,t,n));this.key=t,this.fastAesKey=new ds(this.subtle,t)}return this.fastAesKey.expandKey().then(r=>this.subtle?(this.logOnce("WebCrypto AES decrypt"),new si(this.subtle,new Uint8Array(n)).decrypt(e.buffer,r)):Promise.reject(new Error("web crypto not initialized"))).catch(r=>(b.warn(`[decrypter]: WebCrypto Error, disable WebCrypto API, ${r.name}: ${r.message}`),this.onWebCryptoError(e,t,n)))}onWebCryptoError(e,t,n){this.useSoftware=!0,this.logEnabled=!0,this.softwareDecrypt(e,t,n);const r=this.flush();if(r)return r.buffer;throw new Error("WebCrypto and softwareDecrypt: failed to decrypt data")}getValidChunk(e){let t=e;const n=e.length-e.length%Ns;return n!==e.length&&(t=oe(e,0,n),this.remainderData=oe(e,n)),t}logOnce(e){this.logEnabled&&(b.log(`[decrypter]: ${e}`),this.logEnabled=!1)}}const ns={toString:function(a){let e="";const t=a.length;for(let n=0;n<t;n++)e+=`[${a.start(n).toFixed(3)}-${a.end(n).toFixed(3)}]`;return e}},Xt={STOPPED:"STOPPED",IDLE:"IDLE",KEY_LOADING:"KEY_LOADING",FRAG_LOADING:"FRAG_LOADING",FRAG_LOADING_WAITING_RETRY:"FRAG_LOADING_WAITING_RETRY",WAITING_TRACK:"WAITING_TRACK",PARSING:"PARSING",PARSED:"PARSED",ENDED:"ENDED",ERROR:"ERROR",WAITING_INIT_PTS:"WAITING_INIT_PTS",WAITING_LEVEL:"WAITING_LEVEL"};class bs extends wi{constructor(e,t,n,r,i){super(),this.hls=void 0,this.fragPrevious=null,this.fragCurrent=null,this.fragmentTracker=void 0,this.transmuxer=null,this._state=Xt.STOPPED,this.playlistType=void 0,this.media=null,this.mediaBuffer=null,this.config=void 0,this.bitrateTest=!1,this.lastCurrentTime=0,this.nextLoadPosition=0,this.startPosition=0,this.startTimeOffset=null,this.loadedmetadata=!1,this.retryDate=0,this.levels=null,this.fragmentLoader=void 0,this.keyLoader=void 0,this.levelLastLoaded=null,this.startFragRequested=!1,this.decrypter=void 0,this.initPTS=[],this.buffering=!0,this.onvseeking=null,this.onvended=null,this.logPrefix="",this.log=void 0,this.warn=void 0,this.playlistType=i,this.logPrefix=r,this.log=b.log.bind(b,`${r}:`),this.warn=b.warn.bind(b,`${r}:`),this.hls=e,this.fragmentLoader=new Br(e.config),this.keyLoader=n,this.fragmentTracker=t,this.config=e.config,this.decrypter=new hs(e.config),e.on(c.MANIFEST_LOADED,this.onManifestLoaded,this)}doTick(){this.onTickEnd()}onTickEnd(){}startLoad(e){}stopLoad(){this.fragmentLoader.abort(),this.keyLoader.abort(this.playlistType);const e=this.fragCurrent;e!=null&&e.loader&&(e.abortRequests(),this.fragmentTracker.removeFragment(e)),this.resetTransmuxer(),this.fragCurrent=null,this.fragPrevious=null,this.clearInterval(),this.clearNextTick(),this.state=Xt.STOPPED}pauseBuffering(){this.buffering=!1}resumeBuffering(){this.buffering=!0}_streamEnded(e,t){if(t.live||e.nextStart||!e.end||!this.media)return!1;const n=t.partList;if(n!=null&&n.length){const i=n[n.length-1];return Or.isBuffered(this.media,i.start+i.duration/2)}const r=t.fragments[t.fragments.length-1].type;return this.fragmentTracker.isEndListAppended(r)}getLevelDetails(){if(this.levels&&this.levelLastLoaded!==null){var e;return(e=this.levelLastLoaded)==null?void 0:e.details}}onMediaAttached(e,t){const n=this.media=this.mediaBuffer=t.media;this.onvseeking=this.onMediaSeeking.bind(this),this.onvended=this.onMediaEnded.bind(this),n.addEventListener("seeking",this.onvseeking),n.addEventListener("ended",this.onvended);const r=this.config;this.levels&&r.autoStartLoad&&this.state===Xt.STOPPED&&this.startLoad(r.startPosition)}onMediaDetaching(){const e=this.media;e!=null&&e.ended&&(this.log("MSE detaching and video ended, reset startPosition"),this.startPosition=this.lastCurrentTime=0),e&&this.onvseeking&&this.onvended&&(e.removeEventListener("seeking",this.onvseeking),e.removeEventListener("ended",this.onvended),this.onvseeking=this.onvended=null),this.keyLoader&&this.keyLoader.detach(),this.media=this.mediaBuffer=null,this.loadedmetadata=!1,this.fragmentTracker.removeAllFragments(),this.stopLoad()}onMediaSeeking(){const{config:e,fragCurrent:t,media:n,mediaBuffer:r,state:i}=this,s=n?n.currentTime:0,u=Or.bufferInfo(r||n,s,e.maxBufferHole);if(this.log(`media seeking to ${L(s)?s.toFixed(3):s}, state: ${i}`),this.state===Xt.ENDED)this.resetLoadingState();else if(t){const f=e.maxFragLookUpTolerance,p=t.start-f,E=t.start+t.duration+f;if(!u.len||E<u.start||p>u.end){const R=s>E;(s<p||R)&&(R&&t.loader&&(this.log("seeking outside of buffer while fragment load in progress, cancel fragment load"),t.abortRequests(),this.resetLoadingState()),this.fragPrevious=null)}}n&&(this.fragmentTracker.removeFragmentsInRange(s,1/0,this.playlistType,!0),this.lastCurrentTime=s),!this.loadedmetadata&&!u.len&&(this.nextLoadPosition=this.startPosition=s),this.tickImmediate()}onMediaEnded(){this.startPosition=this.lastCurrentTime=0}onManifestLoaded(e,t){this.startTimeOffset=t.startTimeOffset,this.initPTS=[]}onHandlerDestroying(){this.hls.off(c.MANIFEST_LOADED,this.onManifestLoaded,this),this.stopLoad(),super.onHandlerDestroying(),this.hls=null}onHandlerDestroyed(){this.state=Xt.STOPPED,this.fragmentLoader&&this.fragmentLoader.destroy(),this.keyLoader&&this.keyLoader.destroy(),this.decrypter&&this.decrypter.destroy(),this.hls=this.log=this.warn=this.decrypter=this.keyLoader=this.fragmentLoader=this.fragmentTracker=null,super.onHandlerDestroyed()}loadFragment(e,t,n){this._loadFragForPlayback(e,t,n)}_loadFragForPlayback(e,t,n){const r=i=>{if(this.fragContextChanged(e)){this.warn(`Fragment ${e.sn}${i.part?" p: "+i.part.index:""} of level ${e.level} was dropped during download.`),this.fragmentTracker.removeFragment(e);return}e.stats.chunkCount++,this._handleFragmentLoadProgress(i)};this._doFragLoad(e,t,n,r).then(i=>{if(!i)return;const s=this.state;if(this.fragContextChanged(e)){(s===Xt.FRAG_LOADING||!this.fragCurrent&&s===Xt.PARSING)&&(this.fragmentTracker.removeFragment(e),this.state=Xt.IDLE);return}"payload"in i&&(this.log(`Loaded fragment ${e.sn} of level ${e.level}`),this.hls.trigger(c.FRAG_LOADED,i)),this._handleFragmentLoadComplete(i)}).catch(i=>{this.state===Xt.STOPPED||this.state===Xt.ERROR||(this.warn(`Frag error: ${(i==null?void 0:i.message)||i}`),this.resetFragmentLoading(e))})}clearTrackerIfNeeded(e){var t;const{fragmentTracker:n}=this;if(n.getState(e)===Ir.APPENDING){const i=e.type,s=this.getFwdBufferInfo(this.mediaBuffer,i),u=Math.max(e.duration,s?s.len:this.config.maxBufferLength),f=this.backtrackFragment;((f?e.sn-f.sn:0)===1||this.reduceMaxBufferLength(u,e.duration))&&n.removeFragment(e)}else((t=this.mediaBuffer)==null?void 0:t.buffered.length)===0?n.removeAllFragments():n.hasParts(e.type)&&(n.detectPartialFragments({frag:e,part:null,stats:e.stats,id:e.type}),n.getState(e)===Ir.PARTIAL&&n.removeFragment(e))}checkLiveUpdate(e){if(e.updated&&!e.live){const t=e.fragments[e.fragments.length-1];this.fragmentTracker.detectPartialFragments({frag:t,part:null,stats:t.stats,id:t.type})}e.fragments[0]||(e.deltaUpdateFailed=!0)}flushMainBuffer(e,t,n=null){if(!(e-t))return;const r={startOffset:e,endOffset:t,type:n};this.hls.trigger(c.BUFFER_FLUSHING,r)}_loadInitSegment(e,t){this._doFragLoad(e,t).then(n=>{if(!n||this.fragContextChanged(e)||!this.levels)throw new Error("init load aborted");return n}).then(n=>{const{hls:r}=this,{payload:i}=n,s=e.decryptdata;if(i&&i.byteLength>0&&s!=null&&s.key&&s.iv&&s.method==="AES-128"){const u=self.performance.now();return this.decrypter.decrypt(new Uint8Array(i),s.key.buffer,s.iv.buffer).catch(f=>{throw r.trigger(c.ERROR,{type:S.MEDIA_ERROR,details:y.FRAG_DECRYPT_ERROR,fatal:!1,error:f,reason:f.message,frag:e}),f}).then(f=>{const p=self.performance.now();return r.trigger(c.FRAG_DECRYPTED,{frag:e,payload:f,stats:{tstart:u,tdecrypt:p}}),n.payload=f,this.completeInitSegmentLoad(n)})}return this.completeInitSegmentLoad(n)}).catch(n=>{this.state===Xt.STOPPED||this.state===Xt.ERROR||(this.warn(n),this.resetFragmentLoading(e))})}completeInitSegmentLoad(e){const{levels:t}=this;if(!t)throw new Error("init load aborted, missing levels");const n=e.frag.stats;this.state=Xt.IDLE,e.frag.data=new Uint8Array(e.payload),n.parsing.start=n.buffering.start=self.performance.now(),n.parsing.end=n.buffering.end=self.performance.now(),this.tick()}fragContextChanged(e){const{fragCurrent:t}=this;return!e||!t||e.sn!==t.sn||e.level!==t.level}fragBufferedComplete(e,t){var n,r,i,s;const u=this.mediaBuffer?this.mediaBuffer:this.media;if(this.log(`Buffered ${e.type} sn: ${e.sn}${t?" part: "+t.index:""} of ${this.playlistType===Ge.MAIN?"level":"track"} ${e.level} (frag:[${((n=e.startPTS)!=null?n:NaN).toFixed(3)}-${((r=e.endPTS)!=null?r:NaN).toFixed(3)}] > buffer:${u?ns.toString(Or.getBuffered(u)):"(detached)"})`),e.sn!=="initSegment"){var f;if(e.type!==Ge.SUBTITLE){const E=e.elementaryStreams;if(!Object.keys(E).some(R=>!!E[R])){this.state=Xt.IDLE;return}}const p=(f=this.levels)==null?void 0:f[e.level];p!=null&&p.fragmentError&&(this.log(`Resetting level fragment error count of ${p.fragmentError} on frag buffered`),p.fragmentError=0)}this.state=Xt.IDLE,u&&(!this.loadedmetadata&&e.type==Ge.MAIN&&u.buffered.length&&((i=this.fragCurrent)==null?void 0:i.sn)===((s=this.fragPrevious)==null?void 0:s.sn)&&(this.loadedmetadata=!0,this.seekToStartPos()),this.tick())}seekToStartPos(){}_handleFragmentLoadComplete(e){const{transmuxer:t}=this;if(!t)return;const{frag:n,part:r,partsLoaded:i}=e,s=!i||i.length===0||i.some(f=>!f),u=new gs(n.level,n.sn,n.stats.chunkCount+1,0,r?r.index:-1,!s);t.flush(u)}_handleFragmentLoadProgress(e){}_doFragLoad(e,t,n=null,r){var i;const s=t==null?void 0:t.details;if(!this.levels||!s)throw new Error(`frag load aborted, missing level${s?"":" detail"}s`);let u=null;if(e.encrypted&&!((i=e.decryptdata)!=null&&i.key)?(this.log(`Loading key for ${e.sn} of [${s.startSN}-${s.endSN}], ${this.logPrefix==="[stream-controller]"?"level":"track"} ${e.level}`),this.state=Xt.KEY_LOADING,this.fragCurrent=e,u=this.keyLoader.load(e).then(E=>{if(!this.fragContextChanged(E.frag))return this.hls.trigger(c.KEY_LOADED,E),this.state===Xt.KEY_LOADING&&(this.state=Xt.IDLE),E}),this.hls.trigger(c.KEY_LOADING,{frag:e}),this.fragCurrent===null&&(u=Promise.reject(new Error("frag load aborted, context changed in KEY_LOADING")))):!e.encrypted&&s.encryptedFragments.length&&this.keyLoader.loadClear(e,s.encryptedFragments),n=Math.max(e.start,n||0),this.config.lowLatencyMode&&e.sn!=="initSegment"){const E=s.partList;if(E&&r){n>e.end&&s.fragmentHint&&(e=s.fragmentHint);const R=this.getNextPart(E,e,n);if(R>-1){const G=E[R];this.log(`Loading part sn: ${e.sn} p: ${G.index} cc: ${e.cc} of playlist [${s.startSN}-${s.endSN}] parts [0-${R}-${E.length-1}] ${this.logPrefix==="[stream-controller]"?"level":"track"}: ${e.level}, target: ${parseFloat(n.toFixed(3))}`),this.nextLoadPosition=G.start+G.duration,this.state=Xt.FRAG_LOADING;let ue;return u?ue=u.then(se=>!se||this.fragContextChanged(se.frag)?null:this.doFragPartsLoad(e,G,t,r)).catch(se=>this.handleFragLoadError(se)):ue=this.doFragPartsLoad(e,G,t,r).catch(se=>this.handleFragLoadError(se)),this.hls.trigger(c.FRAG_LOADING,{frag:e,part:G,targetBufferTime:n}),this.fragCurrent===null?Promise.reject(new Error("frag load aborted, context changed in FRAG_LOADING parts")):ue}else if(!e.url||this.loadedEndOfParts(E,n))return Promise.resolve(null)}}this.log(`Loading fragment ${e.sn} cc: ${e.cc} ${s?"of ["+s.startSN+"-"+s.endSN+"] ":""}${this.logPrefix==="[stream-controller]"?"level":"track"}: ${e.level}, target: ${parseFloat(n.toFixed(3))}`),L(e.sn)&&!this.bitrateTest&&(this.nextLoadPosition=e.start+e.duration),this.state=Xt.FRAG_LOADING;const f=this.config.progressive;let p;return f&&u?p=u.then(E=>!E||this.fragContextChanged(E==null?void 0:E.frag)?null:this.fragmentLoader.load(e,r)).catch(E=>this.handleFragLoadError(E)):p=Promise.all([this.fragmentLoader.load(e,f?r:void 0),u]).then(([E])=>(!f&&E&&r&&r(E),E)).catch(E=>this.handleFragLoadError(E)),this.hls.trigger(c.FRAG_LOADING,{frag:e,targetBufferTime:n}),this.fragCurrent===null?Promise.reject(new Error("frag load aborted, context changed in FRAG_LOADING")):p}doFragPartsLoad(e,t,n,r){return new Promise((i,s)=>{var u;const f=[],p=(u=n.details)==null?void 0:u.partList,E=R=>{this.fragmentLoader.loadPart(e,R,r).then(G=>{f[R.index]=G;const ue=G.part;this.hls.trigger(c.FRAG_LOADED,G);const se=Rn(n,e.sn,R.index+1)||$n(p,e.sn,R.index+1);if(se)E(se);else return i({frag:e,part:ue,partsLoaded:f})}).catch(s)};E(t)})}handleFragLoadError(e){if("data"in e){const t=e.data;e.data&&t.details===y.INTERNAL_ABORTED?this.handleFragLoadAborted(t.frag,t.part):this.hls.trigger(c.ERROR,t)}else this.hls.trigger(c.ERROR,{type:S.OTHER_ERROR,details:y.INTERNAL_EXCEPTION,err:e,error:e,fatal:!0});return null}_handleTransmuxerFlush(e){const t=this.getCurrentContext(e);if(!t||this.state!==Xt.PARSING){!this.fragCurrent&&this.state!==Xt.STOPPED&&this.state!==Xt.ERROR&&(this.state=Xt.IDLE);return}const{frag:n,part:r,level:i}=t,s=self.performance.now();n.stats.parsing.end=s,r&&(r.stats.parsing.end=s),this.updateLevelTiming(n,r,i,e.partial)}getCurrentContext(e){const{levels:t,fragCurrent:n}=this,{level:r,sn:i,part:s}=e;if(!(t!=null&&t[r]))return this.warn(`Levels object was unset while buffering fragment ${i} of level ${r}. The current chunk will not be buffered.`),null;const u=t[r],f=s>-1?Rn(u,i,s):null,p=f?f.fragment:oi(u,i,n);return p?(n&&n!==p&&(p.stats=n.stats),{frag:p,part:f,level:u}):null}bufferFragmentData(e,t,n,r,i){var s;if(!e||this.state!==Xt.PARSING)return;const{data1:u,data2:f}=e;let p=u;if(u&&f&&(p=ot(u,f)),!((s=p)!=null&&s.length))return;const E={type:e.type,frag:t,part:n,chunkMeta:r,parent:t.type,data:p};if(this.hls.trigger(c.BUFFER_APPENDING,E),e.dropped&&e.independent&&!n){if(i)return;this.flushBufferGap(t)}}flushBufferGap(e){const t=this.media;if(!t)return;if(!Or.isBuffered(t,t.currentTime)){this.flushMainBuffer(0,e.start);return}const n=t.currentTime,r=Or.bufferInfo(t,n,0),i=e.duration,s=Math.min(this.config.maxFragLookUpTolerance*2,i*.25),u=Math.max(Math.min(e.start-s,r.end-s),n+s);e.start-u>s&&this.flushMainBuffer(u,e.start)}getFwdBufferInfo(e,t){const n=this.getLoadPosition();return L(n)?this.getFwdBufferInfoAtPos(e,n,t):null}getFwdBufferInfoAtPos(e,t,n){const{config:{maxBufferHole:r}}=this,i=Or.bufferInfo(e,t,r);if(i.len===0&&i.nextStart!==void 0){const s=this.fragmentTracker.getBufferedFrag(t,n);if(s&&i.nextStart<s.end)return Or.bufferInfo(e,t,Math.max(i.nextStart,r))}return i}getMaxBufferLength(e){const{config:t}=this;let n;return e?n=Math.max(8*t.maxBufferSize/e,t.maxBufferLength):n=t.maxBufferLength,Math.min(n,t.maxMaxBufferLength)}reduceMaxBufferLength(e,t){const n=this.config,r=Math.max(Math.min(e-t,n.maxBufferLength),t),i=Math.max(e-t*3,n.maxMaxBufferLength/2,r);return i>=r?(n.maxMaxBufferLength=i,this.warn(`Reduce max buffer length to ${i}s`),!0):!1}getAppendedFrag(e,t=Ge.MAIN){const n=this.fragmentTracker.getAppendedFrag(e,Ge.MAIN);return n&&"fragment"in n?n.fragment:n}getNextFragment(e,t){const n=t.fragments,r=n.length;if(!r)return null;const{config:i}=this,s=n[0].start;let u;if(t.live){const f=i.initialLiveManifestSize;if(r<f)return this.warn(`Not enough fragments to start playback (have: ${r}, need: ${f})`),null;(!t.PTSKnown&&!this.startFragRequested&&this.startPosition===-1||e<s)&&(u=this.getInitialLiveFragment(t,n),this.startPosition=this.nextLoadPosition=u?this.hls.liveSyncPosition||u.start:e)}else e<=s&&(u=n[0]);if(!u){const f=i.lowLatencyMode?t.partEnd:t.fragmentEnd;u=this.getFragmentAtPosition(e,f,t)}return this.mapToInitFragWhenRequired(u)}isLoopLoading(e,t){const n=this.fragmentTracker.getState(e);return(n===Ir.OK||n===Ir.PARTIAL&&!!e.gap)&&this.nextLoadPosition>t}getNextFragmentLoopLoading(e,t,n,r,i){const s=e.gap,u=this.getNextFragment(this.nextLoadPosition,t);if(u===null)return u;if(e=u,s&&e&&!e.gap&&n.nextStart){const f=this.getFwdBufferInfoAtPos(this.mediaBuffer?this.mediaBuffer:this.media,n.nextStart,r);if(f!==null&&n.len+f.len>=i)return this.log(`buffer full after gaps in "${r}" playlist starting at sn: ${e.sn}`),null}return e}mapToInitFragWhenRequired(e){return e!=null&&e.initSegment&&!(e!=null&&e.initSegment.data)&&!this.bitrateTest?e.initSegment:e}getNextPart(e,t,n){let r=-1,i=!1,s=!0;for(let u=0,f=e.length;u<f;u++){const p=e[u];if(s=s&&!p.independent,r>-1&&n<p.start)break;const E=p.loaded;E?r=-1:(i||p.independent||s)&&p.fragment===t&&(r=u),i=E}return r}loadedEndOfParts(e,t){const n=e[e.length-1];return n&&t>n.start&&n.loaded}getInitialLiveFragment(e,t){const n=this.fragPrevious;let r=null;if(n){if(e.hasProgramDateTime&&(this.log(`Live playlist, switching playlist, load frag with same PDT: ${n.programDateTime}`),r=bi(t,n.endProgramDateTime,this.config.maxFragLookUpTolerance)),!r){const i=n.sn+1;if(i>=e.startSN&&i<=e.endSN){const s=t[i-e.startSN];n.cc===s.cc&&(r=s,this.log(`Live playlist, switching playlist, load frag with next SN: ${r.sn}`))}r||(r=In(t,n.cc),r&&this.log(`Live playlist, switching playlist, load frag with same CC: ${r.sn}`))}}else{const i=this.hls.liveSyncPosition;i!==null&&(r=this.getFragmentAtPosition(i,this.bitrateTest?e.fragmentEnd:e.edge,e))}return r}getFragmentAtPosition(e,t,n){const{config:r}=this;let{fragPrevious:i}=this,{fragments:s,endSN:u}=n;const{fragmentHint:f}=n,{maxFragLookUpTolerance:p}=r,E=n.partList,R=!!(r.lowLatencyMode&&E!=null&&E.length&&f);R&&f&&!this.bitrateTest&&(s=s.concat(f),u=f.sn);let G;if(e<t){const ue=e>t-p?0:p;G=xi(i,s,e,ue)}else G=s[s.length-1];if(G){const ue=G.sn-n.startSN,se=this.fragmentTracker.getState(G);if((se===Ir.OK||se===Ir.PARTIAL&&G.gap)&&(i=G),i&&G.sn===i.sn&&(!R||E[0].fragment.sn>G.sn)&&i&&G.level===i.level){const Ae=s[ue+1];G.sn<u&&this.fragmentTracker.getState(Ae)!==Ir.OK?G=Ae:G=null}}return G}synchronizeToLiveEdge(e){const{config:t,media:n}=this;if(!n)return;const r=this.hls.liveSyncPosition,i=n.currentTime,s=e.fragments[0].start,u=e.edge,f=i>=s-t.maxFragLookUpTolerance&&i<=u;if(r!==null&&n.duration>r&&(i<r||!f)){const p=t.liveMaxLatencyDuration!==void 0?t.liveMaxLatencyDuration:t.liveMaxLatencyDurationCount*e.targetduration;(!f&&n.readyState<4||i<u-p)&&(this.loadedmetadata||(this.nextLoadPosition=r),n.readyState&&(this.warn(`Playback: ${i.toFixed(3)} is located too far from the end of live sliding playlist: ${u}, reset currentTime to : ${r.toFixed(3)}`),n.currentTime=r))}}alignPlaylists(e,t,n){const r=e.fragments.length;if(!r)return this.warn("No fragments in live playlist"),0;const i=e.fragments[0].start,s=!t,u=e.alignedSliding&&L(i);if(s||!u&&!i){const{fragPrevious:f}=this;Ts(f,n,e);const p=e.fragments[0].start;return this.log(`Live playlist sliding: ${p.toFixed(2)} start-sn: ${t?t.startSN:"na"}->${e.startSN} prev-sn: ${f?f.sn:"na"} fragments: ${r}`),p}return i}waitForCdnTuneIn(e){return e.live&&e.canBlockReload&&e.partTarget&&e.tuneInGoal>Math.max(e.partHoldBack,e.partTarget*3)}setStartPosition(e,t){let n=this.startPosition;if(n<t&&(n=-1),n===-1||this.lastCurrentTime===-1){const r=this.startTimeOffset!==null,i=r?this.startTimeOffset:e.startTimeOffset;i!==null&&L(i)?(n=t+i,i<0&&(n+=e.totalduration),n=Math.min(Math.max(t,n),t+e.totalduration),this.log(`Start time offset ${i} found in ${r?"multivariant":"media"} playlist, adjust startPosition to ${n}`),this.startPosition=n):e.live?n=this.hls.liveSyncPosition||t:this.startPosition=n=0,this.lastCurrentTime=n}this.nextLoadPosition=n}getLoadPosition(){const{media:e}=this;let t=0;return this.loadedmetadata&&e?t=e.currentTime:this.nextLoadPosition&&(t=this.nextLoadPosition),t}handleFragLoadAborted(e,t){this.transmuxer&&e.sn!=="initSegment"&&e.stats.aborted&&(this.warn(`Fragment ${e.sn}${t?" part "+t.index:""} of level ${e.level} was aborted`),this.resetFragmentLoading(e))}resetFragmentLoading(e){(!this.fragCurrent||!this.fragContextChanged(e)&&this.state!==Xt.FRAG_LOADING_WAITING_RETRY)&&(this.state=Xt.IDLE)}onFragmentOrKeyLoadError(e,t){if(t.chunkMeta&&!t.frag){const E=this.getCurrentContext(t.chunkMeta);E&&(t.frag=E.frag)}const n=t.frag;if(!n||n.type!==e||!this.levels)return;if(this.fragContextChanged(n)){var r;this.warn(`Frag load error must match current frag to retry ${n.url} > ${(r=this.fragCurrent)==null?void 0:r.url}`);return}const i=t.details===y.FRAG_GAP;i&&this.fragmentTracker.fragBuffered(n,!0);const s=t.errorAction,{action:u,retryCount:f=0,retryConfig:p}=s||{};if(s&&u===Tn.RetryRequest&&p){this.resetStartWhenNotLoaded(this.levelLastLoaded);const E=dr(p,f);this.warn(`Fragment ${n.sn} of ${e} ${n.level} errored with ${t.details}, retrying loading ${f+1}/${p.maxNumRetry} in ${E}ms`),s.resolved=!0,this.retryDate=self.performance.now()+E,this.state=Xt.FRAG_LOADING_WAITING_RETRY}else if(p&&s)if(this.resetFragmentErrors(e),f<p.maxNumRetry)!i&&u!==Tn.RemoveAlternatePermanently&&(s.resolved=!0);else{b.warn(`${t.details} reached or exceeded max retry (${f})`);return}else(s==null?void 0:s.action)===Tn.SendAlternateToPenaltyBox?this.state=Xt.WAITING_LEVEL:this.state=Xt.ERROR;this.tickImmediate()}reduceLengthAndFlushBuffer(e){if(this.state===Xt.PARSING||this.state===Xt.PARSED){const t=e.frag,n=e.parent,r=this.getFwdBufferInfo(this.mediaBuffer,n),i=r&&r.len>.5;i&&this.reduceMaxBufferLength(r.len,(t==null?void 0:t.duration)||10);const s=!i;return s&&this.warn(`Buffer full error while media.currentTime is not buffered, flush ${n} buffer`),t&&(this.fragmentTracker.removeFragment(t),this.nextLoadPosition=t.start),this.resetLoadingState(),s}return!1}resetFragmentErrors(e){e===Ge.AUDIO&&(this.fragCurrent=null),this.loadedmetadata||(this.startFragRequested=!1),this.state!==Xt.STOPPED&&(this.state=Xt.IDLE)}afterBufferFlushed(e,t,n){if(!e)return;const r=Or.getBuffered(e);this.fragmentTracker.detectEvictedFragments(t,r,n),this.state===Xt.ENDED&&this.resetLoadingState()}resetLoadingState(){this.log("Reset loading state"),this.fragCurrent=null,this.fragPrevious=null,this.state=Xt.IDLE}resetStartWhenNotLoaded(e){if(!this.loadedmetadata){this.startFragRequested=!1;const t=e?e.details:null;t!=null&&t.live?(this.startPosition=-1,this.setStartPosition(t,0),this.resetLoadingState()):this.nextLoadPosition=this.startPosition}}resetWhenMissingContext(e){this.warn(`The loading context changed while buffering fragment ${e.sn} of level ${e.level}. This chunk will not be buffered.`),this.removeUnbufferedFrags(),this.resetStartWhenNotLoaded(this.levelLastLoaded),this.resetLoadingState()}removeUnbufferedFrags(e=0){this.fragmentTracker.removeFragmentsInRange(e,1/0,this.playlistType,!1,!0)}updateLevelTiming(e,t,n,r){var i;const s=n.details;if(!s){this.warn("level.details undefined");return}if(!Object.keys(e.elementaryStreams).reduce((f,p)=>{const E=e.elementaryStreams[p];if(E){const R=E.endPTS-E.startPTS;if(R<=0)return this.warn(`Could not parse fragment ${e.sn} ${p} duration reliably (${R})`),f||!1;const G=r?0:ci(s,e,E.startPTS,E.endPTS,E.startDTS,E.endDTS);return this.hls.trigger(c.LEVEL_PTS_UPDATED,{details:s,level:n,drift:G,type:p,frag:e,start:E.startPTS,end:E.endPTS}),!0}return f},!1)&&((i=this.transmuxer)==null?void 0:i.error)===null){const f=new Error(`Found no media in fragment ${e.sn} of level ${e.level} resetting transmuxer to fallback to playlist timing`);if(n.fragmentError===0&&(n.fragmentError++,e.gap=!0,this.fragmentTracker.removeFragment(e),this.fragmentTracker.fragBuffered(e,!0)),this.warn(f.message),this.hls.trigger(c.ERROR,{type:S.MEDIA_ERROR,details:y.FRAG_PARSING_ERROR,fatal:!1,error:f,frag:e,reason:`Found no media in msn ${e.sn} of level "${n.url}"`}),!this.hls)return;this.resetTransmuxer()}this.state=Xt.PARSED,this.hls.trigger(c.FRAG_PARSED,{frag:e,part:t})}resetTransmuxer(){this.transmuxer&&(this.transmuxer.destroy(),this.transmuxer=null)}recoverWorkerError(e){e.event==="demuxerWorker"&&(this.fragmentTracker.removeAllFragments(),this.resetTransmuxer(),this.resetStartWhenNotLoaded(this.levelLastLoaded),this.resetLoadingState())}set state(e){const t=this._state;t!==e&&(this._state=e,this.log(`${t}->${e}`))}get state(){return this._state}}class ta{constructor(){this.chunks=[],this.dataLength=0}push(e){this.chunks.push(e),this.dataLength+=e.length}flush(){const{chunks:e,dataLength:t}=this;let n;if(e.length)e.length===1?n=e[0]:n=ya(e,t);else return new Uint8Array(0);return this.reset(),n}reset(){this.chunks.length=0,this.dataLength=0}}function ya(a,e){const t=new Uint8Array(e);let n=0;for(let r=0;r<a.length;r++){const i=a[r];t.set(i,n),n+=i.length}return t}function ba(){return typeof __HLS_WORKER_BUNDLE__=="function"}function na(){const a=new self.Blob([`var exports={};var module={exports:exports};function define(f){f()};define.amd=true;(${__HLS_WORKER_BUNDLE__.toString()})(true);`],{type:"text/javascript"}),e=self.URL.createObjectURL(a);return{worker:new self.Worker(e),objectURL:e}}function ra(a){const e=new self.URL(a,self.location.href).href;return{worker:new self.Worker(e),scriptURL:e}}function Ki(a="",e=9e4){return{type:a,id:-1,pid:-1,inputTimeScale:e,sequenceNumber:-1,samples:[],dropped:0}}class Fs{constructor(){this._audioTrack=void 0,this._id3Track=void 0,this.frameIndex=0,this.cachedData=null,this.basePTS=null,this.initPTS=null,this.lastPTS=null}resetInitSegment(e,t,n,r){this._id3Track={type:"id3",id:3,pid:-1,inputTimeScale:9e4,sequenceNumber:0,samples:[],dropped:0}}resetTimeStamp(e){this.initPTS=e,this.resetContiguity()}resetContiguity(){this.basePTS=null,this.lastPTS=null,this.frameIndex=0}canParse(e,t){return!1}appendFrame(e,t,n){}demux(e,t){this.cachedData&&(e=ot(this.cachedData,e),this.cachedData=null);let n=ce(e,0),r=n?n.length:0,i;const s=this._audioTrack,u=this._id3Track,f=n?C(n):void 0,p=e.length;for((this.basePTS===null||this.frameIndex===0&&L(f))&&(this.basePTS=xa(f,t,this.initPTS),this.lastPTS=this.basePTS),this.lastPTS===null&&(this.lastPTS=this.basePTS),n&&n.length>0&&u.samples.push({pts:this.lastPTS,dts:this.lastPTS,data:n,type:Dn.audioId3,duration:Number.POSITIVE_INFINITY});r<p;){if(this.canParse(e,r)){const E=this.appendFrame(s,e,r);E?(this.frameIndex++,this.lastPTS=E.sample.pts,r+=E.length,i=r):r=p}else O(e,r)?(n=ce(e,r),u.samples.push({pts:this.lastPTS,dts:this.lastPTS,data:n,type:Dn.audioId3,duration:Number.POSITIVE_INFINITY}),r+=n.length,i=r):r++;if(r===p&&i!==p){const E=oe(e,i);this.cachedData?this.cachedData=ot(this.cachedData,E):this.cachedData=E}}return{audioTrack:s,videoTrack:Ki(),id3Track:u,textTrack:Ki()}}demuxSampleAes(e,t,n){return Promise.reject(new Error(`[${this}] This demuxer does not support Sample-AES decryption`))}flush(e){const t=this.cachedData;return t&&(this.cachedData=null,this.demux(t,0)),{audioTrack:this._audioTrack,videoTrack:Ki(),id3Track:this._id3Track,textTrack:Ki()}}destroy(){}}const xa=(a,e,t)=>{if(L(a))return a*90;const n=t?t.baseTime*9e4/t.timescale:0;return e*9e4+n};function ja(a,e,t,n){let r,i,s,u;const f=navigator.userAgent.toLowerCase(),p=n,E=[96e3,88200,64e3,48e3,44100,32e3,24e3,22050,16e3,12e3,11025,8e3,7350];r=((e[t+2]&192)>>>6)+1;const R=(e[t+2]&60)>>>2;if(R>E.length-1){const G=new Error(`invalid ADTS sampling index:${R}`);a.emit(c.ERROR,c.ERROR,{type:S.MEDIA_ERROR,details:y.FRAG_PARSING_ERROR,fatal:!0,error:G,reason:G.message});return}return s=(e[t+2]&1)<<2,s|=(e[t+3]&192)>>>6,b.log(`manifest codec:${n}, ADTS type:${r}, samplingIndex:${R}`),/firefox/i.test(f)?R>=6?(r=5,u=new Array(4),i=R-3):(r=2,u=new Array(2),i=R):f.indexOf("android")!==-1?(r=2,u=new Array(2),i=R):(r=5,u=new Array(4),n&&(n.indexOf("mp4a.40.29")!==-1||n.indexOf("mp4a.40.5")!==-1)||!n&&R>=6?i=R-3:((n&&n.indexOf("mp4a.40.2")!==-1&&(R>=6&&s===1||/vivaldi/i.test(f))||!n&&s===1)&&(r=2,u=new Array(2)),i=R)),u[0]=r<<3,u[0]|=(R&14)>>1,u[1]|=(R&1)<<7,u[1]|=s<<3,r===5&&(u[1]|=(i&14)>>1,u[2]=(i&1)<<7,u[2]|=8,u[3]=0),{config:u,samplerate:E[R],channelCount:s,codec:"mp4a.40."+r,manifestCodec:p}}function zs(a,e){return a[e]===255&&(a[e+1]&246)===240}function ia(a,e){return a[e+1]&1?7:9}function $s(a,e){return(a[e+3]&3)<<11|a[e+4]<<3|(a[e+5]&224)>>>5}function Ea(a,e){return e+5<a.length}function Xi(a,e){return e+1<a.length&&zs(a,e)}function Is(a,e){return Ea(a,e)&&zs(a,e)&&$s(a,e)<=a.length-e}function Ka(a,e){if(Xi(a,e)){const t=ia(a,e);if(e+t>=a.length)return!1;const n=$s(a,e);if(n<=t)return!1;const r=e+n;return r===a.length||Xi(a,r)}return!1}function wa(a,e,t,n,r){if(!a.samplerate){const i=ja(e,t,n,r);if(!i)return;a.config=i.config,a.samplerate=i.samplerate,a.channelCount=i.channelCount,a.codec=i.codec,a.manifestCodec=i.manifestCodec,b.log(`parsed codec:${a.codec}, rate:${i.samplerate}, channels:${i.channelCount}`)}}function sa(a){return 1024*9e4/a}function Wa(a,e){const t=ia(a,e);if(e+t<=a.length){const n=$s(a,e)-t;if(n>0)return{headerLength:t,frameLength:n}}}function aa(a,e,t,n,r){const i=sa(a.samplerate),s=n+r*i,u=Wa(e,t);let f;if(u){const{frameLength:R,headerLength:G}=u,ue=G+R,se=Math.max(0,t+ue-e.length);se?(f=new Uint8Array(ue-G),f.set(e.subarray(t+G,e.length),0)):f=e.subarray(t+G,t+ue);const ge={unit:f,pts:s};return se||a.samples.push(ge),{sample:ge,length:ue,missing:se}}const p=e.length-t;return f=new Uint8Array(p),f.set(e.subarray(t,e.length),0),{sample:{unit:f,pts:s},length:p,missing:-1}}let Ls=null;const Ga=[32,64,96,128,160,192,224,256,288,320,352,384,416,448,32,48,56,64,80,96,112,128,160,192,224,256,320,384,32,40,48,56,64,80,96,112,128,160,192,224,256,320,32,48,56,64,80,96,112,128,144,160,176,192,224,256,8,16,24,32,40,48,56,64,80,96,112,128,144,160],Sa=[44100,48e3,32e3,22050,24e3,16e3,11025,12e3,8e3],Za=[[0,72,144,12],[0,0,0,0],[0,72,144,12],[0,144,144,12]],Aa=[0,1,1,4];function Us(a,e,t,n,r){if(t+24>e.length)return;const i=Hs(e,t);if(i&&t+i.frameLength<=e.length){const s=i.samplesPerFrame*9e4/i.sampleRate,u=n+r*s,f={unit:e.subarray(t,t+i.frameLength),pts:u,dts:u};return a.config=[],a.channelCount=i.channelCount,a.samplerate=i.sampleRate,a.samples.push(f),{sample:f,length:i.frameLength,missing:0}}}function Hs(a,e){const t=a[e+1]>>3&3,n=a[e+1]>>1&3,r=a[e+2]>>4&15,i=a[e+2]>>2&3;if(t!==1&&r!==0&&r!==15&&i!==3){const s=a[e+2]>>1&1,u=a[e+3]>>6,f=t===3?3-n:n===3?3:4,p=Ga[f*14+r-1]*1e3,R=Sa[(t===3?0:t===2?1:2)*3+i],G=u===3?1:2,ue=Za[t][n],se=Aa[n],ge=ue*8*se,Ae=Math.floor(ue*p/R+s)*se;if(Ls===null){const pt=(navigator.userAgent||"").match(/Chrome\/(\d+)/i);Ls=pt?parseInt(pt[1]):0}return!!Ls&&Ls<=87&&n===2&&p>=224e3&&u===0&&(a[e+3]=a[e+3]|128),{sampleRate:R,channelCount:G,frameLength:Ae,samplesPerFrame:ge}}}function js(a,e){return a[e]===255&&(a[e+1]&224)===224&&(a[e+1]&6)!==0}function oa(a,e){return e+1<a.length&&js(a,e)}function Ca(a,e){return js(a,e)&&4<=a.length-e}function Ta(a,e){if(e+1<a.length&&js(a,e)){const n=Hs(a,e);let r=4;n!=null&&n.frameLength&&(r=n.frameLength);const i=e+r;return i===a.length||oa(a,i)}return!1}class Da extends Fs{constructor(e,t){super(),this.observer=void 0,this.config=void 0,this.observer=e,this.config=t}resetInitSegment(e,t,n,r){super.resetInitSegment(e,t,n,r),this._audioTrack={container:"audio/adts",type:"audio",id:2,pid:-1,sequenceNumber:0,segmentCodec:"aac",samples:[],manifestCodec:t,duration:r,inputTimeScale:9e4,dropped:0}}static probe(e){if(!e)return!1;const t=ce(e,0);let n=(t==null?void 0:t.length)||0;if(Ta(e,n))return!1;for(let r=e.length;n<r;n++)if(Ka(e,n))return b.log("ADTS sync word found !"),!0;return!1}canParse(e,t){return Is(e,t)}appendFrame(e,t,n){wa(e,this.observer,t,n,e.manifestCodec);const r=aa(e,t,n,this.basePTS,this.frameIndex);if(r&&r.missing===0)return r}}const Ra=/\/emsg[-/]ID3/i;class Va{constructor(e,t){this.remainderData=null,this.timeOffset=0,this.config=void 0,this.videoTrack=void 0,this.audioTrack=void 0,this.id3Track=void 0,this.txtTrack=void 0,this.config=t}resetTimeStamp(){}resetInitSegment(e,t,n,r){const i=this.videoTrack=Ki("video",1),s=this.audioTrack=Ki("audio",1),u=this.txtTrack=Ki("text",1);if(this.id3Track=Ki("id3",1),this.timeOffset=0,!(e!=null&&e.byteLength))return;const f=We(e);if(f.video){const{id:p,timescale:E,codec:R}=f.video;i.id=p,i.timescale=u.timescale=E,i.codec=R}if(f.audio){const{id:p,timescale:E,codec:R}=f.audio;s.id=p,s.timescale=E,s.codec=R}u.id=Rt.text,i.sampleDuration=0,i.duration=s.duration=r}resetContiguity(){this.remainderData=null}static probe(e){return vn(e)}demux(e,t){this.timeOffset=t;let n=e;const r=this.videoTrack,i=this.txtTrack;if(this.config.progressive){this.remainderData&&(n=ot(this.remainderData,e));const u=Lt(n);this.remainderData=u.remainder,r.samples=u.valid||new Uint8Array}else r.samples=n;const s=this.extractID3Track(r,t);return i.samples=ft(t,r),{videoTrack:r,audioTrack:this.audioTrack,id3Track:s,textTrack:this.txtTrack}}flush(){const e=this.timeOffset,t=this.videoTrack,n=this.txtTrack;t.samples=this.remainderData||new Uint8Array,this.remainderData=null;const r=this.extractID3Track(t,this.timeOffset);return n.samples=ft(e,t),{videoTrack:t,audioTrack:Ki(),id3Track:r,textTrack:Ki()}}extractID3Track(e,t){const n=this.id3Track;if(e.samples.length){const r=ke(e.samples,["emsg"]);r&&r.forEach(i=>{const s=we(i);if(Ra.test(s.schemeIdUri)){const u=L(s.presentationTime)?s.presentationTime/s.timeScale:t+s.presentationTimeDelta/s.timeScale;let f=s.eventDuration===4294967295?Number.POSITIVE_INFINITY:s.eventDuration/s.timeScale;f<=.001&&(f=Number.POSITIVE_INFINITY);const p=s.payload;n.samples.push({data:p,len:p.byteLength,dts:u,pts:u,type:Dn.emsg,duration:f})}})}return n}demuxSampleAes(e,t,n){return Promise.reject(new Error("The MP4 demuxer does not support SAMPLE-AES decryption"))}destroy(){}}const xs=(a,e)=>{let t=0,n=5;e+=n;const r=new Uint32Array(1),i=new Uint32Array(1),s=new Uint8Array(1);for(;n>0;){s[0]=a[e];const u=Math.min(n,8),f=8-u;i[0]=4278190080>>>24+f<<f,r[0]=(s[0]&i[0])>>f,t=t?t<<u|r[0]:r[0],e+=1,n-=u}return t};class la extends Fs{constructor(e){super(),this.observer=void 0,this.observer=e}resetInitSegment(e,t,n,r){super.resetInitSegment(e,t,n,r),this._audioTrack={container:"audio/ac-3",type:"audio",id:2,pid:-1,sequenceNumber:0,segmentCodec:"ac3",samples:[],manifestCodec:t,duration:r,inputTimeScale:9e4,dropped:0}}canParse(e,t){return t+64<e.length}appendFrame(e,t,n){const r=ua(e,t,n,this.basePTS,this.frameIndex);if(r!==-1)return{sample:e.samples[e.samples.length-1],length:r,missing:0}}static probe(e){if(!e)return!1;const t=ce(e,0);if(!t)return!1;const n=t.length;return e[n]===11&&e[n+1]===119&&C(t)!==void 0&&xs(e,n)<16}}function ua(a,e,t,n,r){if(t+8>e.length||e[t]!==11||e[t+1]!==119)return-1;const i=e[t+4]>>6;if(i>=3)return-1;const u=[48e3,44100,32e3][i],f=e[t+4]&63,E=[64,69,96,64,70,96,80,87,120,80,88,120,96,104,144,96,105,144,112,121,168,112,122,168,128,139,192,128,140,192,160,174,240,160,175,240,192,208,288,192,209,288,224,243,336,224,244,336,256,278,384,256,279,384,320,348,480,320,349,480,384,417,576,384,418,576,448,487,672,448,488,672,512,557,768,512,558,768,640,696,960,640,697,960,768,835,1152,768,836,1152,896,975,1344,896,976,1344,1024,1114,1536,1024,1115,1536,1152,1253,1728,1152,1254,1728,1280,1393,1920,1280,1394,1920][f*3+i]*2;if(t+E>e.length)return-1;const R=e[t+6]>>5;let G=0;R===2?G+=2:(R&1&&R!==1&&(G+=2),R&4&&(G+=2));const ue=(e[t+6]<<8|e[t+7])>>12-G&1,ge=[2,1,2,3,3,4,4,5][R]+ue,Ae=e[t+5]>>3,Ve=e[t+5]&7,vt=new Uint8Array([i<<6|Ae<<1|Ve>>2,(Ve&3)<<6|R<<3|ue<<2|f>>4,f<<4&224]),pt=1536/u*9e4,$t=n+r*pt,St=e.subarray(t,t+E);return a.config=vt,a.channelCount=ge,a.samplerate=u,a.samples.push({unit:St,pts:$t}),E}class Ya{constructor(){this.VideoSample=null}createVideoSample(e,t,n,r){return{key:e,frame:!1,pts:t,dts:n,units:[],debug:r,length:0}}getLastNalUnit(e){var t;let n=this.VideoSample,r;if((!n||n.units.length===0)&&(n=e[e.length-1]),(t=n)!=null&&t.units){const i=n.units;r=i[i.length-1]}return r}pushAccessUnit(e,t){if(e.units.length&&e.frame){if(e.pts===void 0){const n=t.samples,r=n.length;if(r){const i=n[r-1];e.pts=i.pts,e.dts=i.dts}else{t.dropped++;return}}t.samples.push(e)}e.debug.length&&b.log(e.pts+"/"+e.dts+":"+e.debug)}}class Ia{constructor(e){this.data=void 0,this.bytesAvailable=void 0,this.word=void 0,this.bitsAvailable=void 0,this.data=e,this.bytesAvailable=e.byteLength,this.word=0,this.bitsAvailable=0}loadWord(){const e=this.data,t=this.bytesAvailable,n=e.byteLength-t,r=new Uint8Array(4),i=Math.min(4,t);if(i===0)throw new Error("no bytes available");r.set(e.subarray(n,n+i)),this.word=new DataView(r.buffer).getUint32(0),this.bitsAvailable=i*8,this.bytesAvailable-=i}skipBits(e){let t;e=Math.min(e,this.bytesAvailable*8+this.bitsAvailable),this.bitsAvailable>e?(this.word<<=e,this.bitsAvailable-=e):(e-=this.bitsAvailable,t=e>>3,e-=t<<3,this.bytesAvailable-=t,this.loadWord(),this.word<<=e,this.bitsAvailable-=e)}readBits(e){let t=Math.min(this.bitsAvailable,e);const n=this.word>>>32-t;if(e>32&&b.error("Cannot read more than 32 bits at a time"),this.bitsAvailable-=t,this.bitsAvailable>0)this.word<<=t;else if(this.bytesAvailable>0)this.loadWord();else throw new Error("no bits available");return t=e-t,t>0&&this.bitsAvailable?n<<t|this.readBits(t):n}skipLZ(){let e;for(e=0;e<this.bitsAvailable;++e)if(this.word&2147483648>>>e)return this.word<<=e,this.bitsAvailable-=e,e;return this.loadWord(),e+this.skipLZ()}skipUEG(){this.skipBits(1+this.skipLZ())}skipEG(){this.skipBits(1+this.skipLZ())}readUEG(){const e=this.skipLZ();return this.readBits(e+1)-1}readEG(){const e=this.readUEG();return 1&e?1+e>>>1:-1*(e>>>1)}readBoolean(){return this.readBits(1)===1}readUByte(){return this.readBits(8)}readUShort(){return this.readBits(16)}readUInt(){return this.readBits(32)}skipScalingList(e){let t=8,n=8,r;for(let i=0;i<e;i++)n!==0&&(r=this.readEG(),n=(t+r+256)%256),t=n===0?t:n}readSPS(){let e=0,t=0,n=0,r=0,i,s,u;const f=this.readUByte.bind(this),p=this.readBits.bind(this),E=this.readUEG.bind(this),R=this.readBoolean.bind(this),G=this.skipBits.bind(this),ue=this.skipEG.bind(this),se=this.skipUEG.bind(this),ge=this.skipScalingList.bind(this);f();const Ae=f();if(p(5),G(3),f(),se(),Ae===100||Ae===110||Ae===122||Ae===244||Ae===44||Ae===83||Ae===86||Ae===118||Ae===128){const an=E();if(an===3&&G(1),se(),se(),G(1),R())for(s=an!==3?8:12,u=0;u<s;u++)R()&&(u<6?ge(16):ge(64))}se();const Ve=E();if(Ve===0)E();else if(Ve===1)for(G(1),ue(),ue(),i=E(),u=0;u<i;u++)ue();se(),G(1);const vt=E(),pt=E(),$t=p(1);$t===0&&G(1),G(1),R()&&(e=E(),t=E(),n=E(),r=E());let St=[1,1];if(R()&&R())switch(f()){case 1:St=[1,1];break;case 2:St=[12,11];break;case 3:St=[10,11];break;case 4:St=[16,11];break;case 5:St=[40,33];break;case 6:St=[24,11];break;case 7:St=[20,11];break;case 8:St=[32,11];break;case 9:St=[80,33];break;case 10:St=[18,11];break;case 11:St=[15,11];break;case 12:St=[64,33];break;case 13:St=[160,99];break;case 14:St=[4,3];break;case 15:St=[3,2];break;case 16:St=[2,1];break;case 255:{St=[f()<<8|f(),f()<<8|f()];break}}return{width:Math.ceil((vt+1)*16-e*2-t*2),height:(2-$t)*(pt+1)*16-($t?2:4)*(n+r),pixelRatio:St}}readSliceType(){return this.readUByte(),this.readUEG(),this.readUEG()}}class Xa extends Ya{parseAVCPES(e,t,n,r,i){const s=this.parseAVCNALu(e,n.data);let u=this.VideoSample,f,p=!1;n.data=null,u&&s.length&&!e.audFound&&(this.pushAccessUnit(u,e),u=this.VideoSample=this.createVideoSample(!1,n.pts,n.dts,"")),s.forEach(E=>{var R;switch(E.type){case 1:{let ge=!1;f=!0;const Ae=E.data;if(p&&Ae.length>4){const Ve=new Ia(Ae).readSliceType();(Ve===2||Ve===4||Ve===7||Ve===9)&&(ge=!0)}if(ge){var G;(G=u)!=null&&G.frame&&!u.key&&(this.pushAccessUnit(u,e),u=this.VideoSample=null)}u||(u=this.VideoSample=this.createVideoSample(!0,n.pts,n.dts,"")),u.frame=!0,u.key=ge;break}case 5:f=!0,(R=u)!=null&&R.frame&&!u.key&&(this.pushAccessUnit(u,e),u=this.VideoSample=null),u||(u=this.VideoSample=this.createVideoSample(!0,n.pts,n.dts,"")),u.key=!0,u.frame=!0;break;case 6:{f=!0,nn(E.data,1,n.pts,t.samples);break}case 7:{var ue,se;f=!0,p=!0;const ge=E.data,Ve=new Ia(ge).readSPS();if(!e.sps||e.width!==Ve.width||e.height!==Ve.height||((ue=e.pixelRatio)==null?void 0:ue[0])!==Ve.pixelRatio[0]||((se=e.pixelRatio)==null?void 0:se[1])!==Ve.pixelRatio[1]){e.width=Ve.width,e.height=Ve.height,e.pixelRatio=Ve.pixelRatio,e.sps=[ge],e.duration=i;const vt=ge.subarray(1,4);let pt="avc1.";for(let $t=0;$t<3;$t++){let St=vt[$t].toString(16);St.length<2&&(St="0"+St),pt+=St}e.codec=pt}break}case 8:f=!0,e.pps=[E.data];break;case 9:f=!0,e.audFound=!0,u&&this.pushAccessUnit(u,e),u=this.VideoSample=this.createVideoSample(!1,n.pts,n.dts,"");break;case 12:f=!0;break;default:f=!1,u&&(u.debug+="unknown NAL "+E.type+" ");break}u&&f&&u.units.push(E)}),r&&u&&(this.pushAccessUnit(u,e),this.VideoSample=null)}parseAVCNALu(e,t){const n=t.byteLength;let r=e.naluState||0;const i=r,s=[];let u=0,f,p,E,R=-1,G=0;for(r===-1&&(R=0,G=t[0]&31,r=0,u=1);u<n;){if(f=t[u++],!r){r=f?0:1;continue}if(r===1){r=f?0:2;continue}if(!f)r=3;else if(f===1){if(p=u-r-1,R>=0){const ue={data:t.subarray(R,p),type:G};s.push(ue)}else{const ue=this.getLastNalUnit(e.samples);ue&&(i&&u<=4-i&&ue.state&&(ue.data=ue.data.subarray(0,ue.data.byteLength-i)),p>0&&(ue.data=ot(ue.data,t.subarray(0,p)),ue.state=0))}u<n?(E=t[u]&31,R=u,G=E,r=0):r=-1}else r=0}if(R>=0&&r>=0){const ue={data:t.subarray(R,n),type:G,state:r};s.push(ue)}if(s.length===0){const ue=this.getLastNalUnit(e.samples);ue&&(ue.data=ot(ue.data,t))}return e.naluState=r,s}}class ca{constructor(e,t,n){this.keyData=void 0,this.decrypter=void 0,this.keyData=n,this.decrypter=new hs(t,{removePKCS7Padding:!1})}decryptBuffer(e){return this.decrypter.decrypt(e,this.keyData.key.buffer,this.keyData.iv.buffer)}decryptAacSample(e,t,n){const r=e[t].unit;if(r.length<=16)return;const i=r.subarray(16,r.length-r.length%16),s=i.buffer.slice(i.byteOffset,i.byteOffset+i.length);this.decryptBuffer(s).then(u=>{const f=new Uint8Array(u);r.set(f,16),this.decrypter.isSync()||this.decryptAacSamples(e,t+1,n)})}decryptAacSamples(e,t,n){for(;;t++){if(t>=e.length){n();return}if(!(e[t].unit.length<32)&&(this.decryptAacSample(e,t,n),!this.decrypter.isSync()))return}}getAvcEncryptedData(e){const t=Math.floor((e.length-48)/160)*16+16,n=new Int8Array(t);let r=0;for(let i=32;i<e.length-16;i+=160,r+=16)n.set(e.subarray(i,i+16),r);return n}getAvcDecryptedUnit(e,t){const n=new Uint8Array(t);let r=0;for(let i=32;i<e.length-16;i+=160,r+=16)e.set(n.subarray(r,r+16),i);return e}decryptAvcSample(e,t,n,r,i){const s=je(i.data),u=this.getAvcEncryptedData(s);this.decryptBuffer(u.buffer).then(f=>{i.data=this.getAvcDecryptedUnit(s,f),this.decrypter.isSync()||this.decryptAvcSamples(e,t,n+1,r)})}decryptAvcSamples(e,t,n,r){if(e instanceof Uint8Array)throw new Error("Cannot decrypt samples of type Uint8Array");for(;;t++,n=0){if(t>=e.length){r();return}const i=e[t].units;for(;!(n>=i.length);n++){const s=i[n];if(!(s.data.length<=48||s.type!==1&&s.type!==5)&&(this.decryptAvcSample(e,t,n,r,s),!this.decrypter.isSync()))return}}}}const vi=188;class rs{constructor(e,t,n){this.observer=void 0,this.config=void 0,this.typeSupported=void 0,this.sampleAes=null,this.pmtParsed=!1,this.audioCodec=void 0,this.videoCodec=void 0,this._duration=0,this._pmtId=-1,this._videoTrack=void 0,this._audioTrack=void 0,this._id3Track=void 0,this._txtTrack=void 0,this.aacOverFlow=null,this.remainderData=null,this.videoParser=void 0,this.observer=e,this.config=t,this.typeSupported=n,this.videoParser=new Xa}static probe(e){const t=rs.syncOffset(e);return t>0&&b.warn(`MPEG2-TS detected but first sync word found @ offset ${t}`),t!==-1}static syncOffset(e){const t=e.length;let n=Math.min(vi*5,t-vi)+1,r=0;for(;r<n;){let i=!1,s=-1,u=0;for(let f=r;f<t;f+=vi)if(e[f]===71&&(t-f===vi||e[f+vi]===71)){if(u++,s===-1&&(s=f,s!==0&&(n=Math.min(s+vi*99,e.length-vi)+1)),i||(i=Ks(e,f)===0),i&&u>1&&(s===0&&u>2||f+vi>n))return s}else{if(u)return-1;break}r++}return-1}static createTrack(e,t){return{container:e==="video"||e==="audio"?"video/mp2t":void 0,type:e,id:Rt[e],pid:-1,inputTimeScale:9e4,sequenceNumber:0,samples:[],dropped:0,duration:e==="audio"?t:void 0}}resetInitSegment(e,t,n,r){this.pmtParsed=!1,this._pmtId=-1,this._videoTrack=rs.createTrack("video"),this._audioTrack=rs.createTrack("audio",r),this._id3Track=rs.createTrack("id3"),this._txtTrack=rs.createTrack("text"),this._audioTrack.segmentCodec="aac",this.aacOverFlow=null,this.remainderData=null,this.audioCodec=t,this.videoCodec=n,this._duration=r}resetTimeStamp(){}resetContiguity(){const{_audioTrack:e,_videoTrack:t,_id3Track:n}=this;e&&(e.pesData=null),t&&(t.pesData=null),n&&(n.pesData=null),this.aacOverFlow=null,this.remainderData=null}demux(e,t,n=!1,r=!1){n||(this.sampleAes=null);let i;const s=this._videoTrack,u=this._audioTrack,f=this._id3Track,p=this._txtTrack;let E=s.pid,R=s.pesData,G=u.pid,ue=f.pid,se=u.pesData,ge=f.pesData,Ae=null,Ve=this.pmtParsed,vt=this._pmtId,pt=e.length;if(this.remainderData&&(e=ot(this.remainderData,e),pt=e.length,this.remainderData=null),pt<vi&&!r)return this.remainderData=e,{audioTrack:u,videoTrack:s,id3Track:f,textTrack:p};const $t=Math.max(0,rs.syncOffset(e));pt-=(pt-$t)%vi,pt<e.byteLength&&!r&&(this.remainderData=new Uint8Array(e.buffer,pt,e.buffer.byteLength-pt));let St=0;for(let zt=$t;zt<pt;zt+=vi)if(e[zt]===71){const bn=!!(e[zt+1]&64),Fn=Ks(e,zt),en=(e[zt+3]&48)>>4;let xn;if(en>1){if(xn=zt+5+e[zt+4],xn===zt+vi)continue}else xn=zt+4;switch(Fn){case E:bn&&(R&&(i=fs(R))&&this.videoParser.parseAVCPES(s,p,i,!1,this._duration),R={data:[],size:0}),R&&(R.data.push(e.subarray(xn,zt+vi)),R.size+=zt+vi-xn);break;case G:if(bn){if(se&&(i=fs(se)))switch(u.segmentCodec){case"aac":this.parseAACPES(u,i);break;case"mp3":this.parseMPEGPES(u,i);break;case"ac3":this.parseAC3PES(u,i);break}se={data:[],size:0}}se&&(se.data.push(e.subarray(xn,zt+vi)),se.size+=zt+vi-xn);break;case ue:bn&&(ge&&(i=fs(ge))&&this.parseID3PES(f,i),ge={data:[],size:0}),ge&&(ge.data.push(e.subarray(xn,zt+vi)),ge.size+=zt+vi-xn);break;case 0:bn&&(xn+=e[xn]+1),vt=this._pmtId=Qa(e,xn);break;case vt:{bn&&(xn+=e[xn]+1);const yr=La(e,xn,this.typeSupported,n,this.observer);E=yr.videoPid,E>0&&(s.pid=E,s.segmentCodec=yr.segmentVideoCodec),G=yr.audioPid,G>0&&(u.pid=G,u.segmentCodec=yr.segmentAudioCodec),ue=yr.id3Pid,ue>0&&(f.pid=ue),Ae!==null&&!Ve&&(b.warn(`MPEG-TS PMT found at ${zt} after unknown PID '${Ae}'. Backtracking to sync byte @${$t} to parse all TS packets.`),Ae=null,zt=$t-188),Ve=this.pmtParsed=!0;break}case 17:case 8191:break;default:Ae=Fn;break}}else St++;St>0&&Ws(this.observer,new Error(`Found ${St} TS packet/s that do not start with 0x47`)),s.pesData=R,u.pesData=se,f.pesData=ge;const an={audioTrack:u,videoTrack:s,id3Track:f,textTrack:p};return r&&this.extractRemainingSamples(an),an}flush(){const{remainderData:e}=this;this.remainderData=null;let t;return e?t=this.demux(e,-1,!1,!0):t={videoTrack:this._videoTrack,audioTrack:this._audioTrack,id3Track:this._id3Track,textTrack:this._txtTrack},this.extractRemainingSamples(t),this.sampleAes?this.decrypt(t,this.sampleAes):t}extractRemainingSamples(e){const{audioTrack:t,videoTrack:n,id3Track:r,textTrack:i}=e,s=n.pesData,u=t.pesData,f=r.pesData;let p;if(s&&(p=fs(s))?(this.videoParser.parseAVCPES(n,i,p,!0,this._duration),n.pesData=null):n.pesData=s,u&&(p=fs(u))){switch(t.segmentCodec){case"aac":this.parseAACPES(t,p);break;case"mp3":this.parseMPEGPES(t,p);break;case"ac3":this.parseAC3PES(t,p);break}t.pesData=null}else u!=null&&u.size&&b.log("last AAC PES packet truncated,might overlap between fragments"),t.pesData=u;f&&(p=fs(f))?(this.parseID3PES(r,p),r.pesData=null):r.pesData=f}demuxSampleAes(e,t,n){const r=this.demux(e,n,!0,!this.config.progressive),i=this.sampleAes=new ca(this.observer,this.config,t);return this.decrypt(r,i)}decrypt(e,t){return new Promise(n=>{const{audioTrack:r,videoTrack:i}=e;r.samples&&r.segmentCodec==="aac"?t.decryptAacSamples(r.samples,0,()=>{i.samples?t.decryptAvcSamples(i.samples,0,0,()=>{n(e)}):n(e)}):i.samples&&t.decryptAvcSamples(i.samples,0,0,()=>{n(e)})})}destroy(){this._duration=0}parseAACPES(e,t){let n=0;const r=this.aacOverFlow;let i=t.data;if(r){this.aacOverFlow=null;const R=r.missing,G=r.sample.unit.byteLength;if(R===-1)i=ot(r.sample.unit,i);else{const ue=G-R;r.sample.unit.set(i.subarray(0,R),ue),e.samples.push(r.sample),n=r.missing}}let s,u;for(s=n,u=i.length;s<u-1&&!Xi(i,s);s++);if(s!==n){let R;const G=s<u-1;if(G?R=`AAC PES did not start with ADTS header,offset:${s}`:R="No ADTS header found in AAC PES",Ws(this.observer,new Error(R),G),!G)return}wa(e,this.observer,i,s,this.audioCodec);let f;if(t.pts!==void 0)f=t.pts;else if(r){const R=sa(e.samplerate);f=r.sample.pts+R}else{b.warn("[tsdemuxer]: AAC PES unknown PTS");return}let p=0,E;for(;s<u;)if(E=aa(e,i,s,f,p),s+=E.length,E.missing){this.aacOverFlow=E;break}else for(p++;s<u-1&&!Xi(i,s);s++);}parseMPEGPES(e,t){const n=t.data,r=n.length;let i=0,s=0;const u=t.pts;if(u===void 0){b.warn("[tsdemuxer]: MPEG PES unknown PTS");return}for(;s<r;)if(oa(n,s)){const f=Us(e,n,s,u,i);if(f)s+=f.length,i++;else break}else s++}parseAC3PES(e,t){{const n=t.data,r=t.pts;if(r===void 0){b.warn("[tsdemuxer]: AC3 PES unknown PTS");return}const i=n.length;let s=0,u=0,f;for(;u<i&&(f=ua(e,n,u,r,s++))>0;)u+=f}}parseID3PES(e,t){if(t.pts===void 0){b.warn("[tsdemuxer]: ID3 PES unknown PTS");return}const n=o({},t,{type:this._videoTrack?Dn.emsg:Dn.audioId3,duration:Number.POSITIVE_INFINITY});e.samples.push(n)}}function Ks(a,e){return((a[e+1]&31)<<8)+a[e+2]}function Qa(a,e){return(a[e+10]&31)<<8|a[e+11]}function La(a,e,t,n,r){const i={audioPid:-1,videoPid:-1,id3Pid:-1,segmentVideoCodec:"avc",segmentAudioCodec:"aac"},s=(a[e+1]&15)<<8|a[e+2],u=e+3+s-4,f=(a[e+10]&15)<<8|a[e+11];for(e+=12+f;e<u;){const p=Ks(a,e),E=(a[e+3]&15)<<8|a[e+4];switch(a[e]){case 207:if(!n){Fe("ADTS AAC");break}case 15:i.audioPid===-1&&(i.audioPid=p);break;case 21:i.id3Pid===-1&&(i.id3Pid=p);break;case 219:if(!n){Fe("H.264");break}case 27:i.videoPid===-1&&(i.videoPid=p,i.segmentVideoCodec="avc");break;case 3:case 4:!t.mpeg&&!t.mp3?b.log("MPEG audio found, not supported in this browser"):i.audioPid===-1&&(i.audioPid=p,i.segmentAudioCodec="mp3");break;case 193:if(!n){Fe("AC-3");break}case 129:t.ac3?i.audioPid===-1&&(i.audioPid=p,i.segmentAudioCodec="ac3"):b.log("AC-3 audio found, not supported in this browser");break;case 6:if(i.audioPid===-1&&E>0){let R=e+5,G=E;for(;G>2;){switch(a[R]){case 106:t.ac3!==!0?b.log("AC-3 audio found, not supported in this browser for now"):(i.audioPid=p,i.segmentAudioCodec="ac3");break}const se=a[R+1]+2;R+=se,G-=se}}break;case 194:case 135:return Ws(r,new Error("Unsupported EC-3 in M2TS found")),i;case 36:return Ws(r,new Error("Unsupported HEVC in M2TS found")),i}e+=E+5}return i}function Ws(a,e,t){b.warn(`parsing error: ${e.message}`),a.emit(c.ERROR,c.ERROR,{type:S.MEDIA_ERROR,details:y.FRAG_PARSING_ERROR,fatal:!1,levelRetry:t,error:e,reason:e.message})}function Fe(a){b.log(`${a} with AES-128-CBC encryption found in unencrypted stream`)}function fs(a){let e=0,t,n,r,i,s;const u=a.data;if(!a||a.size===0)return null;for(;u[0].length<19&&u.length>1;)u[0]=ot(u[0],u[1]),u.splice(1,1);if(t=u[0],(t[0]<<16)+(t[1]<<8)+t[2]===1){if(n=(t[4]<<8)+t[5],n&&n>a.size-6)return null;const p=t[7];p&192&&(i=(t[9]&14)*536870912+(t[10]&255)*4194304+(t[11]&254)*16384+(t[12]&255)*128+(t[13]&254)/2,p&64?(s=(t[14]&14)*536870912+(t[15]&255)*4194304+(t[16]&254)*16384+(t[17]&255)*128+(t[18]&254)/2,i-s>60*9e4&&(b.warn(`${Math.round((i-s)/9e4)}s delta between PTS and DTS, align them`),i=s)):s=i),r=t[8];let E=r+9;if(a.size<=E)return null;a.size-=E;const R=new Uint8Array(a.size);for(let G=0,ue=u.length;G<ue;G++){t=u[G];let se=t.byteLength;if(E)if(E>se){E-=se;continue}else t=t.subarray(E),se-=E,E=0;R.set(t,e),e+=se}return n&&(n-=r+3),{data:R,pts:i,dts:s,len:n}}return null}class da extends Fs{resetInitSegment(e,t,n,r){super.resetInitSegment(e,t,n,r),this._audioTrack={container:"audio/mpeg",type:"audio",id:2,pid:-1,sequenceNumber:0,segmentCodec:"mp3",samples:[],manifestCodec:t,duration:r,inputTimeScale:9e4,dropped:0}}static probe(e){if(!e)return!1;const t=ce(e,0);let n=(t==null?void 0:t.length)||0;if(t&&e[n]===11&&e[n+1]===119&&C(t)!==void 0&&xs(e,n)<=16)return!1;for(let r=e.length;n<r;n++)if(Ta(e,n))return b.log("MPEG Audio sync word found !"),!0;return!1}canParse(e,t){return Ca(e,t)}appendFrame(e,t,n){if(this.basePTS!==null)return Us(e,t,n,this.basePTS,this.frameIndex)}}class Gs{static getSilentFrame(e,t){switch(e){case"mp4a.40.2":if(t===1)return new Uint8Array([0,200,0,128,35,128]);if(t===2)return new Uint8Array([33,0,73,144,2,25,0,35,128]);if(t===3)return new Uint8Array([0,200,0,128,32,132,1,38,64,8,100,0,142]);if(t===4)return new Uint8Array([0,200,0,128,32,132,1,38,64,8,100,0,128,44,128,8,2,56]);if(t===5)return new Uint8Array([0,200,0,128,32,132,1,38,64,8,100,0,130,48,4,153,0,33,144,2,56]);if(t===6)return new Uint8Array([0,200,0,128,32,132,1,38,64,8,100,0,130,48,4,153,0,33,144,2,0,178,0,32,8,224]);break;default:if(t===1)return new Uint8Array([1,64,34,128,163,78,230,128,186,8,0,0,0,28,6,241,193,10,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,94]);if(t===2)return new Uint8Array([1,64,34,128,163,94,230,128,186,8,0,0,0,0,149,0,6,241,161,10,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,94]);if(t===3)return new Uint8Array([1,64,34,128,163,94,230,128,186,8,0,0,0,0,149,0,6,241,161,10,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,94]);break}}}const Qi=Math.pow(2,32)-1;class Dt{static init(){Dt.types={avc1:[],avcC:[],btrt:[],dinf:[],dref:[],esds:[],ftyp:[],hdlr:[],mdat:[],mdhd:[],mdia:[],mfhd:[],minf:[],moof:[],moov:[],mp4a:[],".mp3":[],dac3:[],"ac-3":[],mvex:[],mvhd:[],pasp:[],sdtp:[],stbl:[],stco:[],stsc:[],stsd:[],stsz:[],stts:[],tfdt:[],tfhd:[],traf:[],trak:[],trun:[],trex:[],tkhd:[],vmhd:[],smhd:[]};let e;for(e in Dt.types)Dt.types.hasOwnProperty(e)&&(Dt.types[e]=[e.charCodeAt(0),e.charCodeAt(1),e.charCodeAt(2),e.charCodeAt(3)]);const t=new Uint8Array([0,0,0,0,0,0,0,0,118,105,100,101,0,0,0,0,0,0,0,0,0,0,0,0,86,105,100,101,111,72,97,110,100,108,101,114,0]),n=new Uint8Array([0,0,0,0,0,0,0,0,115,111,117,110,0,0,0,0,0,0,0,0,0,0,0,0,83,111,117,110,100,72,97,110,100,108,101,114,0]);Dt.HDLR_TYPES={video:t,audio:n};const r=new Uint8Array([0,0,0,0,0,0,0,1,0,0,0,12,117,114,108,32,0,0,0,1]),i=new Uint8Array([0,0,0,0,0,0,0,0]);Dt.STTS=Dt.STSC=Dt.STCO=i,Dt.STSZ=new Uint8Array([0,0,0,0,0,0,0,0,0,0,0,0]),Dt.VMHD=new Uint8Array([0,0,0,1,0,0,0,0,0,0,0,0]),Dt.SMHD=new Uint8Array([0,0,0,0,0,0,0,0]),Dt.STSD=new Uint8Array([0,0,0,0,0,0,0,1]);const s=new Uint8Array([105,115,111,109]),u=new Uint8Array([97,118,99,49]),f=new Uint8Array([0,0,0,1]);Dt.FTYP=Dt.box(Dt.types.ftyp,s,f,s,u),Dt.DINF=Dt.box(Dt.types.dinf,Dt.box(Dt.types.dref,r))}static box(e,...t){let n=8,r=t.length;const i=r;for(;r--;)n+=t[r].byteLength;const s=new Uint8Array(n);for(s[0]=n>>24&255,s[1]=n>>16&255,s[2]=n>>8&255,s[3]=n&255,s.set(e,4),r=0,n=8;r<i;r++)s.set(t[r],n),n+=t[r].byteLength;return s}static hdlr(e){return Dt.box(Dt.types.hdlr,Dt.HDLR_TYPES[e])}static mdat(e){return Dt.box(Dt.types.mdat,e)}static mdhd(e,t){t*=e;const n=Math.floor(t/(Qi+1)),r=Math.floor(t%(Qi+1));return Dt.box(Dt.types.mdhd,new Uint8Array([1,0,0,0,0,0,0,0,0,0,0,2,0,0,0,0,0,0,0,3,e>>24&255,e>>16&255,e>>8&255,e&255,n>>24,n>>16&255,n>>8&255,n&255,r>>24,r>>16&255,r>>8&255,r&255,85,196,0,0]))}static mdia(e){return Dt.box(Dt.types.mdia,Dt.mdhd(e.timescale,e.duration),Dt.hdlr(e.type),Dt.minf(e))}static mfhd(e){return Dt.box(Dt.types.mfhd,new Uint8Array([0,0,0,0,e>>24,e>>16&255,e>>8&255,e&255]))}static minf(e){return e.type==="audio"?Dt.box(Dt.types.minf,Dt.box(Dt.types.smhd,Dt.SMHD),Dt.DINF,Dt.stbl(e)):Dt.box(Dt.types.minf,Dt.box(Dt.types.vmhd,Dt.VMHD),Dt.DINF,Dt.stbl(e))}static moof(e,t,n){return Dt.box(Dt.types.moof,Dt.mfhd(e),Dt.traf(n,t))}static moov(e){let t=e.length;const n=[];for(;t--;)n[t]=Dt.trak(e[t]);return Dt.box.apply(null,[Dt.types.moov,Dt.mvhd(e[0].timescale,e[0].duration)].concat(n).concat(Dt.mvex(e)))}static mvex(e){let t=e.length;const n=[];for(;t--;)n[t]=Dt.trex(e[t]);return Dt.box.apply(null,[Dt.types.mvex,...n])}static mvhd(e,t){t*=e;const n=Math.floor(t/(Qi+1)),r=Math.floor(t%(Qi+1)),i=new Uint8Array([1,0,0,0,0,0,0,0,0,0,0,2,0,0,0,0,0,0,0,3,e>>24&255,e>>16&255,e>>8&255,e&255,n>>24,n>>16&255,n>>8&255,n&255,r>>24,r>>16&255,r>>8&255,r&255,0,1,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,64,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,255]);return Dt.box(Dt.types.mvhd,i)}static sdtp(e){const t=e.samples||[],n=new Uint8Array(4+t.length);let r,i;for(r=0;r<t.length;r++)i=t[r].flags,n[r+4]=i.dependsOn<<4|i.isDependedOn<<2|i.hasRedundancy;return Dt.box(Dt.types.sdtp,n)}static stbl(e){return Dt.box(Dt.types.stbl,Dt.stsd(e),Dt.box(Dt.types.stts,Dt.STTS),Dt.box(Dt.types.stsc,Dt.STSC),Dt.box(Dt.types.stsz,Dt.STSZ),Dt.box(Dt.types.stco,Dt.STCO))}static avc1(e){let t=[],n=[],r,i,s;for(r=0;r<e.sps.length;r++)i=e.sps[r],s=i.byteLength,t.push(s>>>8&255),t.push(s&255),t=t.concat(Array.prototype.slice.call(i));for(r=0;r<e.pps.length;r++)i=e.pps[r],s=i.byteLength,n.push(s>>>8&255),n.push(s&255),n=n.concat(Array.prototype.slice.call(i));const u=Dt.box(Dt.types.avcC,new Uint8Array([1,t[3],t[4],t[5],255,224|e.sps.length].concat(t).concat([e.pps.length]).concat(n))),f=e.width,p=e.height,E=e.pixelRatio[0],R=e.pixelRatio[1];return Dt.box(Dt.types.avc1,new Uint8Array([0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,f>>8&255,f&255,p>>8&255,p&255,0,72,0,0,0,72,0,0,0,0,0,0,0,1,18,100,97,105,108,121,109,111,116,105,111,110,47,104,108,115,46,106,115,0,0,0,0,0,0,0,0,0,0,0,0,0,0,24,17,17]),u,Dt.box(Dt.types.btrt,new Uint8Array([0,28,156,128,0,45,198,192,0,45,198,192])),Dt.box(Dt.types.pasp,new Uint8Array([E>>24,E>>16&255,E>>8&255,E&255,R>>24,R>>16&255,R>>8&255,R&255])))}static esds(e){const t=e.config.length;return new Uint8Array([0,0,0,0,3,23+t,0,1,0,4,15+t,64,21,0,0,0,0,0,0,0,0,0,0,0,5].concat([t]).concat(e.config).concat([6,1,2]))}static audioStsd(e){const t=e.samplerate;return new Uint8Array([0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,e.channelCount,0,16,0,0,0,0,t>>8&255,t&255,0,0])}static mp4a(e){return Dt.box(Dt.types.mp4a,Dt.audioStsd(e),Dt.box(Dt.types.esds,Dt.esds(e)))}static mp3(e){return Dt.box(Dt.types[".mp3"],Dt.audioStsd(e))}static ac3(e){return Dt.box(Dt.types["ac-3"],Dt.audioStsd(e),Dt.box(Dt.types.dac3,e.config))}static stsd(e){return e.type==="audio"?e.segmentCodec==="mp3"&&e.codec==="mp3"?Dt.box(Dt.types.stsd,Dt.STSD,Dt.mp3(e)):e.segmentCodec==="ac3"?Dt.box(Dt.types.stsd,Dt.STSD,Dt.ac3(e)):Dt.box(Dt.types.stsd,Dt.STSD,Dt.mp4a(e)):Dt.box(Dt.types.stsd,Dt.STSD,Dt.avc1(e))}static tkhd(e){const t=e.id,n=e.duration*e.timescale,r=e.width,i=e.height,s=Math.floor(n/(Qi+1)),u=Math.floor(n%(Qi+1));return Dt.box(Dt.types.tkhd,new Uint8Array([1,0,0,7,0,0,0,0,0,0,0,2,0,0,0,0,0,0,0,3,t>>24&255,t>>16&255,t>>8&255,t&255,0,0,0,0,s>>24,s>>16&255,s>>8&255,s&255,u>>24,u>>16&255,u>>8&255,u&255,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,64,0,0,0,r>>8&255,r&255,0,0,i>>8&255,i&255,0,0]))}static traf(e,t){const n=Dt.sdtp(e),r=e.id,i=Math.floor(t/(Qi+1)),s=Math.floor(t%(Qi+1));return Dt.box(Dt.types.traf,Dt.box(Dt.types.tfhd,new Uint8Array([0,0,0,0,r>>24,r>>16&255,r>>8&255,r&255])),Dt.box(Dt.types.tfdt,new Uint8Array([1,0,0,0,i>>24,i>>16&255,i>>8&255,i&255,s>>24,s>>16&255,s>>8&255,s&255])),Dt.trun(e,n.length+16+20+8+16+8+8),n)}static trak(e){return e.duration=e.duration||4294967295,Dt.box(Dt.types.trak,Dt.tkhd(e),Dt.mdia(e))}static trex(e){const t=e.id;return Dt.box(Dt.types.trex,new Uint8Array([0,0,0,0,t>>24,t>>16&255,t>>8&255,t&255,0,0,0,1,0,0,0,0,0,0,0,0,0,1,0,1]))}static trun(e,t){const n=e.samples||[],r=n.length,i=12+16*r,s=new Uint8Array(i);let u,f,p,E,R,G;for(t+=8+i,s.set([e.type==="video"?1:0,0,15,1,r>>>24&255,r>>>16&255,r>>>8&255,r&255,t>>>24&255,t>>>16&255,t>>>8&255,t&255],0),u=0;u<r;u++)f=n[u],p=f.duration,E=f.size,R=f.flags,G=f.cts,s.set([p>>>24&255,p>>>16&255,p>>>8&255,p&255,E>>>24&255,E>>>16&255,E>>>8&255,E&255,R.isLeading<<2|R.dependsOn,R.isDependedOn<<6|R.hasRedundancy<<4|R.paddingValue<<1|R.isNonSync,R.degradPrio&61440,R.degradPrio&15,G>>>24&255,G>>>16&255,G>>>8&255,G&255],12+16*u);return Dt.box(Dt.types.trun,s)}static initSegment(e){Dt.types||Dt.init();const t=Dt.moov(e);return ot(Dt.FTYP,t)}}Dt.types=void 0,Dt.HDLR_TYPES=void 0,Dt.STTS=void 0,Dt.STSC=void 0,Dt.STCO=void 0,Dt.STSZ=void 0,Dt.VMHD=void 0,Dt.SMHD=void 0,Dt.STSD=void 0,Dt.FTYP=void 0,Dt.DINF=void 0;const ha=9e4;function Zs(a,e,t=1,n=!1){const r=a*e*t;return n?Math.round(r):r}function Ja(a,e,t=1,n=!1){return Zs(a,e,1/t,n)}function Es(a,e=!1){return Zs(a,1e3,1/ha,e)}function Oa(a,e=1){return Zs(a,ha,1/e)}const Vs=10*1e3,ka=1024,fa=1152,Pa=1536;let ws=null,ma=null;class Os{constructor(e,t,n,r=""){if(this.observer=void 0,this.config=void 0,this.typeSupported=void 0,this.ISGenerated=!1,this._initPTS=null,this._initDTS=null,this.nextAvcDts=null,this.nextAudioPts=null,this.videoSampleDuration=null,this.isAudioContiguous=!1,this.isVideoContiguous=!1,this.videoTrackConfig=void 0,this.observer=e,this.config=t,this.typeSupported=n,this.ISGenerated=!1,ws===null){const s=(navigator.userAgent||"").match(/Chrome\/(\d+)/i);ws=s?parseInt(s[1]):0}if(ma===null){const i=navigator.userAgent.match(/Safari\/(\d+)/i);ma=i?parseInt(i[1]):0}}destroy(){this.config=this.videoTrackConfig=this._initPTS=this._initDTS=null}resetTimeStamp(e){b.log("[mp4-remuxer]: initPTS & initDTS reset"),this._initPTS=this._initDTS=e}resetNextTimestamp(){b.log("[mp4-remuxer]: reset next timestamp"),this.isVideoContiguous=!1,this.isAudioContiguous=!1}resetInitSegment(){b.log("[mp4-remuxer]: ISGenerated flag reset"),this.ISGenerated=!1,this.videoTrackConfig=void 0}getVideoStartPts(e){let t=!1;const n=e[0].pts,r=e.reduce((i,s)=>{let u=s.pts,f=u-i;return f<-4294967296&&(t=!0,u=Mi(u,n),f=u-i),f>0?i:u},n);return t&&b.debug("PTS rollover detected"),r}remux(e,t,n,r,i,s,u,f){let p,E,R,G,ue,se,ge=i,Ae=i;const Ve=e.pid>-1,vt=t.pid>-1,pt=t.samples.length,$t=e.samples.length>0,St=u&&pt>0||pt>1;if((!Ve||$t)&&(!vt||St)||this.ISGenerated||u){if(this.ISGenerated){var zt,bn,Fn,en;const _r=this.videoTrackConfig;_r&&(t.width!==_r.width||t.height!==_r.height||((zt=t.pixelRatio)==null?void 0:zt[0])!==((bn=_r.pixelRatio)==null?void 0:bn[0])||((Fn=t.pixelRatio)==null?void 0:Fn[1])!==((en=_r.pixelRatio)==null?void 0:en[1]))&&this.resetInitSegment()}else R=this.generateIS(e,t,i,s);const xn=this.isVideoContiguous;let yr=-1,Hn;if(St&&(yr=qa(t.samples),!xn&&this.config.forceKeyFrameOnDiscontinuity))if(se=!0,yr>0){b.warn(`[mp4-remuxer]: Dropped ${yr} out of ${pt} video samples due to a missing keyframe`);const _r=this.getVideoStartPts(t.samples);t.samples=t.samples.slice(yr),t.dropped+=yr,Ae+=(t.samples[0].pts-_r)/t.inputTimeScale,Hn=Ae}else yr===-1&&(b.warn(`[mp4-remuxer]: No keyframe found out of ${pt} video samples`),se=!1);if(this.ISGenerated){if($t&&St){const _r=this.getVideoStartPts(t.samples),or=(Mi(e.samples[0].pts,_r)-_r)/t.inputTimeScale;ge+=Math.max(0,or),Ae+=Math.max(0,-or)}if($t){if(e.samplerate||(b.warn("[mp4-remuxer]: regenerate InitSegment as audio detected"),R=this.generateIS(e,t,i,s)),E=this.remuxAudio(e,ge,this.isAudioContiguous,s,vt||St||f===Ge.AUDIO?Ae:void 0),St){const _r=E?E.endPTS-E.startPTS:0;t.inputTimeScale||(b.warn("[mp4-remuxer]: regenerate InitSegment as video detected"),R=this.generateIS(e,t,i,s)),p=this.remuxVideo(t,Ae,xn,_r)}}else St&&(p=this.remuxVideo(t,Ae,xn,0));p&&(p.firstKeyFrame=yr,p.independent=yr!==-1,p.firstKeyFramePTS=Hn)}}return this.ISGenerated&&this._initPTS&&this._initDTS&&(n.samples.length&&(ue=Ma(n,i,this._initPTS,this._initDTS)),r.samples.length&&(G=eo(r,i,this._initPTS))),{audio:E,video:p,initSegment:R,independent:se,text:G,id3:ue}}generateIS(e,t,n,r){const i=e.samples,s=t.samples,u=this.typeSupported,f={},p=this._initPTS;let E=!p||r,R="audio/mp4",G,ue,se;if(E&&(G=ue=1/0),e.config&&i.length){switch(e.timescale=e.samplerate,e.segmentCodec){case"mp3":u.mpeg?(R="audio/mpeg",e.codec=""):u.mp3&&(e.codec="mp3");break;case"ac3":e.codec="ac-3";break}f.audio={id:"audio",container:R,codec:e.codec,initSegment:e.segmentCodec==="mp3"&&u.mpeg?new Uint8Array(0):Dt.initSegment([e]),metadata:{channelCount:e.channelCount}},E&&(se=e.inputTimeScale,!p||se!==p.timescale?G=ue=i[0].pts-Math.round(se*n):E=!1)}if(t.sps&&t.pps&&s.length){if(t.timescale=t.inputTimeScale,f.video={id:"main",container:"video/mp4",codec:t.codec,initSegment:Dt.initSegment([t]),metadata:{width:t.width,height:t.height}},E)if(se=t.inputTimeScale,!p||se!==p.timescale){const ge=this.getVideoStartPts(s),Ae=Math.round(se*n);ue=Math.min(ue,Mi(s[0].dts,ge)-Ae),G=Math.min(G,ge-Ae)}else E=!1;this.videoTrackConfig={width:t.width,height:t.height,pixelRatio:t.pixelRatio}}if(Object.keys(f).length)return this.ISGenerated=!0,E?(this._initPTS={baseTime:G,timescale:se},this._initDTS={baseTime:ue,timescale:se}):G=se=void 0,{tracks:f,initPTS:G,timescale:se}}remuxVideo(e,t,n,r){const i=e.inputTimeScale,s=e.samples,u=[],f=s.length,p=this._initPTS;let E=this.nextAvcDts,R=8,G=this.videoSampleDuration,ue,se,ge=Number.POSITIVE_INFINITY,Ae=Number.NEGATIVE_INFINITY,Ve=!1;if(!n||E===null){const Vn=t*i,jn=s[0].pts-Mi(s[0].dts,s[0].pts);ws&&E!==null&&Math.abs(Vn-jn-E)<15e3?n=!0:E=Vn-jn}const vt=p.baseTime*i/p.timescale;for(let Vn=0;Vn<f;Vn++){const jn=s[Vn];jn.pts=Mi(jn.pts-vt,E),jn.dts=Mi(jn.dts-vt,E),jn.dts<s[Vn>0?Vn-1:Vn].dts&&(Ve=!0)}Ve&&s.sort(function(Vn,jn){const Ur=Vn.dts-jn.dts,Ar=Vn.pts-jn.pts;return Ur||Ar}),ue=s[0].dts,se=s[s.length-1].dts;const pt=se-ue,$t=pt?Math.round(pt/(f-1)):G||e.inputTimeScale/30;if(n){const Vn=ue-E,jn=Vn>$t,Ur=Vn<-1;if((jn||Ur)&&(jn?b.warn(`AVC: ${Es(Vn,!0)} ms (${Vn}dts) hole between fragments detected at ${t.toFixed(3)}`):b.warn(`AVC: ${Es(-Vn,!0)} ms (${Vn}dts) overlapping between fragments detected at ${t.toFixed(3)}`),!Ur||E>=s[0].pts||ws)){ue=E;const Ar=s[0].pts-Vn;if(jn)s[0].dts=ue,s[0].pts=Ar;else for(let Vr=0;Vr<s.length&&!(s[Vr].dts>Ar);Vr++)s[Vr].dts-=Vn,s[Vr].pts-=Vn;b.log(`Video: Initial PTS/DTS adjusted: ${Es(Ar,!0)}/${Es(ue,!0)}, delta: ${Es(Vn,!0)} ms`)}}ue=Math.max(0,ue);let St=0,an=0,zt=ue;for(let Vn=0;Vn<f;Vn++){const jn=s[Vn],Ur=jn.units,Ar=Ur.length;let Vr=0;for(let _i=0;_i<Ar;_i++)Vr+=Ur[_i].data.length;an+=Vr,St+=Ar,jn.length=Vr,jn.dts<zt?(jn.dts=zt,zt+=$t/4|0||1):zt=jn.dts,ge=Math.min(jn.pts,ge),Ae=Math.max(jn.pts,Ae)}se=s[f-1].dts;const bn=an+4*St+8;let Fn;try{Fn=new Uint8Array(bn)}catch(Vn){this.observer.emit(c.ERROR,c.ERROR,{type:S.MUX_ERROR,details:y.REMUX_ALLOC_ERROR,fatal:!1,error:Vn,bytes:bn,reason:`fail allocating video mdat ${bn}`});return}const en=new DataView(Fn.buffer);en.setUint32(0,bn),Fn.set(Dt.types.mdat,4);let xn=!1,yr=Number.POSITIVE_INFINITY,Hn=Number.POSITIVE_INFINITY,_r=Number.NEGATIVE_INFINITY,gr=Number.NEGATIVE_INFINITY;for(let Vn=0;Vn<f;Vn++){const jn=s[Vn],Ur=jn.units;let Ar=0;for(let Li=0,ki=Ur.length;Li<ki;Li++){const Yi=Ur[Li],_a=Yi.data,bo=Yi.data.byteLength;en.setUint32(R,bo),R+=4,Fn.set(_a,R),R+=bo,Ar+=4+bo}let Vr;if(Vn<f-1)G=s[Vn+1].dts-jn.dts,Vr=s[Vn+1].pts-jn.pts;else{const Li=this.config,ki=Vn>0?jn.dts-s[Vn-1].dts:$t;if(Vr=Vn>0?jn.pts-s[Vn-1].pts:$t,Li.stretchShortVideoTrack&&this.nextAudioPts!==null){const Yi=Math.floor(Li.maxBufferHole*i),_a=(r?ge+r*i:this.nextAudioPts)-jn.pts;_a>Yi?(G=_a-ki,G<0?G=ki:xn=!0,b.log(`[mp4-remuxer]: It is approximately ${_a/90} ms to the next segment; using duration ${G/90} ms for the last video frame.`)):G=ki}else G=ki}const _i=Math.round(jn.pts-jn.dts);yr=Math.min(yr,G),_r=Math.max(_r,G),Hn=Math.min(Hn,Vr),gr=Math.max(gr,Vr),u.push(new j(jn.key,G,Ar,_i))}if(u.length){if(ws){if(ws<70){const Vn=u[0].flags;Vn.dependsOn=2,Vn.isNonSync=0}}else if(ma&&gr-Hn<_r-yr&&$t/_r<.025&&u[0].cts===0){b.warn("Found irregular gaps in sample duration. Using PTS instead of DTS to determine MP4 sample duration.");let Vn=ue;for(let jn=0,Ur=u.length;jn<Ur;jn++){const Ar=Vn+u[jn].duration,Vr=Vn+u[jn].cts;if(jn<Ur-1){const _i=Ar+u[jn+1].cts;u[jn].duration=_i-Vr}else u[jn].duration=jn?u[jn-1].duration:$t;u[jn].cts=0,Vn=Ar}}}G=xn||!G?$t:G,this.nextAvcDts=E=se+G,this.videoSampleDuration=G,this.isVideoContiguous=!0;const Xr={data1:Dt.moof(e.sequenceNumber++,ue,o({},e,{samples:u})),data2:Fn,startPTS:ge/i,endPTS:(Ae+G)/i,startDTS:ue/i,endDTS:E/i,type:"video",hasAudio:!1,hasVideo:!0,nb:u.length,dropped:e.dropped};return e.samples=[],e.dropped=0,Xr}getSamplesPerFrame(e){switch(e.segmentCodec){case"mp3":return fa;case"ac3":return Pa;default:return ka}}remuxAudio(e,t,n,r,i){const s=e.inputTimeScale,u=e.samplerate?e.samplerate:s,f=s/u,p=this.getSamplesPerFrame(e),E=p*f,R=this._initPTS,G=e.segmentCodec==="mp3"&&this.typeSupported.mpeg,ue=[],se=i!==void 0;let ge=e.samples,Ae=G?0:8,Ve=this.nextAudioPts||-1;const vt=t*s,pt=R.baseTime*s/R.timescale;if(this.isAudioContiguous=n=n||ge.length&&Ve>0&&(r&&Math.abs(vt-Ve)<9e3||Math.abs(Mi(ge[0].pts-pt,vt)-Ve)<20*E),ge.forEach(function(or){or.pts=Mi(or.pts-pt,vt)}),!n||Ve<0){if(ge=ge.filter(or=>or.pts>=0),!ge.length)return;i===0?Ve=0:r&&!se?Ve=Math.max(0,vt):Ve=ge[0].pts}if(e.segmentCodec==="aac"){const or=this.config.maxAudioFramesDrift;for(let Nr=0,Xr=Ve;Nr<ge.length;Nr++){const Vn=ge[Nr],jn=Vn.pts,Ur=jn-Xr,Ar=Math.abs(1e3*Ur/s);if(Ur<=-or*E&&se)Nr===0&&(b.warn(`Audio frame @ ${(jn/s).toFixed(3)}s overlaps nextAudioPts by ${Math.round(1e3*Ur/s)} ms.`),this.nextAudioPts=Ve=Xr=jn);else if(Ur>=or*E&&Ar<Vs&&se){let Vr=Math.round(Ur/E);Xr=jn-Vr*E,Xr<0&&(Vr--,Xr+=E),Nr===0&&(this.nextAudioPts=Ve=Xr),b.warn(`[mp4-remuxer]: Injecting ${Vr} audio frame @ ${(Xr/s).toFixed(3)}s due to ${Math.round(1e3*Ur/s)} ms gap.`);for(let _i=0;_i<Vr;_i++){const Li=Math.max(Xr,0);let ki=Gs.getSilentFrame(e.manifestCodec||e.codec,e.channelCount);ki||(b.log("[mp4-remuxer]: Unable to get silent frame for given audio codec; duplicating last frame instead."),ki=Vn.unit.subarray()),ge.splice(Nr,0,{unit:ki,pts:Li}),Xr+=E,Nr++}}Vn.pts=Xr,Xr+=E}}let $t=null,St=null,an,zt=0,bn=ge.length;for(;bn--;)zt+=ge[bn].unit.byteLength;for(let or=0,Nr=ge.length;or<Nr;or++){const Xr=ge[or],Vn=Xr.unit;let jn=Xr.pts;if(St!==null){const Ar=ue[or-1];Ar.duration=Math.round((jn-St)/f)}else if(n&&e.segmentCodec==="aac"&&(jn=Ve),$t=jn,zt>0){zt+=Ae;try{an=new Uint8Array(zt)}catch(Ar){this.observer.emit(c.ERROR,c.ERROR,{type:S.MUX_ERROR,details:y.REMUX_ALLOC_ERROR,fatal:!1,error:Ar,bytes:zt,reason:`fail allocating audio mdat ${zt}`});return}G||(new DataView(an.buffer).setUint32(0,zt),an.set(Dt.types.mdat,4))}else return;an.set(Vn,Ae);const Ur=Vn.byteLength;Ae+=Ur,ue.push(new j(!0,p,Ur,0)),St=jn}const Fn=ue.length;if(!Fn)return;const en=ue[ue.length-1];this.nextAudioPts=Ve=St+f*en.duration;const xn=G?new Uint8Array(0):Dt.moof(e.sequenceNumber++,$t/f,o({},e,{samples:ue}));e.samples=[];const yr=$t/s,Hn=Ve/s,gr={data1:xn,data2:an,startPTS:yr,endPTS:Hn,startDTS:yr,endDTS:Hn,type:"audio",hasAudio:!0,hasVideo:!1,nb:Fn};return this.isAudioContiguous=!0,gr}remuxEmptyAudio(e,t,n,r){const i=e.inputTimeScale,s=e.samplerate?e.samplerate:i,u=i/s,f=this.nextAudioPts,p=this._initDTS,E=p.baseTime*9e4/p.timescale,R=(f!==null?f:r.startDTS*i)+E,G=r.endDTS*i+E,ue=u*ka,se=Math.ceil((G-R)/ue),ge=Gs.getSilentFrame(e.manifestCodec||e.codec,e.channelCount);if(b.warn("[mp4-remuxer]: remux empty Audio"),!ge){b.trace("[mp4-remuxer]: Unable to remuxEmptyAudio since we were unable to get a silent frame for given audio codec");return}const Ae=[];for(let Ve=0;Ve<se;Ve++){const vt=R+Ve*ue;Ae.push({unit:ge,pts:vt,dts:vt})}return e.samples=Ae,this.remuxAudio(e,t,n,!1)}}function Mi(a,e){let t;if(e===null)return a;for(e<a?t=-8589934592:t=8589934592;Math.abs(a-e)>4294967296;)a+=t;return a}function qa(a){for(let e=0;e<a.length;e++)if(a[e].key)return e;return-1}function Ma(a,e,t,n){const r=a.samples.length;if(!r)return;const i=a.inputTimeScale;for(let u=0;u<r;u++){const f=a.samples[u];f.pts=Mi(f.pts-t.baseTime*i/t.timescale,e*i)/i,f.dts=Mi(f.dts-n.baseTime*i/n.timescale,e*i)/i}const s=a.samples;return a.samples=[],{samples:s}}function eo(a,e,t){const n=a.samples.length;if(!n)return;const r=a.inputTimeScale;for(let s=0;s<n;s++){const u=a.samples[s];u.pts=Mi(u.pts-t.baseTime*r/t.timescale,e*r)/r}a.samples.sort((s,u)=>s.pts-u.pts);const i=a.samples;return a.samples=[],{samples:i}}class j{constructor(e,t,n,r){this.size=void 0,this.duration=void 0,this.cts=void 0,this.flags=void 0,this.duration=t,this.size=n,this.cts=r,this.flags={isLeading:0,isDependedOn:0,hasRedundancy:0,degradPrio:0,dependsOn:e?2:1,isNonSync:e?0:1}}}class l{constructor(){this.emitInitSegment=!1,this.audioCodec=void 0,this.videoCodec=void 0,this.initData=void 0,this.initPTS=null,this.initTracks=void 0,this.lastEndTime=null}destroy(){}resetTimeStamp(e){this.initPTS=e,this.lastEndTime=null}resetNextTimestamp(){this.lastEndTime=null}resetInitSegment(e,t,n,r){this.audioCodec=t,this.videoCodec=n,this.generateInitSegment(V(e,r)),this.emitInitSegment=!0}generateInitSegment(e){let{audioCodec:t,videoCodec:n}=this;if(!(e!=null&&e.byteLength)){this.initTracks=void 0,this.initData=void 0;return}const r=this.initData=We(e);r.audio&&(t=h(r.audio,Z.AUDIO)),r.video&&(n=h(r.video,Z.VIDEO));const i={};r.audio&&r.video?i.audiovideo={container:"video/mp4",codec:t+","+n,initSegment:e,id:"main"}:r.audio?i.audio={container:"audio/mp4",codec:t,initSegment:e,id:"audio"}:r.video?i.video={container:"video/mp4",codec:n,initSegment:e,id:"main"}:b.warn("[passthrough-remuxer.ts]: initSegment does not contain moov or trak boxes."),this.initTracks=i}remux(e,t,n,r,i,s){var u,f;let{initPTS:p,lastEndTime:E}=this;const R={audio:void 0,video:void 0,text:r,id3:n,initSegment:void 0};L(E)||(E=this.lastEndTime=i||0);const G=t.samples;if(!(G!=null&&G.length))return R;const ue={initPTS:void 0,timescale:1};let se=this.initData;if((u=se)!=null&&u.length||(this.generateInitSegment(G),se=this.initData),!((f=se)!=null&&f.length))return b.warn("[passthrough-remuxer.ts]: Failed to generate initSegment."),R;this.emitInitSegment&&(ue.tracks=this.initTracks,this.emitInitSegment=!1);const ge=jt(G,se),Ae=Le(se,G),Ve=Ae===null?i:Ae;(d(p,Ve,i,ge)||ue.timescale!==p.timescale&&s)&&(ue.initPTS=Ve-i,p&&p.timescale===1&&b.warn(`Adjusting initPTS by ${ue.initPTS-p.baseTime}`),this.initPTS=p={baseTime:ue.initPTS,timescale:1});const vt=e?Ve-p.baseTime/p.timescale:E,pt=vt+ge;bt(se,G,p.baseTime/p.timescale),ge>0?this.lastEndTime=pt:(b.warn("Duration parsed from mp4 should be greater than zero"),this.resetNextTimestamp());const $t=!!se.audio,St=!!se.video;let an="";$t&&(an+="audio"),St&&(an+="video");const zt={data1:G,startPTS:vt,startDTS:vt,endPTS:pt,endDTS:pt,type:an,hasAudio:$t,hasVideo:St,nb:1,dropped:0};return R.audio=zt.type==="audio"?zt:void 0,R.video=zt.type!=="audio"?zt:void 0,R.initSegment=ue,R.id3=Ma(n,i,p,p),r.samples.length&&(R.text=eo(r,i,p)),R}}function d(a,e,t,n){if(a===null)return!0;const r=Math.max(n,1),i=e-a.baseTime/a.timescale;return Math.abs(i-t)>r}function h(a,e){const t=a==null?void 0:a.codec;if(t&&t.length>4)return t;if(e===Z.AUDIO){if(t==="ec-3"||t==="ac-3"||t==="alac")return t;if(t==="fLaC"||t==="Opus")return mn(t,!1);const n="mp4a.40.5";return b.info(`Parsed audio codec "${t}" or audio object type not handled. Using "${n}"`),n}return b.warn(`Unhandled video codec "${t}"`),t==="hvc1"||t==="hev1"?"hvc1.1.6.L120.90":t==="av01"?"av01.0.04M.08":"avc1.42e01e"}let m;try{m=self.performance.now.bind(self.performance)}catch(a){b.debug("Unable to use Performance API on this environment"),m=Ue==null?void 0:Ue.Date.now}const I=[{demux:Va,remux:l},{demux:rs,remux:Os},{demux:Da,remux:Os},{demux:da,remux:Os}];I.splice(2,0,{demux:la,remux:Os});class H{constructor(e,t,n,r,i){this.async=!1,this.observer=void 0,this.typeSupported=void 0,this.config=void 0,this.vendor=void 0,this.id=void 0,this.demuxer=void 0,this.remuxer=void 0,this.decrypter=void 0,this.probe=void 0,this.decryptionPromise=null,this.transmuxConfig=void 0,this.currentTransmuxState=void 0,this.observer=e,this.typeSupported=t,this.config=n,this.vendor=r,this.id=i}configure(e){this.transmuxConfig=e,this.decrypter&&this.decrypter.reset()}push(e,t,n,r){const i=n.transmuxing;i.executeStart=m();let s=new Uint8Array(e);const{currentTransmuxState:u,transmuxConfig:f}=this;r&&(this.currentTransmuxState=r);const{contiguous:p,discontinuity:E,trackSwitch:R,accurateTimeOffset:G,timeOffset:ue,initSegmentChange:se}=r||u,{audioCodec:ge,videoCodec:Ae,defaultInitPts:Ve,duration:vt,initSegmentData:pt}=f,$t=Ee(s,t);if($t&&$t.method==="AES-128"){const bn=this.getDecrypter();if(bn.isSync()){let Fn=bn.softwareDecrypt(s,$t.key.buffer,$t.iv.buffer);if(n.part>-1&&(Fn=bn.flush()),!Fn)return i.executeEnd=m(),Oe(n);s=new Uint8Array(Fn)}else return this.decryptionPromise=bn.webCryptoDecrypt(s,$t.key.buffer,$t.iv.buffer).then(Fn=>{const en=this.push(Fn,null,n);return this.decryptionPromise=null,en}),this.decryptionPromise}const St=this.needsProbing(E,R);if(St){const bn=this.configureTransmuxer(s);if(bn)return b.warn(`[transmuxer] ${bn.message}`),this.observer.emit(c.ERROR,c.ERROR,{type:S.MEDIA_ERROR,details:y.FRAG_PARSING_ERROR,fatal:!1,error:bn,reason:bn.message}),i.executeEnd=m(),Oe(n)}(E||R||se||St)&&this.resetInitSegment(pt,ge,Ae,vt,t),(E||se||St)&&this.resetInitialTimestamp(Ve),p||this.resetContiguity();const an=this.transmux(s,$t,ue,G,n),zt=this.currentTransmuxState;return zt.contiguous=!0,zt.discontinuity=!1,zt.trackSwitch=!1,i.executeEnd=m(),an}flush(e){const t=e.transmuxing;t.executeStart=m();const{decrypter:n,currentTransmuxState:r,decryptionPromise:i}=this;if(i)return i.then(()=>this.flush(e));const s=[],{timeOffset:u}=r;if(n){const R=n.flush();R&&s.push(this.push(R,null,e))}const{demuxer:f,remuxer:p}=this;if(!f||!p)return t.executeEnd=m(),[Oe(e)];const E=f.flush(u);return Ke(E)?E.then(R=>(this.flushRemux(s,R,e),s)):(this.flushRemux(s,E,e),s)}flushRemux(e,t,n){const{audioTrack:r,videoTrack:i,id3Track:s,textTrack:u}=t,{accurateTimeOffset:f,timeOffset:p}=this.currentTransmuxState;b.log(`[transmuxer.ts]: Flushed fragment ${n.sn}${n.part>-1?" p: "+n.part:""} of level ${n.level}`);const E=this.remuxer.remux(r,i,s,u,p,f,!0,this.id);e.push({remuxResult:E,chunkMeta:n}),n.transmuxing.executeEnd=m()}resetInitialTimestamp(e){const{demuxer:t,remuxer:n}=this;!t||!n||(t.resetTimeStamp(e),n.resetTimeStamp(e))}resetContiguity(){const{demuxer:e,remuxer:t}=this;!e||!t||(e.resetContiguity(),t.resetNextTimestamp())}resetInitSegment(e,t,n,r,i){const{demuxer:s,remuxer:u}=this;!s||!u||(s.resetInitSegment(e,t,n,r),u.resetInitSegment(e,t,n,i))}destroy(){this.demuxer&&(this.demuxer.destroy(),this.demuxer=void 0),this.remuxer&&(this.remuxer.destroy(),this.remuxer=void 0)}transmux(e,t,n,r,i){let s;return t&&t.method==="SAMPLE-AES"?s=this.transmuxSampleAes(e,t,n,r,i):s=this.transmuxUnencrypted(e,n,r,i),s}transmuxUnencrypted(e,t,n,r){const{audioTrack:i,videoTrack:s,id3Track:u,textTrack:f}=this.demuxer.demux(e,t,!1,!this.config.progressive);return{remuxResult:this.remuxer.remux(i,s,u,f,t,n,!1,this.id),chunkMeta:r}}transmuxSampleAes(e,t,n,r,i){return this.demuxer.demuxSampleAes(e,t,n).then(s=>({remuxResult:this.remuxer.remux(s.audioTrack,s.videoTrack,s.id3Track,s.textTrack,n,r,!1,this.id),chunkMeta:i}))}configureTransmuxer(e){const{config:t,observer:n,typeSupported:r,vendor:i}=this;let s;for(let G=0,ue=I.length;G<ue;G++){var u;if((u=I[G].demux)!=null&&u.probe(e)){s=I[G];break}}if(!s)return new Error("Failed to find demuxer by probing fragment data");const f=this.demuxer,p=this.remuxer,E=s.remux,R=s.demux;(!p||!(p instanceof E))&&(this.remuxer=new E(n,t,r,i)),(!f||!(f instanceof R))&&(this.demuxer=new R(n,t,r),this.probe=R.probe)}needsProbing(e,t){return!this.demuxer||!this.remuxer||e||t}getDecrypter(){let e=this.decrypter;return e||(e=this.decrypter=new hs(this.config)),e}}function Ee(a,e){let t=null;return a.byteLength>0&&(e==null?void 0:e.key)!=null&&e.iv!==null&&e.method!=null&&(t=e),t}const Oe=a=>({remuxResult:{},chunkMeta:a});function Ke(a){return"then"in a&&a.then instanceof Function}class st{constructor(e,t,n,r,i){this.audioCodec=void 0,this.videoCodec=void 0,this.initSegmentData=void 0,this.duration=void 0,this.defaultInitPts=void 0,this.audioCodec=e,this.videoCodec=t,this.initSegmentData=n,this.duration=r,this.defaultInitPts=i||null}}class _t{constructor(e,t,n,r,i,s){this.discontinuity=void 0,this.contiguous=void 0,this.accurateTimeOffset=void 0,this.trackSwitch=void 0,this.timeOffset=void 0,this.initSegmentChange=void 0,this.discontinuity=e,this.contiguous=t,this.accurateTimeOffset=n,this.trackSwitch=r,this.timeOffset=i,this.initSegmentChange=s}}var Bt={exports:{}};(function(a){var e=Object.prototype.hasOwnProperty,t="~";function n(){}Object.create&&(n.prototype=Object.create(null),new n().__proto__||(t=!1));function r(f,p,E){this.fn=f,this.context=p,this.once=E||!1}function i(f,p,E,R,G){if(typeof E!="function")throw new TypeError("The listener must be a function");var ue=new r(E,R||f,G),se=t?t+p:p;return f._events[se]?f._events[se].fn?f._events[se]=[f._events[se],ue]:f._events[se].push(ue):(f._events[se]=ue,f._eventsCount++),f}function s(f,p){--f._eventsCount===0?f._events=new n:delete f._events[p]}function u(){this._events=new n,this._eventsCount=0}u.prototype.eventNames=function(){var p=[],E,R;if(this._eventsCount===0)return p;for(R in E=this._events)e.call(E,R)&&p.push(t?R.slice(1):R);return Object.getOwnPropertySymbols?p.concat(Object.getOwnPropertySymbols(E)):p},u.prototype.listeners=function(p){var E=t?t+p:p,R=this._events[E];if(!R)return[];if(R.fn)return[R.fn];for(var G=0,ue=R.length,se=new Array(ue);G<ue;G++)se[G]=R[G].fn;return se},u.prototype.listenerCount=function(p){var E=t?t+p:p,R=this._events[E];return R?R.fn?1:R.length:0},u.prototype.emit=function(p,E,R,G,ue,se){var ge=t?t+p:p;if(!this._events[ge])return!1;var Ae=this._events[ge],Ve=arguments.length,vt,pt;if(Ae.fn){switch(Ae.once&&this.removeListener(p,Ae.fn,void 0,!0),Ve){case 1:return Ae.fn.call(Ae.context),!0;case 2:return Ae.fn.call(Ae.context,E),!0;case 3:return Ae.fn.call(Ae.context,E,R),!0;case 4:return Ae.fn.call(Ae.context,E,R,G),!0;case 5:return Ae.fn.call(Ae.context,E,R,G,ue),!0;case 6:return Ae.fn.call(Ae.context,E,R,G,ue,se),!0}for(pt=1,vt=new Array(Ve-1);pt<Ve;pt++)vt[pt-1]=arguments[pt];Ae.fn.apply(Ae.context,vt)}else{var $t=Ae.length,St;for(pt=0;pt<$t;pt++)switch(Ae[pt].once&&this.removeListener(p,Ae[pt].fn,void 0,!0),Ve){case 1:Ae[pt].fn.call(Ae[pt].context);break;case 2:Ae[pt].fn.call(Ae[pt].context,E);break;case 3:Ae[pt].fn.call(Ae[pt].context,E,R);break;case 4:Ae[pt].fn.call(Ae[pt].context,E,R,G);break;default:if(!vt)for(St=1,vt=new Array(Ve-1);St<Ve;St++)vt[St-1]=arguments[St];Ae[pt].fn.apply(Ae[pt].context,vt)}}return!0},u.prototype.on=function(p,E,R){return i(this,p,E,R,!1)},u.prototype.once=function(p,E,R){return i(this,p,E,R,!0)},u.prototype.removeListener=function(p,E,R,G){var ue=t?t+p:p;if(!this._events[ue])return this;if(!E)return s(this,ue),this;var se=this._events[ue];if(se.fn)se.fn===E&&(!G||se.once)&&(!R||se.context===R)&&s(this,ue);else{for(var ge=0,Ae=[],Ve=se.length;ge<Ve;ge++)(se[ge].fn!==E||G&&!se[ge].once||R&&se[ge].context!==R)&&Ae.push(se[ge]);Ae.length?this._events[ue]=Ae.length===1?Ae[0]:Ae:s(this,ue)}return this},u.prototype.removeAllListeners=function(p){var E;return p?(E=t?t+p:p,this._events[E]&&s(this,E)):(this._events=new n,this._eventsCount=0),this},u.prototype.off=u.prototype.removeListener,u.prototype.addListener=u.prototype.on,u.prefixed=t,u.EventEmitter=u,a.exports=u})(Bt);var qt=Bt.exports,fn=T(qt);class Sn{constructor(e,t,n,r){this.error=null,this.hls=void 0,this.id=void 0,this.observer=void 0,this.frag=null,this.part=null,this.useWorker=void 0,this.workerContext=null,this.onwmsg=void 0,this.transmuxer=null,this.onTransmuxComplete=void 0,this.onFlush=void 0;const i=e.config;this.hls=e,this.id=t,this.useWorker=!!i.enableWorker,this.onTransmuxComplete=n,this.onFlush=r;const s=(p,E)=>{E=E||{},E.frag=this.frag,E.id=this.id,p===c.ERROR&&(this.error=E.error),this.hls.trigger(p,E)};this.observer=new fn,this.observer.on(c.FRAG_DECRYPTED,s),this.observer.on(c.ERROR,s);const u=zn(i.preferManagedMediaSource)||{isTypeSupported:()=>!1},f={mpeg:u.isTypeSupported("audio/mpeg"),mp3:u.isTypeSupported('audio/mp4; codecs="mp3"'),ac3:u.isTypeSupported('audio/mp4; codecs="ac-3"')};if(this.useWorker&&typeof Worker!="undefined"&&(i.workerPath||ba())){try{i.workerPath?(b.log(`loading Web Worker ${i.workerPath} for "${t}"`),this.workerContext=ra(i.workerPath)):(b.log(`injecting Web Worker for "${t}"`),this.workerContext=na()),this.onwmsg=R=>this.onWorkerMessage(R);const{worker:E}=this.workerContext;E.addEventListener("message",this.onwmsg),E.onerror=R=>{const G=new Error(`${R.message} (${R.filename}:${R.lineno})`);i.enableWorker=!1,b.warn(`Error in "${t}" Web Worker, fallback to inline`),this.hls.trigger(c.ERROR,{type:S.OTHER_ERROR,details:y.INTERNAL_EXCEPTION,fatal:!1,event:"demuxerWorker",error:G})},E.postMessage({cmd:"init",typeSupported:f,vendor:"",id:t,config:JSON.stringify(i)})}catch(E){b.warn(`Error setting up "${t}" Web Worker, fallback to inline`,E),this.resetWorker(),this.error=null,this.transmuxer=new H(this.observer,f,i,"",t)}return}this.transmuxer=new H(this.observer,f,i,"",t)}resetWorker(){if(this.workerContext){const{worker:e,objectURL:t}=this.workerContext;t&&self.URL.revokeObjectURL(t),e.removeEventListener("message",this.onwmsg),e.onerror=null,e.terminate(),this.workerContext=null}}destroy(){if(this.workerContext)this.resetWorker(),this.onwmsg=void 0;else{const t=this.transmuxer;t&&(t.destroy(),this.transmuxer=null)}const e=this.observer;e&&e.removeAllListeners(),this.frag=null,this.observer=null,this.hls=null}push(e,t,n,r,i,s,u,f,p,E){var R,G;p.transmuxing.start=self.performance.now();const{transmuxer:ue}=this,se=s?s.start:i.start,ge=i.decryptdata,Ae=this.frag,Ve=!(Ae&&i.cc===Ae.cc),vt=!(Ae&&p.level===Ae.level),pt=Ae?p.sn-Ae.sn:-1,$t=this.part?p.part-this.part.index:-1,St=pt===0&&p.id>1&&p.id===(Ae==null?void 0:Ae.stats.chunkCount),an=!vt&&(pt===1||pt===0&&($t===1||St&&$t<=0)),zt=self.performance.now();(vt||pt||i.stats.parsing.start===0)&&(i.stats.parsing.start=zt),s&&($t||!an)&&(s.stats.parsing.start=zt);const bn=!(Ae&&((R=i.initSegment)==null?void 0:R.url)===((G=Ae.initSegment)==null?void 0:G.url)),Fn=new _t(Ve,an,f,vt,se,bn);if(!an||Ve||bn){b.log(`[transmuxer-interface, ${i.type}]: Starting new transmux session for sn: ${p.sn} p: ${p.part} level: ${p.level} id: ${p.id}
discontinuity: ${Ve}
trackSwitch: ${vt}
contiguous: ${an}
accurateTimeOffset: ${f}
timeOffset: ${se}
initSegmentChange: ${bn}`);const en=new st(n,r,t,u,E);this.configureTransmuxer(en)}if(this.frag=i,this.part=s,this.workerContext)this.workerContext.worker.postMessage({cmd:"demux",data:e,decryptdata:ge,chunkMeta:p,state:Fn},e instanceof ArrayBuffer?[e]:[]);else if(ue){const en=ue.push(e,ge,p,Fn);Ke(en)?(ue.async=!0,en.then(xn=>{this.handleTransmuxComplete(xn)}).catch(xn=>{this.transmuxerError(xn,p,"transmuxer-interface push error")})):(ue.async=!1,this.handleTransmuxComplete(en))}}flush(e){e.transmuxing.start=self.performance.now();const{transmuxer:t}=this;if(this.workerContext)this.workerContext.worker.postMessage({cmd:"flush",chunkMeta:e});else if(t){let n=t.flush(e);Ke(n)||t.async?(Ke(n)||(n=Promise.resolve(n)),n.then(i=>{this.handleFlushResult(i,e)}).catch(i=>{this.transmuxerError(i,e,"transmuxer-interface flush error")})):this.handleFlushResult(n,e)}}transmuxerError(e,t,n){this.hls&&(this.error=e,this.hls.trigger(c.ERROR,{type:S.MEDIA_ERROR,details:y.FRAG_PARSING_ERROR,chunkMeta:t,frag:this.frag||void 0,fatal:!1,error:e,err:e,reason:n}))}handleFlushResult(e,t){e.forEach(n=>{this.handleTransmuxComplete(n)}),this.onFlush(t)}onWorkerMessage(e){const t=e.data;if(!(t!=null&&t.event)){b.warn(`worker message received with no ${t?"event name":"data"}`);return}const n=this.hls;if(this.hls)switch(t.event){case"init":{var r;const i=(r=this.workerContext)==null?void 0:r.objectURL;i&&self.URL.revokeObjectURL(i);break}case"transmuxComplete":{this.handleTransmuxComplete(t.data);break}case"flush":{this.onFlush(t.data);break}case"workerLog":b[t.data.logType]&&b[t.data.logType](t.data.message);break;default:{t.data=t.data||{},t.data.frag=this.frag,t.data.id=this.id,n.trigger(t.event,t.data);break}}}configureTransmuxer(e){const{transmuxer:t}=this;this.workerContext?this.workerContext.worker.postMessage({cmd:"configure",config:e}):t&&t.configure(e)}handleTransmuxComplete(e){e.chunkMeta.transmuxing.end=self.performance.now(),this.onTransmuxComplete(e)}}const Kn=100;class fr extends bs{constructor(e,t,n){super(e,t,n,"[audio-stream-controller]",Ge.AUDIO),this.videoBuffer=null,this.videoTrackCC=-1,this.waitingVideoCC=-1,this.bufferedTrack=null,this.switchingTrack=null,this.trackId=-1,this.waitingData=null,this.mainDetails=null,this.flushing=!1,this.bufferFlushed=!1,this.cachedTrackLoadedData=null,this._registerListeners()}onHandlerDestroying(){this._unregisterListeners(),super.onHandlerDestroying(),this.mainDetails=null,this.bufferedTrack=null,this.switchingTrack=null}_registerListeners(){const{hls:e}=this;e.on(c.MEDIA_ATTACHED,this.onMediaAttached,this),e.on(c.MEDIA_DETACHING,this.onMediaDetaching,this),e.on(c.MANIFEST_LOADING,this.onManifestLoading,this),e.on(c.LEVEL_LOADED,this.onLevelLoaded,this),e.on(c.AUDIO_TRACKS_UPDATED,this.onAudioTracksUpdated,this),e.on(c.AUDIO_TRACK_SWITCHING,this.onAudioTrackSwitching,this),e.on(c.AUDIO_TRACK_LOADED,this.onAudioTrackLoaded,this),e.on(c.ERROR,this.onError,this),e.on(c.BUFFER_RESET,this.onBufferReset,this),e.on(c.BUFFER_CREATED,this.onBufferCreated,this),e.on(c.BUFFER_FLUSHING,this.onBufferFlushing,this),e.on(c.BUFFER_FLUSHED,this.onBufferFlushed,this),e.on(c.INIT_PTS_FOUND,this.onInitPtsFound,this),e.on(c.FRAG_BUFFERED,this.onFragBuffered,this)}_unregisterListeners(){const{hls:e}=this;e.off(c.MEDIA_ATTACHED,this.onMediaAttached,this),e.off(c.MEDIA_DETACHING,this.onMediaDetaching,this),e.off(c.MANIFEST_LOADING,this.onManifestLoading,this),e.off(c.LEVEL_LOADED,this.onLevelLoaded,this),e.off(c.AUDIO_TRACKS_UPDATED,this.onAudioTracksUpdated,this),e.off(c.AUDIO_TRACK_SWITCHING,this.onAudioTrackSwitching,this),e.off(c.AUDIO_TRACK_LOADED,this.onAudioTrackLoaded,this),e.off(c.ERROR,this.onError,this),e.off(c.BUFFER_RESET,this.onBufferReset,this),e.off(c.BUFFER_CREATED,this.onBufferCreated,this),e.off(c.BUFFER_FLUSHING,this.onBufferFlushing,this),e.off(c.BUFFER_FLUSHED,this.onBufferFlushed,this),e.off(c.INIT_PTS_FOUND,this.onInitPtsFound,this),e.off(c.FRAG_BUFFERED,this.onFragBuffered,this)}onInitPtsFound(e,{frag:t,id:n,initPTS:r,timescale:i}){if(n==="main"){const s=t.cc;this.initPTS[t.cc]={baseTime:r,timescale:i},this.log(`InitPTS for cc: ${s} found from main: ${r}`),this.videoTrackCC=s,this.state===Xt.WAITING_INIT_PTS&&this.tick()}}startLoad(e){if(!this.levels){this.startPosition=e,this.state=Xt.STOPPED;return}const t=this.lastCurrentTime;this.stopLoad(),this.setInterval(Kn),t>0&&e===-1?(this.log(`Override startPosition with lastCurrentTime @${t.toFixed(3)}`),e=t,this.state=Xt.IDLE):(this.loadedmetadata=!1,this.state=Xt.WAITING_TRACK),this.nextLoadPosition=this.startPosition=this.lastCurrentTime=e,this.tick()}doTick(){switch(this.state){case Xt.IDLE:this.doTickIdle();break;case Xt.WAITING_TRACK:{var e;const{levels:n,trackId:r}=this,i=n==null||(e=n[r])==null?void 0:e.details;if(i){if(this.waitForCdnTuneIn(i))break;this.state=Xt.WAITING_INIT_PTS}break}case Xt.FRAG_LOADING_WAITING_RETRY:{var t;const n=performance.now(),r=this.retryDate;if(!r||n>=r||(t=this.media)!=null&&t.seeking){const{levels:i,trackId:s}=this;this.log("RetryDate reached, switch back to IDLE state"),this.resetStartWhenNotLoaded((i==null?void 0:i[s])||null),this.state=Xt.IDLE}break}case Xt.WAITING_INIT_PTS:{const n=this.waitingData;if(n){const{frag:r,part:i,cache:s,complete:u}=n;if(this.initPTS[r.cc]!==void 0){this.waitingData=null,this.waitingVideoCC=-1,this.state=Xt.FRAG_LOADING;const f=s.flush(),p={frag:r,part:i,payload:f,networkDetails:null};this._handleFragmentLoadProgress(p),u&&super._handleFragmentLoadComplete(p)}else if(this.videoTrackCC!==this.waitingVideoCC)this.log(`Waiting fragment cc (${r.cc}) cancelled because video is at cc ${this.videoTrackCC}`),this.clearWaitingFragment();else{const f=this.getLoadPosition(),p=Or.bufferInfo(this.mediaBuffer,f,this.config.maxBufferHole);Ni(p.end,this.config.maxFragLookUpTolerance,r)<0&&(this.log(`Waiting fragment cc (${r.cc}) @ ${r.start} cancelled because another fragment at ${p.end} is needed`),this.clearWaitingFragment())}}else this.state=Xt.IDLE}}this.onTickEnd()}clearWaitingFragment(){const e=this.waitingData;e&&(this.fragmentTracker.removeFragment(e.frag),this.waitingData=null,this.waitingVideoCC=-1,this.state=Xt.IDLE)}resetLoadingState(){this.clearWaitingFragment(),super.resetLoadingState()}onTickEnd(){const{media:e}=this;e!=null&&e.readyState&&(this.lastCurrentTime=e.currentTime)}doTickIdle(){const{hls:e,levels:t,media:n,trackId:r}=this,i=e.config;if(!this.buffering||!n&&(this.startFragRequested||!i.startFragPrefetch)||!(t!=null&&t[r]))return;const s=t[r],u=s.details;if(!u||u.live&&this.levelLastLoaded!==s||this.waitForCdnTuneIn(u)){this.state=Xt.WAITING_TRACK;return}const f=this.mediaBuffer?this.mediaBuffer:this.media;this.bufferFlushed&&f&&(this.bufferFlushed=!1,this.afterBufferFlushed(f,Z.AUDIO,Ge.AUDIO));const p=this.getFwdBufferInfo(f,Ge.AUDIO);if(p===null)return;if(!this.switchingTrack&&this._streamEnded(p,u)){e.trigger(c.BUFFER_EOS,{type:"audio"}),this.state=Xt.ENDED;return}const E=this.getFwdBufferInfo(this.videoBuffer?this.videoBuffer:this.media,Ge.MAIN),R=p.len,G=this.getMaxBufferLength(E==null?void 0:E.len),ue=u.fragments,se=ue[0].start,ge=this.getLoadPosition(),Ae=this.flushing?ge:p.end;if(this.switchingTrack&&n){const $t=ge;u.PTSKnown&&$t<se&&(p.end>se||p.nextStart)&&(this.log("Alt audio track ahead of main track, seek to start of alt audio track"),n.currentTime=se+.05)}if(R>=G&&!this.switchingTrack&&Ae<ue[ue.length-1].start)return;let Ve=this.getNextFragment(Ae,u),vt=!1;if(Ve&&this.isLoopLoading(Ve,Ae)&&(vt=!!Ve.gap,Ve=this.getNextFragmentLoopLoading(Ve,u,p,Ge.MAIN,G)),!Ve){this.bufferFlushed=!0;return}const pt=E&&Ve.start>E.end+u.targetduration;if(pt||!(E!=null&&E.len)&&p.len){const $t=this.getAppendedFrag(Ve.start,Ge.MAIN);if($t===null||(vt||(vt=!!$t.gap||!!pt&&E.len===0),pt&&!vt||vt&&p.nextStart&&p.nextStart<$t.end))return}this.loadFragment(Ve,s,Ae)}getMaxBufferLength(e){const t=super.getMaxBufferLength();return e?Math.min(Math.max(t,e),this.config.maxMaxBufferLength):t}onMediaDetaching(){this.videoBuffer=null,this.bufferFlushed=this.flushing=!1,super.onMediaDetaching()}onAudioTracksUpdated(e,{audioTracks:t}){this.resetTransmuxer(),this.levels=t.map(n=>new kr(n))}onAudioTrackSwitching(e,t){const n=!!t.url;this.trackId=t.id;const{fragCurrent:r}=this;r&&(r.abortRequests(),this.removeUnbufferedFrags(r.start)),this.resetLoadingState(),n?this.setInterval(Kn):this.resetTransmuxer(),n?(this.switchingTrack=t,this.state=Xt.IDLE,this.flushAudioIfNeeded(t)):(this.switchingTrack=null,this.bufferedTrack=t,this.state=Xt.STOPPED),this.tick()}onManifestLoading(){this.fragmentTracker.removeAllFragments(),this.startPosition=this.lastCurrentTime=0,this.bufferFlushed=this.flushing=!1,this.levels=this.mainDetails=this.waitingData=this.bufferedTrack=this.cachedTrackLoadedData=this.switchingTrack=null,this.startFragRequested=!1,this.trackId=this.videoTrackCC=this.waitingVideoCC=-1}onLevelLoaded(e,t){this.mainDetails=t.details,this.cachedTrackLoadedData!==null&&(this.hls.trigger(c.AUDIO_TRACK_LOADED,this.cachedTrackLoadedData),this.cachedTrackLoadedData=null)}onAudioTrackLoaded(e,t){var n;if(this.mainDetails==null){this.cachedTrackLoadedData=t;return}const{levels:r}=this,{details:i,id:s}=t;if(!r){this.warn(`Audio tracks were reset while loading level ${s}`);return}this.log(`Audio track ${s} loaded [${i.startSN},${i.endSN}]${i.lastPartSn?`[part-${i.lastPartSn}-${i.lastPartIndex}]`:""},duration:${i.totalduration}`);const u=r[s];let f=0;if(i.live||(n=u.details)!=null&&n.live){this.checkLiveUpdate(i);const E=this.mainDetails;if(i.deltaUpdateFailed||!E)return;if(!u.details&&i.hasProgramDateTime&&E.hasProgramDateTime)$i(i,E),f=i.fragments[0].start;else{var p;f=this.alignPlaylists(i,u.details,(p=this.levelLastLoaded)==null?void 0:p.details)}}u.details=i,this.levelLastLoaded=u,!this.startFragRequested&&(this.mainDetails||!i.live)&&this.setStartPosition(this.mainDetails||i,f),this.state===Xt.WAITING_TRACK&&!this.waitForCdnTuneIn(i)&&(this.state=Xt.IDLE),this.tick()}_handleFragmentLoadProgress(e){var t;const{frag:n,part:r,payload:i}=e,{config:s,trackId:u,levels:f}=this;if(!f){this.warn(`Audio tracks were reset while fragment load was in progress. Fragment ${n.sn} of level ${n.level} will not be buffered`);return}const p=f[u];if(!p){this.warn("Audio track is undefined on fragment load progress");return}const E=p.details;if(!E){this.warn("Audio track details undefined on fragment load progress"),this.removeUnbufferedFrags(n.start);return}const R=s.defaultAudioCodec||p.audioCodec||"mp4a.40.2";let G=this.transmuxer;G||(G=this.transmuxer=new Sn(this.hls,Ge.AUDIO,this._handleTransmuxComplete.bind(this),this._handleTransmuxerFlush.bind(this)));const ue=this.initPTS[n.cc],se=(t=n.initSegment)==null?void 0:t.data;if(ue!==void 0){const Ae=r?r.index:-1,Ve=Ae!==-1,vt=new gs(n.level,n.sn,n.stats.chunkCount,i.byteLength,Ae,Ve);G.push(i,se,R,"",n,r,E.totalduration,!1,vt,ue)}else{this.log(`Unknown video PTS for cc ${n.cc}, waiting for video PTS before demuxing audio frag ${n.sn} of [${E.startSN} ,${E.endSN}],track ${u}`);const{cache:ge}=this.waitingData=this.waitingData||{frag:n,part:r,cache:new ta,complete:!1};ge.push(new Uint8Array(i)),this.waitingVideoCC=this.videoTrackCC,this.state=Xt.WAITING_INIT_PTS}}_handleFragmentLoadComplete(e){if(this.waitingData){this.waitingData.complete=!0;return}super._handleFragmentLoadComplete(e)}onBufferReset(){this.mediaBuffer=this.videoBuffer=null,this.loadedmetadata=!1}onBufferCreated(e,t){const n=t.tracks.audio;n&&(this.mediaBuffer=n.buffer||null),t.tracks.video&&(this.videoBuffer=t.tracks.video.buffer||null)}onFragBuffered(e,t){const{frag:n,part:r}=t;if(n.type!==Ge.AUDIO){if(!this.loadedmetadata&&n.type===Ge.MAIN){const i=this.videoBuffer||this.media;i&&Or.getBuffered(i).length&&(this.loadedmetadata=!0)}return}if(this.fragContextChanged(n)){this.warn(`Fragment ${n.sn}${r?" p: "+r.index:""} of level ${n.level} finished buffering, but was aborted. state: ${this.state}, audioSwitch: ${this.switchingTrack?this.switchingTrack.name:"false"}`);return}if(n.sn!=="initSegment"){this.fragPrevious=n;const i=this.switchingTrack;i&&(this.bufferedTrack=i,this.switchingTrack=null,this.hls.trigger(c.AUDIO_TRACK_SWITCHED,ve({},i)))}this.fragBufferedComplete(n,r)}onError(e,t){var n;if(t.fatal){this.state=Xt.ERROR;return}switch(t.details){case y.FRAG_GAP:case y.FRAG_PARSING_ERROR:case y.FRAG_DECRYPT_ERROR:case y.FRAG_LOAD_ERROR:case y.FRAG_LOAD_TIMEOUT:case y.KEY_LOAD_ERROR:case y.KEY_LOAD_TIMEOUT:this.onFragmentOrKeyLoadError(Ge.AUDIO,t);break;case y.AUDIO_TRACK_LOAD_ERROR:case y.AUDIO_TRACK_LOAD_TIMEOUT:case y.LEVEL_PARSING_ERROR:!t.levelRetry&&this.state===Xt.WAITING_TRACK&&((n=t.context)==null?void 0:n.type)===sn.AUDIO_TRACK&&(this.state=Xt.IDLE);break;case y.BUFFER_APPEND_ERROR:case y.BUFFER_FULL_ERROR:if(!t.parent||t.parent!=="audio")return;if(t.details===y.BUFFER_APPEND_ERROR){this.resetLoadingState();return}this.reduceLengthAndFlushBuffer(t)&&(this.bufferedTrack=null,super.flushMainBuffer(0,Number.POSITIVE_INFINITY,"audio"));break;case y.INTERNAL_EXCEPTION:this.recoverWorkerError(t);break}}onBufferFlushing(e,{type:t}){t!==Z.VIDEO&&(this.flushing=!0)}onBufferFlushed(e,{type:t}){if(t!==Z.VIDEO){this.flushing=!1,this.bufferFlushed=!0,this.state===Xt.ENDED&&(this.state=Xt.IDLE);const n=this.mediaBuffer||this.media;n&&(this.afterBufferFlushed(n,t,Ge.AUDIO),this.tick())}}_handleTransmuxComplete(e){var t;const n="audio",{hls:r}=this,{remuxResult:i,chunkMeta:s}=e,u=this.getCurrentContext(s);if(!u){this.resetWhenMissingContext(s);return}const{frag:f,part:p,level:E}=u,{details:R}=E,{audio:G,text:ue,id3:se,initSegment:ge}=i;if(this.fragContextChanged(f)||!R){this.fragmentTracker.removeFragment(f);return}if(this.state=Xt.PARSING,this.switchingTrack&&G&&this.completeAudioSwitch(this.switchingTrack),ge!=null&&ge.tracks){const Ae=f.initSegment||f;this._bufferInitSegment(E,ge.tracks,Ae,s),r.trigger(c.FRAG_PARSING_INIT_SEGMENT,{frag:Ae,id:n,tracks:ge.tracks})}if(G){const{startPTS:Ae,endPTS:Ve,startDTS:vt,endDTS:pt}=G;p&&(p.elementaryStreams[Z.AUDIO]={startPTS:Ae,endPTS:Ve,startDTS:vt,endDTS:pt}),f.setElementaryStreamInfo(Z.AUDIO,Ae,Ve,vt,pt),this.bufferFragmentData(G,f,p,s)}if(se!=null&&(t=se.samples)!=null&&t.length){const Ae=o({id:n,frag:f,details:R},se);r.trigger(c.FRAG_PARSING_METADATA,Ae)}if(ue){const Ae=o({id:n,frag:f,details:R},ue);r.trigger(c.FRAG_PARSING_USERDATA,Ae)}}_bufferInitSegment(e,t,n,r){if(this.state!==Xt.PARSING)return;t.video&&delete t.video;const i=t.audio;if(!i)return;i.id="audio";const s=e.audioCodec;this.log(`Init audio buffer, container:${i.container}, codecs[level/parsed]=[${s}/${i.codec}]`),s&&s.split(",").length===1&&(i.levelCodec=s),this.hls.trigger(c.BUFFER_CODECS,t);const u=i.initSegment;if(u!=null&&u.byteLength){const f={type:"audio",frag:n,part:null,chunkMeta:r,parent:n.type,data:u};this.hls.trigger(c.BUFFER_APPENDING,f)}this.tickImmediate()}loadFragment(e,t,n){const r=this.fragmentTracker.getState(e);if(this.fragCurrent=e,this.switchingTrack||r===Ir.NOT_LOADED||r===Ir.PARTIAL){var i;if(e.sn==="initSegment")this._loadInitSegment(e,t);else if((i=t.details)!=null&&i.live&&!this.initPTS[e.cc]){this.log(`Waiting for video PTS in continuity counter ${e.cc} of live stream before loading audio fragment ${e.sn} of level ${this.trackId}`),this.state=Xt.WAITING_INIT_PTS;const s=this.mainDetails;s&&s.fragments[0].start!==t.details.fragments[0].start&&$i(t.details,s)}else this.startFragRequested=!0,super.loadFragment(e,t,n)}else this.clearTrackerIfNeeded(e)}flushAudioIfNeeded(e){if(this.media&&this.bufferedTrack){const{name:t,lang:n,assocLang:r,characteristics:i,audioCodec:s,channels:u}=this.bufferedTrack;Ti({name:t,lang:n,assocLang:r,characteristics:i,audioCodec:s,channels:u},e,tr)||(this.log("Switching audio track : flushing all audio"),super.flushMainBuffer(0,Number.POSITIVE_INFINITY,"audio"),this.bufferedTrack=null)}}completeAudioSwitch(e){const{hls:t}=this;this.flushAudioIfNeeded(e),this.bufferedTrack=e,this.switchingTrack=null,t.trigger(c.AUDIO_TRACK_SWITCHED,ve({},e))}}function pr(a,e){if(a.length!==e.length)return!1;for(let t=0;t<a.length;t++)if(!mr(a[t].attrs,e[t].attrs))return!1;return!0}function mr(a,e,t){const n=a["STABLE-RENDITION-ID"];return n&&!t?n===e["STABLE-RENDITION-ID"]:!(t||["LANGUAGE","NAME","CHARACTERISTICS","AUTOSELECT","DEFAULT","FORCED","ASSOC-LANGUAGE"]).some(r=>a[r]!==e[r])}function jr(a,e){return e.label.toLowerCase()===a.name.toLowerCase()&&(!e.language||e.language.toLowerCase()===(a.lang||"").toLowerCase())}class Kr extends Sr{constructor(e){super(e,"[audio-track-controller]"),this.tracks=[],this.groupIds=null,this.tracksInGroup=[],this.trackId=-1,this.currentTrack=null,this.selectDefaultTrack=!0,this.registerListeners()}registerListeners(){const{hls:e}=this;e.on(c.MANIFEST_LOADING,this.onManifestLoading,this),e.on(c.MANIFEST_PARSED,this.onManifestParsed,this),e.on(c.LEVEL_LOADING,this.onLevelLoading,this),e.on(c.LEVEL_SWITCHING,this.onLevelSwitching,this),e.on(c.AUDIO_TRACK_LOADED,this.onAudioTrackLoaded,this),e.on(c.ERROR,this.onError,this)}unregisterListeners(){const{hls:e}=this;e.off(c.MANIFEST_LOADING,this.onManifestLoading,this),e.off(c.MANIFEST_PARSED,this.onManifestParsed,this),e.off(c.LEVEL_LOADING,this.onLevelLoading,this),e.off(c.LEVEL_SWITCHING,this.onLevelSwitching,this),e.off(c.AUDIO_TRACK_LOADED,this.onAudioTrackLoaded,this),e.off(c.ERROR,this.onError,this)}destroy(){this.unregisterListeners(),this.tracks.length=0,this.tracksInGroup.length=0,this.currentTrack=null,super.destroy()}onManifestLoading(){this.tracks=[],this.tracksInGroup=[],this.groupIds=null,this.currentTrack=null,this.trackId=-1,this.selectDefaultTrack=!0}onManifestParsed(e,t){this.tracks=t.audioTracks||[]}onAudioTrackLoaded(e,t){const{id:n,groupId:r,details:i}=t,s=this.tracksInGroup[n];if(!s||s.groupId!==r){this.warn(`Audio track with id:${n} and group:${r} not found in active group ${s==null?void 0:s.groupId}`);return}const u=s.details;s.details=t.details,this.log(`Audio track ${n} "${s.name}" lang:${s.lang} group:${r} loaded [${i.startSN}-${i.endSN}]`),n===this.trackId&&this.playlistLoaded(n,t,u)}onLevelLoading(e,t){this.switchLevel(t.level)}onLevelSwitching(e,t){this.switchLevel(t.level)}switchLevel(e){const t=this.hls.levels[e];if(!t)return;const n=t.audioGroups||null,r=this.groupIds;let i=this.currentTrack;if(!n||(r==null?void 0:r.length)!==(n==null?void 0:n.length)||n!=null&&n.some(u=>(r==null?void 0:r.indexOf(u))===-1)){this.groupIds=n,this.trackId=-1,this.currentTrack=null;const u=this.tracks.filter(G=>!n||n.indexOf(G.groupId)!==-1);if(u.length)this.selectDefaultTrack&&!u.some(G=>G.default)&&(this.selectDefaultTrack=!1),u.forEach((G,ue)=>{G.id=ue});else if(!i&&!this.tracksInGroup.length)return;this.tracksInGroup=u;const f=this.hls.config.audioPreference;if(!i&&f){const G=Ei(f,u,tr);if(G>-1)i=u[G];else{const ue=Ei(f,this.tracks);i=this.tracks[ue]}}let p=this.findTrackId(i);p===-1&&i&&(p=this.findTrackId(null));const E={audioTracks:u};this.log(`Updating audio tracks, ${u.length} track(s) found in group(s): ${n==null?void 0:n.join(",")}`),this.hls.trigger(c.AUDIO_TRACKS_UPDATED,E);const R=this.trackId;if(p!==-1&&R===-1)this.setAudioTrack(p);else if(u.length&&R===-1){var s;const G=new Error(`No audio track selected for current audio group-ID(s): ${(s=this.groupIds)==null?void 0:s.join(",")} track count: ${u.length}`);this.warn(G.message),this.hls.trigger(c.ERROR,{type:S.MEDIA_ERROR,details:y.AUDIO_TRACK_LOAD_ERROR,fatal:!0,error:G})}}else this.shouldReloadPlaylist(i)&&this.setAudioTrack(this.trackId)}onError(e,t){t.fatal||!t.context||t.context.type===sn.AUDIO_TRACK&&t.context.id===this.trackId&&(!this.groupIds||this.groupIds.indexOf(t.context.groupId)!==-1)&&(this.requestScheduled=-1,this.checkRetry(t))}get allAudioTracks(){return this.tracks}get audioTracks(){return this.tracksInGroup}get audioTrack(){return this.trackId}set audioTrack(e){this.selectDefaultTrack=!1,this.setAudioTrack(e)}setAudioOption(e){const t=this.hls;if(t.config.audioPreference=e,e){const n=this.allAudioTracks;if(this.selectDefaultTrack=!1,n.length){const r=this.currentTrack;if(r&&Ti(e,r,tr))return r;const i=Ei(e,this.tracksInGroup,tr);if(i>-1){const s=this.tracksInGroup[i];return this.setAudioTrack(i),s}else if(r){let s=t.loadLevel;s===-1&&(s=t.firstAutoLevel);const u=li(e,t.levels,n,s,tr);if(u===-1)return null;t.nextLoadLevel=u}if(e.channels||e.audioCodec){const s=Ei(e,n);if(s>-1)return n[s]}}}return null}setAudioTrack(e){const t=this.tracksInGroup;if(e<0||e>=t.length){this.warn(`Invalid audio track id: ${e}`);return}this.clearTimer(),this.selectDefaultTrack=!1;const n=this.currentTrack,r=t[e],i=r.details&&!r.details.live;if(e===this.trackId&&r===n&&i||(this.log(`Switching to audio-track ${e} "${r.name}" lang:${r.lang} group:${r.groupId} channels:${r.channels}`),this.trackId=e,this.currentTrack=r,this.hls.trigger(c.AUDIO_TRACK_SWITCHING,ve({},r)),i))return;const s=this.switchParams(r.url,n==null?void 0:n.details,r.details);this.loadPlaylist(s)}findTrackId(e){const t=this.tracksInGroup;for(let n=0;n<t.length;n++){const r=t[n];if(!(this.selectDefaultTrack&&!r.default)&&(!e||Ti(e,r,tr)))return n}if(e){const{name:n,lang:r,assocLang:i,characteristics:s,audioCodec:u,channels:f}=e;for(let p=0;p<t.length;p++){const E=t[p];if(Ti({name:n,lang:r,assocLang:i,characteristics:s,audioCodec:u,channels:f},E,tr))return p}for(let p=0;p<t.length;p++){const E=t[p];if(mr(e.attrs,E.attrs,["LANGUAGE","ASSOC-LANGUAGE","CHARACTERISTICS"]))return p}for(let p=0;p<t.length;p++){const E=t[p];if(mr(e.attrs,E.attrs,["LANGUAGE"]))return p}}return-1}loadPlaylist(e){const t=this.currentTrack;if(this.shouldLoadPlaylist(t)&&t){super.loadPlaylist();const n=t.id,r=t.groupId;let i=t.url;if(e)try{i=e.addDirectives(i)}catch(s){this.warn(`Could not construct new URL with HLS Delivery Directives: ${s}`)}this.log(`loading audio-track playlist ${n} "${t.name}" lang:${t.lang} group:${r}`),this.clearTimer(),this.hls.trigger(c.AUDIO_TRACK_LOADING,{url:i,id:n,groupId:r,deliveryDirectives:e||null})}}}const Jr=500;class ti extends bs{constructor(e,t,n){super(e,t,n,"[subtitle-stream-controller]",Ge.SUBTITLE),this.currentTrackId=-1,this.tracksBuffered=[],this.mainDetails=null,this._registerListeners()}onHandlerDestroying(){this._unregisterListeners(),super.onHandlerDestroying(),this.mainDetails=null}_registerListeners(){const{hls:e}=this;e.on(c.MEDIA_ATTACHED,this.onMediaAttached,this),e.on(c.MEDIA_DETACHING,this.onMediaDetaching,this),e.on(c.MANIFEST_LOADING,this.onManifestLoading,this),e.on(c.LEVEL_LOADED,this.onLevelLoaded,this),e.on(c.ERROR,this.onError,this),e.on(c.SUBTITLE_TRACKS_UPDATED,this.onSubtitleTracksUpdated,this),e.on(c.SUBTITLE_TRACK_SWITCH,this.onSubtitleTrackSwitch,this),e.on(c.SUBTITLE_TRACK_LOADED,this.onSubtitleTrackLoaded,this),e.on(c.SUBTITLE_FRAG_PROCESSED,this.onSubtitleFragProcessed,this),e.on(c.BUFFER_FLUSHING,this.onBufferFlushing,this),e.on(c.FRAG_BUFFERED,this.onFragBuffered,this)}_unregisterListeners(){const{hls:e}=this;e.off(c.MEDIA_ATTACHED,this.onMediaAttached,this),e.off(c.MEDIA_DETACHING,this.onMediaDetaching,this),e.off(c.MANIFEST_LOADING,this.onManifestLoading,this),e.off(c.LEVEL_LOADED,this.onLevelLoaded,this),e.off(c.ERROR,this.onError,this),e.off(c.SUBTITLE_TRACKS_UPDATED,this.onSubtitleTracksUpdated,this),e.off(c.SUBTITLE_TRACK_SWITCH,this.onSubtitleTrackSwitch,this),e.off(c.SUBTITLE_TRACK_LOADED,this.onSubtitleTrackLoaded,this),e.off(c.SUBTITLE_FRAG_PROCESSED,this.onSubtitleFragProcessed,this),e.off(c.BUFFER_FLUSHING,this.onBufferFlushing,this),e.off(c.FRAG_BUFFERED,this.onFragBuffered,this)}startLoad(e){this.stopLoad(),this.state=Xt.IDLE,this.setInterval(Jr),this.nextLoadPosition=this.startPosition=this.lastCurrentTime=e,this.tick()}onManifestLoading(){this.mainDetails=null,this.fragmentTracker.removeAllFragments()}onMediaDetaching(){this.tracksBuffered=[],super.onMediaDetaching()}onLevelLoaded(e,t){this.mainDetails=t.details}onSubtitleFragProcessed(e,t){const{frag:n,success:r}=t;if(this.fragPrevious=n,this.state=Xt.IDLE,!r)return;const i=this.tracksBuffered[this.currentTrackId];if(!i)return;let s;const u=n.start;for(let p=0;p<i.length;p++)if(u>=i[p].start&&u<=i[p].end){s=i[p];break}const f=n.start+n.duration;s?s.end=f:(s={start:u,end:f},i.push(s)),this.fragmentTracker.fragBuffered(n),this.fragBufferedComplete(n,null)}onBufferFlushing(e,t){const{startOffset:n,endOffset:r}=t;if(n===0&&r!==Number.POSITIVE_INFINITY){const i=r-1;if(i<=0)return;t.endOffsetSubtitles=Math.max(0,i),this.tracksBuffered.forEach(s=>{for(let u=0;u<s.length;){if(s[u].end<=i){s.shift();continue}else if(s[u].start<i)s[u].start=i;else break;u++}}),this.fragmentTracker.removeFragmentsInRange(n,i,Ge.SUBTITLE)}}onFragBuffered(e,t){if(!this.loadedmetadata&&t.frag.type===Ge.MAIN){var n;(n=this.media)!=null&&n.buffered.length&&(this.loadedmetadata=!0)}}onError(e,t){const n=t.frag;(n==null?void 0:n.type)===Ge.SUBTITLE&&(t.details===y.FRAG_GAP&&this.fragmentTracker.fragBuffered(n,!0),this.fragCurrent&&this.fragCurrent.abortRequests(),this.state!==Xt.STOPPED&&(this.state=Xt.IDLE))}onSubtitleTracksUpdated(e,{subtitleTracks:t}){if(this.levels&&pr(this.levels,t)){this.levels=t.map(n=>new kr(n));return}this.tracksBuffered=[],this.levels=t.map(n=>{const r=new kr(n);return this.tracksBuffered[r.id]=[],r}),this.fragmentTracker.removeFragmentsInRange(0,Number.POSITIVE_INFINITY,Ge.SUBTITLE),this.fragPrevious=null,this.mediaBuffer=null}onSubtitleTrackSwitch(e,t){var n;if(this.currentTrackId=t.id,!((n=this.levels)!=null&&n.length)||this.currentTrackId===-1){this.clearInterval();return}const r=this.levels[this.currentTrackId];r!=null&&r.details?this.mediaBuffer=this.mediaBufferTimeRanges:this.mediaBuffer=null,r&&this.setInterval(Jr)}onSubtitleTrackLoaded(e,t){var n;const{currentTrackId:r,levels:i}=this,{details:s,id:u}=t;if(!i){this.warn(`Subtitle tracks were reset while loading level ${u}`);return}const f=i[u];if(u>=i.length||!f)return;this.log(`Subtitle track ${u} loaded [${s.startSN},${s.endSN}]${s.lastPartSn?`[part-${s.lastPartSn}-${s.lastPartIndex}]`:""},duration:${s.totalduration}`),this.mediaBuffer=this.mediaBufferTimeRanges;let p=0;if(s.live||(n=f.details)!=null&&n.live){const R=this.mainDetails;if(s.deltaUpdateFailed||!R)return;const G=R.fragments[0];if(!f.details)s.hasProgramDateTime&&R.hasProgramDateTime?($i(s,R),p=s.fragments[0].start):G&&(p=G.start,on(s,p));else{var E;p=this.alignPlaylists(s,f.details,(E=this.levelLastLoaded)==null?void 0:E.details),p===0&&G&&(p=G.start,on(s,p))}}f.details=s,this.levelLastLoaded=f,u===r&&(!this.startFragRequested&&(this.mainDetails||!s.live)&&this.setStartPosition(this.mainDetails||s,p),this.tick(),s.live&&!this.fragCurrent&&this.media&&this.state===Xt.IDLE&&(xi(null,s.fragments,this.media.currentTime,0)||(this.warn("Subtitle playlist not aligned with playback"),f.details=void 0)))}_handleFragmentLoadComplete(e){const{frag:t,payload:n}=e,r=t.decryptdata,i=this.hls;if(!this.fragContextChanged(t)&&n&&n.byteLength>0&&r!=null&&r.key&&r.iv&&r.method==="AES-128"){const s=performance.now();this.decrypter.decrypt(new Uint8Array(n),r.key.buffer,r.iv.buffer).catch(u=>{throw i.trigger(c.ERROR,{type:S.MEDIA_ERROR,details:y.FRAG_DECRYPT_ERROR,fatal:!1,error:u,reason:u.message,frag:t}),u}).then(u=>{const f=performance.now();i.trigger(c.FRAG_DECRYPTED,{frag:t,payload:u,stats:{tstart:s,tdecrypt:f}})}).catch(u=>{this.warn(`${u.name}: ${u.message}`),this.state=Xt.IDLE})}}doTick(){if(!this.media){this.state=Xt.IDLE;return}if(this.state===Xt.IDLE){const{currentTrackId:e,levels:t}=this,n=t==null?void 0:t[e];if(!n||!t.length||!n.details)return;const{config:r}=this,i=this.getLoadPosition(),s=Or.bufferedInfo(this.tracksBuffered[this.currentTrackId]||[],i,r.maxBufferHole),{end:u,len:f}=s,p=this.getFwdBufferInfo(this.media,Ge.MAIN),E=n.details,R=this.getMaxBufferLength(p==null?void 0:p.len)+E.levelTargetDuration;if(f>R)return;const G=E.fragments,ue=G.length,se=E.edge;let ge=null;const Ae=this.fragPrevious;if(u<se){const Ve=r.maxFragLookUpTolerance,vt=u>se-Ve?0:Ve;ge=xi(Ae,G,Math.max(G[0].start,u),vt),!ge&&Ae&&Ae.start<G[0].start&&(ge=G[0])}else ge=G[ue-1];if(!ge)return;if(ge=this.mapToInitFragWhenRequired(ge),ge.sn!=="initSegment"){const Ve=ge.sn-E.startSN,vt=G[Ve-1];vt&&vt.cc===ge.cc&&this.fragmentTracker.getState(vt)===Ir.NOT_LOADED&&(ge=vt)}this.fragmentTracker.getState(ge)===Ir.NOT_LOADED&&this.loadFragment(ge,n,u)}}getMaxBufferLength(e){const t=super.getMaxBufferLength();return e?Math.max(t,e):t}loadFragment(e,t,n){this.fragCurrent=e,e.sn==="initSegment"?this._loadInitSegment(e,t):(this.startFragRequested=!0,super.loadFragment(e,t,n))}get mediaBufferTimeRanges(){return new ai(this.tracksBuffered[this.currentTrackId]||[])}}class ai{constructor(e){this.buffered=void 0;const t=(n,r,i)=>{if(r=r>>>0,r>i-1)throw new DOMException(`Failed to execute '${n}' on 'TimeRanges': The index provided (${r}) is greater than the maximum bound (${i})`);return e[r][n]};this.buffered={get length(){return e.length},end(n){return t("end",n,e.length)},start(n){return t("start",n,e.length)}}}}class Ri extends Sr{constructor(e){super(e,"[subtitle-track-controller]"),this.media=null,this.tracks=[],this.groupIds=null,this.tracksInGroup=[],this.trackId=-1,this.currentTrack=null,this.selectDefaultTrack=!0,this.queuedDefaultTrack=-1,this.asyncPollTrackChange=()=>this.pollTrackChange(0),this.useTextTrackPolling=!1,this.subtitlePollingInterval=-1,this._subtitleDisplay=!0,this.onTextTracksChanged=()=>{if(this.useTextTrackPolling||self.clearInterval(this.subtitlePollingInterval),!this.media||!this.hls.config.renderTextTracksNatively)return;let t=null;const n=tn(this.media.textTracks);for(let i=0;i<n.length;i++)if(n[i].mode==="hidden")t=n[i];else if(n[i].mode==="showing"){t=n[i];break}const r=this.findTrackForTextTrack(t);this.subtitleTrack!==r&&this.setSubtitleTrack(r)},this.registerListeners()}destroy(){this.unregisterListeners(),this.tracks.length=0,this.tracksInGroup.length=0,this.currentTrack=null,this.onTextTracksChanged=this.asyncPollTrackChange=null,super.destroy()}get subtitleDisplay(){return this._subtitleDisplay}set subtitleDisplay(e){this._subtitleDisplay=e,this.trackId>-1&&this.toggleTrackModes()}registerListeners(){const{hls:e}=this;e.on(c.MEDIA_ATTACHED,this.onMediaAttached,this),e.on(c.MEDIA_DETACHING,this.onMediaDetaching,this),e.on(c.MANIFEST_LOADING,this.onManifestLoading,this),e.on(c.MANIFEST_PARSED,this.onManifestParsed,this),e.on(c.LEVEL_LOADING,this.onLevelLoading,this),e.on(c.LEVEL_SWITCHING,this.onLevelSwitching,this),e.on(c.SUBTITLE_TRACK_LOADED,this.onSubtitleTrackLoaded,this),e.on(c.ERROR,this.onError,this)}unregisterListeners(){const{hls:e}=this;e.off(c.MEDIA_ATTACHED,this.onMediaAttached,this),e.off(c.MEDIA_DETACHING,this.onMediaDetaching,this),e.off(c.MANIFEST_LOADING,this.onManifestLoading,this),e.off(c.MANIFEST_PARSED,this.onManifestParsed,this),e.off(c.LEVEL_LOADING,this.onLevelLoading,this),e.off(c.LEVEL_SWITCHING,this.onLevelSwitching,this),e.off(c.SUBTITLE_TRACK_LOADED,this.onSubtitleTrackLoaded,this),e.off(c.ERROR,this.onError,this)}onMediaAttached(e,t){this.media=t.media,this.media&&(this.queuedDefaultTrack>-1&&(this.subtitleTrack=this.queuedDefaultTrack,this.queuedDefaultTrack=-1),this.useTextTrackPolling=!(this.media.textTracks&&"onchange"in this.media.textTracks),this.useTextTrackPolling?this.pollTrackChange(500):this.media.textTracks.addEventListener("change",this.asyncPollTrackChange))}pollTrackChange(e){self.clearInterval(this.subtitlePollingInterval),this.subtitlePollingInterval=self.setInterval(this.onTextTracksChanged,e)}onMediaDetaching(){if(!this.media)return;self.clearInterval(this.subtitlePollingInterval),this.useTextTrackPolling||this.media.textTracks.removeEventListener("change",this.asyncPollTrackChange),this.trackId>-1&&(this.queuedDefaultTrack=this.trackId),tn(this.media.textTracks).forEach(t=>{lr(t)}),this.subtitleTrack=-1,this.media=null}onManifestLoading(){this.tracks=[],this.groupIds=null,this.tracksInGroup=[],this.trackId=-1,this.currentTrack=null,this.selectDefaultTrack=!0}onManifestParsed(e,t){this.tracks=t.subtitleTracks}onSubtitleTrackLoaded(e,t){const{id:n,groupId:r,details:i}=t,s=this.tracksInGroup[n];if(!s||s.groupId!==r){this.warn(`Subtitle track with id:${n} and group:${r} not found in active group ${s==null?void 0:s.groupId}`);return}const u=s.details;s.details=t.details,this.log(`Subtitle track ${n} "${s.name}" lang:${s.lang} group:${r} loaded [${i.startSN}-${i.endSN}]`),n===this.trackId&&this.playlistLoaded(n,t,u)}onLevelLoading(e,t){this.switchLevel(t.level)}onLevelSwitching(e,t){this.switchLevel(t.level)}switchLevel(e){const t=this.hls.levels[e];if(!t)return;const n=t.subtitleGroups||null,r=this.groupIds;let i=this.currentTrack;if(!n||(r==null?void 0:r.length)!==(n==null?void 0:n.length)||n!=null&&n.some(s=>(r==null?void 0:r.indexOf(s))===-1)){this.groupIds=n,this.trackId=-1,this.currentTrack=null;const s=this.tracks.filter(E=>!n||n.indexOf(E.groupId)!==-1);if(s.length)this.selectDefaultTrack&&!s.some(E=>E.default)&&(this.selectDefaultTrack=!1),s.forEach((E,R)=>{E.id=R});else if(!i&&!this.tracksInGroup.length)return;this.tracksInGroup=s;const u=this.hls.config.subtitlePreference;if(!i&&u){this.selectDefaultTrack=!1;const E=Ei(u,s);if(E>-1)i=s[E];else{const R=Ei(u,this.tracks);i=this.tracks[R]}}let f=this.findTrackId(i);f===-1&&i&&(f=this.findTrackId(null));const p={subtitleTracks:s};this.log(`Updating subtitle tracks, ${s.length} track(s) found in "${n==null?void 0:n.join(",")}" group-id`),this.hls.trigger(c.SUBTITLE_TRACKS_UPDATED,p),f!==-1&&this.trackId===-1&&this.setSubtitleTrack(f)}else this.shouldReloadPlaylist(i)&&this.setSubtitleTrack(this.trackId)}findTrackId(e){const t=this.tracksInGroup,n=this.selectDefaultTrack;for(let r=0;r<t.length;r++){const i=t[r];if(!(n&&!i.default||!n&&!e)&&(!e||Ti(i,e)))return r}if(e){for(let r=0;r<t.length;r++){const i=t[r];if(mr(e.attrs,i.attrs,["LANGUAGE","ASSOC-LANGUAGE","CHARACTERISTICS"]))return r}for(let r=0;r<t.length;r++){const i=t[r];if(mr(e.attrs,i.attrs,["LANGUAGE"]))return r}}return-1}findTrackForTextTrack(e){if(e){const t=this.tracksInGroup;for(let n=0;n<t.length;n++){const r=t[n];if(jr(r,e))return n}}return-1}onError(e,t){t.fatal||!t.context||t.context.type===sn.SUBTITLE_TRACK&&t.context.id===this.trackId&&(!this.groupIds||this.groupIds.indexOf(t.context.groupId)!==-1)&&this.checkRetry(t)}get allSubtitleTracks(){return this.tracks}get subtitleTracks(){return this.tracksInGroup}get subtitleTrack(){return this.trackId}set subtitleTrack(e){this.selectDefaultTrack=!1,this.setSubtitleTrack(e)}setSubtitleOption(e){if(this.hls.config.subtitlePreference=e,e){const t=this.allSubtitleTracks;if(this.selectDefaultTrack=!1,t.length){const n=this.currentTrack;if(n&&Ti(e,n))return n;const r=Ei(e,this.tracksInGroup);if(r>-1){const i=this.tracksInGroup[r];return this.setSubtitleTrack(r),i}else{if(n)return null;{const i=Ei(e,t);if(i>-1)return t[i]}}}}return null}loadPlaylist(e){super.loadPlaylist();const t=this.currentTrack;if(this.shouldLoadPlaylist(t)&&t){const n=t.id,r=t.groupId;let i=t.url;if(e)try{i=e.addDirectives(i)}catch(s){this.warn(`Could not construct new URL with HLS Delivery Directives: ${s}`)}this.log(`Loading subtitle playlist for id ${n}`),this.hls.trigger(c.SUBTITLE_TRACK_LOADING,{url:i,id:n,groupId:r,deliveryDirectives:e||null})}}toggleTrackModes(){const{media:e}=this;if(!e)return;const t=tn(e.textTracks),n=this.currentTrack;let r;if(n&&(r=t.filter(i=>jr(n,i))[0],r||this.warn(`Unable to find subtitle TextTrack with name "${n.name}" and language "${n.lang}"`)),[].slice.call(t).forEach(i=>{i.mode!=="disabled"&&i!==r&&(i.mode="disabled")}),r){const i=this.subtitleDisplay?"showing":"hidden";r.mode!==i&&(r.mode=i)}}setSubtitleTrack(e){const t=this.tracksInGroup;if(!this.media){this.queuedDefaultTrack=e;return}if(e<-1||e>=t.length||!L(e)){this.warn(`Invalid subtitle track id: ${e}`);return}this.clearTimer(),this.selectDefaultTrack=!1;const n=this.currentTrack,r=t[e]||null;if(this.trackId=e,this.currentTrack=r,this.toggleTrackModes(),!r){this.hls.trigger(c.SUBTITLE_TRACK_SWITCH,{id:e});return}const i=!!r.details&&!r.details.live;if(e===this.trackId&&r===n&&i)return;this.log(`Switching to subtitle-track ${e}`+(r?` "${r.name}" lang:${r.lang} group:${r.groupId}`:""));const{id:s,groupId:u="",name:f,type:p,url:E}=r;this.hls.trigger(c.SUBTITLE_TRACK_SWITCH,{id:s,groupId:u,name:f,type:p,url:E});const R=this.switchParams(r.url,n==null?void 0:n.details,r.details);this.loadPlaylist(R)}}class Si{constructor(e){this.buffers=void 0,this.queues={video:[],audio:[],audiovideo:[]},this.buffers=e}append(e,t,n){const r=this.queues[t];r.push(e),r.length===1&&!n&&this.executeNext(t)}insertAbort(e,t){this.queues[t].unshift(e),this.executeNext(t)}appendBlocker(e){let t;const n=new Promise(i=>{t=i}),r={execute:t,onStart:()=>{},onComplete:()=>{},onError:()=>{}};return this.append(r,e),n}executeNext(e){const t=this.queues[e];if(t.length){const n=t[0];try{n.execute()}catch(r){b.warn(`[buffer-operation-queue]: Exception executing "${e}" SourceBuffer operation: ${r}`),n.onError(r);const i=this.buffers[e];i!=null&&i.updating||this.shiftAndExecuteNext(e)}}}shiftAndExecuteNext(e){this.queues[e].shift(),this.executeNext(e)}current(e){return this.queues[e][0]}}const $r=/(avc[1234]|hvc1|hev1|dvh[1e]|vp09|av01)(?:\.[^.,]+)+/;class Ui{constructor(e){this.details=null,this._objectUrl=null,this.operationQueue=void 0,this.listeners=void 0,this.hls=void 0,this.bufferCodecEventsExpected=0,this._bufferCodecEventsTotal=0,this.media=null,this.mediaSource=null,this.lastMpegAudioChunk=null,this.appendSource=void 0,this.appendErrors={audio:0,video:0,audiovideo:0},this.tracks={},this.pendingTracks={},this.sourceBuffer=void 0,this.log=void 0,this.warn=void 0,this.error=void 0,this._onEndStreaming=n=>{this.hls&&this.hls.pauseBuffering()},this._onStartStreaming=n=>{this.hls&&this.hls.resumeBuffering()},this._onMediaSourceOpen=()=>{const{media:n,mediaSource:r}=this;this.log("Media source opened"),n&&(n.removeEventListener("emptied",this._onMediaEmptied),this.updateMediaElementDuration(),this.hls.trigger(c.MEDIA_ATTACHED,{media:n,mediaSource:r})),r&&r.removeEventListener("sourceopen",this._onMediaSourceOpen),this.checkPendingTracks()},this._onMediaSourceClose=()=>{this.log("Media source closed")},this._onMediaSourceEnded=()=>{this.log("Media source ended")},this._onMediaEmptied=()=>{const{mediaSrc:n,_objectUrl:r}=this;n!==r&&b.error(`Media element src was set while attaching MediaSource (${r} > ${n})`)},this.hls=e;const t="[buffer-controller]";this.appendSource=Qn(zn(e.config.preferManagedMediaSource)),this.log=b.log.bind(b,t),this.warn=b.warn.bind(b,t),this.error=b.error.bind(b,t),this._initSourceBuffer(),this.registerListeners()}hasSourceTypes(){return this.getSourceBufferTypes().length>0||Object.keys(this.pendingTracks).length>0}destroy(){this.unregisterListeners(),this.details=null,this.lastMpegAudioChunk=null,this.hls=null}registerListeners(){const{hls:e}=this;e.on(c.MEDIA_ATTACHING,this.onMediaAttaching,this),e.on(c.MEDIA_DETACHING,this.onMediaDetaching,this),e.on(c.MANIFEST_LOADING,this.onManifestLoading,this),e.on(c.MANIFEST_PARSED,this.onManifestParsed,this),e.on(c.BUFFER_RESET,this.onBufferReset,this),e.on(c.BUFFER_APPENDING,this.onBufferAppending,this),e.on(c.BUFFER_CODECS,this.onBufferCodecs,this),e.on(c.BUFFER_EOS,this.onBufferEos,this),e.on(c.BUFFER_FLUSHING,this.onBufferFlushing,this),e.on(c.LEVEL_UPDATED,this.onLevelUpdated,this),e.on(c.FRAG_PARSED,this.onFragParsed,this),e.on(c.FRAG_CHANGED,this.onFragChanged,this)}unregisterListeners(){const{hls:e}=this;e.off(c.MEDIA_ATTACHING,this.onMediaAttaching,this),e.off(c.MEDIA_DETACHING,this.onMediaDetaching,this),e.off(c.MANIFEST_LOADING,this.onManifestLoading,this),e.off(c.MANIFEST_PARSED,this.onManifestParsed,this),e.off(c.BUFFER_RESET,this.onBufferReset,this),e.off(c.BUFFER_APPENDING,this.onBufferAppending,this),e.off(c.BUFFER_CODECS,this.onBufferCodecs,this),e.off(c.BUFFER_EOS,this.onBufferEos,this),e.off(c.BUFFER_FLUSHING,this.onBufferFlushing,this),e.off(c.LEVEL_UPDATED,this.onLevelUpdated,this),e.off(c.FRAG_PARSED,this.onFragParsed,this),e.off(c.FRAG_CHANGED,this.onFragChanged,this)}_initSourceBuffer(){this.sourceBuffer={},this.operationQueue=new Si(this.sourceBuffer),this.listeners={audio:[],video:[],audiovideo:[]},this.appendErrors={audio:0,video:0,audiovideo:0},this.lastMpegAudioChunk=null}onManifestLoading(){this.bufferCodecEventsExpected=this._bufferCodecEventsTotal=0,this.details=null}onManifestParsed(e,t){let n=2;(t.audio&&!t.video||!t.altAudio)&&(n=1),this.bufferCodecEventsExpected=this._bufferCodecEventsTotal=n,this.log(`${this.bufferCodecEventsExpected} bufferCodec event(s) expected`)}onMediaAttaching(e,t){const n=this.media=t.media,r=zn(this.appendSource);if(n&&r){var i;const s=this.mediaSource=new r;this.log(`created media source: ${(i=s.constructor)==null?void 0:i.name}`),s.addEventListener("sourceopen",this._onMediaSourceOpen),s.addEventListener("sourceended",this._onMediaSourceEnded),s.addEventListener("sourceclose",this._onMediaSourceClose),this.appendSource&&(s.addEventListener("startstreaming",this._onStartStreaming),s.addEventListener("endstreaming",this._onEndStreaming));const u=this._objectUrl=self.URL.createObjectURL(s);if(this.appendSource)try{n.removeAttribute("src");const f=self.ManagedMediaSource;n.disableRemotePlayback=n.disableRemotePlayback||f&&s instanceof f,Ji(n),Wi(n,u),n.load()}catch(f){n.src=u}else n.src=u;n.addEventListener("emptied",this._onMediaEmptied)}}onMediaDetaching(){const{media:e,mediaSource:t,_objectUrl:n}=this;if(t){if(this.log("media source detaching"),t.readyState==="open")try{t.endOfStream()}catch(r){this.warn(`onMediaDetaching: ${r.message} while calling endOfStream`)}this.onBufferReset(),t.removeEventListener("sourceopen",this._onMediaSourceOpen),t.removeEventListener("sourceended",this._onMediaSourceEnded),t.removeEventListener("sourceclose",this._onMediaSourceClose),this.appendSource&&(t.removeEventListener("startstreaming",this._onStartStreaming),t.removeEventListener("endstreaming",this._onEndStreaming)),e&&(e.removeEventListener("emptied",this._onMediaEmptied),n&&self.URL.revokeObjectURL(n),this.mediaSrc===n?(e.removeAttribute("src"),this.appendSource&&Ji(e),e.load()):this.warn("media|source.src was changed by a third party - skip cleanup")),this.mediaSource=null,this.media=null,this._objectUrl=null,this.bufferCodecEventsExpected=this._bufferCodecEventsTotal,this.pendingTracks={},this.tracks={}}this.hls.trigger(c.MEDIA_DETACHED,void 0)}onBufferReset(){this.getSourceBufferTypes().forEach(e=>{this.resetBuffer(e)}),this._initSourceBuffer(),this.hls.resumeBuffering()}resetBuffer(e){const t=this.sourceBuffer[e];try{if(t){var n;this.removeBufferListeners(e),this.sourceBuffer[e]=void 0,(n=this.mediaSource)!=null&&n.sourceBuffers.length&&this.mediaSource.removeSourceBuffer(t)}}catch(r){this.warn(`onBufferReset ${e}`,r)}}onBufferCodecs(e,t){const n=this.getSourceBufferTypes().length,r=Object.keys(t);if(r.forEach(s=>{if(n){const f=this.tracks[s];if(f&&typeof f.buffer.changeType=="function"){var u;const{id:p,codec:E,levelCodec:R,container:G,metadata:ue}=t[s],se=cn(f.codec,f.levelCodec),ge=se==null?void 0:se.replace($r,"$1");let Ae=cn(E,R);const Ve=(u=Ae)==null?void 0:u.replace($r,"$1");if(Ae&&ge!==Ve){s.slice(0,5)==="audio"&&(Ae=mn(Ae,this.appendSource));const vt=`${G};codecs=${Ae}`;this.appendChangeType(s,vt),this.log(`switching codec ${se} to ${Ae}`),this.tracks[s]={buffer:f.buffer,codec:E,container:G,levelCodec:R,metadata:ue,id:p}}}}else this.pendingTracks[s]=t[s]}),n)return;const i=Math.max(this.bufferCodecEventsExpected-1,0);this.bufferCodecEventsExpected!==i&&(this.log(`${i} bufferCodec event(s) expected ${r.join(",")}`),this.bufferCodecEventsExpected=i),this.mediaSource&&this.mediaSource.readyState==="open"&&this.checkPendingTracks()}appendChangeType(e,t){const{operationQueue:n}=this,r={execute:()=>{const i=this.sourceBuffer[e];i&&(this.log(`changing ${e} sourceBuffer type to ${t}`),i.changeType(t)),n.shiftAndExecuteNext(e)},onStart:()=>{},onComplete:()=>{},onError:i=>{this.warn(`Failed to change ${e} SourceBuffer type`,i)}};n.append(r,e,!!this.pendingTracks[e])}onBufferAppending(e,t){const{hls:n,operationQueue:r,tracks:i}=this,{data:s,type:u,frag:f,part:p,chunkMeta:E}=t,R=E.buffering[u],G=self.performance.now();R.start=G;const ue=f.stats.buffering,se=p?p.stats.buffering:null;ue.start===0&&(ue.start=G),se&&se.start===0&&(se.start=G);const ge=i.audio;let Ae=!1;u==="audio"&&(ge==null?void 0:ge.container)==="audio/mpeg"&&(Ae=!this.lastMpegAudioChunk||E.id===1||this.lastMpegAudioChunk.sn!==E.sn,this.lastMpegAudioChunk=E);const Ve=f.start,vt={execute:()=>{if(R.executeStart=self.performance.now(),Ae){const pt=this.sourceBuffer[u];if(pt){const $t=Ve-pt.timestampOffset;Math.abs($t)>=.1&&(this.log(`Updating audio SourceBuffer timestampOffset to ${Ve} (delta: ${$t}) sn: ${f.sn})`),pt.timestampOffset=Ve)}}this.appendExecutor(s,u)},onStart:()=>{},onComplete:()=>{const pt=self.performance.now();R.executeEnd=R.end=pt,ue.first===0&&(ue.first=pt),se&&se.first===0&&(se.first=pt);const{sourceBuffer:$t}=this,St={};for(const an in $t)St[an]=Or.getBuffered($t[an]);this.appendErrors[u]=0,u==="audio"||u==="video"?this.appendErrors.audiovideo=0:(this.appendErrors.audio=0,this.appendErrors.video=0),this.hls.trigger(c.BUFFER_APPENDED,{type:u,frag:f,part:p,chunkMeta:E,parent:f.type,timeRanges:St})},onError:pt=>{const $t={type:S.MEDIA_ERROR,parent:f.type,details:y.BUFFER_APPEND_ERROR,sourceBufferName:u,frag:f,part:p,chunkMeta:E,error:pt,err:pt,fatal:!1};if(pt.code===DOMException.QUOTA_EXCEEDED_ERR)$t.details=y.BUFFER_FULL_ERROR;else{const St=++this.appendErrors[u];$t.details=y.BUFFER_APPEND_ERROR,this.warn(`Failed ${St}/${n.config.appendErrorMaxRetry} times to append segment in "${u}" sourceBuffer`),St>=n.config.appendErrorMaxRetry&&($t.fatal=!0)}n.trigger(c.ERROR,$t)}};r.append(vt,u,!!this.pendingTracks[u])}onBufferFlushing(e,t){const{operationQueue:n}=this,r=i=>({execute:this.removeExecutor.bind(this,i,t.startOffset,t.endOffset),onStart:()=>{},onComplete:()=>{this.hls.trigger(c.BUFFER_FLUSHED,{type:i})},onError:s=>{this.warn(`Failed to remove from ${i} SourceBuffer`,s)}});t.type?n.append(r(t.type),t.type):this.getSourceBufferTypes().forEach(i=>{n.append(r(i),i)})}onFragParsed(e,t){const{frag:n,part:r}=t,i=[],s=r?r.elementaryStreams:n.elementaryStreams;s[Z.AUDIOVIDEO]?i.push("audiovideo"):(s[Z.AUDIO]&&i.push("audio"),s[Z.VIDEO]&&i.push("video"));const u=()=>{const f=self.performance.now();n.stats.buffering.end=f,r&&(r.stats.buffering.end=f);const p=r?r.stats:n.stats;this.hls.trigger(c.FRAG_BUFFERED,{frag:n,part:r,stats:p,id:n.type})};i.length===0&&this.warn(`Fragments must have at least one ElementaryStreamType set. type: ${n.type} level: ${n.level} sn: ${n.sn}`),this.blockBuffers(u,i)}onFragChanged(e,t){this.trimBuffers()}onBufferEos(e,t){this.getSourceBufferTypes().reduce((r,i)=>{const s=this.sourceBuffer[i];return s&&(!t.type||t.type===i)&&(s.ending=!0,s.ended||(s.ended=!0,this.log(`${i} sourceBuffer now EOS`))),r&&!!(!s||s.ended)},!0)&&(this.log("Queueing mediaSource.endOfStream()"),this.blockBuffers(()=>{this.getSourceBufferTypes().forEach(i=>{const s=this.sourceBuffer[i];s&&(s.ending=!1)});const{mediaSource:r}=this;if(!r||r.readyState!=="open"){r&&this.log(`Could not call mediaSource.endOfStream(). mediaSource.readyState: ${r.readyState}`);return}this.log("Calling mediaSource.endOfStream()"),r.endOfStream()}))}onLevelUpdated(e,{details:t}){t.fragments.length&&(this.details=t,this.getSourceBufferTypes().length?this.blockBuffers(this.updateMediaElementDuration.bind(this)):this.updateMediaElementDuration())}trimBuffers(){const{hls:e,details:t,media:n}=this;if(!n||t===null||!this.getSourceBufferTypes().length)return;const i=e.config,s=n.currentTime,u=t.levelTargetDuration,f=t.live&&i.liveBackBufferLength!==null?i.liveBackBufferLength:i.backBufferLength;if(L(f)&&f>0){const p=Math.max(f,u),E=Math.floor(s/u)*u-p;this.flushBackBuffer(s,u,E)}if(L(i.frontBufferFlushThreshold)&&i.frontBufferFlushThreshold>0){const p=Math.max(i.maxBufferLength,i.frontBufferFlushThreshold),E=Math.max(p,u),R=Math.floor(s/u)*u+E;this.flushFrontBuffer(s,u,R)}}flushBackBuffer(e,t,n){const{details:r,sourceBuffer:i}=this;this.getSourceBufferTypes().forEach(u=>{const f=i[u];if(f){const p=Or.getBuffered(f);if(p.length>0&&n>p.start(0)){if(this.hls.trigger(c.BACK_BUFFER_REACHED,{bufferEnd:n}),r!=null&&r.live)this.hls.trigger(c.LIVE_BACK_BUFFER_REACHED,{bufferEnd:n});else if(f.ended&&p.end(p.length-1)-e<t*2){this.log(`Cannot flush ${u} back buffer while SourceBuffer is in ended state`);return}this.hls.trigger(c.BUFFER_FLUSHING,{startOffset:0,endOffset:n,type:u})}}})}flushFrontBuffer(e,t,n){const{sourceBuffer:r}=this;this.getSourceBufferTypes().forEach(s=>{const u=r[s];if(u){const f=Or.getBuffered(u),p=f.length;if(p<2)return;const E=f.start(p-1),R=f.end(p-1);if(n>E||e>=E&&e<=R)return;if(u.ended&&e-R<2*t){this.log(`Cannot flush ${s} front buffer while SourceBuffer is in ended state`);return}this.hls.trigger(c.BUFFER_FLUSHING,{startOffset:E,endOffset:1/0,type:s})}})}updateMediaElementDuration(){if(!this.details||!this.media||!this.mediaSource||this.mediaSource.readyState!=="open")return;const{details:e,hls:t,media:n,mediaSource:r}=this,i=e.fragments[0].start+e.totalduration,s=n.duration,u=L(r.duration)?r.duration:0;e.live&&t.config.liveDurationInfinity?(r.duration=1/0,this.updateSeekableRange(e)):(i>u&&i>s||!L(s))&&(this.log(`Updating Media Source duration to ${i.toFixed(3)}`),r.duration=i)}updateSeekableRange(e){const t=this.mediaSource,n=e.fragments;if(n.length&&e.live&&t!=null&&t.setLiveSeekableRange){const i=Math.max(0,n[0].start),s=Math.max(i,i+e.totalduration);this.log(`Media Source duration is set to ${t.duration}. Setting seekable range to ${i}-${s}.`),t.setLiveSeekableRange(i,s)}}checkPendingTracks(){const{bufferCodecEventsExpected:e,operationQueue:t,pendingTracks:n}=this,r=Object.keys(n).length;if(r&&(!e||r===2||"audiovideo"in n)){this.createSourceBuffers(n),this.pendingTracks={};const i=this.getSourceBufferTypes();if(i.length)this.hls.trigger(c.BUFFER_CREATED,{tracks:this.tracks}),i.forEach(s=>{t.executeNext(s)});else{const s=new Error("could not create source buffer for media codec(s)");this.hls.trigger(c.ERROR,{type:S.MEDIA_ERROR,details:y.BUFFER_INCOMPATIBLE_CODECS_ERROR,fatal:!0,error:s,reason:s.message})}}}createSourceBuffers(e){const{sourceBuffer:t,mediaSource:n}=this;if(!n)throw Error("createSourceBuffers called when mediaSource was null");for(const i in e)if(!t[i]){var r;const s=e[i];if(!s)throw Error(`source buffer exists for track ${i}, however track does not`);let u=((r=s.levelCodec)==null?void 0:r.indexOf(","))===-1?s.levelCodec:s.codec;u&&i.slice(0,5)==="audio"&&(u=mn(u,this.appendSource));const f=`${s.container};codecs=${u}`;this.log(`creating sourceBuffer(${f})`);try{const p=t[i]=n.addSourceBuffer(f),E=i;this.addBufferListener(E,"updatestart",this._onSBUpdateStart),this.addBufferListener(E,"updateend",this._onSBUpdateEnd),this.addBufferListener(E,"error",this._onSBUpdateError),this.appendSource&&this.addBufferListener(E,"bufferedchange",(R,G)=>{const ue=G.removedRanges;ue!=null&&ue.length&&this.hls.trigger(c.BUFFER_FLUSHED,{type:i})}),this.tracks[i]={buffer:p,codec:u,container:s.container,levelCodec:s.levelCodec,metadata:s.metadata,id:s.id}}catch(p){this.error(`error while trying to add sourceBuffer: ${p.message}`),this.hls.trigger(c.ERROR,{type:S.MEDIA_ERROR,details:y.BUFFER_ADD_CODEC_ERROR,fatal:!1,error:p,sourceBufferName:i,mimeType:f})}}}get mediaSrc(){var e,t;const n=((e=this.media)==null||(t=e.querySelector)==null?void 0:t.call(e,"source"))||this.media;return n==null?void 0:n.src}_onSBUpdateStart(e){const{operationQueue:t}=this;t.current(e).onStart()}_onSBUpdateEnd(e){var t;if(((t=this.mediaSource)==null?void 0:t.readyState)==="closed"){this.resetBuffer(e);return}const{operationQueue:n}=this;n.current(e).onComplete(),n.shiftAndExecuteNext(e)}_onSBUpdateError(e,t){var n;const r=new Error(`${e} SourceBuffer error. MediaSource readyState: ${(n=this.mediaSource)==null?void 0:n.readyState}`);this.error(`${r}`,t),this.hls.trigger(c.ERROR,{type:S.MEDIA_ERROR,details:y.BUFFER_APPENDING_ERROR,sourceBufferName:e,error:r,fatal:!1});const i=this.operationQueue.current(e);i&&i.onError(r)}removeExecutor(e,t,n){const{media:r,mediaSource:i,operationQueue:s,sourceBuffer:u}=this,f=u[e];if(!r||!i||!f){this.warn(`Attempting to remove from the ${e} SourceBuffer, but it does not exist`),s.shiftAndExecuteNext(e);return}const p=L(r.duration)?r.duration:1/0,E=L(i.duration)?i.duration:1/0,R=Math.max(0,t),G=Math.min(n,p,E);G>R&&(!f.ending||f.ended)?(f.ended=!1,this.log(`Removing [${R},${G}] from the ${e} SourceBuffer`),f.remove(R,G)):s.shiftAndExecuteNext(e)}appendExecutor(e,t){const n=this.sourceBuffer[t];if(!n){if(!this.pendingTracks[t])throw new Error(`Attempting to append to the ${t} SourceBuffer, but it does not exist`);return}n.ended=!1,n.appendBuffer(e)}blockBuffers(e,t=this.getSourceBufferTypes()){if(!t.length){this.log("Blocking operation requested, but no SourceBuffers exist"),Promise.resolve().then(e);return}const{operationQueue:n}=this,r=t.map(i=>n.appendBlocker(i));Promise.all(r).then(()=>{e(),t.forEach(i=>{const s=this.sourceBuffer[i];s!=null&&s.updating||n.shiftAndExecuteNext(i)})})}getSourceBufferTypes(){return Object.keys(this.sourceBuffer)}addBufferListener(e,t,n){const r=this.sourceBuffer[e];if(!r)return;const i=n.bind(this,e);this.listeners[e].push({event:t,listener:i}),r.addEventListener(t,i)}removeBufferListeners(e){const t=this.sourceBuffer[e];t&&this.listeners[e].forEach(n=>{t.removeEventListener(n.event,n.listener)})}}function Ji(a){const e=a.querySelectorAll("source");[].slice.call(e).forEach(t=>{a.removeChild(t)})}function Wi(a,e){const t=self.document.createElement("source");t.type="video/mp4",t.src=e,a.appendChild(t)}const Ii={42:225,92:233,94:237,95:243,96:250,123:231,124:247,125:209,126:241,127:9608,128:174,129:176,130:189,131:191,132:8482,133:162,134:163,135:9834,136:224,137:32,138:232,139:226,140:234,141:238,142:244,143:251,144:193,145:201,146:211,147:218,148:220,149:252,150:8216,151:161,152:42,153:8217,154:9473,155:169,156:8480,157:8226,158:8220,159:8221,160:192,161:194,162:199,163:200,164:202,165:203,166:235,167:206,168:207,169:239,170:212,171:217,172:249,173:219,174:171,175:187,176:195,177:227,178:205,179:204,180:236,181:210,182:242,183:213,184:245,185:123,186:125,187:92,188:94,189:95,190:124,191:8764,192:196,193:228,194:214,195:246,196:223,197:165,198:164,199:9475,200:197,201:229,202:216,203:248,204:9487,205:9491,206:9495,207:9499},qi=a=>String.fromCharCode(Ii[a]||a),di=15,Zi=100,to={17:1,18:3,21:5,22:7,23:9,16:11,19:12,20:14},Ss={17:2,18:4,21:6,22:8,23:10,19:13,20:15},As={25:1,26:3,29:5,30:7,31:9,24:11,27:12,28:14},Cs={25:2,26:4,29:6,30:8,31:10,27:13,28:15},Ys=["white","green","blue","cyan","red","yellow","magenta","black","transparent"];class Xs{constructor(){this.time=null,this.verboseLevel=0}log(e,t){if(this.verboseLevel>=e){const n=typeof t=="function"?t():t;b.log(`${this.time} [${e}] ${n}`)}}}const ms=function(e){const t=[];for(let n=0;n<e.length;n++)t.push(e[n].toString(16));return t};class Ba{constructor(){this.foreground="white",this.underline=!1,this.italics=!1,this.background="black",this.flash=!1}reset(){this.foreground="white",this.underline=!1,this.italics=!1,this.background="black",this.flash=!1}setStyles(e){const t=["foreground","underline","italics","background","flash"];for(let n=0;n<t.length;n++){const r=t[n];e.hasOwnProperty(r)&&(this[r]=e[r])}}isDefault(){return this.foreground==="white"&&!this.underline&&!this.italics&&this.background==="black"&&!this.flash}equals(e){return this.foreground===e.foreground&&this.underline===e.underline&&this.italics===e.italics&&this.background===e.background&&this.flash===e.flash}copy(e){this.foreground=e.foreground,this.underline=e.underline,this.italics=e.italics,this.background=e.background,this.flash=e.flash}toString(){return"color="+this.foreground+", underline="+this.underline+", italics="+this.italics+", background="+this.background+", flash="+this.flash}}class no{constructor(){this.uchar=" ",this.penState=new Ba}reset(){this.uchar=" ",this.penState.reset()}setChar(e,t){this.uchar=e,this.penState.copy(t)}setPenState(e){this.penState.copy(e)}equals(e){return this.uchar===e.uchar&&this.penState.equals(e.penState)}copy(e){this.uchar=e.uchar,this.penState.copy(e.penState)}isEmpty(){return this.uchar===" "&&this.penState.isDefault()}}class pa{constructor(e){this.chars=[],this.pos=0,this.currPenState=new Ba,this.cueStartTime=null,this.logger=void 0;for(let t=0;t<Zi;t++)this.chars.push(new no);this.logger=e}equals(e){for(let t=0;t<Zi;t++)if(!this.chars[t].equals(e.chars[t]))return!1;return!0}copy(e){for(let t=0;t<Zi;t++)this.chars[t].copy(e.chars[t])}isEmpty(){let e=!0;for(let t=0;t<Zi;t++)if(!this.chars[t].isEmpty()){e=!1;break}return e}setCursor(e){this.pos!==e&&(this.pos=e),this.pos<0?(this.logger.log(3,"Negative cursor position "+this.pos),this.pos=0):this.pos>Zi&&(this.logger.log(3,"Too large cursor position "+this.pos),this.pos=Zi)}moveCursor(e){const t=this.pos+e;if(e>1)for(let n=this.pos+1;n<t+1;n++)this.chars[n].setPenState(this.currPenState);this.setCursor(t)}backSpace(){this.moveCursor(-1),this.chars[this.pos].setChar(" ",this.currPenState)}insertChar(e){e>=144&&this.backSpace();const t=qi(e);if(this.pos>=Zi){this.logger.log(0,()=>"Cannot insert "+e.toString(16)+" ("+t+") at position "+this.pos+". Skipping it!");return}this.chars[this.pos].setChar(t,this.currPenState),this.moveCursor(1)}clearFromPos(e){let t;for(t=e;t<Zi;t++)this.chars[t].reset()}clear(){this.clearFromPos(0),this.pos=0,this.currPenState.reset()}clearToEndOfRow(){this.clearFromPos(this.pos)}getTextString(){const e=[];let t=!0;for(let n=0;n<Zi;n++){const r=this.chars[n].uchar;r!==" "&&(t=!1),e.push(r)}return t?"":e.join("")}setPenStyles(e){this.currPenState.setStyles(e),this.chars[this.pos].setPenState(this.currPenState)}}class Qs{constructor(e){this.rows=[],this.currRow=di-1,this.nrRollUpRows=null,this.lastOutputScreen=null,this.logger=void 0;for(let t=0;t<di;t++)this.rows.push(new pa(e));this.logger=e}reset(){for(let e=0;e<di;e++)this.rows[e].clear();this.currRow=di-1}equals(e){let t=!0;for(let n=0;n<di;n++)if(!this.rows[n].equals(e.rows[n])){t=!1;break}return t}copy(e){for(let t=0;t<di;t++)this.rows[t].copy(e.rows[t])}isEmpty(){let e=!0;for(let t=0;t<di;t++)if(!this.rows[t].isEmpty()){e=!1;break}return e}backSpace(){this.rows[this.currRow].backSpace()}clearToEndOfRow(){this.rows[this.currRow].clearToEndOfRow()}insertChar(e){this.rows[this.currRow].insertChar(e)}setPen(e){this.rows[this.currRow].setPenStyles(e)}moveCursor(e){this.rows[this.currRow].moveCursor(e)}setCursor(e){this.logger.log(2,"setCursor: "+e),this.rows[this.currRow].setCursor(e)}setPAC(e){this.logger.log(2,()=>"pacData = "+JSON.stringify(e));let t=e.row-1;if(this.nrRollUpRows&&t<this.nrRollUpRows-1&&(t=this.nrRollUpRows-1),this.nrRollUpRows&&this.currRow!==t){for(let u=0;u<di;u++)this.rows[u].clear();const i=this.currRow+1-this.nrRollUpRows,s=this.lastOutputScreen;if(s){const u=s.rows[i].cueStartTime,f=this.logger.time;if(u!==null&&f!==null&&u<f)for(let p=0;p<this.nrRollUpRows;p++)this.rows[t-this.nrRollUpRows+p+1].copy(s.rows[i+p])}}this.currRow=t;const n=this.rows[this.currRow];if(e.indent!==null){const i=e.indent,s=Math.max(i-1,0);n.setCursor(e.indent),e.color=n.chars[s].penState.foreground}const r={foreground:e.color,underline:e.underline,italics:e.italics,background:"black",flash:!1};this.setPen(r)}setBkgData(e){this.logger.log(2,()=>"bkgData = "+JSON.stringify(e)),this.backSpace(),this.setPen(e),this.insertChar(32)}setRollUpRows(e){this.nrRollUpRows=e}rollUp(){if(this.nrRollUpRows===null){this.logger.log(3,"roll_up but nrRollUpRows not set yet");return}this.logger.log(1,()=>this.getDisplayText());const e=this.currRow+1-this.nrRollUpRows,t=this.rows.splice(e,1)[0];t.clear(),this.rows.splice(this.currRow,0,t),this.logger.log(2,"Rolling up")}getDisplayText(e){e=e||!1;const t=[];let n="",r=-1;for(let i=0;i<di;i++){const s=this.rows[i].getTextString();s&&(r=i+1,e?t.push("Row "+r+": '"+s+"'"):t.push(s.trim()))}return t.length>0&&(e?n="["+t.join(" | ")+"]":n=t.join(`
`)),n}getTextAndFormat(){return this.rows}}class ga{constructor(e,t,n){this.chNr=void 0,this.outputFilter=void 0,this.mode=void 0,this.verbose=void 0,this.displayedMemory=void 0,this.nonDisplayedMemory=void 0,this.lastOutputScreen=void 0,this.currRollUpRow=void 0,this.writeScreen=void 0,this.cueStartTime=void 0,this.logger=void 0,this.chNr=e,this.outputFilter=t,this.mode=null,this.verbose=0,this.displayedMemory=new Qs(n),this.nonDisplayedMemory=new Qs(n),this.lastOutputScreen=new Qs(n),this.currRollUpRow=this.displayedMemory.rows[di-1],this.writeScreen=this.displayedMemory,this.mode=null,this.cueStartTime=null,this.logger=n}reset(){this.mode=null,this.displayedMemory.reset(),this.nonDisplayedMemory.reset(),this.lastOutputScreen.reset(),this.outputFilter.reset(),this.currRollUpRow=this.displayedMemory.rows[di-1],this.writeScreen=this.displayedMemory,this.mode=null,this.cueStartTime=null}getHandler(){return this.outputFilter}setHandler(e){this.outputFilter=e}setPAC(e){this.writeScreen.setPAC(e)}setBkgData(e){this.writeScreen.setBkgData(e)}setMode(e){e!==this.mode&&(this.mode=e,this.logger.log(2,()=>"MODE="+e),this.mode==="MODE_POP-ON"?this.writeScreen=this.nonDisplayedMemory:(this.writeScreen=this.displayedMemory,this.writeScreen.reset()),this.mode!=="MODE_ROLL-UP"&&(this.displayedMemory.nrRollUpRows=null,this.nonDisplayedMemory.nrRollUpRows=null),this.mode=e)}insertChars(e){for(let n=0;n<e.length;n++)this.writeScreen.insertChar(e[n]);const t=this.writeScreen===this.displayedMemory?"DISP":"NON_DISP";this.logger.log(2,()=>t+": "+this.writeScreen.getDisplayText(!0)),(this.mode==="MODE_PAINT-ON"||this.mode==="MODE_ROLL-UP")&&(this.logger.log(1,()=>"DISPLAYED: "+this.displayedMemory.getDisplayText(!0)),this.outputDataUpdate())}ccRCL(){this.logger.log(2,"RCL - Resume Caption Loading"),this.setMode("MODE_POP-ON")}ccBS(){this.logger.log(2,"BS - BackSpace"),this.mode!=="MODE_TEXT"&&(this.writeScreen.backSpace(),this.writeScreen===this.displayedMemory&&this.outputDataUpdate())}ccAOF(){}ccAON(){}ccDER(){this.logger.log(2,"DER- Delete to End of Row"),this.writeScreen.clearToEndOfRow(),this.outputDataUpdate()}ccRU(e){this.logger.log(2,"RU("+e+") - Roll Up"),this.writeScreen=this.displayedMemory,this.setMode("MODE_ROLL-UP"),this.writeScreen.setRollUpRows(e)}ccFON(){this.logger.log(2,"FON - Flash On"),this.writeScreen.setPen({flash:!0})}ccRDC(){this.logger.log(2,"RDC - Resume Direct Captioning"),this.setMode("MODE_PAINT-ON")}ccTR(){this.logger.log(2,"TR"),this.setMode("MODE_TEXT")}ccRTD(){this.logger.log(2,"RTD"),this.setMode("MODE_TEXT")}ccEDM(){this.logger.log(2,"EDM - Erase Displayed Memory"),this.displayedMemory.reset(),this.outputDataUpdate(!0)}ccCR(){this.logger.log(2,"CR - Carriage Return"),this.writeScreen.rollUp(),this.outputDataUpdate(!0)}ccENM(){this.logger.log(2,"ENM - Erase Non-displayed Memory"),this.nonDisplayedMemory.reset()}ccEOC(){if(this.logger.log(2,"EOC - End Of Caption"),this.mode==="MODE_POP-ON"){const e=this.displayedMemory;this.displayedMemory=this.nonDisplayedMemory,this.nonDisplayedMemory=e,this.writeScreen=this.nonDisplayedMemory,this.logger.log(1,()=>"DISP: "+this.displayedMemory.getDisplayText())}this.outputDataUpdate(!0)}ccTO(e){this.logger.log(2,"TO("+e+") - Tab Offset"),this.writeScreen.moveCursor(e)}ccMIDROW(e){const t={flash:!1};if(t.underline=e%2===1,t.italics=e>=46,t.italics)t.foreground="white";else{const n=Math.floor(e/2)-16,r=["white","green","blue","cyan","red","yellow","magenta"];t.foreground=r[n]}this.logger.log(2,"MIDROW: "+JSON.stringify(t)),this.writeScreen.setPen(t)}outputDataUpdate(e=!1){const t=this.logger.time;t!==null&&this.outputFilter&&(this.cueStartTime===null&&!this.displayedMemory.isEmpty()?this.cueStartTime=t:this.displayedMemory.equals(this.lastOutputScreen)||(this.outputFilter.newCue(this.cueStartTime,t,this.lastOutputScreen),e&&this.outputFilter.dispatchCue&&this.outputFilter.dispatchCue(),this.cueStartTime=this.displayedMemory.isEmpty()?null:t),this.lastOutputScreen.copy(this.displayedMemory))}cueSplitAtTime(e){this.outputFilter&&(this.displayedMemory.isEmpty()||(this.outputFilter.newCue&&this.outputFilter.newCue(this.cueStartTime,e,this.displayedMemory),this.cueStartTime=e))}}class va{constructor(e,t,n){this.channels=void 0,this.currentChannel=0,this.cmdHistory=qo(),this.logger=void 0;const r=this.logger=new Xs;this.channels=[null,new ga(e,t,r),new ga(e+1,n,r)]}getHandler(e){return this.channels[e].getHandler()}setHandler(e,t){this.channels[e].setHandler(t)}addData(e,t){this.logger.time=e;for(let n=0;n<t.length;n+=2){const r=t[n]&127,i=t[n+1]&127;let s=!1,u=null;if(r===0&&i===0)continue;this.logger.log(3,()=>"["+ms([t[n],t[n+1]])+"] -> ("+ms([r,i])+")");const f=this.cmdHistory;if(r>=16&&r<=31){if(Jo(r,i,f)){ps(null,null,f),this.logger.log(3,()=>"Repeated command ("+ms([r,i])+") is dropped");continue}ps(r,i,this.cmdHistory),s=this.parseCmd(r,i),s||(s=this.parseMidrow(r,i)),s||(s=this.parsePAC(r,i)),s||(s=this.parseBackgroundAttributes(r,i))}else ps(null,null,f);if(!s&&(u=this.parseChars(r,i),u)){const E=this.currentChannel;E&&E>0?this.channels[E].insertChars(u):this.logger.log(2,"No channel found yet. TEXT-MODE?")}!s&&!u&&this.logger.log(2,()=>"Couldn't parse cleaned data "+ms([r,i])+" orig: "+ms([t[n],t[n+1]]))}}parseCmd(e,t){const n=(e===20||e===28||e===21||e===29)&&t>=32&&t<=47,r=(e===23||e===31)&&t>=33&&t<=35;if(!(n||r))return!1;const i=e===20||e===21||e===23?1:2,s=this.channels[i];return e===20||e===21||e===28||e===29?t===32?s.ccRCL():t===33?s.ccBS():t===34?s.ccAOF():t===35?s.ccAON():t===36?s.ccDER():t===37?s.ccRU(2):t===38?s.ccRU(3):t===39?s.ccRU(4):t===40?s.ccFON():t===41?s.ccRDC():t===42?s.ccTR():t===43?s.ccRTD():t===44?s.ccEDM():t===45?s.ccCR():t===46?s.ccENM():t===47&&s.ccEOC():s.ccTO(t-32),this.currentChannel=i,!0}parseMidrow(e,t){let n=0;if((e===17||e===25)&&t>=32&&t<=47){if(e===17?n=1:n=2,n!==this.currentChannel)return this.logger.log(0,"Mismatch channel in midrow parsing"),!1;const r=this.channels[n];return r?(r.ccMIDROW(t),this.logger.log(3,()=>"MIDROW ("+ms([e,t])+")"),!0):!1}return!1}parsePAC(e,t){let n;const r=(e>=17&&e<=23||e>=25&&e<=31)&&t>=64&&t<=127,i=(e===16||e===24)&&t>=64&&t<=95;if(!(r||i))return!1;const s=e<=23?1:2;t>=64&&t<=95?n=s===1?to[e]:As[e]:n=s===1?Ss[e]:Cs[e];const u=this.channels[s];return u?(u.setPAC(this.interpretPAC(n,t)),this.currentChannel=s,!0):!1}interpretPAC(e,t){let n;const r={color:null,italics:!1,indent:null,underline:!1,row:e};return t>95?n=t-96:n=t-64,r.underline=(n&1)===1,n<=13?r.color=["white","green","blue","cyan","red","yellow","magenta","white"][Math.floor(n/2)]:n<=15?(r.italics=!0,r.color="white"):r.indent=Math.floor((n-16)/2)*4,r}parseChars(e,t){let n,r=null,i=null;if(e>=25?(n=2,i=e-8):(n=1,i=e),i>=17&&i<=19){let s;i===17?s=t+80:i===18?s=t+112:s=t+144,this.logger.log(2,()=>"Special char '"+qi(s)+"' in channel "+n),r=[s]}else e>=32&&e<=127&&(r=t===0?[e]:[e,t]);return r&&this.logger.log(3,()=>"Char codes = "+ms(r).join(",")),r}parseBackgroundAttributes(e,t){const n=(e===16||e===24)&&t>=32&&t<=47,r=(e===23||e===31)&&t>=45&&t<=47;if(!(n||r))return!1;let i;const s={};e===16||e===24?(i=Math.floor((t-32)/2),s.background=Ys[i],t%2===1&&(s.background=s.background+"_semi")):t===45?s.background="transparent":(s.foreground="black",t===47&&(s.underline=!0));const u=e<=23?1:2;return this.channels[u].setBkgData(s),!0}reset(){for(let e=0;e<Object.keys(this.channels).length;e++){const t=this.channels[e];t&&t.reset()}ps(null,null,this.cmdHistory)}cueSplitAtTime(e){for(let t=0;t<this.channels.length;t++){const n=this.channels[t];n&&n.cueSplitAtTime(e)}}}function ps(a,e,t){t.a=a,t.b=e}function Jo(a,e,t){return t.a===a&&t.b===e}function qo(){return{a:null,b:null}}class Na{constructor(e,t){this.timelineController=void 0,this.cueRanges=[],this.trackName=void 0,this.startTime=null,this.endTime=null,this.screen=null,this.timelineController=e,this.trackName=t}dispatchCue(){this.startTime!==null&&(this.timelineController.addCues(this.trackName,this.startTime,this.endTime,this.screen,this.cueRanges),this.startTime=null)}newCue(e,t,n){(this.startTime===null||this.startTime>e)&&(this.startTime=e),this.endTime=t,this.screen=n,this.timelineController.createCaptionsTrack(this.trackName)}reset(){this.cueRanges=[],this.startTime=null}}var ro=function(){if(Ue!=null&&Ue.VTTCue)return self.VTTCue;const a=["","lr","rl"],e=["start","middle","end","left","right"];function t(u,f){if(typeof f!="string"||!Array.isArray(u))return!1;const p=f.toLowerCase();return~u.indexOf(p)?p:!1}function n(u){return t(a,u)}function r(u){return t(e,u)}function i(u,...f){let p=1;for(;p<arguments.length;p++){const E=arguments[p];for(const R in E)u[R]=E[R]}return u}function s(u,f,p){const E=this,R={enumerable:!0};E.hasBeenReset=!1;let G="",ue=!1,se=u,ge=f,Ae=p,Ve=null,vt="",pt=!0,$t="auto",St="start",an=50,zt="middle",bn=50,Fn="middle";Object.defineProperty(E,"id",i({},R,{get:function(){return G},set:function(en){G=""+en}})),Object.defineProperty(E,"pauseOnExit",i({},R,{get:function(){return ue},set:function(en){ue=!!en}})),Object.defineProperty(E,"startTime",i({},R,{get:function(){return se},set:function(en){if(typeof en!="number")throw new TypeError("Start time must be set to a number.");se=en,this.hasBeenReset=!0}})),Object.defineProperty(E,"endTime",i({},R,{get:function(){return ge},set:function(en){if(typeof en!="number")throw new TypeError("End time must be set to a number.");ge=en,this.hasBeenReset=!0}})),Object.defineProperty(E,"text",i({},R,{get:function(){return Ae},set:function(en){Ae=""+en,this.hasBeenReset=!0}})),Object.defineProperty(E,"region",i({},R,{get:function(){return Ve},set:function(en){Ve=en,this.hasBeenReset=!0}})),Object.defineProperty(E,"vertical",i({},R,{get:function(){return vt},set:function(en){const xn=n(en);if(xn===!1)throw new SyntaxError("An invalid or illegal string was specified.");vt=xn,this.hasBeenReset=!0}})),Object.defineProperty(E,"snapToLines",i({},R,{get:function(){return pt},set:function(en){pt=!!en,this.hasBeenReset=!0}})),Object.defineProperty(E,"line",i({},R,{get:function(){return $t},set:function(en){if(typeof en!="number"&&en!=="auto")throw new SyntaxError("An invalid number or illegal string was specified.");$t=en,this.hasBeenReset=!0}})),Object.defineProperty(E,"lineAlign",i({},R,{get:function(){return St},set:function(en){const xn=r(en);if(!xn)throw new SyntaxError("An invalid or illegal string was specified.");St=xn,this.hasBeenReset=!0}})),Object.defineProperty(E,"position",i({},R,{get:function(){return an},set:function(en){if(en<0||en>100)throw new Error("Position must be between 0 and 100.");an=en,this.hasBeenReset=!0}})),Object.defineProperty(E,"positionAlign",i({},R,{get:function(){return zt},set:function(en){const xn=r(en);if(!xn)throw new SyntaxError("An invalid or illegal string was specified.");zt=xn,this.hasBeenReset=!0}})),Object.defineProperty(E,"size",i({},R,{get:function(){return bn},set:function(en){if(en<0||en>100)throw new Error("Size must be between 0 and 100.");bn=en,this.hasBeenReset=!0}})),Object.defineProperty(E,"align",i({},R,{get:function(){return Fn},set:function(en){const xn=r(en);if(!xn)throw new SyntaxError("An invalid or illegal string was specified.");Fn=xn,this.hasBeenReset=!0}})),E.displayState=void 0}return s.prototype.getCueAsHTML=function(){return self.WebVTT.convertCueToDOMTree(self,this.text)},s}();class el{decode(e,t){if(!e)return"";if(typeof e!="string")throw new Error("Error - expected string data.");return decodeURIComponent(encodeURIComponent(e))}}function xo(a){function e(n,r,i,s){return(n|0)*3600+(r|0)*60+(i|0)+parseFloat(s||0)}const t=a.match(/^(?:(\d+):)?(\d{2}):(\d{2})(\.\d+)?/);return t?parseFloat(t[2])>59?e(t[2],t[3],0,t[4]):e(t[1],t[2],t[3],t[4]):null}class tl{constructor(){this.values=Object.create(null)}set(e,t){!this.get(e)&&t!==""&&(this.values[e]=t)}get(e,t,n){return n?this.has(e)?this.values[e]:t[n]:this.has(e)?this.values[e]:t}has(e){return e in this.values}alt(e,t,n){for(let r=0;r<n.length;++r)if(t===n[r]){this.set(e,t);break}}integer(e,t){/^-?\d+$/.test(t)&&this.set(e,parseInt(t,10))}percent(e,t){if(/^([\d]{1,3})(\.[\d]*)?%$/.test(t)){const n=parseFloat(t);if(n>=0&&n<=100)return this.set(e,n),!0}return!1}}function Eo(a,e,t,n){const r=n?a.split(n):[a];for(const i in r){if(typeof r[i]!="string")continue;const s=r[i].split(t);if(s.length!==2)continue;const u=s[0],f=s[1];e(u,f)}}const io=new ro(0,0,""),Fa=io.align==="middle"?"middle":"center";function nl(a,e,t){const n=a;function r(){const u=xo(a);if(u===null)throw new Error("Malformed timestamp: "+n);return a=a.replace(/^[^\sa-zA-Z-]+/,""),u}function i(u,f){const p=new tl;Eo(u,function(G,ue){let se;switch(G){case"region":for(let ge=t.length-1;ge>=0;ge--)if(t[ge].id===ue){p.set(G,t[ge].region);break}break;case"vertical":p.alt(G,ue,["rl","lr"]);break;case"line":se=ue.split(","),p.integer(G,se[0]),p.percent(G,se[0])&&p.set("snapToLines",!1),p.alt(G,se[0],["auto"]),se.length===2&&p.alt("lineAlign",se[1],["start",Fa,"end"]);break;case"position":se=ue.split(","),p.percent(G,se[0]),se.length===2&&p.alt("positionAlign",se[1],["start",Fa,"end","line-left","line-right","auto"]);break;case"size":p.percent(G,ue);break;case"align":p.alt(G,ue,["start",Fa,"end","left","right"]);break}},/:/,/\s/),f.region=p.get("region",null),f.vertical=p.get("vertical","");let E=p.get("line","auto");E==="auto"&&io.line===-1&&(E=-1),f.line=E,f.lineAlign=p.get("lineAlign","start"),f.snapToLines=p.get("snapToLines",!0),f.size=p.get("size",100),f.align=p.get("align",Fa);let R=p.get("position","auto");R==="auto"&&io.position===50&&(R=f.align==="start"||f.align==="left"?0:f.align==="end"||f.align==="right"?100:50),f.position=R}function s(){a=a.replace(/^\s+/,"")}if(s(),e.startTime=r(),s(),a.slice(0,3)!=="-->")throw new Error("Malformed time stamp (time stamps must be separated by '-->'): "+n);a=a.slice(3),s(),e.endTime=r(),s(),i(a,e)}function wo(a){return a.replace(/<br(?: \/)?>/gi,`
`)}class rl{constructor(){this.state="INITIAL",this.buffer="",this.decoder=new el,this.regionList=[],this.cue=null,this.oncue=void 0,this.onparsingerror=void 0,this.onflush=void 0}parse(e){const t=this;e&&(t.buffer+=t.decoder.decode(e,{stream:!0}));function n(){let i=t.buffer,s=0;for(i=wo(i);s<i.length&&i[s]!=="\r"&&i[s]!==`
`;)++s;const u=i.slice(0,s);return i[s]==="\r"&&++s,i[s]===`
`&&++s,t.buffer=i.slice(s),u}function r(i){Eo(i,function(s,u){},/:/)}try{let i="";if(t.state==="INITIAL"){if(!/\r\n|\n/.test(t.buffer))return this;i=n();const u=i.match(/^()?WEBVTT([ \t].*)?$/);if(!(u!=null&&u[0]))throw new Error("Malformed WebVTT signature.");t.state="HEADER"}let s=!1;for(;t.buffer;){if(!/\r\n|\n/.test(t.buffer))return this;switch(s?s=!1:i=n(),t.state){case"HEADER":/:/.test(i)?r(i):i||(t.state="ID");continue;case"NOTE":i||(t.state="ID");continue;case"ID":if(/^NOTE($|[ \t])/.test(i)){t.state="NOTE";break}if(!i)continue;if(t.cue=new ro(0,0,""),t.state="CUE",i.indexOf("-->")===-1){t.cue.id=i;continue}case"CUE":if(!t.cue){t.state="BADCUE";continue}try{nl(i,t.cue,t.regionList)}catch(u){t.cue=null,t.state="BADCUE";continue}t.state="CUETEXT";continue;case"CUETEXT":{const u=i.indexOf("-->")!==-1;if(!i||u&&(s=!0)){t.oncue&&t.cue&&t.oncue(t.cue),t.cue=null,t.state="ID";continue}if(t.cue===null)continue;t.cue.text&&(t.cue.text+=`
`),t.cue.text+=i}continue;case"BADCUE":i||(t.state="ID")}}}catch(i){t.state==="CUETEXT"&&t.cue&&t.oncue&&t.oncue(t.cue),t.cue=null,t.state=t.state==="INITIAL"?"BADWEBVTT":"BADCUE"}return this}flush(){const e=this;try{if((e.cue||e.state==="HEADER")&&(e.buffer+=`
`,e.parse()),e.state==="INITIAL"||e.state==="BADWEBVTT")throw new Error("Malformed WebVTT signature.")}catch(t){e.onparsingerror&&e.onparsingerror(t)}return e.onflush&&e.onflush(),this}}const il=/\r\n|\n\r|\n|\r/g,so=function(e,t,n=0){return e.slice(n,n+t.length)===t},sl=function(e){let t=parseInt(e.slice(-3));const n=parseInt(e.slice(-6,-4)),r=parseInt(e.slice(-9,-7)),i=e.length>9?parseInt(e.substring(0,e.indexOf(":"))):0;if(!L(t)||!L(n)||!L(r)||!L(i))throw Error(`Malformed X-TIMESTAMP-MAP: Local:${e}`);return t+=1e3*n,t+=60*1e3*r,t+=60*60*1e3*i,t},ao=function(e){let t=5381,n=e.length;for(;n;)t=t*33^e.charCodeAt(--n);return(t>>>0).toString()};function oo(a,e,t){return ao(a.toString())+ao(e.toString())+ao(t)}const al=function(e,t,n){let r=e[t],i=e[r.prevCC];if(!i||!i.new&&r.new){e.ccOffset=e.presentationOffset=r.start,r.new=!1;return}for(;(s=i)!=null&&s.new;){var s;e.ccOffset+=r.start-i.start,r.new=!1,r=i,i=e[r.prevCC]}e.presentationOffset=n};function ol(a,e,t,n,r,i,s){const u=new rl,f=Ye(new Uint8Array(a)).trim().replace(il,`
`).split(`
`),p=[],E=e?Oa(e.baseTime,e.timescale):0;let R="00:00.000",G=0,ue=0,se,ge=!0;u.oncue=function(Ae){const Ve=t[n];let vt=t.ccOffset;const pt=(G-E)/9e4;if(Ve!=null&&Ve.new&&(ue!==void 0?vt=t.ccOffset=Ve.start:al(t,n,pt)),pt){if(!e){se=new Error("Missing initPTS for VTT MPEGTS");return}vt=pt-t.presentationOffset}const $t=Ae.endTime-Ae.startTime,St=Mi((Ae.startTime+vt-ue)*9e4,r*9e4)/9e4;Ae.startTime=Math.max(St,0),Ae.endTime=Math.max(St+$t,0);const an=Ae.text.trim();Ae.text=decodeURIComponent(encodeURIComponent(an)),Ae.id||(Ae.id=oo(Ae.startTime,Ae.endTime,an)),Ae.endTime>0&&p.push(Ae)},u.onparsingerror=function(Ae){se=Ae},u.onflush=function(){if(se){s(se);return}i(p)},f.forEach(Ae=>{if(ge)if(so(Ae,"X-TIMESTAMP-MAP=")){ge=!1,Ae.slice(16).split(",").forEach(Ve=>{so(Ve,"LOCAL:")?R=Ve.slice(6):so(Ve,"MPEGTS:")&&(G=parseInt(Ve.slice(7)))});try{ue=sl(R)/1e3}catch(Ve){se=Ve}return}else Ae===""&&(ge=!1);u.parse(Ae+`
`)}),u.flush()}const lo="stpp.ttml.im1t",So=/^(\d{2,}):(\d{2}):(\d{2}):(\d{2})\.?(\d+)?$/,Ao=/^(\d*(?:\.\d*)?)(h|m|s|ms|f|t)$/,ll={left:"start",center:"center",right:"end",start:"start",end:"end"};function Co(a,e,t,n){const r=ke(new Uint8Array(a),["mdat"]);if(r.length===0){n(new Error("Could not parse IMSC1 mdat"));return}const i=r.map(u=>Ye(u)),s=Ja(e.baseTime,1,e.timescale);try{i.forEach(u=>t(ul(u,s)))}catch(u){n(u)}}function ul(a,e){const r=new DOMParser().parseFromString(a,"text/xml").getElementsByTagName("tt")[0];if(!r)throw new Error("Invalid ttml");const i={frameRate:30,subFrameRate:1,frameRateMultiplier:0,tickRate:0},s=Object.keys(i).reduce((R,G)=>(R[G]=r.getAttribute(`ttp:${G}`)||i[G],R),{}),u=r.getAttribute("xml:space")!=="preserve",f=To(uo(r,"styling","style")),p=To(uo(r,"layout","region")),E=uo(r,"body","[begin]");return[].map.call(E,R=>{const G=Do(R,u);if(!G||!R.hasAttribute("begin"))return null;const ue=ho(R.getAttribute("begin"),s),se=ho(R.getAttribute("dur"),s);let ge=ho(R.getAttribute("end"),s);if(ue===null)throw Ro(R);if(ge===null){if(se===null)throw Ro(R);ge=ue+se}const Ae=new ro(ue-e,ge-e,G);Ae.id=oo(Ae.startTime,Ae.endTime,Ae.text);const Ve=p[R.getAttribute("region")],vt=f[R.getAttribute("style")],pt=cl(Ve,vt,f),{textAlign:$t}=pt;if($t){const St=ll[$t];St&&(Ae.lineAlign=St),Ae.align=$t}return o(Ae,pt),Ae}).filter(R=>R!==null)}function uo(a,e,t){const n=a.getElementsByTagName(e)[0];return n?[].slice.call(n.querySelectorAll(t)):[]}function To(a){return a.reduce((e,t)=>{const n=t.getAttribute("xml:id");return n&&(e[n]=t),e},{})}function Do(a,e){return[].slice.call(a.childNodes).reduce((t,n,r)=>{var i;return n.nodeName==="br"&&r?t+`
`:(i=n.childNodes)!=null&&i.length?Do(n,e):e?t+n.textContent.trim().replace(/\s+/g," "):t+n.textContent},"")}function cl(a,e,t){const n="http://www.w3.org/ns/ttml#styling";let r=null;const i=["displayAlign","textAlign","color","backgroundColor","fontSize","fontFamily"],s=a!=null&&a.hasAttribute("style")?a.getAttribute("style"):null;return s&&t.hasOwnProperty(s)&&(r=t[s]),i.reduce((u,f)=>{const p=co(e,n,f)||co(a,n,f)||co(r,n,f);return p&&(u[f]=p),u},{})}function co(a,e,t){return a&&a.hasAttributeNS(e,t)?a.getAttributeNS(e,t):null}function Ro(a){return new Error(`Could not parse ttml timestamp ${a}`)}function ho(a,e){if(!a)return null;let t=xo(a);return t===null&&(So.test(a)?t=dl(a,e):Ao.test(a)&&(t=hl(a,e))),t}function dl(a,e){const t=So.exec(a),n=(t[4]|0)+(t[5]|0)/e.subFrameRate;return(t[1]|0)*3600+(t[2]|0)*60+(t[3]|0)+n/e.frameRate}function hl(a,e){const t=Ao.exec(a),n=Number(t[1]);switch(t[2]){case"h":return n*3600;case"m":return n*60;case"ms":return n*1e3;case"f":return n/e.frameRate;case"t":return n/e.tickRate}return n}class fl{constructor(e){this.hls=void 0,this.media=null,this.config=void 0,this.enabled=!0,this.Cues=void 0,this.textTracks=[],this.tracks=[],this.initPTS=[],this.unparsedVttFrags=[],this.captionsTracks={},this.nonNativeCaptionsTracks={},this.cea608Parser1=void 0,this.cea608Parser2=void 0,this.lastCc=-1,this.lastSn=-1,this.lastPartIndex=-1,this.prevCC=-1,this.vttCCs=Oo(),this.captionsProperties=void 0,this.hls=e,this.config=e.config,this.Cues=e.config.cueHandler,this.captionsProperties={textTrack1:{label:this.config.captionsTextTrack1Label,languageCode:this.config.captionsTextTrack1LanguageCode},textTrack2:{label:this.config.captionsTextTrack2Label,languageCode:this.config.captionsTextTrack2LanguageCode},textTrack3:{label:this.config.captionsTextTrack3Label,languageCode:this.config.captionsTextTrack3LanguageCode},textTrack4:{label:this.config.captionsTextTrack4Label,languageCode:this.config.captionsTextTrack4LanguageCode}},e.on(c.MEDIA_ATTACHING,this.onMediaAttaching,this),e.on(c.MEDIA_DETACHING,this.onMediaDetaching,this),e.on(c.MANIFEST_LOADING,this.onManifestLoading,this),e.on(c.MANIFEST_LOADED,this.onManifestLoaded,this),e.on(c.SUBTITLE_TRACKS_UPDATED,this.onSubtitleTracksUpdated,this),e.on(c.FRAG_LOADING,this.onFragLoading,this),e.on(c.FRAG_LOADED,this.onFragLoaded,this),e.on(c.FRAG_PARSING_USERDATA,this.onFragParsingUserdata,this),e.on(c.FRAG_DECRYPTED,this.onFragDecrypted,this),e.on(c.INIT_PTS_FOUND,this.onInitPtsFound,this),e.on(c.SUBTITLE_TRACKS_CLEARED,this.onSubtitleTracksCleared,this),e.on(c.BUFFER_FLUSHING,this.onBufferFlushing,this)}destroy(){const{hls:e}=this;e.off(c.MEDIA_ATTACHING,this.onMediaAttaching,this),e.off(c.MEDIA_DETACHING,this.onMediaDetaching,this),e.off(c.MANIFEST_LOADING,this.onManifestLoading,this),e.off(c.MANIFEST_LOADED,this.onManifestLoaded,this),e.off(c.SUBTITLE_TRACKS_UPDATED,this.onSubtitleTracksUpdated,this),e.off(c.FRAG_LOADING,this.onFragLoading,this),e.off(c.FRAG_LOADED,this.onFragLoaded,this),e.off(c.FRAG_PARSING_USERDATA,this.onFragParsingUserdata,this),e.off(c.FRAG_DECRYPTED,this.onFragDecrypted,this),e.off(c.INIT_PTS_FOUND,this.onInitPtsFound,this),e.off(c.SUBTITLE_TRACKS_CLEARED,this.onSubtitleTracksCleared,this),e.off(c.BUFFER_FLUSHING,this.onBufferFlushing,this),this.hls=this.config=null,this.cea608Parser1=this.cea608Parser2=void 0}initCea608Parsers(){if(this.config.enableCEA708Captions&&(!this.cea608Parser1||!this.cea608Parser2)){const e=new Na(this,"textTrack1"),t=new Na(this,"textTrack2"),n=new Na(this,"textTrack3"),r=new Na(this,"textTrack4");this.cea608Parser1=new va(1,e,t),this.cea608Parser2=new va(3,n,r)}}addCues(e,t,n,r,i){let s=!1;for(let u=i.length;u--;){const f=i[u],p=ml(f[0],f[1],t,n);if(p>=0&&(f[0]=Math.min(f[0],t),f[1]=Math.max(f[1],n),s=!0,p/(n-t)>.5))return}if(s||i.push([t,n]),this.config.renderTextTracksNatively){const u=this.captionsTracks[e];this.Cues.newCue(u,t,n,r)}else{const u=this.Cues.newCue(null,t,n,r);this.hls.trigger(c.CUES_PARSED,{type:"captions",cues:u,track:e})}}onInitPtsFound(e,{frag:t,id:n,initPTS:r,timescale:i}){const{unparsedVttFrags:s}=this;n==="main"&&(this.initPTS[t.cc]={baseTime:r,timescale:i}),s.length&&(this.unparsedVttFrags=[],s.forEach(u=>{this.onFragLoaded(c.FRAG_LOADED,u)}))}getExistingTrack(e,t){const{media:n}=this;if(n)for(let r=0;r<n.textTracks.length;r++){const i=n.textTracks[r];if(Lo(i,{name:e,lang:t,attrs:{}}))return i}return null}createCaptionsTrack(e){this.config.renderTextTracksNatively?this.createNativeTrack(e):this.createNonNativeTrack(e)}createNativeTrack(e){if(this.captionsTracks[e])return;const{captionsProperties:t,captionsTracks:n,media:r}=this,{label:i,languageCode:s}=t[e],u=this.getExistingTrack(i,s);if(u)n[e]=u,lr(n[e]),Gn(n[e],r);else{const f=this.createTextTrack("captions",i,s);f&&(f[e]=!0,n[e]=f)}}createNonNativeTrack(e){if(this.nonNativeCaptionsTracks[e])return;const t=this.captionsProperties[e];if(!t)return;const n=t.label,r={_id:e,label:n,kind:"captions",default:t.media?!!t.media.default:!1,closedCaptions:t.media};this.nonNativeCaptionsTracks[e]=r,this.hls.trigger(c.NON_NATIVE_TEXT_TRACKS_FOUND,{tracks:[r]})}createTextTrack(e,t,n){const r=this.media;if(r)return r.addTextTrack(e,t,n)}onMediaAttaching(e,t){this.media=t.media,this._cleanTracks()}onMediaDetaching(){const{captionsTracks:e}=this;Object.keys(e).forEach(t=>{lr(e[t]),delete e[t]}),this.nonNativeCaptionsTracks={}}onManifestLoading(){this.lastCc=-1,this.lastSn=-1,this.lastPartIndex=-1,this.prevCC=-1,this.vttCCs=Oo(),this._cleanTracks(),this.tracks=[],this.captionsTracks={},this.nonNativeCaptionsTracks={},this.textTracks=[],this.unparsedVttFrags=[],this.initPTS=[],this.cea608Parser1&&this.cea608Parser2&&(this.cea608Parser1.reset(),this.cea608Parser2.reset())}_cleanTracks(){const{media:e}=this;if(!e)return;const t=e.textTracks;if(t)for(let n=0;n<t.length;n++)lr(t[n])}onSubtitleTracksUpdated(e,t){const n=t.subtitleTracks||[],r=n.some(i=>i.textCodec===lo);if(this.config.enableWebVTT||r&&this.config.enableIMSC1){if(pr(this.tracks,n)){this.tracks=n;return}if(this.textTracks=[],this.tracks=n,this.config.renderTextTracksNatively){const s=this.media,u=s?tn(s.textTracks):null;if(this.tracks.forEach((f,p)=>{let E;if(u){let R=null;for(let G=0;G<u.length;G++)if(u[G]&&Lo(u[G],f)){R=u[G],u[G]=null;break}R&&(E=R)}if(E)lr(E);else{const R=Io(f);E=this.createTextTrack(R,f.name,f.lang),E&&(E.mode="disabled")}E&&this.textTracks.push(E)}),u!=null&&u.length){const f=u.filter(p=>p!==null).map(p=>p.label);f.length&&b.warn(`Media element contains unused subtitle tracks: ${f.join(", ")}. Replace media element for each source to clear TextTracks and captions menu.`)}}else if(this.tracks.length){const s=this.tracks.map(u=>({label:u.name,kind:u.type.toLowerCase(),default:u.default,subtitleTrack:u}));this.hls.trigger(c.NON_NATIVE_TEXT_TRACKS_FOUND,{tracks:s})}}}onManifestLoaded(e,t){this.config.enableCEA708Captions&&t.captions&&t.captions.forEach(n=>{const r=/(?:CC|SERVICE)([1-4])/.exec(n.instreamId);if(!r)return;const i=`textTrack${r[1]}`,s=this.captionsProperties[i];s&&(s.label=n.name,n.lang&&(s.languageCode=n.lang),s.media=n)})}closedCaptionsForLevel(e){const t=this.hls.levels[e.level];return t==null?void 0:t.attrs["CLOSED-CAPTIONS"]}onFragLoading(e,t){if(this.enabled&&t.frag.type===Ge.MAIN){var n,r;const{cea608Parser1:i,cea608Parser2:s,lastSn:u}=this,{cc:f,sn:p}=t.frag,E=(n=(r=t.part)==null?void 0:r.index)!=null?n:-1;i&&s&&(p!==u+1||p===u&&E!==this.lastPartIndex+1||f!==this.lastCc)&&(i.reset(),s.reset()),this.lastCc=f,this.lastSn=p,this.lastPartIndex=E}}onFragLoaded(e,t){const{frag:n,payload:r}=t;if(n.type===Ge.SUBTITLE)if(r.byteLength){const i=n.decryptdata,s="stats"in t;if(i==null||!i.encrypted||s){const u=this.tracks[n.level],f=this.vttCCs;f[n.cc]||(f[n.cc]={start:n.start,prevCC:this.prevCC,new:!0},this.prevCC=n.cc),u&&u.textCodec===lo?this._parseIMSC1(n,r):this._parseVTTs(t)}}else this.hls.trigger(c.SUBTITLE_FRAG_PROCESSED,{success:!1,frag:n,error:new Error("Empty subtitle payload")})}_parseIMSC1(e,t){const n=this.hls;Co(t,this.initPTS[e.cc],r=>{this._appendCues(r,e.level),n.trigger(c.SUBTITLE_FRAG_PROCESSED,{success:!0,frag:e})},r=>{b.log(`Failed to parse IMSC1: ${r}`),n.trigger(c.SUBTITLE_FRAG_PROCESSED,{success:!1,frag:e,error:r})})}_parseVTTs(e){var t;const{frag:n,payload:r}=e,{initPTS:i,unparsedVttFrags:s}=this,u=i.length-1;if(!i[n.cc]&&u===-1){s.push(e);return}const f=this.hls,p=(t=n.initSegment)!=null&&t.data?ot(n.initSegment.data,new Uint8Array(r)):r;ol(p,this.initPTS[n.cc],this.vttCCs,n.cc,n.start,E=>{this._appendCues(E,n.level),f.trigger(c.SUBTITLE_FRAG_PROCESSED,{success:!0,frag:n})},E=>{const R=E.message==="Missing initPTS for VTT MPEGTS";R?s.push(e):this._fallbackToIMSC1(n,r),b.log(`Failed to parse VTT cue: ${E}`),!(R&&u>n.cc)&&f.trigger(c.SUBTITLE_FRAG_PROCESSED,{success:!1,frag:n,error:E})})}_fallbackToIMSC1(e,t){const n=this.tracks[e.level];n.textCodec||Co(t,this.initPTS[e.cc],()=>{n.textCodec=lo,this._parseIMSC1(e,t)},()=>{n.textCodec="wvtt"})}_appendCues(e,t){const n=this.hls;if(this.config.renderTextTracksNatively){const r=this.textTracks[t];if(!r||r.mode==="disabled")return;e.forEach(i=>ir(r,i))}else{const r=this.tracks[t];if(!r)return;const i=r.default?"default":"subtitles"+t;n.trigger(c.CUES_PARSED,{type:"subtitles",cues:e,track:i})}}onFragDecrypted(e,t){const{frag:n}=t;n.type===Ge.SUBTITLE&&this.onFragLoaded(c.FRAG_LOADED,t)}onSubtitleTracksCleared(){this.tracks=[],this.captionsTracks={}}onFragParsingUserdata(e,t){this.initCea608Parsers();const{cea608Parser1:n,cea608Parser2:r}=this;if(!this.enabled||!n||!r)return;const{frag:i,samples:s}=t;if(!(i.type===Ge.MAIN&&this.closedCaptionsForLevel(i)==="NONE"))for(let u=0;u<s.length;u++){const f=s[u].bytes;if(f){const p=this.extractCea608Data(f);n.addData(s[u].pts,p[0]),r.addData(s[u].pts,p[1])}}}onBufferFlushing(e,{startOffset:t,endOffset:n,endOffsetSubtitles:r,type:i}){const{media:s}=this;if(!(!s||s.currentTime<n)){if(!i||i==="video"){const{captionsTracks:u}=this;Object.keys(u).forEach(f=>Nn(u[f],t,n))}if(this.config.renderTextTracksNatively&&t===0&&r!==void 0){const{textTracks:u}=this;Object.keys(u).forEach(f=>Nn(u[f],t,r))}}}extractCea608Data(e){const t=[[],[]],n=e[0]&31;let r=2;for(let i=0;i<n;i++){const s=e[r++],u=127&e[r++],f=127&e[r++];if(u===0&&f===0)continue;if((4&s)!==0){const E=3&s;(E===0||E===1)&&(t[E].push(u),t[E].push(f))}}return t}}function Io(a){return a.characteristics&&/transcribes-spoken-dialog/gi.test(a.characteristics)&&/describes-music-and-sound/gi.test(a.characteristics)?"captions":"subtitles"}function Lo(a,e){return!!a&&a.kind===Io(e)&&jr(e,a)}function ml(a,e,t,n){return Math.min(e,n)-Math.max(a,t)}function Oo(){return{ccOffset:0,presentationOffset:0,0:{start:0,prevCC:-1,new:!0}}}class fo{constructor(e){this.hls=void 0,this.autoLevelCapping=void 0,this.firstLevel=void 0,this.media=void 0,this.restrictedLevels=void 0,this.timer=void 0,this.clientRect=void 0,this.streamController=void 0,this.hls=e,this.autoLevelCapping=Number.POSITIVE_INFINITY,this.firstLevel=-1,this.media=null,this.restrictedLevels=[],this.timer=void 0,this.clientRect=null,this.registerListeners()}setStreamController(e){this.streamController=e}destroy(){this.hls&&this.unregisterListener(),this.timer&&this.stopCapping(),this.media=null,this.clientRect=null,this.hls=this.streamController=null}registerListeners(){const{hls:e}=this;e.on(c.FPS_DROP_LEVEL_CAPPING,this.onFpsDropLevelCapping,this),e.on(c.MEDIA_ATTACHING,this.onMediaAttaching,this),e.on(c.MANIFEST_PARSED,this.onManifestParsed,this),e.on(c.LEVELS_UPDATED,this.onLevelsUpdated,this),e.on(c.BUFFER_CODECS,this.onBufferCodecs,this),e.on(c.MEDIA_DETACHING,this.onMediaDetaching,this)}unregisterListener(){const{hls:e}=this;e.off(c.FPS_DROP_LEVEL_CAPPING,this.onFpsDropLevelCapping,this),e.off(c.MEDIA_ATTACHING,this.onMediaAttaching,this),e.off(c.MANIFEST_PARSED,this.onManifestParsed,this),e.off(c.LEVELS_UPDATED,this.onLevelsUpdated,this),e.off(c.BUFFER_CODECS,this.onBufferCodecs,this),e.off(c.MEDIA_DETACHING,this.onMediaDetaching,this)}onFpsDropLevelCapping(e,t){const n=this.hls.levels[t.droppedLevel];this.isLevelAllowed(n)&&this.restrictedLevels.push({bitrate:n.bitrate,height:n.height,width:n.width})}onMediaAttaching(e,t){this.media=t.media instanceof HTMLVideoElement?t.media:null,this.clientRect=null,this.timer&&this.hls.levels.length&&this.detectPlayerSize()}onManifestParsed(e,t){const n=this.hls;this.restrictedLevels=[],this.firstLevel=t.firstLevel,n.config.capLevelToPlayerSize&&t.video&&this.startCapping()}onLevelsUpdated(e,t){this.timer&&L(this.autoLevelCapping)&&this.detectPlayerSize()}onBufferCodecs(e,t){this.hls.config.capLevelToPlayerSize&&t.video&&this.startCapping()}onMediaDetaching(){this.stopCapping()}detectPlayerSize(){if(this.media){if(this.mediaHeight<=0||this.mediaWidth<=0){this.clientRect=null;return}const e=this.hls.levels;if(e.length){const t=this.hls,n=this.getMaxLevel(e.length-1);n!==this.autoLevelCapping&&b.log(`Setting autoLevelCapping to ${n}: ${e[n].height}p@${e[n].bitrate} for media ${this.mediaWidth}x${this.mediaHeight}`),t.autoLevelCapping=n,t.autoLevelCapping>this.autoLevelCapping&&this.streamController&&this.streamController.nextLevelSwitch(),this.autoLevelCapping=t.autoLevelCapping}}}getMaxLevel(e){const t=this.hls.levels;if(!t.length)return-1;const n=t.filter((r,i)=>this.isLevelAllowed(r)&&i<=e);return this.clientRect=null,fo.getMaxLevelByMediaSize(n,this.mediaWidth,this.mediaHeight)}startCapping(){this.timer||(this.autoLevelCapping=Number.POSITIVE_INFINITY,self.clearInterval(this.timer),this.timer=self.setInterval(this.detectPlayerSize.bind(this),1e3),this.detectPlayerSize())}stopCapping(){this.restrictedLevels=[],this.firstLevel=-1,this.autoLevelCapping=Number.POSITIVE_INFINITY,this.timer&&(self.clearInterval(this.timer),this.timer=void 0)}getDimensions(){if(this.clientRect)return this.clientRect;const e=this.media,t={width:0,height:0};if(e){const n=e.getBoundingClientRect();t.width=n.width,t.height=n.height,!t.width&&!t.height&&(t.width=n.right-n.left||e.width||0,t.height=n.bottom-n.top||e.height||0)}return this.clientRect=t,t}get mediaWidth(){return this.getDimensions().width*this.contentScaleFactor}get mediaHeight(){return this.getDimensions().height*this.contentScaleFactor}get contentScaleFactor(){let e=1;if(!this.hls.config.ignoreDevicePixelRatio)try{e=self.devicePixelRatio}catch(t){}return e}isLevelAllowed(e){return!this.restrictedLevels.some(n=>e.bitrate===n.bitrate&&e.width===n.width&&e.height===n.height)}static getMaxLevelByMediaSize(e,t,n){if(!(e!=null&&e.length))return-1;const r=(u,f)=>f?u.width!==f.width||u.height!==f.height:!0;let i=e.length-1;const s=Math.max(t,n);for(let u=0;u<e.length;u+=1){const f=e[u];if((f.width>=s||f.height>=s)&&r(f,e[u+1])){i=u;break}}return i}}class pl{constructor(e){this.hls=void 0,this.isVideoPlaybackQualityAvailable=!1,this.timer=void 0,this.media=null,this.lastTime=void 0,this.lastDroppedFrames=0,this.lastDecodedFrames=0,this.streamController=void 0,this.hls=e,this.registerListeners()}setStreamController(e){this.streamController=e}registerListeners(){this.hls.on(c.MEDIA_ATTACHING,this.onMediaAttaching,this)}unregisterListeners(){this.hls.off(c.MEDIA_ATTACHING,this.onMediaAttaching,this)}destroy(){this.timer&&clearInterval(this.timer),this.unregisterListeners(),this.isVideoPlaybackQualityAvailable=!1,this.media=null}onMediaAttaching(e,t){const n=this.hls.config;if(n.capLevelOnFPSDrop){const r=t.media instanceof self.HTMLVideoElement?t.media:null;this.media=r,r&&typeof r.getVideoPlaybackQuality=="function"&&(this.isVideoPlaybackQualityAvailable=!0),self.clearInterval(this.timer),this.timer=self.setInterval(this.checkFPSInterval.bind(this),n.fpsDroppedMonitoringPeriod)}}checkFPS(e,t,n){const r=performance.now();if(t){if(this.lastTime){const i=r-this.lastTime,s=n-this.lastDroppedFrames,u=t-this.lastDecodedFrames,f=1e3*s/i,p=this.hls;if(p.trigger(c.FPS_DROP,{currentDropped:s,currentDecoded:u,totalDroppedFrames:n}),f>0&&s>p.config.fpsDroppedMonitoringThreshold*u){let E=p.currentLevel;b.warn("drop FPS ratio greater than max allowed value for currentLevel: "+E),E>0&&(p.autoLevelCapping===-1||p.autoLevelCapping>=E)&&(E=E-1,p.trigger(c.FPS_DROP_LEVEL_CAPPING,{level:E,droppedLevel:p.currentLevel}),p.autoLevelCapping=E,this.streamController.nextLevelSwitch())}}this.lastTime=r,this.lastDroppedFrames=n,this.lastDecodedFrames=t}}checkFPSInterval(){const e=this.media;if(e)if(this.isVideoPlaybackQualityAvailable){const t=e.getVideoPlaybackQuality();this.checkFPS(e,t.totalVideoFrames,t.droppedVideoFrames)}else this.checkFPS(e,e.webkitDecodedFrameCount,e.webkitDroppedFrameCount)}}const za="[eme]";class Js{constructor(e){this.hls=void 0,this.config=void 0,this.media=null,this.keyFormatPromise=null,this.keySystemAccessPromises={},this._requestLicenseFailureCount=0,this.mediaKeySessions=[],this.keyIdToKeySessionPromise={},this.setMediaKeysQueue=Js.CDMCleanupPromise?[Js.CDMCleanupPromise]:[],this.debug=b.debug.bind(b,za),this.log=b.log.bind(b,za),this.warn=b.warn.bind(b,za),this.error=b.error.bind(b,za),this.onMediaEncrypted=t=>{const{initDataType:n,initData:r}=t,i=`"${t.type}" event: init data type: "${n}"`;if(this.debug(i),r!==null){if(!this.keyFormatPromise){let s=Object.keys(this.keySystemAccessPromises);s.length||(s=Ut(this.config));const u=s.map(Ot).filter(f=>!!f);this.keyFormatPromise=this.getKeyFormatPromise(u)}this.keyFormatPromise.then(s=>{const u=lt(s);let f,p;if(n==="sinf"){if(u!==Xe.FAIRPLAY){this.warn(`Ignoring unexpected "${t.type}" event with init data type: "${n}" for selected key-system ${u}`);return}const se=Ct(new Uint8Array(r));try{const ge=g(JSON.parse(se).sinf),Ae=kt(ge);if(!Ae)throw new Error("'schm' box missing or not cbcs/cenc with schi > tenc");f=Ae.subarray(8,24),p=Xe.FAIRPLAY}catch(ge){this.warn(`${i} Failed to parse sinf: ${ge}`);return}}else{if(u!==Xe.WIDEVINE&&u!==Xe.PLAYREADY){this.warn(`Ignoring unexpected "${t.type}" event with init data type: "${n}" for selected key-system ${u}`);return}const se=yt(r),ge=se.filter(Ve=>!!Ve.systemId&&ct(Ve.systemId)===u);ge.length>1&&this.warn(`${i} Using first of ${ge.length} pssh found for selected key-system ${u}`);const Ae=ge[0];if(!Ae){se.length===0||se.some(Ve=>!Ve.systemId)?this.warn(`${i} contains incomplete or invalid pssh data`):this.log(`ignoring ${i} for ${se.map(Ve=>ct(Ve.systemId)).join(",")} pssh data in favor of playlist keys`);return}if(p=ct(Ae.systemId),Ae.version===0&&Ae.data)if(p===Xe.WIDEVINE){const Ve=Ae.data.length-22;f=Ae.data.subarray(Ve,Ve+16)}else p===Xe.PLAYREADY&&(f=Et(Ae.data))}if(!p||!f){this.log(`Unable to handle ${i} with key-system ${u}`);return}const E=dt.hexDump(f),{keyIdToKeySessionPromise:R,mediaKeySessions:G}=this;let ue=R[E];for(let se=0;se<G.length;se++){const ge=G[se],Ae=ge.decryptdata;if(!Ae.keyId)continue;const Ve=dt.hexDump(Ae.keyId);if(E===Ve||Ae.uri.replace(/-/g,"").indexOf(E)!==-1){if(ue=R[Ve],Ae.pssh)break;delete R[Ve],Ae.pssh=new Uint8Array(r),Ae.keyId=f,ue=R[E]=ue.then(()=>this.generateRequestWithPreferredKeySession(ge,n,r,"encrypted-event-key-match")),ue.catch(vt=>this.handleError(vt));break}}if(!ue){if(p!==u){this.log(`Ignoring "${i}" with ${p} init data for selected key-system ${u}`);return}ue=R[E]=this.getKeySystemSelectionPromise([p]).then(({keySystem:se,mediaKeys:ge})=>{var Ae;this.throwIfDestroyed();const Ve=new Pt("ISO-23001-7",E,(Ae=Ot(se))!=null?Ae:"");return Ve.pssh=new Uint8Array(r),Ve.keyId=f,this.attemptSetMediaKeys(se,ge).then(()=>{this.throwIfDestroyed();const vt=this.createMediaKeySessionContext({decryptdata:Ve,keySystem:se,mediaKeys:ge});return this.generateRequestWithPreferredKeySession(vt,n,r,"encrypted-event-no-match")})}),ue.catch(se=>this.handleError(se))}})}},this.onWaitingForKey=t=>{this.log(`"${t.type}" event`)},this.hls=e,this.config=e.config,this.registerListeners()}destroy(){this.unregisterListeners(),this.onMediaDetached();const e=this.config;e.requestMediaKeySystemAccessFunc=null,e.licenseXhrSetup=e.licenseResponseCallback=void 0,e.drmSystems=e.drmSystemOptions={},this.hls=this.config=this.keyIdToKeySessionPromise=null,this.onMediaEncrypted=this.onWaitingForKey=null}registerListeners(){this.hls.on(c.MEDIA_ATTACHED,this.onMediaAttached,this),this.hls.on(c.MEDIA_DETACHED,this.onMediaDetached,this),this.hls.on(c.MANIFEST_LOADING,this.onManifestLoading,this),this.hls.on(c.MANIFEST_LOADED,this.onManifestLoaded,this)}unregisterListeners(){this.hls.off(c.MEDIA_ATTACHED,this.onMediaAttached,this),this.hls.off(c.MEDIA_DETACHED,this.onMediaDetached,this),this.hls.off(c.MANIFEST_LOADING,this.onManifestLoading,this),this.hls.off(c.MANIFEST_LOADED,this.onManifestLoaded,this)}getLicenseServerUrl(e){const{drmSystems:t,widevineLicenseUrl:n}=this.config,r=t[e];if(r)return r.licenseUrl;if(e===Xe.WIDEVINE&&n)return n}getLicenseServerUrlOrThrow(e){const t=this.getLicenseServerUrl(e);if(t===void 0)throw new Error(`no license server URL configured for key-system "${e}"`);return t}getServerCertificateUrl(e){const{drmSystems:t}=this.config,n=t[e];if(n)return n.serverCertificateUrl;this.log(`No Server Certificate in config.drmSystems["${e}"]`)}attemptKeySystemAccess(e){const t=this.hls.levels,n=(s,u,f)=>!!s&&f.indexOf(s)===u,r=t.map(s=>s.audioCodec).filter(n),i=t.map(s=>s.videoCodec).filter(n);return r.length+i.length===0&&i.push("avc1.42e01e"),new Promise((s,u)=>{const f=p=>{const E=p.shift();this.getMediaKeysPromise(E,r,i).then(R=>s({keySystem:E,mediaKeys:R})).catch(R=>{p.length?f(p):R instanceof Vi?u(R):u(new Vi({type:S.KEY_SYSTEM_ERROR,details:y.KEY_SYSTEM_NO_ACCESS,error:R,fatal:!0},R.message))})};f(e)})}requestMediaKeySystemAccess(e,t){const{requestMediaKeySystemAccessFunc:n}=this.config;if(typeof n!="function"){let r=`Configured requestMediaKeySystemAccess is not a function ${n}`;return un===null&&self.location.protocol==="http:"&&(r=`navigator.requestMediaKeySystemAccess is not available over insecure protocol ${location.protocol}`),Promise.reject(new Error(r))}return n(e,t)}getMediaKeysPromise(e,t,n){const r=Ft(e,t,n,this.config.drmSystemOptions),i=this.keySystemAccessPromises[e];let s=i==null?void 0:i.keySystemAccess;if(!s){this.log(`Requesting encrypted media "${e}" key-system access with config: ${JSON.stringify(r)}`),s=this.requestMediaKeySystemAccess(e,r);const u=this.keySystemAccessPromises[e]={keySystemAccess:s};return s.catch(f=>{this.log(`Failed to obtain access to key-system "${e}": ${f}`)}),s.then(f=>{this.log(`Access for key-system "${f.keySystem}" obtained`);const p=this.fetchServerCertificate(e);return this.log(`Create media-keys for "${e}"`),u.mediaKeys=f.createMediaKeys().then(E=>(this.log(`Media-keys created for "${e}"`),p.then(R=>R?this.setMediaKeysServerCertificate(E,e,R):E))),u.mediaKeys.catch(E=>{this.error(`Failed to create media-keys for "${e}"}: ${E}`)}),u.mediaKeys})}return s.then(()=>i.mediaKeys)}createMediaKeySessionContext({decryptdata:e,keySystem:t,mediaKeys:n}){this.log(`Creating key-system session "${t}" keyId: ${dt.hexDump(e.keyId||[])}`);const r=n.createSession(),i={decryptdata:e,keySystem:t,mediaKeys:n,mediaKeysSession:r,keyStatus:"status-pending"};return this.mediaKeySessions.push(i),i}renewKeySession(e){const t=e.decryptdata;if(t.pssh){const n=this.createMediaKeySessionContext(e),r=this.getKeyIdString(t),i="cenc";this.keyIdToKeySessionPromise[r]=this.generateRequestWithPreferredKeySession(n,i,t.pssh,"expired")}else this.warn("Could not renew expired session. Missing pssh initData.");this.removeSession(e)}getKeyIdString(e){if(!e)throw new Error("Could not read keyId of undefined decryptdata");if(e.keyId===null)throw new Error("keyId is null");return dt.hexDump(e.keyId)}updateKeySession(e,t){var n;const r=e.mediaKeysSession;return this.log(`Updating key-session "${r.sessionId}" for keyID ${dt.hexDump(((n=e.decryptdata)==null?void 0:n.keyId)||[])}
} (data length: ${t&&t.byteLength})`),r.update(t)}selectKeySystemFormat(e){const t=Object.keys(e.levelkeys||{});return this.keyFormatPromise||(this.log(`Selecting key-system from fragment (sn: ${e.sn} ${e.type}: ${e.level}) key formats ${t.join(", ")}`),this.keyFormatPromise=this.getKeyFormatPromise(t)),this.keyFormatPromise}getKeyFormatPromise(e){return new Promise((t,n)=>{const r=Ut(this.config),i=e.map(lt).filter(s=>!!s&&r.indexOf(s)!==-1);return this.getKeySystemSelectionPromise(i).then(({keySystem:s})=>{const u=Ot(s);u?t(u):n(new Error(`Unable to find format for key-system "${s}"`))}).catch(n)})}loadKey(e){const t=e.keyInfo.decryptdata,n=this.getKeyIdString(t),r=`(keyId: ${n} format: "${t.keyFormat}" method: ${t.method} uri: ${t.uri})`;this.log(`Starting session for key ${r}`);let i=this.keyIdToKeySessionPromise[n];return i||(i=this.keyIdToKeySessionPromise[n]=this.getKeySystemForKeyPromise(t).then(({keySystem:s,mediaKeys:u})=>(this.throwIfDestroyed(),this.log(`Handle encrypted media sn: ${e.frag.sn} ${e.frag.type}: ${e.frag.level} using key ${r}`),this.attemptSetMediaKeys(s,u).then(()=>{this.throwIfDestroyed();const f=this.createMediaKeySessionContext({keySystem:s,mediaKeys:u,decryptdata:t});return this.generateRequestWithPreferredKeySession(f,"cenc",t.pssh,"playlist-key")}))),i.catch(s=>this.handleError(s))),i}throwIfDestroyed(e="Invalid state"){if(!this.hls)throw new Error("invalid state")}handleError(e){this.hls&&(this.error(e.message),e instanceof Vi?this.hls.trigger(c.ERROR,e.data):this.hls.trigger(c.ERROR,{type:S.KEY_SYSTEM_ERROR,details:y.KEY_SYSTEM_NO_KEYS,error:e,fatal:!0}))}getKeySystemForKeyPromise(e){const t=this.getKeyIdString(e),n=this.keyIdToKeySessionPromise[t];if(!n){const r=lt(e.keyFormat),i=r?[r]:Ut(this.config);return this.attemptKeySystemAccess(i)}return n}getKeySystemSelectionPromise(e){if(e.length||(e=Ut(this.config)),e.length===0)throw new Vi({type:S.KEY_SYSTEM_ERROR,details:y.KEY_SYSTEM_NO_CONFIGURED_LICENSE,fatal:!0},`Missing key-system license configuration options ${JSON.stringify({drmSystems:this.config.drmSystems})}`);return this.attemptKeySystemAccess(e)}attemptSetMediaKeys(e,t){const n=this.setMediaKeysQueue.slice();this.log(`Setting media-keys for "${e}"`);const r=Promise.all(n).then(()=>{if(!this.media)throw new Error("Attempted to set mediaKeys without media element attached");return this.media.setMediaKeys(t)});return this.setMediaKeysQueue.push(r),r.then(()=>{this.log(`Media-keys set for "${e}"`),n.push(r),this.setMediaKeysQueue=this.setMediaKeysQueue.filter(i=>n.indexOf(i)===-1)})}generateRequestWithPreferredKeySession(e,t,n,r){var i,s;const u=(i=this.config.drmSystems)==null||(s=i[e.keySystem])==null?void 0:s.generateRequest;if(u)try{const se=u.call(this.hls,t,n,e);if(!se)throw new Error("Invalid response from configured generateRequest filter");t=se.initDataType,n=e.decryptdata.pssh=se.initData?new Uint8Array(se.initData):null}catch(se){var f;if(this.warn(se.message),(f=this.hls)!=null&&f.config.debug)throw se}if(n===null)return this.log(`Skipping key-session request for "${r}" (no initData)`),Promise.resolve(e);const p=this.getKeyIdString(e.decryptdata);this.log(`Generating key-session request for "${r}": ${p} (init data type: ${t} length: ${n?n.byteLength:null})`);const E=new fn,R=e._onmessage=se=>{const ge=e.mediaKeysSession;if(!ge){E.emit("error",new Error("invalid state"));return}const{messageType:Ae,message:Ve}=se;this.log(`"${Ae}" message event for session "${ge.sessionId}" message size: ${Ve.byteLength}`),Ae==="license-request"||Ae==="license-renewal"?this.renewLicense(e,Ve).catch(vt=>{this.handleError(vt),E.emit("error",vt)}):Ae==="license-release"?e.keySystem===Xe.FAIRPLAY&&(this.updateKeySession(e,Pe("acknowledged")),this.removeSession(e)):this.warn(`unhandled media key message type "${Ae}"`)},G=e._onkeystatuseschange=se=>{if(!e.mediaKeysSession){E.emit("error",new Error("invalid state"));return}this.onKeyStatusChange(e);const Ae=e.keyStatus;E.emit("keyStatus",Ae),Ae==="expired"&&(this.warn(`${e.keySystem} expired for key ${p}`),this.renewKeySession(e))};e.mediaKeysSession.addEventListener("message",R),e.mediaKeysSession.addEventListener("keystatuseschange",G);const ue=new Promise((se,ge)=>{E.on("error",ge),E.on("keyStatus",Ae=>{Ae.startsWith("usable")?se():Ae==="output-restricted"?ge(new Vi({type:S.KEY_SYSTEM_ERROR,details:y.KEY_SYSTEM_STATUS_OUTPUT_RESTRICTED,fatal:!1},"HDCP level output restricted")):Ae==="internal-error"?ge(new Vi({type:S.KEY_SYSTEM_ERROR,details:y.KEY_SYSTEM_STATUS_INTERNAL_ERROR,fatal:!0},`key status changed to "${Ae}"`)):Ae==="expired"?ge(new Error("key expired while generating request")):this.warn(`unhandled key status change "${Ae}"`)})});return e.mediaKeysSession.generateRequest(t,n).then(()=>{var se;this.log(`Request generated for key-session "${(se=e.mediaKeysSession)==null?void 0:se.sessionId}" keyId: ${p}`)}).catch(se=>{throw new Vi({type:S.KEY_SYSTEM_ERROR,details:y.KEY_SYSTEM_NO_SESSION,error:se,fatal:!1},`Error generating key-session request: ${se}`)}).then(()=>ue).catch(se=>{throw E.removeAllListeners(),this.removeSession(e),se}).then(()=>(E.removeAllListeners(),e))}onKeyStatusChange(e){e.mediaKeysSession.keyStatuses.forEach((t,n)=>{this.log(`key status change "${t}" for keyStatuses keyId: ${dt.hexDump("buffer"in n?new Uint8Array(n.buffer,n.byteOffset,n.byteLength):new Uint8Array(n))} session keyId: ${dt.hexDump(new Uint8Array(e.decryptdata.keyId||[]))} uri: ${e.decryptdata.uri}`),e.keyStatus=t})}fetchServerCertificate(e){const t=this.config,n=t.loader,r=new n(t),i=this.getServerCertificateUrl(e);return i?(this.log(`Fetching server certificate for "${e}"`),new Promise((s,u)=>{const f={responseType:"arraybuffer",url:i},p=t.certLoadPolicy.default,E={loadPolicy:p,timeout:p.maxLoadTimeMs,maxRetry:0,retryDelay:0,maxRetryDelay:0},R={onSuccess:(G,ue,se,ge)=>{s(G.data)},onError:(G,ue,se,ge)=>{u(new Vi({type:S.KEY_SYSTEM_ERROR,details:y.KEY_SYSTEM_SERVER_CERTIFICATE_REQUEST_FAILED,fatal:!0,networkDetails:se,response:ve({url:f.url,data:void 0},G)},`"${e}" certificate request failed (${i}). Status: ${G.code} (${G.text})`))},onTimeout:(G,ue,se)=>{u(new Vi({type:S.KEY_SYSTEM_ERROR,details:y.KEY_SYSTEM_SERVER_CERTIFICATE_REQUEST_FAILED,fatal:!0,networkDetails:se,response:{url:f.url,data:void 0}},`"${e}" certificate request timed out (${i})`))},onAbort:(G,ue,se)=>{u(new Error("aborted"))}};r.load(f,E,R)})):Promise.resolve()}setMediaKeysServerCertificate(e,t,n){return new Promise((r,i)=>{e.setServerCertificate(n).then(s=>{this.log(`setServerCertificate ${s?"success":"not supported by CDM"} (${n==null?void 0:n.byteLength}) on "${t}"`),r(e)}).catch(s=>{i(new Vi({type:S.KEY_SYSTEM_ERROR,details:y.KEY_SYSTEM_SERVER_CERTIFICATE_UPDATE_FAILED,error:s,fatal:!0},s.message))})})}renewLicense(e,t){return this.requestLicense(e,new Uint8Array(t)).then(n=>this.updateKeySession(e,new Uint8Array(n)).catch(r=>{throw new Vi({type:S.KEY_SYSTEM_ERROR,details:y.KEY_SYSTEM_SESSION_UPDATE_FAILED,error:r,fatal:!0},r.message)}))}unpackPlayReadyKeyMessage(e,t){const n=String.fromCharCode.apply(null,new Uint16Array(t.buffer));if(!n.includes("PlayReadyKeyMessage"))return e.setRequestHeader("Content-Type","text/xml; charset=utf-8"),t;const r=new DOMParser().parseFromString(n,"application/xml"),i=r.querySelectorAll("HttpHeader");if(i.length>0){let E;for(let R=0,G=i.length;R<G;R++){var s,u;E=i[R];const ue=(s=E.querySelector("name"))==null?void 0:s.textContent,se=(u=E.querySelector("value"))==null?void 0:u.textContent;ue&&se&&e.setRequestHeader(ue,se)}}const f=r.querySelector("Challenge"),p=f==null?void 0:f.textContent;if(!p)throw new Error("Cannot find <Challenge> in key message");return Pe(atob(p))}setupLicenseXHR(e,t,n,r){const i=this.config.licenseXhrSetup;return i?Promise.resolve().then(()=>{if(!n.decryptdata)throw new Error("Key removed");return i.call(this.hls,e,t,n,r)}).catch(s=>{if(!n.decryptdata)throw s;return e.open("POST",t,!0),i.call(this.hls,e,t,n,r)}).then(s=>(e.readyState||e.open("POST",t,!0),{xhr:e,licenseChallenge:s||r})):(e.open("POST",t,!0),Promise.resolve({xhr:e,licenseChallenge:r}))}requestLicense(e,t){const n=this.config.keyLoadPolicy.default;return new Promise((r,i)=>{const s=this.getLicenseServerUrlOrThrow(e.keySystem);this.log(`Sending license request to URL: ${s}`);const u=new XMLHttpRequest;u.responseType="arraybuffer",u.onreadystatechange=()=>{if(!this.hls||!e.mediaKeysSession)return i(new Error("invalid state"));if(u.readyState===4)if(u.status===200){this._requestLicenseFailureCount=0;let f=u.response;this.log(`License received ${f instanceof ArrayBuffer?f.byteLength:f}`);const p=this.config.licenseResponseCallback;if(p)try{f=p.call(this.hls,u,s,e)}catch(E){this.error(E)}r(f)}else{const f=n.errorRetry,p=f?f.maxNumRetry:0;if(this._requestLicenseFailureCount++,this._requestLicenseFailureCount>p||u.status>=400&&u.status<500)i(new Vi({type:S.KEY_SYSTEM_ERROR,details:y.KEY_SYSTEM_LICENSE_REQUEST_FAILED,fatal:!0,networkDetails:u,response:{url:s,data:void 0,code:u.status,text:u.statusText}},`License Request XHR failed (${s}). Status: ${u.status} (${u.statusText})`));else{const E=p-this._requestLicenseFailureCount+1;this.warn(`Retrying license request, ${E} attempts left`),this.requestLicense(e,t).then(r,i)}}},e.licenseXhr&&e.licenseXhr.readyState!==XMLHttpRequest.DONE&&e.licenseXhr.abort(),e.licenseXhr=u,this.setupLicenseXHR(u,s,e,t).then(({xhr:f,licenseChallenge:p})=>{e.keySystem==Xe.PLAYREADY&&(p=this.unpackPlayReadyKeyMessage(f,p)),f.send(p)})})}onMediaAttached(e,t){if(!this.config.emeEnabled)return;const n=t.media;this.media=n,n.removeEventListener("encrypted",this.onMediaEncrypted),n.removeEventListener("waitingforkey",this.onWaitingForKey),n.addEventListener("encrypted",this.onMediaEncrypted),n.addEventListener("waitingforkey",this.onWaitingForKey)}onMediaDetached(){const e=this.media,t=this.mediaKeySessions;e&&(e.removeEventListener("encrypted",this.onMediaEncrypted),e.removeEventListener("waitingforkey",this.onWaitingForKey),this.media=null),this._requestLicenseFailureCount=0,this.setMediaKeysQueue=[],this.mediaKeySessions=[],this.keyIdToKeySessionPromise={},Pt.clearKeyUriToKeyIdMap();const n=t.length;Js.CDMCleanupPromise=Promise.all(t.map(r=>this.removeSession(r)).concat(e==null?void 0:e.setMediaKeys(null).catch(r=>{this.log(`Could not clear media keys: ${r}`)}))).then(()=>{n&&(this.log("finished closing key sessions and clearing media keys"),t.length=0)}).catch(r=>{this.log(`Could not close sessions and clear media keys: ${r}`)})}onManifestLoading(){this.keyFormatPromise=null}onManifestLoaded(e,{sessionKeys:t}){if(!(!t||!this.config.emeEnabled)&&!this.keyFormatPromise){const n=t.reduce((r,i)=>(r.indexOf(i.keyFormat)===-1&&r.push(i.keyFormat),r),[]);this.log(`Selecting key-system from session-keys ${n.join(", ")}`),this.keyFormatPromise=this.getKeyFormatPromise(n)}}removeSession(e){const{mediaKeysSession:t,licenseXhr:n}=e;if(t){this.log(`Remove licenses and keys and close session ${t.sessionId}`),e._onmessage&&(t.removeEventListener("message",e._onmessage),e._onmessage=void 0),e._onkeystatuseschange&&(t.removeEventListener("keystatuseschange",e._onkeystatuseschange),e._onkeystatuseschange=void 0),n&&n.readyState!==XMLHttpRequest.DONE&&n.abort(),e.mediaKeysSession=e.decryptdata=e.licenseXhr=void 0;const r=this.mediaKeySessions.indexOf(e);return r>-1&&this.mediaKeySessions.splice(r,1),t.remove().catch(i=>{this.log(`Could not remove session: ${i}`)}).then(()=>t.close()).catch(i=>{this.log(`Could not close session: ${i}`)})}}}Js.CDMCleanupPromise=void 0;class Vi extends Error{constructor(e,t){super(t),this.data=void 0,e.error||(e.error=new Error(t)),this.data=e,e.err=e.error}}var Bi;(function(a){a.MANIFEST="m",a.AUDIO="a",a.VIDEO="v",a.MUXED="av",a.INIT="i",a.CAPTION="c",a.TIMED_TEXT="tt",a.KEY="k",a.OTHER="o"})(Bi||(Bi={}));var mo;(function(a){a.DASH="d",a.HLS="h",a.SMOOTH="s",a.OTHER="o"})(mo||(mo={}));var ks;(function(a){a.OBJECT="CMCD-Object",a.REQUEST="CMCD-Request",a.SESSION="CMCD-Session",a.STATUS="CMCD-Status"})(ks||(ks={}));const gl={[ks.OBJECT]:["br","d","ot","tb"],[ks.REQUEST]:["bl","dl","mtp","nor","nrr","su"],[ks.SESSION]:["cid","pr","sf","sid","st","v"],[ks.STATUS]:["bs","rtp"]};class qs{constructor(e,t){this.value=void 0,this.params=void 0,Array.isArray(e)&&(e=e.map(n=>n instanceof qs?n:new qs(n))),this.value=e,this.params=t}}class ko{constructor(e){this.description=void 0,this.description=e}}const vl="Dict";function _l(a){return Array.isArray(a)?JSON.stringify(a):a instanceof Map?"Map{}":a instanceof Set?"Set{}":typeof a=="object"?JSON.stringify(a):String(a)}function yl(a,e,t,n){return new Error(`failed to ${a} "${_l(e)}" as ${t}`,{cause:n})}const Po="Bare Item",bl="Boolean",xl="Byte Sequence",El="Decimal",wl="Integer";function Sl(a){return a<-999999999999999||999999999999999<a}const Al=/[\x00-\x1f\x7f]+/,Cl="Token",Tl="Key";function is(a,e,t){return yl("serialize",a,e,t)}function Dl(a){if(typeof a!="boolean")throw is(a,bl);return a?"?1":"?0"}function Rl(a){return btoa(String.fromCharCode(...a))}function Il(a){if(ArrayBuffer.isView(a)===!1)throw is(a,xl);return`:${Rl(a)}:`}function Mo(a){if(Sl(a))throw is(a,wl);return a.toString()}function Ll(a){return`@${Mo(a.getTime()/1e3)}`}function Bo(a,e){if(a<0)return-Bo(-a,e);const t=Math.pow(10,e);if(Math.abs(a*t%1-.5)<Number.EPSILON){const r=Math.floor(a*t);return(r%2===0?r:r+1)/t}else return Math.round(a*t)/t}function Ol(a){const e=Bo(a,3);if(Math.floor(Math.abs(e)).toString().length>12)throw is(a,El);const t=e.toString();return t.includes(".")?t:`${t}.0`}const kl="String";function Pl(a){if(Al.test(a))throw is(a,kl);return`"${a.replace(/\\/g,"\\\\").replace(/"/g,'\\"')}"`}function Ml(a){return a.description||a.toString().slice(7,-1)}function No(a){const e=Ml(a);if(/^([a-zA-Z*])([!#$%&'*+\-.^_`|~\w:/]*)$/.test(e)===!1)throw is(e,Cl);return e}function po(a){switch(typeof a){case"number":if(!L(a))throw is(a,Po);return Number.isInteger(a)?Mo(a):Ol(a);case"string":return Pl(a);case"symbol":return No(a);case"boolean":return Dl(a);case"object":if(a instanceof Date)return Ll(a);if(a instanceof Uint8Array)return Il(a);if(a instanceof ko)return No(a);default:throw is(a,Po)}}function go(a){if(/^[a-z*][a-z0-9\-_.*]*$/.test(a)===!1)throw is(a,Tl);return a}function vo(a){return a==null?"":Object.entries(a).map(([e,t])=>t===!0?`;${go(e)}`:`;${go(e)}=${po(t)}`).join("")}function Fo(a){return a instanceof qs?`${po(a.value)}${vo(a.params)}`:po(a)}function Bl(a){return`(${a.value.map(Fo).join(" ")})${vo(a.params)}`}function Nl(a,e={whitespace:!0}){if(typeof a!="object")throw is(a,vl);const t=a instanceof Map?a.entries():Object.entries(a),n=e!=null&&e.whitespace?" ":"";return Array.from(t).map(([r,i])=>{i instanceof qs||(i=new qs(i));let s=go(r);return i.value===!0?s+=vo(i.params):(s+="=",Array.isArray(i.value)?s+=Bl(i):s+=Fo(i)),s}).join(`,${n}`)}function Fl(a,e){return Nl(a,e)}const zl=a=>a==="ot"||a==="sf"||a==="st",$l=a=>typeof a=="number"?L(a):a!=null&&a!==""&&a!==!1;function Ul(a,e){const t=new URL(a),n=new URL(e);if(t.origin!==n.origin)return a;const r=t.pathname.split("/").slice(1),i=n.pathname.split("/").slice(1,-1);for(;r[0]===i[0];)r.shift(),i.shift();for(;i.length;)i.shift(),r.unshift("..");return r.join("/")}function Hl(){try{return crypto.randomUUID()}catch(a){try{const e=URL.createObjectURL(new Blob),t=e.toString();return URL.revokeObjectURL(e),t.slice(t.lastIndexOf("/")+1)}catch(e){let t=new Date().getTime();return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,r=>{const i=(t+Math.random()*16)%16|0;return t=Math.floor(t/16),(r=="x"?i:i&3|8).toString(16)})}}}const $a=a=>Math.round(a),jl=(a,e)=>(e!=null&&e.baseUrl&&(a=Ul(a,e.baseUrl)),encodeURIComponent(a)),Ua=a=>$a(a/100)*100,Kl={br:$a,d:$a,bl:Ua,dl:Ua,mtp:Ua,nor:jl,rtp:Ua,tb:$a};function Wl(a,e){const t={};if(a==null||typeof a!="object")return t;const n=Object.keys(a).sort(),r=o({},Kl,e==null?void 0:e.formatters),i=e==null?void 0:e.filter;return n.forEach(s=>{if(i!=null&&i(s))return;let u=a[s];const f=r[s];f&&(u=f(u,e)),!(s==="v"&&u===1)&&(s=="pr"&&u===1||$l(u)&&(zl(s)&&typeof u=="string"&&(u=new ko(u)),t[s]=u))}),t}function zo(a,e={}){return a?Fl(Wl(a,e),o({whitespace:!1},e)):""}function Gl(a,e={}){if(!a)return{};const t=Object.entries(a),n=Object.entries(gl).concat(Object.entries((e==null?void 0:e.customHeaderMap)||{})),r=t.reduce((i,s)=>{var u,f;const[p,E]=s,R=((u=n.find(G=>G[1].includes(p)))==null?void 0:u[0])||ks.REQUEST;return(f=i[R])!=null||(i[R]={}),i[R][p]=E,i},{});return Object.entries(r).reduce((i,[s,u])=>(i[s]=zo(u,e),i),{})}function Zl(a,e,t){return o(a,Gl(e,t))}const Vl="CMCD";function Yl(a,e={}){if(!a)return"";const t=zo(a,e);return`${Vl}=${encodeURIComponent(t)}`}const $o=/CMCD=[^&#]+/;function Xl(a,e,t){const n=Yl(e,t);if(!n)return a;if($o.test(a))return a.replace($o,n);const r=a.includes("?")?"&":"?";return`${a}${r}${n}`}class Ql{constructor(e){this.hls=void 0,this.config=void 0,this.media=void 0,this.sid=void 0,this.cid=void 0,this.useHeaders=!1,this.includeKeys=void 0,this.initialized=!1,this.starved=!1,this.buffering=!0,this.audioBuffer=void 0,this.videoBuffer=void 0,this.onWaiting=()=>{this.initialized&&(this.starved=!0),this.buffering=!0},this.onPlaying=()=>{this.initialized||(this.initialized=!0),this.buffering=!1},this.applyPlaylistData=r=>{try{this.apply(r,{ot:Bi.MANIFEST,su:!this.initialized})}catch(i){b.warn("Could not generate manifest CMCD data.",i)}},this.applyFragmentData=r=>{try{const i=r.frag,s=this.hls.levels[i.level],u=this.getObjectType(i),f={d:i.duration*1e3,ot:u};(u===Bi.VIDEO||u===Bi.AUDIO||u==Bi.MUXED)&&(f.br=s.bitrate/1e3,f.tb=this.getTopBandwidth(u)/1e3,f.bl=this.getBufferLength(u)),this.apply(r,f)}catch(i){b.warn("Could not generate segment CMCD data.",i)}},this.hls=e;const t=this.config=e.config,{cmcd:n}=t;n!=null&&(t.pLoader=this.createPlaylistLoader(),t.fLoader=this.createFragmentLoader(),this.sid=n.sessionId||Hl(),this.cid=n.contentId,this.useHeaders=n.useHeaders===!0,this.includeKeys=n.includeKeys,this.registerListeners())}registerListeners(){const e=this.hls;e.on(c.MEDIA_ATTACHED,this.onMediaAttached,this),e.on(c.MEDIA_DETACHED,this.onMediaDetached,this),e.on(c.BUFFER_CREATED,this.onBufferCreated,this)}unregisterListeners(){const e=this.hls;e.off(c.MEDIA_ATTACHED,this.onMediaAttached,this),e.off(c.MEDIA_DETACHED,this.onMediaDetached,this),e.off(c.BUFFER_CREATED,this.onBufferCreated,this)}destroy(){this.unregisterListeners(),this.onMediaDetached(),this.hls=this.config=this.audioBuffer=this.videoBuffer=null,this.onWaiting=this.onPlaying=null}onMediaAttached(e,t){this.media=t.media,this.media.addEventListener("waiting",this.onWaiting),this.media.addEventListener("playing",this.onPlaying)}onMediaDetached(){this.media&&(this.media.removeEventListener("waiting",this.onWaiting),this.media.removeEventListener("playing",this.onPlaying),this.media=null)}onBufferCreated(e,t){var n,r;this.audioBuffer=(n=t.tracks.audio)==null?void 0:n.buffer,this.videoBuffer=(r=t.tracks.video)==null?void 0:r.buffer}createData(){var e;return{v:1,sf:mo.HLS,sid:this.sid,cid:this.cid,pr:(e=this.media)==null?void 0:e.playbackRate,mtp:this.hls.bandwidthEstimate/1e3}}apply(e,t={}){o(t,this.createData());const n=t.ot===Bi.INIT||t.ot===Bi.VIDEO||t.ot===Bi.MUXED;this.starved&&n&&(t.bs=!0,t.su=!0,this.starved=!1),t.su==null&&(t.su=this.buffering);const{includeKeys:r}=this;r&&(t=Object.keys(t).reduce((i,s)=>(r.includes(s)&&(i[s]=t[s]),i),{})),this.useHeaders?(e.headers||(e.headers={}),Zl(e.headers,t)):e.url=Xl(e.url,t)}getObjectType(e){const{type:t}=e;if(t==="subtitle")return Bi.TIMED_TEXT;if(e.sn==="initSegment")return Bi.INIT;if(t==="audio")return Bi.AUDIO;if(t==="main")return this.hls.audioTracks.length?Bi.VIDEO:Bi.MUXED}getTopBandwidth(e){let t=0,n;const r=this.hls;if(e===Bi.AUDIO)n=r.audioTracks;else{const i=r.maxAutoLevel,s=i>-1?i+1:r.levels.length;n=r.levels.slice(0,s)}for(const i of n)i.bitrate>t&&(t=i.bitrate);return t>0?t:NaN}getBufferLength(e){const t=this.hls.media,n=e===Bi.AUDIO?this.audioBuffer:this.videoBuffer;return!n||!t?NaN:Or.bufferInfo(n,t.currentTime,this.config.maxBufferHole).len*1e3}createPlaylistLoader(){const{pLoader:e}=this.config,t=this.applyPlaylistData,n=e||this.config.loader;return class{constructor(i){this.loader=void 0,this.loader=new n(i)}get stats(){return this.loader.stats}get context(){return this.loader.context}destroy(){this.loader.destroy()}abort(){this.loader.abort()}load(i,s,u){t(i),this.loader.load(i,s,u)}}}createFragmentLoader(){const{fLoader:e}=this.config,t=this.applyFragmentData,n=e||this.config.loader;return class{constructor(i){this.loader=void 0,this.loader=new n(i)}get stats(){return this.loader.stats}get context(){return this.loader.context}destroy(){this.loader.destroy()}abort(){this.loader.abort()}load(i,s,u){t(i),this.loader.load(i,s,u)}}}}const Jl=3e5;class ql{constructor(e){this.hls=void 0,this.log=void 0,this.loader=null,this.uri=null,this.pathwayId=".",this.pathwayPriority=null,this.timeToLoad=300,this.reloadTimer=-1,this.updated=0,this.started=!1,this.enabled=!0,this.levels=null,this.audioTracks=null,this.subtitleTracks=null,this.penalizedPathways={},this.hls=e,this.log=b.log.bind(b,"[content-steering]:"),this.registerListeners()}registerListeners(){const e=this.hls;e.on(c.MANIFEST_LOADING,this.onManifestLoading,this),e.on(c.MANIFEST_LOADED,this.onManifestLoaded,this),e.on(c.MANIFEST_PARSED,this.onManifestParsed,this),e.on(c.ERROR,this.onError,this)}unregisterListeners(){const e=this.hls;e&&(e.off(c.MANIFEST_LOADING,this.onManifestLoading,this),e.off(c.MANIFEST_LOADED,this.onManifestLoaded,this),e.off(c.MANIFEST_PARSED,this.onManifestParsed,this),e.off(c.ERROR,this.onError,this))}startLoad(){if(this.started=!0,this.clearTimeout(),this.enabled&&this.uri){if(this.updated){const e=this.timeToLoad*1e3-(performance.now()-this.updated);if(e>0){this.scheduleRefresh(this.uri,e);return}}this.loadSteeringManifest(this.uri)}}stopLoad(){this.started=!1,this.loader&&(this.loader.destroy(),this.loader=null),this.clearTimeout()}clearTimeout(){this.reloadTimer!==-1&&(self.clearTimeout(this.reloadTimer),this.reloadTimer=-1)}destroy(){this.unregisterListeners(),this.stopLoad(),this.hls=null,this.levels=this.audioTracks=this.subtitleTracks=null}removeLevel(e){const t=this.levels;t&&(this.levels=t.filter(n=>n!==e))}onManifestLoading(){this.stopLoad(),this.enabled=!0,this.timeToLoad=300,this.updated=0,this.uri=null,this.pathwayId=".",this.levels=this.audioTracks=this.subtitleTracks=null}onManifestLoaded(e,t){const{contentSteering:n}=t;n!==null&&(this.pathwayId=n.pathwayId,this.uri=n.uri,this.started&&this.startLoad())}onManifestParsed(e,t){this.audioTracks=t.audioTracks,this.subtitleTracks=t.subtitleTracks}onError(e,t){const{errorAction:n}=t;if((n==null?void 0:n.action)===Tn.SendAlternateToPenaltyBox&&n.flags===hr.MoveAllAlternatesMatchingHost){const r=this.levels;let i=this.pathwayPriority,s=this.pathwayId;if(t.context){const{groupId:u,pathwayId:f,type:p}=t.context;u&&r?s=this.getPathwayForGroupId(u,p,s):f&&(s=f)}s in this.penalizedPathways||(this.penalizedPathways[s]=performance.now()),!i&&r&&(i=r.reduce((u,f)=>(u.indexOf(f.pathwayId)===-1&&u.push(f.pathwayId),u),[])),i&&i.length>1&&(this.updatePathwayPriority(i),n.resolved=this.pathwayId!==s),n.resolved||b.warn(`Could not resolve ${t.details} ("${t.error.message}") with content-steering for Pathway: ${s} levels: ${r&&r.length} priorities: ${JSON.stringify(i)} penalized: ${JSON.stringify(this.penalizedPathways)}`)}}filterParsedLevels(e){this.levels=e;let t=this.getLevelsForPathway(this.pathwayId);if(t.length===0){const n=e[0].pathwayId;this.log(`No levels found in Pathway ${this.pathwayId}. Setting initial Pathway to "${n}"`),t=this.getLevelsForPathway(n),this.pathwayId=n}return t.length!==e.length&&this.log(`Found ${t.length}/${e.length} levels in Pathway "${this.pathwayId}"`),t}getLevelsForPathway(e){return this.levels===null?[]:this.levels.filter(t=>e===t.pathwayId)}updatePathwayPriority(e){this.pathwayPriority=e;let t;const n=this.penalizedPathways,r=performance.now();Object.keys(n).forEach(i=>{r-n[i]>Jl&&delete n[i]});for(let i=0;i<e.length;i++){const s=e[i];if(s in n)continue;if(s===this.pathwayId)return;const u=this.hls.nextLoadLevel,f=this.hls.levels[u];if(t=this.getLevelsForPathway(s),t.length>0){this.log(`Setting Pathway to "${s}"`),this.pathwayId=s,Cn(t),this.hls.trigger(c.LEVELS_UPDATED,{levels:t});const p=this.hls.levels[u];f&&p&&this.levels&&(p.attrs["STABLE-VARIANT-ID"]!==f.attrs["STABLE-VARIANT-ID"]&&p.bitrate!==f.bitrate&&this.log(`Unstable Pathways change from bitrate ${f.bitrate} to ${p.bitrate}`),this.hls.nextLoadLevel=u);break}}}getPathwayForGroupId(e,t,n){const r=this.getLevelsForPathway(n).concat(this.levels||[]);for(let i=0;i<r.length;i++)if(t===sn.AUDIO_TRACK&&r[i].hasAudioGroup(e)||t===sn.SUBTITLE_TRACK&&r[i].hasSubtitleGroup(e))return r[i].pathwayId;return n}clonePathways(e){const t=this.levels;if(!t)return;const n={},r={};e.forEach(i=>{const{ID:s,"BASE-ID":u,"URI-REPLACEMENT":f}=i;if(t.some(E=>E.pathwayId===s))return;const p=this.getLevelsForPathway(u).map(E=>{const R=new U(E.attrs);R["PATHWAY-ID"]=s;const G=R.AUDIO&&`${R.AUDIO}_clone_${s}`,ue=R.SUBTITLES&&`${R.SUBTITLES}_clone_${s}`;G&&(n[R.AUDIO]=G,R.AUDIO=G),ue&&(r[R.SUBTITLES]=ue,R.SUBTITLES=ue);const se=Ho(E.uri,R["STABLE-VARIANT-ID"],"PER-VARIANT-URIS",f),ge=new kr({attrs:R,audioCodec:E.audioCodec,bitrate:E.bitrate,height:E.height,name:E.name,url:se,videoCodec:E.videoCodec,width:E.width});if(E.audioGroups)for(let Ae=1;Ae<E.audioGroups.length;Ae++)ge.addGroupId("audio",`${E.audioGroups[Ae]}_clone_${s}`);if(E.subtitleGroups)for(let Ae=1;Ae<E.subtitleGroups.length;Ae++)ge.addGroupId("text",`${E.subtitleGroups[Ae]}_clone_${s}`);return ge});t.push(...p),Uo(this.audioTracks,n,f,s),Uo(this.subtitleTracks,r,f,s)})}loadSteeringManifest(e){const t=this.hls.config,n=t.loader;this.loader&&this.loader.destroy(),this.loader=new n(t);let r;try{r=new self.URL(e)}catch(E){this.enabled=!1,this.log(`Failed to parse Steering Manifest URI: ${e}`);return}if(r.protocol!=="data:"){const E=(this.hls.bandwidthEstimate||t.abrEwmaDefaultEstimate)|0;r.searchParams.set("_HLS_pathway",this.pathwayId),r.searchParams.set("_HLS_throughput",""+E)}const i={responseType:"json",url:r.href},s=t.steeringManifestLoadPolicy.default,u=s.errorRetry||s.timeoutRetry||{},f={loadPolicy:s,timeout:s.maxLoadTimeMs,maxRetry:u.maxNumRetry||0,retryDelay:u.retryDelayMs||0,maxRetryDelay:u.maxRetryDelayMs||0},p={onSuccess:(E,R,G,ue)=>{this.log(`Loaded steering manifest: "${r}"`);const se=E.data;if(se.VERSION!==1){this.log(`Steering VERSION ${se.VERSION} not supported!`);return}this.updated=performance.now(),this.timeToLoad=se.TTL;const{"RELOAD-URI":ge,"PATHWAY-CLONES":Ae,"PATHWAY-PRIORITY":Ve}=se;if(ge)try{this.uri=new self.URL(ge,r).href}catch(pt){this.enabled=!1,this.log(`Failed to parse Steering Manifest RELOAD-URI: ${ge}`);return}this.scheduleRefresh(this.uri||G.url),Ae&&this.clonePathways(Ae);const vt={steeringManifest:se,url:r.toString()};this.hls.trigger(c.STEERING_MANIFEST_LOADED,vt),Ve&&this.updatePathwayPriority(Ve)},onError:(E,R,G,ue)=>{if(this.log(`Error loading steering manifest: ${E.code} ${E.text} (${R.url})`),this.stopLoad(),E.code===410){this.enabled=!1,this.log(`Steering manifest ${R.url} no longer available`);return}let se=this.timeToLoad*1e3;if(E.code===429){const ge=this.loader;if(typeof(ge==null?void 0:ge.getResponseHeader)=="function"){const Ae=ge.getResponseHeader("Retry-After");Ae&&(se=parseFloat(Ae)*1e3)}this.log(`Steering manifest ${R.url} rate limited`);return}this.scheduleRefresh(this.uri||R.url,se)},onTimeout:(E,R,G)=>{this.log(`Timeout loading steering manifest (${R.url})`),this.scheduleRefresh(this.uri||R.url)}};this.log(`Requesting steering manifest: ${r}`),this.loader.load(i,f,p)}scheduleRefresh(e,t=this.timeToLoad*1e3){this.clearTimeout(),this.reloadTimer=self.setTimeout(()=>{var n;const r=(n=this.hls)==null?void 0:n.media;if(r&&!r.ended){this.loadSteeringManifest(e);return}this.scheduleRefresh(e,this.timeToLoad*1e3)},t)}}function Uo(a,e,t,n){a&&Object.keys(e).forEach(r=>{const i=a.filter(s=>s.groupId===r).map(s=>{const u=o({},s);return u.details=void 0,u.attrs=new U(u.attrs),u.url=u.attrs.URI=Ho(s.url,s.attrs["STABLE-RENDITION-ID"],"PER-RENDITION-URIS",t),u.groupId=u.attrs["GROUP-ID"]=e[r],u.attrs["PATHWAY-ID"]=n,u});a.push(...i)})}function Ho(a,e,t,n){const{HOST:r,PARAMS:i,[t]:s}=n;let u;e&&(u=s==null?void 0:s[e],u&&(a=u));const f=new self.URL(a);return r&&!u&&(f.host=r),i&&Object.keys(i).sort().forEach(p=>{p&&f.searchParams.set(p,i[p])}),f.href}const eu=/^age:\s*[\d.]+\s*$/im;class jo{constructor(e){this.xhrSetup=void 0,this.requestTimeout=void 0,this.retryTimeout=void 0,this.retryDelay=void 0,this.config=null,this.callbacks=null,this.context=null,this.loader=null,this.stats=void 0,this.xhrSetup=e&&e.xhrSetup||null,this.stats=new Ne,this.retryDelay=0}destroy(){this.callbacks=null,this.abortInternal(),this.loader=null,this.config=null,this.context=null,this.xhrSetup=null}abortInternal(){const e=this.loader;self.clearTimeout(this.requestTimeout),self.clearTimeout(this.retryTimeout),e&&(e.onreadystatechange=null,e.onprogress=null,e.readyState!==4&&(this.stats.aborted=!0,e.abort()))}abort(){var e;this.abortInternal(),(e=this.callbacks)!=null&&e.onAbort&&this.callbacks.onAbort(this.stats,this.context,this.loader)}load(e,t,n){if(this.stats.loading.start)throw new Error("Loader can only be used once.");this.stats.loading.start=self.performance.now(),this.context=e,this.config=t,this.callbacks=n,this.loadInternal()}loadInternal(){const{config:e,context:t}=this;if(!e||!t)return;const n=this.loader=new self.XMLHttpRequest,r=this.stats;r.loading.first=0,r.loaded=0,r.aborted=!1;const i=this.xhrSetup;i?Promise.resolve().then(()=>{if(!(this.loader!==n||this.stats.aborted))return i(n,t.url)}).catch(s=>{if(!(this.loader!==n||this.stats.aborted))return n.open("GET",t.url,!0),i(n,t.url)}).then(()=>{this.loader!==n||this.stats.aborted||this.openAndSendXhr(n,t,e)}).catch(s=>{this.callbacks.onError({code:n.status,text:s.message},t,n,r)}):this.openAndSendXhr(n,t,e)}openAndSendXhr(e,t,n){e.readyState||e.open("GET",t.url,!0);const r=t.headers,{maxTimeToFirstByteMs:i,maxLoadTimeMs:s}=n.loadPolicy;if(r)for(const u in r)e.setRequestHeader(u,r[u]);t.rangeEnd&&e.setRequestHeader("Range","bytes="+t.rangeStart+"-"+(t.rangeEnd-1)),e.onreadystatechange=this.readystatechange.bind(this),e.onprogress=this.loadprogress.bind(this),e.responseType=t.responseType,self.clearTimeout(this.requestTimeout),n.timeout=i&&L(i)?i:s,this.requestTimeout=self.setTimeout(this.loadtimeout.bind(this),n.timeout),e.send()}readystatechange(){const{context:e,loader:t,stats:n}=this;if(!e||!t)return;const r=t.readyState,i=this.config;if(!n.aborted&&r>=2&&(n.loading.first===0&&(n.loading.first=Math.max(self.performance.now(),n.loading.start),i.timeout!==i.loadPolicy.maxLoadTimeMs&&(self.clearTimeout(this.requestTimeout),i.timeout=i.loadPolicy.maxLoadTimeMs,this.requestTimeout=self.setTimeout(this.loadtimeout.bind(this),i.loadPolicy.maxLoadTimeMs-(n.loading.first-n.loading.start)))),r===4)){self.clearTimeout(this.requestTimeout),t.onreadystatechange=null,t.onprogress=null;const s=t.status,u=t.responseType==="text"?t.responseText:null;if(s>=200&&s<300){const R=u!=null?u:t.response;if(R!=null){n.loading.end=Math.max(self.performance.now(),n.loading.first);const G=t.responseType==="arraybuffer"?R.byteLength:R.length;if(n.loaded=n.total=G,n.bwEstimate=n.total*8e3/(n.loading.end-n.loading.first),!this.callbacks)return;const ue=this.callbacks.onProgress;if(ue&&ue(n,e,R,t),!this.callbacks)return;const se={url:t.responseURL,data:R,code:s};this.callbacks.onSuccess(se,n,e,t);return}}const f=i.loadPolicy.errorRetry,p=n.retry,E={url:e.url,data:void 0,code:s};Dr(f,p,!1,E)?this.retry(f):(b.error(`${s} while loading ${e.url}`),this.callbacks.onError({code:s,text:t.statusText},e,t,n))}}loadtimeout(){if(!this.config)return;const e=this.config.loadPolicy.timeoutRetry,t=this.stats.retry;if(Dr(e,t,!0))this.retry(e);else{var n;b.warn(`timeout while loading ${(n=this.context)==null?void 0:n.url}`);const r=this.callbacks;r&&(this.abortInternal(),r.onTimeout(this.stats,this.context,this.loader))}}retry(e){const{context:t,stats:n}=this;this.retryDelay=dr(e,n.retry),n.retry++,b.warn(`${status?"HTTP Status "+status:"Timeout"} while loading ${t==null?void 0:t.url}, retrying ${n.retry}/${e.maxNumRetry} in ${this.retryDelay}ms`),this.abortInternal(),this.loader=null,self.clearTimeout(this.retryTimeout),this.retryTimeout=self.setTimeout(this.loadInternal.bind(this),this.retryDelay)}loadprogress(e){const t=this.stats;t.loaded=e.loaded,e.lengthComputable&&(t.total=e.total)}getCacheAge(){let e=null;if(this.loader&&eu.test(this.loader.getAllResponseHeaders())){const t=this.loader.getResponseHeader("age");e=t?parseFloat(t):null}return e}getResponseHeader(e){return this.loader&&new RegExp(`^${e}:\\s*[\\d.]+\\s*$`,"im").test(this.loader.getAllResponseHeaders())?this.loader.getResponseHeader(e):null}}function tu(){if(self.fetch&&self.AbortController&&self.ReadableStream&&self.Request)try{return new self.ReadableStream({}),!0}catch(a){}return!1}const nu=/(\d+)-(\d+)\/(\d+)/;class Ko{constructor(e){this.fetchSetup=void 0,this.requestTimeout=void 0,this.request=null,this.response=null,this.controller=void 0,this.context=null,this.config=null,this.callbacks=null,this.stats=void 0,this.loader=null,this.fetchSetup=e.fetchSetup||au,this.controller=new self.AbortController,this.stats=new Ne}destroy(){this.loader=this.callbacks=this.context=this.config=this.request=null,this.abortInternal(),this.response=null,this.fetchSetup=this.controller=this.stats=null}abortInternal(){this.controller&&!this.stats.loading.end&&(this.stats.aborted=!0,this.controller.abort())}abort(){var e;this.abortInternal(),(e=this.callbacks)!=null&&e.onAbort&&this.callbacks.onAbort(this.stats,this.context,this.response)}load(e,t,n){const r=this.stats;if(r.loading.start)throw new Error("Loader can only be used once.");r.loading.start=self.performance.now();const i=ru(e,this.controller.signal),s=n.onProgress,u=e.responseType==="arraybuffer",f=u?"byteLength":"length",{maxTimeToFirstByteMs:p,maxLoadTimeMs:E}=t.loadPolicy;this.context=e,this.config=t,this.callbacks=n,this.request=this.fetchSetup(e,i),self.clearTimeout(this.requestTimeout),t.timeout=p&&L(p)?p:E,this.requestTimeout=self.setTimeout(()=>{this.abortInternal(),n.onTimeout(r,e,this.response)},t.timeout),self.fetch(this.request).then(R=>{this.response=this.loader=R;const G=Math.max(self.performance.now(),r.loading.start);if(self.clearTimeout(this.requestTimeout),t.timeout=E,this.requestTimeout=self.setTimeout(()=>{this.abortInternal(),n.onTimeout(r,e,this.response)},E-(G-r.loading.start)),!R.ok){const{status:ue,statusText:se}=R;throw new ou(se||"fetch, bad network response",ue,R)}return r.loading.first=G,r.total=su(R.headers)||r.total,s&&L(t.highWaterMark)?this.loadProgressively(R,r,e,t.highWaterMark,s):u?R.arrayBuffer():e.responseType==="json"?R.json():R.text()}).then(R=>{const G=this.response;if(!G)throw new Error("loader destroyed");self.clearTimeout(this.requestTimeout),r.loading.end=Math.max(self.performance.now(),r.loading.first);const ue=R[f];ue&&(r.loaded=r.total=ue);const se={url:G.url,data:R,code:G.status};s&&!L(t.highWaterMark)&&s(r,e,R,G),n.onSuccess(se,r,e,G)}).catch(R=>{if(self.clearTimeout(this.requestTimeout),r.aborted)return;const G=R&&R.code||0,ue=R?R.message:null;n.onError({code:G,text:ue},e,R?R.details:null,r)})}getCacheAge(){let e=null;if(this.response){const t=this.response.headers.get("age");e=t?parseFloat(t):null}return e}getResponseHeader(e){return this.response?this.response.headers.get(e):null}loadProgressively(e,t,n,r=0,i){const s=new ta,u=e.body.getReader(),f=()=>u.read().then(p=>{if(p.done)return s.dataLength&&i(t,n,s.flush(),e),Promise.resolve(new ArrayBuffer(0));const E=p.value,R=E.length;return t.loaded+=R,R<r||s.dataLength?(s.push(E),s.dataLength>=r&&i(t,n,s.flush(),e)):i(t,n,E,e),f()}).catch(()=>Promise.reject());return f()}}function ru(a,e){const t={method:"GET",mode:"cors",credentials:"same-origin",signal:e,headers:new self.Headers(o({},a.headers))};return a.rangeEnd&&t.headers.set("Range","bytes="+a.rangeStart+"-"+String(a.rangeEnd-1)),t}function iu(a){const e=nu.exec(a);if(e)return parseInt(e[2])-parseInt(e[1])+1}function su(a){const e=a.get("Content-Range");if(e){const n=iu(e);if(L(n))return n}const t=a.get("Content-Length");if(t)return parseInt(t)}function au(a,e){return new self.Request(a.url,e)}class ou extends Error{constructor(e,t,n){super(e),this.code=void 0,this.details=void 0,this.code=t,this.details=n}}const lu=/\s/,uu={newCue(a,e,t,n){const r=[];let i,s,u,f,p;const E=self.VTTCue||self.TextTrackCue;for(let G=0;G<n.rows.length;G++)if(i=n.rows[G],u=!0,f=0,p="",!i.isEmpty()){var R;for(let ge=0;ge<i.chars.length;ge++)lu.test(i.chars[ge].uchar)&&u?f++:(p+=i.chars[ge].uchar,u=!1);i.cueStartTime=e,e===t&&(t+=1e-4),f>=16?f--:f++;const ue=wo(p.trim()),se=oo(e,t,ue);a!=null&&(R=a.cues)!=null&&R.getCueById(se)||(s=new E(e,t,ue),s.id=se,s.line=G+1,s.align="left",s.position=10+Math.min(80,Math.floor(f*8/32)*10),r.push(s))}return a&&r.length&&(r.sort((G,ue)=>G.line==="auto"||ue.line==="auto"?0:G.line>8&&ue.line>8?ue.line-G.line:G.line-ue.line),r.forEach(G=>ir(a,G))),r}},cu={maxTimeToFirstByteMs:8e3,maxLoadTimeMs:2e4,timeoutRetry:null,errorRetry:null},Wo=ve(ve({autoStartLoad:!0,startPosition:-1,defaultAudioCodec:void 0,debug:!1,capLevelOnFPSDrop:!1,capLevelToPlayerSize:!1,ignoreDevicePixelRatio:!1,preferManagedMediaSource:!0,initialLiveManifestSize:1,maxBufferLength:30,backBufferLength:1/0,frontBufferFlushThreshold:1/0,maxBufferSize:60*1e3*1e3,maxBufferHole:.1,highBufferWatchdogPeriod:2,nudgeOffset:.1,nudgeMaxRetry:3,maxFragLookUpTolerance:.25,liveSyncDurationCount:3,liveMaxLatencyDurationCount:1/0,liveSyncDuration:void 0,liveMaxLatencyDuration:void 0,maxLiveSyncPlaybackRate:1,liveDurationInfinity:!1,liveBackBufferLength:null,maxMaxBufferLength:600,enableWorker:!0,workerPath:null,enableSoftwareAES:!0,startLevel:void 0,startFragPrefetch:!1,fpsDroppedMonitoringPeriod:5e3,fpsDroppedMonitoringThreshold:.2,appendErrorMaxRetry:3,loader:jo,fLoader:void 0,pLoader:void 0,xhrSetup:void 0,licenseXhrSetup:void 0,licenseResponseCallback:void 0,abrController:Zr,bufferController:Ui,capLevelController:fo,errorController:Gr,fpsController:pl,stretchShortVideoTrack:!1,maxAudioFramesDrift:1,forceKeyFrameOnDiscontinuity:!0,abrEwmaFastLive:3,abrEwmaSlowLive:9,abrEwmaFastVoD:3,abrEwmaSlowVoD:9,abrEwmaDefaultEstimate:5e5,abrEwmaDefaultEstimateMax:5e6,abrBandWidthFactor:.95,abrBandWidthUpFactor:.7,abrMaxWithRealBitrate:!1,maxStarvationDelay:4,maxLoadingDelay:4,minAutoBitrate:0,emeEnabled:!1,widevineLicenseUrl:void 0,drmSystems:{},drmSystemOptions:{},requestMediaKeySystemAccessFunc:un,testBandwidth:!0,progressive:!1,lowLatencyMode:!0,cmcd:void 0,enableDateRangeMetadataCues:!0,enableEmsgMetadataCues:!0,enableID3MetadataCues:!0,useMediaCapabilities:!0,certLoadPolicy:{default:cu},keyLoadPolicy:{default:{maxTimeToFirstByteMs:8e3,maxLoadTimeMs:2e4,timeoutRetry:{maxNumRetry:1,retryDelayMs:1e3,maxRetryDelayMs:2e4,backoff:"linear"},errorRetry:{maxNumRetry:8,retryDelayMs:1e3,maxRetryDelayMs:2e4,backoff:"linear"}}},manifestLoadPolicy:{default:{maxTimeToFirstByteMs:1/0,maxLoadTimeMs:2e4,timeoutRetry:{maxNumRetry:2,retryDelayMs:0,maxRetryDelayMs:0},errorRetry:{maxNumRetry:1,retryDelayMs:1e3,maxRetryDelayMs:8e3}}},playlistLoadPolicy:{default:{maxTimeToFirstByteMs:1e4,maxLoadTimeMs:2e4,timeoutRetry:{maxNumRetry:2,retryDelayMs:0,maxRetryDelayMs:0},errorRetry:{maxNumRetry:2,retryDelayMs:1e3,maxRetryDelayMs:8e3}}},fragLoadPolicy:{default:{maxTimeToFirstByteMs:1e4,maxLoadTimeMs:12e4,timeoutRetry:{maxNumRetry:4,retryDelayMs:0,maxRetryDelayMs:0},errorRetry:{maxNumRetry:6,retryDelayMs:1e3,maxRetryDelayMs:8e3}}},steeringManifestLoadPolicy:{default:{maxTimeToFirstByteMs:1e4,maxLoadTimeMs:2e4,timeoutRetry:{maxNumRetry:2,retryDelayMs:0,maxRetryDelayMs:0},errorRetry:{maxNumRetry:1,retryDelayMs:1e3,maxRetryDelayMs:8e3}}},manifestLoadingTimeOut:1e4,manifestLoadingMaxRetry:1,manifestLoadingRetryDelay:1e3,manifestLoadingMaxRetryTimeout:64e3,levelLoadingTimeOut:1e4,levelLoadingMaxRetry:4,levelLoadingRetryDelay:1e3,levelLoadingMaxRetryTimeout:64e3,fragLoadingTimeOut:2e4,fragLoadingMaxRetry:6,fragLoadingRetryDelay:1e3,fragLoadingMaxRetryTimeout:64e3},du()),{},{subtitleStreamController:ti,subtitleTrackController:Ri,timelineController:fl,audioStreamController:fr,audioTrackController:Kr,emeController:Js,cmcdController:Ql,contentSteeringController:ql});function du(){return{cueHandler:uu,enableWebVTT:!0,enableIMSC1:!0,enableCEA708Captions:!0,captionsTextTrack1Label:"English",captionsTextTrack1LanguageCode:"en",captionsTextTrack2Label:"Spanish",captionsTextTrack2LanguageCode:"es",captionsTextTrack3Label:"Unknown CC",captionsTextTrack3LanguageCode:"",captionsTextTrack4Label:"Unknown CC",captionsTextTrack4LanguageCode:"",renderTextTracksNatively:!0}}function hu(a,e){if((e.liveSyncDurationCount||e.liveMaxLatencyDurationCount)&&(e.liveSyncDuration||e.liveMaxLatencyDuration))throw new Error("Illegal hls.js config: don't mix up liveSyncDurationCount/liveMaxLatencyDurationCount and liveSyncDuration/liveMaxLatencyDuration");if(e.liveMaxLatencyDurationCount!==void 0&&(e.liveSyncDurationCount===void 0||e.liveMaxLatencyDurationCount<=e.liveSyncDurationCount))throw new Error('Illegal hls.js config: "liveMaxLatencyDurationCount" must be greater than "liveSyncDurationCount"');if(e.liveMaxLatencyDuration!==void 0&&(e.liveSyncDuration===void 0||e.liveMaxLatencyDuration<=e.liveSyncDuration))throw new Error('Illegal hls.js config: "liveMaxLatencyDuration" must be greater than "liveSyncDuration"');const t=_o(a),n=["manifest","level","frag"],r=["TimeOut","MaxRetry","RetryDelay","MaxRetryTimeout"];return n.forEach(i=>{const s=`${i==="level"?"playlist":i}LoadPolicy`,u=e[s]===void 0,f=[];r.forEach(p=>{const E=`${i}Loading${p}`,R=e[E];if(R!==void 0&&u){f.push(E);const G=t[s].default;switch(e[s]={default:G},p){case"TimeOut":G.maxLoadTimeMs=R,G.maxTimeToFirstByteMs=R;break;case"MaxRetry":G.errorRetry.maxNumRetry=R,G.timeoutRetry.maxNumRetry=R;break;case"RetryDelay":G.errorRetry.retryDelayMs=R,G.timeoutRetry.retryDelayMs=R;break;case"MaxRetryTimeout":G.errorRetry.maxRetryDelayMs=R,G.timeoutRetry.maxRetryDelayMs=R;break}}}),f.length&&b.warn(`hls.js config: "${f.join('", "')}" setting(s) are deprecated, use "${s}": ${JSON.stringify(e[s])}`)}),ve(ve({},t),e)}function _o(a){return a&&typeof a=="object"?Array.isArray(a)?a.map(_o):Object.keys(a).reduce((e,t)=>(e[t]=_o(a[t]),e),{}):a}function fu(a){const e=a.loader;e!==Ko&&e!==jo?(b.log("[config]: Custom loader detected, cannot enable progressive streaming"),a.progressive=!1):tu()&&(a.loader=Ko,a.progressive=!0,a.enableSoftwareAES=!0,b.log("[config]: Progressive streaming enabled, using FetchLoader"))}let yo;class mu extends Sr{constructor(e,t){super(e,"[level-controller]"),this._levels=[],this._firstLevel=-1,this._maxAutoLevel=-1,this._startLevel=void 0,this.currentLevel=null,this.currentLevelIndex=-1,this.manualLevelIndex=-1,this.steering=void 0,this.onParsedComplete=void 0,this.steering=t,this._registerListeners()}_registerListeners(){const{hls:e}=this;e.on(c.MANIFEST_LOADING,this.onManifestLoading,this),e.on(c.MANIFEST_LOADED,this.onManifestLoaded,this),e.on(c.LEVEL_LOADED,this.onLevelLoaded,this),e.on(c.LEVELS_UPDATED,this.onLevelsUpdated,this),e.on(c.FRAG_BUFFERED,this.onFragBuffered,this),e.on(c.ERROR,this.onError,this)}_unregisterListeners(){const{hls:e}=this;e.off(c.MANIFEST_LOADING,this.onManifestLoading,this),e.off(c.MANIFEST_LOADED,this.onManifestLoaded,this),e.off(c.LEVEL_LOADED,this.onLevelLoaded,this),e.off(c.LEVELS_UPDATED,this.onLevelsUpdated,this),e.off(c.FRAG_BUFFERED,this.onFragBuffered,this),e.off(c.ERROR,this.onError,this)}destroy(){this._unregisterListeners(),this.steering=null,this.resetLevels(),super.destroy()}stopLoad(){this._levels.forEach(t=>{t.loadError=0,t.fragmentError=0}),super.stopLoad()}resetLevels(){this._startLevel=void 0,this.manualLevelIndex=-1,this.currentLevelIndex=-1,this.currentLevel=null,this._levels=[],this._maxAutoLevel=-1}onManifestLoading(e,t){this.resetLevels()}onManifestLoaded(e,t){const n=this.hls.config.preferManagedMediaSource,r=[],i={},s={};let u=!1,f=!1,p=!1;t.levels.forEach(E=>{var R,G;const ue=E.attrs;let{audioCodec:se,videoCodec:ge}=E;((R=se)==null?void 0:R.indexOf("mp4a.40.34"))!==-1&&(yo||(yo=/chrome|firefox/i.test(navigator.userAgent)),yo&&(E.audioCodec=se=void 0)),se&&(E.audioCodec=se=mn(se,n)),((G=ge)==null?void 0:G.indexOf("avc1"))===0&&(ge=E.videoCodec=Pn(ge));const{width:Ae,height:Ve,unknownCodecs:vt}=E;if(u||(u=!!(Ae&&Ve)),f||(f=!!ge),p||(p=!!se),vt!=null&&vt.length||se&&!qe(se,"audio",n)||ge&&!qe(ge,"video",n))return;const{CODECS:pt,"FRAME-RATE":$t,"HDCP-LEVEL":St,"PATHWAY-ID":an,RESOLUTION:zt,"VIDEO-RANGE":bn}=ue,en=`${`${an||"."}-`}${E.bitrate}-${zt}-${$t}-${pt}-${bn}-${St}`;if(i[en])if(i[en].uri!==E.url&&!E.attrs["PATHWAY-ID"]){const xn=s[en]+=1;E.attrs["PATHWAY-ID"]=new Array(xn+1).join(".");const yr=new kr(E);i[en]=yr,r.push(yr)}else i[en].addGroupId("audio",ue.AUDIO),i[en].addGroupId("text",ue.SUBTITLES);else{const xn=new kr(E);i[en]=xn,s[en]=1,r.push(xn)}}),this.filterAndSortMediaOptions(r,t,u,f,p)}filterAndSortMediaOptions(e,t,n,r,i){let s=[],u=[],f=e;if((n||r)&&i&&(f=f.filter(({videoCodec:se,videoRange:ge,width:Ae,height:Ve})=>(!!se||!!(Ae&&Ve))&&Er(ge))),f.length===0){Promise.resolve().then(()=>{if(this.hls){t.levels.length&&this.warn(`One or more CODECS in variant not supported: ${JSON.stringify(t.levels[0].attrs)}`);const se=new Error("no level with compatible codecs found in manifest");this.hls.trigger(c.ERROR,{type:S.MEDIA_ERROR,details:y.MANIFEST_INCOMPATIBLE_CODECS_ERROR,fatal:!0,url:t.url,error:se,reason:se.message})}});return}if(t.audioTracks){const{preferManagedMediaSource:se}=this.hls.config;s=t.audioTracks.filter(ge=>!ge.audioCodec||qe(ge.audioCodec,"audio",se)),Go(s)}t.subtitles&&(u=t.subtitles,Go(u));const p=f.slice(0);f.sort((se,ge)=>{if(se.attrs["HDCP-LEVEL"]!==ge.attrs["HDCP-LEVEL"])return(se.attrs["HDCP-LEVEL"]||"")>(ge.attrs["HDCP-LEVEL"]||"")?1:-1;if(n&&se.height!==ge.height)return se.height-ge.height;if(se.frameRate!==ge.frameRate)return se.frameRate-ge.frameRate;if(se.videoRange!==ge.videoRange)return Cr.indexOf(se.videoRange)-Cr.indexOf(ge.videoRange);if(se.videoCodec!==ge.videoCodec){const Ae=wt(se.videoCodec),Ve=wt(ge.videoCodec);if(Ae!==Ve)return Ve-Ae}if(se.uri===ge.uri&&se.codecSet!==ge.codecSet){const Ae=mt(se.codecSet),Ve=mt(ge.codecSet);if(Ae!==Ve)return Ve-Ae}return se.averageBitrate!==ge.averageBitrate?se.averageBitrate-ge.averageBitrate:0});let E=p[0];if(this.steering&&(f=this.steering.filterParsedLevels(f),f.length!==p.length)){for(let se=0;se<p.length;se++)if(p[se].pathwayId===f[0].pathwayId){E=p[se];break}}this._levels=f;for(let se=0;se<f.length;se++)if(f[se]===E){var R;this._firstLevel=se;const ge=E.bitrate,Ae=this.hls.bandwidthEstimate;if(this.log(`manifest loaded, ${f.length} level(s) found, first bitrate: ${ge}`),((R=this.hls.userConfig)==null?void 0:R.abrEwmaDefaultEstimate)===void 0){const Ve=Math.min(ge,this.hls.config.abrEwmaDefaultEstimateMax);Ve>Ae&&Ae===Wo.abrEwmaDefaultEstimate&&(this.hls.bandwidthEstimate=Ve)}break}const G=i&&!r,ue={levels:f,audioTracks:s,subtitleTracks:u,sessionData:t.sessionData,sessionKeys:t.sessionKeys,firstLevel:this._firstLevel,stats:t.stats,audio:i,video:r,altAudio:!G&&s.some(se=>!!se.url)};this.hls.trigger(c.MANIFEST_PARSED,ue),(this.hls.config.autoStartLoad||this.hls.forceStartLoad)&&this.hls.startLoad(this.hls.config.startPosition)}get levels(){return this._levels.length===0?null:this._levels}get level(){return this.currentLevelIndex}set level(e){const t=this._levels;if(t.length===0)return;if(e<0||e>=t.length){const E=new Error("invalid level idx"),R=e<0;if(this.hls.trigger(c.ERROR,{type:S.OTHER_ERROR,details:y.LEVEL_SWITCH_ERROR,level:e,fatal:R,error:E,reason:E.message}),R)return;e=Math.min(e,t.length-1)}const n=this.currentLevelIndex,r=this.currentLevel,i=r?r.attrs["PATHWAY-ID"]:void 0,s=t[e],u=s.attrs["PATHWAY-ID"];if(this.currentLevelIndex=e,this.currentLevel=s,n===e&&s.details&&r&&i===u)return;this.log(`Switching to level ${e} (${s.height?s.height+"p ":""}${s.videoRange?s.videoRange+" ":""}${s.codecSet?s.codecSet+" ":""}@${s.bitrate})${u?" with Pathway "+u:""} from level ${n}${i?" with Pathway "+i:""}`);const f={level:e,attrs:s.attrs,details:s.details,bitrate:s.bitrate,averageBitrate:s.averageBitrate,maxBitrate:s.maxBitrate,realBitrate:s.realBitrate,width:s.width,height:s.height,codecSet:s.codecSet,audioCodec:s.audioCodec,videoCodec:s.videoCodec,audioGroups:s.audioGroups,subtitleGroups:s.subtitleGroups,loaded:s.loaded,loadError:s.loadError,fragmentError:s.fragmentError,name:s.name,id:s.id,uri:s.uri,url:s.url,urlId:0,audioGroupIds:s.audioGroupIds,textGroupIds:s.textGroupIds};this.hls.trigger(c.LEVEL_SWITCHING,f);const p=s.details;if(!p||p.live){const E=this.switchParams(s.uri,r==null?void 0:r.details,p);this.loadPlaylist(E)}}get manualLevel(){return this.manualLevelIndex}set manualLevel(e){this.manualLevelIndex=e,this._startLevel===void 0&&(this._startLevel=e),e!==-1&&(this.level=e)}get firstLevel(){return this._firstLevel}set firstLevel(e){this._firstLevel=e}get startLevel(){if(this._startLevel===void 0){const e=this.hls.config.startLevel;return e!==void 0?e:this.hls.firstAutoLevel}return this._startLevel}set startLevel(e){this._startLevel=e}onError(e,t){t.fatal||!t.context||t.context.type===sn.LEVEL&&t.context.level===this.level&&this.checkRetry(t)}onFragBuffered(e,{frag:t}){if(t!==void 0&&t.type===Ge.MAIN){const n=t.elementaryStreams;if(!Object.keys(n).some(i=>!!n[i]))return;const r=this._levels[t.level];r!=null&&r.loadError&&(this.log(`Resetting level error count of ${r.loadError} on frag buffered`),r.loadError=0)}}onLevelLoaded(e,t){var n;const{level:r,details:i}=t,s=this._levels[r];if(!s){var u;this.warn(`Invalid level index ${r}`),(u=t.deliveryDirectives)!=null&&u.skip&&(i.deltaUpdateFailed=!0);return}r===this.currentLevelIndex?(s.fragmentError===0&&(s.loadError=0),this.playlistLoaded(r,t,s.details)):(n=t.deliveryDirectives)!=null&&n.skip&&(i.deltaUpdateFailed=!0)}loadPlaylist(e){super.loadPlaylist();const t=this.currentLevelIndex,n=this.currentLevel;if(n&&this.shouldLoadPlaylist(n)){let r=n.uri;if(e)try{r=e.addDirectives(r)}catch(s){this.warn(`Could not construct new URL with HLS Delivery Directives: ${s}`)}const i=n.attrs["PATHWAY-ID"];this.log(`Loading level index ${t}${(e==null?void 0:e.msn)!==void 0?" at sn "+e.msn+" part "+e.part:""} with${i?" Pathway "+i:""} ${r}`),this.clearTimer(),this.hls.trigger(c.LEVEL_LOADING,{url:r,level:t,pathwayId:n.attrs["PATHWAY-ID"],id:0,deliveryDirectives:e||null})}}get nextLoadLevel(){return this.manualLevelIndex!==-1?this.manualLevelIndex:this.hls.nextAutoLevel}set nextLoadLevel(e){this.level=e,this.manualLevelIndex===-1&&(this.hls.nextAutoLevel=e)}removeLevel(e){var t;const n=this._levels.filter((r,i)=>i!==e?!0:(this.steering&&this.steering.removeLevel(r),r===this.currentLevel&&(this.currentLevel=null,this.currentLevelIndex=-1,r.details&&r.details.fragments.forEach(s=>s.level=-1)),!1));Cn(n),this._levels=n,this.currentLevelIndex>-1&&(t=this.currentLevel)!=null&&t.details&&(this.currentLevelIndex=this.currentLevel.details.fragments[0].level),this.hls.trigger(c.LEVELS_UPDATED,{levels:n})}onLevelsUpdated(e,{levels:t}){this._levels=t}checkMaxAutoUpdated(){const{autoLevelCapping:e,maxAutoLevel:t,maxHdcpLevel:n}=this.hls;this._maxAutoLevel!==t&&(this._maxAutoLevel=t,this.hls.trigger(c.MAX_AUTO_LEVEL_UPDATED,{autoLevelCapping:e,levels:this.levels,maxAutoLevel:t,minAutoLevel:this.hls.minAutoLevel,maxHdcpLevel:n}))}}function Go(a){const e={};a.forEach(t=>{const n=t.groupId||"";t.id=e[n]=e[n]||0,e[n]++})}class pu{constructor(e){this.config=void 0,this.keyUriToKeyInfo={},this.emeController=null,this.config=e}abort(e){for(const n in this.keyUriToKeyInfo){const r=this.keyUriToKeyInfo[n].loader;if(r){var t;if(e&&e!==((t=r.context)==null?void 0:t.frag.type))return;r.abort()}}}detach(){for(const e in this.keyUriToKeyInfo){const t=this.keyUriToKeyInfo[e];(t.mediaKeySessionContext||t.decryptdata.isCommonEncryption)&&delete this.keyUriToKeyInfo[e]}}destroy(){this.detach();for(const e in this.keyUriToKeyInfo){const t=this.keyUriToKeyInfo[e].loader;t&&t.destroy()}this.keyUriToKeyInfo={}}createKeyLoadError(e,t=y.KEY_LOAD_ERROR,n,r,i){return new ri({type:S.NETWORK_ERROR,details:t,fatal:!1,frag:e,response:i,error:n,networkDetails:r})}loadClear(e,t){if(this.emeController&&this.config.emeEnabled){const{sn:n,cc:r}=e;for(let i=0;i<t.length;i++){const s=t[i];if(r<=s.cc&&(n==="initSegment"||s.sn==="initSegment"||n<s.sn)){this.emeController.selectKeySystemFormat(s).then(u=>{s.setKeyFormat(u)});break}}}}load(e){return!e.decryptdata&&e.encrypted&&this.emeController&&this.config.emeEnabled?this.emeController.selectKeySystemFormat(e).then(t=>this.loadInternal(e,t)):this.loadInternal(e)}loadInternal(e,t){var n,r;t&&e.setKeyFormat(t);const i=e.decryptdata;if(!i){const p=new Error(t?`Expected frag.decryptdata to be defined after setting format ${t}`:"Missing decryption data on fragment in onKeyLoading");return Promise.reject(this.createKeyLoadError(e,y.KEY_LOAD_ERROR,p))}const s=i.uri;if(!s)return Promise.reject(this.createKeyLoadError(e,y.KEY_LOAD_ERROR,new Error(`Invalid key URI: "${s}"`)));let u=this.keyUriToKeyInfo[s];if((n=u)!=null&&n.decryptdata.key)return i.key=u.decryptdata.key,Promise.resolve({frag:e,keyInfo:u});if((r=u)!=null&&r.keyLoadPromise){var f;switch((f=u.mediaKeySessionContext)==null?void 0:f.keyStatus){case void 0:case"status-pending":case"usable":case"usable-in-future":return u.keyLoadPromise.then(p=>(i.key=p.keyInfo.decryptdata.key,{frag:e,keyInfo:u}))}}switch(u=this.keyUriToKeyInfo[s]={decryptdata:i,keyLoadPromise:null,loader:null,mediaKeySessionContext:null},i.method){case"ISO-23001-7":case"SAMPLE-AES":case"SAMPLE-AES-CENC":case"SAMPLE-AES-CTR":return i.keyFormat==="identity"?this.loadKeyHTTP(u,e):this.loadKeyEME(u,e);case"AES-128":return this.loadKeyHTTP(u,e);default:return Promise.reject(this.createKeyLoadError(e,y.KEY_LOAD_ERROR,new Error(`Key supplied with unsupported METHOD: "${i.method}"`)))}}loadKeyEME(e,t){const n={frag:t,keyInfo:e};if(this.emeController&&this.config.emeEnabled){const r=this.emeController.loadKey(n);if(r)return(e.keyLoadPromise=r.then(i=>(e.mediaKeySessionContext=i,n))).catch(i=>{throw e.keyLoadPromise=null,i})}return Promise.resolve(n)}loadKeyHTTP(e,t){const n=this.config,r=n.loader,i=new r(n);return t.keyLoader=e.loader=i,e.keyLoadPromise=new Promise((s,u)=>{const f={keyInfo:e,frag:t,responseType:"arraybuffer",url:e.decryptdata.uri},p=n.keyLoadPolicy.default,E={loadPolicy:p,timeout:p.maxLoadTimeMs,maxRetry:0,retryDelay:0,maxRetryDelay:0},R={onSuccess:(G,ue,se,ge)=>{const{frag:Ae,keyInfo:Ve,url:vt}=se;if(!Ae.decryptdata||Ve!==this.keyUriToKeyInfo[vt])return u(this.createKeyLoadError(Ae,y.KEY_LOAD_ERROR,new Error("after key load, decryptdata unset or changed"),ge));Ve.decryptdata.key=Ae.decryptdata.key=new Uint8Array(G.data),Ae.keyLoader=null,Ve.loader=null,s({frag:Ae,keyInfo:Ve})},onError:(G,ue,se,ge)=>{this.resetLoader(ue),u(this.createKeyLoadError(t,y.KEY_LOAD_ERROR,new Error(`HTTP Error ${G.code} loading key ${G.text}`),se,ve({url:f.url,data:void 0},G)))},onTimeout:(G,ue,se)=>{this.resetLoader(ue),u(this.createKeyLoadError(t,y.KEY_LOAD_TIMEOUT,new Error("key loading timed out"),se))},onAbort:(G,ue,se)=>{this.resetLoader(ue),u(this.createKeyLoadError(t,y.INTERNAL_ABORTED,new Error("key loading aborted"),se))}};i.load(f,E,R)})}resetLoader(e){const{frag:t,keyInfo:n,url:r}=e,i=n.loader;t.keyLoader===i&&(t.keyLoader=null,n.loader=null),delete this.keyUriToKeyInfo[r],i&&i.destroy()}}function Zo(){return self.SourceBuffer||self.WebKitSourceBuffer}function Vo(){if(!zn())return!1;const e=Zo();return!e||e.prototype&&typeof e.prototype.appendBuffer=="function"&&typeof e.prototype.remove=="function"}function gu(){if(!Vo())return!1;const a=zn();return typeof(a==null?void 0:a.isTypeSupported)=="function"&&(["avc1.42E01E,mp4a.40.2","av01.0.01M.08","vp09.00.50.08"].some(e=>a.isTypeSupported(ht(e,"video")))||["mp4a.40.2","fLaC"].some(e=>a.isTypeSupported(ht(e,"audio"))))}function vu(){var a;const e=Zo();return typeof(e==null||(a=e.prototype)==null?void 0:a.changeType)=="function"}const _u=250,Ha=2,yu=.1,bu=.05;class xu{constructor(e,t,n,r){this.config=void 0,this.media=null,this.fragmentTracker=void 0,this.hls=void 0,this.nudgeRetry=0,this.stallReported=!1,this.stalled=null,this.moved=!1,this.seeking=!1,this.config=e,this.media=t,this.fragmentTracker=n,this.hls=r}destroy(){this.media=null,this.hls=this.fragmentTracker=null}poll(e,t){const{config:n,media:r,stalled:i}=this;if(r===null)return;const{currentTime:s,seeking:u}=r,f=this.seeking&&!u,p=!this.seeking&&u;if(this.seeking=u,s!==e){if(this.moved=!0,u||(this.nudgeRetry=0),i!==null){if(this.stallReported){const Ae=self.performance.now()-i;b.warn(`playback not stuck anymore @${s}, after ${Math.round(Ae)}ms`),this.stallReported=!1}this.stalled=null}return}if(p||f){this.stalled=null;return}if(r.paused&&!u||r.ended||r.playbackRate===0||!Or.getBuffered(r).length){this.nudgeRetry=0;return}const E=Or.bufferInfo(r,s,0),R=E.nextStart||0;if(u){const Ae=E.len>Ha,Ve=!R||t&&t.start<=s||R-s>Ha&&!this.fragmentTracker.getPartialFragment(s);if(Ae||Ve)return;this.moved=!1}if(!this.moved&&this.stalled!==null){var G;if(!(E.len>0)&&!R)return;const Ve=Math.max(R,E.start||0)-s,vt=this.hls.levels?this.hls.levels[this.hls.currentLevel]:null,$t=(vt==null||(G=vt.details)==null?void 0:G.live)?vt.details.targetduration*2:Ha,St=this.fragmentTracker.getPartialFragment(s);if(Ve>0&&(Ve<=$t||St)){r.paused||this._trySkipBufferHole(St);return}}const ue=self.performance.now();if(i===null){this.stalled=ue;return}const se=ue-i;if(!u&&se>=_u&&(this._reportStall(E),!this.media))return;const ge=Or.bufferInfo(r,s,n.maxBufferHole);this._tryFixBufferStall(ge,se)}_tryFixBufferStall(e,t){const{config:n,fragmentTracker:r,media:i}=this;if(i===null)return;const s=i.currentTime,u=r.getPartialFragment(s);u&&(this._trySkipBufferHole(u)||!this.media)||(e.len>n.maxBufferHole||e.nextStart&&e.nextStart-s<n.maxBufferHole)&&t>n.highBufferWatchdogPeriod*1e3&&(b.warn("Trying to nudge playhead over buffer-hole"),this.stalled=null,this._tryNudgeBuffer())}_reportStall(e){const{hls:t,media:n,stallReported:r}=this;if(!r&&n){this.stallReported=!0;const i=new Error(`Playback stalling at @${n.currentTime} due to low buffer (${JSON.stringify(e)})`);b.warn(i.message),t.trigger(c.ERROR,{type:S.MEDIA_ERROR,details:y.BUFFER_STALLED_ERROR,fatal:!1,error:i,buffer:e.len})}}_trySkipBufferHole(e){const{config:t,hls:n,media:r}=this;if(r===null)return 0;const i=r.currentTime,s=Or.bufferInfo(r,i,0),u=i<s.start?s.start:s.nextStart;if(u){const f=s.len<=t.maxBufferHole,p=s.len>0&&s.len<1&&r.readyState<3,E=u-i;if(E>0&&(f||p)){if(E>t.maxBufferHole){const{fragmentTracker:G}=this;let ue=!1;if(i===0){const se=G.getAppendedFrag(0,Ge.MAIN);se&&u<se.end&&(ue=!0)}if(!ue){const se=e||G.getAppendedFrag(i,Ge.MAIN);if(se){let ge=!1,Ae=se.end;for(;Ae<u;){const Ve=G.getPartialFragment(Ae);if(Ve)Ae+=Ve.duration;else{ge=!0;break}}if(ge)return 0}}}const R=Math.max(u+bu,i+yu);if(b.warn(`skipping hole, adjusting currentTime from ${i} to ${R}`),this.moved=!0,this.stalled=null,r.currentTime=R,e&&!e.gap){const G=new Error(`fragment loaded with buffer holes, seeking from ${i} to ${R}`);n.trigger(c.ERROR,{type:S.MEDIA_ERROR,details:y.BUFFER_SEEK_OVER_HOLE,fatal:!1,error:G,reason:G.message,frag:e})}return R}}return 0}_tryNudgeBuffer(){const{config:e,hls:t,media:n,nudgeRetry:r}=this;if(n===null)return;const i=n.currentTime;if(this.nudgeRetry++,r<e.nudgeMaxRetry){const s=i+(r+1)*e.nudgeOffset,u=new Error(`Nudging 'currentTime' from ${i} to ${s}`);b.warn(u.message),n.currentTime=s,t.trigger(c.ERROR,{type:S.MEDIA_ERROR,details:y.BUFFER_NUDGE_ON_STALL,error:u,fatal:!1})}else{const s=new Error(`Playhead still not moving while enough data buffered @${i} after ${e.nudgeMaxRetry} nudges`);b.error(s.message),t.trigger(c.ERROR,{type:S.MEDIA_ERROR,details:y.BUFFER_STALLED_ERROR,error:s,fatal:!0})}}}const Eu=100;class wu extends bs{constructor(e,t,n){super(e,t,n,"[stream-controller]",Ge.MAIN),this.audioCodecSwap=!1,this.gapController=null,this.level=-1,this._forceStartLoad=!1,this.altAudio=!1,this.audioOnly=!1,this.fragPlaying=null,this.onvplaying=null,this.onvseeked=null,this.fragLastKbps=0,this.couldBacktrack=!1,this.backtrackFragment=null,this.audioCodecSwitch=!1,this.videoBuffer=null,this._registerListeners()}_registerListeners(){const{hls:e}=this;e.on(c.MEDIA_ATTACHED,this.onMediaAttached,this),e.on(c.MEDIA_DETACHING,this.onMediaDetaching,this),e.on(c.MANIFEST_LOADING,this.onManifestLoading,this),e.on(c.MANIFEST_PARSED,this.onManifestParsed,this),e.on(c.LEVEL_LOADING,this.onLevelLoading,this),e.on(c.LEVEL_LOADED,this.onLevelLoaded,this),e.on(c.FRAG_LOAD_EMERGENCY_ABORTED,this.onFragLoadEmergencyAborted,this),e.on(c.ERROR,this.onError,this),e.on(c.AUDIO_TRACK_SWITCHING,this.onAudioTrackSwitching,this),e.on(c.AUDIO_TRACK_SWITCHED,this.onAudioTrackSwitched,this),e.on(c.BUFFER_CREATED,this.onBufferCreated,this),e.on(c.BUFFER_FLUSHED,this.onBufferFlushed,this),e.on(c.LEVELS_UPDATED,this.onLevelsUpdated,this),e.on(c.FRAG_BUFFERED,this.onFragBuffered,this)}_unregisterListeners(){const{hls:e}=this;e.off(c.MEDIA_ATTACHED,this.onMediaAttached,this),e.off(c.MEDIA_DETACHING,this.onMediaDetaching,this),e.off(c.MANIFEST_LOADING,this.onManifestLoading,this),e.off(c.MANIFEST_PARSED,this.onManifestParsed,this),e.off(c.LEVEL_LOADED,this.onLevelLoaded,this),e.off(c.FRAG_LOAD_EMERGENCY_ABORTED,this.onFragLoadEmergencyAborted,this),e.off(c.ERROR,this.onError,this),e.off(c.AUDIO_TRACK_SWITCHING,this.onAudioTrackSwitching,this),e.off(c.AUDIO_TRACK_SWITCHED,this.onAudioTrackSwitched,this),e.off(c.BUFFER_CREATED,this.onBufferCreated,this),e.off(c.BUFFER_FLUSHED,this.onBufferFlushed,this),e.off(c.LEVELS_UPDATED,this.onLevelsUpdated,this),e.off(c.FRAG_BUFFERED,this.onFragBuffered,this)}onHandlerDestroying(){this._unregisterListeners(),super.onHandlerDestroying()}startLoad(e){if(this.levels){const{lastCurrentTime:t,hls:n}=this;if(this.stopLoad(),this.setInterval(Eu),this.level=-1,!this.startFragRequested){let r=n.startLevel;r===-1&&(n.config.testBandwidth&&this.levels.length>1?(r=0,this.bitrateTest=!0):r=n.firstAutoLevel),n.nextLoadLevel=r,this.level=n.loadLevel,this.loadedmetadata=!1}t>0&&e===-1&&(this.log(`Override startPosition with lastCurrentTime @${t.toFixed(3)}`),e=t),this.state=Xt.IDLE,this.nextLoadPosition=this.startPosition=this.lastCurrentTime=e,this.tick()}else this._forceStartLoad=!0,this.state=Xt.STOPPED}stopLoad(){this._forceStartLoad=!1,super.stopLoad()}doTick(){switch(this.state){case Xt.WAITING_LEVEL:{const{levels:t,level:n}=this,r=t==null?void 0:t[n],i=r==null?void 0:r.details;if(i&&(!i.live||this.levelLastLoaded===r)){if(this.waitForCdnTuneIn(i))break;this.state=Xt.IDLE;break}else if(this.hls.nextLoadLevel!==this.level){this.state=Xt.IDLE;break}break}case Xt.FRAG_LOADING_WAITING_RETRY:{var e;const t=self.performance.now(),n=this.retryDate;if(!n||t>=n||(e=this.media)!=null&&e.seeking){const{levels:r,level:i}=this,s=r==null?void 0:r[i];this.resetStartWhenNotLoaded(s||null),this.state=Xt.IDLE}}break}this.state===Xt.IDLE&&this.doTickIdle(),this.onTickEnd()}onTickEnd(){super.onTickEnd(),this.checkBuffer(),this.checkFragmentChanged()}doTickIdle(){const{hls:e,levelLastLoaded:t,levels:n,media:r}=this;if(t===null||!r&&(this.startFragRequested||!e.config.startFragPrefetch)||this.altAudio&&this.audioOnly)return;const i=this.buffering?e.nextLoadLevel:e.loadLevel;if(!(n!=null&&n[i]))return;const s=n[i],u=this.getMainFwdBufferInfo();if(u===null)return;const f=this.getLevelDetails();if(f&&this._streamEnded(u,f)){const ge={};this.altAudio&&(ge.type="video"),this.hls.trigger(c.BUFFER_EOS,ge),this.state=Xt.ENDED;return}if(!this.buffering)return;e.loadLevel!==i&&e.manualLevel===-1&&this.log(`Adapting to level ${i} from level ${this.level}`),this.level=e.nextLoadLevel=i;const p=s.details;if(!p||this.state===Xt.WAITING_LEVEL||p.live&&this.levelLastLoaded!==s){this.level=i,this.state=Xt.WAITING_LEVEL;return}const E=u.len,R=this.getMaxBufferLength(s.maxBitrate);if(E>=R)return;this.backtrackFragment&&this.backtrackFragment.start>u.end&&(this.backtrackFragment=null);const G=this.backtrackFragment?this.backtrackFragment.start:u.end;let ue=this.getNextFragment(G,p);if(this.couldBacktrack&&!this.fragPrevious&&ue&&ue.sn!=="initSegment"&&this.fragmentTracker.getState(ue)!==Ir.OK){var se;const Ae=((se=this.backtrackFragment)!=null?se:ue).sn-p.startSN,Ve=p.fragments[Ae-1];Ve&&ue.cc===Ve.cc&&(ue=Ve,this.fragmentTracker.removeFragment(Ve))}else this.backtrackFragment&&u.len&&(this.backtrackFragment=null);if(ue&&this.isLoopLoading(ue,G)){if(!ue.gap){const Ae=this.audioOnly&&!this.altAudio?Z.AUDIO:Z.VIDEO,Ve=(Ae===Z.VIDEO?this.videoBuffer:this.mediaBuffer)||this.media;Ve&&this.afterBufferFlushed(Ve,Ae,Ge.MAIN)}ue=this.getNextFragmentLoopLoading(ue,p,u,Ge.MAIN,R)}ue&&(ue.initSegment&&!ue.initSegment.data&&!this.bitrateTest&&(ue=ue.initSegment),this.loadFragment(ue,s,G))}loadFragment(e,t,n){const r=this.fragmentTracker.getState(e);this.fragCurrent=e,r===Ir.NOT_LOADED||r===Ir.PARTIAL?e.sn==="initSegment"?this._loadInitSegment(e,t):this.bitrateTest?(this.log(`Fragment ${e.sn} of level ${e.level} is being downloaded to test bitrate and will not be buffered`),this._loadBitrateTestFrag(e,t)):(this.startFragRequested=!0,super.loadFragment(e,t,n)):this.clearTrackerIfNeeded(e)}getBufferedFrag(e){return this.fragmentTracker.getBufferedFrag(e,Ge.MAIN)}followingBufferedFrag(e){return e?this.getBufferedFrag(e.end+.5):null}immediateLevelSwitch(){this.abortCurrentFrag(),this.flushMainBuffer(0,Number.POSITIVE_INFINITY)}nextLevelSwitch(){const{levels:e,media:t}=this;if(t!=null&&t.readyState){let n;const r=this.getAppendedFrag(t.currentTime);r&&r.start>1&&this.flushMainBuffer(0,r.start-1);const i=this.getLevelDetails();if(i!=null&&i.live){const u=this.getMainFwdBufferInfo();if(!u||u.len<i.targetduration*2)return}if(!t.paused&&e){const u=this.hls.nextLoadLevel,f=e[u],p=this.fragLastKbps;p&&this.fragCurrent?n=this.fragCurrent.duration*f.maxBitrate/(1e3*p)+1:n=0}else n=0;const s=this.getBufferedFrag(t.currentTime+n);if(s){const u=this.followingBufferedFrag(s);if(u){this.abortCurrentFrag();const f=u.maxStartPTS?u.maxStartPTS:u.start,p=u.duration,E=Math.max(s.end,f+Math.min(Math.max(p-this.config.maxFragLookUpTolerance,p*(this.couldBacktrack?.5:.125)),p*(this.couldBacktrack?.75:.25)));this.flushMainBuffer(E,Number.POSITIVE_INFINITY)}}}}abortCurrentFrag(){const e=this.fragCurrent;switch(this.fragCurrent=null,this.backtrackFragment=null,e&&(e.abortRequests(),this.fragmentTracker.removeFragment(e)),this.state){case Xt.KEY_LOADING:case Xt.FRAG_LOADING:case Xt.FRAG_LOADING_WAITING_RETRY:case Xt.PARSING:case Xt.PARSED:this.state=Xt.IDLE;break}this.nextLoadPosition=this.getLoadPosition()}flushMainBuffer(e,t){super.flushMainBuffer(e,t,this.altAudio?"video":null)}onMediaAttached(e,t){super.onMediaAttached(e,t);const n=t.media;this.onvplaying=this.onMediaPlaying.bind(this),this.onvseeked=this.onMediaSeeked.bind(this),n.addEventListener("playing",this.onvplaying),n.addEventListener("seeked",this.onvseeked),this.gapController=new xu(this.config,n,this.fragmentTracker,this.hls)}onMediaDetaching(){const{media:e}=this;e&&this.onvplaying&&this.onvseeked&&(e.removeEventListener("playing",this.onvplaying),e.removeEventListener("seeked",this.onvseeked),this.onvplaying=this.onvseeked=null,this.videoBuffer=null),this.fragPlaying=null,this.gapController&&(this.gapController.destroy(),this.gapController=null),super.onMediaDetaching()}onMediaPlaying(){this.tick()}onMediaSeeked(){const e=this.media,t=e?e.currentTime:null;L(t)&&this.log(`Media seeked to ${t.toFixed(3)}`);const n=this.getMainFwdBufferInfo();if(n===null||n.len===0){this.warn(`Main forward buffer length on "seeked" event ${n?n.len:"empty"})`);return}this.tick()}onManifestLoading(){this.log("Trigger BUFFER_RESET"),this.hls.trigger(c.BUFFER_RESET,void 0),this.fragmentTracker.removeAllFragments(),this.couldBacktrack=!1,this.startPosition=this.lastCurrentTime=this.fragLastKbps=0,this.levels=this.fragPlaying=this.backtrackFragment=this.levelLastLoaded=null,this.altAudio=this.audioOnly=this.startFragRequested=!1}onManifestParsed(e,t){let n=!1,r=!1;t.levels.forEach(i=>{const s=i.audioCodec;s&&(n=n||s.indexOf("mp4a.40.2")!==-1,r=r||s.indexOf("mp4a.40.5")!==-1)}),this.audioCodecSwitch=n&&r&&!vu(),this.audioCodecSwitch&&this.log("Both AAC/HE-AAC audio found in levels; declaring level codec as HE-AAC"),this.levels=t.levels,this.startFragRequested=!1}onLevelLoading(e,t){const{levels:n}=this;if(!n||this.state!==Xt.IDLE)return;const r=n[t.level];(!r.details||r.details.live&&this.levelLastLoaded!==r||this.waitForCdnTuneIn(r.details))&&(this.state=Xt.WAITING_LEVEL)}onLevelLoaded(e,t){var n;const{levels:r}=this,i=t.level,s=t.details,u=s.totalduration;if(!r){this.warn(`Levels were reset while loading level ${i}`);return}this.log(`Level ${i} loaded [${s.startSN},${s.endSN}]${s.lastPartSn?`[part-${s.lastPartSn}-${s.lastPartIndex}]`:""}, cc [${s.startCC}, ${s.endCC}] duration:${u}`);const f=r[i],p=this.fragCurrent;p&&(this.state===Xt.FRAG_LOADING||this.state===Xt.FRAG_LOADING_WAITING_RETRY)&&p.level!==t.level&&p.loader&&this.abortCurrentFrag();let E=0;if(s.live||(n=f.details)!=null&&n.live){var R;if(this.checkLiveUpdate(s),s.deltaUpdateFailed)return;E=this.alignPlaylists(s,f.details,(R=this.levelLastLoaded)==null?void 0:R.details)}if(f.details=s,this.levelLastLoaded=f,this.hls.trigger(c.LEVEL_UPDATED,{details:s,level:i}),this.state===Xt.WAITING_LEVEL){if(this.waitForCdnTuneIn(s))return;this.state=Xt.IDLE}this.startFragRequested?s.live&&this.synchronizeToLiveEdge(s):this.setStartPosition(s,E),this.tick()}_handleFragmentLoadProgress(e){var t;const{frag:n,part:r,payload:i}=e,{levels:s}=this;if(!s){this.warn(`Levels were reset while fragment load was in progress. Fragment ${n.sn} of level ${n.level} will not be buffered`);return}const u=s[n.level],f=u.details;if(!f){this.warn(`Dropping fragment ${n.sn} of level ${n.level} after level details were reset`),this.fragmentTracker.removeFragment(n);return}const p=u.videoCodec,E=f.PTSKnown||!f.live,R=(t=n.initSegment)==null?void 0:t.data,G=this._getAudioCodec(u),ue=this.transmuxer=this.transmuxer||new Sn(this.hls,Ge.MAIN,this._handleTransmuxComplete.bind(this),this._handleTransmuxerFlush.bind(this)),se=r?r.index:-1,ge=se!==-1,Ae=new gs(n.level,n.sn,n.stats.chunkCount,i.byteLength,se,ge),Ve=this.initPTS[n.cc];ue.push(i,R,G,p,n,r,f.totalduration,E,Ae,Ve)}onAudioTrackSwitching(e,t){const n=this.altAudio;if(!!!t.url){if(this.mediaBuffer!==this.media){this.log("Switching on main audio, use media.buffered to schedule main fragment loading"),this.mediaBuffer=this.media;const s=this.fragCurrent;s&&(this.log("Switching to main audio track, cancel main fragment load"),s.abortRequests(),this.fragmentTracker.removeFragment(s)),this.resetTransmuxer(),this.resetLoadingState()}else this.audioOnly&&this.resetTransmuxer();const i=this.hls;n&&(i.trigger(c.BUFFER_FLUSHING,{startOffset:0,endOffset:Number.POSITIVE_INFINITY,type:null}),this.fragmentTracker.removeAllFragments()),i.trigger(c.AUDIO_TRACK_SWITCHED,t)}}onAudioTrackSwitched(e,t){const n=t.id,r=!!this.hls.audioTracks[n].url;if(r){const i=this.videoBuffer;i&&this.mediaBuffer!==i&&(this.log("Switching on alternate audio, use video.buffered to schedule main fragment loading"),this.mediaBuffer=i)}this.altAudio=r,this.tick()}onBufferCreated(e,t){const n=t.tracks;let r,i,s=!1;for(const u in n){const f=n[u];if(f.id==="main"){if(i=u,r=f,u==="video"){const p=n[u];p&&(this.videoBuffer=p.buffer)}}else s=!0}s&&r?(this.log(`Alternate track found, use ${i}.buffered to schedule main fragment loading`),this.mediaBuffer=r.buffer):this.mediaBuffer=this.media}onFragBuffered(e,t){const{frag:n,part:r}=t;if(n&&n.type!==Ge.MAIN)return;if(this.fragContextChanged(n)){this.warn(`Fragment ${n.sn}${r?" p: "+r.index:""} of level ${n.level} finished buffering, but was aborted. state: ${this.state}`),this.state===Xt.PARSED&&(this.state=Xt.IDLE);return}const i=r?r.stats:n.stats;this.fragLastKbps=Math.round(8*i.total/(i.buffering.end-i.loading.first)),n.sn!=="initSegment"&&(this.fragPrevious=n),this.fragBufferedComplete(n,r)}onError(e,t){var n;if(t.fatal){this.state=Xt.ERROR;return}switch(t.details){case y.FRAG_GAP:case y.FRAG_PARSING_ERROR:case y.FRAG_DECRYPT_ERROR:case y.FRAG_LOAD_ERROR:case y.FRAG_LOAD_TIMEOUT:case y.KEY_LOAD_ERROR:case y.KEY_LOAD_TIMEOUT:this.onFragmentOrKeyLoadError(Ge.MAIN,t);break;case y.LEVEL_LOAD_ERROR:case y.LEVEL_LOAD_TIMEOUT:case y.LEVEL_PARSING_ERROR:!t.levelRetry&&this.state===Xt.WAITING_LEVEL&&((n=t.context)==null?void 0:n.type)===sn.LEVEL&&(this.state=Xt.IDLE);break;case y.BUFFER_APPEND_ERROR:case y.BUFFER_FULL_ERROR:if(!t.parent||t.parent!=="main")return;if(t.details===y.BUFFER_APPEND_ERROR){this.resetLoadingState();return}this.reduceLengthAndFlushBuffer(t)&&this.flushMainBuffer(0,Number.POSITIVE_INFINITY);break;case y.INTERNAL_EXCEPTION:this.recoverWorkerError(t);break}}checkBuffer(){const{media:e,gapController:t}=this;if(!(!e||!t||!e.readyState)){if(this.loadedmetadata||!Or.getBuffered(e).length){const n=this.state!==Xt.IDLE?this.fragCurrent:null;t.poll(this.lastCurrentTime,n)}this.lastCurrentTime=e.currentTime}}onFragLoadEmergencyAborted(){this.state=Xt.IDLE,this.loadedmetadata||(this.startFragRequested=!1,this.nextLoadPosition=this.startPosition),this.tickImmediate()}onBufferFlushed(e,{type:t}){if(t!==Z.AUDIO||this.audioOnly&&!this.altAudio){const n=(t===Z.VIDEO?this.videoBuffer:this.mediaBuffer)||this.media;this.afterBufferFlushed(n,t,Ge.MAIN),this.tick()}}onLevelsUpdated(e,t){this.level>-1&&this.fragCurrent&&(this.level=this.fragCurrent.level),this.levels=t.levels}swapAudioCodec(){this.audioCodecSwap=!this.audioCodecSwap}seekToStartPos(){const{media:e}=this;if(!e)return;const t=e.currentTime;let n=this.startPosition;if(n>=0&&t<n){if(e.seeking){this.log(`could not seek to ${n}, already seeking at ${t}`);return}const r=Or.getBuffered(e),s=(r.length?r.start(0):0)-n;s>0&&(s<this.config.maxBufferHole||s<this.config.maxFragLookUpTolerance)&&(this.log(`adjusting start position by ${s} to match buffer start`),n+=s,this.startPosition=n),this.log(`seek to target start position ${n} from current time ${t}`),e.currentTime=n}}_getAudioCodec(e){let t=this.config.defaultAudioCodec||e.audioCodec;return this.audioCodecSwap&&t&&(this.log("Swapping audio codec"),t.indexOf("mp4a.40.5")!==-1?t="mp4a.40.2":t="mp4a.40.5"),t}_loadBitrateTestFrag(e,t){e.bitrateTest=!0,this._doFragLoad(e,t).then(n=>{const{hls:r}=this;if(!n||this.fragContextChanged(e))return;t.fragmentError=0,this.state=Xt.IDLE,this.startFragRequested=!1,this.bitrateTest=!1;const i=e.stats;i.parsing.start=i.parsing.end=i.buffering.start=i.buffering.end=self.performance.now(),r.trigger(c.FRAG_LOADED,n),e.bitrateTest=!1})}_handleTransmuxComplete(e){var t;const n="main",{hls:r}=this,{remuxResult:i,chunkMeta:s}=e,u=this.getCurrentContext(s);if(!u){this.resetWhenMissingContext(s);return}const{frag:f,part:p,level:E}=u,{video:R,text:G,id3:ue,initSegment:se}=i,{details:ge}=E,Ae=this.altAudio?void 0:i.audio;if(this.fragContextChanged(f)){this.fragmentTracker.removeFragment(f);return}if(this.state=Xt.PARSING,se){if(se!=null&&se.tracks){const pt=f.initSegment||f;this._bufferInitSegment(E,se.tracks,pt,s),r.trigger(c.FRAG_PARSING_INIT_SEGMENT,{frag:pt,id:n,tracks:se.tracks})}const Ve=se.initPTS,vt=se.timescale;L(Ve)&&(this.initPTS[f.cc]={baseTime:Ve,timescale:vt},r.trigger(c.INIT_PTS_FOUND,{frag:f,id:n,initPTS:Ve,timescale:vt}))}if(R&&ge&&f.sn!=="initSegment"){const Ve=ge.fragments[f.sn-1-ge.startSN],vt=f.sn===ge.startSN,pt=!Ve||f.cc>Ve.cc;if(i.independent!==!1){const{startPTS:$t,endPTS:St,startDTS:an,endDTS:zt}=R;if(p)p.elementaryStreams[R.type]={startPTS:$t,endPTS:St,startDTS:an,endDTS:zt};else if(R.firstKeyFrame&&R.independent&&s.id===1&&!pt&&(this.couldBacktrack=!0),R.dropped&&R.independent){const bn=this.getMainFwdBufferInfo(),Fn=(bn?bn.end:this.getLoadPosition())+this.config.maxBufferHole,en=R.firstKeyFramePTS?R.firstKeyFramePTS:$t;if(!vt&&Fn<en-this.config.maxBufferHole&&!pt){this.backtrack(f);return}else pt&&(f.gap=!0);f.setElementaryStreamInfo(R.type,f.start,St,f.start,zt,!0)}else vt&&$t>Ha&&(f.gap=!0);f.setElementaryStreamInfo(R.type,$t,St,an,zt),this.backtrackFragment&&(this.backtrackFragment=f),this.bufferFragmentData(R,f,p,s,vt||pt)}else if(vt||pt)f.gap=!0;else{this.backtrack(f);return}}if(Ae){const{startPTS:Ve,endPTS:vt,startDTS:pt,endDTS:$t}=Ae;p&&(p.elementaryStreams[Z.AUDIO]={startPTS:Ve,endPTS:vt,startDTS:pt,endDTS:$t}),f.setElementaryStreamInfo(Z.AUDIO,Ve,vt,pt,$t),this.bufferFragmentData(Ae,f,p,s)}if(ge&&ue!=null&&(t=ue.samples)!=null&&t.length){const Ve={id:n,frag:f,details:ge,samples:ue.samples};r.trigger(c.FRAG_PARSING_METADATA,Ve)}if(ge&&G){const Ve={id:n,frag:f,details:ge,samples:G.samples};r.trigger(c.FRAG_PARSING_USERDATA,Ve)}}_bufferInitSegment(e,t,n,r){if(this.state!==Xt.PARSING)return;this.audioOnly=!!t.audio&&!t.video,this.altAudio&&!this.audioOnly&&delete t.audio;const{audio:i,video:s,audiovideo:u}=t;if(i){let f=e.audioCodec;const p=navigator.userAgent.toLowerCase();if(this.audioCodecSwitch){f&&(f.indexOf("mp4a.40.5")!==-1?f="mp4a.40.2":f="mp4a.40.5");const E=i.metadata;E&&"channelCount"in E&&(E.channelCount||1)!==1&&p.indexOf("firefox")===-1&&(f="mp4a.40.5")}f&&f.indexOf("mp4a.40.5")!==-1&&p.indexOf("android")!==-1&&i.container!=="audio/mpeg"&&(f="mp4a.40.2",this.log(`Android: force audio codec to ${f}`)),e.audioCodec&&e.audioCodec!==f&&this.log(`Swapping manifest audio codec "${e.audioCodec}" for "${f}"`),i.levelCodec=f,i.id="main",this.log(`Init audio buffer, container:${i.container}, codecs[selected/level/parsed]=[${f||""}/${e.audioCodec||""}/${i.codec}]`)}s&&(s.levelCodec=e.videoCodec,s.id="main",this.log(`Init video buffer, container:${s.container}, codecs[level/parsed]=[${e.videoCodec||""}/${s.codec}]`)),u&&this.log(`Init audiovideo buffer, container:${u.container}, codecs[level/parsed]=[${e.codecs}/${u.codec}]`),this.hls.trigger(c.BUFFER_CODECS,t),Object.keys(t).forEach(f=>{const E=t[f].initSegment;E!=null&&E.byteLength&&this.hls.trigger(c.BUFFER_APPENDING,{type:f,data:E,frag:n,part:null,chunkMeta:r,parent:n.type})}),this.tickImmediate()}getMainFwdBufferInfo(){return this.getFwdBufferInfo(this.mediaBuffer?this.mediaBuffer:this.media,Ge.MAIN)}backtrack(e){this.couldBacktrack=!0,this.backtrackFragment=e,this.resetTransmuxer(),this.flushBufferGap(e),this.fragmentTracker.removeFragment(e),this.fragPrevious=null,this.nextLoadPosition=e.start,this.state=Xt.IDLE}checkFragmentChanged(){const e=this.media;let t=null;if(e&&e.readyState>1&&e.seeking===!1){const n=e.currentTime;if(Or.isBuffered(e,n)?t=this.getAppendedFrag(n):Or.isBuffered(e,n+.1)&&(t=this.getAppendedFrag(n+.1)),t){this.backtrackFragment=null;const r=this.fragPlaying,i=t.level;(!r||t.sn!==r.sn||r.level!==i)&&(this.fragPlaying=t,this.hls.trigger(c.FRAG_CHANGED,{frag:t}),(!r||r.level!==i)&&this.hls.trigger(c.LEVEL_SWITCHED,{level:i}))}}}get nextLevel(){const e=this.nextBufferedFrag;return e?e.level:-1}get currentFrag(){const e=this.media;return e?this.fragPlaying||this.getAppendedFrag(e.currentTime):null}get currentProgramDateTime(){const e=this.media;if(e){const t=e.currentTime,n=this.currentFrag;if(n&&L(t)&&L(n.programDateTime)){const r=n.programDateTime+(t-n.start)*1e3;return new Date(r)}}return null}get currentLevel(){const e=this.currentFrag;return e?e.level:-1}get nextBufferedFrag(){const e=this.currentFrag;return e?this.followingBufferedFrag(e):null}get forceStartLoad(){return this._forceStartLoad}}class Ps{static get version(){return"1.5.20"}static isMSESupported(){return Vo()}static isSupported(){return gu()}static getMediaSource(){return zn()}static get Events(){return c}static get ErrorTypes(){return S}static get ErrorDetails(){return y}static get DefaultConfig(){return Ps.defaultConfig?Ps.defaultConfig:Wo}static set DefaultConfig(e){Ps.defaultConfig=e}constructor(e={}){this.config=void 0,this.userConfig=void 0,this.coreComponents=void 0,this.networkControllers=void 0,this.started=!1,this._emitter=new fn,this._autoLevelCapping=-1,this._maxHdcpLevel=null,this.abrController=void 0,this.bufferController=void 0,this.capLevelController=void 0,this.latencyController=void 0,this.levelController=void 0,this.streamController=void 0,this.audioTrackController=void 0,this.subtitleTrackController=void 0,this.emeController=void 0,this.cmcdController=void 0,this._media=null,this.url=null,this.triggeringException=void 0,re(e.debug||!1,"Hls instance");const t=this.config=hu(Ps.DefaultConfig,e);this.userConfig=e,t.progressive&&fu(t);const{abrController:n,bufferController:r,capLevelController:i,errorController:s,fpsController:u}=t,f=new s(this),p=this.abrController=new n(this),E=this.bufferController=new r(this),R=this.capLevelController=new i(this),G=new u(this),ue=new Xn(this),se=new xr(this),ge=t.contentSteeringController,Ae=ge?new ge(this):null,Ve=this.levelController=new mu(this,Ae),vt=new Fi(this),pt=new pu(this.config),$t=this.streamController=new wu(this,vt,pt);R.setStreamController($t),G.setStreamController($t);const St=[ue,Ve,$t];Ae&&St.splice(1,0,Ae),this.networkControllers=St;const an=[p,E,R,G,se,vt];this.audioTrackController=this.createController(t.audioTrackController,St);const zt=t.audioStreamController;zt&&St.push(new zt(this,vt,pt)),this.subtitleTrackController=this.createController(t.subtitleTrackController,St);const bn=t.subtitleStreamController;bn&&St.push(new bn(this,vt,pt)),this.createController(t.timelineController,an),pt.emeController=this.emeController=this.createController(t.emeController,an),this.cmcdController=this.createController(t.cmcdController,an),this.latencyController=this.createController(Mr,an),this.coreComponents=an,St.push(f);const Fn=f.onErrorOut;typeof Fn=="function"&&this.on(c.ERROR,Fn,f)}createController(e,t){if(e){const n=new e(this);return t&&t.push(n),n}return null}on(e,t,n=this){this._emitter.on(e,t,n)}once(e,t,n=this){this._emitter.once(e,t,n)}removeAllListeners(e){this._emitter.removeAllListeners(e)}off(e,t,n=this,r){this._emitter.off(e,t,n,r)}listeners(e){return this._emitter.listeners(e)}emit(e,t,n){return this._emitter.emit(e,t,n)}trigger(e,t){if(this.config.debug)return this.emit(e,e,t);try{return this.emit(e,e,t)}catch(n){if(b.error("An internal error happened while handling event "+e+'. Error message: "'+n.message+'". Here is a stacktrace:',n),!this.triggeringException){this.triggeringException=!0;const r=e===c.ERROR;this.trigger(c.ERROR,{type:S.OTHER_ERROR,details:y.INTERNAL_EXCEPTION,fatal:r,event:e,error:n}),this.triggeringException=!1}}return!1}listenerCount(e){return this._emitter.listenerCount(e)}destroy(){b.log("destroy"),this.trigger(c.DESTROYING,void 0),this.detachMedia(),this.removeAllListeners(),this._autoLevelCapping=-1,this.url=null,this.networkControllers.forEach(t=>t.destroy()),this.networkControllers.length=0,this.coreComponents.forEach(t=>t.destroy()),this.coreComponents.length=0;const e=this.config;e.xhrSetup=e.fetchSetup=void 0,this.userConfig=null}attachMedia(e){b.log("attachMedia"),this._media=e,this.trigger(c.MEDIA_ATTACHING,{media:e})}detachMedia(){b.log("detachMedia"),this.trigger(c.MEDIA_DETACHING,void 0),this._media=null}loadSource(e){this.stopLoad();const t=this.media,n=this.url,r=this.url=ie.buildAbsoluteURL(self.location.href,e,{alwaysNormalize:!0});this._autoLevelCapping=-1,this._maxHdcpLevel=null,b.log(`loadSource:${r}`),t&&n&&(n!==r||this.bufferController.hasSourceTypes())&&(this.detachMedia(),this.attachMedia(t)),this.trigger(c.MANIFEST_LOADING,{url:e})}startLoad(e=-1){b.log(`startLoad(${e})`),this.started=!0,this.resumeBuffering();for(let t=0;t<this.networkControllers.length&&(this.networkControllers[t].startLoad(e),!(!this.started||!this.networkControllers));t++);}stopLoad(){b.log("stopLoad"),this.started=!1;for(let e=0;e<this.networkControllers.length&&(this.networkControllers[e].stopLoad(),!(this.started||!this.networkControllers));e++);}resumeBuffering(){b.log("resume buffering"),this.networkControllers.forEach(e=>{e.resumeBuffering&&e.resumeBuffering()})}pauseBuffering(){b.log("pause buffering"),this.networkControllers.forEach(e=>{e.pauseBuffering&&e.pauseBuffering()})}swapAudioCodec(){b.log("swapAudioCodec"),this.streamController.swapAudioCodec()}recoverMediaError(){b.log("recoverMediaError");const e=this._media;this.detachMedia(),e&&this.attachMedia(e)}removeLevel(e){this.levelController.removeLevel(e)}get levels(){const e=this.levelController.levels;return e||[]}get currentLevel(){return this.streamController.currentLevel}set currentLevel(e){b.log(`set currentLevel:${e}`),this.levelController.manualLevel=e,this.streamController.immediateLevelSwitch()}get nextLevel(){return this.streamController.nextLevel}set nextLevel(e){b.log(`set nextLevel:${e}`),this.levelController.manualLevel=e,this.streamController.nextLevelSwitch()}get loadLevel(){return this.levelController.level}set loadLevel(e){b.log(`set loadLevel:${e}`),this.levelController.manualLevel=e}get nextLoadLevel(){return this.levelController.nextLoadLevel}set nextLoadLevel(e){this.levelController.nextLoadLevel=e}get firstLevel(){return Math.max(this.levelController.firstLevel,this.minAutoLevel)}set firstLevel(e){b.log(`set firstLevel:${e}`),this.levelController.firstLevel=e}get startLevel(){const e=this.levelController.startLevel;return e===-1&&this.abrController.forcedAutoLevel>-1?this.abrController.forcedAutoLevel:e}set startLevel(e){b.log(`set startLevel:${e}`),e!==-1&&(e=Math.max(e,this.minAutoLevel)),this.levelController.startLevel=e}get capLevelToPlayerSize(){return this.config.capLevelToPlayerSize}set capLevelToPlayerSize(e){const t=!!e;t!==this.config.capLevelToPlayerSize&&(t?this.capLevelController.startCapping():(this.capLevelController.stopCapping(),this.autoLevelCapping=-1,this.streamController.nextLevelSwitch()),this.config.capLevelToPlayerSize=t)}get autoLevelCapping(){return this._autoLevelCapping}get bandwidthEstimate(){const{bwEstimator:e}=this.abrController;return e?e.getEstimate():NaN}set bandwidthEstimate(e){this.abrController.resetEstimator(e)}get ttfbEstimate(){const{bwEstimator:e}=this.abrController;return e?e.getEstimateTTFB():NaN}set autoLevelCapping(e){this._autoLevelCapping!==e&&(b.log(`set autoLevelCapping:${e}`),this._autoLevelCapping=e,this.levelController.checkMaxAutoUpdated())}get maxHdcpLevel(){return this._maxHdcpLevel}set maxHdcpLevel(e){vr(e)&&this._maxHdcpLevel!==e&&(this._maxHdcpLevel=e,this.levelController.checkMaxAutoUpdated())}get autoLevelEnabled(){return this.levelController.manualLevel===-1}get manualLevel(){return this.levelController.manualLevel}get minAutoLevel(){const{levels:e,config:{minAutoBitrate:t}}=this;if(!e)return 0;const n=e.length;for(let r=0;r<n;r++)if(e[r].maxBitrate>=t)return r;return 0}get maxAutoLevel(){const{levels:e,autoLevelCapping:t,maxHdcpLevel:n}=this;let r;if(t===-1&&e!=null&&e.length?r=e.length-1:r=t,n)for(let i=r;i--;){const s=e[i].attrs["HDCP-LEVEL"];if(s&&s<=n)return i}return r}get firstAutoLevel(){return this.abrController.firstAutoLevel}get nextAutoLevel(){return this.abrController.nextAutoLevel}set nextAutoLevel(e){this.abrController.nextAutoLevel=e}get playingDate(){return this.streamController.currentProgramDateTime}get mainForwardBufferInfo(){return this.streamController.getMainFwdBufferInfo()}setAudioOption(e){var t;return(t=this.audioTrackController)==null?void 0:t.setAudioOption(e)}setSubtitleOption(e){var t;return(t=this.subtitleTrackController)==null||t.setSubtitleOption(e),null}get allAudioTracks(){const e=this.audioTrackController;return e?e.allAudioTracks:[]}get audioTracks(){const e=this.audioTrackController;return e?e.audioTracks:[]}get audioTrack(){const e=this.audioTrackController;return e?e.audioTrack:-1}set audioTrack(e){const t=this.audioTrackController;t&&(t.audioTrack=e)}get allSubtitleTracks(){const e=this.subtitleTrackController;return e?e.allSubtitleTracks:[]}get subtitleTracks(){const e=this.subtitleTrackController;return e?e.subtitleTracks:[]}get subtitleTrack(){const e=this.subtitleTrackController;return e?e.subtitleTrack:-1}get media(){return this._media}set subtitleTrack(e){const t=this.subtitleTrackController;t&&(t.subtitleTrack=e)}get subtitleDisplay(){const e=this.subtitleTrackController;return e?e.subtitleDisplay:!1}set subtitleDisplay(e){const t=this.subtitleTrackController;t&&(t.subtitleDisplay=e)}get lowLatencyMode(){return this.config.lowLatencyMode}set lowLatencyMode(e){this.config.lowLatencyMode=e}get liveSyncPosition(){return this.latencyController.liveSyncPosition}get latency(){return this.latencyController.latency}get maxLatency(){return this.latencyController.maxLatency}get targetLatency(){return this.latencyController.targetLatency}get drift(){return this.latencyController.drift}get forceStartLoad(){return this.streamController.forceStartLoad}}Ps.defaultConfig=void 0}}]);
}());